cortex-react-components 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2CS6P44F.mjs +4 -0
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/chunk-34AVYSEY.mjs +4 -0
- package/dist/{chunk-7R47MHQE.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-BKR3FRMQ.mjs → chunk-5N32XPU2.mjs} +1 -1
- package/dist/{chunk-UJSXVIXW.mjs → chunk-6VHK4OL7.mjs} +1 -1
- package/dist/{chunk-M4UVNIK2.mjs → chunk-77PCUNUC.mjs} +1 -1
- package/dist/{chunk-CXOVEABI.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/chunk-A3YDFYEB.mjs +1 -0
- package/dist/{chunk-ECXVQZBN.mjs → chunk-ABGNIQRP.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-7HR6FNWF.mjs → chunk-DYCG7KUN.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-C4RWEPVF.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
- package/dist/{chunk-OQYER4E7.mjs → chunk-JHYWAL24.mjs} +1 -1
- package/dist/{chunk-KWYJ3XZI.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/{chunk-R75OR5VS.mjs → chunk-MO2B5CDW.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/chunk-MPTT6GRI.mjs +1 -0
- package/dist/{chunk-GTZJWMZR.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-B2EJGXDG.mjs → chunk-QTILVWJA.mjs} +1 -1
- package/dist/{chunk-7VDNUJZC.mjs → chunk-RAGDUV7M.mjs} +1 -1
- package/dist/{chunk-6MSM3CZ6.mjs → chunk-RRME4EHD.mjs} +1 -1
- package/dist/{chunk-VWLPVN4M.mjs → chunk-S4A4VHOI.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-INPV5MBU.mjs → chunk-TK4JC5PG.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/{chunk-IPIDKLAW.mjs → chunk-W7MEHF4G.mjs} +1 -1
- package/dist/chunk-WB2Y7HTT.mjs +1 -0
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/chunk-WY2CT5AT.mjs +1 -0
- package/dist/chunk-Z72RUYUU.mjs +1 -0
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.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/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.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/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +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.d.ts +1 -0
- 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/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/VideoHeader.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/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/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/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/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/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/FileView.d.ts +2 -2
- package/dist/components/Projects/FileView.js +2 -2
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +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 +4 -4
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/file-list.d.ts +2 -2
- package/dist/components/Projects/file-list.js +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +8 -8
- 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 +14 -14
- 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/package.json +3 -2
- package/dist/chunk-2VZWOBGP.mjs +0 -1
- package/dist/chunk-3U3PZBHQ.mjs +0 -4
- package/dist/chunk-AQZEZ3UR.mjs +0 -1
- package/dist/chunk-DKVCSRUJ.mjs +0 -1
- package/dist/chunk-FV3W3WL7.mjs +0 -4
- package/dist/chunk-NZS3XKXU.mjs +0 -1
- package/dist/chunk-PXPSM7OQ.mjs +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";var ei=Object.create;var Jt=Object.defineProperty;var ti=Object.getOwnPropertyDescriptor;var ai=Object.getOwnPropertyNames;var ri=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty;var ii=(e,t)=>{for(var a in t)Jt(e,a,{get:t[a],enumerable:!0})},sr=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ai(t))!oi.call(e,l)&&l!==a&&Jt(e,l,{get:()=>t[l],enumerable:!(r=ti(t,l))||r.enumerable});return e};var ne=(e,t,a)=>(a=e!=null?ei(ri(e)):{},sr(t||!e||!e.__esModule?Jt(a,"default",{value:e,enumerable:!0}):a,e)),si=e=>sr(Jt({},"__esModule",{value:!0}),e);var qs={};ii(qs,{default:()=>Eo});module.exports=si(qs);var Le=require("react");var pt=ne(require("react"));var fr=require("clsx");var Pa="-",ni=e=>{let t=di(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let m=n.split(Pa);return m[0]===""&&m.length!==1&&m.shift(),dr(m,t)||li(n)},getConflictingClassGroupIds:(n,m)=>{let c=a[n]||[];return m&&r[n]?[...c,...r[n]]:c}}},dr=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),l=r?dr(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;let i=e.join(Pa);return t.validators.find(({validator:n})=>n(i))?.classGroupId},nr=/^\[(.+)\]$/,li=e=>{if(nr.test(e)){let t=nr.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},di=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return mi(Object.entries(e.classGroups),a).forEach(([i,n])=>{Da(n,r,i,t)}),r},Da=(e,t,a,r)=>{e.forEach(l=>{if(typeof l=="string"){let i=l===""?t:lr(t,l);i.classGroupId=a;return}if(typeof l=="function"){if(ci(l)){Da(l(r),t,a,r);return}t.validators.push({validator:l,classGroupId:a});return}Object.entries(l).forEach(([i,n])=>{Da(n,lr(t,i),a,r)})})},lr=(e,t)=>{let a=e;return t.split(Pa).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},ci=e=>e.isThemeGetter,mi=(e,t)=>t?e.map(([a,r])=>{let l=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,m])=>[t+n,m])):i);return[a,l]}):e,pi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,l=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return l(i,n),n},set(i,n){a.has(i)?a.set(i,n):l(i,n)}}},cr="!",ui=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,l=t[0],i=t.length,n=m=>{let c=[],p=0,d=0,N;for(let x=0;x<m.length;x++){let A=m[x];if(p===0){if(A===l&&(r||m.slice(x,x+i)===t)){c.push(m.slice(d,x)),d=x+i;continue}if(A==="/"){N=x;continue}}A==="["?p++:A==="]"&&p--}let v=c.length===0?m:m.substring(d),k=v.startsWith(cr),L=k?v.substring(1):v,K=N&&N>d?N-d:void 0;return{modifiers:c,hasImportantModifier:k,baseClassName:L,maybePostfixModifierPosition:K}};return a?m=>a({className:m,parseClassName:n}):n},gi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},fi=e=>({cache:pi(e.cacheSize),parseClassName:ui(e),...ni(e)}),vi=/\ut+/,bi=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:l}=t,i=[],n=e.trim().split(vi),m="";for(let c=n.length-1;c>=0;c-=1){let p=n[c],{modifiers:d,hasImportantModifier:N,baseClassName:v,maybePostfixModifierPosition:k}=a(p),L=!!k,K=r(L?v.substring(0,k):v);if(!K){if(!L){m=p+(m.length>0?" "+m:m);continue}if(K=r(v),!K){m=p+(m.length>0?" "+m:m);continue}L=!1}let x=gi(d).join(":"),A=N?x+cr:x,b=A+K;if(i.includes(b))continue;i.push(b);let z=l(K,L);for(let q=0;q<z.length;++q){let Q=z[q];i.push(A+Q)}m=p+(m.length>0?" "+m:m)}return m};function hi(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=mr(t))&&(r&&(r+=" "),r+=a);return r}var mr=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=mr(e[r]))&&(a&&(a+=" "),a+=t);return a};function xi(e,...t){let a,r,l,i=n;function n(c){let p=t.reduce((d,N)=>N(d),e());return a=fi(p),r=a.cache.get,l=a.cache.set,i=m,m(c)}function m(c){let p=r(c);if(p)return p;let d=bi(c,a);return l(c,d),d}return function(){return i(hi.apply(null,arguments))}}var me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},pr=/^\[(?:([a-z-]+):)?(.+)\]$/i,yi=/^\d+\/\d+$/,wi=new Set(["px","full","screen"]),Ni=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Si=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Di=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>wt(e)||wi.has(e)||yi.test(e),nt=e=>Nt(e,"length",Li),wt=e=>!!e&&!Number.isNaN(Number(e)),Ca=e=>Nt(e,"number",wt),At=e=>!!e&&Number.isInteger(Number(e)),ki=e=>e.endsWith("%")&&wt(e.slice(0,-1)),_=e=>pr.test(e),lt=e=>Ni.test(e),Ri=new Set(["length","size","percentage"]),Ti=e=>Nt(e,Ri,ur),Ei=e=>Nt(e,"position",ur),Ii=new Set(["image","url"]),Mi=e=>Nt(e,Ii,Bi),Ai=e=>Nt(e,"",Fi),Lt=()=>!0,Nt=(e,t,a)=>{let r=pr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},Li=e=>Si.test(e)&&!Ci.test(e),ur=()=>!1,Fi=e=>Di.test(e),Bi=e=>Pi.test(e);var zi=()=>{let e=me("colors"),t=me("spacing"),a=me("blur"),r=me("brightness"),l=me("borderColor"),i=me("borderRadius"),n=me("borderSpacing"),m=me("borderWidth"),c=me("contrast"),p=me("grayscale"),d=me("hueRotate"),N=me("invert"),v=me("gap"),k=me("gradientColorStops"),L=me("gradientColorStopPositions"),K=me("inset"),x=me("margin"),A=me("opacity"),b=me("padding"),z=me("saturate"),q=me("scale"),Q=me("sepia"),ae=me("skew"),ce=me("space"),V=me("translate"),R=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",_,t],T=()=>[_,t],h=()=>["",et,nt],Y=()=>["auto",wt,_],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>["start","end","center","between","around","evenly","stretch"],ke=()=>["","0",_],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[wt,_];return{cacheSize:500,separator:":",theme:{colors:[Lt],spacing:[et,nt],blur:["none","",lt,_],brightness:H(),borderColor:[e],borderRadius:["none","","full",lt,_],borderSpacing:T(),borderWidth:h(),contrast:H(),grayscale:ke(),hueRotate:H(),invert:ke(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[ki,nt],inset:be(),margin:be(),opacity:H(),padding:T(),saturate:H(),scale:H(),sepia:ke(),skew:H(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[lt]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:[...he(),_]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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",At,_]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:ke()}],shrink:[{shrink:ke()}],order:[{order:["first","last","none",At,_]}],"grid-cols":[{"grid-cols":[Lt]}],"col-start-end":[{col:["auto",{span:["full",At,_]},_]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[Lt]}],"row-start-end":[{row:["auto",{span:[At,_]},_]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...Pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],Le:[{Le:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,t]}],"min-w":[{"min-w":[_,t,"min","max","fit"]}],"max-w":[{"max-w":[_,t,"none","full","min","max","fit","prose",{screen:[lt]},lt]}],h:[{h:[_,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lt,nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ca]}],"font-family":[{font:[Lt]}],"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",_]}],"line-clamp":[{"line-clamp":["none",wt,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",et,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",et,nt]}],"underline-offset":[{"underline-offset":["auto",et,_]}],"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",_]}],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",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),Ei]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ti]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[i]}],"rounded-ut":[{"rounded-ut":[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-gt":[{"rounded-gt":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-ut":[{"border-ut":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...ze(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ze()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-ut":[{"border-ut":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ze()]}],"outline-offset":[{"outline-offset":[et,_]}],"outline-w":[{outline:[et,nt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:h()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[et,nt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lt,Ai]}],"shadow-color":[{shadow:[Lt]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",lt,_]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[N]}],saturate:[{saturate:[z]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[q]}],"scale-x":[{"scale-x":[q]}],"scale-y":[{"scale-y":[q]}],rotate:[{rotate:[At,_]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[ae]}],"skew-y":[{"skew-y":[ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],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","ut-resize","w-resize","ne-resize","nw-resize","gt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_]}],"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-Le":[{"scroll-Le":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-pe":[{"scroll-pe":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",_]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[et,nt,Ca]}],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","Le","mr","mb","ml"],mx:["mr","ml"],my:["Le","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-ut","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-gt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-ut":["rounded-ss","rounded-es"],"rounded-e":["rounded-gt","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-ut","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-ut","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-Le","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Le","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 gr=xi(zi);function u(...e){return gr((0,fr.clsx)(e))}var ut=require("react/jsx-runtime"),te=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...t}));te.displayName="Card";var Ft=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("flex flex-col space-y-1.5 p-6",e),...t}));Ft.displayName="CardHeader";var Bt=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("font-semibold leading-none tracking-tight",e),...t}));Bt.displayName="CardTitle";var Oi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("text-sm text-muted-foreground",e),...t}));Oi.displayName="CardDescription";var tt=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("p-6 pt-0",e),...t}));tt.displayName="CardContent";var Vi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("flex items-center p-6 pt-0",e),...t}));Vi.displayName="CardFooter";var vr=require("@radix-ui/react-slot"),br=require("class-variance-authority"),hr=ne(require("react")),Xt=(0,br.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),w=hr.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...l},i)=>(0,ut.jsx)(e?vr.Slot:"button",{className:u(Xt({className:t,size:a,variant:r})),ref:i,...l}));w.displayName="Button";var yr=ne(require("react"));var O=yr.forwardRef(({className:e,type:t,...a},r)=>(0,ut.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...a}));O.displayName="Input";var Nr=ne(require("react")),Ne=Nr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ne.displayName="Textarea";var J=ne(require("@radix-ui/react-select")),gt=require("lucide-react"),dt=ne(require("react")),le=J.Root;var pe=J.Value,oe=dt.forwardRef(({children:e,className:t,...a},r)=>(0,ut.jsxs)(J.Trigger,{className:u("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...a,children:[e,(0,ut.jsx)(J.Icon,{asChild:!0,children:(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));oe.displayName=J.Trigger.displayName;var Cr=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(J.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gt.ChevronUp,{className:"h-4 w-4"})}));Cr.displayName=J.ScrollUpButton.displayName;var Dr=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(J.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4"})}));Dr.displayName=J.ScrollDownButton.displayName;var ie=dt.forwardRef(({children:e,className:t,position:a="popper",...r},l)=>(0,ut.jsx)(J.Portal,{children:(0,ut.jsxs)(J.Content,{className:u("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="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:a,ref:l,...r,children:[(0,ut.jsx)(Cr,{}),(0,ut.jsx)(J.Viewport,{className:u("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(Dr,{})]})}));ie.displayName=J.Content.displayName;var Hi=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(J.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Hi.displayName=J.Label.displayName;var I=dt.forwardRef(({children:e,className:t,...a},r)=>(0,ut.jsxs)(J.Item,{className:u("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,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(J.ItemIndicator,{children:(0,ut.jsx)(gt.Check,{className:"h-4 w-4"})})}),(0,ut.jsx)(J.ItemText,{children:e})]}));I.displayName=J.Item.displayName;var ji=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(J.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));ji.displayName=J.Separator.displayName;var W=ne(require("react"));var Pr=(e=768)=>{let[t,a]=(0,Le.useState)(!1);return(0,Le.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var kr=ne(require("react")),ka=ne(require("@radix-ui/react-separator"));var Ra=kr.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},l)=>(0,ut.jsx)(ka.Root,{ref:l,decorative:a,orientation:t,className:u("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ra.displayName=ka.Root.displayName;var zt=ne(require("react")),Re=ne(require("@radix-ui/react-dialog")),Tr=require("@radix-ui/react-icons");var Ir=Re.Root;var Gi=Re.Portal,Mr=zt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Re.Overlay,{className:u("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,ref:a}));Mr.displayName=Re.Overlay.displayName;var Ui=(0,br.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ta=zt.forwardRef(({side:e="right",className:t,children:a,...r},l)=>(0,ut.jsxs)(Gi,{children:[(0,ut.jsx)(Mr,{}),(0,ut.jsxs)(Re.Content,{ref:l,className:u(Ui({side:e}),t),...r,children:[(0,ut.jsxs)(Re.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-secondary",children:[(0,ut.jsx)(Tr.Cross2Icon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ta.displayName=Re.Content.displayName;var _i=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col space-y-2 text-center sm:text-left",e),...t});_i.displayName="SheetHeader";var $i=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$i.displayName="SheetFooter";var Wi=zt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Re.Title,{ref:a,className:u("text-lg font-semibold text-foreground",e),...t}));Wi.displayName=Re.Title.displayName;var Ki=zt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Re.Description,{ref:a,className:u("text-sm text-muted-foreground",e),...t}));Ki.displayName=Re.Description.displayName;function Ea({className:e,...t}){return(0,ut.jsx)("div",{className:u("animate-pulse rounded-md bg-primary/10",e),...t})}var Lr=ne(require("react")),We=ne(require("@radix-ui/react-tooltip"));var Fr=We.Provider,Br=We.Root,zr=We.Trigger,Ma=Lr.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,ut.jsx)(We.Portal,{children:(0,ut.jsx)(We.Content,{ref:r,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ma.displayName=We.Content.displayName;var qi="sidebar:state",Ji=60*60*24*7,Xi="16rem",Zi="18rem",Yi="3rem",Qi="b",Hr=W.createContext(null);function Yt(){let e=W.useContext(Hr);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Aa=W.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:l,children:i,...n},m)=>{let c=Pr(),[p,d]=W.useState(!1),[N,v]=W.useState(e),k=t??N,L=W.useCallback(b=>{if(a)return a?.(typeof b=="function"?b(k):b);v(b),document.cookie=`${qi}=${k}; path=/; max-age=${Ji}`},[a,k]),K=W.useCallback(()=>c?d(b=>!b):L(b=>!b),[c,L,d]);W.useEffect(()=>{let b=z=>{z.key===Qi&&(z.metaKey||z.ctrlKey)&&(z.preventDefault(),K())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[K]);let x=k?"expanded":"collapsed",A=W.useMemo(()=>({state:x,open:k,setOpen:L,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:K}),[x,k,L,c,p,d,K]);return(0,$.jsx)(Hr.Provider,{value:A,children:(0,$.jsx)(Fr,{delayDuration:0,children:(0,$.jsx)("div",{style:{"--sidebar-width":Xi,"--sidebar-width-icon":Yi,...l},className:u("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:m,...n,children:i})})})});Aa.displayName="SidebarProvider";var es=W.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:l,...i},n)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:d}=Yt();return a==="none"?(0,$.jsx)("div",{className:u("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:l}):m?(0,$.jsx)(Ir,{open:p,onOpenChange:d,...i,children:(0,$.jsx)(Ta,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zi},side:e,children:(0,$.jsx)("div",{className:"flex h-full w-full flex-col",children:l})})}):(0,$.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,$.jsx)("div",{className:u("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,$.jsx)("div",{className:u("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,$.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});es.displayName="Sidebar";var ts=W.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:l}=Yt();return(0,$.jsxs)(w,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:u("h-7 w-7",e),onClick:i=>{t?.(i),l()},...a,children:[(0,$.jsx)(gt.PanelLeft,{}),(0,$.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ts.displayName="SidebarTrigger";var as=W.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Yt();return(0,$.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:u("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});as.displayName="SidebarRail";var rs=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("main",{ref:a,className:u("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));rs.displayName="SidebarInset";var os=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)(O,{ref:a,"data-sidebar":"input",className:u("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));os.displayName="SidebarInput";var is=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"header",className:u("flex flex-col gap-2 p-2",e),...t}));is.displayName="SidebarHeader";var ss=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"footer",className:u("flex flex-col gap-2 p-2",e),...t}));ss.displayName="SidebarFooter";var ns=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)(Ra,{ref:a,"data-sidebar":"separator",className:u("mx-2 w-auto bg-sidebar-border",e),...t}));ns.displayName="SidebarSeparator";var ls=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"content",className:u("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ls.displayName="SidebarContent";var ds=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"group",className:u("relative flex w-full min-w-0 flex-col p-2",e),...t}));ds.displayName="SidebarGroup";var cs=W.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,$.jsx)(t?vr.Slot:"div",{ref:r,"data-sidebar":"group-label",className:u("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-Le-8 group-data-[collapsible=icon]:opacity-0",e),...a}));cs.displayName="SidebarGroupLabel";var ms=W.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,$.jsx)(t?vr.Slot:"button",{ref:r,"data-sidebar":"group-action",className:u("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));ms.displayName="SidebarGroupAction";var ps=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"group-content",className:u("w-full text-sm",e),...t}));ps.displayName="SidebarGroupContent";var us=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("ul",{ref:a,"data-sidebar":"menu",className:u("flex w-full min-w-0 flex-col gap-1",e),...t}));us.displayName="SidebarMenu";var gs=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:u("group/menu-item relative",e),...t}));gs.displayName="SidebarMenuItem";var fs=(0,br.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),vs=W.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:l,className:i,...n},m)=>{let c=e?vr.Slot:"button",{isMobile:p,state:d}=Yt(),N=(0,$.jsx)(c,{ref:m,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:u(fs({variant:a,size:r}),i),...n});return l?(typeof l=="string"&&(l={children:l}),(0,$.jsxs)(Br,{children:[(0,$.jsx)(zr,{asChild:!0,children:N}),(0,$.jsx)(Ma,{side:"right",align:"center",hidden:d!=="collapsed"||p,...l})]})):N});vs.displayName="SidebarMenuButton";var bs=W.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},l)=>(0,$.jsx)(t?vr.Slot:"button",{ref:l,"data-sidebar":"menu-action",className:u("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));bs.displayName="SidebarMenuAction";var hs=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:u("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));hs.displayName="SidebarMenuBadge";var xs=W.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let l=W.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,$.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:u("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,$.jsx)(Ea,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,$.jsx)(Ea,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});xs.displayName="SidebarMenuSkeleton";var ys=W.forwardRef(({className:e,...t},a)=>(0,$.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:u("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ys.displayName="SidebarMenuSub";var ws=W.forwardRef(({...e},t)=>(0,$.jsx)("li",{ref:t,...e}));ws.displayName="SidebarMenuSubItem";var Ns=W.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...l},i)=>(0,$.jsx)(e?vr.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:u("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...l}));Ns.displayName="SidebarMenuSubButton";var jr=({projects:e,epics:t,sprints:a,currentView:r,onUpdateProject:l,onDeleteProject:i,onAddProject:n,onUpdateEpic:m,onDeleteEpic:c,onAddEpic:p,onAddSprint:d,onUpdateSprint:N,onDeleteSprint:v,onViewChange:k,mobileMenuOpen:L,onToggleMobileMenu:K})=>{let[x,A]=(0,Le.useState)(null),[b,z]=(0,Le.useState)(null),[q,Q]=(0,Le.useState)(null),[ae,ce]=(0,Le.useState)(null),[V,R]=(0,Le.useState)({name:"",description:""}),[U,be]=(0,Le.useState)({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[T,h]=(0,Le.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[Y,he]=(0,Le.useState)(!1),[ze,Oe]=(0,Le.useState)(!1),[Pe,ke]=(0,Le.useState)({name:"",description:""}),[C,H]=(0,Le.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),re=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],Ie=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],Ye=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],Qe=g=>{z(g.id),R({name:g.name,description:g.description||""})},st=()=>{b&&V.name.trim()&&(l(b,{name:V.name.trim(),description:V.description.trim()}),z(null))},Tt=()=>{z(null),R({name:"",description:""})},ba=()=>{Pe.name.trim()&&(n({name:Pe.name.trim(),description:Pe.description.trim(),isSelected:!1}),ke({name:"",description:""}),he(!1))},Qa=g=>{l(g,{isSelected:!0})},ha=g=>{Q(g.id),be({name:g.name,description:g.description||"",color:g.color,confidence:g.confidence,phase:g.phase,startDate:g.startDate.toISOString().split("T")[0],endDate:g.endDate.toISOString().split("T")[0],progress:g.progress})},Ut=()=>{q&&U.name.trim()&&(m(q,{name:U.name.trim(),description:U.description.trim(),color:U.color,confidence:U.confidence,phase:U.phase,startDate:new Date(U.startDate),endDate:new Date(U.endDate),progress:U.progress}),Q(null))},xa=()=>{Q(null),be({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},_t=g=>{ce(g.id),h({name:g.name,description:g.description||"",startDate:g.startDate.toISOString().split("T")[0],endDate:g.endDate.toISOString().split("T")[0],isActive:g.isActive})},ya=()=>{ae&&T.name.trim()&&(N(ae,{name:T.name.trim(),description:T.description.trim(),startDate:new Date(T.startDate),endDate:new Date(T.endDate),isActive:T.isActive}),ce(null))},$t=()=>{ce(null),h({name:"",description:"",startDate:"",endDate:"",isActive:!1})},yt=()=>{C.name.trim()&&(d({name:C.name.trim(),description:C.description.trim(),startDate:new Date(C.startDate),endDate:new Date(C.endDate),isActive:C.isActive,isSelected:!1}),H({name:"",description:"",startDate:"",endDate:"",isActive:!1}),Oe(!1))},Et=g=>{N(g,{isSelected:!0})},Wt=g=>g.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),It=g=>{let y=Ie.find(ee=>ee.value===g);return y?{label:y.label,color:y.color}:{label:"Medium",color:"text-warning"}},Mt=g=>{let y=Ye.find(ee=>ee.value===g);return y?{label:y.label,color:y.color}:{label:"Phase 1",color:"text-primary"}};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${L?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[(0,ut.jsxs)("div",{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)("button",{onClick:()=>{k("kanban"),A(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${r==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[(0,ut.jsx)(gt.Kanban,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),(0,ut.jsxs)("button",{onClick:()=>{k("planning"),A(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${r==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),(0,ut.jsxs)("button",{onClick:()=>A(x==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${x==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[(0,ut.jsx)(gt.FolderOpen,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),(0,ut.jsxs)("button",{onClick:()=>{k("epics"),A(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${r==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[(0,ut.jsx)(gt.Target,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),(0,ut.jsxs)("button",{onClick:()=>A(x==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${x==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[(0,ut.jsx)(gt.Layers,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),(0,ut.jsxs)("button",{onClick:()=>{k("files"),A(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${r==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[(0,ut.jsx)(gt.FileText,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),(0,ut.jsxs)("button",{onClick:()=>{k("tasks"),A(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${r==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),L&&(0,ut.jsx)("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:K}),x&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>A(null)}),(0,ut.jsxs)("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[(0,ut.jsxs)("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[(0,ut.jsxs)("h2",{className:"text-base md:text-lg font-semibold",children:[x==="projects"&&"Projects",x==="epics"&&"Manage Epics",x==="sprints"&&"Manage Sprints",x==="files"&&"Files"]}),(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>A(null),children:(0,ut.jsx)(gt.ut,{className:"h-4 w-4"})})]}),(0,ut.jsxs)("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[x==="projects"&&(0,ut.jsx)(te,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Projects"}),(0,ut.jsxs)(w,{size:"sm",onClick:()=>he(!0),className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Project"]})]}),Y&&(0,ut.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,ut.jsx)(O,{value:Pe.name,onChange:g=>ke(y=>({...y,name:g.target.value})),placeholder:"Project name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:Pe.description,onChange:g=>ke(y=>({...y,description:g.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:ba,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:()=>he(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,ut.jsx)("div",{className:"space-y-2",children:e.map(g=>(0,ut.jsx)("div",{className:"border rounded p-2",children:b===g.id?(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(O,{value:V.name,onChange:y=>R(ee=>({...ee,name:y.target.value})),placeholder:"Project name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:V.description,onChange:y=>R(ee=>({...ee,description:y.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:st,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:Tt,className:"text-xs h-6",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${g.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>Qa(g.id),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)(gt.FolderOpen,{className:"h-3 w-3 text-muted-foreground"}),(0,ut.jsx)("span",{className:"font-medium text-xs",children:g.name})]}),g.description&&(0,ut.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:g.description}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>Qe(g),className:"h-5 px-1",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>i(g.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})}),x==="epics"&&(0,ut.jsx)(te,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Epics"}),(0,ut.jsxs)(w,{size:"sm",onClick:p,className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Epic"]})]}),(0,ut.jsx)("div",{className:"space-y-4",children:t.map(g=>(0,ut.jsx)("div",{className:"border rounded-lg p-3",children:q===g.id?(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsx)(O,{value:U.name,onChange:y=>be(ee=>({...ee,name:y.target.value})),placeholder:"Epic name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:U.description,onChange:y=>be(ee=>({...ee,description:y.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Color"}),(0,ut.jsx)("div",{className:"flex gap-1 flex-wrap",children:re.map(y=>(0,ut.jsx)("button",{onClick:()=>be(ee=>({...ee,color:y})),className:`w-6 h-6 rounded-full ${y} ${U.color===y?"ring-2 ring-ring":""}`},y))})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Confidence"}),(0,ut.jsxs)(le,{value:U.confidence,onValueChange:y=>be(ee=>({...ee,confidence:y})),children:[(0,ut.jsx)(oe,{className:"h-8 text-xs",children:(0,ut.jsx)(pe,{})}),(0,ut.jsx)(ie,{children:Ie.map(y=>(0,ut.jsx)(I,{value:y.value,children:(0,ut.jsx)("span",{className:y.color,children:y.label})},y.value))})]})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Phase"}),(0,ut.jsxs)(le,{value:U.phase.toString(),onValueChange:y=>be(ee=>({...ee,phase:parseInt(y)})),children:[(0,ut.jsx)(oe,{className:"h-8 text-xs",children:(0,ut.jsx)(pe,{})}),(0,ut.jsx)(ie,{children:Ye.map(y=>(0,ut.jsx)(I,{value:y.value.toString(),children:(0,ut.jsx)("span",{className:y.color,children:y.label})},y.value))})]})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Start Date"}),(0,ut.jsx)(O,{type:"date",value:U.startDate,onChange:y=>be(ee=>({...ee,startDate:y.target.value})),className:"text-xs h-8"})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"End Date"}),(0,ut.jsx)(O,{type:"date",value:U.endDate,onChange:y=>be(ee=>({...ee,endDate:y.target.value})),className:"text-xs h-8"})]})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Progress (%)"}),(0,ut.jsx)(O,{type:"number",min:"0",max:"100",value:U.progress,onChange:y=>be(ee=>({...ee,progress:parseInt(y.target.value)||0})),className:"text-xs h-8"})]}),(0,ut.jsxs)("div",{className:"flex gap-2",children:[(0,ut.jsx)(w,{size:"sm",onClick:Ut,className:"text-xs",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:xa,className:"text-xs",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-2 rounded transition-colors ${g.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>m(g.id,{isSelected:!g.isSelected}),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${g.color}`}),(0,ut.jsx)("span",{className:"font-medium text-sm",children:g.name})]}),g.description&&(0,ut.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:g.description}),(0,ut.jsxs)("div",{className:"space-y-1 mb-2",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Confidence:"}),(0,ut.jsx)("span",{className:It(g.confidence).color,children:It(g.confidence).label})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Phase:"}),(0,ut.jsx)("span",{className:Mt(g.phase).color,children:Mt(g.phase).label})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Timeline:"}),(0,ut.jsxs)("span",{className:"text-foreground",children:[Wt(g.startDate)," - ",Wt(g.endDate)]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Progress:"}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:"w-12 h-2 bg-muted rounded-full",children:(0,ut.jsx)("div",{className:"h-2 bg-primary rounded-full",style:{width:`${g.progress}%`}})}),(0,ut.jsxs)("span",{className:"text-foreground",children:[g.progress,"%"]})]})]})]}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>ha(g),className:"h-6 px-2",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>c(g.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})}),x==="sprints"&&(0,ut.jsx)(te,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),(0,ut.jsxs)(w,{size:"sm",onClick:()=>Oe(!0),className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Sprint"]})]}),ze&&(0,ut.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,ut.jsx)(O,{value:C.name,onChange:g=>H(y=>({...y,name:g.target.value})),placeholder:"Sprint name",className:"text-sm"}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ut.jsx)(O,{type:"date",value:C.startDate,onChange:g=>H(y=>({...y,startDate:g.target.value})),className:"text-xs"}),(0,ut.jsx)(O,{type:"date",value:C.endDate,onChange:g=>H(y=>({...y,endDate:g.target.value})),className:"text-xs"})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("input",{type:"checkbox",checked:C.isActive,onChange:g=>H(y=>({...y,isActive:g.target.checked})),className:"w-3 h-3"}),(0,ut.jsx)("span",{className:"text-xs",children:"Active"})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:yt,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:()=>Oe(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,ut.jsx)("div",{className:"space-y-2",children:a.map(g=>(0,ut.jsx)("div",{className:"border rounded p-2",children:ae===g.id?(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(O,{value:T.name,onChange:y=>h(ee=>({...ee,name:y.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:g.id==="backlog"||g.id==="all-tasks"}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ut.jsx)(O,{type:"date",value:T.startDate,onChange:y=>h(ee=>({...ee,startDate:y.target.value})),className:"text-xs"}),(0,ut.jsx)(O,{type:"date",value:T.endDate,onChange:y=>h(ee=>({...ee,endDate:y.target.value})),className:"text-xs"})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("input",{type:"checkbox",checked:T.isActive,onChange:y=>h(ee=>({...ee,isActive:y.target.checked})),className:"w-3 h-3"}),(0,ut.jsx)("span",{className:"text-xs",children:"Active"})]})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:ya,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:$t,className:"text-xs h-6",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${g.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Et(g.id),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3 text-muted-foreground"}),(0,ut.jsx)("span",{className:"font-medium text-xs",children:g.name}),g.isActive&&(0,ut.jsx)("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(g.id==="backlog"||g.id==="all-tasks")&&(0,ut.jsx)("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsxs)("p",{className:"text-xs text-muted-foreground mb-1",children:[g.startDate.toLocaleDateString()," - ",g.endDate.toLocaleDateString()]}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>_t(g),className:"h-5 px-1",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>v(g.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})})]})]})]})]})},Gr=e=>(0,ut.jsx)(Aa,{children:(0,ut.jsxs)("div",{className:"flex w-full",children:[(0,ut.jsx)("div",{className:"hidden md:block w-12 fixed h-full",children:(0,ut.jsx)(jr,{...e})}),(0,ut.jsx)("div",{className:"md:hidden",children:(0,ut.jsx)(jr,{...e})}),(0,ut.jsx)("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:(0,ut.jsx)("div",{className:"w-full",children:e.children})})]})});var Ss=(0,br.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 ge({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:u(Ss({variant:t}),e),...a})}var $r=({title:e,status:t,taskCount:a,children:r,onDrop:l,isCompact:i=!1})=>{let n=p=>{p.preventDefault()},m=p=>{p.preventDefault(),l(t)};return(0,ut.jsxs)(te,{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 ${i?"lg:max-w-xs":""}`,onDragOver:n,onDrop:m,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${i?"text-base":"text-lg"}`,children:e}),(0,ut.jsx)(ge,{variant:"secondary",className:"bg-muted text-muted-foreground",children:a})]}),(0,ut.jsx)("div",{className:"space-y-4 min-h-[200px]",children:r})]})};var Qt=({task:e,epic:t,onDragStart:a,onTaskClick:r,isCompact:l=!1})=>{let i=d=>{a(e)},n=()=>{r(e)},m=()=>{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"}},c=()=>{switch(e.type){case"story":return(0,ut.jsx)(gt.BookOpen,{className:"h-3 w-3"});case"bug":return(0,ut.jsx)(gt.Bug,{className:"h-3 w-3"});case"spike":return(0,ut.jsx)(gt.Zap,{className:"h-3 w-3"});case"task":default:return(0,ut.jsx)(gt.AlertCircle,{className:"h-3 w-3"})}},p=()=>{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 l?(0,ut.jsx)(te,{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:n,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${p()}`,children:c()}),(0,ut.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.title})]})}):(0,ut.jsxs)(te,{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:n,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ut.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${p()}`,children:[c(),(0,ut.jsx)("span",{className:"capitalize",children:e.type})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${m()}`,children:e.priority}),(0,ut.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,ut.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.title}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,ut.jsx)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:(0,ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ut.jsx)(gt.User,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:e.assignee})]})})]})};var Ot=ne(require("react")),Se=ne(require("@radix-ui/react-dialog"));var Ke=Se.Root,Kr=Se.Trigger,Cs=Se.Portal;var qr=Ot.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Se.Overlay,{ref:a,className:u("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}));qr.displayName=Se.Overlay.displayName;var He=Ot.forwardRef(({className:e,children:t,...a},r)=>(0,ut.jsxs)(Cs,{children:[(0,ut.jsx)(qr,{}),(0,ut.jsxs)(Se.Content,{ref:r,className:u("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),...a,children:[t,(0,ut.jsxs)(Se.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,ut.jsx)(gt.ut,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));He.displayName=Se.Content.displayName;var je=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});je.displayName="DialogHeader";var Vt=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Vt.displayName="DialogFooter";var Ge=Ot.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Se.Title,{ref:a,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));Ge.displayName=Se.Title.displayName;var Ds=Ot.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Se.Description,{ref:a,className:u("text-sm text-muted-foreground",e),...t}));Ds.displayName=Se.Description.displayName;var Jr=ne(require("react")),La=ne(require("@radix-ui/react-label"));var Ps=(0,br.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),P=Jr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(La.Root,{ref:a,className:u(Ps(),e),...t}));P.displayName=La.Root.displayName;var vt=ne(require("react")),Ct=ne(require("@radix-ui/react-toggle-group"));var Yr=ne(require("react")),Fa=ne(require("@radix-ui/react-toggle"));var Ba=(0,br.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ks=Yr.forwardRef(({className:e,variant:t,size:a,...r},l)=>(0,ut.jsx)(Fa.Root,{ref:l,className:u(Ba({variant:t,size:a,className:e})),...r}));ks.displayName=Fa.Root.displayName;var to=vt.createContext({size:"default",variant:"default"}),bt=vt.forwardRef(({className:e,variant:t,size:a,children:r,...l},i)=>(0,ut.jsx)(Ct.Root,{ref:i,className:u("flex items-center justify-center gap-1",e),...l,children:(0,ut.jsx)(to.Provider,{value:{variant:t,size:a},children:r})}));bt.displayName=Ct.Root.displayName;var ht=vt.forwardRef(({className:e,children:t,variant:a,size:r,...l},i)=>{let n=vt.useContext(to);return(0,ut.jsx)(Ct.Item,{ref:i,className:u(Ba({variant:n.variant||a,size:n.size||r}),e),...l,children:t})});ht.displayName=Ct.Item.displayName;var Rs=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:gt.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:gt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:gt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:gt.Zap}],Ts=[{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"}],ta=({isOpen:e,onClose:t,onAddTask:a,epics:r,sprints:l,defaultEpicId:i})=>{let[n,m]=(0,Le.useState)({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""});(0,Le.useEffect)(()=>{e&&i&&m(d=>({...d,epicId:i}))},[e,i]),(0,Le.useEffect)(()=>{e&&m({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""})},[e]);let c=d=>{d.preventDefault(),n.title.trim()&&n.epicId&&(a({title:n.title.trim(),description:n.description.trim(),status:"todo",priority:n.priority,type:n.type,points:n.points,epicId:n.epicId,sprintId:n.sprintId==="none"?void 0:n.sprintId,assignee:n.assignee.trim()||"Unassigned"}),m({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),t())},p=(d,N)=>{m(v=>({...v,[d]:N}))};return(0,ut.jsx)(Ke,{open:e,onOpenChange:t,children:(0,ut.jsxs)(He,{className:"sm:max-w-md",children:[(0,ut.jsx)(je,{children:(0,ut.jsx)(Ge,{children:"Add New Task"})}),(0,ut.jsxs)("form",{onSubmit:c,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"title",children:"Task Title"}),(0,ut.jsx)(O,{id:"title",value:n.title,onChange:d=>p("title",d.target.value),placeholder:"Enter task title",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:n.description,onChange:d=>p("description",d.target.value),placeholder:"Enter task description",rows:3})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Type"}),(0,ut.jsx)(bt,{type:"single",value:n.type,onValueChange:d=>d&&p("type",d),children:Rs.map(d=>{let N=d.icon;return(0,ut.jsxs)(ht,{value:d.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,ut.jsx)(N,{className:"h-4 w-4"}),d.label]},d.value)})})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Priority"}),(0,ut.jsx)(bt,{type:"single",value:n.priority,onValueChange:d=>d&&p("priority",d),children:Ts.map(d=>(0,ut.jsx)(ht,{value:d.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:d.label},d.value))})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"points",children:"Story Points"}),(0,ut.jsx)(O,{id:"points",type:"number",min:"1",max:"100",value:n.points,onChange:d=>p("points",parseInt(d.target.value)||1),placeholder:"Enter story points",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"epic",children:"Epic"}),(0,ut.jsxs)(le,{value:n.epicId,onValueChange:d=>p("epicId",d),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{placeholder:"Select an epic"})}),(0,ut.jsx)(ie,{children:r.map(d=>(0,ut.jsx)(I,{value:d.id,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${d.color}`}),d.name]})},d.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,ut.jsxs)(le,{value:n.sprintId,onValueChange:d=>p("sprintId",d),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{placeholder:"Select a sprint"})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"none",children:"No Sprint"}),l.map(d=>(0,ut.jsx)(I,{value:d.id,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[d.name,d.isActive&&(0,ut.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},d.id))]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsx)(O,{id:"assignee",value:n.assignee,onChange:d=>p("assignee",d.target.value),placeholder:"Enter assignee name",required:!0})]}),(0,ut.jsxs)(Vt,{children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var Oa=({fieldName:e,value:t,label:a,multiline:r=!1,onSave:l,className:i="",disabled:n=!1})=>{let[m,c]=(0,Le.useState)(!1),[p,d]=(0,Le.useState)(""),N=()=>{n||(c(!0),d(t))},v=async()=>{p!==t&&await l(e,p),c(!1)},k=L=>{L.key==="Enter"&&!r||L.key==="Enter"&&L.ctrlKey&&r?v():L.key==="Escape"&&(c(!1),d(""))};return(0,ut.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,ut.jsx)(P,{children:a}),m?r?(0,ut.jsx)(Ne,{value:p,onChange:L=>d(L.target.value),onBlur:v,onKeyDown:k,autoFocus:!0,rows:4,className:"resize-none"}):(0,ut.jsx)(O,{value:p,onChange:L=>d(L.target.value),onBlur:v,onKeyPress:k,autoFocus:!0,className:"text-lg font-medium"}):(0,ut.jsxs)("div",{onClick:N,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,ut.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,ut.jsx)(gt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var aa=ne(require("react")),rt=ne(require("@radix-ui/react-avatar"));var Va=aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(rt.Root,{ref:a,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Va.displayName=rt.Root.displayName;var Es=aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(rt.Image,{ref:a,className:u("aspect-square h-full w-full",e),...t}));Es.displayName=rt.Image.displayName;var Ha=aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(rt.Fallback,{ref:a,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ha.displayName=rt.Fallback.displayName;var oo=({comments:e,onAddComment:t})=>{let[a,r]=(0,Le.useState)(""),l=n=>n.split(" ").map(m=>m[0]).join("").toUpperCase(),i=()=>{a.trim()&&(t(a),r(""))};return(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(gt.MessageSquare,{className:"h-5 w-5"}),(0,ut.jsx)(P,{className:"text-lg font-medium",children:"Comments"}),(0,ut.jsx)(ge,{variant:"secondary",children:e.length})]}),(0,ut.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,ut.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,ut.jsx)(Va,{className:"h-8 w-8 Le-1",children:(0,ut.jsx)(Ha,{className:"text-xs bg-muted text-muted-foreground",children:l(n.author)})}),(0,ut.jsxs)("div",{className:"flex-1",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,ut.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," ut ",n.createdAt.toLocaleTimeString()]})]}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,ut.jsxs)("div",{className:"flex gap-2",children:[(0,ut.jsx)(Ne,{value:a,onChange:n=>r(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,ut.jsx)(w,{onClick:i,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,ut.jsx)(gt.Send,{className:"h-4 w-4"})})]})]})};var ia=({label:e,value:t,onValueChange:a,options:r,showColor:l=!1,disabled:i=!1})=>{let[n,m]=(0,Le.useState)(!1),c=r.find(d=>d.value===t);return(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:e}),(0,ut.jsxs)(le,{value:t,onValueChange:a,open:n,onOpenChange:d=>{i||m(d)},disabled:i,children:[(0,ut.jsx)(oe,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,ut.jsxs)(ge,{variant:"secondary",className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!i&&m(!n),children:[l&&c?.color&&(0,ut.jsx)("div",{className:`w-2 h-2 rounded-full ${c.color} mr-1`}),c?.label||"Select..."]})}),(0,ut.jsx)(ie,{children:r.map(d=>(0,ut.jsx)(I,{value:d.value,children:l&&d.color?(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${d.color}`}),d.label]}):d.label},d.value))})]})]})};var so=({label:e,value:t,onValueChange:a,options:r,placeholder:l="Search...",allowCustomValue:i=!1,disabled:n=!1})=>{let[m,c]=(0,Le.useState)(!1),[p,d]=(0,Le.useState)(""),N=r.find(x=>x.value===t),v=r.filter(x=>x.label.toLowerCase().includes(p.toLowerCase())),k=x=>{a(x),c(!1),d("")},L=()=>{i&&p.trim()&&!r.find(x=>x.value===p.trim())&&(a(p.trim()),c(!1),d(""))};return(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:e}),(0,ut.jsxs)(le,{value:t,onValueChange:k,open:m,onOpenChange:x=>{n||c(x)},disabled:n,children:[(0,ut.jsx)(oe,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,ut.jsx)(ge,{variant:"secondary",className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!n&&c(!m),children:N?.label||t||"Select..."})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)("div",{className:"p-2",children:(0,ut.jsx)(O,{placeholder:l,value:p,onChange:x=>d(x.target.value),onKeyDown:x=>{x.key==="Enter"&&i&&L()},className:"mb-2"})}),v.map(x=>(0,ut.jsx)(I,{value:x.value,children:x.label},x.value)),i&&p.trim()&&!v.find(x=>x.value===p.trim())&&(0,ut.jsxs)(I,{value:p.trim(),children:['Add "',p.trim(),'"']})]})]})]})};var Is=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:gt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:gt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:gt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:gt.Zap}],Ms=[{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"}],As=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],no=({task:e,epics:t,sprints:a,lastUpdated:r,onUpdateTask:l,onClose:i,onDelete:n,isUpdating:m=!1,isDeleting:c=!1,deleteState:p="idle"})=>{let d=v=>v.split(" ").map(k=>k[0]).join("").toUpperCase(),N=()=>p==="loading"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):p==="success"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.Check,{className:"h-3 w-3"}),"Deleted"]}):p==="error"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.ut,{className:"h-3 w-3"}),"Delete failed"]}):(0,ut.jsxs)(w,{onClick:n,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:m||c,children:[(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,ut.jsxs)("div",{className:"flex flex-col h-full",children:[(0,ut.jsxs)("div",{className:"space-y-4",style:{opacity:m?.6:1},children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Status"}),(0,ut.jsx)(ia,{label:"",value:e.status,onValueChange:v=>l("status",v),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:m})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Type"}),(0,ut.jsx)(bt,{type:"single",value:e.type,onValueChange:v=>v&&l("type",v),className:"grid grid-cols-2 gap-1",disabled:m,children:Is.map(v=>{let k=v.icon;return(0,ut.jsxs)(ht,{value:v.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:m,children:[(0,ut.jsx)(k,{className:"h-3 w-3"}),v.label]},v.value)})})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,ut.jsx)(bt,{type:"single",value:e.priority,onValueChange:v=>v&&l("priority",v),className:"grid grid-cols-3 gap-1",disabled:m,children:Ms.map(v=>(0,ut.jsx)(ht,{value:v.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:m,children:v.label},v.value))})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,ut.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:v=>l("points",v.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:m})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,ut.jsx)(ia,{label:"",value:e.epicId,onValueChange:v=>l("epicId",v),options:(t||[]).map(v=>({value:v.id,label:v.name,color:v.color})),showColor:!0,disabled:m})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,ut.jsx)(ia,{label:"",value:e.sprintId||"none",onValueChange:v=>l("sprintId",v==="none"?"":v),options:[{value:"none",label:"No Sprint"},...(a||[]).map(v=>({value:v.id,label:`${v.name}${v.isActive?" (Active)":""}`}))],disabled:m})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,ut.jsx)(so,{label:"",value:e.assignee,onValueChange:v=>l("assignee",v),options:As,placeholder:"Search team members...",allowCustomValue:!0,disabled:m})]})]}),(0,ut.jsxs)("div",{className:"Le-auto pt-4 space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(w,{onClick:i,variant:"outline",className:"w-full h-8 text-xs",disabled:m||c,children:"Close"}),N()]}),(0,ut.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,ut.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.User,{className:"h-3 w-3"}),(0,ut.jsx)("span",{children:"System"})]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3"}),(0,ut.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.Clock,{className:"h-3 w-3"}),(0,ut.jsxs)("span",{children:[r.toLocaleDateString()," ut ",r.toLocaleTimeString()]})]})]})]})]})]})};var sa=({isOpen:e,onClose:t,task:a,epics:r,sprints:l,onUpdateTask:i,onDeleteTask:n})=>{let[m,c]=(0,Le.useState)(new Date),[p,d]=(0,Le.useState)("idle"),[N,v]=(0,Le.useState)("idle"),[k,L]=(0,Le.useState)([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:a.createdAt},{id:"2",text:"Started working on the implementation.",author:a.assignee,createdAt:new Date(a.createdAt.getTime()+864e5)}]),K=async(ae,ce)=>{if(ce!==a[ae]){d("loading");try{await i(a.id,{[ae]:ce}),c(new Date),d("success"),setTimeout(()=>d("idle"),1500)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}}},x=async(ae,ce)=>{if(ce!==a[ae]){d("loading");try{await i(a.id,{[ae]:ce}),c(new Date),d("success"),setTimeout(()=>d("idle"),1500)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}}},A=ae=>{let ce={id:Date.now().toString(),text:ae,author:"Current User",createdAt:new Date};L([...k,ce])},b=async()=>{v("loading");try{await n(a.id),v("success"),setTimeout(()=>{t(),v("idle")},1e3)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}},z=p!=="loading"&&N!=="loading",q=()=>{z&&t()},Q=()=>p==="loading"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,ut.jsx)(gt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,ut.jsx)("span",{children:"Updating..."})]}):p==="success"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,ut.jsx)(gt.Check,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Updated successfully"})]}):p==="error"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,ut.jsx)(gt.ut,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Update failed"})]}):null;return(0,ut.jsx)(Ke,{open:e,onOpenChange:q,children:(0,ut.jsxs)(He,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,ut.jsxs)(je,{children:[(0,ut.jsx)(Ge,{className:"sr-only",children:a.title}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("div",{className:"flex-1",children:Q()}),!z&&(0,ut.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,ut.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,ut.jsx)(Oa,{fieldName:"title",value:a.title,label:"",onSave:K,className:"border-b border-border pb-3",disabled:p==="loading"}),(0,ut.jsx)(Oa,{fieldName:"description",value:a.description,label:"Description",multiline:!0,onSave:K,disabled:p==="loading"}),(0,ut.jsx)(oo,{comments:k,onAddComment:A})]}),(0,ut.jsx)(no,{task:a,epics:r,sprints:l,lastUpdated:m,onUpdateTask:x,onClose:q,onDelete:b,isUpdating:p==="loading",isDeleting:N==="loading",deleteState:N})]})]})})};var na=({isOpen:e,onClose:t,onAddEpic:a})=>{let[r,l]=(0,Le.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"],n=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],m=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],c=d=>{d.preventDefault(),r.name.trim()&&(a({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}),l({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())},p=(d,N)=>{l(v=>({...v,[d]:N}))};return(0,ut.jsx)(Ke,{open:e,onOpenChange:t,children:(0,ut.jsxs)(He,{className:"sm:max-w-md",children:[(0,ut.jsx)(je,{children:(0,ut.jsx)(Ge,{children:"Add New Epic"})}),(0,ut.jsxs)("form",{onSubmit:c,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"name",children:"Epic Name"}),(0,ut.jsx)(O,{id:"name",value:r.name,onChange:d=>p("name",d.target.value),placeholder:"Enter epic name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:r.description,onChange:d=>p("description",d.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Color"}),(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap",children:i.map(d=>(0,ut.jsx)("button",{type:"button",onClick:()=>p("color",d),className:`w-8 h-8 rounded-full ${d} ${r.color===d?"ring-2 ring-gray-400":""}`},d))})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Confidence"}),(0,ut.jsxs)(le,{value:r.confidence,onValueChange:d=>p("confidence",d),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsx)(ie,{children:n.map(d=>(0,ut.jsx)(I,{value:d.value,children:d.label},d.value))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Phase"}),(0,ut.jsxs)(le,{value:r.phase.toString(),onValueChange:d=>p("phase",parseInt(d)),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsx)(ie,{children:m.map(d=>(0,ut.jsx)(I,{value:d.value.toString(),children:d.label},d.value))})]})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Start Date"}),(0,ut.jsx)(O,{type:"date",value:r.startDate,onChange:d=>p("startDate",d.target.value)})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"End Date"}),(0,ut.jsx)(O,{type:"date",value:r.endDate,onChange:d=>p("endDate",d.target.value)})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Progress (%)"}),(0,ut.jsx)(O,{type:"number",min:"0",max:"100",value:r.progress,onChange:d=>p("progress",parseInt(d.target.value)||0)})]}),(0,ut.jsxs)(Vt,{children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var mo=require("framer-motion");function co(e,t){let[a,r]=(0,Le.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),l=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,Le.useEffect)(()=>{l(a)},[]),[a,l]}var da=require("react-icons/fa");function Xe({title:e,description:t,badge:a,primaryAction:r,secondaryAction:l,gradient:i,children:n,className:m}){let[c,p]=co(`hero-section-minimized-${e.replace(/\ut+/g,"-").toLowerCase()}`,!l&&!t),d=!l&&!t||c;return(0,ut.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 ${m||""}`,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,ut.jsx)(ge,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,ut.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-3",children:[d&&r&&(0,ut.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(l||t)&&(0,ut.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!c),style:{lineHeight:0},children:c?(0,ut.jsx)(da.FaChevronDown,{size:22}):(0,ut.jsx)(da.FaChevronUp,{size:22})})]})]}),!d&&(0,ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,ut.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),l&&(0,ut.jsx)(w,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:l.onClick,children:l.label})]})]}),n&&(0,ut.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var po=({initialTasks:e=[],initialEpics:t=[],initialSprints:a=[],initialProjects:r=[],onAddTask:l,onUpdateTask:i,onDeleteTask:n,onTaskClick:m,onAddEpic:c})=>{let[p,d]=(0,Le.useState)(e),[N,v]=(0,Le.useState)(t),[k,L]=(0,Le.useState)(a),[K,x]=(0,Le.useState)(!1),[A,b]=(0,Le.useState)(!1),[z,q]=(0,Le.useState)(null),[Q,ae]=(0,Le.useState)(null),ce=N.filter(C=>C.isSelected).map(C=>C.id),V=k.find(C=>C.isSelected),R=p.filter(C=>{let H=ce.includes(C.epicId);return!V||V.id==="all-tasks"?H:V.id==="backlog"?H&&!C.sprintId:H&&C.sprintId===V.id}),U=C=>R.filter(H=>H.status===C),be=C=>{let H={};return N.forEach(re=>{H[re.id]=C.filter(Ie=>Ie.epicId===re.id)}),H},T=C=>{ae(C)},h=C=>{Q&&(d(H=>H.map(re=>re.id===Q.id?{...re,status:C}:re)),i?.(Q.id,{status:C}),ae(null))},Y=C=>{let H={...C,id:Date.now().toString(),createdAt:new Date};d(re=>[...re,H]),l?.(C)},he=async(C,H)=>{d(re=>re.map(Ie=>Ie.id===C?{...Ie,...H}:Ie)),i&&await i(C,H)},ze=async C=>{d(H=>H.filter(re=>re.id!==C)),z?.id===C&&q(null),n&&await n(C)},Oe=C=>{let H={...C,id:Date.now().toString(),isSelected:!0};v(re=>[...re,H]),c?.(C)},Pe=C=>{q(C),m?.(C)};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Xe,{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:()=>x(!0)},secondaryAction:{label:"Add epic",onClick:()=>b(!0)}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"w-full",children:[(0,ut.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{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"}].map(C=>{let H=U(C.status),re=be(H);return(0,ut.jsx)($r,{title:C.title,status:C.status,taskCount:H.length,onDrop:h,isCompact:C.status==="done",children:ce.map(Ie=>{let Ye=N.find(st=>st.id===Ie),Qe=re[Ie]||[];return Qe.length===0?null:(0,ut.jsxs)("div",{className:"mb-6",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${Ye?.color}`}),(0,ut.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:Ye?.name}),(0,ut.jsx)(ge,{variant:"secondary",className:"text-xs",children:Qe.length})]})," ",(0,ut.jsx)("div",{className:"space-y-3",children:Qe.map(st=>(0,ut.jsx)(Qt,{task:st,epic:Ye,onDragStart:T,onTaskClick:Pe,isCompact:C.status==="done"},st.id))})]},Ie)})},C.id)})}),(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(ta,{isOpen:K,onClose:()=>x(!1),onAddTask:Y,epics:N,sprints:k}),(0,ut.jsx)(na,{isOpen:A,onClose:()=>b(!1),onAddEpic:Oe}),z&&(0,ut.jsx)(sa,{isOpen:!!z,onClose:()=>q(null),task:z,epics:N,sprints:k,onUpdateTask:he,onDeleteTask:ze})]})]})})]})};var uo=({tasks:e,epics:t,sprints:a,onUpdateTask:r,onTaskClick:l,onAddTaskToEpic:i,onAddEpic:n,onUpdateEpic:m,onDeleteEpic:c})=>{let[p,d]=(0,Le.useState)(null),[N,v]=(0,Le.useState)(null),[k,L]=(0,Le.useState)({}),K=R=>{d(R)},x=R=>{R.preventDefault()},A=(R,U)=>{R.preventDefault(),p&&p.epicId!==U&&(r(p.id,{epicId:U}),d(null))},b=R=>e.filter(U=>U.epicId===R),z=R=>{v(R.id),L({name:R.name,description:R.description,confidence:R.confidence,phase:R.phase,progress:R.progress})},q=()=>{N&&k.name&&(m(N,k),v(null),L({}))},Q=()=>{v(null),L({})},ae=R=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&c(R)},ce=R=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[R]||`Phase ${R}`,V=R=>{switch(R){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Xe,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:n}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsx)("div",{className:"w-full",children:(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t.map(R=>{let U=b(R.id),be=U.reduce((T,h)=>T+h.points,0);return(0,ut.jsxs)(te,{className:`flex flex-col ${N===R.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:x,onDrop:T=>A(T,R.id),children:[(0,ut.jsx)("div",{className:"p-4 border-b border-border",children:N===R.id?(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)(O,{value:k.name||"",onChange:T=>L({...k,name:T.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,ut.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:q,className:"p-1 h-8 w-8",children:(0,ut.jsx)($e.Check,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:Q,className:"p-1 h-8 w-8",children:(0,ut.jsx)($e.ut,{className:"h-4 w-4"})})]})]}),(0,ut.jsx)(Ne,{value:k.description||"",onChange:T=>L({...k,description:T.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,ut.jsxs)(le,{value:k.confidence||R.confidence,onValueChange:T=>L({...k,confidence:T}),children:[(0,ut.jsx)(oe,{className:"text-xs",children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"low",children:"Low"}),(0,ut.jsx)(I,{value:"medium",children:"Medium"}),(0,ut.jsx)(I,{value:"high",children:"High"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,ut.jsxs)(le,{value:k.phase?.toString()||R.phase.toString(),onValueChange:T=>L({...k,phase:parseInt(T)}),children:[(0,ut.jsx)(oe,{className:"text-xs",children:(0,ut.jsx)(pe,{})}),(0,ut.jsx)(ie,{children:[1,2,3,4,5,6,7,8,9].map(T=>(0,ut.jsxs)(I,{value:T.toString(),children:["Phase ",T]},T))})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),(0,ut.jsx)(O,{type:"number",min:"0",max:"100",value:k.progress||R.progress,onChange:T=>L({...k,progress:parseInt(T.target.value)||0}),className:"text-xs"})]})]}):(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)("div",{className:`w-4 h-4 rounded-full ${R.color}`}),(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:R.name}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>z(R),className:"p-1 h-8 w-8",children:(0,ut.jsx)($e.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>ae(R.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,ut.jsx)($e.Trash2,{className:"h-3 w-3"})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,ut.jsxs)(ge,{className:`text-xs ${V(R.confidence)}`,children:[R.confidence," confidence"]}),(0,ut.jsxs)(ge,{variant:"outline",className:"text-xs",children:["Phase ",R.phase]}),(0,ut.jsxs)(ge,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[U.length," tasks"]}),(0,ut.jsxs)(ge,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[be," pts"]})]}),R.description&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:R.description}),(0,ut.jsxs)("div",{className:"mb-3",children:[(0,ut.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[(0,ut.jsx)("span",{className:"select-none",children:"Progress"}),(0,ut.jsxs)("span",{className:"select-none",children:[R.progress,"%"]})]}),(0,ut.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,ut.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${R.progress}%`}})})]}),(0,ut.jsxs)(w,{onClick:()=>i(R.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,ut.jsx)($e.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,ut.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,ut.jsx)("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${p?"border-primary bg-primary/10":"border-border"}`,children:U.length===0?(0,ut.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[(0,ut.jsx)($e.Move,{className:"h-8 w-8 mb-2"}),(0,ut.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):U.map(T=>(0,ut.jsx)(Qt,{task:T,epic:R,onDragStart:K,onTaskClick:l,isCompact:!0},T.id))})})]},R.id)})})})})]})};var go=require("react-day-picker");function ma({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,ut.jsx)(go.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:u("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:u(Xt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full Le-2",cell:u("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:u(Xt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...r})}ma.displayName="Calendar";var vo=ne(require("react")),Ze=ne(require("@radix-ui/react-popover"));var Ua=Ze.Root,_a=Ze.Trigger;var pa=vo.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},l)=>(0,ut.jsx)(Ze.Portal,{children:(0,ut.jsx)(Ze.Content,{ref:l,align:t,sideOffset:a,className:u("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));pa.displayName=Ze.Content.displayName;var Wa=require("date-fns");var ho=({isOpen:e,onClose:t,onAddSprint:a})=>{let[r,l]=(0,Le.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),i=m=>{m.preventDefault(),!(!r.name||!r.startDate||!r.endDate)&&(a({name:r.name,description:r.description,startDate:r.startDate,endDate:r.endDate,isActive:r.isActive,isSelected:!1}),l({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t())},n=()=>{l({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t()};return(0,ut.jsx)(Ke,{open:e,onOpenChange:n,children:(0,ut.jsxs)(He,{className:"sm:max-w-md",children:[(0,ut.jsx)(je,{children:(0,ut.jsx)(Ge,{children:"Add New Sprint"})}),(0,ut.jsxs)("form",{onSubmit:i,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"name",children:"Sprint Name *"}),(0,ut.jsx)(O,{id:"name",value:r.name,onChange:m=>l(c=>({...c,name:m.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:r.description,onChange:m=>l(c=>({...c,description:m.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"Start Date *"}),(0,ut.jsxs)(Ua,{children:[(0,ut.jsx)(_a,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!r.startDate&&"text-muted-foreground"),children:[(0,ut.jsx)($a.CalendarIcon,{className:"mr-2 h-4 w-4"}),r.startDate?(0,Wa.format)(r.startDate,"PPP"):"Pick a date"]})}),(0,ut.jsx)(pa,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ma,{mode:"single",selected:r.startDate,onSelect:m=>l(c=>({...c,startDate:m})),initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(P,{children:"End Date *"}),(0,ut.jsxs)(Ua,{children:[(0,ut.jsx)(_a,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!r.endDate&&"text-muted-foreground"),children:[(0,ut.jsx)($a.CalendarIcon,{className:"mr-2 h-4 w-4"}),r.endDate?(0,Wa.format)(r.endDate,"PPP"):"Pick a date"]})}),(0,ut.jsx)(pa,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ma,{mode:"single",selected:r.endDate,onSelect:m=>l(c=>({...c,endDate:m})),initialFocus:!0,disabled:m=>r.startDate?m<r.startDate:!1})})]})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"isActive",checked:r.isActive,onChange:m=>l(c=>({...c,isActive:m.target.checked})),className:"rounded border-gray-300"}),(0,ut.jsx)(P,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,ut.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",disabled:!r.name||!r.startDate||!r.endDate,children:"Add Sprint"})]})]})]})})};var xo=({tasks:e,epics:t,sprints:a,onUpdateTask:r,onTaskClick:l,onAddSprint:i})=>{let[n,m]=(0,Le.useState)(["2"]),[c,p]=(0,Le.useState)(null),[d,N]=(0,Le.useState)(!1),[v,k]=(0,Le.useState)(null),L=e.filter(h=>!h.sprintId),K=e.filter(h=>h.sprintId&&n.includes(h.sprintId)),x=[...a].filter(h=>h.id!=="backlog"&&h.id!=="all-tasks").sort((h,Y)=>h.startDate.getTime()-Y.startDate.getTime()),A=h=>t.find(Y=>Y.id===h),b=h=>a.find(Y=>Y.id===h),z=h=>{switch(h){case"high":return"bg-destructive/20 text-destructive";case"medium":return"bg-warning/20 text-warning";case"low":return"bg-success/20 text-success";default:return"bg-muted text-muted-foreground"}},q=h=>h.split(" ").map(Y=>Y[0]).join("").toUpperCase(),Q=h=>{p(h)},ae=h=>{h.preventDefault()},ce=h=>{k(h)},V=()=>{k(null)},R=(h,Y)=>{h.preventDefault(),k(null),c&&(r(c.id,{sprintId:Y==="backlog"?void 0:Y}),p(null))},U=h=>{h==="backlog"||h==="all-tasks"||m(Y=>Y.includes(h)?Y.filter(he=>he!==h):[...Y,h])},be=h=>{i(h),N(!1)},T=({task:h,showSprint:Y=!1})=>{let he=A(h.epicId),ze=h.sprintId?b(h.sprintId):null,[Oe,Pe]=(0,Le.useState)(!1),ke=re=>{re.defaultPrevented||Oe||l(h)},C=re=>{Pe(!0),Q(h)},H=()=>{Pe(!1)};return(0,ut.jsx)(te,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${Oe?"opacity-50 shadow-lg scale-105":""} ${c?.id===h.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:C,onDragEnd:H,onClick:ke,children:(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1 select-none pointer-events-none",children:h.title}),(0,ut.jsx)(ge,{className:`text-xs select-none pointer-events-none ${z(h.priority)}`,children:h.priority[0].toUpperCase()})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-1",children:[he&&(0,ut.jsx)("div",{className:`w-2 h-2 rounded-full ${he.color}`}),(0,ut.jsx)("span",{className:"text-muted-foreground truncate select-none",children:he?.name})]}),(0,ut.jsx)("span",{className:"text-muted-foreground select-none",children:q(h.assignee)})]}),Y&&ze&&(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3"}),(0,ut.jsx)("span",{className:"select-none",children:ze.name})]})]})})};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Xe,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-r from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>N(!0)}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"w-full",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[(0,ut.jsx)("div",{className:"lg:col-span-1",children:(0,ut.jsxs)(te,{className:"p-4 h-full bg-card shadow-sm",onDragOver:ae,onDragEnter:()=>ce("backlog"),onDragLeave:V,onDrop:h=>R(h,"backlog"),children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Backlog"}),(0,ut.jsx)(ge,{variant:"secondary",className:"bg-muted text-muted-foreground",children:L.length})]}),(0,ut.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${v==="backlog"?"border-primary bg-primary/10":"border-border"}`,children:[L.map(h=>(0,ut.jsx)(T,{task:h},h.id)),L.length===0&&(0,ut.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),(0,ut.jsx)("div",{className:"lg:col-span-3",children:(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)(te,{className:"p-4 bg-card shadow-sm",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Select Sprints to View"}),(0,ut.jsxs)(w,{onClick:()=>N(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),"Add Sprint"]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:x.map(h=>(0,ut.jsxs)(w,{variant:n.includes(h.id)?"default":"outline",size:"sm",onClick:()=>U(h.id),className:"text-xs h-8",children:[h.name,h.isActive&&(0,ut.jsx)("span",{className:"ml-1 text-success",children:"\u25CF"})]},h.id))})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.map(h=>x.find(Y=>Y.id===h)).filter(Boolean).sort((h,Y)=>h.startDate.getTime()-Y.startDate.getTime()).map(h=>{let Y=K.filter(he=>he.sprintId===h.id);return(0,ut.jsxs)(te,{className:"p-4 bg-card shadow-sm",onDragOver:ae,onDragEnter:()=>ce(h.id),onDragLeave:V,onDrop:he=>R(he,h.id),children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:h.name}),h.isActive&&(0,ut.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,ut.jsx)(ge,{variant:"secondary",className:"bg-muted text-muted-foreground",children:Y.length})]}),(0,ut.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${v===h.id?"border-primary bg-primary/10":"border-border"}`,children:[Y.map(he=>(0,ut.jsx)(T,{task:he},he.id)),Y.length===0&&(0,ut.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})]},h.id)})})," "]})})]}),(0,ut.jsx)(ho,{isOpen:d,onClose:()=>N(!1),onAddSprint:be})]})})]})};var Ls=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},Fs=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),Bs=e=>{let[t,a]=e.split(":"),r=new Date;return r.setHours(parseInt(t),parseInt(a)),r.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},Ka=(e,t)=>{let a=new Date,r=new Date(e);if(t){let[l,i]=t.split(":");r.setHours(parseInt(l),parseInt(i))}return r<a},qa=e=>{let t=new Date;return e.toDateString()===t.toDateString()},zs=e=>{let t=new Date;return t.setDate(t.getDate()+1),e.toDateString()===t.toDateString()},Os=({colleagues:e,onAddReminder:t,trigger:a})=>{let[r,l]=(0,Le.useState)(!1),[i,n]=(0,Le.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""});return(0,ut.jsxs)(Ke,{open:r,onOpenChange:l,children:[(0,ut.jsx)(Kr,{asChild:!0,children:a}),(0,ut.jsxs)(He,{className:"max-w-2xl",children:[(0,ut.jsx)(je,{children:(0,ut.jsx)(Ge,{children:"Add New Reminder"})}),(0,ut.jsxs)("form",{onSubmit:c=>{c.preventDefault();let p=e.find(N=>N.id===i.colleagueId);if(!p)return;let d={title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:p,isCompleted:!1,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,priority:i.priority,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(N=>N.trim()):void 0};t(d),l(!1),n({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"title",children:"Title"}),(0,ut.jsx)(O,{id:"title",value:i.title,onChange:c=>n({...i,title:c.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"priority",children:"Priority"}),(0,ut.jsxs)(le,{value:i.priority,onValueChange:c=>n({...i,priority:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"low",children:"\u{1F7E2} Low"}),(0,ut.jsx)(I,{value:"medium",children:"\u{1F7E1} Medium"}),(0,ut.jsx)(I,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:i.description,onChange:c=>n({...i,description:c.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"dueDate",children:"Due Date"}),(0,ut.jsx)(O,{id:"dueDate",type:"date",value:i.dueDate,onChange:c=>n({...i,dueDate:c.target.value}),required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,ut.jsx)(O,{id:"dueTime",type:"time",value:i.dueTime,onChange:c=>n({...i,dueTime:c.target.value})})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,ut.jsxs)(le,{value:i.colleagueId,onValueChange:c=>n({...i,colleagueId:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{placeholder:"Select a digital colleague"})}),(0,ut.jsx)(ie,{children:e.map(c=>(0,ut.jsx)(I,{value:c.id,children:c.name},c.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"isRecurring",checked:i.isRecurring,onChange:c=>n({...i,isRecurring:c.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(P,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,ut.jsxs)(le,{value:i.recurrencePattern,onValueChange:c=>n({...i,recurrencePattern:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"daily",children:"Daily"}),(0,ut.jsx)(I,{value:"weekly",children:"Weekly"}),(0,ut.jsx)(I,{value:"monthly",children:"Monthly"}),(0,ut.jsx)(I,{value:"yearly",children:"Yearly"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"recurrenceInterval",children:"Every"}),(0,ut.jsx)(O,{id:"recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:c=>n({...i,recurrenceInterval:parseInt(c.target.value)})})]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"reminderEnabled",checked:i.reminderEnabled,onChange:c=>n({...i,reminderEnabled:c.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(P,{htmlFor:"reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,ut.jsxs)("div",{className:"pl-6",children:[(0,ut.jsx)(P,{htmlFor:"reminderMinutes",children:"Remind me"}),(0,ut.jsxs)(le,{value:i.reminderMinutes.toString(),onValueChange:c=>n({...i,reminderMinutes:parseInt(c)}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"5",children:"5 minutes before"}),(0,ut.jsx)(I,{value:"15",children:"15 minutes before"}),(0,ut.jsx)(I,{value:"30",children:"30 minutes before"}),(0,ut.jsx)(I,{value:"60",children:"1 hour before"}),(0,ut.jsx)(I,{value:"1440",children:"1 day before"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"tags",children:"Tags (comma-separated)"}),(0,ut.jsx)(O,{id:"tags",value:i.tags,onChange:c=>n({...i,tags:c.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,ut.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:()=>l(!1),children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",children:"Add Reminder"})]})]})]})]})},Vs=({reminder:e,colleagues:t,onUpdateReminder:a,open:r,onClose:l})=>{let[i,n]=(0,Le.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague.id,priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""});return(0,ut.jsx)(Ke,{open:r,onOpenChange:l,children:(0,ut.jsxs)(He,{className:"max-w-2xl",children:[(0,ut.jsx)(je,{children:(0,ut.jsx)(Ge,{children:"Edit Reminder"})}),(0,ut.jsxs)("form",{onSubmit:c=>{c.preventDefault();let p=t.find(N=>N.id===i.colleagueId);if(!p)return;let d={title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:p,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,priority:i.priority,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(N=>N.trim()):void 0};a(e.id,d),l()},className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-title",children:"Title"}),(0,ut.jsx)(O,{id:"edit-title",value:i.title,onChange:c=>n({...i,title:c.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-priority",children:"Priority"}),(0,ut.jsxs)(le,{value:i.priority,onValueChange:c=>n({...i,priority:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"low",children:"\u{1F7E2} Low"}),(0,ut.jsx)(I,{value:"medium",children:"\u{1F7E1} Medium"}),(0,ut.jsx)(I,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-description",children:"Description"}),(0,ut.jsx)(Ne,{id:"edit-description",value:i.description,onChange:c=>n({...i,description:c.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,ut.jsx)(O,{id:"edit-dueDate",type:"date",value:i.dueDate,onChange:c=>n({...i,dueDate:c.target.value}),required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,ut.jsx)(O,{id:"edit-dueTime",type:"time",value:i.dueTime,onChange:c=>n({...i,dueTime:c.target.value})})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,ut.jsxs)(le,{value:i.colleagueId,onValueChange:c=>n({...i,colleagueId:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{placeholder:"Select a digital colleague"})}),(0,ut.jsx)(ie,{children:t.map(c=>(0,ut.jsx)(I,{value:c.id,children:c.name},c.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:i.isRecurring,onChange:c=>n({...i,isRecurring:c.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(P,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,ut.jsxs)(le,{value:i.recurrencePattern,onValueChange:c=>n({...i,recurrencePattern:c}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"daily",children:"Daily"}),(0,ut.jsx)(I,{value:"weekly",children:"Weekly"}),(0,ut.jsx)(I,{value:"monthly",children:"Monthly"}),(0,ut.jsx)(I,{value:"yearly",children:"Yearly"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,ut.jsx)(O,{id:"edit-recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:c=>n({...i,recurrenceInterval:parseInt(c.target.value)})})]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:i.reminderEnabled,onChange:c=>n({...i,reminderEnabled:c.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(P,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,ut.jsxs)("div",{className:"pl-6",children:[(0,ut.jsx)(P,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,ut.jsxs)(le,{value:i.reminderMinutes.toString(),onValueChange:c=>n({...i,reminderMinutes:parseInt(c)}),children:[(0,ut.jsx)(oe,{children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"5",children:"5 minutes before"}),(0,ut.jsx)(I,{value:"15",children:"15 minutes before"}),(0,ut.jsx)(I,{value:"30",children:"30 minutes before"}),(0,ut.jsx)(I,{value:"60",children:"1 hour before"}),(0,ut.jsx)(I,{value:"1440",children:"1 day before"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(P,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,ut.jsx)(O,{id:"edit-tags",value:i.tags,onChange:c=>n({...i,tags:c.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,ut.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:l,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",children:"Save Changes"})]})]})]})})},Hs=({reminder:e,colleagues:t,onUpdateReminder:a,onDeleteReminder:r})=>{let[l,i]=(0,Le.useState)(!1),n=Ka(e.dueDate,e.dueTime),m=qa(e.dueDate),c=zs(e.dueDate),p=()=>{a(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},d=()=>m?"Today":c?"Tomorrow":n&&!e.isCompleted?"Overdue":Fs(e.dueDate);return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Vs,{reminder:e,colleagues:t,onUpdateReminder:a,open:l,onClose:()=>i(!1)}),(0,ut.jsx)(te,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${n&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,ut.jsx)(tt,{className:"p-4",children:(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,ut.jsx)("button",{onClick:p,className:"Le-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,ut.jsx)(gt.CheckCircle,{className:"h-5 w-5"}):(0,ut.jsx)(gt.Circle,{className:"h-5 w-5"})}),(0,ut.jsxs)("div",{className:"flex-1",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,ut.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,ut.jsx)("span",{className:"text-sm",children:Ls(e.priority)}),e.isRecurring&&(0,ut.jsx)(gt.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,ut.jsx)(gt.Bell,{className:"h-4 w-4 text-success"})]}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:n&&!e.isCompleted?"text-destructive font-medium":"",children:d()})]}),e.dueTime&&(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.Clock,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:Bs(e.dueTime)})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.User,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:e.colleague.name})]})]}),e.tags&&e.tags.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap gap-1 Le-2",children:e.tags.map((N,v)=>(0,ut.jsx)(ge,{variant:"secondary",className:"text-xs",children:N},v))})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>i(!0),className:"h-8 w-8 p-0",children:(0,ut.jsx)(gt.Edit2,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>r(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,ut.jsx)(gt.Trash2,{className:"h-4 w-4"})})]})]})})})]})},yo=({initialReminders:e=[],initialColleagues:t=[],onAddReminder:a,onUpdateReminder:r,onDeleteReminder:l})=>{let[i,n]=(0,Le.useState)(e),[m]=(0,Le.useState)(t),[c,p]=(0,Le.useState)("all"),[d,N]=(0,Le.useState)(""),v=b=>{let z={...b,id:Date.now().toString(),createdAt:new Date};n(q=>[...q,z]),a?.(b)},k=(b,z)=>{n(q=>q.map(Q=>Q.id===b?{...Q,...z}:Q)),r?.(b,z)},L=b=>{n(z=>z.filter(q=>q.id!==b)),l?.(b)},x=i.filter(b=>{if(d){let z=d.toLowerCase();if(!(b.title.toLowerCase().includes(z)||b.description.toLowerCase().includes(z)||b.colleague.name.toLowerCase().includes(z)||b.tags?.some(Q=>Q.toLowerCase().includes(z))))return!1}switch(c){case"pending":return!b.isCompleted;case"completed":return b.isCompleted;case"overdue":return!b.isCompleted&&Ka(b.dueDate,b.dueTime);case"today":return qa(b.dueDate);default:return!0}}).sort((b,z)=>{if(b.isCompleted&&!z.isCompleted)return 1;if(!b.isCompleted&&z.isCompleted)return-1;let q={high:3,medium:2,low:1},Q=q[z.priority]-q[b.priority];return Q!==0?Q:b.dueDate.getTime()-z.dueDate.getTime()}),A={total:i.length,pending:i.filter(b=>!b.isCompleted).length,completed:i.filter(b=>b.isCompleted).length,overdue:i.filter(b=>!b.isCompleted&&Ka(b.dueDate,b.dueTime)).length,today:i.filter(b=>qa(b.dueDate)).length};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Xe,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{let b={title:"New Reminder",description:"Don't forget to complete this task",dueDate:new Date,dueTime:"09:00",colleague:m[0]||{id:"1",name:"Default Colleague",department:"General",role:"Team Member"},isCompleted:!1,isRecurring:!1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,tags:["reminder"]};v(b)}}}),(0,ut.jsx)("div",{className:"h-full bg-background",children:(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,ut.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,ut.jsx)(Os,{colleagues:m,onAddReminder:v,trigger:(0,ut.jsxs)(w,{className:"flex items-center space-x-2",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Add Reminder"})]})})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,ut.jsxs)(te,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-foreground",children:A.total}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,ut.jsxs)(te,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-primary",children:A.pending}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,ut.jsxs)(te,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-success",children:A.completed}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,ut.jsxs)(te,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-destructive",children:A.overdue}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,ut.jsxs)(te,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-warning",children:A.today}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsx)(O,{placeholder:"Search reminders...",value:d,onChange:b=>N(b.target.value),className:"max-w-md"})}),(0,ut.jsxs)(le,{value:c,onValueChange:b=>p(b),children:[(0,ut.jsx)(oe,{className:"w-40",children:(0,ut.jsx)(pe,{})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsxs)(I,{value:"all",children:["All (",A.total,")"]}),(0,ut.jsxs)(I,{value:"pending",children:["Pending (",A.pending,")"]}),(0,ut.jsxs)(I,{value:"completed",children:["Completed (",A.completed,")"]}),(0,ut.jsxs)(I,{value:"overdue",children:["Overdue (",A.overdue,")"]}),(0,ut.jsxs)(I,{value:"today",children:["Today (",A.today,")"]})]})]})]}),(0,ut.jsx)("div",{className:"space-y-4",children:x.length===0?(0,ut.jsxs)(te,{className:"p-8 text-center",children:[(0,ut.jsx)("div",{className:"text-muted-foreground",children:d||c!=="all"?"No reminders match your filters":"No reminders yet"}),!d&&c==="all"&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground/60 Le-2",children:"Create your first reminder to get started"})]}):x.map(b=>(0,ut.jsx)(Hs,{reminder:b,colleagues:m,onUpdateReminder:k,onDeleteReminder:L},b.id))})]})})]})};var xt=ne(require("@radix-ui/react-tabs"));function wo({className:e,...t}){return(0,ut.jsx)(xt.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function No({className:e,...t}){return(0,ut.jsx)(xt.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function So({className:e,...t}){return(0,ut.jsx)(xt.Trigger,{"data-slot":"tabs-trigger",className:u("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var it=ne(require("react")),Z=ne(require("@radix-ui/react-dropdown-menu"));var Co=Z.Root,Do=Z.Trigger;var js=it.forwardRef(({className:e,inset:t,children:a,...r},l)=>(0,ut.jsxs)(Z.SubTrigger,{ref:l,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,(0,ut.jsx)(Tr.ChevronRightIcon,{className:"ml-auto"})]}));js.displayName=Z.SubTrigger.displayName;var Gs=it.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Z.SubContent,{ref:a,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Gs.displayName=Z.SubContent.displayName;var Ja=it.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,ut.jsx)(Z.Portal,{children:(0,ut.jsx)(Z.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ja.displayName=Z.Content.displayName;var Xa=it.forwardRef(({className:e,inset:t,...a},r)=>(0,ut.jsx)(Z.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Xa.displayName=Z.Item.displayName;var Us=it.forwardRef(({className:e,children:t,checked:a,...r},l)=>(0,ut.jsxs)(Z.CheckboxItem,{ref:l,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(Z.ItemIndicator,{children:(0,ut.jsx)(Tr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Us.displayName=Z.CheckboxItem.displayName;var _s=it.forwardRef(({className:e,children:t,...a},r)=>(0,ut.jsxs)(Z.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(Z.ItemIndicator,{children:(0,ut.jsx)(Tr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));_s.displayName=Z.RadioItem.displayName;var $ut=it.forwardRef(({className:e,inset:t,...a},r)=>(0,ut.jsx)(Z.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));$ut.displayName=Z.Label.displayName;var Ws=it.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Z.Separator,{ref:a,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));Ws.displayName=Z.Separator.displayName;var Ks=({className:e,...t})=>(0,ut.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});Ks.displayName="DropdownMenuShortcut";function ko({activeTab:e,onTabChange:t,tabOptions:a,className:r="",maxWidth:l="700px",gridCols:i=6}){let n=a.find(m=>m.value===e);return(0,ut.jsxs)(mo.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,ut.jsx)("div",{className:"hidden md:block",children:(0,ut.jsx)(wo,{value:e,onValueChange:t,children:(0,ut.jsx)(No,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:l,gridTemplateColumns:`repeat(${Math.min(i,a.length)}, minmax(0, 1fr))`},children:a.map(m=>(0,ut.jsx)(mo.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,ut.jsx)(So,{value:m.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:m.label})},m.value))})})}),(0,ut.jsx)("div",{className:"md:hidden",children:(0,ut.jsxs)(Co,{children:[(0,ut.jsx)(Do,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,ut.jsx)(Ja,{align:"center",className:"w-[180px]",children:a.map(m=>(0,ut.jsx)(Xa,{onClick:()=>t?.(m.value),className:`cursor-pointer ${e===m.value?"bg-accent":""}`,children:m.label},m.value))})]})})]})}function fa({files:e,onFileClick:t,onFileEdit:a,onFileDelete:r,showHeader:l=!0,className:i}){return(0,ut.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${i||""}`,children:[l&&(0,ut.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,ut.jsx)("div",{className:"col-span-6",children:"Name"}),(0,ut.jsx)("div",{className:"col-span-2",children:"Size"}),(0,ut.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,ut.jsx)("div",{className:"divide-y",children:e.map(n=>(0,ut.jsxs)(mo.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[(0,ut.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,ut.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),(0,ut.jsx)("div",{children:(0,ut.jsx)("p",{className:"font-medium",children:n.name})})]}),(0,ut.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),(0,ut.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,ut.jsx)("span",{className:"text-sm md:text-base",children:n.modified}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:m=>{m.stopPropagation(),a?.(n)},children:(0,ut.jsx)(gt.Edit,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:m=>{m.stopPropagation(),r?.(n)},children:(0,ut.jsx)(gt.Trash2,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,ut.jsx)(gt.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},n.name))})]})}function Ya({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:r,onFileClick:l,compactView:i=!1,className:n}){let[m,c]=(0,Le.useState)(e),[p,d]=(0,Le.useState)(""),[N,v]=(0,Le.useState)("all"),[k,L]=(0,Le.useState)("all"),K=Array.from(new Set(m.map(V=>V.app))),x=m.filter(V=>{let R=V.name.toLowerCase().includes(p.toLowerCase()),U=N==="all"||V.app===N;return R&&U}),A=x.slice(0,10),b=x.filter(V=>V.shared),z=()=>{console.log("Add file clicked")},q=V=>{console.log("Edit file:",V.name),a?.(V)},Q=V=>{c(R=>R.filter(U=>U.name!==V.name)),r?.(V.name)},ae=V=>{console.log("File clicked:",V.name),l?.(V)},ce=()=>{d(""),v("all")};return(0,ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,ut.jsx)(mo.AnimatePresence,{mode:"wait",children:(0,ut.jsx)(mo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,ut.jsxs)("div",{className:`space-y-6 ${n||""}`,children:[(0,ut.jsx)(Xe,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:z},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,ut.jsxs)(te,{children:[(0,ut.jsxs)(Ft,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,ut.jsx)(Bt,{className:"text-sm font-medium",children:"Total Files"}),(0,ut.jsx)(gt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,ut.jsxs)(tt,{children:[(0,ut.jsx)("div",{className:"text-2xl font-bold",children:m.length}),(0,ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[m.filter(V=>V.shared).length," shared"]})]})]}),(0,ut.jsxs)(te,{children:[(0,ut.jsxs)(Ft,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,ut.jsx)(Bt,{className:"text-sm font-medium",children:"Storage Used"}),(0,ut.jsx)(gt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,ut.jsxs)(tt,{children:[(0,ut.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,ut.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,ut.jsxs)(te,{children:[(0,ut.jsxs)(Ft,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,ut.jsx)(Bt,{className:"text-sm font-medium",children:"Recent Activity"}),(0,ut.jsx)(gt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,ut.jsxs)(tt,{children:[(0,ut.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,ut.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,ut.jsx)(te,{children:(0,ut.jsx)(tt,{className:"pt-6",children:(0,ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(gt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,ut.jsx)(O,{placeholder:"Search files...",value:p,onChange:V=>d(V.target.value),className:"pl-9"})]})}),(0,ut.jsxs)(le,{value:N,onValueChange:v,children:[(0,ut.jsx)(oe,{className:"w-full md:w-[180px]",children:(0,ut.jsx)(pe,{placeholder:"Filter by app"})}),(0,ut.jsxs)(ie,{children:[(0,ut.jsx)(I,{value:"all",children:"All Apps"}),K.map(V=>(0,ut.jsx)(I,{value:V,children:V},V))]})]}),(p||N!=="all")&&(0,ut.jsxs)(w,{variant:"outline",onClick:ce,className:"gap-2",children:[(0,ut.jsx)(gt.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsx)(ko,{activeTab:k,onTabChange:L,tabOptions:[{value:"all",label:`All Files (${x.length})`},{value:"recent",label:`Recent (${A.length})`},{value:"shared",label:`Shared (${b.length})`}],maxWidth:"500px",gridCols:3}),k==="all"&&(0,ut.jsx)(fa,{files:x,onFileClick:ae,onFileEdit:q,onFileDelete:Q,showHeader:!i}),k==="recent"&&(0,ut.jsx)(fa,{files:A,onFileClick:ae,onFileEdit:q,onFileDelete:Q,showHeader:!i}),k==="shared"&&(0,ut.jsx)(fa,{files:b,onFileClick:ae,onFileEdit:q,onFileDelete:Q,showHeader:!i})]}),x.length===0&&(0,ut.jsx)(te,{children:(0,ut.jsx)(tt,{className:"pt-6",children:(0,ut.jsxs)("div",{className:"text-center py-8",children:[(0,ut.jsx)(gt.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,ut.jsx)("p",{className:"text-muted-foreground mb-4",children:p||N!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,ut.jsxs)(w,{onClick:z,className:"gap-2",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var To=require("next/navigation");function Eo({title:e="",initialTasks:t=[],initialEpics:a=[],initialSprints:r=[],initialProjects:l=[],initialReminders:i=[],initialColleagues:n=[],initialFiles:m=[],onAddTask:c,onUpdateTask:p,onDeleteTask:d,onTaskClick:N,onAddEpic:v,onUpdateEpic:k,onDeleteEpic:L,onAddTaskToEpic:K,onAddSprint:x,onUpdateSprint:A,onDeleteSprint:b,onAddProject:z,onUpdateProject:q,onDeleteProject:Q,onFileAdd:ae,onFileEdit:ce,onFileDelete:V,onFileClick:R,onAddReminder:U,onUpdateReminder:be,onDeleteReminder:T,onViewChange:h,onToggleMobileMenu:Y,onTeamClick:he,onTeamChange:ze,onCopilotClick:Oe}){let[Pe,ke]=(0,Le.useState)(t),[C,H]=(0,Le.useState)(a),[re,Ie]=(0,Le.useState)(r),[Ye,Qe]=(0,Le.useState)(l),[st,Tt]=(0,Le.useState)(i),[ba,Qa]=(0,Le.useState)(n),[ha,Ut]=(0,Le.useState)(m),[xa,_t]=(0,Le.useState)(!1),[ya,$t]=(0,Le.useState)(!1),[yt,Et]=(0,Le.useState)(null),[Wt,It]=(0,Le.useState)(null),[Mt,g]=(0,Le.useState)(null),[y,ee]=(0,Le.useState)("kanban"),[Io,Mo]=(0,Le.useState)(!1),er=(0,To.useRouter)(),Ao=C.filter(f=>f.isSelected).map(f=>f.id),Kt=re.find(f=>f.isSelected),Lo=Pe.filter(f=>{let D=Ao.includes(f.epicId);return!Kt||Kt.id==="all-tasks"?D:Kt.id==="backlog"?D&&!f.sprintId:D&&f.sprintId===Kt.id}),Js=f=>Lo.filter(D=>D.status===f),Xs=f=>{let D={};return C.forEach(G=>{D[G.id]=f.filter(de=>de.epicId===G.id)}),D},Zs=f=>{g(f)},Ys=f=>{Mt&&(ke(D=>D.map(G=>G.id===Mt.id?{...G,status:f}:G)),g(null))},tr=f=>{let D={...f,id:Date.now().toString(),createdAt:new Date};ke(G=>[...G,D]),p?.(D.id,D)},qt=(f,D)=>{ke(G=>G.map(de=>de.id===f?{...de,...D}:de)),p?.(f,D)},Fo=async(f,D)=>{qt(f,D)},ar=f=>{ke(D=>D.filter(G=>G.id!==f)),yt?.id===f&&Et(null)},Bo=async f=>{ar(f)},zo=f=>{let D={...f,id:Date.now().toString(),isSelected:!1};Qe(G=>[...G,D]),z?.(f)},Oo=(f,D)=>{Qe(G=>G.map(de=>de.id===f?D.isSelected?(er.push(`/kanban/${f}`),{...de,...D}):{...de,...D}:D.isSelected&&f!==de.id?{...de,isSelected:!1}:de)),q?.(f,D)},Vo=f=>{Qe(D=>D.filter(G=>G.id!==f)),Q?.(f)},Ho=f=>{let D={...f,id:Date.now().toString(),isSelected:!0};H(G=>[...G,D])},wa=()=>{$t(!0)},rr=(f,D)=>{H(G=>G.map(de=>de.id===f?{...de,...D}:de)),k?.(f,D)},or=f=>{H(D=>D.filter(G=>G.id!==f)),ke(D=>D.filter(G=>G.epicId!==f)),L?.(f)},ir=f=>{let D={...f,id:Date.now().toString(),isSelected:!1};Ie(G=>[...G,D]),x?.(f)},jo=(f,D)=>{Ie(G=>G.map(de=>de.id===f?D.isSelected?{...de,...D}:{...de,...D}:D.isSelected&&f!==de.id?{...de,isSelected:!1}:de)),A?.(f,D)},Go=f=>{f==="backlog"||f==="all-tasks"||(Ie(D=>D.filter(G=>G.id!==f)),ke(D=>D.map(G=>G.sprintId===f?{...G,sprintId:void 0}:G)),b?.(f))},Na=f=>{Et(f)},Uo=f=>{f==="planning"&&window.innerWidth<768||ee(f)},_o=()=>{Mo(f=>!f),Y?.()},Qs=()=>{er.push("/")},en=f=>{console.log("Switching to team:",f)},tn=f=>{console.log("Switching to team:",f)},$ut=f=>{It(f),_t(!0)},Wo=()=>{_t(!1),It(null)},Ko=f=>{let D={...f,id:Date.now().toString(),createdAt:new Date};Tt(G=>[...G,D]),U?.(f)},qo=(f,D)=>{Tt(G=>G.map(de=>de.id===f?{...de,...D}:de)),be?.(f,D)},Jo=f=>{Tt(D=>D.filter(G=>G.id!==f)),T?.(f)},Xo=f=>{Ut(D=>[...D,f]),ae?.(f)},Zo=f=>{ce?.(f)},Yo=f=>{Ut(D=>D.filter(G=>G.name!==f)),V?.(f)},Qo=f=>{R?.(f)},an=[{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"}],rn=()=>{switch(y){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},Sa=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],on=Sa.sort((f,D)=>D.lastUsed.getTime()-f.lastUsed.getTime()).slice(0,3),sn=Sa.length>3,nn=Sa.slice(3);return(0,ut.jsxs)(Gr,{projects:Ye,epics:C,sprints:re,currentView:y,onUpdateProject:Oo,onDeleteProject:Vo,onAddProject:zo,onUpdateEpic:rr,onDeleteEpic:or,onAddEpic:wa,onAddSprint:ir,onUpdateSprint:jo,onDeleteSprint:Go,onViewChange:Uo,mobileMenuOpen:Io,onToggleMobileMenu:_o,children:[y==="kanban"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(po,{initialProjects:Ye,initialEpics:C,initialSprints:re,initialTasks:Pe,onAddTask:tr,onUpdateTask:qt,onDeleteTask:ar,onTaskClick:Na,onAddEpic:wa})}),y==="planning"&&(0,ut.jsx)("div",{className:"hidden md:block h-full",children:(0,ut.jsx)(xo,{tasks:Pe,epics:C,sprints:re,onUpdateTask:qt,onTaskClick:Na,onAddSprint:ir})}),y==="tasks"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(yo,{initialReminders:st,initialColleagues:ba,onAddReminder:Ko,onUpdateReminder:qo,onDeleteReminder:Jo})}),y==="files"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(Ya,{initialFiles:ha,onFileAdd:Xo,onFileEdit:Zo,onFileDelete:Yo,onFileClick:Qo,compactView:!1})}),y==="epics"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(uo,{tasks:Pe,epics:C,sprints:re,onUpdateTask:qt,onTaskClick:Na,onAddTaskToEpic:$ut,onAddEpic:wa,onUpdateEpic:rr,onDeleteEpic:or})}),(0,ut.jsx)(ta,{isOpen:xa,onClose:Wo,onAddTask:tr,epics:C,sprints:re,defaultEpicId:Wt||void 0}),(0,ut.jsx)(na,{isOpen:ya,onClose:()=>$t(!1),onAddEpic:Ho}),yt&&(0,ut.jsx)(sa,{isOpen:!!yt,onClose:()=>Et(null),task:yt,onUpdateTask:Fo,onDeleteTask:Bo,epics:C,sprints:re})]})}
|
|
5
|
+
"use strict";var Zr=Object.create;var Wt=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var Qr=Object.getOwnPropertyNames;var ei=Object.getPrototypeOf,ti=Object.prototype.hasOwnProperty;var ai=(e,t)=>{for(var a in t)Wt(e,a,{get:t[a],enumerable:!0})},oo=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Qr(t))!ti.call(e,n)&&n!==a&&Wt(e,n,{get:()=>t[n],enumerable:!(o=Yr(t,n))||o.enumerable});return e};var ne=(e,t,a)=>(a=e!=null?Zr(ei(e)):{},oo(t||!e||!e.__esModule?Wt(a,"default",{value:e,enumerable:!0}):a,e)),oi=e=>oo(Wt({},"__esModule",{value:!0}),e);var qn={};ai(qn,{default:()=>Pr});module.exports=oi(qn);var be=require("react");var pt=ne(require("react"));var uo=require("clsx");var Ca="-",ri=e=>{let t=ni(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let c=d.split(Ca);return c[0]===""&&c.length!==1&&c.shift(),no(c,t)||ii(d)},getConflictingClassGroupIds:(d,c)=>{let p=a[d]||[];return c&&o[d]?[...p,...o[d]]:p}}},no=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),n=o?no(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(Ca);return t.validators.find(({validator:d})=>d(i))?.classGroupId},ro=/^\[(.+)\]$/,ii=e=>{if(ro.test(e)){let t=ro.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ni=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return li(Object.entries(e.classGroups),a).forEach(([i,d])=>{Sa(d,o,i,t)}),o},Sa=(e,t,a,o)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:io(t,n);i.classGroupId=a;return}if(typeof n=="function"){if(si(n)){Sa(n(o),t,a,o);return}t.validators.push({validator:n,classGroupId:a});return}Object.entries(n).forEach(([i,d])=>{Sa(d,io(t,i),a,o)})})},io=(e,t)=>{let a=e;return t.split(Ca).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},si=e=>e.isThemeGetter,li=(e,t)=>t?e.map(([a,o])=>{let n=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,c])=>[t+d,c])):i);return[a,n]}):e,di=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,n=(i,d)=>{a.set(i,d),t++,t>e&&(t=0,o=a,a=new Map)};return{get(i){let d=a.get(i);if(d!==void 0)return d;if((d=o.get(i))!==void 0)return n(i,d),d},set(i,d){a.has(i)?a.set(i,d):n(i,d)}}},so="!",ci=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,n=t[0],i=t.length,d=c=>{let p=[],m=0,l=0,N;for(let x=0;x<c.length;x++){let G=c[x];if(m===0){if(G===n&&(o||c.slice(x,x+i)===t)){p.push(c.slice(l,x)),l=x+i;continue}if(G==="/"){N=x;continue}}G==="["?m++:G==="]"&&m--}let v=p.length===0?c:c.substring(l),C=v.startsWith(so),I=C?v.substring(1):v,q=N&&N>l?N-l:void 0;return{modifiers:p,hasImportantModifier:C,baseClassName:I,maybePostfixModifierPosition:q}};return a?c=>a({className:c,parseClassName:d}):d},mi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},pi=e=>({cache:di(e.cacheSize),parseClassName:ci(e),...ri(e)}),ui=/\ut+/,gi=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(ui),c="";for(let p=d.length-1;p>=0;p-=1){let m=d[p],{modifiers:l,hasImportantModifier:N,baseClassName:v,maybePostfixModifierPosition:C}=a(m),I=!!C,q=o(I?v.substring(0,C):v);if(!q){if(!I){c=m+(c.length>0?" "+c:c);continue}if(q=o(v),!q){c=m+(c.length>0?" "+c:c);continue}I=!1}let x=mi(l).join(":"),G=N?x+so:x,O=G+q;if(i.includes(O))continue;i.push(O);let _=n(q,I);for(let te=0;te<_.length;++te){let h=_[te];i.push(G+h)}c=m+(c.length>0?" "+c:c)}return c};function fi(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=lo(t))&&(o&&(o+=" "),o+=a);return o}var lo=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=lo(e[o]))&&(a&&(a+=" "),a+=t);return a};function vi(e,...t){let a,o,n,i=d;function d(p){let m=t.reduce((l,N)=>N(l),e());return a=pi(m),o=a.cache.get,n=a.cache.set,i=c,c(p)}function c(p){let m=o(p);if(m)return m;let l=gi(p,a);return n(p,l),l}return function(){return i(fi.apply(null,arguments))}}var de=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},co=/^\[(?:([a-z-]+):)?(.+)\]$/i,bi=/^\d+\/\d+$/,hi=new Set(["px","full","screen"]),xi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yi=/\d+(%|px|ut?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|ut?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ni=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Si=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>Nt(e)||hi.has(e)||bi.test(e),st=e=>St(e,"length",Ii),Nt=e=>!!e&&!Number.isNaN(Number(e)),Na=e=>St(e,"number",Nt),Mt=e=>!!e&&Number.isInteger(Number(e)),Ci=e=>e.endsWith("%")&&Nt(e.slice(0,-1)),$=e=>co.test(e),lt=e=>xi.test(e),Di=new Set(["length","size","percentage"]),ki=e=>St(e,Di,mo),Pi=e=>St(e,"position",mo),Ti=new Set(["image","url"]),Ri=e=>St(e,Ti,Ai),Ei=e=>St(e,"",Mi),At=()=>!0,St=(e,t,a)=>{let o=co.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ii=e=>yi.test(e)&&!wi.test(e),mo=()=>!1,Mi=e=>Ni.test(e),Ai=e=>Si.test(e);var Li=()=>{let e=de("colors"),t=de("spacing"),a=de("blur"),o=de("brightness"),n=de("borderColor"),i=de("borderRadius"),d=de("borderSpacing"),c=de("borderWidth"),p=de("contrast"),m=de("grayscale"),l=de("hueRotate"),N=de("invert"),v=de("gap"),C=de("gradientColorStops"),I=de("gradientColorStopPositions"),q=de("inset"),x=de("margin"),G=de("opacity"),O=de("padding"),_=de("saturate"),te=de("scale"),h=de("sepia"),B=de("skew"),Q=de("space"),z=de("translate"),P=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",$,t],T=()=>[$,t],Me=()=>["",tt,st],Oe=()=>["auto",Nt,$],Ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],b=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",$],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Nt,$];return{cacheSize:500,separator:":",theme:{colors:[At],spacing:[tt,st],blur:["none","",lt,$],brightness:L(),borderColor:[e],borderRadius:["none","","full",lt,$],borderSpacing:T(),borderWidth:Me(),contrast:L(),grayscale:xe(),hueRotate:L(),invert:xe(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Ci,st],inset:ge(),margin:ge(),opacity:L(),padding:T(),saturate:L(),scale:L(),sepia:xe(),skew:L(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[lt]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ve(),$]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Mt,$]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",Mt,$]}],"grid-cols":[{"grid-cols":[At]}],"col-start-end":[{col:["auto",{span:["full",Mt,$]},$]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[At]}],"row-start-end":[{row:["auto",{span:[Mt,$]},$]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],gt:[{gt:[x]}],ut:[{ut:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[lt]},lt]}],h:[{h:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lt,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Na]}],"font-family":[{font:[At]}],"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",$]}],"line-clamp":[{"line-clamp":["none",Nt,Na]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tt,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[G]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...b(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tt,st]}],"underline-offset":[{"underline-offset":["auto",tt,$]}],"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",$]}],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",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[G]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ve(),Pi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ki]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","ut","br","b","bl","l","tl"]},Ri]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[i]}],"rounded-ut":[{"rounded-ut":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-ut":[{"rounded-ut":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-ut":[{"border-ut":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-ut":[{"border-ut":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[G]}],"border-style":[{border:[...b(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[G]}],"divide-style":[{divide:b()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-ut":[{"border-ut":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-ut":[{"border-ut":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...b()]}],"outline-offset":[{"outline-offset":[tt,$]}],"outline-w":[{outline:[tt,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[G]}],"ring-offset-w":[{"ring-offset":[tt,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lt,Ei]}],"shadow-color":[{shadow:[At]}],opacity:[{opacity:[G]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",lt,$]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[N]}],saturate:[{saturate:[_]}],sepia:[{sepia:[h]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[G]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[te]}],"scale-x":[{"scale-x":[te]}],"scale-y":[{"scale-y":[te]}],rotate:[{rotate:[Mt,$]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],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","ut-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"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-gt":[{"scroll-gt":T()}],"scroll-ut":[{"scroll-ut":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-pe":[{"scroll-pe":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",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tt,st,Na]}],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","gt","ut","mb","ml"],mx:["ut","ml"],my:["gt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-ut","rounded-e","rounded-t","rounded-ut","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-ut":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-ut":["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-ut","border-w-e","border-w-t","border-w-ut","border-w-b","border-w-l"],"border-w-x":["border-w-ut","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-ut","border-color-e","border-color-t","border-color-ut","border-color-b","border-color-l"],"border-color-x":["border-color-ut","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-gt","scroll-ut","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ut","scroll-ml"],"scroll-my":["scroll-gt","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 po=vi(Li);function u(...e){return po((0,uo.clsx)(e))}var ut=require("react/jsx-runtime"),se=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...t}));se.displayName="Card";var Fi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("flex flex-col space-y-1.5 p-6",e),...t}));Fi.displayName="CardHeader";var Bi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("font-semibold leading-none tracking-tight",e),...t}));Bi.displayName="CardTitle";var zi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("text-sm text-muted-foreground",e),...t}));zi.displayName="CardDescription";var Ct=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("p-6 pt-0",e),...t}));Ct.displayName="CardContent";var Oi=pt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:u("flex items-center p-6 pt-0",e),...t}));Oi.displayName="CardFooter";var go=require("@radix-ui/react-slot"),fo=require("class-variance-authority"),vo=ne(require("react")),Kt=(0,fo.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),w=vo.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...n},i)=>(0,ut.jsx)(e?go.Slot:"button",{className:u(Kt({className:t,size:a,variant:o})),ref:i,...n}));w.displayName="Button";var ho=ne(require("react"));var F=ho.forwardRef(({className:e,type:t,...a},o)=>(0,ut.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));F.displayName="Input";var yo=ne(require("react")),Ne=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ne.displayName="Textarea";var X=ne(require("@radix-ui/react-select")),gt=require("lucide-react"),dt=ne(require("react")),pe=X.Root;var Se=X.Value,ce=dt.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(X.Trigger,{className:u("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ut.jsx)(X.Icon,{asChild:!0,children:(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ce.displayName=X.Trigger.displayName;var No=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(X.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gt.ChevronUp,{className:"h-4 w-4"})}));No.displayName=X.ScrollUpButton.displayName;var So=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(X.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4"})}));So.displayName=X.ScrollDownButton.displayName;var me=dt.forwardRef(({children:e,className:t,position:a="popper",...o},n)=>(0,ut.jsx)(X.Portal,{children:(0,ut.jsxs)(X.Content,{className:u("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="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:a,ref:n,...o,children:[(0,ut.jsx)(No,{}),(0,ut.jsx)(X.Viewport,{className:u("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(So,{})]})}));me.displayName=X.Content.displayName;var Vi=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(X.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Vi.displayName=X.Label.displayName;var V=dt.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(X.Item,{className:u("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(X.ItemIndicator,{children:(0,ut.jsx)(gt.Check,{className:"h-4 w-4"})})}),(0,ut.jsx)(X.ItemText,{children:e})]}));V.displayName=X.Item.displayName;var Hi=dt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(X.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Hi.displayName=X.Separator.displayName;var K=ne(require("react"));var Co=(e=768)=>{let[t,a]=(0,be.useState)(!1);return(0,be.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Do=ne(require("react")),Da=ne(require("@radix-ui/react-separator"));var ka=Do.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},n)=>(0,ut.jsx)(Da.Root,{ref:n,decorative:a,orientation:t,className:u("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));ka.displayName=Da.Root.displayName;var Lt=ne(require("react")),Pe=ne(require("@radix-ui/react-dialog")),Po=require("@radix-ui/react-icons");var Ro=Pe.Root;var ji=Pe.Portal,Eo=Lt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Pe.Overlay,{className:u("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,ref:a}));Eo.displayName=Pe.Overlay.displayName;var Ui=(0,fo.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-ut data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Pa=Lt.forwardRef(({side:e="right",className:t,children:a,...o},n)=>(0,ut.jsxs)(ji,{children:[(0,ut.jsx)(Eo,{}),(0,ut.jsxs)(Pe.Content,{ref:n,className:u(Ui({side:e}),t),...o,children:[(0,ut.jsxs)(Pe.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-secondary",children:[(0,ut.jsx)(Po.Cross2Icon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Pa.displayName=Pe.Content.displayName;var Gi=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gi.displayName="SheetHeader";var _i=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_i.displayName="SheetFooter";var $i=Lt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Pe.Title,{ref:a,className:u("text-lg font-semibold text-foreground",e),...t}));$i.displayName=Pe.Title.displayName;var Wi=Lt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Pe.Description,{ref:a,className:u("text-sm text-muted-foreground",e),...t}));Wi.displayName=Pe.Description.displayName;function Ta({className:e,...t}){return(0,ut.jsx)("div",{className:u("animate-pulse rounded-md bg-primary/10",e),...t})}var Mo=ne(require("react")),Je=ne(require("@radix-ui/react-tooltip"));var Ao=Je.Provider,Lo=Je.Root,Fo=Je.Trigger,Ea=Mo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Je.Portal,{children:(0,ut.jsx)(Je.Content,{ref:o,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ea.displayName=Je.Content.displayName;var Ki="sidebar:state",qi=60*60*24*7,Ji="16rem",Xi="18rem",Zi="3rem",Yi="b",Oo=K.createContext(null);function Jt(){let e=K.useContext(Oo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Ia=K.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:n,children:i,...d},c)=>{let p=Co(),[m,l]=K.useState(!1),[N,v]=K.useState(e),C=t??N,I=K.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(C):O);v(O),document.cookie=`${Ki}=${C}; path=/; max-age=${qi}`},[a,C]),q=K.useCallback(()=>p?l(O=>!O):I(O=>!O),[p,I,l]);K.useEffect(()=>{let O=_=>{_.key===Yi&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),q())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[q]);let x=C?"expanded":"collapsed",G=K.useMemo(()=>({state:x,open:C,setOpen:I,isMobile:p,openMobile:m,setOpenMobile:l,toggleSidebar:q}),[x,C,I,p,m,l,q]);return(0,ut.jsx)(Oo.Provider,{value:G,children:(0,ut.jsx)(Ao,{delayDuration:0,children:(0,ut.jsx)("div",{style:{"--sidebar-width":Ji,"--sidebar-width-icon":Zi,...n},className:u("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:c,...d,children:i})})})});Ia.displayName="SidebarProvider";var Qi=K.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:n,...i},d)=>{let{isMobile:c,state:p,openMobile:m,setOpenMobile:l}=Jt();return a==="none"?(0,ut.jsx)("div",{className:u("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:d,...i,children:n}):c?(0,ut.jsx)(Ro,{open:m,onOpenChange:l,...i,children:(0,ut.jsx)(Pa,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Xi},side:e,children:(0,ut.jsx)("div",{className:"flex h-full w-full flex-col",children:n})})}):(0,ut.jsxs)("div",{ref:d,className:"group peer hidden md:block text-sidebar-foreground","data-state":p,"data-collapsible":p==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ut.jsx)("div",{className:u("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ut.jsx)("div",{className:u("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-ut group-data-[side=right]:border-l",o),...i,children:(0,ut.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:n})})]})});Qi.displayName="Sidebar";var en=K.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:n}=Jt();return(0,ut.jsxs)(w,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:u("h-7 w-7",e),onClick:i=>{t?.(i),n()},...a,children:[(0,ut.jsx)(gt.PanelLeft,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});en.displayName="SidebarTrigger";var tn=K.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Jt();return(0,ut.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:u("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});tn.displayName="SidebarRail";var an=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("main",{ref:a,className:u("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));an.displayName="SidebarInset";var on=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(F,{ref:a,"data-sidebar":"input",className:u("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));on.displayName="SidebarInput";var rn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"header",className:u("flex flex-col gap-2 p-2",e),...t}));rn.displayName="SidebarHeader";var nn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"footer",className:u("flex flex-col gap-2 p-2",e),...t}));nn.displayName="SidebarFooter";var sn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ka,{ref:a,"data-sidebar":"separator",className:u("mx-2 w-auto bg-sidebar-border",e),...t}));sn.displayName="SidebarSeparator";var ln=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"content",className:u("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ln.displayName="SidebarContent";var dn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group",className:u("relative flex w-full min-w-0 flex-col p-2",e),...t}));dn.displayName="SidebarGroup";var cn=K.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?go.Slot:"div",{ref:o,"data-sidebar":"group-label",className:u("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-gt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));cn.displayName="SidebarGroupLabel";var mn=K.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?go.Slot:"button",{ref:o,"data-sidebar":"group-action",className:u("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));mn.displayName="SidebarGroupAction";var pn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group-content",className:u("w-full text-sm",e),...t}));pn.displayName="SidebarGroupContent";var un=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu",className:u("flex w-full min-w-0 flex-col gap-1",e),...t}));un.displayName="SidebarMenu";var gn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:u("group/menu-item relative",e),...t}));gn.displayName="SidebarMenuItem";var fn=(0,fo.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),vn=K.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:n,className:i,...d},c)=>{let p=e?go.Slot:"button",{isMobile:m,state:l}=Jt(),N=(0,ut.jsx)(p,{ref:c,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:u(fn({variant:a,size:o}),i),...d});return n?(typeof n=="string"&&(n={children:n}),(0,ut.jsxs)(Lo,{children:[(0,ut.jsx)(Fo,{asChild:!0,children:N}),(0,ut.jsx)(Ea,{side:"right",align:"center",hidden:l!=="collapsed"||m,...n})]})):N});vn.displayName="SidebarMenuButton";var bn=K.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},n)=>(0,ut.jsx)(t?go.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:u("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));bn.displayName="SidebarMenuAction";var hn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:u("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));hn.displayName="SidebarMenuBadge";var xn=K.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let n=K.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ut.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:u("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ut.jsx)(Ta,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,ut.jsx)(Ta,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})});xn.displayName="SidebarMenuSkeleton";var yn=K.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:u("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));yn.displayName="SidebarMenuSub";var wn=K.forwardRef(({...e},t)=>(0,ut.jsx)("li",{ref:t,...e}));wn.displayName="SidebarMenuSubItem";var Nn=K.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...n},i)=>(0,ut.jsx)(e?go.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:u("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...n}));Nn.displayName="SidebarMenuSubButton";var Vo=({projects:e,epics:t,sprints:a,currentView:o,onUpdateProject:n,onDeleteProject:i,onAddProject:d,onUpdateEpic:c,onDeleteEpic:p,onAddEpic:m,onAddSprint:l,onUpdateSprint:N,onDeleteSprint:v,onViewChange:C,mobileMenuOpen:I,onToggleMobileMenu:q})=>{let[x,G]=(0,be.useState)(null),[O,_]=(0,be.useState)(null),[te,h]=(0,be.useState)(null),[B,Q]=(0,be.useState)(null),[z,P]=(0,be.useState)({name:"",description:""}),[U,ge]=(0,be.useState)({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[T,Me]=(0,be.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[Oe,Ve]=(0,be.useState)(!1),[b,J]=(0,be.useState)(!1),[ae,xe]=(0,be.useState)({name:"",description:""}),[D,L]=(0,be.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),ie=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],ke=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],qe=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],Fe=g=>{_(g.id),P({name:g.name,description:g.description||""})},nt=()=>{O&&z.name.trim()&&(n(O,{name:z.name.trim(),description:z.description.trim()}),_(null))},yt=()=>{_(null),P({name:"",description:""})},ga=()=>{ae.name.trim()&&(d({name:ae.name.trim(),description:ae.description.trim(),isSelected:!1}),xe({name:"",description:""}),Ve(!1))},fa=g=>{n(g,{isSelected:!0})},va=g=>{h(g.id),ge({name:g.name,description:g.description||"",color:g.color,confidence:g.confidence,phase:g.phase,startDate:g.startDate.toISOString().split("T")[0],endDate:g.endDate.toISOString().split("T")[0],progress:g.progress})},Ht=()=>{te&&U.name.trim()&&(c(te,{name:U.name.trim(),description:U.description.trim(),color:U.color,confidence:U.confidence,phase:U.phase,startDate:new Date(U.startDate),endDate:new Date(U.endDate),progress:U.progress}),h(null))},ba=()=>{h(null),ge({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},jt=g=>{Q(g.id),Me({name:g.name,description:g.description||"",startDate:g.startDate.toISOString().split("T")[0],endDate:g.endDate.toISOString().split("T")[0],isActive:g.isActive})},ha=()=>{B&&T.name.trim()&&(N(B,{name:T.name.trim(),description:T.description.trim(),startDate:new Date(T.startDate),endDate:new Date(T.endDate),isActive:T.isActive}),Q(null))},Ut=()=>{Q(null),Me({name:"",description:"",startDate:"",endDate:"",isActive:!1})},wt=()=>{D.name.trim()&&(l({name:D.name.trim(),description:D.description.trim(),startDate:new Date(D.startDate),endDate:new Date(D.endDate),isActive:D.isActive,isSelected:!1}),L({name:"",description:"",startDate:"",endDate:"",isActive:!1}),J(!1))},Rt=g=>{N(g,{isSelected:!0})},Gt=g=>g.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Et=g=>{let y=ke.find(ee=>ee.value===g);return y?{label:y.label,color:y.color}:{label:"Medium",color:"text-warning"}},It=g=>{let y=qe.find(ee=>ee.value===g);return y?{label:y.label,color:y.color}:{label:"Phase 1",color:"text-primary"}};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${I?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[(0,ut.jsxs)("div",{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)("button",{onClick:()=>{C("kanban"),G(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[(0,ut.jsx)(gt.Kanban,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),(0,ut.jsxs)("button",{onClick:()=>{C("planning"),G(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),(0,ut.jsxs)("button",{onClick:()=>G(x==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${x==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[(0,ut.jsx)(gt.FolderOpen,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),(0,ut.jsxs)("button",{onClick:()=>{C("epics"),G(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[(0,ut.jsx)(gt.Target,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),(0,ut.jsxs)("button",{onClick:()=>G(x==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${x==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[(0,ut.jsx)(gt.Layers,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),(0,ut.jsxs)("button",{onClick:()=>{C("files"),G(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[(0,ut.jsx)(gt.FileText,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),(0,ut.jsxs)("button",{onClick:()=>{C("tasks"),G(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,ut.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),I&&(0,ut.jsx)("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:q}),x&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>G(null)}),(0,ut.jsxs)("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[(0,ut.jsxs)("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[(0,ut.jsxs)("h2",{className:"text-base md:text-lg font-semibold",children:[x==="projects"&&"Projects",x==="epics"&&"Manage Epics",x==="sprints"&&"Manage Sprints",x==="files"&&"Files"]}),(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>G(null),children:(0,ut.jsx)(gt.X,{className:"h-4 w-4"})})]}),(0,ut.jsxs)("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[x==="projects"&&(0,ut.jsx)(se,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Projects"}),(0,ut.jsxs)(w,{size:"sm",onClick:()=>Ve(!0),className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Project"]})]}),Oe&&(0,ut.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,ut.jsx)(F,{value:ae.name,onChange:g=>xe(y=>({...y,name:g.target.value})),placeholder:"Project name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:ae.description,onChange:g=>xe(y=>({...y,description:g.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:ga,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:()=>Ve(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,ut.jsx)("div",{className:"space-y-2",children:e.map(g=>(0,ut.jsx)("div",{className:"border rounded p-2",children:O===g.id?(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(F,{value:z.name,onChange:y=>P(ee=>({...ee,name:y.target.value})),placeholder:"Project name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:z.description,onChange:y=>P(ee=>({...ee,description:y.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:nt,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:yt,className:"text-xs h-6",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${g.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>fa(g.id),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)(gt.FolderOpen,{className:"h-3 w-3 text-muted-foreground"}),(0,ut.jsx)("span",{className:"font-medium text-xs",children:g.name})]}),g.description&&(0,ut.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:g.description}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>Fe(g),className:"h-5 px-1",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>i(g.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})}),x==="epics"&&(0,ut.jsx)(se,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Epics"}),(0,ut.jsxs)(w,{size:"sm",onClick:m,className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Epic"]})]}),(0,ut.jsx)("div",{className:"space-y-4",children:t.map(g=>(0,ut.jsx)("div",{className:"border rounded-lg p-3",children:te===g.id?(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsx)(F,{value:U.name,onChange:y=>ge(ee=>({...ee,name:y.target.value})),placeholder:"Epic name",className:"text-sm"}),(0,ut.jsx)(Ne,{value:U.description,onChange:y=>ge(ee=>({...ee,description:y.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Color"}),(0,ut.jsx)("div",{className:"flex gap-1 flex-wrap",children:ie.map(y=>(0,ut.jsx)("button",{onClick:()=>ge(ee=>({...ee,color:y})),className:`w-6 h-6 rounded-full ${y} ${U.color===y?"ring-2 ring-ring":""}`},y))})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Confidence"}),(0,ut.jsxs)(pe,{value:U.confidence,onValueChange:y=>ge(ee=>({...ee,confidence:y})),children:[(0,ut.jsx)(ce,{className:"h-8 text-xs",children:(0,ut.jsx)(Se,{})}),(0,ut.jsx)(me,{children:ke.map(y=>(0,ut.jsx)(V,{value:y.value,children:(0,ut.jsx)("span",{className:y.color,children:y.label})},y.value))})]})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Phase"}),(0,ut.jsxs)(pe,{value:U.phase.toString(),onValueChange:y=>ge(ee=>({...ee,phase:parseInt(y)})),children:[(0,ut.jsx)(ce,{className:"h-8 text-xs",children:(0,ut.jsx)(Se,{})}),(0,ut.jsx)(me,{children:qe.map(y=>(0,ut.jsx)(V,{value:y.value.toString(),children:(0,ut.jsx)("span",{className:y.color,children:y.label})},y.value))})]})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Start Date"}),(0,ut.jsx)(F,{type:"date",value:U.startDate,onChange:y=>ge(ee=>({...ee,startDate:y.target.value})),className:"text-xs h-8"})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"End Date"}),(0,ut.jsx)(F,{type:"date",value:U.endDate,onChange:y=>ge(ee=>({...ee,endDate:y.target.value})),className:"text-xs h-8"})]})]}),(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)("label",{className:"text-xs font-medium",children:"Progress (%)"}),(0,ut.jsx)(F,{type:"number",min:"0",max:"100",value:U.progress,onChange:y=>ge(ee=>({...ee,progress:parseInt(y.target.value)||0})),className:"text-xs h-8"})]}),(0,ut.jsxs)("div",{className:"flex gap-2",children:[(0,ut.jsx)(w,{size:"sm",onClick:Ht,className:"text-xs",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:ba,className:"text-xs",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-2 rounded transition-colors ${g.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>c(g.id,{isSelected:!g.isSelected}),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${g.color}`}),(0,ut.jsx)("span",{className:"font-medium text-sm",children:g.name})]}),g.description&&(0,ut.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:g.description}),(0,ut.jsxs)("div",{className:"space-y-1 mb-2",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Confidence:"}),(0,ut.jsx)("span",{className:Et(g.confidence).color,children:Et(g.confidence).label})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Phase:"}),(0,ut.jsx)("span",{className:It(g.phase).color,children:It(g.phase).label})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Timeline:"}),(0,ut.jsxs)("span",{className:"text-foreground",children:[Gt(g.startDate)," - ",Gt(g.endDate)]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,ut.jsx)("span",{className:"text-muted-foreground",children:"Progress:"}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:"w-12 h-2 bg-muted rounded-full",children:(0,ut.jsx)("div",{className:"h-2 bg-primary rounded-full",style:{width:`${g.progress}%`}})}),(0,ut.jsxs)("span",{className:"text-foreground",children:[g.progress,"%"]})]})]})]}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>va(g),className:"h-6 px-2",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>p(g.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})}),x==="sprints"&&(0,ut.jsx)(se,{className:"p-3",children:(0,ut.jsxs)("div",{className:"space-y-3",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),(0,ut.jsxs)(w,{size:"sm",onClick:()=>J(!0),className:"gap-1",children:[(0,ut.jsx)(gt.Plus,{className:"h-3 w-3"}),"Add Sprint"]})]}),b&&(0,ut.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,ut.jsx)(F,{value:D.name,onChange:g=>L(y=>({...y,name:g.target.value})),placeholder:"Sprint name",className:"text-sm"}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ut.jsx)(F,{type:"date",value:D.startDate,onChange:g=>L(y=>({...y,startDate:g.target.value})),className:"text-xs"}),(0,ut.jsx)(F,{type:"date",value:D.endDate,onChange:g=>L(y=>({...y,endDate:g.target.value})),className:"text-xs"})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("input",{type:"checkbox",checked:D.isActive,onChange:g=>L(y=>({...y,isActive:g.target.checked})),className:"w-3 h-3"}),(0,ut.jsx)("span",{className:"text-xs",children:"Active"})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:wt,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:()=>J(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,ut.jsx)("div",{className:"space-y-2",children:a.map(g=>(0,ut.jsx)("div",{className:"border rounded p-2",children:B===g.id?(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(F,{value:T.name,onChange:y=>Me(ee=>({...ee,name:y.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:g.id==="backlog"||g.id==="all-tasks"}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,ut.jsx)(F,{type:"date",value:T.startDate,onChange:y=>Me(ee=>({...ee,startDate:y.target.value})),className:"text-xs"}),(0,ut.jsx)(F,{type:"date",value:T.endDate,onChange:y=>Me(ee=>({...ee,endDate:y.target.value})),className:"text-xs"})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("input",{type:"checkbox",checked:T.isActive,onChange:y=>Me(ee=>({...ee,isActive:y.target.checked})),className:"w-3 h-3"}),(0,ut.jsx)("span",{className:"text-xs",children:"Active"})]})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",onClick:ha,className:"text-xs h-6",children:"Save"}),(0,ut.jsx)(w,{size:"sm",variant:"outline",onClick:Ut,className:"text-xs h-6",children:"Cancel"})]})]}):(0,ut.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${g.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Rt(g.id),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3 text-muted-foreground"}),(0,ut.jsx)("span",{className:"font-medium text-xs",children:g.name}),g.isActive&&(0,ut.jsx)("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(g.id==="backlog"||g.id==="all-tasks")&&(0,ut.jsx)("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsxs)("p",{className:"text-xs text-muted-foreground mb-1",children:[g.startDate.toLocaleDateString()," - ",g.endDate.toLocaleDateString()]}),(0,ut.jsxs)("div",{className:"flex gap-1",onClick:y=>y.stopPropagation(),children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>jt(g),className:"h-5 px-1",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),g.id!=="backlog"&&g.id!=="all-tasks"&&(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>v(g.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]})},g.id))})]})})]})]})]})]})},Ho=e=>(0,ut.jsx)(Ia,{children:(0,ut.jsxs)("div",{className:"flex w-full",children:[(0,ut.jsx)("div",{className:"hidden md:block w-12 fixed h-full",children:(0,ut.jsx)(Vo,{...e})}),(0,ut.jsx)("div",{className:"md:hidden",children:(0,ut.jsx)(Vo,{...e})}),(0,ut.jsx)("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:(0,ut.jsx)("div",{className:"w-full",children:e.children})})]})});var Sn=(0,fo.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 fe({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:u(Sn({variant:t}),e),...a})}var Go=({title:e,status:t,taskCount:a,children:o,onDrop:n,isCompact:i=!1})=>{let d=m=>{m.preventDefault()},c=m=>{m.preventDefault(),n(t)};return(0,ut.jsxs)(se,{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 ${i?"lg:max-w-xs":""}`,onDragOver:d,onDrop:c,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${i?"text-base":"text-lg"}`,children:e}),(0,ut.jsx)(fe,{variant:"secondary",className:"bg-muted text-muted-foreground",children:a})]}),(0,ut.jsx)("div",{className:"space-y-4 min-h-[200px]",children:o})]})};var Xt=({task:e,epic:t,onDragStart:a,onTaskClick:o,isCompact:n=!1})=>{let i=l=>{a(e)},d=()=>{o(e)},c=()=>{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,ut.jsx)(gt.BookOpen,{className:"h-3 w-3"});case"bug":return(0,ut.jsx)(gt.Bug,{className:"h-3 w-3"});case"spike":return(0,ut.jsx)(gt.Zap,{className:"h-3 w-3"});case"task":default:return(0,ut.jsx)(gt.AlertCircle,{className:"h-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 n?(0,ut.jsx)(se,{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:d,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${m()}`,children:p()}),(0,ut.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.title})]})}):(0,ut.jsxs)(se,{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:d,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ut.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${m()}`,children:[p(),(0,ut.jsx)("span",{className:"capitalize",children:e.type})]}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${c()}`,children:e.priority}),(0,ut.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,ut.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.title}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,ut.jsx)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:(0,ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ut.jsx)(gt.User,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:e.assignee})]})})]})};var Ft=ne(require("react")),Te=ne(require("@radix-ui/react-dialog"));var Xe=Te.Root;var Cn=Te.Portal;var $o=Ft.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Te.Overlay,{ref:a,className:u("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}));$o.displayName=Te.Overlay.displayName;var je=Ft.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(Cn,{children:[(0,ut.jsx)($o,{}),(0,ut.jsxs)(Te.Content,{ref:o,className:u("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),...a,children:[t,(0,ut.jsxs)(Te.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,ut.jsx)(gt.X,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));je.displayName=Te.Content.displayName;var Ue=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ue.displayName="DialogHeader";var Bt=({className:e,...t})=>(0,ut.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bt.displayName="DialogFooter";var Ge=Ft.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Te.Title,{ref:a,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));Ge.displayName=Te.Title.displayName;var Dn=Ft.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Te.Description,{ref:a,className:u("text-sm text-muted-foreground",e),...t}));Dn.displayName=Te.Description.displayName;var Wo=ne(require("react")),Ma=ne(require("@radix-ui/react-label"));var kn=(0,fo.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),R=Wo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ma.Root,{ref:a,className:u(kn(),e),...t}));R.displayName=Ma.Root.displayName;var vt=ne(require("react")),kt=ne(require("@radix-ui/react-toggle-group"));var Jo=ne(require("react")),Aa=ne(require("@radix-ui/react-toggle"));var La=(0,fo.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pn=Jo.forwardRef(({className:e,variant:t,size:a,...o},n)=>(0,ut.jsx)(Aa.Root,{ref:n,className:u(La({variant:t,size:a,className:e})),...o}));Pn.displayName=Aa.Root.displayName;var Yo=vt.createContext({size:"default",variant:"default"}),bt=vt.forwardRef(({className:e,variant:t,size:a,children:o,...n},i)=>(0,ut.jsx)(kt.Root,{ref:i,className:u("flex items-center justify-center gap-1",e),...n,children:(0,ut.jsx)(Yo.Provider,{value:{variant:t,size:a},children:o})}));bt.displayName=kt.Root.displayName;var ht=vt.forwardRef(({className:e,children:t,variant:a,size:o,...n},i)=>{let d=vt.useContext(Yo);return(0,ut.jsx)(kt.Item,{ref:i,className:u(La({variant:d.variant||a,size:d.size||o}),e),...n,children:t})});ht.displayName=kt.Item.displayName;var Tn=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:gt.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:gt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:gt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:gt.Zap}],Rn=[{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:a,epics:o,sprints:n,defaultEpicId:i})=>{let[d,c]=(0,be.useState)({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""});(0,be.useEffect)(()=>{e&&i&&c(l=>({...l,epicId:i}))},[e,i]),(0,be.useEffect)(()=>{e&&c({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""})},[e]);let p=l=>{l.preventDefault(),d.title.trim()&&(a({title:d.title.trim(),description:d.description.trim(),status:"todo",priority:d.priority,type:d.type,points:d.points,epicId:d.epicId,sprintId:d.sprintId==="none"?void 0:d.sprintId,assignee:d.assignee.trim()||"Unassigned"}),c({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),t())},m=(l,N)=>{c(v=>({...v,[l]:N}))};return(0,ut.jsx)(Xe,{open:e,onOpenChange:t,children:(0,ut.jsxs)(je,{className:"sm:max-w-md",children:[(0,ut.jsx)(Ue,{children:(0,ut.jsx)(Ge,{children:"Add New Task"})}),(0,ut.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"title",children:"Task Title"}),(0,ut.jsx)(F,{id:"title",value:d.title,onChange:l=>m("title",l.target.value),placeholder:"Enter task title",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:d.description,onChange:l=>m("description",l.target.value),placeholder:"Enter task description",rows:3})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Type"}),(0,ut.jsx)(bt,{type:"single",value:d.type,onValueChange:l=>l&&m("type",l),children:Tn.map(l=>{let N=l.icon;return(0,ut.jsxs)(ht,{value:l.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,ut.jsx)(N,{className:"h-4 w-4"}),l.label]},l.value)})})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Priority"}),(0,ut.jsx)(bt,{type:"single",value:d.priority,onValueChange:l=>l&&m("priority",l),children:Rn.map(l=>(0,ut.jsx)(ht,{value:l.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:l.label},l.value))})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"points",children:"Story Points"}),(0,ut.jsx)(F,{id:"points",type:"number",min:"1",max:"100",value:d.points,onChange:l=>m("points",parseInt(l.target.value)||1),placeholder:"Enter story points",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"epic",children:"Epic"}),(0,ut.jsxs)(pe,{value:d.epicId,onValueChange:l=>m("epicId",l),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{placeholder:"Select an epic"})}),(0,ut.jsx)(me,{children:o.map(l=>(0,ut.jsx)(V,{value:l.id,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${l.color}`}),l.name]})},l.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,ut.jsxs)(pe,{value:d.sprintId,onValueChange:l=>m("sprintId",l),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{placeholder:"Select a sprint"})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"none",children:"No Sprint"}),n.map(l=>(0,ut.jsx)(V,{value:l.id,children:(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[l.name,l.isActive&&(0,ut.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},l.id))]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsx)(F,{id:"assignee",value:d.assignee,onChange:l=>m("assignee",l.target.value),placeholder:"Enter assignee name",required:!0})]}),(0,ut.jsxs)(Bt,{children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var Ba=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:n,className:i="",disabled:d=!1})=>{let[c,p]=(0,be.useState)(!1),[m,l]=(0,be.useState)(""),N=()=>{d||(p(!0),l(t))},v=async()=>{m!==t&&await n(e,m),p(!1)},C=I=>{I.key==="Enter"&&!o||I.key==="Enter"&&I.ctrlKey&&o?v():I.key==="Escape"&&(p(!1),l(""))};return(0,ut.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,ut.jsx)(R,{children:a}),c?o?(0,ut.jsx)(Ne,{value:m,onChange:I=>l(I.target.value),onBlur:v,onKeyDown:C,autoFocus:!0,rows:4,className:"resize-none"}):(0,ut.jsx)(F,{value:m,onChange:I=>l(I.target.value),onBlur:v,onKeyPress:C,autoFocus:!0,className:"text-lg font-medium"}):(0,ut.jsxs)("div",{onClick:N,className:`${d?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,ut.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!d&&(0,ut.jsx)(gt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Qt=ne(require("react")),ot=ne(require("@radix-ui/react-avatar"));var za=Qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ot.Root,{ref:a,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));za.displayName=ot.Root.displayName;var En=Qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ot.Image,{ref:a,className:u("aspect-square h-full w-full",e),...t}));En.displayName=ot.Image.displayName;var Oa=Qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ot.Fallback,{ref:a,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Oa.displayName=ot.Fallback.displayName;var tr=({comments:e,onAddComment:t})=>{let[a,o]=(0,be.useState)(""),n=d=>d.split(" ").map(c=>c[0]).join("").toUpperCase(),i=()=>{a.trim()&&(t(a),o(""))};return(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(gt.MessageSquare,{className:"h-5 w-5"}),(0,ut.jsx)(R,{className:"text-lg font-medium",children:"Comments"}),(0,ut.jsx)(fe,{variant:"secondary",children:e.length})]}),(0,ut.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(d=>(0,ut.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,ut.jsx)(za,{className:"h-8 w-8 gt-1",children:(0,ut.jsx)(Oa,{className:"text-xs bg-muted text-muted-foreground",children:n(d.author)})}),(0,ut.jsxs)("div",{className:"flex-1",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ut.jsx)("span",{className:"font-medium text-sm",children:d.author}),(0,ut.jsxs)("span",{className:"text-xs text-muted-foreground",children:[d.createdAt.toLocaleDateString()," ut ",d.createdAt.toLocaleTimeString()]})]}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:d.text})]})]},d.id))}),(0,ut.jsxs)("div",{className:"flex gap-2",children:[(0,ut.jsx)(Ne,{value:a,onChange:d=>o(d.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,ut.jsx)(w,{onClick:i,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,ut.jsx)(gt.Send,{className:"h-4 w-4"})})]})]})};var aa=({label:e,value:t,onValueChange:a,options:o,showColor:n=!1,disabled:i=!1})=>{let[d,c]=(0,be.useState)(!1),p=o.find(l=>l.value===t);return(0,ut.jsxs)("div",{className:"space-y-1",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:e}),(0,ut.jsxs)(pe,{value:t,onValueChange:a,open:d,onOpenChange:l=>{i||c(l)},disabled:i,children:[(0,ut.jsx)(ce,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,ut.jsxs)(fe,{variant:"secondary",className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!i&&c(!d),children:[n&&p?.color&&(0,ut.jsx)("div",{className:`w-2 h-2 rounded-full ${p.color} ut-1`}),p?.label||"Select..."]})}),(0,ut.jsx)(me,{children:o.map(l=>(0,ut.jsx)(V,{value:l.value,children:n&&l.color?(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${l.color}`}),l.label]}):l.label},l.value))})]})]})};var or=({label:e,value:t,onValueChange:a,options:o,placeholder:n="Search...",allowCustomValue:i=!1,disabled:d=!1})=>{let[c,p]=(0,be.useState)(!1),[m,l]=(0,be.useState)(""),N=o.find(x=>x.value===t),v=o.filter(x=>x.label.toLowerCase().includes(m.toLowerCase())),C=x=>{a(x),p(!1),l("")},I=()=>{i&&m.trim()&&!o.find(x=>x.value===m.trim())&&(a(m.trim()),p(!1),l(""))};return(0,$e.jsxs)("div",{className:"space-y-1",children:[(0,$e.jsx)(R,{className:"text-xs text-muted-foreground",children:e}),(0,$e.jsxs)(pe,{value:t,onValueChange:C,open:c,onOpenChange:x=>{d||p(x)},disabled:d,children:[(0,$e.jsx)(ce,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,$e.jsx)(fe,{variant:"secondary",className:`${d?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!d&&p(!c),children:N?.label||t||"Select..."})}),(0,$e.jsxs)(me,{children:[(0,$e.jsx)("div",{className:"p-2",children:(0,$e.jsx)(F,{placeholder:n,value:m,onChange:x=>l(x.target.value),onKeyDown:x=>{x.key==="Enter"&&i&&I()},className:"mb-2"})}),v.map(x=>(0,$e.jsx)(V,{value:x.value,children:x.label},x.value)),i&&m.trim()&&!v.find(x=>x.value===m.trim())&&(0,$e.jsxs)(V,{value:m.trim(),children:['Add "',m.trim(),'"']})]})]})]})};var In=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:gt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:gt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:gt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:gt.Zap}],Mn=[{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"}],An=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],rr=({task:e,epics:t,sprints:a,lastUpdated:o,onUpdateTask:n,onClose:i,onDelete:d,isUpdating:c=!1,isDeleting:p=!1,deleteState:m="idle"})=>{let l=v=>v.split(" ").map(C=>C[0]).join("").toUpperCase(),N=()=>m==="loading"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):m==="success"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.Check,{className:"h-3 w-3"}),"Deleted"]}):m==="error"?(0,ut.jsxs)(w,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,ut.jsx)(gt.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,ut.jsxs)(w,{onClick:d,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:c||p,children:[(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,ut.jsxs)("div",{className:"flex flex-col h-full",children:[(0,ut.jsxs)("div",{className:"space-y-4",style:{opacity:c?.6:1},children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Status"}),(0,ut.jsx)(aa,{label:"",value:e.status,onValueChange:v=>n("status",v),options:[{value:"todo",label:"fo Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:c})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Type"}),(0,ut.jsx)(bt,{type:"single",value:e.type,onValueChange:v=>v&&n("type",v),className:"grid grid-cols-2 gap-1",disabled:c,children:In.map(v=>{let C=v.icon;return(0,ut.jsxs)(ht,{value:v.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:c,children:[(0,ut.jsx)(C,{className:"h-3 w-3"}),v.label]},v.value)})})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,ut.jsx)(bt,{type:"single",value:e.priority,onValueChange:v=>v&&n("priority",v),className:"grid grid-cols-3 gap-1",disabled:c,children:Mn.map(v=>(0,ut.jsx)(ht,{value:v.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:c,children:v.label},v.value))})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,ut.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:v=>n("points",v.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:c})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,ut.jsx)(aa,{label:"",value:e.epicId,onValueChange:v=>n("epicId",v),options:(t||[]).map(v=>({value:v.id,label:v.name,color:v.color})),showColor:!0,disabled:c})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,ut.jsx)(aa,{label:"",value:e.sprintId||"none",onValueChange:v=>n("sprintId",v==="none"?"":v),options:[{value:"none",label:"No Sprint"},...(a||[]).map(v=>({value:v.id,label:`${v.name}${v.isActive?" (Active)":""}`}))],disabled:c})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,ut.jsx)(or,{label:"",value:e.assignee,onValueChange:v=>n("assignee",v),options:An,placeholder:"Search team members...",allowCustomValue:!0,disabled:c})]})]}),(0,ut.jsxs)("div",{className:"gt-auto pt-4 space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(w,{onClick:i,variant:"outline",className:"w-full h-8 text-xs",disabled:c||p,children:"Close"}),N()]}),(0,ut.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,ut.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.User,{className:"h-3 w-3"}),(0,ut.jsx)("span",{children:"System"})]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3"}),(0,ut.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,ut.jsx)(gt.Clock,{className:"h-3 w-3"}),(0,ut.jsxs)("span",{children:[o.toLocaleDateString()," ut ",o.toLocaleTimeString()]})]})]})]})]})]})};var oa=({isOpen:e,onClose:t,task:a,epics:o,sprints:n,onUpdateTask:i,onDeleteTask:d})=>{let[c,p]=(0,be.useState)(new Date),[m,l]=(0,be.useState)("idle"),[N,v]=(0,be.useState)("idle"),[C,I]=(0,be.useState)([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:a.createdAt},{id:"2",text:"Started working on the implementation.",author:a.assignee,createdAt:new Date(a.createdAt.getTime()+864e5)}]),q=async(B,Q)=>{if(Q!==a[B]){l("loading");try{await i(a.id,{[B]:Q}),p(new Date),l("success"),setTimeout(()=>l("idle"),1500)}catch{l("error"),setTimeout(()=>l("idle"),3e3)}}},x=async(B,Q)=>{if(Q!==a[B]){l("loading");try{await i(a.id,{[B]:Q}),p(new Date),l("success"),setTimeout(()=>l("idle"),1500)}catch{l("error"),setTimeout(()=>l("idle"),3e3)}}},G=B=>{let Q={id:Date.now().toString(),text:B,author:"Current User",createdAt:new Date};I([...C,Q])},O=async()=>{v("loading");try{await d(a.id),v("success"),setTimeout(()=>{t(),v("idle")},1e3)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}},_=m!=="loading"&&N!=="loading",te=()=>{_&&t()},h=()=>m==="loading"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,ut.jsx)(gt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,ut.jsx)("span",{children:"Updating..."})]}):m==="success"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,ut.jsx)(gt.Check,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Updated successfully"})]}):m==="error"?(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,ut.jsx)(gt.X,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Update failed"})]}):null;return(0,ut.jsx)(Xe,{open:e,onOpenChange:te,children:(0,ut.jsxs)(je,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,ut.jsxs)(Ue,{children:[(0,ut.jsx)(Ge,{className:"sr-only",children:a.title}),(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)("div",{className:"flex-1",children:h()}),!_&&(0,ut.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,ut.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,ut.jsx)(Ba,{fieldName:"title",value:a.title,label:"",onSave:q,className:"border-b border-border pb-3",disabled:m==="loading"}),(0,ut.jsx)(Ba,{fieldName:"description",value:a.description,label:"Description",multiline:!0,onSave:q,disabled:m==="loading"}),(0,ut.jsx)(tr,{comments:C,onAddComment:G})]}),(0,ut.jsx)(rr,{task:a,epics:o,sprints:n,lastUpdated:c,onUpdateTask:x,onClose:te,onDelete:O,isUpdating:m==="loading",isDeleting:N==="loading",deleteState:N})]})]})})};var ra=({isOpen:e,onClose:t,onAddEpic:a})=>{let[o,n]=(0,be.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"],d=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],c=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],p=l=>{l.preventDefault(),o.name.trim()&&(a({name:o.name.trim(),description:o.description.trim(),color:o.color,confidence:o.confidence,phase:o.phase,startDate:new Date(o.startDate),endDate:new Date(o.endDate),progress:o.progress,isSelected:!0}),n({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=(l,N)=>{n(v=>({...v,[l]:N}))};return(0,ut.jsx)(Xe,{open:e,onOpenChange:t,children:(0,ut.jsxs)(je,{className:"sm:max-w-md",children:[(0,ut.jsx)(Ue,{children:(0,ut.jsx)(Ge,{children:"Add New Epic"})}),(0,ut.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"name",children:"Epic Name"}),(0,ut.jsx)(F,{id:"name",value:o.name,onChange:l=>m("name",l.target.value),placeholder:"Enter epic name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:o.description,onChange:l=>m("description",l.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Color"}),(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap",children:i.map(l=>(0,ut.jsx)("button",{type:"button",onClick:()=>m("color",l),className:`w-8 h-8 rounded-full ${l} ${o.color===l?"ring-2 ring-gray-400":""}`},l))})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Confidence"}),(0,ut.jsxs)(pe,{value:o.confidence,onValueChange:l=>m("confidence",l),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsx)(me,{children:d.map(l=>(0,ut.jsx)(V,{value:l.value,children:l.label},l.value))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Phase"}),(0,ut.jsxs)(pe,{value:o.phase.toString(),onValueChange:l=>m("phase",parseInt(l)),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsx)(me,{children:c.map(l=>(0,ut.jsx)(V,{value:l.value.toString(),children:l.label},l.value))})]})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Start Date"}),(0,ut.jsx)(F,{type:"date",value:o.startDate,onChange:l=>m("startDate",l.target.value)})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"End Date"}),(0,ut.jsx)(F,{type:"date",value:o.endDate,onChange:l=>m("endDate",l.target.value)})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Progress (%)"}),(0,ut.jsx)(F,{type:"number",min:"0",max:"100",value:o.progress,onChange:l=>m("progress",parseInt(l.target.value)||0)})]}),(0,ut.jsxs)(Bt,{children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var sr=require("framer-motion");function nr(e,t){let[a,o]=(0,be.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),n=i=>{try{o(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,be.useEffect)(()=>{n(a)},[]),[a,n]}var na=require("react-icons/fa");function Qe({title:e,description:t,badge:a,primaryAction:o,secondaryAction:n,gradient:i,children:d,className:c}){let[p,m]=nr(`hero-section-minimized-${e.replace(/\ut+/g,"-").toLowerCase()}`,!n&&!t),l=!n&&!t||p;return(0,ut.jsxs)(sr.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 ${c||""}`,children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,ut.jsx)(fe,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,ut.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,ut.jsxs)("div",{className:"flex items-center gap-3",children:[l&&o&&(0,ut.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,ut.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,ut.jsx)(na.FaChevronDown,{size:22}):(0,ut.jsx)(na.FaChevronUp,{size:22})})]})]}),!l&&(0,ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,ut.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,ut.jsx)(w,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),d&&(0,ut.jsx)("div",{className:"hidden lg:block",children:d})]})]})}var lr=({initialTasks:e=[],initialEpics:t=[],initialSprints:a=[],initialProjects:o=[],onAddTask:n,onUpdateTask:i,onDeleteTask:d,onTaskClick:c,onAddEpic:p})=>{let[m,l]=(0,be.useState)(e),[N,v]=(0,be.useState)(t),[C,I]=(0,be.useState)(a),[q,x]=(0,be.useState)(!1),[G,O]=(0,be.useState)(!1),[_,te]=(0,be.useState)(null),[h,B]=(0,be.useState)(null),Q=N.filter(D=>!0).map(D=>D.id),z=C.find(D=>D.isSelected);(0,be.useEffect)(()=>{l(e)},[e]),(0,be.useEffect)(()=>{v(t)},[t]),(0,be.useEffect)(()=>{I(a)},[a]);let P=m.filter(D=>{let L=Q.includes(D.epicId);return!z||z.id==="all-tasks"?L:z.id==="backlog"?L&&!D.sprintId:L&&D.sprintId===z.id}),U=D=>P.filter(L=>L.status===D),ge=D=>{let L={};return N.forEach(ie=>{L[ie.id]=D.filter(ke=>ke.epicId===ie.id)}),L},T=D=>{B(D)},Me=D=>{h&&(l(L=>L.map(ie=>ie.id===h.id?{...ie,status:D}:ie)),i?.(h.id,{status:D}),B(null))},Oe=D=>{let L={...D,id:Date.now().toString(),createdAt:new Date};l(ie=>[...ie,L]),n?.(D)},Ve=async(D,L)=>{l(ie=>ie.map(ke=>ke.id===D?{...ke,...L}:ke)),i&&await i(D,L)},b=async D=>{l(L=>L.filter(ie=>ie.id!==D)),_?.id===D&&te(null),d&&await d(D)},J=D=>{let L={...D,id:Date.now().toString(),isSelected:!0};v(ie=>[...ie,L]),p?.(D)},ae=D=>{te(D),c?.(D)};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Qe,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-ut from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>x(!0)},secondaryAction:{label:"Add epic",onClick:()=>O(!0)}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"w-full",children:[(0,ut.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"fo Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(D=>{let L=U(D.status),ie=ge(L);return(0,ut.jsx)(Go,{title:D.title,status:D.status,taskCount:L.length,onDrop:Me,isCompact:D.status==="done",children:Q.map(ke=>{let qe=N.find(nt=>nt.id===ke),Fe=ie[ke]||[];return Fe.length===0?null:(0,ut.jsxs)("div",{className:"mb-6",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,ut.jsx)("div",{className:`w-3 h-3 rounded-full ${qe?.color}`}),(0,ut.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:qe?.name}),(0,ut.jsx)(fe,{variant:"secondary",className:"text-xs",children:Fe.length})]})," ",(0,ut.jsx)("div",{className:"space-y-3",children:Fe.map(nt=>(0,ut.jsx)(Xt,{task:nt,epic:qe,onDragStart:T,onTaskClick:ae,isCompact:D.status==="done"},nt.id))})]},ke)})},D.id)})}),(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Yt,{isOpen:q,onClose:()=>x(!1),onAddTask:Oe,epics:N,sprints:C}),(0,ut.jsx)(ra,{isOpen:G,onClose:()=>O(!1),onAddEpic:J}),_&&(0,ut.jsx)(oa,{isOpen:!!_,onClose:()=>te(null),task:_,epics:N,sprints:C,onUpdateTask:Ve,onDeleteTask:b})]})]})})]})};var dr=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:n,onAddTaskToEpic:i,onAddEpic:d,onUpdateEpic:c,onDeleteEpic:p})=>{let[m,l]=(0,be.useState)(null),[N,v]=(0,be.useState)(null),[C,I]=(0,be.useState)({}),q=P=>{l(P)},x=P=>{P.preventDefault()},G=(P,U)=>{P.preventDefault(),m&&m.epicId!==U&&(o(m.id,{epicId:U}),l(null))},O=P=>e.filter(U=>U.epicId===P),_=P=>{v(P.id),I({name:P.name,description:P.description,confidence:P.confidence,phase:P.phase,progress:P.progress})},te=()=>{N&&C.name&&(c(N,C),v(null),I({}))},h=()=>{v(null),I({})},B=P=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&p(P)},Q=P=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[P]||`Phase ${P}`,z=P=>{switch(P){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Qe,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-ut from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:d}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsx)("div",{className:"w-full",children:(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t.map(P=>{let U=O(P.id),ge=U.reduce((T,Me)=>T+Me.points,0);return(0,ut.jsxs)(se,{className:`flex flex-col ${N===P.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:x,onDrop:T=>G(T,P.id),children:[(0,ut.jsx)("div",{className:"p-4 border-b border-border",children:N===P.id?(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsx)(F,{value:C.name||"",onChange:T=>I({...C,name:T.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,ut.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:te,className:"p-1 h-8 w-8",children:(0,ut.jsx)(gt.Check,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:h,className:"p-1 h-8 w-8",children:(0,ut.jsx)(gt.X,{className:"h-4 w-4"})})]})]}),(0,ut.jsx)(Ne,{value:C.description||"",onChange:T=>I({...C,description:T.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,ut.jsxs)(pe,{value:C.confidence||P.confidence,onValueChange:T=>I({...C,confidence:T}),children:[(0,ut.jsx)(ce,{className:"text-xs",children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"low",children:"Low"}),(0,ut.jsx)(V,{value:"medium",children:"Medium"}),(0,ut.jsx)(V,{value:"high",children:"High"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,ut.jsxs)(pe,{value:C.phase?.toString()||P.phase.toString(),onValueChange:T=>I({...C,phase:parseInt(T)}),children:[(0,ut.jsx)(ce,{className:"text-xs",children:(0,ut.jsx)(Se,{})}),(0,ut.jsx)(me,{children:[1,2,3,4,5,6,7,8,9].map(T=>(0,ut.jsxs)(V,{value:T.toString(),children:["Phase ",T]},T))})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),(0,ut.jsx)(F,{type:"number",min:"0",max:"100",value:C.progress||P.progress,onChange:T=>I({...C,progress:parseInt(T.target.value)||0}),className:"text-xs"})]})]}):(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)("div",{className:`w-4 h-4 rounded-full ${P.color}`}),(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:P.name}),(0,ut.jsxs)("div",{className:"flex gap-1",children:[(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>_(P),className:"p-1 h-8 w-8",children:(0,ut.jsx)(gt.Edit2,{className:"h-3 w-3"})}),(0,ut.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>B(P.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,ut.jsx)(gt.Trash2,{className:"h-3 w-3"})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,ut.jsxs)(fe,{className:`text-xs ${z(P.confidence)}`,children:[P.confidence," confidence"]}),(0,ut.jsxs)(fe,{variant:"outline",className:"text-xs",children:["Phase ",P.phase]}),(0,ut.jsxs)(fe,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[U.length," tasks"]}),(0,ut.jsxs)(fe,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[ge," pts"]})]}),P.description&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:P.description}),(0,ut.jsxs)("div",{className:"mb-3",children:[(0,ut.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[(0,ut.jsx)("span",{className:"select-none",children:"Progress"}),(0,ut.jsxs)("span",{className:"select-none",children:[P.progress,"%"]})]}),(0,ut.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,ut.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${P.progress}%`}})})]}),(0,ut.jsxs)(w,{onClick:()=>i(P.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,ut.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,ut.jsx)("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${m?"border-primary bg-primary/10":"border-border"}`,children:U.length===0?(0,ut.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[(0,ut.jsx)(gt.Move,{className:"h-8 w-8 mb-2"}),(0,ut.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):U.map(T=>(0,ut.jsx)(Xt,{task:T,epic:P,onDragStart:q,onTaskClick:n,isCompact:!0},T.id))})})]},P.id)})})})})]})};var cr=require("react-day-picker");function la({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,ut.jsx)(cr.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:u("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:u(Kt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full gt-2",cell:u("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-ut-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-ut-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-ut-md":"[&:has([aria-selected])]:rounded-md"),day:u(Kt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}la.displayName="Calendar";var pr=ne(require("react")),et=ne(require("@radix-ui/react-popover"));var ja=et.Root,Ua=et.Trigger;var da=pr.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},n)=>(0,ut.jsx)(et.Portal,{children:(0,ut.jsx)(et.Content,{ref:n,align:t,sideOffset:a,className:u("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));da.displayName=et.Content.displayName;var _a=require("date-fns");var gr=({isOpen:e,onClose:t,onAddSprint:a})=>{let[o,n]=(0,be.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),i=c=>{c.preventDefault(),!(!o.name||!o.startDate||!o.endDate)&&(a({name:o.name,description:o.description,startDate:o.startDate,endDate:o.endDate,isActive:o.isActive,isSelected:!1}),n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t())},d=()=>{n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t()};return(0,ut.jsx)(Xe,{open:e,onOpenChange:d,children:(0,ut.jsxs)(je,{className:"sm:max-w-md",children:[(0,ut.jsx)(Ue,{children:(0,ut.jsx)(Ge,{children:"Add New Sprint"})}),(0,ut.jsxs)("form",{onSubmit:i,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"name",children:"Sprint Name *"}),(0,ut.jsx)(F,{id:"name",value:o.name,onChange:c=>n(p=>({...p,name:c.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:o.description,onChange:c=>n(p=>({...p,description:c.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"Start Date *"}),(0,ut.jsxs)(ja,{children:[(0,ut.jsx)(Ua,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!o.startDate&&"text-muted-foreground"),children:[(0,ut.jsx)(gt.CalendarIcon,{className:"ut-2 h-4 w-4"}),o.startDate?(0,_a.format)(o.startDate,"PPP"):"Pick a date"]})}),(0,ut.jsx)(da,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(la,{mode:"single",selected:o.startDate,onSelect:c=>n(p=>({...p,startDate:c})),initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(R,{children:"End Date *"}),(0,ut.jsxs)(ja,{children:[(0,ut.jsx)(Ua,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!o.endDate&&"text-muted-foreground"),children:[(0,ut.jsx)(gt.CalendarIcon,{className:"ut-2 h-4 w-4"}),o.endDate?(0,_a.format)(o.endDate,"PPP"):"Pick a date"]})}),(0,ut.jsx)(da,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(la,{mode:"single",selected:o.endDate,onSelect:c=>n(p=>({...p,endDate:c})),initialFocus:!0,disabled:c=>o.startDate?c<o.startDate:!1})})]})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"isActive",checked:o.isActive,onChange:c=>n(p=>({...p,isActive:c.target.checked})),className:"rounded border-gray-300"}),(0,ut.jsx)(R,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,ut.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:d,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",disabled:!o.name||!o.startDate||!o.endDate,children:"Add Sprint"})]})]})]})})};var fr=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:n,onAddSprint:i})=>{let[d,c]=(0,be.useState)(["2"]),[p,m]=(0,be.useState)(null),[l,N]=(0,be.useState)(!1),[v,C]=(0,be.useState)(null),[I,q]=(0,be.useState)(e.filter(b=>!b.sprintId)),[x,G]=(0,be.useState)(e.filter(b=>b.sprintId&&d.includes(b.sprintId))),[O,_]=(0,be.useState)(a.filter(b=>b.id!=="backlog"&&b.id!=="all-tasks").sort((b,J)=>b.startDate.getTime()-J.startDate.getTime()));(0,be.useEffect)(()=>{q(e.filter(b=>!b.sprintId)),G(e.filter(b=>b.sprintId&&d.includes(b.sprintId))),_(a.filter(b=>b.id!=="backlog"&&b.id!=="all-tasks").sort((b,J)=>b.startDate.getTime()-J.startDate.getTime()))},[e,a,d]);let te=b=>t.find(J=>J.id===b),h=b=>a.find(J=>J.id===b),B=b=>{switch(b){case"high":return"bg-destructive/20 text-destructive";case"medium":return"bg-warning/20 text-warning";case"low":return"bg-success/20 text-success";default:return"bg-muted text-muted-foreground"}},Q=b=>b.split(" ").map(J=>J[0]).join("").toUpperCase(),z=b=>{m(b)},P=b=>{b.preventDefault()},U=b=>{C(b)},ge=()=>{C(null)},T=(b,J)=>{b.preventDefault(),C(null),p&&(o(p.id,{sprintId:J==="backlog"?void 0:J}),m(null))},Me=b=>{b==="backlog"||b==="all-tasks"||c(J=>J.includes(b)?J.filter(ae=>ae!==b):[...J,b])},Oe=b=>{i(b),N(!1)},Ve=({task:b,showSprint:J=!1})=>{let ae=te(b.epicId),xe=b.sprintId?h(b.sprintId):null,[D,L]=(0,be.useState)(!1),ie=Fe=>{Fe.defaultPrevented||D||n(b)},ke=Fe=>{L(!0),z(b)},qe=()=>{L(!1)};return(0,ut.jsx)(se,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${D?"opacity-50 shadow-lg scale-105":""} ${p?.id===b.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:ke,onDragEnd:qe,onClick:ie,children:(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1 select-none pointer-events-none",children:b.title}),(0,ut.jsx)(fe,{className:`text-xs select-none pointer-events-none ${B(b.priority)}`,children:b.priority[0].toUpperCase()})]}),(0,ut.jsxs)("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-1",children:[ae&&(0,ut.jsx)("div",{className:`w-2 h-2 rounded-full ${ae.color}`}),(0,ut.jsx)("span",{className:"text-muted-foreground truncate select-none",children:ae?.name})]}),(0,ut.jsx)("span",{className:"text-muted-foreground select-none",children:Q(b.assignee)})]}),J&&xe&&(0,ut.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[(0,ut.jsx)(gt.Calendar,{className:"h-3 w-3"}),(0,ut.jsx)("span",{className:"select-none",children:xe.name})]})]})})};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Qe,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-ut from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>N(!0)}}),(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"w-full",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[(0,ut.jsx)("div",{className:"lg:col-span-1",children:(0,ut.jsxs)(se,{className:"p-4 h-full bg-card shadow-sm",onDragOver:P,onDragEnter:()=>U("backlog"),onDragLeave:ge,onDrop:b=>T(b,"backlog"),children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Backlog"}),(0,ut.jsx)(fe,{variant:"secondary",className:"bg-muted text-muted-foreground",children:I.length})]}),(0,ut.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${v==="backlog"?"border-primary bg-primary/10":"border-border"}`,children:[I.map(b=>(0,ut.jsx)(Ve,{task:b},b.id)),I.length===0&&(0,ut.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),(0,ut.jsx)("div",{className:"lg:col-span-3",children:(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)(se,{className:"p-4 bg-card shadow-sm",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Select Sprints to View"}),(0,ut.jsxs)(w,{onClick:()=>N(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),"Add Sprint"]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:O.map(b=>(0,ut.jsxs)(w,{variant:d.includes(b.id)?"default":"outline",size:"sm",onClick:()=>Me(b.id),className:"text-xs h-8",children:[b.name,b.isActive&&(0,ut.jsx)("span",{className:"ml-1 text-success",children:"\u25CF"})]},b.id))})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:d.map(b=>O.find(J=>J.id===b)).filter(Boolean).sort((b,J)=>b.startDate.getTime()-J.startDate.getTime()).map(b=>{let J=x.filter(ae=>ae.sprintId===b.id);return(0,ut.jsxs)(se,{className:"p-4 bg-card shadow-sm",onDragOver:P,onDragEnter:()=>U(b.id),onDragLeave:ge,onDrop:ae=>T(ae,b.id),children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"font-semibold text-foreground select-none",children:b.name}),b.isActive&&(0,ut.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,ut.jsx)(fe,{variant:"secondary",className:"bg-muted text-muted-foreground",children:J.length})]}),(0,ut.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${v===b.id?"border-primary bg-primary/10":"border-border"}`,children:[J.map(ae=>(0,ut.jsx)(Ve,{task:ae},ae.id)),J.length===0&&(0,ut.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})]},b.id)})})," "]})})]}),(0,ut.jsx)(gr,{isOpen:l,onClose:()=>N(!1),onAddSprint:Oe})]})})]})};var Ln=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},Fn=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),Bn=e=>{let[t,a]=e.split(":"),o=new Date;return o.setHours(parseInt(t),parseInt(a)),o.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},$a=(e,t)=>{let a=new Date,o=new Date(e);if(t){let[n,i]=t.split(":");o.setHours(parseInt(n),parseInt(i))}return o<a},Wa=e=>{let t=new Date;return e.toDateString()===t.toDateString()},zn=e=>{let t=new Date;return t.setDate(t.getDate()+1),e.toDateString()===t.toDateString()},On=({colleagues:e,onAddReminder:t,open:a,setOpen:o})=>{let[n,i]=(0,be.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),d=p=>{p.preventDefault();let m=e.find(N=>N?.id===n.colleagueId);if(!m){console.error("No valid colleague selected");return}let l={title:n.title,description:n.description,dueDate:new Date(n.dueDate),dueTime:n.dueTime||void 0,colleague:m,isCompleted:!1,isRecurring:n.isRecurring,recurrencePattern:n.isRecurring?n.recurrencePattern:void 0,recurrenceInterval:n.isRecurring?n.recurrenceInterval:void 0,priority:n.priority,reminderEnabled:n.reminderEnabled,reminderMinutes:n.reminderEnabled?n.reminderMinutes:void 0,tags:n.tags?n.tags.split(",").map(N=>N.trim()):void 0};t(l),o(!1),i({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},c=e.filter(Boolean);return(0,ut.jsx)(Xe,{open:a,onOpenChange:o,children:(0,ut.jsxs)(je,{className:"max-w-2xl",children:[(0,ut.jsx)(Ue,{children:(0,ut.jsx)(Ge,{children:"Add New Reminder"})}),(0,ut.jsxs)("form",{onSubmit:d,className:"space-y-4",children:[(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"title",children:"Title"}),(0,ut.jsx)(F,{id:"title",value:n.title,onChange:p=>i({...n,title:p.target.value}),placeholder:"Enter reminder title",required:!0})]})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ne,{id:"description",value:n.description,onChange:p=>i({...n,description:p.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"dueDate",children:"Due Date"}),(0,ut.jsx)(F,{id:"dueDate",type:"date",value:n.dueDate,onChange:p=>i({...n,dueDate:p.target.value}),required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,ut.jsx)(F,{id:"dueTime",type:"time",value:n.dueTime,onChange:p=>i({...n,dueTime:p.target.value})})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,ut.jsxs)(pe,{value:n.colleagueId,onValueChange:p=>i({...n,colleagueId:p}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{placeholder:"Select a digital colleague"})}),(0,ut.jsx)(me,{children:c.map(p=>(0,ut.jsx)(V,{value:p.id,children:p.name},p.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"isRecurring",checked:n.isRecurring,onChange:p=>i({...n,isRecurring:p.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(R,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),n.isRecurring&&(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,ut.jsxs)(pe,{value:n.recurrencePattern,onValueChange:p=>i({...n,recurrencePattern:p}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"daily",children:"Daily"}),(0,ut.jsx)(V,{value:"weekly",children:"Weekly"}),(0,ut.jsx)(V,{value:"monthly",children:"Monthly"}),(0,ut.jsx)(V,{value:"yearly",children:"Yearly"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"recurrenceInterval",children:"Every"}),(0,ut.jsx)(F,{id:"recurrenceInterval",type:"number",min:"1",value:n.recurrenceInterval,onChange:p=>i({...n,recurrenceInterval:parseInt(p.target.value)})})]})]})]}),(0,ut.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:()=>o(!1),children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",children:"Add Reminder"})]})]})]})})},Vn=({reminder:e,colleagues:t,onUpdateReminder:a,open:o,onClose:n})=>{let[i,d]=(0,be.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague?.id||"",priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""}),c=m=>{m.preventDefault();let l=t.find(N=>N?.id===i.colleagueId);if(!l){console.error("No valid colleague selected");return}a(e.id,{title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:l,priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(N=>N.trim()):void 0}),n()},p=t.filter(Boolean);return(0,ut.jsx)(Xe,{open:o,onOpenChange:n,children:(0,ut.jsxs)(je,{className:"max-w-2xl",children:[(0,ut.jsx)(Ue,{children:(0,ut.jsx)(Ge,{children:"Edit Reminder"})}),(0,ut.jsxs)("form",{onSubmit:c,className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-title",children:"Title"}),(0,ut.jsx)(F,{id:"edit-title",value:i.title,onChange:m=>d({...i,title:m.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-priority",children:"Priority"}),(0,ut.jsxs)(pe,{value:i.priority,onValueChange:m=>d({...i,priority:m}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"low",children:"\u{1F7E2} Low"}),(0,ut.jsx)(V,{value:"medium",children:"\u{1F7E1} Medium"}),(0,ut.jsx)(V,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-description",children:"Description"}),(0,ut.jsx)(Ne,{id:"edit-description",value:i.description,onChange:m=>d({...i,description:m.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,ut.jsx)(F,{id:"edit-dueDate",type:"date",value:i.dueDate,onChange:m=>d({...i,dueDate:m.target.value}),required:!0})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,ut.jsx)(F,{id:"edit-dueTime",type:"time",value:i.dueTime,onChange:m=>d({...i,dueTime:m.target.value})})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,ut.jsxs)(pe,{value:i.colleagueId,onValueChange:m=>d({...i,colleagueId:m}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{placeholder:"Select a digital colleague"})}),(0,ut.jsx)(me,{children:p.map(m=>(0,ut.jsx)(V,{value:m.id,children:m.name},m.id))})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:i.isRecurring,onChange:m=>d({...i,isRecurring:m.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(R,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,ut.jsxs)(pe,{value:i.recurrencePattern,onValueChange:m=>d({...i,recurrencePattern:m}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"daily",children:"Daily"}),(0,ut.jsx)(V,{value:"weekly",children:"Weekly"}),(0,ut.jsx)(V,{value:"monthly",children:"Monthly"}),(0,ut.jsx)(V,{value:"yearly",children:"Yearly"})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,ut.jsx)(F,{id:"edit-recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:m=>d({...i,recurrenceInterval:parseInt(m.target.value)})})]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:i.reminderEnabled,onChange:m=>d({...i,reminderEnabled:m.target.checked}),className:"rounded border-border"}),(0,ut.jsx)(R,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,ut.jsxs)("div",{className:"pl-6",children:[(0,ut.jsx)(R,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,ut.jsxs)(pe,{value:i.reminderMinutes.toString(),onValueChange:m=>d({...i,reminderMinutes:parseInt(m)}),children:[(0,ut.jsx)(ce,{children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsx)(V,{value:"5",children:"5 minutes before"}),(0,ut.jsx)(V,{value:"15",children:"15 minutes before"}),(0,ut.jsx)(V,{value:"30",children:"30 minutes before"}),(0,ut.jsx)(V,{value:"60",children:"1 hour before"}),(0,ut.jsx)(V,{value:"1440",children:"1 day before"})]})]})]})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(R,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,ut.jsx)(F,{id:"edit-tags",value:i.tags,onChange:m=>d({...i,tags:m.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,ut.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,ut.jsx)(w,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),(0,ut.jsx)(w,{type:"submit",children:"Save Changes"})]})]})]})})},Hn=({reminder:e,colleagues:t,onUpdateReminder:a,onDeleteReminder:o})=>{let[n,i]=(0,be.useState)(!1);if(!e||!e.id)return null;let d=$a(e.dueDate,e.dueTime),c=Wa(e.dueDate),p=zn(e.dueDate),m=()=>{a(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},l=()=>c?"Today":p?"Tomorrow":d&&!e.isCompleted?"Overdue":Fn(e.dueDate);return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Vn,{reminder:e,colleagues:t,onUpdateReminder:a,open:n,onClose:()=>i(!1)}),(0,ut.jsx)(se,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${d&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,ut.jsx)(Ct,{className:"p-4",children:(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,ut.jsx)("button",{onClick:m,className:"gt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,ut.jsx)(gt.CheckCircle,{className:"h-5 w-5"}):(0,ut.jsx)(gt.Circle,{className:"h-5 w-5"})}),(0,ut.jsxs)("div",{className:"flex-1",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,ut.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,ut.jsx)("span",{className:"text-sm",children:Ln(e.priority)}),e.isRecurring&&(0,ut.jsx)(gt.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,ut.jsx)(gt.Bell,{className:"h-4 w-4 text-success"})]}),(0,ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.Calendar,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:d&&!e.isCompleted?"text-destructive font-medium":"",children:l()})]}),e.dueTime&&(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.Clock,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:Bn(e.dueTime)})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(gt.User,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:e.colleague?.name||"Unknown Colleague"})]})]}),e.tags&&e.tags.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap gap-1 gt-2",children:e.tags.map((N,v)=>(0,ut.jsx)(fe,{variant:"secondary",className:"text-xs",children:N},v))})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>i(!0),className:"h-8 w-8 p-0",children:(0,ut.jsx)(gt.Edit2,{className:"h-4 w-4"})}),(0,ut.jsx)(w,{variant:"ghost",size:"sm",onClick:()=>o(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,ut.jsx)(gt.Trash2,{className:"h-4 w-4"})})]})]})})})]})},vr=({initialReminders:e=[],initialColleagues:t=[],onAddReminder:a,onUpdateReminder:o,onDeleteReminder:n})=>{let[i,d]=(0,be.useState)(e.filter(Boolean)),[c]=(0,be.useState)(t.filter(Boolean)),[p,m]=(0,be.useState)("all"),[l,N]=(0,be.useState)(""),[v,C]=(0,be.useState)(!1),I=h=>{if(!h.title||!h.colleague?.id){console.error("Invalid reminder data:",h);return}let B={...h,id:Date.now().toString(),createdAt:new Date};d(Q=>[...Q,B]),a?.(h)},q=(h,B)=>{if(!h){console.error("No reminder ID provided for update");return}d(Q=>Q.map(z=>z?.id===h?{...z,...B}:z)),o?.(h,B)},x=h=>{if(!h){console.error("No reminder ID provided for deletion");return}d(B=>B.filter(Q=>Q?.id!==h)),n?.(h)},O=i.filter(h=>{if(!h)return!1;if(l){let B=l.toLowerCase();if(!(h.title.toLowerCase().includes(B)||h.description.toLowerCase().includes(B)||h.colleague?.name?.toLowerCase().includes(B)||h.tags?.some(z=>z.toLowerCase().includes(B))))return!1}switch(p){case"pending":return!h.isCompleted;case"completed":return h.isCompleted;case"overdue":return!h.isCompleted&&$a(h.dueDate,h.dueTime);case"today":return Wa(h.dueDate);default:return!0}}).sort((h,B)=>{if(!h||!B)return 0;if(h.isCompleted&&!B.isCompleted)return 1;if(!h.isCompleted&&B.isCompleted)return-1;let Q={high:3,medium:2,low:1},z=Q[B.priority]-Q[h.priority];return z!==0?z:h.dueDate.getTime()-B.dueDate.getTime()}),_={total:i.filter(Boolean).length,pending:i.filter(h=>h&&!h.isCompleted).length,completed:i.filter(h=>h&&h.isCompleted).length,overdue:i.filter(h=>h&&!h.isCompleted&&$a(h.dueDate,h.dueTime)).length,today:i.filter(h=>h&&Wa(h.dueDate)).length},te=c.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return(0,ut.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,ut.jsx)(Qe,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-ut from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{C(!0)}}}),(0,ut.jsxs)("div",{className:"h-full bg-background",children:[(0,ut.jsx)(On,{colleagues:c,onAddReminder:I,open:v,setOpen:C}),(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,ut.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,ut.jsxs)(w,{className:"flex items-center space-x-2",onClick:()=>C(!0),children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Add Reminder"})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,ut.jsxs)(se,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-foreground",children:_.total}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,ut.jsxs)(se,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-primary",children:_.pending}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,ut.jsxs)(se,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-success",children:_.completed}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,ut.jsxs)(se,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-destructive",children:_.overdue}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,ut.jsxs)(se,{className:"p-4",children:[(0,ut.jsx)("div",{className:"text-2xl font-bold text-warning",children:_.today}),(0,ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsx)(F,{placeholder:"Search reminders...",value:l,onChange:h=>N(h.target.value),className:"max-w-md"})}),(0,ut.jsxs)(pe,{value:p,onValueChange:h=>m(h),children:[(0,ut.jsx)(ce,{className:"w-40",children:(0,ut.jsx)(Se,{})}),(0,ut.jsxs)(me,{children:[(0,ut.jsxs)(V,{value:"all",children:["All (",_.total,")"]}),(0,ut.jsxs)(V,{value:"pending",children:["Pending (",_.pending,")"]}),(0,ut.jsxs)(V,{value:"completed",children:["Completed (",_.completed,")"]}),(0,ut.jsxs)(V,{value:"overdue",children:["Overdue (",_.overdue,")"]}),(0,ut.jsxs)(V,{value:"today",children:["Today (",_.today,")"]})]})]})]}),(0,ut.jsx)("div",{className:"space-y-4",children:O.length===0?(0,ut.jsxs)(se,{className:"p-8 text-center",children:[(0,ut.jsx)("div",{className:"text-muted-foreground",children:l||p!=="all"?"No reminders match your filters":"No reminders yet"}),!l&&p==="all"&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground/60 gt-2",children:"Create your first reminder to get started"})]}):O.map(h=>h&&(0,ut.jsx)(Hn,{reminder:h,colleagues:c,onUpdateReminder:q,onDeleteReminder:x},h.id))})]})]})]})};var xt=ne(require("@radix-ui/react-tabs"));function br({className:e,...t}){return(0,ut.jsx)(xt.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function hr({className:e,...t}){return(0,ut.jsx)(xt.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function xr({className:e,...t}){return(0,ut.jsx)(xt.Trigger,{"data-slot":"tabs-trigger",className:u("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var it=ne(require("react")),Y=ne(require("@radix-ui/react-dropdown-menu"));var yr=Y.Root,wr=Y.Trigger;var jn=it.forwardRef(({className:e,inset:t,children:a,...o},n)=>(0,ut.jsxs)(Y.SubTrigger,{ref:n,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,ut.jsx)(Po.ChevronRightIcon,{className:"ml-auto"})]}));jn.displayName=Y.SubTrigger.displayName;var Un=it.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Y.SubContent,{ref:a,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Un.displayName=Y.SubContent.displayName;var Ka=it.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Y.Portal,{children:(0,ut.jsx)(Y.Content,{ref:o,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ka.displayName=Y.Content.displayName;var qa=it.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(Y.Item,{ref:o,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));qa.displayName=Y.Item.displayName;var Gn=it.forwardRef(({className:e,children:t,checked:a,...o},n)=>(0,ut.jsxs)(Y.CheckboxItem,{ref:n,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(Y.ItemIndicator,{children:(0,ut.jsx)(Po.CheckIcon,{className:"h-4 w-4"})})}),t]}));Gn.displayName=Y.CheckboxItem.displayName;var _n=it.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(Y.RadioItem,{ref:o,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(Y.ItemIndicator,{children:(0,ut.jsx)(Po.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));_n.displayName=Y.RadioItem.displayName;var $n=it.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(Y.Label,{ref:o,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));$n.displayName=Y.Label.displayName;var Wn=it.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Y.Separator,{ref:a,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));Wn.displayName=Y.Separator.displayName;var Kn=({className:e,...t})=>(0,ut.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});Kn.displayName="DropdownMenuShortcut";function Sr({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:n="700px",gridCols:i=6}){let d=a.find(c=>c.value===e);return(0,ut.jsxs)(sr.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,ut.jsx)("div",{className:"hidden md:block",children:(0,ut.jsx)(br,{value:e,onValueChange:t,children:(0,ut.jsx)(hr,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(i,a.length)}, minmax(0, 1fr))`},children:a.map(c=>(0,ut.jsx)(sr.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,ut.jsx)(xr,{value:c.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:c.label})},c.value))})})}),(0,ut.jsx)("div",{className:"md:hidden",children:(0,ut.jsxs)(yr,{children:[(0,ut.jsx)(wr,{asChild:!0,children:(0,ut.jsxs)(w,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[d?.label||"Select",(0,ut.jsx)(gt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,ut.jsx)(Ka,{align:"center",className:"w-[180px]",children:a.map(c=>(0,ut.jsx)(qa,{onClick:()=>t?.(c.value),className:`cursor-pointer ${e===c.value?"bg-accent":""}`,children:c.label},c.value))})]})})]})}function pa({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:n=!0,className:i}){return(0,ut.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${i||""}`,children:[n&&(0,ut.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,ut.jsx)("div",{className:"col-span-6",children:"Name"}),(0,ut.jsx)("div",{className:"col-span-2",children:"Size"}),(0,ut.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,ut.jsx)("div",{className:"divide-y",children:e.map(d=>(0,ut.jsxs)(sr.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(d),children:[(0,ut.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,ut.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:d.icon}),(0,ut.jsx)("div",{children:(0,ut.jsx)("p",{className:"font-medium",children:d.name})})]}),(0,ut.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:d.size}),(0,ut.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,ut.jsx)("span",{className:"text-sm md:text-base",children:d.modified}),(0,ut.jsx)("div",{className:"flex gap-1",children:(0,ut.jsx)(w,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:c=>{c.stopPropagation(),o?.(d)},children:(0,ut.jsx)(gt.Trash2,{className:"h-4 w-4"})})})]})]},d.name))})]})}function Xa({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:n,compactView:i=!1,className:d}){let[c,p]=(0,be.useState)(e),[m,l]=(0,be.useState)(""),[N,v]=(0,be.useState)("all"),[C,I]=(0,be.useState)("all"),q=Array.from(new Set(c.map(z=>z.app))),x=c.filter(z=>{let P=z.name.toLowerCase().includes(m.toLowerCase()),U=N==="all"||z.app===N;return P&&U}),G=x.slice(0,10),O=x.filter(z=>z.shared),_=()=>{t?.()},te=z=>{a?.(z)},h=z=>{p(P=>P.filter(U=>U.name!==z.name)),o?.(z.name)},B=z=>{n?.(z)},Q=()=>{l(""),v("all")};return(0,ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,ut.jsx)(sr.AnimatePresence,{mode:"wait",children:(0,ut.jsx)(sr.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,ut.jsxs)("div",{className:`space-y-6 ${d||""}`,children:[(0,ut.jsx)(Qe,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-ut from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:_},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,ut.jsx)(se,{children:(0,ut.jsx)(Ct,{className:"pt-6",children:(0,ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,ut.jsx)("div",{className:"flex-1",children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(gt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,ut.jsx)(F,{placeholder:"Search files...",value:m,onChange:z=>l(z.target.value),className:"pl-9"})]})}),(m||N!=="all")&&(0,ut.jsxs)(w,{variant:"outline",onClick:Q,className:"gap-2",children:[(0,ut.jsx)(gt.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsx)(Sr,{activeTab:C,onTabChange:I,tabOptions:[{value:"all",label:`All Files (${x.length})`},{value:"recent",label:`Recent (${G.length})`}],maxWidth:"500px",gridCols:3}),C==="all"&&(0,ut.jsx)(pa,{files:x,onFileClick:B,onFileEdit:te,onFileDelete:h,showHeader:!i}),C==="recent"&&(0,ut.jsx)(pa,{files:G,onFileClick:B,onFileEdit:te,onFileDelete:h,showHeader:!i}),C==="shared"&&(0,ut.jsx)(pa,{files:O,onFileClick:B,onFileEdit:te,onFileDelete:h,showHeader:!i})]}),x.length===0&&(0,ut.jsx)(se,{children:(0,ut.jsx)(Ct,{className:"pt-6",children:(0,ut.jsxs)("div",{className:"text-center py-8",children:[(0,ut.jsx)(gt.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,ut.jsx)("p",{className:"text-muted-foreground mb-4",children:m||N!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,ut.jsxs)(w,{onClick:_,className:"gap-2",children:[(0,ut.jsx)(gt.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var kr=require("next/navigation");function Pr({title:e="",initialTasks:t=[],initialEpics:a=[],initialSprints:o=[],initialProjects:n=[],initialReminders:i=[],initialColleagues:d=[],initialFiles:c=[],onAddTask:p,onUpdateTask:m,onDeleteTask:l,onTaskClick:N,onAddEpic:v,onUpdateEpic:C,onDeleteEpic:I,onAddTaskToEpic:q,onAddSprint:x,onUpdateSprint:G,onDeleteSprint:O,onAddProject:_,onUpdateProject:te,onDeleteProject:h,onFileAdd:B,onFileEdit:Q,onFileDelete:z,onFileClick:P,onAddReminder:U,onUpdateReminder:ge,onDeleteReminder:T,onViewChange:Me,onToggleMobileMenu:Oe,onTeamClick:Ve,onTeamChange:b,onCopilotClick:J}){let[ae,xe]=(0,be.useState)(t),[D,L]=(0,be.useState)(a),[ie,ke]=(0,be.useState)(o),[qe,Fe]=(0,be.useState)(n),[nt,yt]=(0,be.useState)(i),[ga,fa]=(0,be.useState)(d),[va,Ht]=(0,be.useState)(c),[ba,jt]=(0,be.useState)(!1),[ha,Ut]=(0,be.useState)(!1),[wt,Rt]=(0,be.useState)(null),[Gt,Et]=(0,be.useState)(null),[It,g]=(0,be.useState)(null),[y,ee]=(0,be.useState)("kanban"),[Tr,Rr]=(0,be.useState)(!1),Za=(0,kr.useRouter)();(0,be.useEffect)(()=>{xe(t)},[t]),(0,be.useEffect)(()=>{ke(o)},[o]),(0,be.useEffect)(()=>{L(a)},[a]),(0,be.useEffect)(()=>{Fe(n)},[n]),(0,be.useEffect)(()=>{Ht(c)},[c]),(0,be.useEffect)(()=>{fa(d)},[d]),(0,be.useEffect)(()=>{yt(i)},[i]);let Er=D.filter(f=>f.isSelected).map(f=>f.id),_t=ie.find(f=>f.isSelected),Ir=ae.filter(f=>{let k=Er.includes(f.epicId);return!_t||_t.id==="all-tasks"?k:_t.id==="backlog"?k&&!f.sprintId:k&&f.sprintId===_t.id}),Jn=f=>Ir.filter(k=>k.status===f),Xn=f=>{let k={};return D.forEach(j=>{k[j.id]=f.filter(le=>le.epicId===j.id)}),k},Zn=f=>{g(f)},Yn=f=>{It&&(xe(k=>k.map(j=>j.id===It.id?{...j,status:f}:j)),g(null))},Ya=f=>{let k={...f,id:Date.now().toString(),createdAt:new Date};xe(j=>[...j,k]),p?.(k)},$t=(f,k)=>{xe(j=>j.map(le=>le.id===f?{...le,...k}:le)),m?.(f,k)},Mr=async(f,k)=>{$t(f,k)},Qa=f=>{xe(k=>k.filter(j=>j.id!==f)),wt?.id===f&&Rt(null),l?.(f)},Ar=async f=>{Qa(f)},Lr=f=>{let k={...f,id:Date.now().toString(),isSelected:!1};Fe(j=>[...j,k]),_?.(f)},Fr=(f,k)=>{Fe(j=>j.map(le=>le.id===f?k.isSelected?(Za.push(`/project/${f}`),{...le,...k}):{...le,...k}:k.isSelected&&f!==le.id?{...le,isSelected:!1}:le)),te?.(f,k)},Br=f=>{Fe(k=>k.filter(j=>j.id!==f)),h?.(f)},zr=f=>{let k={...f,id:Date.now().toString(),isSelected:!0};L(j=>[...j,k]),v?.({...k})},xa=()=>{Ut(!0)},eo=(f,k)=>{L(j=>j.map(le=>le.id===f?{...le,...k}:le)),C?.(f,k)},to=f=>{L(k=>k.filter(j=>j.id!==f)),xe(k=>k.filter(j=>j.epicId!==f)),I?.(f)},ao=f=>{let k={...f,id:Date.now().toString(),isSelected:!1};ke(j=>[...j,k]),x?.(f)},Or=(f,k)=>{ke(j=>j.map(le=>le.id===f?k.isSelected?{...le,...k}:{...le,...k}:k.isSelected&&f!==le.id?{...le,isSelected:!1}:le)),G?.(f,k)},Vr=f=>{f==="backlog"||f==="all-tasks"||(ke(k=>k.filter(j=>j.id!==f)),xe(k=>k.map(j=>j.sprintId===f?{...j,sprintId:void 0}:j)),O?.(f))},ya=f=>{Rt(f)},Hr=f=>{f==="planning"&&window.innerWidth<768||(ee(f),Me?.(f))},jr=()=>{Rr(f=>!f),Oe?.()},Qn=()=>{Za.push("/")},es=f=>{console.log("Switching to team:",f)},ts=f=>{console.log("Switching to team:",f)},Ur=f=>{Et(f),jt(!0)},Gr=()=>{jt(!1),Et(null)},_r=f=>{let k={...f,id:Date.now().toString(),createdAt:new Date};yt(j=>[...j,k]),U?.(f)},$ut=(f,k)=>{yt(j=>j.map(le=>le.id===f?{...le,...k}:le)),ge?.(f,k)},Wr=f=>{yt(k=>k.filter(j=>j.id!==f)),T?.(f)},Kr=()=>{B?.()},qr=f=>{Q?.(f)},Jr=f=>{Ht(k=>k.filter(j=>j.name!==f)),z?.(f)},Xr=f=>{P?.(f)},as=[{id:"todo",title:"fo Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],os=()=>{switch(y){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},wa=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],rs=wa.sort((f,k)=>k.lastUsed.getTime()-f.lastUsed.getTime()).slice(0,3),is=wa.length>3,ns=wa.slice(3);return(0,ut.jsxs)(Ho,{projects:qe,epics:D,sprints:ie,currentView:y,onUpdateProject:Fr,onDeleteProject:Br,onAddProject:Lr,onUpdateEpic:eo,onDeleteEpic:to,onAddEpic:xa,onAddSprint:ao,onUpdateSprint:Or,onDeleteSprint:Vr,onViewChange:Hr,mobileMenuOpen:Tr,onToggleMobileMenu:jr,children:[y==="kanban"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(lr,{initialProjects:qe,initialEpics:D,initialSprints:ie,initialTasks:ae,onAddTask:Ya,onUpdateTask:$t,onDeleteTask:Qa,onTaskClick:ya,onAddEpic:xa})}),y==="planning"&&(0,ut.jsx)("div",{className:"hidden md:block h-full",children:(0,ut.jsx)(fr,{tasks:ae,epics:D,sprints:ie,onUpdateTask:$t,onTaskClick:ya,onAddSprint:ao})}),y==="tasks"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(vr,{initialReminders:nt,initialColleagues:ga,onAddReminder:_r,onUpdateReminder:$ut,onDeleteReminder:Wr})}),y==="files"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(Xa,{initialFiles:va,onFileAdd:Kr,onFileEdit:qr,onFileDelete:Jr,onFileClick:Xr,compactView:!1})}),y==="epics"&&(0,ut.jsx)("div",{className:"h-full",children:(0,ut.jsx)(dr,{tasks:ae,epics:D,sprints:ie,onUpdateTask:$t,onTaskClick:ya,onAddTaskToEpic:Ur,onAddEpic:xa,onUpdateEpic:eo,onDeleteEpic:to})}),(0,ut.jsx)(Yt,{isOpen:ba,onClose:Gr,onAddTask:Ya,epics:D,sprints:ie,defaultEpicId:Gt||void 0}),(0,ut.jsx)(ra,{isOpen:ha,onClose:()=>Ut(!1),onAddEpic:zr}),wt&&(0,ut.jsx)(oa,{isOpen:!!wt,onClose:()=>Rt(null),task:wt,onUpdateTask:Mr,onDeleteTask:Ar,epics:D,sprints:ie})]})}
|