cortex-react-components 2.13.1 → 2.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-HNWWGPHA.mjs → chunk-2HWSTGAP.mjs} +1 -1
- package/dist/chunk-2IMVYO7X.mjs +1 -0
- package/dist/{chunk-GTZJWMZR.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/chunk-2UNIT7NC.mjs +4 -0
- package/dist/{chunk-CR326IJ6.mjs → chunk-4L77KQ2E.mjs} +1 -1
- package/dist/chunk-5N4WW7O2.mjs +1 -0
- package/dist/{chunk-AGWQ5S2Z.mjs → chunk-5NIEZE7A.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-EM3T2XYC.mjs → chunk-5WVFEIMC.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-62A35O55.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/chunk-6BQNN2KT.mjs +1 -0
- package/dist/chunk-6NED7ZVK.mjs +1 -0
- package/dist/{chunk-CXOVEABI.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-CNCT3JZV.mjs → chunk-AQQCH7Z2.mjs} +1 -1
- package/dist/chunk-CDVRH3MC.mjs +4 -0
- package/dist/chunk-CJ6APTVT.mjs +4 -0
- package/dist/{chunk-ITJH72Z2.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-2EQ5OMZF.mjs → chunk-DMCFEJ2C.mjs} +1 -1
- package/dist/chunk-DTIHVFME.mjs +4 -0
- package/dist/{chunk-3AWUWWR4.mjs → chunk-E6UOMRHI.mjs} +1 -1
- package/dist/chunk-E6Y5COQK.mjs +1 -0
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-KWYJ3XZI.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-24XUZCYT.mjs → chunk-IK3AM53W.mjs} +1 -1
- package/dist/chunk-KG7HG2VO.mjs +1 -0
- package/dist/{chunk-ERHNVIOZ.mjs → chunk-LHO4WFYP.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-ZKSZJI4F.mjs → chunk-LVXEY6OU.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/chunk-NGX2VCHS.mjs +1 -0
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-NWISIJFD.mjs} +1 -1
- package/dist/{chunk-23XORW7A.mjs → chunk-P7S6XFU4.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-Q67RF7VO.mjs → chunk-QG4QCB5I.mjs} +1 -1
- package/dist/{chunk-A7SGFSI5.mjs → chunk-QSXEJ2NO.mjs} +1 -1
- package/dist/{chunk-POIHYOIP.mjs → chunk-RMWGIZJX.mjs} +1 -1
- package/dist/{chunk-KCEJXXM2.mjs → chunk-RVHCTANZ.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/chunk-TKCFCYEQ.mjs +4 -0
- package/dist/{chunk-6MSM3CZ6.mjs → chunk-TL2RQFU5.mjs} +1 -1
- package/dist/{chunk-7FWAJQRH.mjs → chunk-TO7SVJIU.mjs} +1 -1
- package/dist/chunk-TOI73VEE.mjs +1 -0
- package/dist/{chunk-ZGQC6O62.mjs → chunk-UEBQJNVT.mjs} +1 -1
- package/dist/chunk-UVHMI3PU.mjs +1 -0
- package/dist/chunk-WSQHAE6Q.mjs +1 -0
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-PWFVXG44.mjs → chunk-XKGBG5FX.mjs} +1 -1
- package/dist/chunk-XNEPSYCO.mjs +1 -0
- package/dist/{chunk-C4RWEPVF.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-UXOUJ5YO.mjs → chunk-ZB7RDJRP.mjs} +1 -1
- package/dist/{chunk-PXLSH6S2.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/{DigitalColleageusLayout.mjs → FoundaryLayout.mjs} +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/TeamsIndexView.d.ts +3 -3
- package/dist/components/Foundary/Views/TeamsIndexView.js +2 -2
- package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/{digital-colleague-clone.mjs → foundary-clone.mjs} +1 -1
- package/dist/components/Foundary/{digital-colleague-options.mjs → foundary-options.mjs} +1 -1
- package/dist/components/Foundary/index.d.ts +3 -3
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/team-form.d.ts +1 -1
- package/dist/components/Foundary/team-form.js +2 -2
- package/dist/components/Foundary/team-form.mjs +1 -1
- package/dist/components/Foundary/types.d.ts +9 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddEpicModal.d.ts +1 -1
- package/dist/components/Projects/AddEpicModal.js +1 -1
- package/dist/components/Projects/AddEpicModal.mjs +1 -1
- package/dist/components/Projects/AddSprintModal.d.ts +1 -1
- package/dist/components/Projects/AddSprintModal.js +1 -1
- package/dist/components/Projects/AddSprintModal.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.d.ts +2 -2
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicsView.d.ts +1 -1
- package/dist/components/Projects/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +6 -4
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.d.ts +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.d.ts +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +1 -42
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.d.ts +3 -3
- package/dist/components/Projects/ProjectsIndexView.js +2 -2
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskCard.d.ts +2 -2
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSidebar.d.ts +1 -1
- package/dist/components/Projects/TaskSidebar.js +1 -1
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/Projects/TasksView.d.ts +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/Projects/project-form.d.ts +3 -3
- package/dist/components/Projects/project-form.js +1 -1
- package/dist/components/Projects/project-form.mjs +1 -1
- package/dist/components/dc-temp/creative.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +13 -13
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +17 -17
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/utils/extract-id.d.ts +1 -0
- package/dist/utils/extract-id.js +1 -0
- package/dist/utils/extract-id.mjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-2C4UDLVF.mjs +0 -1
- package/dist/chunk-2XMVNXF6.mjs +0 -4
- package/dist/chunk-4A3MGS6I.mjs +0 -1
- package/dist/chunk-4HHGVL3E.mjs +0 -1
- package/dist/chunk-6DEY5ZDD.mjs +0 -1
- package/dist/chunk-6TUNKKV7.mjs +0 -1
- package/dist/chunk-CXCDV7VP.mjs +0 -4
- package/dist/chunk-GGJZVAC4.mjs +0 -4
- package/dist/chunk-KW6L6KBY.mjs +0 -1
- package/dist/chunk-LD44TGKT.mjs +0 -4
- package/dist/chunk-MBPTBEOX.mjs +0 -1
- package/dist/chunk-NKDFAFWH.mjs +0 -1
- package/dist/chunk-O57JJTH5.mjs +0 -1
- package/dist/chunk-ORNGKQM7.mjs +0 -1
- package/dist/chunk-UAEEBFHJ.mjs +0 -4
- /package/dist/{chunk-6LEH6XKI.mjs → chunk-M2REXGQW.mjs} +0 -0
- /package/dist/{chunk-SGK4ZXKR.mjs → chunk-NDZ26EG6.mjs} +0 -0
- /package/dist/components/Foundary/{DigitalColleageusLayout.css → FoundaryLayout.css} +0 -0
- /package/dist/components/Foundary/{DigitalColleageusLayout.d.ts → FoundaryLayout.d.ts} +0 -0
- /package/dist/components/Foundary/{DigitalColleageusLayout.js → FoundaryLayout.js} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.css → foundary-clone.css} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.d.ts → foundary-clone.d.ts} +0 -0
- /package/dist/components/Foundary/{digital-colleague-clone.js → foundary-clone.js} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.css → foundary-options.css} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.d.ts → foundary-options.d.ts} +0 -0
- /package/dist/components/Foundary/{digital-colleague-options.js → foundary-options.js} +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";var yo=Object.create;var qe=Object.defineProperty;var xo=Object.getOwnPropertyDescriptor;var wo=Object.getOwnPropertyNames;var No=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var So=(e,t)=>{for(var o in t)qe(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wo(t))!Co.call(e,i)&&i!==o&&qe(e,i,{get:()=>t[i],enumerable:!(r=xo(t,i))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?yo(No(e)):{},vt(t||!e||!e.__esModule?qe(o,"default",{value:e,enumerable:!0}):o,e)),To=e=>vt(qe({},"__esModule",{value:!0}),e);var Nr={};So(Nr,{KanbanBoardView:()=>wr});module.exports=To(Nr);var B=require("react");var kt=require("class-variance-authority");var Tt=require("clsx");var nt="-",ko=e=>{let t=Ro(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(nt);return a[0]===""&&a.length!==1&&a.shift(),yt(a,t)||Po(l)},getConflictingClassGroupIds:(l,a)=>{let p=o[l]||[];return a&&r[l]?[...p,...r[l]]:p}}},yt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?yt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let s=e.join(nt);return t.validators.find(({validator:l})=>l(s))?.classGroupId},bt=/^\[(.+)\]$/,Po=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ro=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Io(Object.entries(e.classGroups),o).forEach(([s,l])=>{it(l,r,s,t)}),r},it=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let s=i===""?t:ht(t,i);s.classGroupId=o;return}if(typeof i=="function"){if(Do(i)){it(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([s,l])=>{it(l,ht(t,s),o,r)})})},ht=(e,t)=>{let o=e;return t.split(nt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Do=e=>e.isThemeGetter,Io=(e,t)=>t?e.map(([o,r])=>{let i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,a])=>[t+l,a])):s);return[o,i]}):e,Eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(s,l)=>{o.set(s,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(s){let l=o.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set(s,l){o.has(s)?o.set(s,l):i(s,l)}}},xt="!",Ao=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],s=t.length,l=a=>{let p=[],m=0,n=0,d;for(let f=0;f<a.length;f++){let z=a[f];if(m===0){if(z===i&&(r||a.slice(f,f+s)===t)){p.push(a.slice(n,f)),n=f+s;continue}if(z==="/"){d=f;continue}}z==="["?m++:z==="]"&&m--}let C=p.length===0?a:a.substring(n),c=C.startsWith(xt),b=c?C.substring(1):C,k=d&&d>n?d-n:void 0;return{modifiers:p,hasImportantModifier:c,baseClassName:b,maybePostfixModifierPosition:k}};return o?a=>o({className:a,parseClassName:l}):l},Lo=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},Mo=e=>({cache:Eo(e.cacheSize),parseClassName:Ao(e),...ko(e)}),Bo=/\s+/,zo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],l=e.trim().split(Bo),a="";for(let p=l.length-1;p>=0;p-=1){let m=l[p],{modifiers:n,hasImportantModifier:d,baseClassName:C,maybePostfixModifierPosition:c}=o(m),b=!!c,k=r(b?C.substring(0,c):C);if(!k){if(!b){a=m+(a.length>0?" "+a:a);continue}if(k=r(C),!k){a=m+(a.length>0?" "+a:a);continue}b=!1}let f=Lo(n).join(":"),z=d?f+xt:f,F=z+k;if(s.includes(F))continue;s.push(F);let ee=i(k,b);for(let _=0;_<ee.length;++_){let ie=ee[_];s.push(z+ie)}a=m+(a.length>0?" "+a:a)}return a};function Vo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=wt(t))&&(r&&(r+=" "),r+=o);return r}var wt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Ho(e,...t){let o,r,i,s=l;function l(p){let m=t.reduce((n,d)=>d(n),e());return o=Mo(m),r=o.cache.get,i=o.cache.set,s=a,a(p)}function a(p){let m=r(p);if(m)return m;let n=zo(p,o);return i(p,n),n}return function(){return s(Vo.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Nt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Go=/^\d+\/\d+$/,Oo=new Set(["px","full","screen"]),Fo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Uo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Pt|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$o=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=e=>Me(e)||Oo.has(e)||Go.test(e),ve=e=>Be(e,"length",Yo),Me=e=>!!e&&!Number.isNaN(Number(e)),st=e=>Be(e,"number",Me),Fe=e=>!!e&&Number.isInteger(Number(e)),Ko=e=>e.endsWith("%")&&Me(e.slice(0,-1)),x=e=>Nt.test(e),be=e=>Fo.test(e),_o=new Set(["length","size","percentage"]),Jo=e=>Be(e,_o,Ct),qo=e=>Be(e,"position",Ct),Xo=new Set(["image","url"]),Zo=e=>Be(e,Xo,tr),Qo=e=>Be(e,"",er),Ue=()=>!0,Be=(e,t,o)=>{let r=Nt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Yo=e=>Uo.test(e)&&!$o.test(e),Ct=()=>!1,er=e=>Wo.test(e),tr=e=>jo.test(e);var or=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),r=P("brightness"),i=P("borderColor"),s=P("borderRadius"),l=P("borderSpacing"),a=P("borderWidth"),p=P("contrast"),m=P("grayscale"),n=P("hueRotate"),d=P("invert"),C=P("gap"),c=P("gradientColorStops"),b=P("gradientColorStopPositions"),k=P("inset"),f=P("margin"),z=P("opacity"),F=P("padding"),ee=P("saturate"),_=P("scale"),ie=P("sepia"),ne=P("skew"),le=P("space"),ce=P("translate"),fe=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",x,t],S=()=>[x,t],rt=()=>["",me,ve],de=()=>["auto",Me,x],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",x],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Me,x];return{cacheSize:500,separator:":",theme:{colors:[Ue],spacing:[me,ve],blur:["none","",be,x],brightness:te(),borderColor:[e],borderRadius:["none","","full",be,x],borderSpacing:S(),borderWidth:rt(),contrast:te(),grayscale:ae(),hueRotate:te(),invert:ae(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Ko,ve],inset:W(),margin:W(),opacity:te(),padding:S(),saturate:te(),scale:te(),sepia:ae(),skew:te(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[be]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"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:[...Oe(),x]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:fe()}],"overscroll-x":[{"overscroll-x":fe()}],"overscroll-y":[{"overscroll-y":fe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fe,x]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",Fe,x]}],"grid-cols":[{"grid-cols":[Ue]}],"col-start-end":[{col:["auto",{span:["full",Fe,x]},x]}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":[Ue]}],"row-start-end":[{row:["auto",{span:[Fe,x]},x]}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...we()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...we(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...we(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],B:[{B:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,t]}],"min-w":[{"min-w":[x,t,"min","max","fit"]}],"max-w":[{"max-w":[x,t,"none","full","min","max","fit","prose",{screen:[be]},be]}],Pt:[{Pt:[x,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Pt":[{"min-Pt":[x,t,"min","max","fit","svh","lvh","dvh"]}],"max-Pt":[{"max-Pt":[x,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,t,"auto","min","max","fit"]}],"font-size":[{text:["base",be,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",st]}],"font-family":[{font:[Ue]}],"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",x]}],"line-clamp":[{"line-clamp":["none",Me,st]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",me,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"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:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",me,ve]}],"underline-offset":[{"underline-offset":["auto",me,x]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],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",x]}],"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:[...Oe(),qo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Zo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[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:[...J(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:J()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[me,x]}],"outline-w":[{outline:[me,ve]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[me,ve]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",be,Qo]}],"shadow-color":[{shadow:[Ue]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ke()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",be,x]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[d]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Fe,x]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],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",x]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-B":[{"scroll-B":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[me,ve,st]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","B","mr","mb","ml"],mx:["mr","ml"],my:["B","mb"],size:["w","Pt"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-B","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-B","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var St=Ho(or);function y(...e){return St((0,Tt.clsx)(e))}var Pt=require("react/jsx-runtime"),rr=(0,kt.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 q({className:e,variant:t,...o}){return(0,Pt.jsx)("div",{className:y(rr({variant:t}),e),...o})}var Ce=U(require("react"));var ze=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ze.displayName="Card";var ar=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("flex flex-col space-y-1.5 p-6",e),...t}));ar.displayName="CardHeader";var sr=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("font-semibold leading-none tracking-tight",e),...t}));sr.displayName="CardTitle";var ir=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("text-sm text-muted-foreground",e),...t}));ir.displayName="CardDescription";var nr=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("p-6 pt-0",e),...t}));nr.displayName="CardContent";var lr=Ce.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("div",{ref:o,className:y("flex items-center p-6 pt-0",e),...t}));lr.displayName="CardFooter";var Rt=({title:e,status:t,taskCount:o,children:r,onDrop:i,isCompact:s=!1,height:l})=>{let a=n=>{n.preventDefault()},p=n=>{n.preventDefault(),i(t)};return(0,Pt.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 ${s?"lg:max-w-xs":""}`,style:{height:l||"calc(100vh - 350px)"},onDragOver:a,onDrop:p,children:[(0,Pt.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Pt.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${s?"text-base":"text-lg"}`,children:e}),(0,Pt.jsx)(q,{variant:"secondary",className:"bg-muted text-muted-foreground",children:o})]}),(0,Pt.jsx)("div",{className:"flex-1 overflow-y-auto space-y-4 min-Pt-0",children:r})]})};var se=require("lucide-react"),Dt=({task:e,epic:t,onDragStart:o,onTaskClick:r,isCompact:i=!1})=>{let s=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"}},p=()=>{switch(e.type){case"story":return(0,Pt.jsx)(se.BookOpen,{className:"Pt-3 w-3"});case"bug":return(0,Pt.jsx)(se.Bug,{className:"Pt-3 w-3"});case"spike":return(0,Pt.jsx)(se.Zap,{className:"Pt-3 w-3"});case"task":default:return(0,Pt.jsx)(se.AlertCircle,{className:"Pt-3 w-3"})}},m=()=>{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 i?(0,Pt.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:s,onClick:l,children:(0,Pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pt.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${m()}`,children:p()}),(0,Pt.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,Pt.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:s,onClick:l,children:[(0,Pt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Pt.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${m()}`,children:[p(),(0,Pt.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Pt.jsxs)("div",{className:"flex gap-1",children:[(0,Pt.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${a()}`,children:e.priority}),(0,Pt.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.points})]})]}),(0,Pt.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,Pt.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Pt.jsx)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:(0,Pt.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Pt.jsx)(se.User,{className:"Pt-4 w-4"}),(0,Pt.jsx)("span",{children:e.assignee?.value?.name})]})})]})};var $e=U(require("react")),V=U(require("@radix-ui/react-dialog"));var Ve=V.Root;var cr=V.Portal;var Et=$e.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(V.Overlay,{ref:o,className:y("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}));Et.displayName=V.Overlay.displayName;var ke=$e.forwardRef(({className:e,children:t,...o},r)=>(0,Pt.jsxs)(cr,{children:[(0,Pt.jsx)(Et,{}),(0,Pt.jsxs)(V.Content,{ref:r,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Pt.jsxs)(V.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,Pt.jsx)(se.X,{className:"Pt-4 w-4"}),(0,Pt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ke.displayName=V.Content.displayName;var Pe=({className:e,...t})=>(0,Pt.jsx)("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Pe.displayName="DialogHeader";var We=({className:e,...t})=>(0,Pt.jsx)("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});We.displayName="DialogFooter";var Re=$e.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(V.Title,{ref:o,className:y("text-lg font-semibold leading-none tracking-tight",e),...t}));Re.displayName=V.Title.displayName;var dr=$e.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(V.Description,{ref:o,className:y("text-sm text-muted-foreground",e),...t}));dr.displayName=V.Description.displayName;var At=require("@radix-ui/react-slot"),Mt=U(require("react")),mr=(0,kt.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:"Pt-10 px-4 py-2",icon:"Pt-10 w-10",lg:"Pt-11 rounded px-8",sm:"Pt-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"}}}),H=Mt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},s)=>(0,Pt.jsx)(e?At.Slot:"button",{className:y(mr({className:t,size:o,variant:r})),ref:s,...i}));H.displayName="Button";var zt=U(require("react"));var K=zt.forwardRef(({className:e,type:t,...o},r)=>(0,Pt.jsx)("input",{type:t,className:y("flex Pt-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}));K.displayName="Input";var Ht=U(require("react")),pe=Ht.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)("textarea",{className:y("flex min-Pt-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));pe.displayName="Textarea";var w=U(require("@radix-ui/react-select")),he=U(require("react")),re=w.Root;var Ie=w.Value,X=he.forwardRef(({children:e,className:t,...o},r)=>(0,Pt.jsxs)(w.Trigger,{className:y("flex Pt-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,Pt.jsx)(w.Icon,{asChild:!0,children:(0,Pt.jsx)(se.ChevronDown,{className:"Pt-4 w-4 opacity-50"})})]}));X.displayName=w.Trigger.displayName;var Ot=he.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(w.ScrollUpButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Pt.jsx)(se.ChevronUp,{className:"Pt-4 w-4"})}));Ot.displayName=w.ScrollUpButton.displayName;var Ft=he.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(w.ScrollDownButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Pt.jsx)(se.ChevronDown,{className:"Pt-4 w-4"})}));Ft.displayName=w.ScrollDownButton.displayName;var Z=he.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Pt.jsx)(w.Portal,{children:(0,Pt.jsxs)(w.Content,{className:y("relative z-50 max-Pt-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:i,...r,children:[(0,Pt.jsx)(Ot,{}),(0,Pt.jsx)(w.Viewport,{className:y("p-1",o==="popper"&&"Pt-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Pt.jsx)(Ft,{})]})}));Z.displayName=w.Content.displayName;var pr=he.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(w.Label,{className:y("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));pr.displayName=w.Label.displayName;var $=he.forwardRef(({children:e,className:t,...o},r)=>(0,Pt.jsxs)(w.Item,{className:y("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,Pt.jsx)("span",{className:"absolute left-2 flex Pt-3.5 w-3.5 items-center justify-center",children:(0,Pt.jsx)(w.ItemIndicator,{children:(0,Pt.jsx)(se.Check,{className:"Pt-4 w-4"})})}),(0,Pt.jsx)(w.ItemText,{children:e})]}));$.displayName=w.Item.displayName;var ur=he.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(w.Separator,{className:y("-mx-1 my-1 Pt-px bg-muted",e),ref:o,...t}));ur.displayName=w.Separator.displayName;var Ut=U(require("react")),lt=U(require("@radix-ui/react-label"));var gr=(0,$t.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),N=Ut.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(lt.Root,{ref:o,className:y(gr(),e),...t}));N.displayName=lt.Root.displayName;var Ee=U(require("react")),He=U(require("@radix-ui/react-toggle-group"));var jt=U(require("react")),ct=U(require("@radix-ui/react-toggle"));var dt=(0,kt.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:"Pt-9 px-2 min-w-9",sm:"Pt-8 px-1.5 min-w-8",lg:"Pt-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fr=jt.forwardRef(({className:e,variant:t,size:o,...r},i)=>(0,Pt.jsx)(ct.Root,{ref:i,className:y(dt({variant:t,size:o,className:e})),...r}));fr.displayName=ct.Root.displayName;var Jt=Ee.createContext({size:"default",variant:"default"}),Ae=Ee.forwardRef(({className:e,variant:t,size:o,children:r,...i},s)=>(0,Pt.jsx)(He.Root,{ref:s,className:y("flex items-center justify-center gap-1",e),...i,children:(0,Pt.jsx)(Jt.Provider,{value:{variant:t,size:o},children:r})}));Ae.displayName=He.Root.displayName;var Le=Ee.forwardRef(({className:e,children:t,variant:o,size:r,...i},s)=>{let l=Ee.useContext(Jt);return(0,Pt.jsx)(He.Item,{ref:s,className:y(dt({variant:l.variant||o,size:l.size||r}),e),...i,children:t})});Le.displayName=He.Item.displayName;var vr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:se.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:se.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:se.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:se.Zap}],br=[{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"}],qt=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:i,assignees:s,defaultEpicId:l})=>{let[a,p]=(0,B.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""});(0,B.useEffect)(()=>{e&&l&&p(d=>({...d,epicId:l}))},[e,l]),(0,B.useEffect)(()=>{e&&p({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:l||"",sprintId:"none",assignee:""})},[e]);let m=d=>{d.preventDefault(),a.name.trim()&&(o({name:a.name.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,points:a.points,epicId:a.epicId,sprintId:a.sprintId==="none"?void 0:a.sprintId,assignee:a.assignee.trim()||"Unassigned"}),p({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:l||"",sprintId:"none",assignee:""}),t())},n=(d,C)=>{p(c=>({...c,[d]:C}))};return(0,Pt.jsx)(Ve,{open:e,onOpenChange:t,children:(0,Pt.jsxs)(ke,{className:"sm:max-w-md",children:[(0,Pt.jsx)(Pe,{children:(0,Pt.jsx)(Re,{children:"Add New Task"})}),(0,Pt.jsxs)("form",{onSubmit:m,className:"space-y-4",children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"name",children:"Task Title"}),(0,Pt.jsx)(K,{id:"name",value:a.name,onChange:d=>n("name",d.target.value),placeholder:"Enter task title",required:!0})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"description",children:"Description"}),(0,Pt.jsx)(pe,{id:"description",value:a.description,onChange:d=>n("description",d.target.value),placeholder:"Enter task description",rows:3})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Type"}),(0,Pt.jsx)(Ae,{type:"single",value:a.type,onValueChange:d=>d&&n("type",d),children:vr.map(d=>{let C=d.icon;return(0,Pt.jsxs)(Le,{value:d.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Pt.jsx)(C,{className:"Pt-4 w-4"}),d.label]},d.value)})})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Priority"}),(0,Pt.jsx)(Ae,{type:"single",value:a.priority,onValueChange:d=>d&&n("priority",d),children:br.map(d=>(0,Pt.jsx)(Le,{value:d.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:d.label},d.value))})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"points",children:"Story Points"}),(0,Pt.jsx)(K,{id:"points",type:"number",min:"1",max:"100",value:a.points,onChange:d=>n("points",parseInt(d.target.value)||1),placeholder:"Enter story points",required:!0})]}),!l&&(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"epic",children:"Epic"}),(0,Pt.jsxs)(re,{value:a.epicId,onValueChange:d=>n("epicId",d),children:[(0,Pt.jsx)(X,{children:(0,Pt.jsx)(Ie,{placeholder:"Select an epic"})}),(0,Pt.jsx)(Z,{children:r.map(d=>(0,Pt.jsx)($,{value:d.id,children:(0,Pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pt.jsx)("div",{className:`w-3 Pt-3 rounded-full ${d.color}`}),d.name]})},d.id))})]})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Pt.jsxs)(re,{value:a.sprintId,onValueChange:d=>n("sprintId",d),children:[(0,Pt.jsx)(X,{children:(0,Pt.jsx)(Ie,{placeholder:"Select a sprint"})}),(0,Pt.jsxs)(Z,{children:[(0,Pt.jsx)($,{value:"none",children:"No Sprint"}),i.map(d=>(0,Pt.jsx)($,{value:d.id,children:(0,Pt.jsxs)("div",{className:"flex items-center gap-2",children:[d.name,d.isActive&&(0,Pt.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},d.id))]})]})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"sprint",children:"Assignee"}),(0,Pt.jsxs)(re,{value:a.assignee,onValueChange:d=>n("assignee",d),children:[(0,Pt.jsx)(X,{children:(0,Pt.jsx)(Ie,{placeholder:"Select an Assignee"})}),(0,Pt.jsxs)(Z,{children:[(0,Pt.jsx)($,{value:"none",children:"No Assignee"}),s.map(d=>(0,Pt.jsx)($,{value:d.id,children:(0,Pt.jsx)("div",{className:"flex items-center gap-2",children:d.name})},d.id))]})]})]}),(0,Pt.jsxs)(We,{children:[(0,Pt.jsx)(H,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Pt.jsx)(H,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var pt=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:i,className:s="",disabled:l=!1})=>{let[a,p]=(0,B.useState)(!1),[m,n]=(0,B.useState)(""),d=()=>{l||(p(!0),n(t))},C=async()=>{m!==t&&await i(e,m),p(!1)},c=b=>{b.key==="Enter"&&!r||b.key==="Enter"&&b.ctrlKey&&r?C():b.key==="Escape"&&(p(!1),n(""))};return(0,Pt.jsxs)("div",{className:`space-y-2 ${s}`,children:[(0,Pt.jsx)(N,{children:o}),a?r?(0,Pt.jsx)(pe,{value:m,onChange:b=>n(b.target.value),onBlur:C,onKeyDown:c,autoFocus:!0,rows:4,className:"resize-none"}):(0,Pt.jsx)(K,{value:m,onChange:b=>n(b.target.value),onBlur:C,onKeyPress:c,autoFocus:!0,className:"text-lg font-medium"}):(0,Pt.jsxs)("div",{onClick:d,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-Pt-[100px]":"min-Pt-[40px]"} flex items-start gap-2`,children:[(0,Pt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!l&&(0,Pt.jsx)(se.Edit,{className:"Pt-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ze=U(require("react")),ge=U(require("@radix-ui/react-avatar"));var ut=Ze.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(ge.Root,{ref:o,className:y("relative flex Pt-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ut.displayName=ge.Root.displayName;var hr=Ze.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(ge.Image,{ref:o,className:y("aspect-square Pt-full w-full",e),...t}));hr.displayName=ge.Image.displayName;var gt=Ze.forwardRef(({className:e,...t},o)=>(0,Pt.jsx)(ge.Fallback,{ref:o,className:y("flex Pt-full w-full items-center justify-center rounded-full bg-muted",e),...t}));gt.displayName=ge.Fallback.displayName;var Qt=({comments:e,onAddComment:t})=>{let[o,r]=(0,B.useState)(""),i=l=>l.split(" ").map(a=>a[0]).join("").toUpperCase(),s=()=>{o.trim()&&(t(o),r(""))};return(0,Pt.jsxs)("div",{className:"space-y-4",children:[(0,Pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pt.jsx)(se.MessageSquare,{className:"Pt-5 w-5"}),(0,Pt.jsx)(N,{className:"text-lg font-medium",children:"Comments"}),(0,Pt.jsx)(q,{variant:"secondary",children:e.length})]}),(0,Pt.jsx)("div",{className:"space-y-4 max-Pt-60 overflow-y-auto",children:e.map(l=>(0,Pt.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Pt.jsx)(ut,{className:"Pt-8 w-8 B-1",children:(0,Pt.jsx)(gt,{className:"text-xs bg-muted text-muted-foreground",children:i(l.author)})}),(0,Pt.jsxs)("div",{className:"flex-1",children:[(0,Pt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Pt.jsx)("span",{className:"font-medium text-sm",children:l.author}),(0,Pt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[l.createdAt.toLocaleDateString()," at ",l.createdAt.toLocaleTimeString()]})]}),(0,Pt.jsx)("p",{className:"text-sm text-muted-foreground",children:l.text})]})]},l.id))}),(0,Pt.jsxs)("div",{className:"flex gap-2",children:[(0,Pt.jsx)(pe,{value:o,onChange:l=>r(l.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Pt.jsx)(H,{onClick:s,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Pt.jsx)(se.Send,{className:"Pt-4 w-4"})})]})]})};var et=({label:e,value:t,onValueChange:o,options:r,showColor:i=!1,disabled:s=!1})=>{let[l,a]=(0,B.useState)(!1),p=r.find(n=>n.value===t);return(0,Pt.jsxs)("div",{className:"space-y-1",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:e}),(0,Pt.jsxs)(re,{value:t,onValueChange:o,open:l,onOpenChange:n=>{s||a(n)},disabled:s,children:[(0,Pt.jsx)(X,{className:"Pt-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Pt.jsxs)(q,{variant:"secondary",className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!s&&a(!l),children:[i&&p?.color&&(0,Pt.jsx)("div",{className:`w-2 Pt-2 rounded-full ${p.color} mr-1`}),p?.label||"Select..."]})}),(0,Pt.jsx)(Z,{children:r.map(n=>(0,Pt.jsx)($,{value:n.value,children:i&&n.color?(0,Pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Pt.jsx)("div",{className:`w-3 Pt-3 rounded-full ${n.color}`}),n.label]}):n.label},n.value))})]})]})};var eo=({label:e,value:t,onValueChange:o,options:r,placeholder:i="Search...",allowCustomValue:s=!1,disabled:l=!1})=>{let[a,p]=(0,B.useState)(!1),[m,n]=(0,B.useState)(""),d=r.find(f=>f.value===t),C=r.filter(f=>f.label.toLowerCase().includes(m.toLowerCase())),c=f=>{o(f),p(!1),n("")},b=()=>{s&&m.trim()&&!r.find(f=>f.value===m.trim())&&(o(m.trim()),p(!1),n(""))};return(0,Pt.jsxs)("div",{className:"space-y-1",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:e}),(0,Pt.jsxs)(re,{value:t,onValueChange:c,open:a,onOpenChange:f=>{l||p(f)},disabled:l,children:[(0,Pt.jsx)(X,{className:"Pt-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Pt.jsx)(q,{variant:"secondary",className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!l&&p(!a),children:d?.label||t||"Select..."})}),(0,Pt.jsxs)(Z,{children:[(0,Pt.jsx)("div",{className:"p-2",children:(0,Pt.jsx)(K,{placeholder:i,value:m,onChange:f=>n(f.target.value),onKeyDown:f=>{f.key==="Enter"&&s&&b()},className:"mb-2"})}),C.map(f=>(0,Pt.jsx)($,{value:f.value,children:f.label},f.value)),s&&m.trim()&&!C.find(f=>f.value===m.trim())&&(0,Pt.jsxs)($,{value:m.trim(),children:['Add "',m.trim(),'"']})]})]})]})};var yr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:se.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:se.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:se.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:se.Zap}],xr=[{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 to=({task:e,epics:t,sprints:o,lastUpdated:r,onUpdateTask:i,onClose:s,onDelete:l,isUpdating:a=!1,isDeleting:p=!1,deleteState:m="idle",teamMembers:n})=>{let d=c=>c.split(" ").map(b=>b[0]).join("").toUpperCase(),C=()=>m==="loading"?(0,Pt.jsxs)(H,{disabled:!0,variant:"destructive",className:"w-full Pt-8 text-xs gap-1",children:[(0,Pt.jsx)(se.Loader2,{className:"Pt-3 w-3 animate-spin"}),"Deleting..."]}):m==="success"?(0,Pt.jsxs)(H,{disabled:!0,variant:"destructive",className:"w-full Pt-8 text-xs gap-1",children:[(0,Pt.jsx)(se.Check,{className:"Pt-3 w-3"}),"Deleted"]}):m==="error"?(0,Pt.jsxs)(H,{disabled:!0,variant:"destructive",className:"w-full Pt-8 text-xs gap-1",children:[(0,Pt.jsx)(se.X,{className:"Pt-3 w-3"}),"Delete failed"]}):(0,Pt.jsxs)(H,{onClick:l,variant:"destructive",className:"w-full Pt-8 text-xs gap-1",disabled:a||p,children:[(0,Pt.jsx)(se.Trash2,{className:"Pt-3 w-3"}),"Delete Task"]});return(0,Pt.jsxs)("div",{className:"flex flex-col Pt-full",children:[(0,Pt.jsxs)("div",{className:"space-y-4",style:{opacity:a?.6:1},children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Pt.jsx)(et,{label:"",value:e.status,onValueChange:c=>i("status",c),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:a})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Pt.jsx)(Ae,{type:"single",value:e.type,onValueChange:c=>c&&i("type",c),className:"grid grid-cols-2 gap-1",disabled:a,children:yr.map(c=>{let b=c.icon;return(0,Pt.jsxs)(Le,{value:c.value,className:"flex items-center gap-1 text-xs Pt-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:[(0,Pt.jsx)(b,{className:"Pt-3 w-3"}),c.label]},c.value)})})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Pt.jsx)(Ae,{type:"single",value:e.priority,onValueChange:c=>c&&i("priority",c),className:"grid grid-cols-3 gap-1",disabled:a,children:xr.map(c=>(0,Pt.jsx)(Le,{value:c.value,className:"text-xs Pt-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:c.label},c.value))})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Pt.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:c=>i("points",c.target.value),className:"w-full Pt-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,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Pt.jsx)(et,{label:"",value:e.epicId,onValueChange:c=>i("epicId",c),options:(t||[]).map(c=>({value:c.id,label:c?.name,color:c.color})),showColor:!0,disabled:a})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Pt.jsx)(et,{label:"",value:e.sprintId||"none",onValueChange:c=>i("sprintId",c==="none"?"":c),options:[{value:"none",label:"No Sprint"},...(o||[]).map(c=>({value:c.id,label:`${c?.name}${c.isActive?" (Active)":""}`}))],disabled:a})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Pt.jsx)(eo,{label:"",value:e.assignee?.value?.name,onValueChange:c=>i("assignee",c),options:n.map(c=>({value:`${typeof c.email=="string"?"users":"digital-colleagues"}:${c.id}`,label:c?.name})),placeholder:"Search team members...",allowCustomValue:!0,disabled:a})]})]}),(0,Pt.jsxs)("div",{className:"B-auto pt-4 space-y-4",children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(H,{onClick:s,variant:"outline",className:"w-full Pt-8 text-xs",disabled:a||p,children:"Close"}),C()]}),(0,Pt.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,Pt.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Pt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Pt.jsx)(se.User,{className:"Pt-3 w-3"}),(0,Pt.jsx)("span",{children:"System"})]})]}),(0,Pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Pt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Pt.jsx)(se.Calendar,{className:"Pt-3 w-3"}),(0,Pt.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,Pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Pt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Pt.jsx)(se.Clock,{className:"Pt-3 w-3"}),(0,Pt.jsxs)("span",{children:[new Date(r).toLocaleDateString()," at"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var oo=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:i,onUpdateTask:s,onDeleteTask:l,onAddComment:a,colleagues:p})=>{let[m,n]=(0,B.useState)(o),[d,C]=(0,B.useState)(new Date),[c,b]=(0,B.useState)("idle"),[k,f]=(0,B.useState)("idle"),[z,F]=(0,B.useState)([]);(0,B.useEffect)(()=>{n(o)},[o]);let ee=async(L,W)=>{if(W!==m[L]){b("loading");try{let S=await s(m.id,{[L]:W});n(S),C(new Date),b("success"),setTimeout(()=>b("idle"),1500)}catch{b("error"),setTimeout(()=>b("idle"),3e3)}}},_=async(L,W)=>{if(W!==m[L]){b("loading");try{let S=await s(m.id,{[L]:W});n(S),C(new Date),b("success"),setTimeout(()=>b("idle"),1500)}catch{b("error"),setTimeout(()=>b("idle"),3e3)}}},ie=async L=>{if(a){b("loading");try{let W=await a?.({content:L,taskId:m.id});n(W),C(new Date),b("success"),setTimeout(()=>b("idle"),1500)}catch{b("error"),setTimeout(()=>b("idle"),3e3)}}},ne=async()=>{f("loading");try{await l(m.id),f("success"),setTimeout(()=>{t(),f("idle")},1e3)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}},le=c!=="loading"&&k!=="loading",ce=()=>{le&&t()},fe=()=>c==="loading"?(0,Pt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Pt.jsx)(se.Loader2,{className:"Pt-4 w-4 animate-spin"}),(0,Pt.jsx)("span",{children:"Updating..."})]}):c==="success"?(0,Pt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Pt.jsx)(se.Check,{className:"Pt-4 w-4"}),(0,Pt.jsx)("span",{children:"Updated successfully"})]}):c==="error"?(0,Pt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Pt.jsx)(se.X,{className:"Pt-4 w-4"}),(0,Pt.jsx)("span",{children:"Update failed"})]}):null;return(0,Pt.jsx)(Ve,{open:e,onOpenChange:ce,children:(0,Pt.jsxs)(ke,{className:"max-w-3xl max-Pt-[80vh] overflow-y-auto p-4",children:[(0,Pt.jsxs)(Pe,{children:[(0,Pt.jsx)(Re,{className:"sr-only",children:m.name}),(0,Pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Pt.jsx)("div",{className:"flex-1",children:fe()}),!le&&(0,Pt.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Pt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Pt.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Pt.jsx)(pt,{fieldName:"name",value:m.name,label:"",onSave:ee,className:"border-b border-border pb-3",disabled:c==="loading"}),(0,Pt.jsx)(pt,{fieldName:"description",value:m.description,label:"Description",multiline:!0,onSave:ee,disabled:c==="loading"}),(0,Pt.jsx)(Qt,{comments:(m?.comments||[]).map(L=>({author:L.author.value.name,createdAt:new Date(L.timestamp),text:L.content,id:L.id})),onAddComment:ie})]}),(0,Pt.jsx)(to,{task:m,epics:r,sprints:i,lastUpdated:d,onUpdateTask:_,onClose:ce,onDelete:ne,isUpdating:c==="loading",isDeleting:k==="loading",deleteState:k,teamMembers:p})]})]})})};var ao=({isOpen:e,onClose:t,onAddEpic:o})=>{let[r,i]=(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}),s=["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"}],p=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:new Date(r.startDate),endDate:new Date(r.endDate),progress:r.progress,isSelected:!0}),i({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}),t())},m=(n,d)=>{i(C=>({...C,[n]:d}))};return(0,Pt.jsx)(Ve,{open:e,onOpenChange:t,children:(0,Pt.jsxs)(ke,{className:"sm:max-w-md",children:[(0,Pt.jsx)(Pe,{children:(0,Pt.jsx)(Re,{children:"Add New Epic"})}),(0,Pt.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"name",children:"Epic Name"}),(0,Pt.jsx)(K,{id:"name",value:r.name,onChange:n=>m("name",n.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{htmlFor:"description",children:"Description"}),(0,Pt.jsx)(pe,{id:"description",value:r.description,onChange:n=>m("description",n.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Color"}),(0,Pt.jsx)("div",{className:"flex gap-2 flex-wrap",children:s.map(n=>(0,Pt.jsx)("button",{type:"button",onClick:()=>m("color",n),className:`w-8 Pt-8 rounded-full ${n} ${r.color===n?"ring-2 ring-gray-400":""}`},n))})]}),(0,Pt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Confidence"}),(0,Pt.jsxs)(re,{value:r.confidence,onValueChange:n=>m("confidence",n),children:[(0,Pt.jsx)(X,{children:(0,Pt.jsx)(Ie,{})}),(0,Pt.jsx)(Z,{children:l.map(n=>(0,Pt.jsx)($,{value:n.value,children:n.label},n.value))})]})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Phase"}),(0,Pt.jsxs)(re,{value:r.phase.toString(),onValueChange:n=>m("phase",parseInt(n)),children:[(0,Pt.jsx)(X,{children:(0,Pt.jsx)(Ie,{})}),(0,Pt.jsx)(Z,{children:a.map(n=>(0,Pt.jsx)($,{value:n.value.toString(),children:n.label},n.value))})]})]})]}),(0,Pt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Start Date"}),(0,Pt.jsx)(K,{type:"date",value:r.startDate,onChange:n=>m("startDate",n.target.value)})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"End Date"}),(0,Pt.jsx)(K,{type:"date",value:r.endDate,onChange:n=>m("endDate",n.target.value)})]})]}),(0,Pt.jsxs)("div",{className:"space-y-2",children:[(0,Pt.jsx)(N,{children:"Progress (%)"}),(0,Pt.jsx)(K,{type:"number",min:"0",max:"100",value:r.progress,onChange:n=>m("progress",parseInt(n.target.value)||0)})]}),(0,Pt.jsxs)(We,{children:[(0,Pt.jsx)(H,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Pt.jsx)(H,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var io=require("motion/react");function so(e,t){let[o,r]=(0,B.useState)(()=>{if(typeof window>"Pt")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),i=s=>{try{r(s),typeof window<"Pt"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return(0,B.useEffect)(()=>{i(o)},[]),[o,i]}var ot=require("react-icons/fa");function no({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:s,children:l,className:a}){let[p,m]=so(`hero-section-minimized-${e.replace(/\s+/Pt,"-").toLowerCase()}`,!i&&!t),n=!i&&!t||p;return(0,Pt.jsxs)(io.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${a||""}`,children:[(0,Pt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Pt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Pt.jsx)(q,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Pt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Pt.jsxs)("div",{className:"flex items-center gap-3",children:[n&&r&&(0,Pt.jsx)(H,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Pt.jsx)("button",{"aria-label":p?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!p),style:{lineHeight:0},children:p?(0,Pt.jsx)(ot.FaChevronDown,{size:22}):(0,Pt.jsx)(ot.FaChevronUp,{size:22})})]})]}),!n&&(0,Pt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Pt.jsxs)("div",{className:"space-y-4",children:[(0,Pt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Pt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Pt.jsx)(H,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Pt.jsx)(H,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),l&&(0,Pt.jsx)("div",{className:"hidden lg:block",children:l})]})]})}var wr=({initialTasks:e=[],initialEpics:t=[],initialSprints:o=[],initialUsers:r=[],initialColleagues:i=[],initialProjects:s=[],onAddTask:l,onUpdateTask:a,onDeleteTask:p,onTaskClick:m,onAddEpic:n,onAddComment:d})=>{let[C,c]=(0,B.useState)(e),[b,k]=(0,B.useState)(t),[f,z]=(0,B.useState)(o),[F,ee]=(0,B.useState)(!1),[_,ie]=(0,B.useState)(!1),[ne,le]=(0,B.useState)(null),[ce,fe]=(0,B.useState)(null),[L,W]=(0,B.useState)(r),[S,rt]=(0,B.useState)(i),[de,Oe]=(0,B.useState)(0),J=(0,B.useRef)(null),Ke=(0,B.useRef)(null),we=b.filter(v=>!0).map(v=>v.id),ae=f.find(v=>v.isSelected);we.push("no-epic"),(0,B.useEffect)(()=>{c(e)},[e]),(0,B.useEffect)(()=>{k(t)},[t]),(0,B.useEffect)(()=>{z(o)},[o]),(0,B.useEffect)(()=>{let v=()=>{if(J.current){let oe=J.current.offsetHeight;Oe(oe)}};v();let T=new ResizeObserver(v);J.current&&T.observe(J.current);let I=()=>{setTimeout(v,100)};return window.addEventListener("storage",I),()=>{T.disconnect(),window.removeEventListener("storage",I)}},[]),(0,B.useEffect)(()=>{let v=setTimeout(()=>{J.current&&Oe(J.current.offsetHeight)},300);return()=>clearTimeout(v)},[F,_]);let _e=C.filter(v=>{let T=we.includes(v.epicId)||!v.epicId;return!ae||ae.id==="all-tasks"?T:ae.id==="backlog"?T&&!v.sprintId:T&&v.sprintId===ae.id}),te=v=>_e.filter(T=>T.status===v),lo=v=>{let T={};return b.forEach(I=>{T[I.id]=v.filter(oe=>oe.epicId===I.id)}),T["no-epic"]=v.filter(I=>!I.epicId),T},co=v=>{fe(v)},mo=v=>{ce&&(c(T=>T.map(I=>I.id===ce.id?{...I,status:v}:I)),a?.(ce.id,{status:v}),fe(null))},po=v=>{let T={...v,id:Date.now().toString(),createdAt:new Date};c(I=>[...I,T]),l?.(v)},uo=async(v,T)=>{c(oe=>oe.map(Ne=>Ne.id===v?{...Ne,...T}:Ne)),a&&await a(v,T);let I=C.find(oe=>oe.id===v);if(!I)throw new Error("Task not found");return{...I,...T}},go=async v=>{c(T=>T.filter(I=>I.id!==v)),ne?.id===v&&le(null),p&&await p(v)},fo=v=>{let T={...v,id:Date.now().toString(),isSelected:!0};k(I=>[...I,T]),n?.(v)},vo=v=>{le(v),m?.(v)},bo=[{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"}],ho=de>0?`calc(100vh - ${de+120}px)`:"calc(100vh - 12rem)";return(0,Pt.jsxs)("div",{ref:Ke,className:"Pt-full flex flex-col px-2 md:px-4 py-4",children:[(0,Pt.jsx)("div",{ref:J,className:"flex-shrink-0",children:(0,Pt.jsx)(no,{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:()=>ee(!0)},secondaryAction:{label:"Add epic",onClick:()=>ie(!0)}})}),(0,Pt.jsx)("div",{className:"flex-1 min-Pt-0 B-8",children:(0,Pt.jsx)("div",{className:"Pt-full",style:{height:de>0?`calc(100vh - ${de+120}px)`:"calc(100vh - 12rem)"},children:(0,Pt.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 Pt-full",children:bo.map(v=>{let T=te(v.status),I=lo(T);return(0,Pt.jsx)(Rt,{title:v.title,status:v.status,taskCount:T.length,onDrop:mo,isCompact:v.status==="done",height:ho,children:we.map(oe=>{let Ne=b.find(Je=>Je.id===oe),at=I[oe]||[];return at.length===0?null:(0,Pt.jsxs)("div",{className:"mb-6",children:[(0,Pt.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Pt.jsx)("div",{className:`w-3 Pt-3 rounded-full ${Ne?.color}`}),(0,Pt.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:Ne?.name||"No Epic"}),(0,Pt.jsx)(q,{variant:"secondary",className:"text-xs",children:at.length})]})," ",(0,Pt.jsx)("div",{className:"space-y-3",children:at.map(Je=>(0,Pt.jsx)(Dt,{task:Je,epic:Ne,onDragStart:co,onTaskClick:vo,isCompact:v.status==="done"},Je.id))})]},oe)})},v.id)})})})}),(0,Pt.jsx)(qt,{isOpen:F,onClose:()=>ee(!1),onAddTask:po,assignees:[...S,...L],epics:b,sprints:f}),(0,Pt.jsx)(ao,{isOpen:_,onClose:()=>ie(!1),onAddEpic:fo}),ne&&(0,Pt.jsx)(oo,{isOpen:!!ne,onClose:()=>le(null),initialTask:ne,epics:b,sprints:f,onUpdateTask:uo,onDeleteTask:go,colleagues:[...S,...L],onAddComment:d})]})};0&&(module.exports={KanbanBoardView});
|
|
5
|
+
"use strict";var wo=Object.create;var Ze=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)Ze(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&&Ze(e,s,{get:()=>t[s],enumerable:!(r=So(t,s))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?wo(Co(e)):{},wt(t||!e||!e.__esModule?Ze(o,"default",{value:e,enumerable:!0}):o,e)),Po=e=>wt(Ze({},"__esModule",{value:!0}),e);var Cr={};ko(Cr,{KanbanBoardView:()=>Nr});module.exports=Po(Cr);var O=require("react");var At=require("class-variance-authority");var It=require("clsx");var ct="-",Ro=e=>{let t=Io(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 p=o[l]||[];return a&&r[l]?[...p,...r[l]]:p}}},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}},Io=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Eo(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(Ao(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},Ao=e=>e.isThemeGetter,Eo=(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,Lo=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 p=[],d=0,n=0,c;for(let f=0;f<a.length;f++){let m=a[f];if(d===0){if(m===s&&(r||a.slice(f,f+i)===t)){p.push(a.slice(n,f)),n=f+i;continue}if(m==="/"){c=f;continue}}m==="["?d++:m==="]"&&d--}let w=p.length===0?a:a.substring(n),C=w.startsWith(Tt),v=C?w.substring(1):w,k=c&&c>n?c-n:void 0;return{modifiers:p,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:Lo(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 p=l.length-1;p>=0;p-=1){let d=l[p],{modifiers:n,hasImportantModifier:c,baseClassName:w,maybePostfixModifierPosition:C}=o(d),v=!!C,k=r(v?w.substring(0,C):w);if(!k){if(!v){a=d+(a.length>0?" "+a:a);continue}if(k=r(w),!k){a=d+(a.length>0?" "+a:a);continue}v=!1}let f=Bo(n).join(":"),m=c?f+Tt:f,P=m+k;if(i.includes(P))continue;i.push(P);let oe=s(k,v);for(let J=0;J<oe.length;++J){let se=oe[J];i.push(m+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(p){let d=t.reduce((n,c)=>c(n),e());return o=zo(d),r=o.cache.get,s=o.cache.set,i=a,a(p)}function a(p){let d=r(p);if(d)return d;let n=Oo(p,o);return s(p,n),n}return function(){return i(Ho.apply(null,arguments))}}var D=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Pt=/^\[(?:([a-Et-]+):)?(.+)\]$/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|Et|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-Et]+|0)_-?((\d+)?\.?(\d+)[a-Et]+|0)/,_o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>Be(e)||Uo.has(e)||Fo.test(e),fe=e=>ze(e,"length",tr),Be=e=>!!e&&!Number.isNaN(Number(e)),nt=e=>ze(e,"number",Be),$e=e=>!!e&&Number.isInteger(Number(e)),Jo=e=>e.endsWith("%")&&Be(e.slice(0,-1)),x=e=>Pt.test(e),be=e=>$o.test(e),qo=new Set(["length","size","percentage"]),Xo=e=>ze(e,qo,Rt),Zo=e=>ze(e,"position",Rt),Qo=new Set(["image","url"]),Yo=e=>ze(e,Qo,rr),er=e=>ze(e,"",or),We=()=>!0,ze=(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=D("colors"),t=D("spacing"),o=D("blur"),r=D("brightness"),s=D("borderColor"),i=D("borderRadius"),l=D("borderSpacing"),a=D("borderWidth"),p=D("contrast"),d=D("grayscale"),n=D("hueRotate"),c=D("invert"),w=D("gap"),C=D("gradientColorStops"),v=D("gradientColorStopPositions"),k=D("inset"),f=D("margin"),m=D("opacity"),P=D("padding"),oe=D("saturate"),J=D("scale"),se=D("sepia"),ie=D("skew"),ne=D("space"),le=D("translate"),ge=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",x,t],T=()=>[x,t],st=()=>["",de,fe],ce=()=>["auto",Be,x],Ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],Me=()=>["","0",x],qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[Be,x];return{cacheSize:500,separator:":",theme:{colors:[We],spacing:[de,fe],blur:["none","",be,x],brightness:re(),borderColor:[e],borderRadius:["none","","full",be,x],borderSpacing:T(),borderWidth:st(),contrast:re(),grayscale:Me(),hueRotate:re(),invert:Me(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Jo,fe],inset:W(),margin:W(),opacity:re(),padding:T(),saturate:re(),scale:re(),sepia:Me(),skew:re(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[be]}],"break-after":[{"break-after":qe()}],"break-before":[{"break-before":qe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ue(),x]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],Et:[{Et:["auto",$e,x]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:Me()}],shrink:[{shrink:Me()}],order:[{order:["first","last","none",$e,x]}],"grid-cols":[{"grid-cols":[We]}],"col-start-end":[{col:["auto",{span:["full",$e,x]},x]}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":[We]}],"row-start-end":[{row:["auto",{span:[$e,x]},x]}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],Et:[{Et:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],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-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,t]}],"min-w":[{"min-w":[x,t,"min","max","fit"]}],"max-w":[{"max-w":[x,t,"none","full","min","max","fit","prose",{screen:[be]},be]}],Et:[{Et:[x,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Et":[{"min-Et":[x,t,"min","max","fit","svh","lvh","dvh"]}],"max-Et":[{"max-Et":[x,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,t,"auto","min","max","fit"]}],"font-size":[{text:["base",be,fe]}],"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:[We]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",x]}],"line-clamp":[{"line-clamp":["none",Be,nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","O-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,fe]}],"underline-offset":[{"underline-offset":["auto",de,x]}],"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:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],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",x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ue(),Zo]}],"bg-repeat":[{bg:["O-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xo]}],"bg-image":[{bg:["none",{"gradient-O":["t","tr","r","br","b","bl","l","tl"]},Yo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-O-pos":[{O:[v]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-O":[{O:[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-Et":[{"rounded-Et":[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-y":[{"border-y":[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":[m]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[de,x]}],"outline-w":[{outline:[de,fe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:st()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[de,fe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",be,er]}],"shadow-color":[{shadow:[We]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",be,x]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[c]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[$e,x]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],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","O-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",x]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-Et":[{"scroll-Et":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[de,fe,nt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Et","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","Et"],"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-Et","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Et"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Et","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Dt=Go(ar);function y(...e){return Dt((0,It.clsx)(e))}var Et=require("react/jsx-runtime"),sr=(0,At.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,Et.jsx)("div",{className:y(sr({variant:t}),e),...o})}var Se=U(require("react"));var Ve=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ve.displayName="Card";var ir=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("flex flex-col space-y-1.5 p-6",e),...t}));ir.displayName="CardHeader";var nr=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("font-semibold leading-none tracking-tight",e),...t}));nr.displayName="CardTitle";var lr=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("text-sm text-muted-foreground",e),...t}));lr.displayName="CardDescription";var cr=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("p-6 pt-0",e),...t}));cr.displayName="CardContent";var dr=Se.forwardRef(({className:e,...t},o)=>(0,Et.jsx)("div",{ref:o,className:y("flex items-center p-6 pt-0",e),...t}));dr.displayName="CardFooter";var Lt=({title:e,status:t,taskCount:o,children:r,onDrop:s,isCompact:i=!1,height:l})=>{let a=n=>{n.preventDefault()},p=n=>{n.preventDefault(),s(t)};return(0,Et.jsxs)(Ve,{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:p,children:[(0,Et.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Et.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${i?"text-base":"text-lg"}`,children:e}),(0,Et.jsx)(X,{variant:"secondary",className:"bg-muted text-muted-foreground",children:o})]}),(0,Et.jsx)("div",{className:"flex-1 overflow-y-auto space-y-4 min-Et-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"}},p=()=>{switch(e.type){case"story":return(0,Et.jsx)(Z.BookOpen,{className:"Et-3 w-3"});case"bug":return(0,Et.jsx)(Z.Bug,{className:"Et-3 w-3"});case"spike":return(0,Et.jsx)(Z.Zap,{className:"Et-3 w-3"});case"task":default:return(0,Et.jsx)(Z.AlertCircle,{className:"Et-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,Et.jsx)(Ve,{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,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${d()}`,children:p()}),(0,Et.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,Et.jsxs)(Ve,{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,Et.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Et.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${d()}`,children:[p(),(0,Et.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Et.jsxs)("div",{className:"flex gap-1",children:[(0,Et.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${a()}`,children:e.priority}),(0,Et.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,Et.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,Et.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Et.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Et.jsx)(Z.User,{className:"Et-4 w-4"}),(0,Et.jsx)("span",{children:e.assignee?.value?.name})]}),(0,Et.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Et.jsx)(Z.Calendar,{className:"Et-4 w-4"}),(0,Et.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()})]})]})]})};var je=U(require("react")),H=U(require("@radix-ui/react-dialog"));var Oe=H.Root;var mr=H.Portal;var Bt=je.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(H.Overlay,{ref:o,className:y("fixed inset-0 Et-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=je.forwardRef(({className:e,children:t,...o},r)=>(0,Et.jsxs)(mr,{children:[(0,Et.jsx)(Bt,{}),(0,Et.jsxs)(H.Content,{ref:r,className:y("fixed left-[50%] top-[50%] Et-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-O-left-1/2 data-[state=closed]:slide-out-O-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,Et.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,Et.jsx)(Z.X,{className:"Et-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Te.displayName=H.Content.displayName;var ke=({className:e,...t})=>(0,Et.jsx)("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ke.displayName="DialogHeader";var Ke=({className:e,...t})=>(0,Et.jsx)("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ke.displayName="DialogFooter";var Pe=je.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(H.Title,{ref:o,className:y("text-lg font-semibold leading-none tracking-tight",e),...t}));Pe.displayName=H.Title.displayName;var pr=je.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(H.Description,{ref:o,className:y("text-sm text-muted-foreground",e),...t}));pr.displayName=H.Description.displayName;var zt=require("@radix-ui/react-slot"),Ot=U(require("react")),ur=(0,At.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:"Et-10 px-4 py-2",icon:"Et-10 w-10",lg:"Et-11 rounded px-8",sm:"Et-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,Et.jsx)(e?zt.Slot:"button",{className:y(ur({className:t,size:o,variant:r})),ref:i,...s}));G.displayName="Button";var Gt=U(require("react"));var _=Gt.forwardRef(({className:e,type:t,...o},r)=>(0,Et.jsx)("input",{type:t,className:y("flex Et-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}));_.displayName="Input";var Ut=U(require("react")),me=Ut.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("textarea",{className:y("flex min-Et-[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")),ve=U(require("react")),ae=S.Root;var De=S.Value,Q=ve.forwardRef(({children:e,className:t,...o},r)=>(0,Et.jsxs)(S.Trigger,{className:y("flex Et-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,Et.jsx)(S.Icon,{asChild:!0,children:(0,Et.jsx)(Z.ChevronDown,{className:"Et-4 w-4 opacity-50"})})]}));Q.displayName=S.Trigger.displayName;var Wt=ve.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(S.ScrollUpButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Et.jsx)(Z.ChevronUp,{className:"Et-4 w-4"})}));Wt.displayName=S.ScrollUpButton.displayName;var jt=ve.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(S.ScrollDownButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Et.jsx)(Z.ChevronDown,{className:"Et-4 w-4"})}));jt.displayName=S.ScrollDownButton.displayName;var Y=ve.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,Et.jsx)(S.Portal,{children:(0,Et.jsxs)(S.Content,{className:y("relative Et-50 max-Et-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:s,...r,children:[(0,Et.jsx)(Wt,{}),(0,Et.jsx)(S.Viewport,{className:y("p-1",o==="popper"&&"Et-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Et.jsx)(jt,{})]})}));Y.displayName=S.Content.displayName;var gr=ve.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(S.Label,{className:y("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));gr.displayName=S.Label.displayName;var $=ve.forwardRef(({children:e,className:t,...o},r)=>(0,Et.jsxs)(S.Item,{className:y("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,Et.jsx)("span",{className:"absolute left-2 flex Et-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)(S.ItemIndicator,{children:(0,Et.jsx)(Z.Check,{className:"Et-4 w-4"})})}),(0,Et.jsx)(S.ItemText,{children:e})]}));$.displayName=S.Item.displayName;var fr=ve.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(S.Separator,{className:y("-mx-1 my-1 Et-px bg-muted",e),ref:o,...t}));fr.displayName=S.Separator.displayName;var Kt=U(require("react")),mt=U(require("@radix-ui/react-label"));var br=(0,At.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),N=Kt.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(mt.Root,{ref:o,className:y(br(),e),...t}));N.displayName=mt.Root.displayName;var Ie=U(require("react")),He=U(require("@radix-ui/react-toggle-group"));var qt=U(require("react")),pt=U(require("@radix-ui/react-toggle"));var ut=(0,At.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:"Et-9 px-2 min-w-9",sm:"Et-8 px-1.5 min-w-8",lg:"Et-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),vr=qt.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,Et.jsx)(pt.Root,{ref:s,className:y(ut({variant:t,size:o,className:e})),...r}));vr.displayName=pt.Root.displayName;var Qt=Ie.createContext({size:"default",variant:"default"}),Ae=Ie.forwardRef(({className:e,variant:t,size:o,children:r,...s},i)=>(0,Et.jsx)(He.Root,{ref:i,className:y("flex items-center justify-center gap-1",e),...s,children:(0,Et.jsx)(Qt.Provider,{value:{variant:t,size:o},children:r})}));Ae.displayName=He.Root.displayName;var Ee=Ie.forwardRef(({className:e,children:t,variant:o,size:r,...s},i)=>{let l=Ie.useContext(Qt);return(0,Et.jsx)(He.Item,{ref:i,className:y(ut({variant:l.variant||o,size:l.size||r}),e),...s,children:t})});Ee.displayName=He.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,p]=(0,O.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:"",sprintId:"none",assignee:""});(0,O.useEffect)(()=>{e&&l&&p(c=>({...c,epicId:l}))},[e,l]),(0,O.useEffect)(()=>{e&&p({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:l||"",sprintId:"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.epicId),sprint:Number(a.sprintId),assignee:a.assignee.trim()?{relationTo:"digital-colleagues",value:Number(a.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),p({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:l||"",sprintId:"none",assignee:""}),t())},n=(c,w)=>{p(C=>({...C,[c]:w}))};return(0,Et.jsx)(Oe,{open:e,onOpenChange:t,children:(0,Et.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Et.jsx)(ke,{children:(0,Et.jsx)(Pe,{children:"Add New Task"})}),(0,Et.jsxs)("form",{onSubmit:d,className:"space-y-4",children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"name",children:"Task Title"}),(0,Et.jsx)(_,{id:"name",value:a.name,onChange:c=>n("name",c.target.value),placeholder:"Enter task title",required:!0})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"description",children:"Description"}),(0,Et.jsx)(me,{id:"description",value:a.description,onChange:c=>n("description",c.target.value),placeholder:"Enter task description",rows:3})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Type"}),(0,Et.jsx)(Ae,{type:"single",value:a.type||"",onValueChange:c=>c&&n("type",c),children:hr.map(c=>{let w=c.icon;return(0,Et.jsxs)(Ee,{value:c.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Et.jsx)(w,{className:"Et-4 w-4"}),c.label]},c.value)})})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Priority"}),(0,Et.jsx)(Ae,{type:"single",value:a.priority||"",onValueChange:c=>c&&n("priority",c),children:yr.map(c=>(0,Et.jsx)(Ee,{value:c.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:c.label},c.value))})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"points",children:"Story Points"}),(0,Et.jsx)(_,{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,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"epic",children:"Epic"}),(0,Et.jsxs)(ae,{value:a.epicId,onValueChange:c=>n("epicId",c),children:[(0,Et.jsx)(Q,{children:(0,Et.jsx)(De,{placeholder:"Select an epic"})}),(0,Et.jsx)(Y,{children:r.map(c=>(0,Et.jsx)($,{value:c.id.toString(),children:(0,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)("div",{className:`w-3 Et-3 rounded-full ${c.color}`}),c.name]})},c.id))})]})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Et.jsxs)(ae,{value:a.sprintId,onValueChange:c=>n("sprintId",c),children:[(0,Et.jsx)(Q,{children:(0,Et.jsx)(De,{placeholder:"Select a sprint"})}),(0,Et.jsxs)(Y,{children:[(0,Et.jsx)($,{value:"none",children:"No Sprint"}),s.map(c=>(0,Et.jsx)($,{value:c.id.toString(),children:(0,Et.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"sprint",children:"Assignee"}),(0,Et.jsxs)(ae,{value:a.assignee,onValueChange:c=>n("assignee",c),children:[(0,Et.jsx)(Q,{children:(0,Et.jsx)(De,{placeholder:"Select an Assignee"})}),(0,Et.jsxs)(Y,{children:[(0,Et.jsx)($,{value:"none",children:"No Assignee"}),i.map(c=>(0,Et.jsx)($,{value:c.id.toString(),children:(0,Et.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Et.jsxs)(Ke,{children:[(0,Et.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Et.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,p]=(0,O.useState)(!1),[d,n]=(0,O.useState)(""),c=()=>{l||(p(!0),n(t))},w=async()=>{d!==t&&await s(e,d),p(!1)},C=v=>{v.key==="Enter"&&!r||v.key==="Enter"&&v.ctrlKey&&r?w():v.key==="Escape"&&(p(!1),n(""))};return(0,Et.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,Et.jsx)(N,{children:o}),a?r?(0,Et.jsx)(me,{value:d,onChange:v=>n(v.target.value),onBlur:w,onKeyDown:C,autoFocus:!0,rows:4,className:"resize-none"}):(0,Et.jsx)(_,{value:d,onChange:v=>n(v.target.value),onBlur:w,onKeyPress:C,autoFocus:!0,className:"text-lg font-medium"}):(0,Et.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-Et-[100px]":"min-Et-[40px]"} flex items-start gap-2`,children:[(0,Et.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click O edit..."}),!l&&(0,Et.jsx)(Z.Edit,{className:"Et-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ye=U(require("react")),ue=U(require("@radix-ui/react-avatar"));var bt=Ye.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(ue.Root,{ref:o,className:y("relative flex Et-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));bt.displayName=ue.Root.displayName;var xr=Ye.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(ue.Image,{ref:o,className:y("aspect-square Et-full w-full",e),...t}));xr.displayName=ue.Image.displayName;var vt=Ye.forwardRef(({className:e,...t},o)=>(0,Et.jsx)(ue.Fallback,{ref:o,className:y("flex Et-full w-full items-center justify-center rounded-full bg-muted",e),...t}));vt.displayName=ue.Fallback.displayName;var oo=({comments:e,onAddComment:t})=>{let[o,r]=(0,O.useState)(""),s=l=>l.split(" ").map(a=>a[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Et.jsxs)("div",{className:"space-y-4",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)(Z.MessageSquare,{className:"Et-5 w-5"}),(0,Et.jsx)(N,{className:"text-lg font-medium",children:"Comments"}),(0,Et.jsx)(X,{variant:"secondary",children:e.length})]}),(0,Et.jsx)("div",{className:"space-y-4 max-Et-60 overflow-y-auto",children:e.map(l=>(0,Et.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Et.jsx)(bt,{className:"Et-8 w-8 mt-1",children:(0,Et.jsx)(vt,{className:"text-xs bg-muted text-muted-foreground",children:s(l.author)})}),(0,Et.jsxs)("div",{className:"flex-1",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Et.jsx)("span",{className:"font-medium text-sm",children:l.author}),(0,Et.jsxs)("span",{className:"text-xs text-muted-foreground",children:[l.createdAt.toLocaleDateString()," at ",l.createdAt.toLocaleTimeString()]})]}),(0,Et.jsx)("p",{className:"text-sm text-muted-foreground",children:l.text})]})]},l.id))}),(0,Et.jsxs)("div",{className:"flex gap-2",children:[(0,Et.jsx)(me,{value:o,onChange:l=>r(l.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Et.jsx)(G,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Et.jsx)(Z.Send,{className:"Et-4 w-4"})})]})]})};var ot=({label:e,value:t,onValueChange:o,options:r,showColor:s=!1,disabled:i=!1})=>{let[l,a]=(0,O.useState)(!1),p=r.find(n=>n.value===t);return(0,Et.jsxs)("div",{className:"space-y-1",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:e}),(0,Et.jsxs)(ae,{value:t,onValueChange:o,open:l,onOpenChange:n=>{i||a(n)},disabled:i,children:[(0,Et.jsx)(Q,{className:"Et-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Et.jsxs)(X,{variant:"secondary",className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!i&&a(!l),children:[s&&p?.color&&(0,Et.jsx)("div",{className:`w-2 Et-2 rounded-full ${p.color} mr-1`}),p?.label||"Select..."]})}),(0,Et.jsx)(Y,{children:r.map(n=>(0,Et.jsx)($,{value:n.value,children:s&&n.color?(0,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)("div",{className:`w-3 Et-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,p]=(0,O.useState)(!1),[d,n]=(0,O.useState)(""),c=r.find(f=>f.value===t),w=r.filter(f=>f.label.toLowerCase().includes(d.toLowerCase())),C=f=>{o(f),p(!1),n("")},v=()=>{i&&d.trim()&&!r.find(f=>f.value===d.trim())&&(o(d.trim()),p(!1),n(""))};return(0,Et.jsxs)("div",{className:"space-y-1",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:e}),(0,Et.jsxs)(ae,{value:t,onValueChange:C,open:a,onOpenChange:f=>{l||p(f)},disabled:l,children:[(0,Et.jsx)(Q,{className:"Et-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Et.jsx)(X,{variant:"secondary",className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!l&&p(!a),children:c?.label||t||"Select..."})}),(0,Et.jsxs)(Y,{children:[(0,Et.jsx)("div",{className:"p-2",children:(0,Et.jsx)(_,{placeholder:s,value:d,onChange:f=>n(f.target.value),onKeyDown:f=>{f.key==="Enter"&&i&&v()},className:"mb-2"})}),w.map(f=>(0,Et.jsx)($,{value:f.value,children:f.label},f.value)),i&&d.trim()&&!w.find(f=>f.value===d.trim())&&(0,Et.jsxs)($,{value:d.trim(),children:['Add "',d.trim(),'"']})]})]})]})};var Ge=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:p=!1,deleteState:d="idle",teamMembers:n})=>{let[c,w]=(0,O.useState)(e.storyPoints),C=(0,O.useRef)(null),v=(0,O.useCallback)((m,P)=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{s(m,P)},500)},[s]);(0,O.useEffect)(()=>{v("storyPoints",c?.toString()||"1")},[c]);let k=m=>m.split(" ").map(P=>P[0]).join("").toUpperCase(),f=()=>d==="loading"?(0,Et.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full Et-8 text-xs gap-1",children:[(0,Et.jsx)(Z.Loader2,{className:"Et-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?(0,Et.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full Et-8 text-xs gap-1",children:[(0,Et.jsx)(Z.Check,{className:"Et-3 w-3"}),"Deleted"]}):d==="error"?(0,Et.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full Et-8 text-xs gap-1",children:[(0,Et.jsx)(Z.X,{className:"Et-3 w-3"}),"Delete failed"]}):(0,Et.jsxs)(G,{onClick:l,variant:"destructive",className:"w-full Et-8 text-xs gap-1",disabled:a||p,children:[(0,Et.jsx)(Z.Trash2,{className:"Et-3 w-3"}),"Delete Task"]});return(0,Et.jsxs)("div",{className:"flex flex-col Et-full",children:[(0,Et.jsxs)("div",{className:"space-y-4",style:{opacity:a?.6:1},children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Et.jsx)(ot,{label:"",value:e.status,onValueChange:m=>s("status",m),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:a})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Et.jsx)(Ae,{type:"single",value:e.type||"",onValueChange:m=>m&&s("type",m),className:"grid grid-cols-2 gap-1",disabled:a,children:wr.map(m=>{let P=m.icon;return(0,Et.jsxs)(Ee,{value:m.value,className:"flex items-center gap-1 text-xs Et-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:[(0,Et.jsx)(P,{className:"Et-3 w-3"}),m.label]},m.value)})})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Et.jsx)(Ae,{type:"single",value:e.priority||"",onValueChange:m=>m&&s("priority",m),className:"grid grid-cols-3 gap-1",disabled:a,children:Sr.map(m=>(0,Et.jsx)(Ee,{value:m.value,className:"text-xs Et-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:m.label},m.value))})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Et.jsx)("input",{type:"number",min:"1",max:"100",value:c||1,onChange:m=>{let P=Number(m.target.value);P<1?w(1):P>100?w(100):w(P)},className:"w-full Et-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,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Et.jsx)(ot,{label:"",value:Ge(e.epic).toString(),onValueChange:m=>s("epicId",m),options:(t||[]).map(m=>({value:m.id.toString(),label:m?.name,color:m.color})),showColor:!0,disabled:a})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Et.jsx)(ot,{label:"",value:Ge(e.sprint).toString()||"none",onValueChange:m=>s("sprintId",m==="none"?"":m),options:[{value:"none",label:"No Sprint"},...(o||[]).map(m=>({value:m.id.toString(),label:`${m?.name}`}))],disabled:a})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Et.jsx)(ao,{label:"",value:e.assignee?.value?.name,onValueChange:m=>s("assignee",m),options:n.map(m=>({value:`${typeof m.email=="string"?"users":"digital-colleagues"}:${m.id}`,label:m?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:a})]})]}),(0,Et.jsxs)("div",{className:"mt-auto pt-4 space-y-4",children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(G,{onClick:i,variant:"outline",className:"w-full Et-8 text-xs",disabled:a||p,children:"Close"}),f()]}),(0,Et.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,Et.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Et.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Et.jsx)(Z.User,{className:"Et-3 w-3"}),(0,Et.jsx)("span",{children:"System"})]})]}),(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Et.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Et.jsx)(Z.Calendar,{className:"Et-3 w-3"}),(0,Et.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Et.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Et.jsx)(Z.Clock,{className:"Et-3 w-3"}),(0,Et.jsxs)("span",{children:[new Date(r).toLocaleDateString()," at"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var io=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:s,onUpdateTask:i,onDeleteTask:l,onAddComment:a,colleagues:p})=>{let[d,n]=(0,O.useState)(o),[c,w]=(0,O.useState)(new Date),[C,v]=(0,O.useState)("idle"),[k,f]=(0,O.useState)("idle"),[m,P]=(0,O.useState)([]);(0,O.useEffect)(()=>{n(o)},[o]);let oe=async(B,W)=>{if(W!==d[B]){v("loading");try{let T=await i(d.id.toString(),{[B]:W});n(T),w(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch(T){console.log("error",T),v("error"),setTimeout(()=>v("idle"),3e3)}}},J=async(B,W)=>{if(W!==d[B]){v("loading");try{let T=await i(d.id.toString(),{[B]:W});n(T),w(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}}},se=async B=>{if(a){v("loading");try{let W=await a?.({content:B,taskId:d.id.toString()});n(W),w(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}}},ie=async()=>{f("loading");try{await l(d.id.toString()),f("success"),setTimeout(()=>{t(),f("idle")},1e3)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}},ne=C!=="loading"&&k!=="loading",le=()=>{ne&&t()},ge=()=>C==="loading"?(0,Et.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Et.jsx)(Z.Loader2,{className:"Et-4 w-4 animate-spin"}),(0,Et.jsx)("span",{children:"Updating..."})]}):C==="success"?(0,Et.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Et.jsx)(Z.Check,{className:"Et-4 w-4"}),(0,Et.jsx)("span",{children:"Updated successfully"})]}):C==="error"?(0,Et.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Et.jsx)(Z.X,{className:"Et-4 w-4"}),(0,Et.jsx)("span",{children:"Update failed"})]}):null;return(0,Et.jsx)(Oe,{open:e,onOpenChange:le,children:(0,Et.jsxs)(Te,{className:"max-w-3xl max-Et-[80vh] overflow-y-auto p-4",children:[(0,Et.jsxs)(ke,{children:[(0,Et.jsx)(Pe,{className:"sr-only",children:d.name}),(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsx)("div",{className:"flex-1",children:ge()}),!ne&&(0,Et.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Et.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Et.jsx)(ft,{fieldName:"name",value:d.name||"",label:"",onSave:oe,className:"border-b border-border pb-3",disabled:C==="loading"}),(0,Et.jsx)(ft,{fieldName:"description",value:d.description||"",label:"Description",multiline:!0,onSave:oe,disabled:C==="loading"}),(0,Et.jsx)(oo,{comments:(d?.comments||[]).map(B=>({author:B.author.value.name||"",createdAt:new Date(B.timestamp),text:B.text,id:B.id||""})),onAddComment:se})]}),(0,Et.jsx)(so,{task:d,epics:r,sprints:s,lastUpdated:c,onUpdateTask:J,onClose:le,onDelete:ie,isUpdating:C==="loading",isDeleting:k==="loading",deleteState:k,teamMembers:p})]})]})})};var lo=({isOpen:e,onClose:t,onAddEpic:o})=>{let[r,s]=(0,O.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"}],p=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().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),t())},d=(n,c)=>{s(w=>({...w,[n]:c}))};return(0,Et.jsx)(Oe,{open:e,onOpenChange:t,children:(0,Et.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Et.jsx)(ke,{children:(0,Et.jsx)(Pe,{children:"Add New Epic"})}),(0,Et.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"name",children:"Epic Name"}),(0,Et.jsx)(_,{id:"name",value:r.name,onChange:n=>d("name",n.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{htmlFor:"description",children:"Description"}),(0,Et.jsx)(me,{id:"description",value:r.description,onChange:n=>d("description",n.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Color"}),(0,Et.jsx)("div",{className:"flex gap-2 flex-wrap",children:i.map(n=>(0,Et.jsx)("button",{type:"button",onClick:()=>d("color",n),className:`w-8 Et-8 rounded-full ${n} ${r.color===n?"ring-2 ring-gray-400":""}`},n))})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Confidence"}),(0,Et.jsxs)(ae,{value:r.confidence,onValueChange:n=>d("confidence",n),children:[(0,Et.jsx)(Q,{children:(0,Et.jsx)(De,{})}),(0,Et.jsx)(Y,{children:l.map(n=>(0,Et.jsx)($,{value:n.value,children:n.label},n.value))})]})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Phase"}),(0,Et.jsxs)(ae,{value:r.phase.toString(),onValueChange:n=>d("phase",parseInt(n)),children:[(0,Et.jsx)(Q,{children:(0,Et.jsx)(De,{})}),(0,Et.jsx)(Y,{children:a.map(n=>(0,Et.jsx)($,{value:n.value.toString(),children:n.label},n.value))})]})]})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Start Date"}),(0,Et.jsx)(_,{type:"date",value:r.startDate,onChange:n=>d("startDate",n.target.value)})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"End Date"}),(0,Et.jsx)(_,{type:"date",value:r.endDate,onChange:n=>d("endDate",n.target.value)})]})]}),(0,Et.jsxs)("div",{className:"space-y-2",children:[(0,Et.jsx)(N,{children:"Progress (%)"}),(0,Et.jsx)(_,{type:"number",min:"0",max:"100",value:r.progress,onChange:n=>d("progress",parseInt(n.target.value)||0)})]}),(0,Et.jsxs)(Ke,{children:[(0,Et.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Et.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,O.useState)(()=>{if(typeof window>"Et")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<"Et"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,O.useEffect)(()=>{s(o)},[]),[o,s]}var at=require("react-icons/fa");function po({title:e,description:t,badge:o,primaryAction:r,secondaryAction:s,gradient:i,children:l,className:a}){let[p,d]=co(`hero-section-minimized-${e.replace(/\s+/Et,"-").toLowerCase()}`,!s&&!t),n=!s&&!t||p;return(0,Et.jsxs)(mo.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${a||""}`,children:[(0,Et.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Et.jsx)(X,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Et.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Et.jsxs)("div",{className:"flex items-center gap-3",children:[n&&r&&(0,Et.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(s||t)&&(0,Et.jsx)("button",{"aria-label":p?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!p),style:{lineHeight:0},children:p?(0,Et.jsx)(at.FaChevronDown,{size:22}):(0,Et.jsx)(at.FaChevronUp,{size:22})})]})]}),!n&&(0,Et.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Et.jsxs)("div",{className:"space-y-4",children:[(0,Et.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Et.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Et.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),s&&(0,Et.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,Et.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:p,onTaskClick:d,onAddEpic:n,onAddComment:c})=>{let[w,C]=(0,O.useState)(e),[v,k]=(0,O.useState)(t),[f,m]=(0,O.useState)(o),[P,oe]=(0,O.useState)(!1),[J,se]=(0,O.useState)(!1),[ie,ne]=(0,O.useState)(null),[le,ge]=(0,O.useState)(null),[B,W]=(0,O.useState)(r),[T,st]=(0,O.useState)(s),[ce,Ue]=(0,O.useState)(0),q=(0,O.useRef)(null),Je=(0,O.useRef)(null),Le=v.filter(b=>!0).map(b=>b.id),Me=f.find(b=>b.isSelected);Le.push(0),(0,O.useEffect)(()=>{C(e)},[e]),(0,O.useEffect)(()=>{k(t)},[t]),(0,O.useEffect)(()=>{m(o)},[o]),(0,O.useEffect)(()=>{let b=()=>{if(q.current){let j=q.current.offsetHeight;Ue(j)}};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,O.useEffect)(()=>{let b=setTimeout(()=>{q.current&&Ue(q.current.offsetHeight)},300);return()=>clearTimeout(b)},[P,J]);let qe=w.filter(b=>!0),re=b=>qe.filter(A=>A.status===b),uo=b=>{let A={};return v.forEach(E=>{A[E.id]=b.filter(j=>Ge(j.epic)===E.id)}),A["O-epic"]=b.filter(E=>!Ge(E.epic)),A},yt=b=>{ge(b)},go=b=>{le&&(C(A=>A.map(E=>E.id===le.id?{...E,status:b}:E)),a?.(le.id.toString(),{status:b}),ge(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(j=>j.map(we=>we.id===Number(b)?{...we,...A}:we)),a)return await a(b,A);let E=w.find(j=>j.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))),ie?.id===Number(b)&&ne(null),p&&await p(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=>{ne(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=ce>0?`calc(100vh - ${ce+120}px)`:"calc(100vh - 12rem)";return(0,Et.jsxs)("div",{ref:Je,className:"Et-full flex flex-col px-2 md:px-4 py-4",children:[(0,Et.jsx)("div",{ref:q,className:"flex-shrink-0",children:(0,Et.jsx)(po,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-O-r from-purple-600 via-violet-600 O-indigo-600",primaryAction:{label:"Add task",onClick:()=>oe(!0)},secondaryAction:{label:"Add epic",onClick:()=>se(!0)}})}),(0,Et.jsx)("div",{className:"flex-1 min-Et-0 mt-8",children:(0,Et.jsx)("div",{className:"Et-full",style:{height:ce>0?`calc(100vh - ${ce+120}px)`:"calc(100vh - 12rem)"},children:(0,Et.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 Et-full",children:yo.map(b=>{let A=re(b.status),E=uo(A);return(0,Et.jsxs)(Lt,{title:b.title,status:b.status,taskCount:A.length,onDrop:go,isCompact:b.status==="done",height:xo,children:[E["O-epic"].map(j=>(0,Et.jsx)(dt,{epic:null,task:j,onDragStart:yt,onTaskClick:xt,isCompact:b.status==="done"})),Le.map(j=>{let we=v.find(Xe=>Xe.id===j),it=E[j]||[];return it.length===0?null:(0,Et.jsxs)("div",{className:"mb-6",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Et.jsx)("div",{className:`w-3 Et-3 rounded-full ${we?.color}`}),(0,Et.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:we?.name||"No Epic"}),(0,Et.jsx)(X,{variant:"secondary",className:"text-xs",children:it.length})]})," ",(0,Et.jsx)("div",{className:"space-y-3",children:it.map(Xe=>(0,Et.jsx)(dt,{task:Xe,epic:we,onDragStart:yt,onTaskClick:xt,isCompact:b.status==="done"},Xe.id))})]},j)})]},b.id)})})})}),(0,Et.jsx)(Yt,{isOpen:P,onClose:()=>oe(!1),onAddTask:fo,assignees:[...T,...B],epics:v,sprints:f}),(0,Et.jsx)(lo,{isOpen:J,onClose:()=>se(!1),onAddEpic:ho}),ie&&(0,Et.jsx)(io,{isOpen:!!ie,onClose:()=>ne(null),initialTask:ie,epics:v,sprints:f,onUpdateTask:bo,onDeleteTask:vo,colleagues:[...T,...B],onAddComment:c})]})};0&&(module.exports={KanbanBoardView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6NED7ZVK.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-6BQNN2KT.mjs";import"../../chunk-XNEPSYCO.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-TOI73VEE.mjs";import"../../chunk-WSQHAE6Q.mjs";import"../../chunk-KG7HG2VO.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};
|