cortex-react-components 2.12.4 → 2.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{chunk-RGOKBIQ5.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-GTZJWMZR.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  3. package/dist/{chunk-75F3LJMX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  4. package/dist/{chunk-EM3T2XYC.mjs → chunk-5WVFEIMC.mjs} +1 -1
  5. package/dist/{chunk-RJGYVDOU.mjs → chunk-67QPOSVV.mjs} +1 -1
  6. package/dist/{chunk-CXOVEABI.mjs → chunk-7GMAMIHM.mjs} +1 -1
  7. package/dist/{chunk-OSXK6NGG.mjs → chunk-EMY52VZA.mjs} +1 -1
  8. package/dist/{chunk-WIRQ5IRT.mjs → chunk-ERJXTG6X.mjs} +1 -1
  9. package/dist/{chunk-3NRXQBBS.mjs → chunk-FKU4VQR6.mjs} +1 -1
  10. package/dist/{chunk-M4UVNIK2.mjs → chunk-FTZRG54P.mjs} +1 -1
  11. package/dist/{chunk-GHOL5L32.mjs → chunk-H3CJOE6S.mjs} +1 -1
  12. package/dist/{chunk-NINFDOV5.mjs → chunk-HKGW6JI2.mjs} +1 -1
  13. package/dist/{chunk-FE7ZGUPU.mjs → chunk-IF3425JX.mjs} +1 -1
  14. package/dist/{chunk-ZEALRBXW.mjs → chunk-LBUC4M6L.mjs} +1 -1
  15. package/dist/{chunk-KWYJ3XZI.mjs → chunk-LJOWXPWW.mjs} +1 -1
  16. package/dist/{chunk-AJQHGVZ5.mjs → chunk-LJQPLE4S.mjs} +1 -1
  17. package/dist/{chunk-3HNU2NYP.mjs → chunk-M7NV6EFH.mjs} +1 -1
  18. package/dist/{chunk-7R47MHQE.mjs → chunk-MXCW6SOT.mjs} +1 -1
  19. package/dist/{chunk-2BRDNDUB.mjs → chunk-N3B3XNV3.mjs} +1 -1
  20. package/dist/chunk-O6GWOXTH.mjs +1 -0
  21. package/dist/{chunk-5MWZTJYP.mjs → chunk-PK3OBSCB.mjs} +1 -1
  22. package/dist/{chunk-IPIDKLAW.mjs → chunk-RNMPX2AU.mjs} +1 -1
  23. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  24. package/dist/{chunk-6MSM3CZ6.mjs → chunk-TL2RQFU5.mjs} +1 -1
  25. package/dist/{chunk-KGKGZ4H2.mjs → chunk-W2JTSWVJ.mjs} +1 -1
  26. package/dist/{chunk-C4RWEPVF.mjs → chunk-YKG4FNS4.mjs} +1 -1
  27. package/dist/components/Blocks/Banner.mjs +1 -1
  28. package/dist/components/Blocks/CallToAction.mjs +1 -1
  29. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  30. package/dist/components/Blocks/Content.mjs +1 -1
  31. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  32. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  33. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  34. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  35. package/dist/components/Blocks/index.mjs +1 -1
  36. package/dist/components/Cards/ContentCard.mjs +1 -1
  37. package/dist/components/Cards/FeatureCard.mjs +1 -1
  38. package/dist/components/Cards/index.mjs +1 -1
  39. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  40. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  41. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  42. package/dist/components/DigitalColleagues/index.js +1 -1
  43. package/dist/components/DigitalColleagues/index.mjs +1 -1
  44. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  45. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  46. package/dist/components/HeaderFooter/index.mjs +1 -1
  47. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  48. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  49. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  50. package/dist/components/Heros/RenderHero.mjs +1 -1
  51. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  52. package/dist/components/Heros/index.mjs +1 -1
  53. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  54. package/dist/components/Layouts/Print.mjs +1 -1
  55. package/dist/components/Layouts/SlideShow.mjs +1 -1
  56. package/dist/components/Layouts/index.mjs +1 -1
  57. package/dist/components/Other/index.mjs +1 -1
  58. package/dist/components/Payload/RichText/index.mjs +1 -1
  59. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  60. package/dist/components/Payload/index.mjs +1 -1
  61. package/dist/components/Projects/PlanningView.js +1 -1
  62. package/dist/components/Projects/PlanningView.mjs +1 -1
  63. package/dist/components/Projects/ProjectPage.js +1 -1
  64. package/dist/components/Projects/ProjectPage.mjs +1 -1
  65. package/dist/components/Projects/ProjectView.js +1 -1
  66. package/dist/components/Projects/ProjectView.mjs +1 -1
  67. package/dist/components/index.js +1 -1
  68. package/dist/components/index.mjs +1 -1
  69. package/dist/globals.css +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/index.mjs +1 -1
  72. package/dist/metafile-cjs.json +1 -1
  73. package/dist/metafile-esm.json +1 -1
  74. package/dist/pages/Blog.mjs +1 -1
  75. package/dist/pages/Documentation.mjs +1 -1
  76. package/dist/pages/IndexPage.mjs +1 -1
  77. package/dist/pages/Intranet.mjs +1 -1
  78. package/dist/pages/LandingPage.mjs +1 -1
  79. package/dist/pages/Page.mjs +1 -1
  80. package/dist/pages/Publish.mjs +1 -1
  81. package/dist/pages/Website.mjs +1 -1
  82. package/dist/sections/AboutSection.mjs +1 -1
  83. package/dist/sections/BlogDetail.mjs +1 -1
  84. package/dist/sections/BlogList.mjs +1 -1
  85. package/dist/sections/BlogListSection.mjs +1 -1
  86. package/dist/sections/ContactSection.mjs +1 -1
  87. package/dist/sections/PageSections.mjs +1 -1
  88. package/dist/sections/PricingSection.mjs +1 -1
  89. package/dist/sections/ServiceDetail.mjs +1 -1
  90. package/dist/sections/ServiceDetailSection.mjs +1 -1
  91. package/dist/sections/ServiceSection.mjs +1 -1
  92. package/dist/sections/form/index.mjs +1 -1
  93. package/dist/sections/index.mjs +1 -1
  94. package/package.json +1 -1
  95. package/dist/chunk-ZMSNHKKT.mjs +0 -1
  96. package/dist/components/Projects/PlanningView_broken_backup.css +0 -1
  97. package/dist/components/Projects/PlanningView_broken_backup.d.ts +0 -14
  98. package/dist/components/Projects/PlanningView_broken_backup.js +0 -5
  99. package/dist/components/Projects/PlanningView_broken_backup.mjs +0 -1
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";var Lt=Object.create;var Ne=Object.defineProperty;var Bt=Object.getOwnPropertyDescriptor;var It=Object.getOwnPropertyNames;var Ht=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty;var Vt=(e,r)=>{for(var o in r)Ne(e,o,{get:r[o],enumerable:!0})},Xe=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of It(r))!Ot.call(e,n)&&n!==o&&Ne(e,n,{get:()=>r[n],enumerable:!(s=Bt(r,n))||s.enumerable});return e};var G=(e,r,o)=>(o=e!=null?Lt(Ht(e)):{},Xe(r||!e||!e.__esModule?Ne(o,"default",{value:e,enumerable:!0}):o,e)),_t=e=>Xe(Ne({},"__esModule",{value:!0}),e);var Tr={};Vt(Tr,{PlanningView:()=>Rr});module.exports=_t(Tr);var z=require("react");var Y=G(require("react"));var at=require("clsx");var ze="-",Gt=e=>{let r=jt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{let l=c.split(ze);return l[0]===""&&l.length!==1&&l.shift(),Qe(l,r)||Ft(c)},getConflictingClassGroupIds:(c,l)=>{let m=o[c]||[];return l&&s[c]?[...m,...s[c]]:m}}},Qe=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],s=r.nextPart.get(o),n=s?Qe(e.slice(1),s):void 0;if(n)return n;if(r.validators.length===0)return;let i=e.join(ze);return r.validators.find(({validator:c})=>c(i))?.classGroupId},Ke=/^\[(.+)\]$/,Ft=e=>{if(Ke.test(e)){let r=Ke.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},jt=e=>{let{theme:r,prefix:o}=e,s={nextPart:new Map,validators:[]};return Wt(Object.entries(e.classGroups),o).forEach(([i,c])=>{Ae(c,s,i,r)}),s},Ae=(e,r,o,s)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?r:Ze(r,n);i.classGroupId=o;return}if(typeof n=="function"){if($te(n)){Ae(n(s),r,o,s);return}r.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,c])=>{Ae(c,Ze(r,i),o,s)})})},Ze=(e,r)=>{let o=e;return r.split(ze).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},$te=e=>e.isThemeGetter,Wt=(e,r)=>r?e.map(([o,s])=>{let n=s.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,l])=>[r+c,l])):i);return[o,n]}):e,Ut=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,s=new Map,n=(i,c)=>{o.set(i,c),r++,r>e&&(r=0,s=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=s.get(i))!==void 0)return n(i,c),c},set(i,c){o.has(i)?o.set(i,c):n(i,c)}}},Ye="!",qt=e=>{let{separator:r,experimentalParseClassName:o}=e,s=r.length===1,n=r[0],i=r.length,c=l=>{let m=[],k=0,y=0,L;for(let w=0;w<l.length;w++){let D=l[w];if(k===0){if(D===n&&(s||l.slice(w,w+i)===r)){m.push(l.slice(y,w)),y=w+i;continue}if(D==="/"){L=w;continue}}D==="["?k++:D==="]"&&k--}let R=m.length===0?l:l.substring(y),H=R.startsWith(Ye),O=H?R.substring(1):R,C=L&&L>y?L-y:void 0;return{modifiers:m,hasImportantModifier:H,baseClassName:O,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:c}):c},Jt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(s=>{s[0]==="["?(r.push(...o.sort(),s),o=[]):o.push(s)}),r.push(...o.sort()),r},Xt=e=>({cache:Ut(e.cacheSize),parseClassName:qt(e),...Gt(e)}),Kt=/\s+/,Zt=(e,r)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:n}=r,i=[],c=e.trim().split(Kt),l="";for(let m=c.length-1;m>=0;m-=1){let k=c[m],{modifiers:y,hasImportantModifier:L,baseClassName:R,maybePostfixModifierPosition:H}=o(k),O=!!H,C=s(O?R.substring(0,H):R);if(!C){if(!O){l=k+(l.length>0?" "+l:l);continue}if(C=s(R),!C){l=k+(l.length>0?" "+l:l);continue}O=!1}let w=Jt(y).join(":"),D=L?w+Ye:w,T=D+C;if(i.includes(T))continue;i.push(T);let j=n(C,O);for(let E=0;E<j.length;++E){let $=j[E];i.push(D+$)}l=k+(l.length>0?" "+l:l)}return l};function Qt(){let e=0,r,o,s="";for(;e<arguments.length;)(r=arguments[e++])&&(o=et(r))&&(s&&(s+=" "),s+=o);return s}var et=e=>{if(typeof e=="string")return e;let r,o="";for(let s=0;s<e.length;s++)e[s]&&(r=et(e[s]))&&(o&&(o+=" "),o+=r);return o};function Yt(e,...r){let o,s,n,i=c;function c(m){let k=r.reduce((y,L)=>L(y),e());return o=Xt(k),s=o.cache.get,n=o.cache.set,i=l,l(m)}function l(m){let k=s(m);if(k)return k;let y=Zt(m,o);return n(m,y),y}return function(){return i(Qt.apply(null,arguments))}}var x=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,er=/^\d+\/\d+$/,tr=new Set(["px","full","screen"]),rr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|te|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ar=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ie(e)||tr.has(e)||er.test(e),X=e=>le(e,"length",fr),ie=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>le(e,"number",ie),ue=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&ie(e.slice(0,-1)),p=e=>tt.test(e),K=e=>rr.test(e),lr=new Set(["length","size","percentage"]),dr=e=>le(e,lr,rt),cr=e=>le(e,"position",rt),mr=new Set(["image","url"]),pr=e=>le(e,mr,br),ur=e=>le(e,"",gr),fe=()=>!0,le=(e,r,o)=>{let s=tt.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):o(s[2]):!1},fr=e=>or.test(e)&&!ar.test(e),rt=()=>!1,gr=e=>sr.test(e),br=e=>nr.test(e);var vr=()=>{let e=x("colors"),r=x("spacing"),o=x("blur"),s=x("brightness"),n=x("borderColor"),i=x("borderRadius"),c=x("borderSpacing"),l=x("borderWidth"),m=x("contrast"),k=x("grayscale"),y=x("hueRotate"),L=x("invert"),R=x("gap"),H=x("gradientColorStops"),O=x("gradientColorStopPositions"),C=x("inset"),w=x("margin"),D=x("opacity"),T=x("padding"),j=x("saturate"),E=x("scale"),$=x("sepia"),oe=x("skew"),de=x("space"),Z=x("translate"),Q=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",p,r],v=()=>[p,r],he=()=>["",W,X],q=()=>["auto",ie,p],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",p],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ie,p];return{cacheSize:500,separator:":",theme:{colors:[fe],spacing:[W,X],blur:["none","",K,p],brightness:V(),borderColor:[e],borderRadius:["none","","full",K,p],borderSpacing:v(),borderWidth:he(),contrast:V(),grayscale:J(),hueRotate:V(),invert:J(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[ir,X],inset:ce(),margin:ce(),opacity:V(),padding:v(),saturate:V(),scale:V(),sepia:J(),skew:V(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[K]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...xe(),p]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ue,p]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",ue,p]}],"grid-cols":[{"grid-cols":[fe]}],"col-start-end":[{col:["auto",{span:["full",ue,p]},p]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[fe]}],"row-start-end":[{row:["auto",{span:[ue,p]},p]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],te:[{te:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[K]},K]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",K,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Te]}],"font-family":[{font:[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",ie,Te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,X]}],"underline-offset":[{"underline-offset":["auto",W,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-to":["te","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[H]}],"gradient-via":[{via:[H]}],"gradient-to":[{to:[H]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-te":[{"rounded-te":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-te":[{"border-te":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:ae()}],"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-te":[{"border-te":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[W,p]}],"outline-w":[{outline:[W,X]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[W,X]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,ur]}],"shadow-color":[{shadow:[fe]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",K,p]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[L]}],saturate:[{saturate:[j]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[L]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ue,p]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-te":[{"scroll-te":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[W,X,Te]}],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","te","pr","pb","pl"],px:["pr","pl"],py:["te","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-te","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-te":["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-te","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-te","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-te","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-te","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-te","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-te","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ot=Yt(vr);function f(...e){return ot((0,at.clsx)(e))}var te=require("react/jsx-runtime"),ee=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...r}));ee.displayName="Card";var hr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...r}));hr.displayName="CardHeader";var xr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...r}));xr.displayName="CardTitle";var yr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...r}));yr.displayName="CardDescription";var wr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("p-6 te-0",e),...r}));wr.displayName="CardContent";var Nr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("flex items-center p-6 te-0",e),...r}));Nr.displayName="CardFooter";var st=require("class-variance-authority");var Cr=(0,st.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 U({className:e,variant:r,...o}){return(0,te.jsx)("div",{className:f(Cr({variant:r}),e),...o})}var it=require("@radix-ui/react-slot"),dt=G(require("react")),Ce=(0,st.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"}}}),N=dt.forwardRef(({asChild:e=!1,className:r,size:o,variant:s,...n},i)=>(0,te.jsx)(e?it.Slot:"button",{className:f(Ce({className:r,size:o,variant:s})),ref:i,...n}));N.displayName="Button";var mt=G(require("react"));var ge=mt.forwardRef(({className:e,type:r,...o},s)=>(0,te.jsx)("input",{type:r,className:f("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:s,...o}));ge.displayName="Input";var ut=G(require("react")),be=ut.forwardRef(({className:e,...r},o)=>(0,te.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));be.displayName="Textarea";var g=require("lucide-react");var ve=G(require("react")),P=G(require("@radix-ui/react-dialog"));var bt=P.Root;var kr=P.Portal;var vt=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));vt.displayName=P.Overlay.displayName;var Ee=ve.forwardRef(({className:e,children:r,...o},s)=>(0,te.jsxs)(kr,{children:[(0,te.jsx)(vt,{}),(0,te.jsxs)(P.Content,{ref:s,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[r,(0,te.jsxs)(P.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,te.jsx)(g.X,{className:"h-4 w-4"}),(0,te.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ee.displayName=P.Content.displayName;var Me=({className:e,...r})=>(0,te.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});Me.displayName="DialogHeader";var Dr=({className:e,...r})=>(0,te.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});Dr.displayName="DialogFooter";var Le=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...r}));Le.displayName=P.Title.displayName;var Pr=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...r}));Pr.displayName=P.Description.displayName;var ht=G(require("react")),Be=G(require("@radix-ui/react-label"));var Sr=(0,st.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),re=ht.forwardRef(({className:e,...r},o)=>(0,te.jsx)(Be.Root,{ref:o,className:f(Sr(),e),...r}));re.displayName=Be.Root.displayName;var wt=require("react-day-picker");function ke({className:e,classNames:r,showOutsideDays:o=!0,...s}){return(0,te.jsx)(wt.DayPicker,{showOutsideDays:o,weekStartsOn:1,className:f("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 te-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:f(Ce({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 mt-2",cell:f("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",s.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:f(Ce({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",...r},...s})}ke.displayName="Calendar";var Ct=G(require("react")),F=G(require("@radix-ui/react-popover"));var He=F.Root,Oe=F.Trigger;var De=Ct.forwardRef(({className:e,align:r="center",sideOffset:o=4,...s},n)=>(0,te.jsx)(F.Portal,{children:(0,te.jsx)(F.Content,{ref:n,align:r,sideOffset:o,className:f("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));De.displayName=F.Content.displayName;var _e=require("date-fns");var Dt=({isOpen:e,onClose:r,onAddSprint:o})=>{let[s,n]=(0,z.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),i=l=>{l.preventDefault(),!(!s.name||!s.startDate||!s.endDate)&&(o({name:s.name,description:s.description,startDate:s.startDate,endDate:s.endDate,isActive:s.isActive,isSelected:!1}),n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),r())},c=()=>{n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),r()};return(0,te.jsx)(bt,{open:e,onOpenChange:c,children:(0,te.jsxs)(Ee,{className:"sm:max-w-md",children:[(0,te.jsx)(Me,{children:(0,te.jsx)(Le,{children:"Add New Sprint"})}),(0,te.jsxs)("form",{onSubmit:i,className:"space-y-4",children:[(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{htmlFor:"name",children:"Sprint Name *"}),(0,te.jsx)(ge,{id:"name",value:s.name,onChange:l=>n(m=>({...m,name:l.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{htmlFor:"description",children:"Description"}),(0,te.jsx)(be,{id:"description",value:s.description,onChange:l=>n(m=>({...m,description:l.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,te.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{children:"Start Date *"}),(0,te.jsxs)(He,{children:[(0,te.jsx)(Oe,{asChild:!0,children:(0,te.jsxs)(N,{variant:"outline",className:f("w-full justify-start text-left font-normal",!s.startDate&&"text-muted-foreground"),children:[(0,te.jsx)(g.CalendarIcon,{className:"mr-2 h-4 w-4"}),s.startDate?(0,_e.format)(s.startDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(De,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(ke,{mode:"single",selected:s.startDate,onSelect:l=>n(m=>({...m,startDate:l})),initialFocus:!0})})]})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{children:"End Date *"}),(0,te.jsxs)(He,{children:[(0,te.jsx)(Oe,{asChild:!0,children:(0,te.jsxs)(N,{variant:"outline",className:f("w-full justify-start text-left font-normal",!s.endDate&&"text-muted-foreground"),children:[(0,te.jsx)(g.CalendarIcon,{className:"mr-2 h-4 w-4"}),s.endDate?(0,_e.format)(s.endDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(De,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(ke,{mode:"single",selected:s.endDate,onSelect:l=>n(m=>({...m,endDate:l})),initialFocus:!0,disabled:l=>s.startDate?l<s.startDate:!1})})]})]})]}),(0,te.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,te.jsx)("input",{type:"checkbox",id:"isActive",checked:s.isActive,onChange:l=>n(m=>({...m,isActive:l.target.checked})),className:"rounded border-gray-300"}),(0,te.jsx)(re,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,te.jsxs)("div",{className:"flex justify-end gap-3 te-4",children:[(0,te.jsx)(N,{type:"button",variant:"outline",onClick:c,children:"Cancel"}),(0,te.jsx)(N,{type:"submit",disabled:!s.name||!s.startDate||!s.endDate,children:"Add Sprint"})]})]})]})})};var St=require("motion/react");function Pt(e,r){let[o,s]=(0,z.useState)(()=>{if(typeof window>"te")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),n=i=>{try{s(i),typeof window<"te"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,z.useEffect)(()=>{n(o)},[]),[o,n]}var Se=require("react-icons/fa");function Rt({title:e,description:r,badge:o,primaryAction:s,secondaryAction:n,gradient:i,children:c,className:l}){let[m,k]=Pt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!r),y=!n&&!r||m;return(0,te.jsxs)(St.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,te.jsx)(U,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,te.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[y&&s&&(0,te.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:s.onClick,children:s.label}),(n||r)&&(0,te.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>k(!m),style:{lineHeight:0},children:m?(0,te.jsx)(Se.FaChevronDown,{size:22}):(0,te.jsx)(Se.FaChevronUp,{size:22})})]})]}),!y&&(0,te.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,te.jsxs)("div",{className:"space-y-4",children:[(0,te.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,te.jsxs)("div",{className:"flex flex-wrap gap-3",children:[s&&(0,te.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:s.onClick,children:s.label}),n&&(0,te.jsx)(N,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),c&&(0,te.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var Rr=({tasks:e,epics:r,sprints:o,onUpdateTask:s,onTaskClick:n,onAddSprint:i,onUpdateSprint:c,onDeleteSprint:l})=>{let[m,k]=(0,z.useState)([]),[y,L]=(0,z.useState)(new Set),[R,H]=(0,z.useState)(null),[O,C]=(0,z.useState)(!1),[w,D]=(0,z.useState)(null),[T,j]=(0,z.useState)(null),[E,$]=(0,z.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[oe,de]=(0,z.useState)("upcoming"),[Z,Q]=(0,z.useState)(!1),[_,ce]=(0,z.useState)(0),v=(0,z.useRef)(null),he=(0,z.useRef)(null);(0,z.useEffect)(()=>{let a=()=>{v.current&&ce(v.current.offsetHeight)};a();let d=new ResizeObserver(a);return v.current&&d.observe(v.current),()=>d.disconnect()},[]);let q=a=>r.find(d=>d.id===a),xe=a=>o.find(d=>d.id===a),ae=a=>{let d={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 d[a]||d.medium},ye=a=>{let d=a.trim().split(" ");if(d.length===1)return d[0];let b=d[0],h=d[d.length-1][0].toUpperCase();return`${b} ${h}.`},se=a=>{let d={},b=[];return a.forEach(h=>{h.epicId?(d[h.epicId]||(d[h.epicId]=[]),d[h.epicId].push(h)):b.push(h)}),{tasksByEpic:d,unassignedTasks:b}},J=o.filter(a=>a.id!=="backlog"&&a.id!=="all-tasks"),me=J.filter(a=>{switch(oe){case"active":return a.isActive;case"upcoming":return!a.isActive;default:return!0}}),V=J.filter(a=>m.includes(a.id)),ne=e.filter(a=>!a.sprintId||a.sprintId==="backlog"||a.sprintId==="Backlog"),Tt=ne.reduce((a,d)=>a+(d.points||0),0),Ge=a=>{k(d=>d.includes(a)?d.filter(b=>b!==a):d.length<3?[...d,a]:d)},we=a=>{L(d=>{let b=new Set(d);return b.has(a)?b.delete(a):b.add(a),b})},At=a=>{i(a),C(!1)},Fe=a=>{j(a.id),$({name:a.name,description:a.description||"",startDate:a.startDate instanceof Date?a.startDate.toISOString().split("T")[0]:a.startDate,endDate:a.endDate instanceof Date?a.endDate.toISOString().split("T")[0]:a.endDate,isActive:a.isActive})},zt=()=>{T&&(c(T,{name:E.name,description:E.description,startDate:new Date(E.startDate),endDate:new Date(E.endDate),isActive:E.isActive}),j(null))},Et=()=>{j(null),$({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Mt=(a,d)=>{H(d),a.dataTransfer.effectAllowed="move"},je=a=>{a.preventDefault(),a.dataTransfer.dropEffect="move"},$e=a=>{D(a)},We=()=>{D(null)},Ue=(a,d)=>{if(a.preventDefault(),D(null),!R)return;let b=R.sprintId||void 0,h=d==="backlog"?void 0:d;b!==h&&s(R.id,{sprintId:h}),H(null)},pe=({task:a,showSprint:d=!1})=>{let b=a.epicId?q(a.epicId):null,h=a.sprintId?xe(a.sprintId):null;return(0,te.jsx)(ee,{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:B=>{B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",a.id),Mt(B,a)},onClick:B=>{R===null&&n(a)},style:{userSelect:"none"},children:(0,te.jsxs)("div",{className:"space-y-2 pointer-events-none",children:[(0,te.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,te.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:a.name}),(0,te.jsx)(U,{className:`text-xs ${ae(a.priority)}`,children:a.priority[0].toUpperCase()})]}),(0,te.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,te.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,te.jsx)("div",{className:`w-2 h-2 rounded-full ${b.color}`}),(0,te.jsx)("span",{className:"text-muted-foreground truncate",children:b?.name})]}),(0,te.jsx)("span",{className:"text-muted-foreground",children:ye(a.assignee)})]}),d&&h&&(0,te.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,te.jsx)(g.Calendar,{className:"h-3 w-3"}),(0,te.jsx)("span",{children:h.name})]})]})})};return(0,te.jsxs)("div",{ref:he,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,te.jsx)("div",{ref:v,className:"flex-shrink-0",children:(0,te.jsx)(Rt,{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:()=>C(!0)}})}),(0,te.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,te.jsxs)("div",{className:"h-full",style:{height:_>0?`calc(100vh - ${_+120}px)`:"calc(100vh - 12rem)"},children:[(0,te.jsxs)("div",{className:"mb-4",children:[(0,te.jsx)(ee,{className:"p-3 bg-card shadow-sm",children:(0,te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,te.jsx)("div",{children:(0,te.jsx)("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"})}),m.length>0&&(0,te.jsx)("div",{className:"flex items-center gap-2",children:(0,te.jsx)("div",{className:"flex flex-wrap gap-1",children:V.map(a=>(0,te.jsxs)("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[(0,te.jsx)("span",{className:"max-w-[80px] truncate",children:a.name}),a.isActive&&(0,te.jsx)("span",{className:"text-success text-[10px]",children:"\u25CF"}),(0,te.jsx)("button",{onClick:()=>Ge(a.id),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:(0,te.jsx)(g.X,{className:"h-4 w-4"})})]},a.id))})})]}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(N,{onClick:()=>C(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[(0,te.jsx)(g.Plus,{className:"h-3 w-3"}),"Add"]}),(0,te.jsxs)(N,{onClick:()=>Q(!Z),variant:"outline",size:"sm",className:"gap-1",children:[(0,te.jsx)(g.Calendar,{className:"h-3 w-3"}),Z?"Close":"Select"]})]})]})}),Z&&(0,te.jsx)("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>Q(!1)}),(0,te.jsx)("div",{className:`fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl z-10 transition-all duration-300 ease-in-out ${Z?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:(0,te.jsxs)(ee,{className:"h-full rounded-none border-0 flex flex-col",children:[(0,te.jsxs)("div",{className:"p-4 border-b bg-muted/30 flex-shrink-0",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),(0,te.jsx)(N,{variant:"ghost",size:"sm",onClick:()=>Q(!1),className:"h-8 w-8 p-0",children:(0,te.jsx)(g.X,{className:"h-4 w-4"})})]}),(0,te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),(0,te.jsxs)("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[(0,te.jsx)("div",{className:"flex gap-1 mb-4 bg-muted p-1 rounded-lg",children:[{key:"all",label:"All",count:o.length},{key:"active",label:"Active",count:o.filter(a=>a.isActive).length},{key:"upcoming",label:"Upcoming",count:o.filter(a=>!a.isActive).length}].map(a=>(0,te.jsxs)(N,{variant:oe===a.key?"default":"outline",size:"sm",onClick:()=>de(a.key),className:"text-xs h-8 px-3 flex-1",children:[a.label," (",a.count,")"]},a.key))}),(0,te.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto",children:me.length>0?me.map(a=>{let d=m.includes(a.id),b=e.filter(A=>A.sprintId===a.id).length,h=!d&&m.length<3;return(0,te.jsx)("div",{className:`p-3 rounded-lg border transition-all ${d?"bg-primary/10 border-primary/30":h?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:T===a.id?(0,te.jsxs)("div",{className:"space-y-3",children:[(0,te.jsx)(ge,{value:E.name,onChange:A=>$(M=>({...M,name:A.target.value})),className:"text-sm",placeholder:"Sprint name"}),(0,te.jsx)(be,{value:E.description,onChange:A=>$(M=>({...M,description:A.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),(0,te.jsxs)("div",{className:"flex gap-2",children:[(0,te.jsxs)(N,{size:"sm",onClick:()=>zt(),className:"flex-1",children:[(0,te.jsx)(g.Check,{className:"h-3 w-3 mr-1"}),"Save"]}),(0,te.jsxs)(N,{size:"sm",variant:"outline",onClick:Et,className:"flex-1",children:[(0,te.jsx)(g.X,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):(0,te.jsxs)("div",{children:[(0,te.jsxs)("div",{className:"flex items-start justify-between",children:[(0,te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,te.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,te.jsx)("h4",{className:"font-medium text-sm text-foreground truncate",children:a.name}),a.isActive&&(0,te.jsx)(U,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),(0,te.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:a.description}),(0,te.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(g.CalendarDays,{className:"h-3 w-3"}),new Date(a.startDate).toLocaleDateString()]}),(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(g.User,{className:"h-3 w-3"}),b," tasks"]})]})]}),(0,te.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>Fe(a),className:"h-6 w-6 p-0",children:(0,te.jsx)(g.Edit2,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(a.id),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:(0,te.jsx)(g.Trash2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,te.jsx)(N,{variant:d?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>Ge(a.id),disabled:!d&&m.length>=3,children:(0,te.jsx)("span",{className:"pointer-events-none select-none",children:d?"Deselect":m.length>=3?"Limit Reached":"Select"})})})]})},a.id)}):(0,te.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,te.jsx)(g.Calendar,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),(0,te.jsxs)("p",{className:"text-sm",children:['No sprints found for "',oe,'" filter']}),(0,te.jsx)(N,{variant:"link",size:"sm",onClick:()=>de("all"),className:"text-xs",children:"Show all sprints"})]})}),m.length===0&&(0,te.jsx)("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:(0,te.jsxs)("div",{className:"text-center",children:[(0,te.jsx)(g.Calendar,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),(0,te.jsx)("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),(0,te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),(0,te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[(0,te.jsx)("div",{className:"lg:col-span-1",children:(0,te.jsxs)(ee,{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:je,onDragEnter:()=>$e("backlog"),onDragLeave:We,onDrop:a=>Ue(a,"backlog"),style:{height:_>0?`calc(100vh - ${_+200}px)`:"calc(100vh - 16rem)"},children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(U,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[ne.length," tasks"]}),(0,te.jsxs)(U,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[Tt," pts"]})]})]}),(0,te.jsx)("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${w==="backlog"?"bg-primary/10":""}`,children:(()=>{let{tasksByEpic:a,unassignedTasks:d}=se(ne);return(0,te.jsxs)(te.Fragment,{children:[Object.entries(a).map(([b,h])=>{let A=q(b);if(!A)return null;let M=y.has(b);return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>we(b),children:[(0,te.jsx)("div",{className:`w-3 h-3 rounded-full ${A.color}`}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:A.name}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",h.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:M?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!M&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:h.map(B=>(0,te.jsx)(pe,{task:B},B.id))})]},b)}),d.length>0&&(()=>{let b=y.has("no-epic");return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>we("no-epic"),children:[(0,te.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",d.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:b?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!b&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:d.map(h=>(0,te.jsx)(pe,{task:h},h.id))})]})})(),ne.length===0&&(0,te.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"}),ne.length>0&&Object.keys(a).length===0&&d.length===0&&(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("div",{className:"text-xs text-muted-foreground mb-2",children:"Direct backlog tasks:"}),ne.map(b=>(0,te.jsx)(pe,{task:b},b.id))]})]})})()})]})}),V.map(a=>{let d=e.filter(h=>h.sprintId===a.id),b=d.reduce((h,A)=>h+(A.points||0),0);return(0,te.jsxs)(ee,{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:je,onDragEnter:()=>$e(a.id),onDragLeave:We,onDrop:h=>Ue(h,a.id),style:{height:_>0?`calc(100vh - ${_+200}px)`:"calc(100vh - 16rem)"},children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,te.jsxs)("div",{children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:a.name}),a.isActive&&(0,te.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(U,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[d.length," tasks"]}),(0,te.jsxs)(U,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[b," pts"]}),(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>Fe(a),className:"h-6 px-2",children:(0,te.jsx)(g.Edit2,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,te.jsx)(g.Trash2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:h,unassignedTasks:A}=se(d);return(0,te.jsxs)(te.Fragment,{children:[Object.entries(h).map(([M,B])=>{let Re=q(M);if(!Re)return null;let qe=y.has(M);return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>we(M),children:[(0,te.jsx)("div",{className:`w-3 h-3 rounded-full ${Re.color}`}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:Re.name}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",B.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:qe?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!qe&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:B.map(Je=>(0,te.jsx)(pe,{task:Je},Je.id))})]},M)}),A.length>0&&(()=>{let M=y.has("no-epic");return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>we("no-epic"),children:[(0,te.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",A.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:M?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!M&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:A.map(B=>(0,te.jsx)(pe,{task:B},B.id))})]})})(),d.length===0&&(0,te.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})})()})]},a.id)})]}),(0,te.jsx)(Dt,{isOpen:O,onClose:()=>C(!1),onAddSprint:At})]})})]})};0&&(module.exports={PlanningView});
5
+ "use strict";var Lt=Object.create;var we=Object.defineProperty;var Bt=Object.getOwnPropertyDescriptor;var It=Object.getOwnPropertyNames;var Ht=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty;var Vt=(e,r)=>{for(var o in r)we(e,o,{get:r[o],enumerable:!0})},Xe=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of It(r))!Ot.call(e,n)&&n!==o&&we(e,n,{get:()=>r[n],enumerable:!(s=Bt(r,n))||s.enumerable});return e};var G=(e,r,o)=>(o=e!=null?Lt(Ht(e)):{},Xe(r||!e||!e.__esModule?we(o,"default",{value:e,enumerable:!0}):o,e)),_t=e=>Xe(we({},"__esModule",{value:!0}),e);var Tr={};Vt(Tr,{PlanningView:()=>Rr});module.exports=_t(Tr);var z=require("react");var Y=G(require("react"));var at=require("clsx");var ze="-",Gt=e=>{let r=jt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{let l=c.split(ze);return l[0]===""&&l.length!==1&&l.shift(),Qe(l,r)||Ft(c)},getConflictingClassGroupIds:(c,l)=>{let m=o[c]||[];return l&&s[c]?[...m,...s[c]]:m}}},Qe=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],s=r.nextPart.get(o),n=s?Qe(e.slice(1),s):void 0;if(n)return n;if(r.validators.length===0)return;let i=e.join(ze);return r.validators.find(({validator:c})=>c(i))?.classGroupId},Ke=/^\[(.+)\]$/,Ft=e=>{if(Ke.test(e)){let r=Ke.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},jt=e=>{let{theme:r,prefix:o}=e,s={nextPart:new Map,validators:[]};return Wt(Object.entries(e.classGroups),o).forEach(([i,c])=>{Ae(c,s,i,r)}),s},Ae=(e,r,o,s)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?r:Ze(r,n);i.classGroupId=o;return}if(typeof n=="function"){if($te(n)){Ae(n(s),r,o,s);return}r.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,c])=>{Ae(c,Ze(r,i),o,s)})})},Ze=(e,r)=>{let o=e;return r.split(ze).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},$te=e=>e.isThemeGetter,Wt=(e,r)=>r?e.map(([o,s])=>{let n=s.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,l])=>[r+c,l])):i);return[o,n]}):e,Ut=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,s=new Map,n=(i,c)=>{o.set(i,c),r++,r>e&&(r=0,s=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=s.get(i))!==void 0)return n(i,c),c},set(i,c){o.has(i)?o.set(i,c):n(i,c)}}},Ye="!",qt=e=>{let{separator:r,experimentalParseClassName:o}=e,s=r.length===1,n=r[0],i=r.length,c=l=>{let m=[],k=0,y=0,L;for(let w=0;w<l.length;w++){let D=l[w];if(k===0){if(D===n&&(s||l.slice(w,w+i)===r)){m.push(l.slice(y,w)),y=w+i;continue}if(D==="/"){L=w;continue}}D==="["?k++:D==="]"&&k--}let R=m.length===0?l:l.substring(y),H=R.startsWith(Ye),O=H?R.substring(1):R,C=L&&L>y?L-y:void 0;return{modifiers:m,hasImportantModifier:H,baseClassName:O,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:c}):c},Jt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(s=>{s[0]==="["?(r.push(...o.sort(),s),o=[]):o.push(s)}),r.push(...o.sort()),r},Xt=e=>({cache:Ut(e.cacheSize),parseClassName:qt(e),...Gt(e)}),Kt=/\s+/,Zt=(e,r)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:n}=r,i=[],c=e.trim().split(Kt),l="";for(let m=c.length-1;m>=0;m-=1){let k=c[m],{modifiers:y,hasImportantModifier:L,baseClassName:R,maybePostfixModifierPosition:H}=o(k),O=!!H,C=s(O?R.substring(0,H):R);if(!C){if(!O){l=k+(l.length>0?" "+l:l);continue}if(C=s(R),!C){l=k+(l.length>0?" "+l:l);continue}O=!1}let w=Jt(y).join(":"),D=L?w+Ye:w,T=D+C;if(i.includes(T))continue;i.push(T);let j=n(C,O);for(let E=0;E<j.length;++E){let $=j[E];i.push(D+$)}l=k+(l.length>0?" "+l:l)}return l};function Qt(){let e=0,r,o,s="";for(;e<arguments.length;)(r=arguments[e++])&&(o=et(r))&&(s&&(s+=" "),s+=o);return s}var et=e=>{if(typeof e=="string")return e;let r,o="";for(let s=0;s<e.length;s++)e[s]&&(r=et(e[s]))&&(o&&(o+=" "),o+=r);return o};function Yt(e,...r){let o,s,n,i=c;function c(m){let k=r.reduce((y,L)=>L(y),e());return o=Xt(k),s=o.cache.get,n=o.cache.set,i=l,l(m)}function l(m){let k=s(m);if(k)return k;let y=Zt(m,o);return n(m,y),y}return function(){return i(Qt.apply(null,arguments))}}var x=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,er=/^\d+\/\d+$/,tr=new Set(["px","full","screen"]),rr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,or=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|te|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ar=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ie(e)||tr.has(e)||er.test(e),X=e=>le(e,"length",fr),ie=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>le(e,"number",ie),ue=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&ie(e.slice(0,-1)),p=e=>tt.test(e),K=e=>rr.test(e),lr=new Set(["length","size","percentage"]),dr=e=>le(e,lr,rt),cr=e=>le(e,"position",rt),mr=new Set(["image","url"]),pr=e=>le(e,mr,br),ur=e=>le(e,"",gr),fe=()=>!0,le=(e,r,o)=>{let s=tt.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):o(s[2]):!1},fr=e=>or.test(e)&&!ar.test(e),rt=()=>!1,gr=e=>sr.test(e),br=e=>nr.test(e);var vr=()=>{let e=x("colors"),r=x("spacing"),o=x("blur"),s=x("brightness"),n=x("borderColor"),i=x("borderRadius"),c=x("borderSpacing"),l=x("borderWidth"),m=x("contrast"),k=x("grayscale"),y=x("hueRotate"),L=x("invert"),R=x("gap"),H=x("gradientColorStops"),O=x("gradientColorStopPositions"),C=x("inset"),w=x("margin"),D=x("opacity"),T=x("padding"),j=x("saturate"),E=x("scale"),$=x("sepia"),oe=x("skew"),de=x("space"),Z=x("translate"),Q=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",p,r],v=()=>[p,r],he=()=>["",W,X],q=()=>["auto",ie,p],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",p],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ie,p];return{cacheSize:500,separator:":",theme:{colors:[fe],spacing:[W,X],blur:["none","",K,p],brightness:V(),borderColor:[e],borderRadius:["none","","full",K,p],borderSpacing:v(),borderWidth:he(),contrast:V(),grayscale:J(),hueRotate:V(),invert:J(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[ir,X],inset:ce(),margin:ce(),opacity:V(),padding:v(),saturate:V(),scale:V(),sepia:J(),skew:V(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[K]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...xe(),p]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ue,p]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",ue,p]}],"grid-cols":[{"grid-cols":[fe]}],"col-start-end":[{col:["auto",{span:["full",ue,p]},p]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[fe]}],"row-start-end":[{row:["auto",{span:[ue,p]},p]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],te:[{te:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[K]},K]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",K,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Te]}],"font-family":[{font:[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",ie,Te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,X]}],"underline-offset":[{"underline-offset":["auto",W,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-to":["te","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[H]}],"gradient-via":[{via:[H]}],"gradient-to":[{to:[H]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-te":[{"rounded-te":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-te":[{"border-te":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:ae()}],"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-te":[{"border-te":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[W,p]}],"outline-w":[{outline:[W,X]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[W,X]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,ur]}],"shadow-color":[{shadow:[fe]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",K,p]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[L]}],saturate:[{saturate:[j]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[L]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ue,p]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-te":[{"scroll-te":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[W,X,Te]}],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","te","pr","pb","pl"],px:["pr","pl"],py:["te","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-te","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-te":["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-te","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-te","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-te","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-te","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-te","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-te","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ot=Yt(vr);function f(...e){return ot((0,at.clsx)(e))}var te=require("react/jsx-runtime"),ee=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...r}));ee.displayName="Card";var hr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...r}));hr.displayName="CardHeader";var xr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...r}));xr.displayName="CardTitle";var yr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...r}));yr.displayName="CardDescription";var wr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("p-6 te-0",e),...r}));wr.displayName="CardContent";var Nr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:f("flex items-center p-6 te-0",e),...r}));Nr.displayName="CardFooter";var st=require("class-variance-authority");var Cr=(0,st.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 U({className:e,variant:r,...o}){return(0,te.jsx)("div",{className:f(Cr({variant:r}),e),...o})}var it=require("@radix-ui/react-slot"),dt=G(require("react")),Ne=(0,st.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"}}}),N=dt.forwardRef(({asChild:e=!1,className:r,size:o,variant:s,...n},i)=>(0,te.jsx)(e?it.Slot:"button",{className:f(Ne({className:r,size:o,variant:s})),ref:i,...n}));N.displayName="Button";var mt=G(require("react"));var ge=mt.forwardRef(({className:e,type:r,...o},s)=>(0,te.jsx)("input",{type:r,className:f("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:s,...o}));ge.displayName="Input";var ut=G(require("react")),be=ut.forwardRef(({className:e,...r},o)=>(0,te.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));be.displayName="Textarea";var g=require("lucide-react");var ve=G(require("react")),P=G(require("@radix-ui/react-dialog"));var bt=P.Root;var kr=P.Portal;var vt=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));vt.displayName=P.Overlay.displayName;var Ee=ve.forwardRef(({className:e,children:r,...o},s)=>(0,te.jsxs)(kr,{children:[(0,te.jsx)(vt,{}),(0,te.jsxs)(P.Content,{ref:s,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[r,(0,te.jsxs)(P.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,te.jsx)(g.X,{className:"h-4 w-4"}),(0,te.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ee.displayName=P.Content.displayName;var Me=({className:e,...r})=>(0,te.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});Me.displayName="DialogHeader";var Dr=({className:e,...r})=>(0,te.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});Dr.displayName="DialogFooter";var Le=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...r}));Le.displayName=P.Title.displayName;var Pr=ve.forwardRef(({className:e,...r},o)=>(0,te.jsx)(P.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...r}));Pr.displayName=P.Description.displayName;var ht=G(require("react")),Be=G(require("@radix-ui/react-label"));var Sr=(0,st.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),re=ht.forwardRef(({className:e,...r},o)=>(0,te.jsx)(Be.Root,{ref:o,className:f(Sr(),e),...r}));re.displayName=Be.Root.displayName;var wt=require("react-day-picker");function Ce({className:e,classNames:r,showOutsideDays:o=!0,...s}){return(0,te.jsx)(wt.DayPicker,{showOutsideDays:o,weekStartsOn:1,className:f("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 te-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:f(Ne({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 mt-2",cell:f("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",s.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:f(Ne({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",...r},...s})}Ce.displayName="Calendar";var Ct=G(require("react")),F=G(require("@radix-ui/react-popover"));var He=F.Root,Oe=F.Trigger;var ke=Ct.forwardRef(({className:e,align:r="center",sideOffset:o=4,...s},n)=>(0,te.jsx)(F.Portal,{children:(0,te.jsx)(F.Content,{ref:n,align:r,sideOffset:o,className:f("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));ke.displayName=F.Content.displayName;var _e=require("date-fns");var Dt=({isOpen:e,onClose:r,onAddSprint:o})=>{let[s,n]=(0,z.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),i=l=>{l.preventDefault(),!(!s.name||!s.startDate||!s.endDate)&&(o({name:s.name,description:s.description,startDate:s.startDate,endDate:s.endDate,isActive:s.isActive,isSelected:!1}),n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),r())},c=()=>{n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),r()};return(0,te.jsx)(bt,{open:e,onOpenChange:c,children:(0,te.jsxs)(Ee,{className:"sm:max-w-md",children:[(0,te.jsx)(Me,{children:(0,te.jsx)(Le,{children:"Add New Sprint"})}),(0,te.jsxs)("form",{onSubmit:i,className:"space-y-4",children:[(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{htmlFor:"name",children:"Sprint Name *"}),(0,te.jsx)(ge,{id:"name",value:s.name,onChange:l=>n(m=>({...m,name:l.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{htmlFor:"description",children:"Description"}),(0,te.jsx)(be,{id:"description",value:s.description,onChange:l=>n(m=>({...m,description:l.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,te.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{children:"Start Date *"}),(0,te.jsxs)(He,{children:[(0,te.jsx)(Oe,{asChild:!0,children:(0,te.jsxs)(N,{variant:"outline",className:f("w-full justify-start text-left font-normal",!s.startDate&&"text-muted-foreground"),children:[(0,te.jsx)(g.CalendarIcon,{className:"mr-2 h-4 w-4"}),s.startDate?(0,_e.format)(s.startDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(ke,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(Ce,{mode:"single",selected:s.startDate,onSelect:l=>n(m=>({...m,startDate:l})),initialFocus:!0})})]})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(re,{children:"End Date *"}),(0,te.jsxs)(He,{children:[(0,te.jsx)(Oe,{asChild:!0,children:(0,te.jsxs)(N,{variant:"outline",className:f("w-full justify-start text-left font-normal",!s.endDate&&"text-muted-foreground"),children:[(0,te.jsx)(g.CalendarIcon,{className:"mr-2 h-4 w-4"}),s.endDate?(0,_e.format)(s.endDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(ke,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(Ce,{mode:"single",selected:s.endDate,onSelect:l=>n(m=>({...m,endDate:l})),initialFocus:!0,disabled:l=>s.startDate?l<s.startDate:!1})})]})]})]}),(0,te.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,te.jsx)("input",{type:"checkbox",id:"isActive",checked:s.isActive,onChange:l=>n(m=>({...m,isActive:l.target.checked})),className:"rounded border-gray-300"}),(0,te.jsx)(re,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,te.jsxs)("div",{className:"flex justify-end gap-3 te-4",children:[(0,te.jsx)(N,{type:"button",variant:"outline",onClick:c,children:"Cancel"}),(0,te.jsx)(N,{type:"submit",disabled:!s.name||!s.startDate||!s.endDate,children:"Add Sprint"})]})]})]})})};var St=require("motion/react");function Pt(e,r){let[o,s]=(0,z.useState)(()=>{if(typeof window>"te")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),n=i=>{try{s(i),typeof window<"te"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,z.useEffect)(()=>{n(o)},[]),[o,n]}var Pe=require("react-icons/fa");function Rt({title:e,description:r,badge:o,primaryAction:s,secondaryAction:n,gradient:i,children:c,className:l}){let[m,k]=Pt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!r),y=!n&&!r||m;return(0,te.jsxs)(St.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,te.jsx)(U,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,te.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[y&&s&&(0,te.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:s.onClick,children:s.label}),(n||r)&&(0,te.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>k(!m),style:{lineHeight:0},children:m?(0,te.jsx)(Pe.FaChevronDown,{size:22}):(0,te.jsx)(Pe.FaChevronUp,{size:22})})]})]}),!y&&(0,te.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,te.jsxs)("div",{className:"space-y-4",children:[(0,te.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,te.jsxs)("div",{className:"flex flex-wrap gap-3",children:[s&&(0,te.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:s.onClick,children:s.label}),n&&(0,te.jsx)(N,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),c&&(0,te.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var Rr=({tasks:e,epics:r,sprints:o,onUpdateTask:s,onTaskClick:n,onAddSprint:i,onUpdateSprint:c,onDeleteSprint:l})=>{let[m,k]=(0,z.useState)([]),[y,L]=(0,z.useState)(new Set),[R,H]=(0,z.useState)(null),[O,C]=(0,z.useState)(!1),[w,D]=(0,z.useState)(null),[T,j]=(0,z.useState)(null),[E,$]=(0,z.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[oe,de]=(0,z.useState)("upcoming"),[Z,Q]=(0,z.useState)(!1),[_,ce]=(0,z.useState)(0),v=(0,z.useRef)(null),he=(0,z.useRef)(null);(0,z.useEffect)(()=>{let a=()=>{v.current&&ce(v.current.offsetHeight)};a();let d=new ResizeObserver(a);return v.current&&d.observe(v.current),()=>d.disconnect()},[]);let q=a=>r.find(d=>d.id===a),xe=a=>o.find(d=>d.id===a),ae=a=>{let d={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 d[a]||d.medium},Se=a=>{let d=a.trim().split(" ");if(d.length===1)return d[0];let b=d[0],h=d[d.length-1][0].toUpperCase();return`${b} ${h}.`},se=a=>{let d={},b=[];return a.forEach(h=>{h.epicId?(d[h.epicId]||(d[h.epicId]=[]),d[h.epicId].push(h)):b.push(h)}),{tasksByEpic:d,unassignedTasks:b}},J=o.filter(a=>a.id!=="backlog"&&a.id!=="all-tasks"),me=J.filter(a=>{switch(oe){case"active":return a.isActive;case"upcoming":return!a.isActive;default:return!0}}),V=J.filter(a=>m.includes(a.id)),ne=e.filter(a=>!a.sprintId||a.sprintId==="backlog"||a.sprintId==="Backlog"),Tt=ne.reduce((a,d)=>a+(d.points||0),0),Ge=a=>{k(d=>d.includes(a)?d.filter(b=>b!==a):d.length<3?[...d,a]:d)},ye=a=>{L(d=>{let b=new Set(d);return b.has(a)?b.delete(a):b.add(a),b})},At=a=>{i(a),C(!1)},Fe=a=>{j(a.id),$({name:a.name,description:a.description||"",startDate:a.startDate instanceof Date?a.startDate.toISOString().split("T")[0]:a.startDate,endDate:a.endDate instanceof Date?a.endDate.toISOString().split("T")[0]:a.endDate,isActive:a.isActive})},zt=()=>{T&&(c(T,{name:E.name,description:E.description,startDate:new Date(E.startDate),endDate:new Date(E.endDate),isActive:E.isActive}),j(null))},Et=()=>{j(null),$({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Mt=(a,d)=>{H(d),a.dataTransfer.effectAllowed="move"},je=a=>{a.preventDefault(),a.dataTransfer.dropEffect="move"},$e=a=>{D(a)},We=()=>{D(null)},Ue=(a,d)=>{if(a.preventDefault(),D(null),!R)return;let b=R.sprintId||void 0,h=d==="backlog"?void 0:d;b!==h&&s(R.id,{sprintId:h}),H(null)},pe=({task:a,showSprint:d=!1})=>{let b=a.epicId?q(a.epicId):null,h=a.sprintId?xe(a.sprintId):null;return(0,te.jsx)(ee,{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:B=>{B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",a.id),Mt(B,a)},onClick:B=>{R===null&&n(a)},style:{userSelect:"none"},children:(0,te.jsxs)("div",{className:"space-y-2 pointer-events-none",children:[(0,te.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,te.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:a.name}),(0,te.jsx)(U,{className:`text-xs ${ae(a.priority)}`,children:a.priority[0].toUpperCase()})]}),(0,te.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,te.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,te.jsx)("div",{className:`w-2 h-2 rounded-full ${b.color}`}),(0,te.jsx)("span",{className:"text-muted-foreground truncate",children:b?.name})]}),(0,te.jsx)("span",{className:"text-muted-foreground",children:a.assignee})]}),d&&h&&(0,te.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,te.jsx)(g.Calendar,{className:"h-3 w-3"}),(0,te.jsx)("span",{children:h.name})]})]})})};return(0,te.jsxs)("div",{ref:he,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,te.jsx)("div",{ref:v,className:"flex-shrink-0",children:(0,te.jsx)(Rt,{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:()=>C(!0)}})}),(0,te.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,te.jsxs)("div",{className:"h-full",style:{height:_>0?`calc(100vh - ${_+120}px)`:"calc(100vh - 12rem)"},children:[(0,te.jsxs)("div",{className:"mb-4",children:[(0,te.jsx)(ee,{className:"p-3 bg-card shadow-sm",children:(0,te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,te.jsx)("div",{children:(0,te.jsx)("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"})}),m.length>0&&(0,te.jsx)("div",{className:"flex items-center gap-2",children:(0,te.jsx)("div",{className:"flex flex-wrap gap-1",children:V.map(a=>(0,te.jsxs)("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[(0,te.jsx)("span",{className:"max-w-[80px] truncate",children:a.name}),a.isActive&&(0,te.jsx)("span",{className:"text-success text-[10px]",children:"\u25CF"}),(0,te.jsx)("button",{onClick:()=>Ge(a.id),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:(0,te.jsx)(g.X,{className:"h-4 w-4"})})]},a.id))})})]}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(N,{onClick:()=>C(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[(0,te.jsx)(g.Plus,{className:"h-3 w-3"}),"Add"]}),(0,te.jsxs)(N,{onClick:()=>Q(!Z),variant:"outline",size:"sm",className:"gap-1",children:[(0,te.jsx)(g.Calendar,{className:"h-3 w-3"}),Z?"Close":"Select"]})]})]})}),Z&&(0,te.jsx)("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>Q(!1)}),(0,te.jsx)("div",{className:`fixed top-0 right-0 h-full w-80 bg-background border-l shadow-xl z-10 transition-all duration-300 ease-in-out ${Z?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:(0,te.jsxs)(ee,{className:"h-full rounded-none border-0 flex flex-col",children:[(0,te.jsxs)("div",{className:"p-4 border-b bg-muted/30 flex-shrink-0",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),(0,te.jsx)(N,{variant:"ghost",size:"sm",onClick:()=>Q(!1),className:"h-8 w-8 p-0",children:(0,te.jsx)(g.X,{className:"h-4 w-4"})})]}),(0,te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),(0,te.jsxs)("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[(0,te.jsx)("div",{className:"flex gap-1 mb-4 bg-muted p-1 rounded-lg",children:[{key:"all",label:"All",count:o.length},{key:"active",label:"Active",count:o.filter(a=>a.isActive).length},{key:"upcoming",label:"Upcoming",count:o.filter(a=>!a.isActive).length}].map(a=>(0,te.jsxs)(N,{variant:oe===a.key?"default":"outline",size:"sm",onClick:()=>de(a.key),className:"text-xs h-8 px-3 flex-1",children:[a.label," (",a.count,")"]},a.key))}),(0,te.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto",children:me.length>0?me.map(a=>{let d=m.includes(a.id),b=e.filter(A=>A.sprintId===a.id).length,h=!d&&m.length<3;return(0,te.jsx)("div",{className:`p-3 rounded-lg border transition-all ${d?"bg-primary/10 border-primary/30":h?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:T===a.id?(0,te.jsxs)("div",{className:"space-y-3",children:[(0,te.jsx)(ge,{value:E.name,onChange:A=>$(M=>({...M,name:A.target.value})),className:"text-sm",placeholder:"Sprint name"}),(0,te.jsx)(be,{value:E.description,onChange:A=>$(M=>({...M,description:A.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),(0,te.jsxs)("div",{className:"flex gap-2",children:[(0,te.jsxs)(N,{size:"sm",onClick:()=>zt(),className:"flex-1",children:[(0,te.jsx)(g.Check,{className:"h-3 w-3 mr-1"}),"Save"]}),(0,te.jsxs)(N,{size:"sm",variant:"outline",onClick:Et,className:"flex-1",children:[(0,te.jsx)(g.X,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):(0,te.jsxs)("div",{children:[(0,te.jsxs)("div",{className:"flex items-start justify-between",children:[(0,te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,te.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,te.jsx)("h4",{className:"font-medium text-sm text-foreground truncate",children:a.name}),a.isActive&&(0,te.jsx)(U,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),(0,te.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:a.description}),(0,te.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(g.CalendarDays,{className:"h-3 w-3"}),new Date(a.startDate).toLocaleDateString()]}),(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(g.User,{className:"h-3 w-3"}),b," tasks"]})]})]}),(0,te.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>Fe(a),className:"h-6 w-6 p-0",children:(0,te.jsx)(g.Edit2,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(a.id),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:(0,te.jsx)(g.Trash2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,te.jsx)(N,{variant:d?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>Ge(a.id),disabled:!d&&m.length>=3,children:(0,te.jsx)("span",{className:"pointer-events-none select-none",children:d?"Deselect":m.length>=3?"Limit Reached":"Select"})})})]})},a.id)}):(0,te.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,te.jsx)(g.Calendar,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),(0,te.jsxs)("p",{className:"text-sm",children:['No sprints found for "',oe,'" filter']}),(0,te.jsx)(N,{variant:"link",size:"sm",onClick:()=>de("all"),className:"text-xs",children:"Show all sprints"})]})}),m.length===0&&(0,te.jsx)("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:(0,te.jsxs)("div",{className:"text-center",children:[(0,te.jsx)(g.Calendar,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),(0,te.jsx)("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),(0,te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),(0,te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[(0,te.jsx)("div",{className:"lg:col-span-1",children:(0,te.jsxs)(ee,{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:je,onDragEnter:()=>$e("backlog"),onDragLeave:We,onDrop:a=>Ue(a,"backlog"),style:{height:_>0?`calc(100vh - ${_+200}px)`:"calc(100vh - 16rem)"},children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(U,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[ne.length," tasks"]}),(0,te.jsxs)(U,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[Tt," pts"]})]})]}),(0,te.jsx)("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${w==="backlog"?"bg-primary/10":""}`,children:(()=>{let{tasksByEpic:a,unassignedTasks:d}=se(ne);return(0,te.jsxs)(te.Fragment,{children:[Object.entries(a).map(([b,h])=>{let A=q(b);if(!A)return null;let M=y.has(b);return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>ye(b),children:[(0,te.jsx)("div",{className:`w-3 h-3 rounded-full ${A.color}`}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:A.name}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",h.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:M?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!M&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:h.map(B=>(0,te.jsx)(pe,{task:B},B.id))})]},b)}),d.length>0&&(()=>{let b=y.has("no-epic");return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>ye("no-epic"),children:[(0,te.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",d.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:b?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!b&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:d.map(h=>(0,te.jsx)(pe,{task:h},h.id))})]})})(),ne.length===0&&(0,te.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"}),ne.length>0&&Object.keys(a).length===0&&d.length===0&&(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("div",{className:"text-xs text-muted-foreground mb-2",children:"Direct backlog tasks:"}),ne.map(b=>(0,te.jsx)(pe,{task:b},b.id))]})]})})()})]})}),V.map(a=>{let d=e.filter(h=>h.sprintId===a.id),b=d.reduce((h,A)=>h+(A.points||0),0);return(0,te.jsxs)(ee,{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:je,onDragEnter:()=>$e(a.id),onDragLeave:We,onDrop:h=>Ue(h,a.id),style:{height:_>0?`calc(100vh - ${_+200}px)`:"calc(100vh - 16rem)"},children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,te.jsxs)("div",{children:[(0,te.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:a.name}),a.isActive&&(0,te.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(U,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[d.length," tasks"]}),(0,te.jsxs)(U,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[b," pts"]}),(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>Fe(a),className:"h-6 px-2",children:(0,te.jsx)(g.Edit2,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&(0,te.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(a.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,te.jsx)(g.Trash2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:h,unassignedTasks:A}=se(d);return(0,te.jsxs)(te.Fragment,{children:[Object.entries(h).map(([M,B])=>{let Re=q(M);if(!Re)return null;let qe=y.has(M);return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>ye(M),children:[(0,te.jsx)("div",{className:`w-3 h-3 rounded-full ${Re.color}`}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:Re.name}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",B.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:qe?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!qe&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:B.map(Je=>(0,te.jsx)(pe,{task:Je},Je.id))})]},M)}),A.length>0&&(()=>{let M=y.has("no-epic");return(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.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:()=>ye("no-epic"),children:[(0,te.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",A.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:M?(0,te.jsx)(g.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(g.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!M&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:A.map(B=>(0,te.jsx)(pe,{task:B},B.id))})]})})(),d.length===0&&(0,te.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})})()})]},a.id)})]}),(0,te.jsx)(Dt,{isOpen:O,onClose:()=>C(!1),onAddSprint:At})]})})]})};0&&(module.exports={PlanningView});
@@ -1 +1 @@
1
- import{a}from"../../chunk-ZMSNHKKT.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as PlanningView};
1
+ import{a}from"../../chunk-O6GWOXTH.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as PlanningView};