cortex-react-components 2.12.5 → 2.12.7
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-ERJXTG6X.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-RNMPX2AU.mjs → chunk-2L2SAVX6.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-LBUC4M6L.mjs → chunk-3ANJOET7.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-W2JTSWVJ.mjs → chunk-6BKLMT5R.mjs} +1 -1
- package/dist/chunk-6TUNKKV7.mjs +1 -0
- package/dist/{chunk-FTZRG54P.mjs → chunk-77PCUNUC.mjs} +1 -1
- package/dist/{chunk-7GMAMIHM.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-N3B3XNV3.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
- package/dist/{chunk-PK3OBSCB.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-LJOWXPWW.mjs → chunk-O24GFE6Q.mjs} +1 -1
- package/dist/{chunk-EMY52VZA.mjs → chunk-OO3IFL57.mjs} +1 -1
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-IF3425JX.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-5WVFEIMC.mjs → chunk-R6AYIVIR.mjs} +1 -1
- package/dist/{chunk-TL2RQFU5.mjs → chunk-TDASZ6KO.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.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/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/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/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/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/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/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/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.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/index.d.ts +5 -0
- package/dist/components/Projects/index.js +2 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/index.js +10 -10
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +17 -17
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-O6GWOXTH.mjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-6BKLMT5R.mjs";import"../../chunk-ZMB6R6JX.mjs";import"../../chunk-6TUNKKV7.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-WDI7JGA6.mjs";import"../../chunk-NO3FZ27F.mjs";import"../../chunk-JXIKSSGH.mjs";import"../../chunk-NKDFAFWH.mjs";import"../../chunk-MBPTBEOX.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-4A3MGS6I.mjs";import"../../chunk-KW6L6KBY.mjs";import"../../chunk-QBUU2AQL.mjs";import"../../chunk-DSSHQ6K7.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-VFUTR2R2.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-O5P35LEY.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
'use client'
|
|
3
4
|
|
|
4
|
-
"use strict";var Ee=Object.create;var _=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var Ve=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},me=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ge(r))!Be.call(e,a)&&a!==t&&_(e,a,{get:()=>r[a],enumerable:!(o=He(r,a))||o.enumerable});return e};var F=(e,r,t)=>(t=e!=null?Ee(Ie(e)):{},me(r||!e||!e.__esModule?_(t,"default",{value:e,enumerable:!0}):t,e)),je=e=>me(_({},"__esModule",{value:!0}),e);var vr={};Ve(vr,{DCProjectCard:()=>Le});module.exports=je(vr);var Ae=require("motion/react"),E=require("lucide-react");var Pe=require("class-variance-authority");var Ce=require("clsx");var Z="-",De=e=>{let r=_e(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(Z);return s[0]===""&&s.length!==1&&s.shift(),ge(s,r)||We(l)},getConflictingClassGroupIds:(l,s)=>{let m=t[l]||[];return s&&o[l]?[...m,...o[l]]:m}}},ge=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(Z);return r.validators.find(({validator:l})=>l(n))?.classGroupId},fe=/^\[(.+)\]$/,We=e=>{if(fe.test(e)){let r=fe.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},_e=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return $e(Object.entries(e.classGroups),t).forEach(([n,l])=>{K(l,o,n,r)}),o},K=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:be(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(Fe(a)){K(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,l])=>{K(l,be(r,n),t,o)})})},be=(e,r)=>{let t=e;return r.split(Z).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Fe=e=>e.isThemeGetter,$e=(e,r)=>r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[r+l,s])):n);return[t,a]}):e,Ue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(n,l)=>{t.set(n,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let l=t.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){t.has(n)?t.set(n,l):a(n,l)}}},he="!",Oe=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length,l=s=>{let m=[],b=0,h=0,x;for(let u=0;u<s.length;u++){let g=s[u];if(b===0){if(g===a&&(o||s.slice(u,u+n)===r)){m.push(s.slice(h,u)),h=u+n;continue}if(g==="/"){x=u;continue}}g==="["?b++:g==="]"&&b--}let w=m.length===0?s:s.substring(h),P=w.startsWith(he),C=P?w.substring(1):w,f=x&&x>h?x-h:void 0;return{modifiers:m,hasImportantModifier:P,baseClassName:C,maybePostfixModifierPosition:f}};return t?s=>t({className:s,parseClassName:l}):l},qe=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Xe=e=>({cache:Ue(e.cacheSize),parseClassName:Oe(e),...De(e)}),Je=/\s+/,Ke=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=[],l=e.trim().split(Je),s="";for(let m=l.length-1;m>=0;m-=1){let b=l[m],{modifiers:h,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:P}=t(b),C=!!P,f=o(C?w.substring(0,P):w);if(!f){if(!C){s=b+(s.length>0?" "+s:s);continue}if(f=o(w),!f){s=b+(s.length>0?" "+s:s);continue}C=!1}let u=qe(h).join(":"),g=x?u+he:u,v=g+f;if(n.includes(v))continue;n.push(v);let H=a(f,C);for(let z=0;z<H.length;++z){let j=H[z];n.push(g+j)}s=b+(s.length>0?" "+s:s)}return s};function Ze(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ye(r))&&(o&&(o+=" "),o+=t);return o}var ye=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ye(e[o]))&&(t&&(t+=" "),t+=r);return t};function Qe(e,...r){let t,o,a,n=l;function l(m){let b=r.reduce((h,x)=>x(h),e());return t=Xe(b),o=t.cache.get,a=t.cache.set,n=s,s(m)}function s(m){let b=o(m);if(b)return b;let h=Ke(m,t);return a(m,h),h}return function(){return n(Ze.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\d+\/\d+$/,er=new Set(["px","full","screen"]),rr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tr=/\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$/,or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,nr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>A(e)||er.has(e)||Ye.test(e),M=e=>L(e,"length",mr),A=e=>!!e&&!Number.isNaN(Number(e)),J=e=>L(e,"number",A),I=e=>!!e&&Number.isInteger(Number(e)),ar=e=>e.endsWith("%")&&A(e.slice(0,-1)),i=e=>ve.test(e),N=e=>rr.test(e),ir=new Set(["length","size","percentage"]),lr=e=>L(e,ir,xe),cr=e=>L(e,"position",xe),dr=new Set(["image","url"]),pr=e=>L(e,dr,br),ur=e=>L(e,"",fr),B=()=>!0,L=(e,r,t)=>{let o=ve.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},mr=e=>tr.test(e)&&!or.test(e),xe=()=>!1,fr=e=>nr.test(e),br=e=>sr.test(e);var gr=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),m=c("contrast"),b=c("grayscale"),h=c("hueRotate"),x=c("invert"),w=c("gap"),P=c("gradientColorStops"),C=c("gradientColorStopPositions"),f=c("inset"),u=c("margin"),g=c("opacity"),v=c("padding"),H=c("saturate"),z=c("scale"),j=c("sepia"),ae=c("skew"),ie=c("space"),le=c("translate"),U=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",i,r],d=()=>[i,r],ce=()=>["",R,M],D=()=>["auto",A,i],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",i],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[A,i];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[R,M],blur:["none","",N,i],brightness:k(),borderColor:[e],borderRadius:["none","","full",N,i],borderSpacing:d(),borderWidth:ce(),contrast:k(),grayscale:G(),hueRotate:k(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[ar,M],inset:q(),margin:q(),opacity:k(),padding:d(),saturate:k(),scale:k(),sepia:G(),skew:k(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),i]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,i]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",I,i]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",I,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[I,i]},i]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Re:[{Re:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",N,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[B]}],"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",i]}],"line-clamp":[{"line-clamp":["none",A,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"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:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,M]}],"underline-offset":[{"underline-offset":["auto",R,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"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:[...de(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[R,i]}],"outline-w":[{outline:[R,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[R,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,ur]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",N,i]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[H]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[I,i]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"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",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Re-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-Re":[{"scroll-Re":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,M,J]}],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"],Re:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Re":["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 we=Qe(gr);function y(...e){return we((0,Ce.clsx)(e))}var Re=require("react/jsx-runtime"),hr=(0,Pe.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 ke({className:e,variant:r,...t}){return(0,Re.jsx)("div",{className:y(hr({variant:r}),e),...t})}var Me=require("@radix-ui/react-slot"),ze=F(require("react")),yr=(0,Pe.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"}}}),$=ze.forwardRef(({asChild:e=!1,className:r,size:t,variant:o,...a},n)=>(0,Re.jsx)(e?Me.Slot:"button",{className:y(yr({className:r,size:t,variant:o})),ref:n,...a}));$.displayName="Button";var T=F(require("react"));var Q=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...r}));Q.displayName="Card";var Y=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("flex flex-col space-y-1.5 Re-6",e),...r}));Y.displayName="CardHeader";var ee=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("font-semibold leading-none tracking-tight",e),...r}));ee.displayName="CardTitle";var re=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("text-sm text-muted-foreground",e),...r}));re.displayName="CardDescription";var te=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("Re-6 pt-0",e),...r}));te.displayName="CardContent";var oe=T.forwardRef(({className:e,...r},t)=>(0,Re.jsx)("div",{ref:t,className:y("flex items-center Re-6 pt-0",e),...r}));oe.displayName="CardFooter";var Se=F(require("react")),V=F(require("@radix-ui/react-progress"));var se=Se.forwardRef(({className:e,value:r,...t},o)=>(0,Re.jsx)(V.Root,{ref:o,className:y("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...t,children:(0,Re.jsx)(V.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));se.displayName=V.Root.displayName;function Le({project:e,onOpen:r,onShare:t,className:o}){return(0,Re.jsx)(Ae.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Re.jsxs)(Q,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Re.jsxs)(Y,{children:[(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsx)(ee,{children:e.name}),(0,Re.jsxs)(ke,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Re.jsx)(re,{children:e.description})]}),(0,Re.jsxs)(te,{className:"space-y-4",children:[(0,Re.jsxs)("div",{className:"space-y-2",children:[(0,Re.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Re.jsx)("span",{children:"Progress"}),(0,Re.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Re.jsx)(se,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Re.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(E.Users,{className:"mr-1 h-4 w-4"}),e.members," members"]}),(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(E.FileText,{className:"mr-1 h-4 w-4"}),e.files," files"]})]})]}),(0,Re.jsxs)(oe,{className:"flex gap-2",children:[(0,Re.jsx)($,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>r?.(e),children:"Open Project"}),(0,Re.jsx)($,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>t?.(e),children:(0,Re.jsx)(E.Share2,{className:"h-4 w-4"})})]})]})})}0&&(module.exports={DCProjectCard});
|
|
5
|
+
"use strict";var cr=Object.create;var wt=Object.defineProperty;var mr=Object.getOwnPropertyDescriptor;var pr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,gr=Object.prototype.hasOwnProperty;var fr=(e,t)=>{for(var r in t)wt(e,r,{get:t[r],enumerable:!0})},pa=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pr(t))!gr.call(e,n)&&n!==r&&wt(e,n,{get:()=>t[n],enumerable:!(o=mr(t,n))||o.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?cr(ur(e)):{},pa(t||!e||!e.__esModule?wt(r,"default",{value:e,enumerable:!0}):r,e)),vr=e=>pa(wt({},"__esModule",{value:!0}),e);var ho={};fr(ho,{DCProjectCard:()=>Ea,EpicsView:()=>bo,KanbanBoardView:()=>io,PlanningView:()=>no,TasksView:()=>vo});module.exports=vr(ho);var Ra=require("motion/react"),dt=require("lucide-react");var wa=require("class-variance-authority");var Na=require("clsx");var Gt="-",br=e=>{let t=xr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let d=c.split(Gt);return d[0]===""&&d.length!==1&&d.shift(),fa(d,t)||hr(c)},getConflictingClassGroupIds:(c,d)=>{let g=r[c]||[];return d&&o[c]?[...g,...o[c]]:g}}},fa=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?fa(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let s=e.join(Gt);return t.validators.find(({validator:c})=>c(s))?.classGroupId},ua=/^\[(.+)\]$/,hr=e=>{if(ua.test(e)){let t=ua.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},xr=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Nr(Object.entries(e.classGroups),r).forEach(([s,c])=>{$t(c,o,s,t)}),o},$t=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let s=n===""?t:ga(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(yr(n)){$t(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,c])=>{$t(c,ga(t,s),r,o)})})},ga=(e,t)=>{let r=e;return t.split(Gt).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},yr=e=>e.isThemeGetter,Nr=(e,t)=>t?e.map(([r,o])=>{let n=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,d])=>[t+c,d])):s);return[r,n]}):e,wr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return n(s,c),c},set(s,c){r.has(s)?r.set(s,c):n(s,c)}}},va="!",Cr=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],s=t.length,c=d=>{let g=[],p=0,l=0,f;for(let y=0;y<d.length;y++){let H=d[y];if(p===0){if(H===n&&(o||d.slice(y,y+s)===t)){g.push(d.slice(l,y)),l=y+s;continue}if(H==="/"){f=y;continue}}H==="["?p++:H==="]"&&p--}let P=g.length===0?d:d.substring(l),u=P.startsWith(va),x=u?P.substring(1):P,L=f&&f>l?f-l:void 0;return{modifiers:g,hasImportantModifier:u,baseClassName:x,maybePostfixModifierPosition:L}};return r?d=>r({className:d,parseClassName:c}):c},Sr=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},kr=e=>({cache:wr(e.cacheSize),parseClassName:Cr(e),...br(e)}),Dr=/\s+/,Tr=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[],c=e.trim().split(Dr),d="";for(let g=c.length-1;g>=0;g-=1){let p=c[g],{modifiers:l,hasImportantModifier:f,baseClassName:P,maybePostfixModifierPosition:u}=r(p),x=!!u,L=o(x?P.substring(0,u):P);if(!L){if(!x){d=p+(d.length>0?" "+d:d);continue}if(L=o(P),!L){d=p+(d.length>0?" "+d:d);continue}x=!1}let y=Sr(l).join(":"),H=f?y+va:y,K=H+L;if(s.includes(K))continue;s.push(K);let j=n(L,x);for(let ae=0;ae<j.length;++ae){let v=j[ae];s.push(H+v)}d=p+(d.length>0?" "+d:d)}return d};function Pr(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ba(t))&&(o&&(o+=" "),o+=r);return o}var ba=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ba(e[o]))&&(r&&(r+=" "),r+=t);return r};function Rr(e,...t){let r,o,n,s=c;function c(g){let p=t.reduce((l,f)=>f(l),e());return r=kr(p),o=r.cache.get,n=r.cache.set,s=d,d(g)}function d(g){let p=o(g);if(p)return p;let l=Tr(g,r);return n(g,l),l}return function(){return s(Pr.apply(null,arguments))}}var Z=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ha=/^\[(?:([Ca-Ca-]+):)?(.+)\]$/Ca,Er=/^\d+\/\d+$/,Ir=new Set(["px","full","screen"]),Ar=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|Ca|Ca|min|max))|\Ca(calc|min|max|clamp)\(.+\)|^0$/,Br=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mr=/^(inset_)?-?((\d+)?\.?(\d+)[Ca-Ca]+|0)_-?((\d+)?\.?(\d+)[Ca-Ca]+|0)/,zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>nt(e)||Ir.has(e)||Er.test(e),_e=e=>lt(e,"length",jr),nt=e=>!!e&&!Number.isNaN(Number(e)),Vt=e=>lt(e,"number",nt),pt=e=>!!e&&Number.isInteger(Number(e)),Fr=e=>e.endsWith("%")&&nt(e.slice(0,-1)),I=e=>ha.test(e),qe=e=>Ar.test(e),Or=new Set(["length","size","percentage"]),Hr=e=>lt(e,Or,xa),Vr=e=>lt(e,"position",xa),$r=new Set(["image","url"]),Gr=e=>lt(e,$r,_r),Ur=e=>lt(e,"",Wr),ut=()=>!0,lt=(e,t,r)=>{let o=ha.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},jr=e=>Lr.test(e)&&!Br.test(e),xa=()=>!1,Wr=e=>Mr.test(e),_r=e=>zr.test(e);var qr=()=>{let e=Z("colors"),t=Z("spacing"),r=Z("blur"),o=Z("brightness"),n=Z("borderColor"),s=Z("borderRadius"),c=Z("borderSpacing"),d=Z("borderWidth"),g=Z("contrast"),p=Z("grayscale"),l=Z("hueRotate"),f=Z("invert"),P=Z("gap"),u=Z("gradientColorStops"),x=Z("gradientColorStopPositions"),L=Z("inset"),y=Z("margin"),H=Z("opacity"),K=Z("padding"),j=Z("saturate"),ae=Z("scale"),v=Z("sepia"),F=Z("skew"),Y=Z("space"),J=Z("translate"),Se=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],xe=()=>["auto",I,t],E=()=>[I,t],w=()=>["",Ge,_e],_=()=>["auto",nt,I],Re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",I],Ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[nt,I];return{cacheSize:500,separator:":",theme:{colors:[ut],spacing:[Ge,_e],blur:["none","",qe,I],brightness:ke(),borderColor:[e],borderRadius:["none","","full",qe,I],borderSpacing:E(),borderWidth:w(),contrast:ke(),grayscale:De(),hueRotate:ke(),invert:De(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Fr,_e],inset:xe(),margin:xe(),opacity:ke(),padding:E(),saturate:ke(),scale:ke(),sepia:De(),skew:ke(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[qe]}],"break-after":[{"break-after":Ye()}],"break-before":[{"break-before":Ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Re(),I]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Se()}],"overscroll-x":[{"overscroll-x":Se()}],"overscroll-y":[{"overscroll-y":Se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],Ca:[{Ca:["auto",pt,I]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",pt,I]}],"grid-cols":[{"grid-cols":[ut]}],"col-start-end":[{col:["auto",{span:["full",pt,I]},I]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[ut]}],"row-start-end":[{row:["auto",{span:[pt,I]},I]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...Ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[K]}],px:[{px:[K]}],py:[{py:[K]}],ps:[{ps:[K]}],pe:[{pe:[K]}],pt:[{pt:[K]}],pr:[{pr:[K]}],pb:[{pb:[K]}],pl:[{pl:[K]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],dt:[{dt:[y]}],dt:[{dt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[qe]},qe]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vt]}],"font-family":[{font:[ut]}],"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",I]}],"line-clamp":[{"line-clamp":["none",nt,Vt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ge,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ge,_e]}],"underline-offset":[{"underline-offset":["auto",Ge,I]}],"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:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],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",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Re(),Vr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hr]}],"bg-image":[{bg:["none",{"gradient-to":["t","ce","r","br","Ca","bl","l","tl"]},Gr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-Ca":[{"rounded-Ca":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Ca":[{"rounded-Ca":[s]}],"rounded-Ca":[{"rounded-Ca":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-ce":[{"rounded-ce":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-Ca":[{"border-Ca":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...ve(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:ve()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-Ca":[{"border-Ca":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[Ge,I]}],"outline-w":[{outline:[Ge,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[Ge,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qe,Ur]}],"shadow-color":[{shadow:[ut]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",qe,I]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[f]}],saturate:[{saturate:[j]}],sepia:[{sepia:[v]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ae]}],"scale-x":[{"scale-x":[ae]}],"scale-y":[{"scale-y":[ae]}],rotate:[{rotate:[pt,I]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Ca-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-dt":[{"scroll-dt":E()}],"scroll-dt":[{"scroll-dt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ge,_e,Vt]}],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","dt","dt","mr","mb","ml"],mx:["mr","ml"],my:["dt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Ca","rounded-l","rounded-ss","rounded-Ca","rounded-Ca","rounded-es","rounded-tl","rounded-ce","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Ca","rounded-Ca"],"rounded-t":["rounded-tl","rounded-ce"],"rounded-r":["rounded-ce","rounded-br"],"rounded-Ca":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Ca","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ca"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ca","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ca"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-dt","scroll-dt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-dt","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 ya=Rr(qr);function k(...e){return ya((0,Na.clsx)(e))}var Ca=require("react/jsx-runtime"),Kr=(0,wa.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 W({className:e,variant:t,...r}){return(0,Ca.jsx)("div",{className:k(Kr({variant:t}),e),...r})}var Sa=require("@radix-ui/react-slot"),Da=ie(require("react")),Ct=(0,wa.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"}}}),D=Da.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},s)=>(0,Ca.jsx)(e?Sa.Slot:"button",{className:k(Ct({className:t,size:r,variant:o})),ref:s,...n}));D.displayName="Button";var Qe=ie(require("react"));var Q=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var Ut=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("flex flex-col space-y-1.5 p-6",e),...t}));Ut.displayName="CardHeader";var jt=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("font-semibold leading-none tracking-tight",e),...t}));jt.displayName="CardTitle";var Wt=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("text-sm text-muted-foreground",e),...t}));Wt.displayName="CardDescription";var gt=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("p-6 pt-0",e),...t}));gt.displayName="CardContent";var _t=Qe.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("div",{ref:r,className:k("flex items-center p-6 pt-0",e),...t}));_t.displayName="CardFooter";var Pa=ie(require("react")),ft=ie(require("@radix-ui/react-progress"));var Kt=Pa.forwardRef(({className:e,value:t,...r},o)=>(0,Ca.jsx)(ft.Root,{ref:o,className:k("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,Ca.jsx)(ft.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Kt.displayName=ft.Root.displayName;function Ea({project:e,onOpen:t,onShare:r,className:o}){return(0,Ca.jsx)(Ra.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Ca.jsxs)(Q,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Ca.jsxs)(Ut,{children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)(jt,{children:e.name}),(0,Ca.jsxs)(W,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Ca.jsx)(Wt,{children:e.description})]}),(0,Ca.jsxs)(gt,{className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ca.jsx)("span",{children:"Progress"}),(0,Ca.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Ca.jsx)(Kt,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Ca.jsxs)("div",{className:"flex items-center",children:[(0,Ca.jsx)(dt.Users,{className:"mr-1 h-4 w-4"}),e.members," members"]}),(0,Ca.jsxs)("div",{className:"flex items-center",children:[(0,Ca.jsx)(dt.FileText,{className:"mr-1 h-4 w-4"}),e.files," files"]})]})]}),(0,Ca.jsxs)(_t,{className:"flex gap-2",children:[(0,Ca.jsx)(D,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Ca.jsx)(D,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>r?.(e),children:(0,Ca.jsx)(dt.Share2,{className:"h-4 w-4"})})]})]})})}var ce=require("react");var Ia=({title:e,status:t,taskCount:r,children:o,onDrop:n,isCompact:s=!1,height:c})=>{let d=l=>{l.preventDefault()},g=l=>{l.preventDefault(),n(t)};return(0,Ca.jsxs)(Q,{className:`p-4 bg-card border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col ${s?"lg:max-w-xs":""}`,style:{height:c||"calc(100vh - 350px)"},onDragOver:d,onDrop:g,children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Ca.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${s?"text-base":"text-lg"}`,children:e}),(0,Ca.jsx)(W,{variant:"secondary",className:"bg-muted text-muted-foreground",children:r})]}),(0,Ca.jsx)("div",{className:"flex-1 overflow-y-auto space-y-4 min-h-0",children:o})]})};var St=({task:e,epic:t,onDragStart:r,onTaskClick:o,isCompact:n=!1})=>{let s=l=>{r(e)},c=()=>{o(e)},d=()=>{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"}},g=()=>{switch(e.type){case"story":return(0,Ca.jsx)(dt.BookOpen,{className:"h-3 w-3"});case"bug":return(0,Ca.jsx)(dt.Bug,{className:"h-3 w-3"});case"spike":return(0,Ca.jsx)(dt.Zap,{className:"h-3 w-3"});case"task":default:return(0,Ca.jsx)(dt.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 n?(0,Ca.jsx)(Q,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:s,onClick:c,children:(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${p()}`,children:g()}),(0,Ca.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,Ca.jsxs)(Q,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:s,onClick:c,children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ca.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${p()}`,children:[g(),(0,Ca.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Ca.jsxs)("div",{className:"flex gap-1",children:[(0,Ca.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${d()}`,children:e.priority}),(0,Ca.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,Ca.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Ca.jsx)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:(0,Ca.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ca.jsx)(dt.User,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:e.assignee?.value?.name})]})})]})};var vt=ie(require("react")),pe=ie(require("@radix-ui/react-dialog"));var Oe=pe.Root;var Jr=pe.Portal;var La=vt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(pe.Overlay,{ref:r,className:k("fixed inset-0 Ca-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}));La.displayName=pe.Overlay.displayName;var Ie=vt.forwardRef(({className:e,children:t,...r},o)=>(0,Ca.jsxs)(Jr,{children:[(0,Ca.jsx)(La,{}),(0,Ca.jsxs)(pe.Content,{ref:o,className:k("fixed left-[50%] top-[50%] Ca-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),...r,children:[t,(0,Ca.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-accent data-[state=open]:text-muted-foreground",children:[(0,Ca.jsx)(dt.X,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ie.displayName=pe.Content.displayName;var Ae=({className:e,...t})=>(0,Ca.jsx)("div",{className:k("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ae.displayName="DialogHeader";var bt=({className:e,...t})=>(0,Ca.jsx)("div",{className:k("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});bt.displayName="DialogFooter";var Le=vt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(pe.Title,{ref:r,className:k("text-lg font-semibold leading-none tracking-tight",e),...t}));Le.displayName=pe.Title.displayName;var Xr=vt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(pe.Description,{ref:r,className:k("text-sm text-muted-foreground",e),...t}));Xr.displayName=pe.Description.displayName;var Ba=ie(require("react"));var $=Ba.forwardRef(({className:e,type:t,...r},o)=>(0,Ca.jsx)("input",{type:t,className:k("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));$.displayName="Input";var za=ie(require("react")),be=za.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)("textarea",{className:k("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:r,...t}));be.displayName="Textarea";var M=ie(require("@radix-ui/react-select")),Ke=ie(require("react")),ue=M.Root;var Ce=M.Value,ne=Ke.forwardRef(({children:e,className:t,...r},o)=>(0,Ca.jsxs)(M.Trigger,{className:k("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,Ca.jsx)(M.Icon,{asChild:!0,children:(0,Ca.jsx)(dt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ne.displayName=M.Trigger.displayName;var Oa=Ke.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(M.ScrollUpButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ca.jsx)(dt.ChevronUp,{className:"h-4 w-4"})}));Oa.displayName=M.ScrollUpButton.displayName;var Ha=Ke.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(M.ScrollDownButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ca.jsx)(dt.ChevronDown,{className:"h-4 w-4"})}));Ha.displayName=M.ScrollDownButton.displayName;var le=Ke.forwardRef(({children:e,className:t,position:r="popper",...o},n)=>(0,Ca.jsx)(M.Portal,{children:(0,Ca.jsxs)(M.Content,{className:k("relative Ca-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:n,...o,children:[(0,Ca.jsx)(Oa,{}),(0,Ca.jsx)(M.Viewport,{className:k("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ca.jsx)(Ha,{})]})}));le.displayName=M.Content.displayName;var Zr=Ke.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(M.Label,{className:k("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zr.displayName=M.Label.displayName;var A=Ke.forwardRef(({children:e,className:t,...r},o)=>(0,Ca.jsxs)(M.Item,{className:k("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,Ca.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ca.jsx)(M.ItemIndicator,{children:(0,Ca.jsx)(dt.Check,{className:"h-4 w-4"})})}),(0,Ca.jsx)(M.ItemText,{children:e})]}));A.displayName=M.Item.displayName;var Yr=Ke.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(M.Separator,{className:k("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yr.displayName=M.Separator.displayName;var Va=ie(require("react")),Jt=ie(require("@radix-ui/react-label"));var Qr=(0,$Ca.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),h=Va.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(Jt.Root,{ref:r,className:k(Qr(),e),...t}));h.displayName=Jt.Root.displayName;var rt=ie(require("react")),ct=ie(require("@radix-ui/react-toggle-group"));var Ua=ie(require("react")),Xt=ie(require("@radix-ui/react-toggle"));var Zt=(0,wa.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"}}),eo=Ua.forwardRef(({className:e,variant:t,size:r,...o},n)=>(0,Ca.jsx)(Xt.Root,{ref:n,className:k(Zt({variant:t,size:r,className:e})),...o}));eo.displayName=Xt.Root.displayName;var _a=rt.createContext({size:"default",variant:"default"}),ot=rt.forwardRef(({className:e,variant:t,size:r,children:o,...n},s)=>(0,Ca.jsx)(ct.Root,{ref:s,className:k("flex items-center justify-center gap-1",e),...n,children:(0,Ca.jsx)(_a.Provider,{value:{variant:t,size:r},children:o})}));ot.displayName=ct.Root.displayName;var st=rt.forwardRef(({className:e,children:t,variant:r,size:o,...n},s)=>{let c=rt.useContext(_a);return(0,Ca.jsx)(ct.Item,{ref:s,className:k(Zt({variant:c.variant||r,size:c.size||o}),e),...n,children:t})});st.displayName=ct.Item.displayName;var to=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:dt.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:dt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:dt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:dt.Zap}],ao=[{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"}],qa=({isOpen:e,onClose:t,onAddTask:r,epics:o,sprints:n,assignees:s,defaultEpicId:c})=>{let[d,g]=(0,ce.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""});(0,ce.useEffect)(()=>{e&&c&&g(f=>({...f,epicId:c}))},[e,c]),(0,ce.useEffect)(()=>{e&&g({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:c||"",sprintId:"none",assignee:""})},[e]);let p=f=>{f.preventDefault(),d.name.trim()&&(r({name:d.name.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"}),g({name:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:c||"",sprintId:"none",assignee:""}),t())},l=(f,P)=>{g(u=>({...u,[f]:P}))};return(0,Ca.jsx)(Oe,{open:e,onOpenChange:t,children:(0,Ca.jsxs)(Ie,{className:"sm:max-w-md",children:[(0,Ca.jsx)(Ae,{children:(0,Ca.jsx)(Le,{children:"Add New Task"})}),(0,Ca.jsxs)("form",{onSubmit:p,className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"name",children:"Task Title"}),(0,Ca.jsx)($,{id:"name",value:d.name,onChange:f=>l("name",f.target.value),placeholder:"Enter task title",required:!0})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"description",children:"Description"}),(0,Ca.jsx)(be,{id:"description",value:d.description,onChange:f=>l("description",f.target.value),placeholder:"Enter task description",rows:3})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Type"}),(0,Ca.jsx)(ot,{type:"single",value:d.type,onValueChange:f=>f&&l("type",f),children:to.map(f=>{let P=f.icon;return(0,Ca.jsxs)(st,{value:f.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Ca.jsx)(P,{className:"h-4 w-4"}),f.label]},f.value)})})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Priority"}),(0,Ca.jsx)(ot,{type:"single",value:d.priority,onValueChange:f=>f&&l("priority",f),children:ao.map(f=>(0,Ca.jsx)(st,{value:f.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:f.label},f.value))})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"points",children:"Story Points"}),(0,Ca.jsx)($,{id:"points",type:"number",min:"1",max:"100",value:d.points,onChange:f=>l("points",parseInt(f.target.value)||1),placeholder:"Enter story points",required:!0})]}),!c&&(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"epic",children:"Epic"}),(0,Ca.jsxs)(ue,{value:d.epicId,onValueChange:f=>l("epicId",f),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{placeholder:"Select an epic"})}),(0,Ca.jsx)(le,{children:o.map(f=>(0,Ca.jsx)(A,{value:f.id,children:(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsx)("div",{className:`w-3 h-3 rounded-full ${f.color}`}),f.name]})},f.id))})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Ca.jsxs)(ue,{value:d.sprintId,onValueChange:f=>l("sprintId",f),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{placeholder:"Select Ca sprint"})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"none",children:"No Sprint"}),n.map(f=>(0,Ca.jsx)(A,{value:f.id,children:(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[f.name,f.isActive&&(0,Ca.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},f.id))]})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"sprint",children:"Assignee"}),(0,Ca.jsxs)(ue,{value:d.assignee,onValueChange:f=>l("assignee",f),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{placeholder:"Select an Assignee"})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"none",children:"No Assignee"}),s.map(f=>(0,Ca.jsx)(A,{value:f.id,children:(0,Ca.jsx)("div",{className:"flex items-center gap-2",children:f.name})},f.id))]})]})]}),(0,Ca.jsxs)(bt,{children:[(0,Ca.jsx)(D,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Ca.jsx)(D,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var Qt=({fieldName:e,value:t,label:r,multiline:o=!1,onSave:n,className:s="",disabled:c=!1})=>{let[d,g]=(0,ce.useState)(!1),[p,l]=(0,ce.useState)(""),f=()=>{c||(g(!0),l(t))},P=async()=>{p!==t&&await n(e,p),g(!1)},u=x=>{x.key==="Enter"&&!o||x.key==="Enter"&&x.ctrlKey&&o?P():x.key==="Escape"&&(g(!1),l(""))};return(0,Ca.jsxs)("div",{className:`space-y-2 ${s}`,children:[(0,Ca.jsx)(h,{children:r}),d?o?(0,Ca.jsx)(be,{value:p,onChange:x=>l(x.target.value),onBlur:P,onKeyDown:u,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ca.jsx)($,{value:p,onChange:x=>l(x.target.value),onBlur:P,onKeyPress:u,autoFocus:!0,className:"text-lg font-medium"}):(0,Ca.jsxs)("div",{onClick:f,className:`${c?"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,Ca.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!c&&(0,Ca.jsx)(dt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Dt=ie(require("react")),je=ie(require("@radix-ui/react-avatar"));var ea=Dt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(je.Root,{ref:r,className:k("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ea.displayName=je.Root.displayName;var ro=Dt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(je.Image,{ref:r,className:k("aspect-square h-full w-full",e),...t}));ro.displayName=je.Image.displayName;var ta=Dt.forwardRef(({className:e,...t},r)=>(0,Ca.jsx)(je.Fallback,{ref:r,className:k("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ta.displayName=je.Fallback.displayName;var Xa=({comments:e,onAddComment:t})=>{let[r,o]=(0,ce.useState)(""),n=c=>c.split(" ").map(d=>d[0]).join("").toUpperCase(),s=()=>{r.trim()&&(t(r),o(""))};return(0,Ca.jsxs)("div",{className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsx)(dt.MessageSquare,{className:"h-5 w-5"}),(0,Ca.jsx)(h,{className:"text-lg font-medium",children:"Comments"}),(0,Ca.jsx)(W,{variant:"secondary",children:e.length})]}),(0,Ca.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(c=>(0,Ca.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Ca.jsx)(ea,{className:"h-8 w-8 dt-1",children:(0,Ca.jsx)(ta,{className:"text-xs bg-muted text-muted-foreground",children:n(c.author)})}),(0,Ca.jsxs)("div",{className:"flex-1",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ca.jsx)("span",{className:"font-medium text-sm",children:c.author}),(0,Ca.jsxs)("span",{className:"text-xs text-muted-foreground",children:[c.createdAt.toLocaleDateString()," dt ",c.createdAt.toLocaleTimeString()]})]}),(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground",children:c.text})]})]},c.id))}),(0,Ca.jsxs)("div",{className:"flex gap-2",children:[(0,Ca.jsx)(be,{value:r,onChange:c=>o(c.target.value),placeholder:"Add Ca comment...",rows:2,className:"flex-1 resize-none"}),(0,Ca.jsx)(D,{onClick:s,disabled:!r.trim(),size:"sm",className:"self-end",children:(0,Ca.jsx)(dt.Send,{className:"h-4 w-4"})})]})]})};var Rt=({label:e,value:t,onValueChange:r,options:o,showColor:n=!1,disabled:s=!1})=>{let[c,d]=(0,ce.useState)(!1),g=o.find(l=>l.value===t);return(0,Ca.jsxs)("div",{className:"space-y-1",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:e}),(0,Ca.jsxs)(ue,{value:t,onValueChange:r,open:c,onOpenChange:l=>{s||d(l)},disabled:s,children:[(0,Ca.jsx)(ne,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Ca.jsxs)(W,{variant:"secondary",className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!s&&d(!c),children:[n&&g?.color&&(0,Ca.jsx)("div",{className:`w-2 h-2 rounded-full ${g.color} mr-1`}),g?.label||"Select..."]})}),(0,Ca.jsx)(le,{children:o.map(l=>(0,Ca.jsx)(A,{value:l.value,children:n&&l.color?(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsx)("div",{className:`w-3 h-3 rounded-full ${l.color}`}),l.label]}):l.label},l.value))})]})]})};var Ya=({label:e,value:t,onValueChange:r,options:o,placeholder:n="Search...",allowCustomValue:s=!1,disabled:c=!1})=>{let[d,g]=(0,ce.useState)(!1),[p,l]=(0,ce.useState)(""),f=o.find(y=>y.value===t),P=o.filter(y=>y.label.toLowerCase().includes(p.toLowerCase())),u=y=>{r(y),g(!1),l("")},x=()=>{s&&p.trim()&&!o.find(y=>y.value===p.trim())&&(r(p.trim()),g(!1),l(""))};return(0,Ca.jsxs)("div",{className:"space-y-1",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:e}),(0,Ca.jsxs)(ue,{value:t,onValueChange:u,open:d,onOpenChange:y=>{c||g(y)},disabled:c,children:[(0,Ca.jsx)(ne,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Ca.jsx)(W,{variant:"secondary",className:`${c?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!c&&g(!d),children:f?.label||t||"Select..."})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)("div",{className:"p-2",children:(0,Ca.jsx)($,{placeholder:n,value:p,onChange:y=>l(y.target.value),onKeyDown:y=>{y.key==="Enter"&&s&&x()},className:"mb-2"})}),P.map(y=>(0,Ca.jsx)(A,{value:y.value,children:y.label},y.value)),s&&p.trim()&&!P.find(y=>y.value===p.trim())&&(0,Ca.jsxs)(A,{value:p.trim(),children:['Add "',p.trim(),'"']})]})]})]})};var oo=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:dt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:dt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:dt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:dt.Zap}],so=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}];var Qa=({task:e,epics:t,sprints:r,lastUpdated:o,onUpdateTask:n,onClose:s,onDelete:c,isUpdating:d=!1,isDeleting:g=!1,deleteState:p="idle",teamMembers:l})=>{let f=u=>u.split(" ").map(x=>x[0]).join("").toUpperCase(),P=()=>p==="loading"?(0,Ca.jsxs)(D,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Ca.jsx)(dt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):p==="success"?(0,Ca.jsxs)(D,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Ca.jsx)(dt.Check,{className:"h-3 w-3"}),"Deleted"]}):p==="error"?(0,Ca.jsxs)(D,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Ca.jsx)(dt.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,Ca.jsxs)(D,{onClick:c,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:d||g,children:[(0,Ca.jsx)(dt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,Ca.jsxs)("div",{className:"flex flex-col h-full",children:[(0,Ca.jsxs)("div",{className:"space-y-4",style:{opacity:d?.6:1},children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Ca.jsx)(Rt,{label:"",value:e.status,onValueChange:u=>n("status",u),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:d})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Ca.jsx)(ot,{type:"single",value:e.type,onValueChange:u=>u&&n("type",u),className:"grid grid-cols-2 gap-1",disabled:d,children:oo.map(u=>{let x=u.icon;return(0,Ca.jsxs)(st,{value:u.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:d,children:[(0,Ca.jsx)(x,{className:"h-3 w-3"}),u.label]},u.value)})})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Ca.jsx)(ot,{type:"single",value:e.priority,onValueChange:u=>u&&n("priority",u),className:"grid grid-cols-3 gap-1",disabled:d,children:so.map(u=>(0,Ca.jsx)(st,{value:u.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:d,children:u.label},u.value))})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Ca.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:u=>n("points",u.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:d})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Ca.jsx)(Rt,{label:"",value:e.epicId,onValueChange:u=>n("epicId",u),options:(t||[]).map(u=>({value:u.id,label:u?.name,color:u.color})),showColor:!0,disabled:d})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Ca.jsx)(Rt,{label:"",value:e.sprintId||"none",onValueChange:u=>n("sprintId",u==="none"?"":u),options:[{value:"none",label:"No Sprint"},...(r||[]).map(u=>({value:u.id,label:`${u?.name}${u.isActive?" (Active)":""}`}))],disabled:d})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Ca.jsx)(Ya,{label:"",value:e.assignee?.value?.name,onValueChange:u=>n("assignee",u),options:l.map(u=>({value:`${typeof u.email=="string"?"users":"digital-colleagues"}:${u.id}`,label:u?.name})),placeholder:"Search team members...",allowCustomValue:!0,disabled:d})]})]}),(0,Ca.jsxs)("div",{className:"dt-auto pt-4 space-y-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(D,{onClick:s,variant:"outline",className:"w-full h-8 text-xs",disabled:d||g,children:"Close"}),P()]}),(0,Ca.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,Ca.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Ca.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Ca.jsx)(dt.User,{className:"h-3 w-3"}),(0,Ca.jsx)("span",{children:"System"})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Ca.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-3 w-3"}),(0,Ca.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Ca.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Ca.jsx)(dt.Clock,{className:"h-3 w-3"}),(0,Ca.jsxs)("span",{children:[new Date(o).toLocaleDateString()," dt"," ",new Date(o).toLocaleTimeString()]})]})]})]})]})]})};var er=({isOpen:e,onClose:t,initialTask:r,epics:o,sprints:n,onUpdateTask:s,onDeleteTask:c,onAddComment:d,colleagues:g})=>{let[p,l]=(0,ce.useState)(r),[f,P]=(0,ce.useState)(new Date),[u,x]=(0,ce.useState)("idle"),[L,y]=(0,ce.useState)("idle"),[H,K]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{l(r)},[r]);let j=async(U,xe)=>{if(xe!==p[U]){x("loading");try{let E=await s(p.id,{[U]:xe});l(E),P(new Date),x("success"),setTimeout(()=>x("idle"),1500)}catch{x("error"),setTimeout(()=>x("idle"),3e3)}}},ae=async(U,xe)=>{if(xe!==p[U]){x("loading");try{let E=await s(p.id,{[U]:xe});l(E),P(new Date),x("success"),setTimeout(()=>x("idle"),1500)}catch{x("error"),setTimeout(()=>x("idle"),3e3)}}},v=async U=>{if(d){x("loading");try{let xe=await d?.({content:U,taskId:p.id});l(xe),P(new Date),x("success"),setTimeout(()=>x("idle"),1500)}catch{x("error"),setTimeout(()=>x("idle"),3e3)}}},F=async()=>{y("loading");try{await c(p.id),y("success"),setTimeout(()=>{t(),y("idle")},1e3)}catch{y("error"),setTimeout(()=>y("idle"),3e3)}},Y=u!=="loading"&&L!=="loading",J=()=>{Y&&t()},Se=()=>u==="loading"?(0,Ca.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Ca.jsx)(dt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,Ca.jsx)("span",{children:"Updating..."})]}):u==="success"?(0,Ca.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Ca.jsx)(dt.Check,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:"Updated successfully"})]}):u==="error"?(0,Ca.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Ca.jsx)(dt.X,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:"Update failed"})]}):null;return(0,Ca.jsx)(Oe,{open:e,onOpenChange:J,children:(0,Ca.jsxs)(Ie,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,Ca.jsxs)(Ae,{children:[(0,Ca.jsx)(Le,{className:"sr-only",children:p.name}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)("div",{className:"flex-1",children:Se()}),!Y&&(0,Ca.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Ca.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Ca.jsx)(Qt,{fieldName:"name",value:p.name,label:"",onSave:j,className:"border-Ca border-border pb-3",disabled:u==="loading"}),(0,Ca.jsx)(Qt,{fieldName:"description",value:p.description,label:"Description",multiline:!0,onSave:j,disabled:u==="loading"}),(0,Ca.jsx)(Xa,{comments:(p?.comments||[]).map(U=>({author:U.author.value.name,createdAt:new Date(U.timestamp),text:U.content,id:U.id})),onAddComment:v})]}),(0,Ca.jsx)(Qa,{task:p,epics:o,sprints:n,lastUpdated:f,onUpdateTask:ae,onClose:J,onDelete:F,isUpdating:u==="loading",isDeleting:L==="loading",deleteState:L,teamMembers:g})]})]})})};var ar=({isOpen:e,onClose:t,onAddEpic:r})=>{let[o,n]=(0,ce.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),s=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],c=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],d=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],g=l=>{l.preventDefault(),o.name.trim()&&(r({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())},p=(l,f)=>{n(P=>({...P,[l]:f}))};return(0,Ca.jsx)(Oe,{open:e,onOpenChange:t,children:(0,Ca.jsxs)(Ie,{className:"sm:max-w-md",children:[(0,Ca.jsx)(Ae,{children:(0,Ca.jsx)(Le,{children:"Add New Epic"})}),(0,Ca.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"name",children:"Epic Name"}),(0,Ca.jsx)($,{id:"name",value:o.name,onChange:l=>p("name",l.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"description",children:"Description"}),(0,Ca.jsx)(be,{id:"description",value:o.description,onChange:l=>p("description",l.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Color"}),(0,Ca.jsx)("div",{className:"flex gap-2 flex-wrap",children:s.map(l=>(0,Ca.jsx)("button",{type:"button",onClick:()=>p("color",l),className:`w-8 h-8 rounded-full ${l} ${o.color===l?"ring-2 ring-gray-400":""}`},l))})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Confidence"}),(0,Ca.jsxs)(ue,{value:o.confidence,onValueChange:l=>p("confidence",l),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsx)(le,{children:c.map(l=>(0,Ca.jsx)(A,{value:l.value,children:l.label},l.value))})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Phase"}),(0,Ca.jsxs)(ue,{value:o.phase.toString(),onValueChange:l=>p("phase",parseInt(l)),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsx)(le,{children:d.map(l=>(0,Ca.jsx)(A,{value:l.value.toString(),children:l.label},l.value))})]})]})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Start Date"}),(0,Ca.jsx)($,{type:"date",value:o.startDate,onChange:l=>p("startDate",l.target.value)})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"End Date"}),(0,Ca.jsx)($,{type:"date",value:o.endDate,onChange:l=>p("endDate",l.target.value)})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Progress (%)"}),(0,Ca.jsx)($,{type:"number",min:"0",max:"100",value:o.progress,onChange:l=>p("progress",parseInt(l.target.value)||0)})]}),(0,Ca.jsxs)(bt,{children:[(0,Ca.jsx)(D,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Ca.jsx)(D,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};function rr(e,t){let[r,o]=(0,ce.useState)(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),n=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return(0,ce.useEffect)(()=>{n(r)},[]),[r,n]}var It=require("react-icons/fa");function Ze({title:e,description:t,badge:r,primaryAction:o,secondaryAction:n,gradient:s,children:c,className:d}){let[g,p]=rr(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),l=!n&&!t||g;return(0,Ca.jsxs)(Ra.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${d||""}`,children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ca.jsx)(W,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ca.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ca.jsxs)("div",{className:"flex items-center gap-3",children:[l&&o&&(0,Ca.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,Ca.jsx)("button",{"aria-label":g?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!g),style:{lineHeight:0},children:g?(0,Ca.jsx)(It.FaChevronDown,{size:22}):(0,Ca.jsx)(It.FaChevronUp,{size:22})})]})]}),!l&&(0,Ca.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ca.jsxs)("div",{className:"space-y-4",children:[(0,Ca.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Ca.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ca.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,Ca.jsx)(D,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),c&&(0,Ca.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var io=({initialTasks:e=[],initialEpics:t=[],initialSprints:r=[],initialUsers:o=[],initialColleagues:n=[],initialProjects:s=[],onAddTask:c,onUpdateTask:d,onDeleteTask:g,onTaskClick:p,onAddEpic:l,onAddComment:f})=>{let[P,u]=(0,ce.useState)(e),[x,L]=(0,ce.useState)(t),[y,H]=(0,ce.useState)(r),[K,j]=(0,ce.useState)(!1),[ae,v]=(0,ce.useState)(!1),[F,Y]=(0,ce.useState)(null),[J,Se]=(0,ce.useState)(null),[U,xe]=(0,ce.useState)(o),[E,w]=(0,ce.useState)(n),[_,Re]=(0,ce.useState)(0),ve=(0,ce.useRef)(null),q=(0,ce.useRef)(null),Ee=x.filter(T=>!0).map(T=>T.id),De=y.find(T=>T.isSelected);Ee.push("no-epic"),(0,ce.useEffect)(()=>{u(e)},[e]),(0,ce.useEffect)(()=>{L(t)},[t]),(0,ce.useEffect)(()=>{H(r)},[r]),(0,ce.useEffect)(()=>{let T=()=>{if(ve.current){let he=ve.current.offsetHeight;Re(he)}};T();let V=new ResizeObserver(T);ve.current&&V.observe(ve.current);let X=()=>{setTimeout(T,100)};return window.addEventListener("storage",X),()=>{V.disconnect(),window.removeEventListener("storage",X)}},[]),(0,ce.useEffect)(()=>{let T=setTimeout(()=>{ve.current&&Re(ve.current.offsetHeight)},300);return()=>clearTimeout(T)},[K,ae]);let Ye=P.filter(T=>{let V=Ee.includes(T.epicId)||!T.epicId;return!De||De.id==="all-tasks"?V:De.id==="backlog"?V&&!T.sprintId:V&&T.sprintId===De.id}),ke=T=>Ye.filter(V=>V.status===T),We=T=>{let V={};return x.forEach(X=>{V[X.id]=T.filter(he=>he.epicId===X.id)}),V["no-epic"]=T.filter(X=>!X.epicId),V},Bt=T=>{Se(T)},xt=T=>{J&&(u(V=>V.map(X=>X.id===J.id?{...X,status:T}:X)),d?.(J.id,{status:T}),Se(null))},it=T=>{let V={...T,id:Date.now().toString(),createdAt:new Date};u(X=>[...X,V]),c?.(T)},Mt=async(T,V)=>{u(he=>he.map(m=>m.id===T?{...m,...V}:m)),d&&await d(T,V);let X=P.find(he=>he.id===T);if(!X)throw new Error("Task not found");return{...X,...V}},yt=async T=>{u(V=>V.filter(X=>X.id!==T)),F?.id===T&&Y(null),g&&await g(T)},zt=T=>{let V={...T,id:Date.now().toString(),isSelected:!0};L(X=>[...X,V]),l?.(T)},Ft=T=>{Y(T),p?.(T)},Ot=[{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"}],Nt=_>0?`calc(100vh - ${_+120}px)`:"calc(100vh - 12rem)";return(0,Ca.jsxs)("div",{ref:q,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,Ca.jsx)("div",{ref:ve,className:"flex-shrink-0",children:(0,Ca.jsx)(Ze,{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:()=>j(!0)},secondaryAction:{label:"Add epic",onClick:()=>v(!0)}})}),(0,Ca.jsx)("div",{className:"flex-1 min-h-0 dt-8",children:(0,Ca.jsx)("div",{className:"h-full",style:{height:_>0?`calc(100vh - ${_+120}px)`:"calc(100vh - 12rem)"},children:(0,Ca.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:Ot.map(T=>{let V=ke(T.status),X=We(V);return(0,Ca.jsx)(Ia,{title:T.title,status:T.status,taskCount:V.length,onDrop:xt,isCompact:T.status==="done",height:Nt,children:Ee.map(he=>{let m=x.find(B=>B.id===he),N=X[he]||[];return N.length===0?null:(0,Ca.jsxs)("div",{className:"mb-6",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Ca.jsx)("div",{className:`w-3 h-3 rounded-full ${m?.color}`}),(0,Ca.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:m?.name||"No Epic"}),(0,Ca.jsx)(W,{variant:"secondary",className:"text-xs",children:N.length})]})," ",(0,Ca.jsx)("div",{className:"space-y-3",children:N.map(B=>(0,Ca.jsx)(St,{task:B,epic:m,onDragStart:Bt,onTaskClick:Ft,isCompact:T.status==="done"},B.id))})]},he)})},T.id)})})})}),(0,Ca.jsx)(qa,{isOpen:K,onClose:()=>j(!1),onAddTask:it,assignees:[...E,...U],epics:x,sprints:y}),(0,Ca.jsx)(ar,{isOpen:ae,onClose:()=>v(!1),onAddEpic:zt}),F&&(0,Ca.jsx)(er,{isOpen:!!F,onClose:()=>Y(null),initialTask:F,epics:x,sprints:y,onUpdateTask:Mt,onDeleteTask:yt,colleagues:[...E,...U],onAddComment:f})]})};var sr=require("react-day-picker");function At({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,Ca.jsx)(sr.DayPicker,{showOutsideDays:r,weekStartsOn:1,className:k("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:k(Ct({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 dt-2",cell:k("relative p-0 text-center text-sm focus-within:relative focus-within:Ca-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.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:k(Ct({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})}At.displayName="Calendar";var nr=ie(require("react")),$e=ie(require("@radix-ui/react-popover"));var oa=$e.Root,sa=$e.Trigger;var Lt=nr.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},n)=>(0,Ca.jsx)($e.Portal,{children:(0,Ca.jsx)($e.Content,{ref:n,align:t,sideOffset:r,className:k("Ca-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})}));Lt.displayName=$e.Content.displayName;var na=require("date-fns");var dr=({isOpen:e,onClose:t,onAddSprint:r})=>{let[o,n]=(0,ce.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),s=d=>{d.preventDefault(),!(!o.name||!o.startDate||!o.endDate)&&(r({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())},c=()=>{n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t()};return(0,Ca.jsx)(Oe,{open:e,onOpenChange:c,children:(0,Ca.jsxs)(Ie,{className:"sm:max-w-md",children:[(0,Ca.jsx)(Ae,{children:(0,Ca.jsx)(Le,{children:"Add New Sprint"})}),(0,Ca.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"name",children:"Sprint Name *"}),(0,Ca.jsx)($,{id:"name",value:o.name,onChange:d=>n(g=>({...g,name:d.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{htmlFor:"description",children:"Description"}),(0,Ca.jsx)(be,{id:"description",value:o.description,onChange:d=>n(g=>({...g,description:d.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"Start Date *"}),(0,Ca.jsxs)(oa,{children:[(0,Ca.jsx)(sa,{asChild:!0,children:(0,Ca.jsxs)(D,{variant:"outline",className:k("w-full justify-start text-left font-normal",!o.startDate&&"text-muted-foreground"),children:[(0,Ca.jsx)(dt.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.startDate?(0,na.format)(o.startDate,"PPP"):"Pick Ca date"]})}),(0,Ca.jsx)(Lt,{className:"w-auto p-0",align:"start",children:(0,Ca.jsx)(At,{mode:"single",selected:o.startDate,onSelect:d=>n(g=>({...g,startDate:d})),initialFocus:!0})})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)(h,{children:"End Date *"}),(0,Ca.jsxs)(oa,{children:[(0,Ca.jsx)(sa,{asChild:!0,children:(0,Ca.jsxs)(D,{variant:"outline",className:k("w-full justify-start text-left font-normal",!o.endDate&&"text-muted-foreground"),children:[(0,Ca.jsx)(dt.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.endDate?(0,na.format)(o.endDate,"PPP"):"Pick Ca date"]})}),(0,Ca.jsx)(Lt,{className:"w-auto p-0",align:"start",children:(0,Ca.jsx)(At,{mode:"single",selected:o.endDate,onSelect:d=>n(g=>({...g,endDate:d})),initialFocus:!0,disabled:d=>o.startDate?d<o.startDate:!1})})]})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ca.jsx)("input",{type:"checkbox",id:"isActive",checked:o.isActive,onChange:d=>n(g=>({...g,isActive:d.target.checked})),className:"rounded border-gray-300"}),(0,Ca.jsx)(h,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,Ca.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,Ca.jsx)(D,{type:"button",variant:"outline",onClick:c,children:"Cancel"}),(0,Ca.jsx)(D,{type:"submit",disabled:!o.name||!o.startDate||!o.endDate,children:"Add Sprint"})]})]})]})})};var no=({tasks:e,epics:t,sprints:r,onUpdateTask:o,onTaskClick:n,onAddSprint:s,onUpdateSprint:c,onDeleteSprint:d})=>{let[g,p]=(0,ce.useState)([]),[l,f]=(0,ce.useState)(new Set),[P,u]=(0,ce.useState)(null),[x,L]=(0,ce.useState)(!1),[y,H]=(0,ce.useState)(null),[K,j]=(0,ce.useState)(null),[ae,v]=(0,ce.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[F,Y]=(0,ce.useState)("upcoming"),[J,Se]=(0,ce.useState)(!1),[U,xe]=(0,ce.useState)(0),E=(0,ce.useRef)(null),w=(0,ce.useRef)(null);(0,ce.useEffect)(()=>{let m=()=>{E.current&&xe(E.current.offsetHeight)};m();let N=new ResizeObserver(m);return E.current&&N.observe(E.current),()=>N.disconnect()},[]);let _=m=>t.find(N=>N.id===m),Re=m=>r.find(N=>N.id===m),ve=m=>{let N={high:"bg-red-100 text-red-800 border-red-200",medium:"bg-orange-100 text-orange-800 border-orange-200",low:"bg-green-100 text-green-800 border-green-200"};return N[m]||N.medium},q=m=>{let N=m.trim().split(" ");if(N.length===1)return N[0];let B=N[0],G=N[N.length-1][0].toUpperCase();return`${B} ${G}`},Ee=m=>{let N={},B=[];return m.forEach(G=>{G.epicId?(N[G.epicId]||(N[G.epicId]=[]),N[G.epicId].push(G)):B.push(G)}),{tasksByEpic:N,unassignedTasks:B}},De=r.filter(m=>m.id!=="backlog"&&m.id!=="all-tasks"),Ye=De.filter(m=>{switch(F){case"active":return m.isActive;case"upcoming":return!m.isActive;default:return!0}}),ke=De.filter(m=>g.includes(m.id)),We=e.filter(m=>!m.sprintId||m.sprintId==="backlog"||m.sprintId==="Backlog"),Bt=We.reduce((m,N)=>m+(N.points||0),0),xt=m=>{p(N=>N.includes(m)?N.filter(B=>B!==m):N.length<3?[...N,m]:N)},it=m=>{f(N=>{let B=new Set(N);return B.has(m)?B.delete(m):B.add(m),B})},Mt=m=>{s(m),L(!1)},yt=m=>{j(m.id),v({name:m.name,description:m.description||"",startDate:m.startDate instanceof Date?m.startDate.toISOString().split("T")[0]:m.startDate,endDate:m.endDate instanceof Date?m.endDate.toISOString().split("T")[0]:m.endDate,isActive:m.isActive})},zt=()=>{K&&(c(K,{name:ae.name,description:ae.description,startDate:new Date(ae.startDate),endDate:new Date(ae.endDate),isActive:ae.isActive}),j(null))},Ft=()=>{j(null),v({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ot=(m,N)=>{u(N),m.dataTransfer.effectAllowed="move"},Nt=m=>{m.preventDefault(),m.dataTransfer.dropEffect="move"},T=m=>{H(m)},V=()=>{H(null)},X=(m,N)=>{if(m.preventDefault(),H(null),!P)return;let B=P.sprintId||void 0,G=N==="backlog"?void 0:N;B!==G&&o(P.id,{sprintId:G}),u(null)},he=({task:m,showSprint:N=!1})=>{let B=m.epicId?_(m.epicId):null,G=m.sprintId?Re(m.sprintId):null;return(0,Ca.jsx)(Q,{className:"p-3 cursor-grab active:cursor-grabbing hover:shadow-md transition-all duration-200 border border-border bg-card hover:bg-accent/50",draggable:!0,onDragStart:Te=>{Te.dataTransfer.effectAllowed="move",Te.dataTransfer.setData("text/plain",m.id),Ot(Te,m)},onClick:Te=>{P===null&&n(m)},style:{userSelect:"none"},children:(0,Ca.jsxs)("div",{className:"space-y-2 pointer-events-none",children:[(0,Ca.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Ca.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:m.name}),(0,Ca.jsx)(W,{className:`text-xs ${ve(m.priority)}`,children:m.priority[0].toUpperCase()})]}),(0,Ca.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-1",children:[B&&(0,Ca.jsx)("div",{className:`w-2 h-2 rounded-full ${B.color}`}),(0,Ca.jsx)("span",{className:"text-muted-foreground truncate",children:B?.name})]}),(0,Ca.jsx)("span",{className:"text-muted-foreground",children:q(m.assignee?.value?.name)})]}),N&&G&&(0,Ca.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-3 w-3"}),(0,Ca.jsx)("span",{children:G.name})]})]})})};return(0,Ca.jsxs)("div",{ref:w,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,Ca.jsx)("div",{ref:E,className:"flex-shrink-0",children:(0,Ca.jsx)(Ze,{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:()=>L(!0)}})}),(0,Ca.jsx)("div",{className:"flex-1 min-h-0 dt-8",children:(0,Ca.jsxs)("div",{className:"h-full",style:{height:U>0?`calc(100vh - ${U+120}px)`:"calc(100vh - 12rem)"},children:[(0,Ca.jsxs)("div",{className:"mb-4",children:[(0,Ca.jsx)(Q,{className:"p-3 bg-card shadow-sm",children:(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ca.jsx)("div",{children:(0,Ca.jsx)("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"})}),g.length>0&&(0,Ca.jsx)("div",{className:"flex items-center gap-2",children:(0,Ca.jsx)("div",{className:"flex flex-wrap gap-1",children:ke.map(m=>(0,Ca.jsxs)("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[(0,Ca.jsx)("span",{className:"max-w-[80px] truncate",children:m.name}),m.isActive&&(0,Ca.jsx)("span",{className:"text-success text-[10px]",children:"\u25CF"}),(0,Ca.jsx)("button",{onClick:()=>xt(m.id),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:(0,Ca.jsx)(dt.X,{className:"h-4 w-4"})})]},m.id))})})]}),(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsxs)(D,{onClick:()=>L(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[(0,Ca.jsx)(dt.Plus,{className:"h-3 w-3"}),"Add"]}),(0,Ca.jsxs)(D,{onClick:()=>Se(!J),variant:"outline",size:"sm",className:"gap-1",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-3 w-3"}),J?"Close":"Select"]})]})]})}),J&&(0,Ca.jsx)("div",{className:"fixed inset-0 bg-black/20 Ca-[5]",onClick:()=>Se(!1)}),(0,Ca.jsx)("div",{className:`fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl Ca-10 transition-all duration-300 ease-in-out ${J?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:(0,Ca.jsxs)(Q,{className:"h-full rounded-none border-0 flex flex-col",children:[(0,Ca.jsxs)("div",{className:"p-4 border-Ca bg-muted/30 flex-shrink-0",children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),(0,Ca.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>Se(!1),className:"h-8 w-8 p-0",children:(0,Ca.jsx)(dt.X,{className:"h-4 w-4"})})]}),(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground dt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),(0,Ca.jsxs)("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[(0,Ca.jsx)("div",{className:"flex gap-1 mb-4 bg-muted p-1 rounded-lg",children:[{key:"all",label:"All",count:r.length},{key:"active",label:"Active",count:r.filter(m=>m.isActive).length},{key:"upcoming",label:"Upcoming",count:r.filter(m=>!m.isActive).length}].map(m=>(0,Ca.jsxs)(D,{variant:F===m.key?"default":"outline",size:"sm",onClick:()=>Y(m.key),className:"text-xs h-8 px-3 flex-1",children:[m.label," (",m.count,")"]},m.key))}),(0,Ca.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto",children:Ye.length>0?Ye.map(m=>{let N=g.includes(m.id),B=e.filter(ye=>ye.sprintId===m.id).length,G=!N&&g.length<3;return(0,Ca.jsx)("div",{className:`p-3 rounded-lg border transition-all ${N?"bg-primary/10 border-primary/30":G?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:K===m.id?(0,Ca.jsxs)("div",{className:"space-y-3",children:[(0,Ca.jsx)($,{value:ae.name,onChange:ye=>v(we=>({...we,name:ye.target.value})),className:"text-sm",placeholder:"Sprint name"}),(0,Ca.jsx)(be,{value:ae.description,onChange:ye=>v(we=>({...we,description:ye.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),(0,Ca.jsxs)("div",{className:"flex gap-2",children:[(0,Ca.jsxs)(D,{size:"sm",onClick:()=>zt(),className:"flex-1",children:[(0,Ca.jsx)(dt.Check,{className:"h-3 w-3 mr-1"}),"Save"]}),(0,Ca.jsxs)(D,{size:"sm",variant:"outline",onClick:Ft,className:"flex-1",children:[(0,Ca.jsx)(dt.X,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):(0,Ca.jsxs)("div",{children:[(0,Ca.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ca.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ca.jsx)("h4",{className:"font-medium text-sm text-foreground truncate",children:m.name}),m.isActive&&(0,Ca.jsx)(W,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),(0,Ca.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:m.description}),(0,Ca.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[(0,Ca.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ca.jsx)(dt.CalendarDays,{className:"h-3 w-3"}),new Date(m.startDate).toLocaleDateString()]}),(0,Ca.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ca.jsx)(dt.User,{className:"h-3 w-3"}),B," tasks"]})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>yt(m),className:"h-6 w-6 p-0",children:(0,Ca.jsx)(dt.Edit2,{className:"h-3 w-3"})}),m.id!=="backlog"&&m.id!=="all-tasks"&&(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>d(m.id),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:(0,Ca.jsx)(dt.Trash2,{className:"h-3 w-3"})})]})]}),(0,Ca.jsx)("div",{className:"flex items-center justify-between dt-2",children:(0,Ca.jsx)(D,{variant:N?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>xt(m.id),disabled:!N&&g.length>=3,children:(0,Ca.jsx)("span",{className:"pointer-events-none select-none",children:N?"Deselect":g.length>=3?"Limit Reached":"Select"})})})]})},m.id)}):(0,Ca.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),(0,Ca.jsxs)("p",{className:"text-sm",children:['No sprints found for "',F,'" filter']}),(0,Ca.jsx)(D,{variant:"link",size:"sm",onClick:()=>Y("all"),className:"text-xs",children:"Show all sprints"})]})}),g.length===0&&(0,Ca.jsx)("div",{className:"dt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:(0,Ca.jsxs)("div",{className:"text-center",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),(0,Ca.jsx)("p",{className:"text-xs text-muted-foreground dt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[(0,Ca.jsx)("div",{className:"lg:col-span-1",children:(0,Ca.jsxs)(Q,{className:"p-4 h-full bg-card border-l-4 border-l-gray-400 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:Nt,onDragEnter:()=>T("backlog"),onDragLeave:V,onDrop:m=>X(m,"backlog"),style:{height:U>0?`calc(100vh - ${U+200}px)`:"calc(100vh - 16rem)"},children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Ca.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"}),(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsxs)(W,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[We.length," tasks"]}),(0,Ca.jsxs)(W,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[Bt," pts"]})]})]}),(0,Ca.jsx)("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${y==="backlog"?"bg-primary/10":""}`,children:(()=>{let{tasksByEpic:m,unassignedTasks:N}=Ee(We);return(0,Ca.jsxs)(Ca.Fragment,{children:[Object.entries(m).map(([B,G])=>{let ye=_(B);if(!ye)return null;let we=l.has(B);return(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>it(B),children:[(0,Ca.jsx)("div",{className:`w-3 h-3 rounded-full ${ye.color}`}),(0,Ca.jsx)("span",{className:"font-medium text-muted-foreground",children:ye.name}),(0,Ca.jsxs)("span",{className:"text-muted-foreground",children:["(",G.length,")"]}),(0,Ca.jsx)("div",{className:"ml-auto",children:we?(0,Ca.jsx)(dt.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,Ca.jsx)(dt.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!we&&(0,Ca.jsx)("div",{className:"space-y-2 pl-2",children:G.map(Te=>(0,Ca.jsx)(he,{task:Te},Te.id))})]},B)}),N.length>0&&(()=>{let B=l.has("no-epic");return(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>it("no-epic"),children:[(0,Ca.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,Ca.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,Ca.jsxs)("span",{className:"text-muted-foreground",children:["(",N.length,")"]}),(0,Ca.jsx)("div",{className:"ml-auto",children:B?(0,Ca.jsx)(dt.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,Ca.jsx)(dt.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!B&&(0,Ca.jsx)("div",{className:"space-y-2 pl-2",children:N.map(G=>(0,Ca.jsx)(he,{task:G},G.id))})]})})(),We.length===0&&(0,Ca.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"}),We.length>0&&Object.keys(m).length===0&&N.length===0&&(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsx)("div",{className:"text-xs text-muted-foreground mb-2",children:"Direct backlog tasks:"}),We.map(B=>(0,Ca.jsx)(he,{task:B},B.id))]})]})})()})]})}),ke.map(m=>{let N=e.filter(G=>G.sprintId===m.id),B=N.reduce((G,ye)=>G+(ye.points||0),0);return(0,Ca.jsxs)(Q,{className:"p-4 h-full bg-card border-l-4 border-l-blue-500 shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col",onDragOver:Nt,onDragEnter:()=>T(m.id),onDragLeave:V,onDrop:G=>X(G,m.id),style:{height:U>0?`calc(100vh - ${U+200}px)`:"calc(100vh - 16rem)"},children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:m.name}),m.isActive&&(0,Ca.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,Ca.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ca.jsxs)(W,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[N.length," tasks"]}),(0,Ca.jsxs)(W,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[B," pts"]}),(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>yt(m),className:"h-6 px-2",children:(0,Ca.jsx)(dt.Edit2,{className:"h-3 w-3"})}),m.id!=="backlog"&&m.id!=="all-tasks"&&(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>d(m.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,Ca.jsx)(dt.Trash2,{className:"h-3 w-3"})})]})]}),(0,Ca.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:G,unassignedTasks:ye}=Ee(N);return(0,Ca.jsxs)(Ca.Fragment,{children:[Object.entries(G).map(([we,Te])=>{let Ht=_(we);if(!Ht)return null;let ca=l.has(we);return(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>it(we),children:[(0,Ca.jsx)("div",{className:`w-3 h-3 rounded-full ${Ht.color}`}),(0,Ca.jsx)("span",{className:"font-medium text-muted-foreground",children:Ht.name}),(0,Ca.jsxs)("span",{className:"text-muted-foreground",children:["(",Te.length,")"]}),(0,Ca.jsx)("div",{className:"ml-auto",children:ca?(0,Ca.jsx)(dt.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,Ca.jsx)(dt.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!ca&&(0,Ca.jsx)("div",{className:"space-y-2 pl-2",children:Te.map(ma=>(0,Ca.jsx)(he,{task:ma},ma.id))})]},we)}),ye.length>0&&(()=>{let we=l.has("no-epic");return(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 bg-muted/50 rounded text-xs cursor-pointer hover:bg-muted/70 transition-colors",onClick:()=>it("no-epic"),children:[(0,Ca.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,Ca.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,Ca.jsxs)("span",{className:"text-muted-foreground",children:["(",ye.length,")"]}),(0,Ca.jsx)("div",{className:"ml-auto",children:we?(0,Ca.jsx)(dt.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,Ca.jsx)(dt.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!we&&(0,Ca.jsx)("div",{className:"space-y-2 pl-2",children:ye.map(Te=>(0,Ca.jsx)(he,{task:Te},Te.id))})]})})(),N.length===0&&(0,Ca.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})})()})]},m.id)})]}),(0,Ca.jsx)(dr,{isOpen:x,onClose:()=>L(!1),onAddSprint:Mt})]})})]})};var lo=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},co=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),mo=e=>{let[t,r]=e.split(":"),o=new Date;return o.setHours(parseInt(t),parseInt(r)),o.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},la=(e,t)=>{let r=new Date,o=new Date(e);if(t){let[n,s]=t.split(":");o.setHours(parseInt(n),parseInt(s))}return o<r},da=e=>{let t=new Date;return e.toDateString()===t.toDateString()},po=e=>{let t=new Date;return t.setDate(t.getDate()+1),e.toDateString()===t.toDateString()},uo=({colleagues:e,onAddReminder:t,open:r,setOpen:o})=>{let[n,s]=(0,ce.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[c,d]=(0,ce.useState)(!1),g=l=>{l.preventDefault();let f=e.find(u=>u?.id.toString()===n.colleagueId.toString());if(!f){console.error("No valid colleague selected"),d(!0);return}d(!1);let P={title:n.title,description:n.description,dueDate:new Date(n.dueDate),dueTime:n.dueTime||void 0,colleague:f,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(u=>u.trim()):void 0};t(P),o(!1),s({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};(0,ce.useEffect)(()=>{n.colleagueId&&d(!1)},[n.colleagueId]);let p=e.filter(Boolean);return(0,Ca.jsx)(Oe,{open:r,onOpenChange:o,children:(0,Ca.jsxs)(Ie,{className:"max-w-2xl",children:[(0,Ca.jsx)(Ae,{children:(0,Ca.jsx)(Le,{children:"Add New Reminder"})}),(0,Ca.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,Ca.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"title",children:"Title"}),(0,Ca.jsx)($,{id:"title",value:n.title,onChange:l=>s({...n,title:l.target.value}),placeholder:"Enter reminder title",required:!0})]})}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"description",children:"Description"}),(0,Ca.jsx)(be,{id:"description",value:n.description,onChange:l=>s({...n,description:l.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"dueDate",children:"Due Date"}),(0,Ca.jsx)($,{id:"dueDate",type:"date",value:n.dueDate,onChange:l=>s({...n,dueDate:l.target.value}),required:!0})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,Ca.jsx)($,{id:"dueTime",type:"time",value:n.dueTime,onChange:l=>s({...n,dueTime:l.target.value})})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{className:`${c?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),(0,Ca.jsxs)(ue,{value:n.colleagueId,onValueChange:l=>{s({...n,colleagueId:l})},required:!0,children:[(0,Ca.jsx)(ne,{className:`${c?"text-destructive border-red-500":""}`,children:(0,Ca.jsx)(Ce,{className:`${c?"text-destructive border-red-500":""}`,placeholder:"Select Ca digital colleague",children:e.find(l=>l?.id.toString()===n.colleagueId.toString())?.name||"Select Ca digital colleague"})}),(0,Ca.jsx)(le,{children:p.map(l=>(0,Ca.jsx)(A,{value:l.id,children:l.name},l.id))})]}),c&&(0,Ca.jsx)("p",{className:"text-destructive text-sm",children:"Please select Ca digital colleague"})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ca.jsx)("input",{type:"checkbox",id:"isRecurring",checked:n.isRecurring,onChange:l=>s({...n,isRecurring:l.target.checked}),className:"rounded border-border"}),(0,Ca.jsx)(h,{htmlFor:"isRecurring",children:"Make this Ca recurring reminder"})]}),n.isRecurring&&(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,Ca.jsxs)(ue,{value:n.recurrencePattern,onValueChange:l=>s({...n,recurrencePattern:l}),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"daily",children:"Daily"}),(0,Ca.jsx)(A,{value:"weekly",children:"Weekly"}),(0,Ca.jsx)(A,{value:"monthly",children:"Monthly"}),(0,Ca.jsx)(A,{value:"yearly",children:"Yearly"})]})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"recurrenceInterval",children:"Every"}),(0,Ca.jsx)($,{id:"recurrenceInterval",type:"number",min:"1",value:n.recurrenceInterval,onChange:l=>s({...n,recurrenceInterval:parseInt(l.target.value)})})]})]})]}),(0,Ca.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,Ca.jsx)(D,{type:"button",variant:"outline",onClick:()=>o(!1),children:"Cancel"}),(0,Ca.jsx)(D,{type:"submit",children:"Add Reminder"})]})]})]})})},go=({reminder:e,colleagues:t,onUpdateReminder:r,open:o,onClose:n})=>{let[s,c]=(0,ce.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(", ")||""}),d=p=>{p.preventDefault();let l=t.find(f=>f?.id===s.colleagueId);if(!l){console.error("No valid colleague selected");return}r(e.id,{title:s.title,description:s.description,dueDate:new Date(s.dueDate),dueTime:s.dueTime||void 0,colleague:l,priority:s.priority,isRecurring:s.isRecurring,recurrencePattern:s.isRecurring?s.recurrencePattern:void 0,recurrenceInterval:s.isRecurring?s.recurrenceInterval:void 0,reminderEnabled:s.reminderEnabled,reminderMinutes:s.reminderEnabled?s.reminderMinutes:void 0,tags:s.tags?s.tags.split(",").map(f=>f.trim()):void 0}),n()},g=t.filter(Boolean);return(0,Ca.jsx)(Oe,{open:o,onOpenChange:n,children:(0,Ca.jsxs)(Ie,{className:"max-w-2xl",children:[(0,Ca.jsx)(Ae,{children:(0,Ca.jsx)(Le,{children:"Edit Reminder"})}),(0,Ca.jsxs)("form",{onSubmit:d,className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-title",children:"Title"}),(0,Ca.jsx)($,{id:"edit-title",value:s.title,onChange:p=>c({...s,title:p.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-priority",children:"Priority"}),(0,Ca.jsxs)(ue,{value:s.priority,onValueChange:p=>c({...s,priority:p}),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"low",children:"\u{1F7E2} Low"}),(0,Ca.jsx)(A,{value:"medium",children:"\u{1F7E1} Medium"}),(0,Ca.jsx)(A,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-description",children:"Description"}),(0,Ca.jsx)(be,{id:"edit-description",value:s.description,onChange:p=>c({...s,description:p.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,Ca.jsx)($,{id:"edit-dueDate",type:"date",value:s.dueDate,onChange:p=>c({...s,dueDate:p.target.value}),required:!0})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,Ca.jsx)($,{id:"edit-dueTime",type:"time",value:s.dueTime,onChange:p=>c({...s,dueTime:p.target.value})})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,Ca.jsxs)(ue,{value:s.colleagueId,onValueChange:p=>c({...s,colleagueId:p}),required:!0,children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{placeholder:"Select Ca digital colleague"})}),(0,Ca.jsx)(le,{children:g.map(p=>(0,Ca.jsx)(A,{value:p.id,children:p.name},p.id))})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ca.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:s.isRecurring,onChange:p=>c({...s,isRecurring:p.target.checked}),className:"rounded border-border"}),(0,Ca.jsx)(h,{htmlFor:"edit-isRecurring",children:"Make this Ca recurring reminder"})]}),s.isRecurring&&(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,Ca.jsxs)(ue,{value:s.recurrencePattern,onValueChange:p=>c({...s,recurrencePattern:p}),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"daily",children:"Daily"}),(0,Ca.jsx)(A,{value:"weekly",children:"Weekly"}),(0,Ca.jsx)(A,{value:"monthly",children:"Monthly"}),(0,Ca.jsx)(A,{value:"yearly",children:"Yearly"})]})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,Ca.jsx)($,{id:"edit-recurrenceInterval",type:"number",min:"1",value:s.recurrenceInterval,onChange:p=>c({...s,recurrenceInterval:parseInt(p.target.value)})})]})]})]}),(0,Ca.jsxs)("div",{className:"space-y-2",children:[(0,Ca.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ca.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:s.reminderEnabled,onChange:p=>c({...s,reminderEnabled:p.target.checked}),className:"rounded border-border"}),(0,Ca.jsx)(h,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),s.reminderEnabled&&(0,Ca.jsxs)("div",{className:"pl-6",children:[(0,Ca.jsx)(h,{htmlFor:"edit-reminderMinutes",children:"Remind dt"}),(0,Ca.jsxs)(ue,{value:s.reminderMinutes.toString(),onValueChange:p=>c({...s,reminderMinutes:parseInt(p)}),children:[(0,Ca.jsx)(ne,{children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsx)(A,{value:"5",children:"5 minutes before"}),(0,Ca.jsx)(A,{value:"15",children:"15 minutes before"}),(0,Ca.jsx)(A,{value:"30",children:"30 minutes before"}),(0,Ca.jsx)(A,{value:"60",children:"1 hour before"}),(0,Ca.jsx)(A,{value:"1440",children:"1 day before"})]})]})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)(h,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,Ca.jsx)($,{id:"edit-tags",value:s.tags,onChange:p=>c({...s,tags:p.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,Ca.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,Ca.jsx)(D,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),(0,Ca.jsx)(D,{type:"submit",children:"Save Changes"})]})]})]})})},fo=({reminder:e,colleagues:t,onUpdateReminder:r,onDeleteReminder:o})=>{let[n,s]=(0,ce.useState)(!1);if(!e||!e.id)return null;let c=la(e.dueDate,e.dueTime),d=da(e.dueDate),g=po(e.dueDate),p=()=>{r(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},l=()=>d?"Today":g?"Tomorrow":c&&!e.isCompleted?"Overdue":co(e.dueDate);return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)(go,{reminder:e,colleagues:t,onUpdateReminder:r,open:n,onClose:()=>s(!1)}),(0,Ca.jsx)(Q,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${c&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,Ca.jsx)(gt,{className:"p-4",children:(0,Ca.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ca.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,Ca.jsx)("button",{onClick:p,className:"dt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,Ca.jsx)(dt.CheckCircle,{className:"h-5 w-5"}):(0,Ca.jsx)(dt.Circle,{className:"h-5 w-5"})}),(0,Ca.jsxs)("div",{className:"flex-1",children:[(0,Ca.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,Ca.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,Ca.jsx)("span",{className:"text-sm",children:lo(e.priority)}),e.isRecurring&&(0,Ca.jsx)(dt.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,Ca.jsx)(dt.Bell,{className:"h-4 w-4 text-success"})]}),(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,Ca.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,Ca.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Ca.jsx)(dt.Calendar,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{className:c&&!e.isCompleted?"text-destructive font-medium":"",children:l()})]}),e.dueTime&&(0,Ca.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Ca.jsx)(dt.Clock,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:mo(e.dueTime)})]}),(0,Ca.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Ca.jsx)(dt.User,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:e.colleague?.name||"Unknown Colleague"})]})]}),e.tags&&e.tags.length>0&&(0,Ca.jsx)("div",{className:"flex flex-wrap gap-1 dt-2",children:e.tags.map((f,P)=>(0,Ca.jsx)(W,{variant:"secondary",className:"text-xs",children:f},P))})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Ca.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>s(!0),className:"h-8 w-8 p-0",children:(0,Ca.jsx)(dt.Edit2,{className:"h-4 w-4"})}),(0,Ca.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>o(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,Ca.jsx)(dt.Trash2,{className:"h-4 w-4"})})]})]})})})]})},vo=({initialReminders:e=[],initialColleagues:t=[],onAddReminder:r,onUpdateReminder:o,onDeleteReminder:n})=>{let[s,c]=(0,ce.useState)(e.filter(Boolean)),[d]=(0,ce.useState)(t.filter(Boolean)),[g,p]=(0,ce.useState)("all"),[l,f]=(0,ce.useState)(""),[P,u]=(0,ce.useState)(!1),x=v=>{if(!v.title||!v.colleague?.id){console.error("Invalid reminder data:",v);return}let F={...v,id:Date.now().toString(),createdAt:new Date};c(Y=>[...Y,F]),r?.(v)},L=(v,F)=>{if(!v){console.error("No reminder ID provided for update");return}c(Y=>Y.map(J=>J?.id===v?{...J,...F}:J)),o?.(v,F)},y=v=>{if(!v){console.error("No reminder ID provided for deletion");return}c(F=>F.filter(Y=>Y?.id!==v)),n?.(v)},K=s.filter(v=>{if(!v)return!1;if(l){let F=l.toLowerCase();if(!(v.title.toLowerCase().includes(F)||v.description.toLowerCase().includes(F)||v.colleague?.name?.toLowerCase().includes(F)||v.tags?.some(J=>J.toLowerCase().includes(F))))return!1}switch(g){case"pending":return!v.isCompleted;case"completed":return v.isCompleted;case"overdue":return!v.isCompleted&&la(v.dueDate,v.dueTime);case"today":return da(new Date(v.dueDate));default:return!0}}).sort((v,F)=>{if(!v||!F)return 0;if(v.isCompleted&&!F.isCompleted)return 1;if(!v.isCompleted&&F.isCompleted)return-1;let Y={high:3,medium:2,low:1},J=Y[F.priority]-Y[v.priority];return J!==0?J:v.dueDate.getTime()-F.dueDate.getTime()}),j={total:s.filter(Boolean).length,pending:s.filter(v=>v&&!v.isCompleted).length,completed:s.filter(v=>v&&v.isCompleted).length,overdue:s.filter(v=>v&&!v.isCompleted&&la(v.dueDate,v.dueTime)).length,today:s.filter(v=>v&&da(new Date(v.dueDate))).length},ae=d.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,Ca.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Ca.jsx)(Ze,{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:()=>{u(!0)}}}),(0,Ca.jsxs)("div",{className:"h-full bg-background",children:[(0,Ca.jsx)(uo,{colleagues:d,onAddReminder:x,open:P,setOpen:u}),(0,Ca.jsxs)("div",{className:"p-6",children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,Ca.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,Ca.jsxs)(D,{className:"flex items-center space-x-2",onClick:()=>u(!0),children:[(0,Ca.jsx)(dt.Plus,{className:"h-4 w-4"}),(0,Ca.jsx)("span",{children:"Add Reminder"})]})]}),(0,Ca.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,Ca.jsxs)(Q,{className:"p-4",children:[(0,Ca.jsx)("div",{className:"text-2xl font-bold text-foreground",children:j.total}),(0,Ca.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,Ca.jsxs)(Q,{className:"p-4",children:[(0,Ca.jsx)("div",{className:"text-2xl font-bold text-primary",children:j.pending}),(0,Ca.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,Ca.jsxs)(Q,{className:"p-4",children:[(0,Ca.jsx)("div",{className:"text-2xl font-bold text-success",children:j.completed}),(0,Ca.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,Ca.jsxs)(Q,{className:"p-4",children:[(0,Ca.jsx)("div",{className:"text-2xl font-bold text-destructive",children:j.overdue}),(0,Ca.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,Ca.jsxs)(Q,{className:"p-4",children:[(0,Ca.jsx)("div",{className:"text-2xl font-bold text-warning",children:j.today}),(0,Ca.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,Ca.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,Ca.jsx)("div",{className:"flex-1",children:(0,Ca.jsx)($,{placeholder:"Search reminders...",value:l,onChange:v=>f(v.target.value),className:"max-w-md"})}),(0,Ca.jsxs)(ue,{value:g,onValueChange:v=>p(v),children:[(0,Ca.jsx)(ne,{className:"w-40",children:(0,Ca.jsx)(Ce,{})}),(0,Ca.jsxs)(le,{children:[(0,Ca.jsxs)(A,{value:"all",children:["All (",j.total,")"]}),(0,Ca.jsxs)(A,{value:"pending",children:["Pending (",j.pending,")"]}),(0,Ca.jsxs)(A,{value:"completed",children:["Completed (",j.completed,")"]}),(0,Ca.jsxs)(A,{value:"overdue",children:["Overdue (",j.overdue,")"]}),(0,Ca.jsxs)(A,{value:"today",children:["Today (",j.today,")"]})]})]})]}),(0,Ca.jsx)("div",{className:"space-y-4",children:K.length===0?(0,Ca.jsxs)(Q,{className:"p-8 text-center",children:[(0,Ca.jsx)("div",{className:"text-muted-foreground",children:l||g!=="all"?"No reminders match your filters":"No reminders yet"}),!l&&g==="all"&&(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground/60 dt-2",children:"Create your first reminder to get started"})]}):K.map(v=>v&&(0,Ca.jsx)(fo,{reminder:v,colleagues:d,onUpdateReminder:L,onDeleteReminder:y},v.id))})]})]})]})};var bo=({tasks:e,epics:t,sprints:r,onUpdateTask:o,onTaskClick:n,onAddTaskToEpic:s,onAddEpic:c,onUpdateEpic:d,onDeleteEpic:g})=>{let[p,l]=(0,ce.useState)(null),[f,P]=(0,ce.useState)(null),[u,x]=(0,ce.useState)({}),[L,y]=(0,ce.useState)(0),H=(0,ce.useRef)(null),K=(0,ce.useRef)(null);(0,ce.useEffect)(()=>{let w=()=>{if(H.current){let ve=H.current.offsetHeight;y(ve)}};w();let _=new ResizeObserver(w);H.current&&_.observe(H.current);let Re=()=>{setTimeout(w,100)};return window.addEventListener("storage",Re),()=>{_.disconnect(),window.removeEventListener("storage",Re)}},[]),(0,ce.useEffect)(()=>{let w=setTimeout(()=>{H.current&&y(H.current.offsetHeight)},300);return()=>clearTimeout(w)},[f]);let j=w=>{l(w)},ae=w=>{w.preventDefault()},v=(w,_)=>{w.preventDefault(),p&&p.epicId!==_&&(o(p.id,{epicId:_}),l(null))},F=w=>e.filter(_=>_.epicId===w),Y=w=>{P(w.id),x({name:w.name,description:w.description,confidence:w.confidence,phase:w.phase,progress:w.progress})},J=()=>{f&&u.name&&(d(f,u),P(null),x({}))},Se=()=>{P(null),x({})},U=w=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&g(w)},xe=w=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[w]||`Phase ${w}`,E=w=>{switch(w){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,Ca.jsxs)("div",{ref:K,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,Ca.jsx)("div",{ref:H,className:"flex-shrink-0",children:(0,Ca.jsx)(Ze,{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:c}})}),(0,Ca.jsx)("div",{className:"flex-1 min-h-0 dt-8",children:(0,Ca.jsx)("div",{className:"h-full overflow-y-auto",style:{height:L>0?`calc(100vh - ${L+120}px)`:"calc(100vh - 12rem)"},children:(0,Ca.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:t.map(w=>{let _=F(w.id),Re=_.reduce((q,Ee)=>q+Ee.points,0),ve=L>0?`calc(100vh - ${L+200}px)`:"calc(100vh - 14rem)";return(0,Ca.jsxs)(Q,{className:`flex flex-col ${f===w.id?"h-auto":""} bg-card shadow-sm`,style:{height:f===w.id?"auto":ve,minHeight:"400px"},onDragOver:ae,onDrop:q=>v(q,w.id),children:[(0,Ca.jsx)("div",{className:"p-4 border-Ca border-border",children:f===w.id?(0,Ca.jsxs)("div",{className:"space-y-4",children:[(0,Ca.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ca.jsx)($,{value:u.name||"",onChange:q=>x({...u,name:q.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,Ca.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:J,className:"p-1 h-8 w-8",children:(0,Ca.jsx)(dt.Check,{className:"h-4 w-4"})}),(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:Se,className:"p-1 h-8 w-8",children:(0,Ca.jsx)(dt.X,{className:"h-4 w-4"})})]})]}),(0,Ca.jsx)(be,{value:u.description||"",onChange:q=>x({...u,description:q.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,Ca.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,Ca.jsxs)("select",{value:u.confidence||w.confidence,onChange:q=>x({...u,confidence:q.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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",children:[(0,Ca.jsx)("option",{value:"low",children:"Low"}),(0,Ca.jsx)("option",{value:"medium",children:"Medium"}),(0,Ca.jsx)("option",{value:"high",children:"High"})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,Ca.jsx)("select",{value:u.phase?.toString()||w.phase.toString(),onChange:q=>x({...u,phase:parseInt(q.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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",children:[1,2,3,4,5,6,7,8,9].map(q=>(0,Ca.jsxs)("option",{value:q.toString(),children:["Phase ",q]},q))})]})]}),(0,Ca.jsxs)("div",{children:[(0,Ca.jsx)("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),(0,Ca.jsx)($,{type:"number",min:"0",max:"100",value:u.progress||w.progress,onChange:q=>x({...u,progress:parseInt(q.target.value)||0}),className:"text-xs"})]})]}):(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ca.jsx)("div",{className:`w-4 h-4 rounded-full ${w.color}`}),(0,Ca.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:w.name}),(0,Ca.jsxs)("div",{className:"flex gap-1",children:[(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>Y(w),className:"p-1 h-8 w-8",children:(0,Ca.jsx)(dt.Edit2,{className:"h-3 w-3"})}),(0,Ca.jsx)(D,{size:"sm",variant:"ghost",onClick:()=>U(w.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,Ca.jsx)(dt.Trash2,{className:"h-3 w-3"})})]})]}),(0,Ca.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,Ca.jsxs)(W,{className:`text-xs ${E(w.confidence)}`,children:[w.confidence," confidence"]}),(0,Ca.jsxs)(W,{variant:"outline",className:"text-xs",children:["Phase ",w.phase]}),(0,Ca.jsxs)(W,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[_.length," tasks"]}),(0,Ca.jsxs)(W,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[Re," pts"]})]}),w.description&&(0,Ca.jsx)("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:w.description}),(0,Ca.jsxs)("div",{className:"mb-3",children:[(0,Ca.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[(0,Ca.jsx)("span",{className:"select-none",children:"Progress"}),(0,Ca.jsxs)("span",{className:"select-none",children:[w.progress,"%"]})]}),(0,Ca.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,Ca.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${w.progress}%`}})})]}),(0,Ca.jsxs)(D,{onClick:()=>s(w.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,Ca.jsx)(dt.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,Ca.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,Ca.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:_.length===0?(0,Ca.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,Ca.jsx)(dt.Move,{className:"h-8 w-8 mb-2"}),(0,Ca.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):_.map(q=>(0,Ca.jsx)(St,{task:q,epic:w,onDragStart:j,onTaskClick:n,isCompact:!0},q.id))})})]},w.id)})})})})]})};0&&(module.exports={DCProjectCard,EpicsView,KanbanBoardView,PlanningView,TasksView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-2RGAV55J.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DCProjectCard};
|
|
1
|
+
import{a as e}from"../../chunk-ZMB6R6JX.mjs";import{a as d}from"../../chunk-6TUNKKV7.mjs";import{a}from"../../chunk-2RGAV55J.mjs";import"../../chunk-6DEY5ZDD.mjs";import{a as c}from"../../chunk-WDI7JGA6.mjs";import{a as b}from"../../chunk-NO3FZ27F.mjs";import"../../chunk-JXIKSSGH.mjs";import"../../chunk-NKDFAFWH.mjs";import"../../chunk-MBPTBEOX.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-4A3MGS6I.mjs";import"../../chunk-KW6L6KBY.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-QBUU2AQL.mjs";import"../../chunk-DSSHQ6K7.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DCProjectCard,c as EpicsView,b as KanbanBoardView,d as PlanningView,e as TasksView};
|