cortex-react-components 2.13.4 → 2.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2R3MJSQ7.mjs +1 -0
- package/dist/chunk-6R36YTGY.mjs +1 -0
- package/dist/{chunk-YQW7SMYJ.mjs → chunk-76AKO55V.mjs} +1 -1
- package/dist/{chunk-TL2RQFU5.mjs → chunk-B7AXSCTN.mjs} +1 -1
- package/dist/{chunk-6NED7ZVK.mjs → chunk-CBYI4FLL.mjs} +1 -1
- package/dist/chunk-GTXTHH5Y.mjs +4 -0
- package/dist/{chunk-LJOWXPWW.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/chunk-QC2UWZWL.mjs +1 -0
- package/dist/chunk-USGRM22Y.mjs +1 -0
- package/dist/{chunk-CBIULUZQ.mjs → chunk-XKGBG5FX.mjs} +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Projects/AddEpicModal.js +1 -1
- package/dist/components/Projects/AddEpicModal.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicsView.d.ts +1 -1
- package/dist/components/Projects/EpicsView.js +2 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/index.js +12 -12
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +15 -15
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2IMVYO7X.mjs +0 -1
- package/dist/chunk-DTIHVFME.mjs +0 -4
- package/dist/chunk-E6Y5COQK.mjs +0 -1
- package/dist/chunk-TOI73VEE.mjs +0 -1
- package/dist/chunk-WSQHAE6Q.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 ye=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Bt=Object.getOwnPropertyNames;var Ht=Object.getPrototypeOf,It=Object.prototype.hasOwnProperty;var Ot=(e,r)=>{for(var o in r)ye(e,o,{get:r[o],enumerable:!0})},Xe=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Bt(r))!It.call(e,s)&&s!==o&&ye(e,s,{get:()=>r[s],enumerable:!(a=At(r,s))||a.enumerable});return e};var G=(e,r,o)=>(o=e!=null?Lt(Ht(e)):{},Xe(r||!e||!e.__esModule?ye(o,"default",{value:e,enumerable:!0}):o,e)),Vt=e=>Xe(ye({},"__esModule",{value:!0}),e);var Rr={};Ot(Rr,{PlanningView:()=>Pr});module.exports=Vt(Rr);var T=require("react");var Y=G(require("react"));var at=require("clsx");var Te="-",_t=e=>{let r=Ft(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let l=d.split(Te);return l[0]===""&&l.length!==1&&l.shift(),Qe(l,r)||Gt(d)},getConflictingClassGroupIds:(d,l)=>{let p=o[d]||[];return l&&a[d]?[...p,...a[d]]:p}}},Qe=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],a=r.nextPart.get(o),s=a?Qe(e.slice(1),a):void 0;if(s)return s;if(r.validators.length===0)return;let i=e.join(Te);return r.validators.find(({validator:d})=>d(i))?.classGroupId},Ke=/^\[(.+)\]$/,Gt=e=>{if(Ke.test(e)){let r=Ke.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},Ft=e=>{let{theme:r,prefix:o}=e,a={nextPart:new Map,validators:[]};return $te(Object.entries(e.classGroups),o).forEach(([i,d])=>{Re(d,a,i,r)}),a},Re=(e,r,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?r:Ze(r,s);i.classGroupId=o;return}if(typeof s=="function"){if(jt(s)){Re(s(a),r,o,a);return}r.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,d])=>{Re(d,Ze(r,i),o,a)})})},Ze=(e,r)=>{let o=e;return r.split(Te).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},jt=e=>e.isThemeGetter,$te=(e,r)=>r?e.map(([o,a])=>{let s=a.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,l])=>[r+d,l])):i);return[o,s]}):e,Wt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,a=new Map,s=(i,d)=>{o.set(i,d),r++,r>e&&(r=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return s(i,d),d},set(i,d){o.has(i)?o.set(i,d):s(i,d)}}},Ye="!",Ut=e=>{let{separator:r,experimentalParseClassName:o}=e,a=r.length===1,s=r[0],i=r.length,d=l=>{let p=[],D=0,N=0,E;for(let h=0;h<l.length;h++){let S=l[h];if(D===0){if(S===s&&(a||l.slice(h,h+i)===r)){p.push(l.slice(N,h)),N=h+i;continue}if(S==="/"){E=h;continue}}S==="["?D++:S==="]"&&D--}let z=p.length===0?l:l.substring(N),A=z.startsWith(Ye),B=A?z.substring(1):z,y=E&&E>N?E-N:void 0;return{modifiers:p,hasImportantModifier:A,baseClassName:B,maybePostfixModifierPosition:y}};return o?l=>o({className:l,parseClassName:d}):d},qt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(a=>{a[0]==="["?(r.push(...o.sort(),a),o=[]):o.push(a)}),r.push(...o.sort()),r},Jt=e=>({cache:Wt(e.cacheSize),parseClassName:Ut(e),..._t(e)}),Xt=/\s+/,Kt=(e,r)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=r,i=[],d=e.trim().split(Xt),l="";for(let p=d.length-1;p>=0;p-=1){let D=d[p],{modifiers:N,hasImportantModifier:E,baseClassName:z,maybePostfixModifierPosition:A}=o(D),B=!!A,y=a(B?z.substring(0,A):z);if(!y){if(!B){l=D+(l.length>0?" "+l:l);continue}if(y=a(z),!y){l=D+(l.length>0?" "+l:l);continue}B=!1}let h=qt(N).join(":"),S=E?h+Ye:h,R=S+y;if(i.includes(R))continue;i.push(R);let j=s(y,B);for(let M=0;M<j.length;++M){let $=j[M];i.push(S+$)}l=D+(l.length>0?" "+l:l)}return l};function Zt(){let e=0,r,o,a="";for(;e<arguments.length;)(r=arguments[e++])&&(o=et(r))&&(a&&(a+=" "),a+=o);return a}var et=e=>{if(typeof e=="string")return e;let r,o="";for(let a=0;a<e.length;a++)e[a]&&(r=et(e[a]))&&(o&&(o+=" "),o+=r);return o};function Qt(e,...r){let o,a,s,i=d;function d(p){let D=r.reduce((N,E)=>E(N),e());return o=Jt(D),a=o.cache.get,s=o.cache.set,i=l,l(p)}function l(p){let D=a(p);if(D)return D;let N=Kt(p,o);return s(p,N),N}return function(){return i(Zt.apply(null,arguments))}}var v=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,er=new Set(["px","full","screen"]),tr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ar=/^(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=>ne(e)||er.has(e)||Yt.test(e),J=e=>se(e,"length",ur),ne=e=>!!e&&!Number.isNaN(Number(e)),Pe=e=>se(e,"number",ne),me=e=>!!e&&Number.isInteger(Number(e)),sr=e=>e.endsWith("%")&&ne(e.slice(0,-1)),m=e=>tt.test(e),X=e=>tr.test(e),ir=new Set(["length","size","percentage"]),lr=e=>se(e,ir,rt),dr=e=>se(e,"position",rt),cr=new Set(["image","url"]),pr=e=>se(e,cr,gr),mr=e=>se(e,"",fr),ue=()=>!0,se=(e,r,o)=>{let a=tt.exec(e);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):o(a[2]):!1},ur=e=>rr.test(e)&&!or.test(e),rt=()=>!1,fr=e=>ar.test(e),gr=e=>nr.test(e);var br=()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),a=v("brightness"),s=v("borderColor"),i=v("borderRadius"),d=v("borderSpacing"),l=v("borderWidth"),p=v("contrast"),D=v("grayscale"),N=v("hueRotate"),E=v("invert"),z=v("gap"),A=v("gradientColorStops"),B=v("gradientColorStopPositions"),y=v("inset"),h=v("margin"),S=v("opacity"),R=v("padding"),j=v("saturate"),M=v("scale"),$=v("sepia"),oe=v("skew"),le=v("space"),K=v("translate"),Z=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",m,r],g=()=>[m,r],ve=()=>["",W,J],Q=()=>["auto",ne,m],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",m],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[ne,m];return{cacheSize:500,separator:":",theme:{colors:[ue],spacing:[W,J],blur:["none","",X,m],brightness:H(),borderColor:[e],borderRadius:["none","","full",X,m],borderSpacing:g(),borderWidth:ve(),contrast:H(),grayscale:q(),hueRotate:H(),invert:q(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[sr,J],inset:de(),margin:de(),opacity:H(),padding:g(),saturate:H(),scale:H(),sepia:q(),skew:H(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),m]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",me,m]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",me,m]}],"grid-cols":[{"grid-cols":[ue]}],"col-start-end":[{col:["auto",{span:["full",me,m]},m]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[ue]}],"row-start-end":[{row:["auto",{span:[me,m]},m]}],"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",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[z]}],"gap-x":[{"gap-x":[z]}],"gap-y":[{"gap-y":[z]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],te:[{te:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,r]}],"min-w":[{"min-w":[m,r,"min","max","fit"]}],"max-w":[{"max-w":[m,r,"none","full","min","max","fit","prose",{screen:[X]},X]}],h:[{h:[m,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,r,"auto","min","max","fit"]}],"font-size":[{text:["base",X,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pe]}],"font-family":[{font:[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",ne,Pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,J]}],"underline-offset":[{"underline-offset":["auto",W,m]}],"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:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),dr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["te","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],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":[S]}],"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":[S]}],"divide-style":[{divide:ae()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-te":[{"border-te":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[W,m]}],"outline-w":[{outline:[W,J]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,mr]}],"shadow-color":[{shadow:[ue]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",X,m]}],grayscale:[{grayscale:[D]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[E]}],saturate:[{saturate:[j]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[me,m]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"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",m]}],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",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-te":[{"scroll-te":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"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",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[W,J,Pe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","te","mr","mb","ml"],mx:["mr","ml"],my:["te","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-te","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-te","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ot=Qt(br);function u(...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:u("rounded-xl border bg-card text-card-foreground shadow",e),...r}));ee.displayName="Card";var vr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:u("flex flex-col space-y-1.5 p-6",e),...r}));vr.displayName="CardHeader";var hr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:u("font-semibold leading-none tracking-tight",e),...r}));hr.displayName="CardTitle";var xr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:u("text-sm text-muted-foreground",e),...r}));xr.displayName="CardDescription";var yr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:u("p-6 pt-0",e),...r}));yr.displayName="CardContent";var wr=Y.forwardRef(({className:e,...r},o)=>(0,te.jsx)("div",{ref:o,className:u("flex items-center p-6 pt-0",e),...r}));wr.displayName="CardFooter";var nt=require("class-variance-authority");var Nr=(0,nt.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 re({className:e,variant:r,...o}){return(0,te.jsx)("div",{className:u(Nr({variant:r}),e),...o})}var it=require("@radix-ui/react-slot"),dt=G(require("react")),we=(0,nt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),w=dt.forwardRef(({asChild:e=!1,className:r,size:o,variant:a,...s},i)=>(0,te.jsx)(e?it.Slot:"button",{className:u(we({className:r,size:o,variant:a})),ref:i,...s}));w.displayName="Button";var pt=G(require("react"));var fe=pt.forwardRef(({className:e,type:r,...o},a)=>(0,te.jsx)("input",{type:r,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));fe.displayName="Input";var ut=G(require("react")),ge=ut.forwardRef(({className:e,...r},o)=>(0,te.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));ge.displayName="Textarea";var b=require("lucide-react");var be=G(require("react")),k=G(require("@radix-ui/react-dialog"));var bt=k.Root;var Cr=k.Portal;var vt=be.forwardRef(({className:e,...r},o)=>(0,te.jsx)(k.Overlay,{ref:o,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));vt.displayName=k.Overlay.displayName;var ze=be.forwardRef(({className:e,children:r,...o},a)=>(0,te.jsxs)(Cr,{children:[(0,te.jsx)(vt,{}),(0,te.jsxs)(k.Content,{ref:a,className:u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[r,(0,te.jsxs)(k.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)(b.X,{className:"h-4 w-4"}),(0,te.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ze.displayName=k.Content.displayName;var Me=({className:e,...r})=>(0,te.jsx)("div",{className:u("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:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});Dr.displayName="DialogFooter";var Ee=be.forwardRef(({className:e,...r},o)=>(0,te.jsx)(k.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...r}));Ee.displayName=k.Title.displayName;var Sr=be.forwardRef(({className:e,...r},o)=>(0,te.jsx)(k.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...r}));Sr.displayName=k.Description.displayName;var ht=G(require("react")),Le=G(require("@radix-ui/react-label"));var kr=(0,nt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ie=ht.forwardRef(({className:e,...r},o)=>(0,te.jsx)(Le.Root,{ref:o,className:u(kr(),e),...r}));ie.displayName=Le.Root.displayName;var wt=require("react-day-picker");function Ne({className:e,classNames:r,showOutsideDays:o=!0,...a}){return(0,te.jsx)(wt.DayPicker,{showOutsideDays:o,weekStartsOn:1,className:u("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:u(we({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 te-2",cell:u("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:u(we({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},...a})}Ne.displayName="Calendar";var Ct=G(require("react")),F=G(require("@radix-ui/react-popover"));var Be=F.Root,He=F.Trigger;var Ce=Ct.forwardRef(({className:e,align:r="center",sideOffset:o=4,...a},s)=>(0,te.jsx)(F.Portal,{children:(0,te.jsx)(F.Content,{ref:s,align:r,sideOffset:o,className:u("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ce.displayName=F.Content.displayName;var Oe=require("date-fns");var St=({isOpen:e,onClose:r,onAddSprint:o})=>{let[a,s]=(0,T.useState)({name:"",description:"",startDate:void 0,endDate:void 0}),i=l=>{l.preventDefault(),!(!a.name||!a.startDate||!a.endDate)&&(o({name:a.name,description:a.description,startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),s({name:"",description:"",startDate:void 0,endDate:void 0}),r())},d=()=>{s({name:"",description:"",startDate:void 0,endDate:void 0}),r()};return(0,te.jsx)(bt,{open:e,onOpenChange:d,children:(0,te.jsxs)(ze,{className:"sm:max-w-md",children:[(0,te.jsx)(Me,{children:(0,te.jsx)(Ee,{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)(ie,{htmlFor:"name",children:"Sprint Name *"}),(0,te.jsx)(fe,{id:"name",value:a.name,onChange:l=>s(p=>({...p,name:l.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(ie,{htmlFor:"description",children:"Description"}),(0,te.jsx)(ge,{id:"description",value:a.description,onChange:l=>s(p=>({...p,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)(ie,{children:"Start Date *"}),(0,te.jsxs)(Be,{children:[(0,te.jsx)(He,{asChild:!0,children:(0,te.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!a.startDate&&"text-muted-foreground"),children:[(0,te.jsx)(b.CalendarIcon,{className:"mr-2 h-4 w-4"}),a.startDate?(0,Oe.format)(a.startDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(Ce,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(Ne,{mode:"single",selected:a.startDate,onSelect:l=>s(p=>({...p,startDate:l})),initialFocus:!0})})]})]}),(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)(ie,{children:"End Date *"}),(0,te.jsxs)(Be,{children:[(0,te.jsx)(He,{asChild:!0,children:(0,te.jsxs)(w,{variant:"outline",className:u("w-full justify-start text-left font-normal",!a.endDate&&"text-muted-foreground"),children:[(0,te.jsx)(b.CalendarIcon,{className:"mr-2 h-4 w-4"}),a.endDate?(0,Oe.format)(a.endDate,"PPP"):"Pick a date"]})}),(0,te.jsx)(Ce,{className:"w-auto p-0",align:"start",children:(0,te.jsx)(Ne,{mode:"single",selected:a.endDate,onSelect:l=>s(p=>({...p,endDate:l})),initialFocus:!0,disabled:l=>a.startDate?l<a.startDate:!1})})]})]})]}),(0,te.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,te.jsx)(w,{type:"button",variant:"outline",onClick:d,children:"Cancel"}),(0,te.jsx)(w,{type:"submit",disabled:!a.name||!a.startDate||!a.endDate,children:"Add Sprint"})]})]})]})})};var Pt=require("motion/react");function kt(e,r){let[o,a]=(0,T.useState)(()=>{if(typeof window>"u")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),s=i=>{try{a(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,T.useEffect)(()=>{s(o)},[]),[o,s]}var Se=require("react-icons/fa");function Rt({title:e,description:r,badge:o,primaryAction:a,secondaryAction:s,gradient:i,children:d,className:l}){let[p,D]=kt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!r),N=!s&&!r||p;return(0,te.jsxs)(Pt.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)(re,{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:[N&&a&&(0,te.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),(s||r)&&(0,te.jsx)("button",{"aria-label":p?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>D(!p),style:{lineHeight:0},children:p?(0,te.jsx)(Se.FaChevronDown,{size:22}):(0,te.jsx)(Se.FaChevronUp,{size:22})})]})]}),!N&&(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:[a&&(0,te.jsx)(w,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),s&&(0,te.jsx)(w,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),d&&(0,te.jsx)("div",{className:"hidden lg:block",children:d})]})]})}var U=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Pr=({tasks:e,epics:r,sprints:o,onUpdateTask:a,onTaskClick:s,onAddSprint:i,onUpdateSprint:d,onDeleteSprint:l})=>{let[p,D]=(0,T.useState)([]),[N,E]=(0,T.useState)(new Set),[z,A]=(0,T.useState)(null),[B,y]=(0,T.useState)(!1),[h,S]=(0,T.useState)(null),[R,j]=(0,T.useState)(null),[M,$]=(0,T.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[oe,le]=(0,T.useState)("upcoming"),[K,Z]=(0,T.useState)(!1),[V,de]=(0,T.useState)(0),g=(0,T.useRef)(null),ve=(0,T.useRef)(null);(0,T.useEffect)(()=>{let n=()=>{g.current&&de(g.current.offsetHeight)};n();let c=new ResizeObserver(n);return g.current&&c.observe(g.current),()=>c.disconnect()},[]);let Q=n=>r.find(c=>c.id===Number(n)),he=n=>o.find(c=>c.id===Number(n)),ae=n=>{let c={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 c[n]||c.medium},xe=n=>{let c=n.trim().split(" ");if(c.length===1)return c[0];let C=c[0],x=c[c.length-1][0].toUpperCase();return`${C} ${x}`},ce=n=>{let c={},C=[];return n.forEach(x=>{x.epic?(c[U(x.epic)]||(c[U(x.epic)]=[]),c[U(x.epic)].push(x)):C.push(x)}),{tasksByEpic:c,unassignedTasks:C}},q=o.filter(n=>n.id!==1&&n.id!==2),pe=q.filter(n=>{switch(oe){default:return!0}}),H=q.filter(n=>p.includes(n.id.toString())),Ve=n=>{D(c=>c.includes(n)?c.filter(C=>C!==n):c.length<3?[...c,n]:c)},_e=n=>{E(c=>{let C=new Set(c);return C.has(n)?C.delete(n):C.add(n),C})},Tt=n=>{i(n),y(!1)},Ge=n=>{j(n.id.toString()),$({name:n.name,description:n.description||"",startDate:n.startDate?new Date(n.startDate).toISOString().split("T")[0]:n.startDate,endDate:n.endDate?new Date(n.endDate).toISOString().split("T")[0]:n.endDate,isActive:!1})},zt=()=>{R&&(d(R,{name:M.name,description:M.description,startDate:M.startDate,endDate:M.endDate}),j(null))},Mt=()=>{j(null),$({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Et=(n,c)=>{A(c),n.dataTransfer.effectAllowed="move"},Fe=n=>{n.preventDefault(),n.dataTransfer.dropEffect="move"},je=n=>{S(n)},$e=()=>{S(null)},We=(n,c)=>{if(n.preventDefault(),S(null),!z)return;let C=U(z.sprint)||void 0,x=c==="backlog"?void 0:c;A(null)},Ue=({task:n,showSprint:c=!1})=>{let C=n.epic?Q(U(n.epic).toString()):null,x=n.sprint?he(U(n.sprint).toString()):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:_=>{_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("text/plain",n.id.toString()),Et(_,n)},onClick:_=>{z===null&&s(n)},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:n.name}),(0,te.jsx)(re,{className:`text-xs ${ae(n.priority||"medium")}`,children:n.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:[C&&(0,te.jsx)("div",{className:`w-2 h-2 rounded-full ${C.color}`}),(0,te.jsx)("span",{className:"text-muted-foreground truncate",children:C?.name})]}),(0,te.jsx)("span",{className:"text-muted-foreground",children:xe(n.assignee?.value?.name)})]}),c&&x&&(0,te.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,te.jsx)(b.Calendar,{className:"h-3 w-3"}),(0,te.jsx)("span",{children:x.name})]})]})})};return(0,te.jsxs)("div",{ref:ve,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,te.jsx)("div",{ref:g,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:()=>y(!0)}})}),(0,te.jsx)("div",{className:"flex-1 min-h-0 te-8",children:(0,te.jsxs)("div",{className:"h-full",style:{height:V>0?`calc(100vh - ${V+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"})}),p.length>0&&(0,te.jsx)("div",{className:"flex items-center gap-2",children:(0,te.jsx)("div",{className:"flex flex-wrap gap-1",children:H.map(n=>(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:n.name}),(0,te.jsx)("button",{onClick:()=>Ve(n.id.toString()),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:(0,te.jsx)(b.X,{className:"h-4 w-4"})})]},n.id))})})]}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(w,{onClick:()=>y(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[(0,te.jsx)(b.Plus,{className:"h-3 w-3"}),"Add"]}),(0,te.jsxs)(w,{onClick:()=>Z(!K),variant:"outline",size:"sm",className:"gap-1",children:[(0,te.jsx)(b.Calendar,{className:"h-3 w-3"}),K?"Close":"Select"]})]})]})}),K&&(0,te.jsx)("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>Z(!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 ${K?"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)(w,{variant:"ghost",size:"sm",onClick:()=>Z(!1),className:"h-8 w-8 p-0",children:(0,te.jsx)(b.X,{className:"h-4 w-4"})})]}),(0,te.jsx)("p",{className:"text-sm text-muted-foreground te-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"},{key:"upcoming",label:"Upcoming"}].map(n=>(0,te.jsxs)(w,{variant:oe===n.key?"default":"outline",size:"sm",onClick:()=>le(n.key),className:"text-xs h-8 px-3 flex-1",children:[n.label," (",n.count,")"]},n.key))}),(0,te.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto",children:pe.length>0?pe.map(n=>{let c=p.includes(n.id.toString()),C=e.filter(I=>U(I.sprint)===n.id).length,x=!c&&p.length<3;return(0,te.jsx)("div",{className:`p-3 rounded-lg border transition-all ${c?"bg-primary/10 border-primary/30":x?"bg-card border-border hover:border-primary/50":"bg-muted/30 border-border/30 opacity-60"}`,children:R===n.id.toString()?(0,te.jsxs)("div",{className:"space-y-3",children:[(0,te.jsx)(fe,{value:M.name,onChange:I=>$(O=>({...O,name:I.target.value})),className:"text-sm",placeholder:"Sprint name"}),(0,te.jsx)(ge,{value:M.description,onChange:I=>$(O=>({...O,description:I.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),(0,te.jsxs)("div",{className:"flex gap-2",children:[(0,te.jsxs)(w,{size:"sm",onClick:()=>zt(),className:"flex-1",children:[(0,te.jsx)(b.Check,{className:"h-3 w-3 mr-1"}),"Save"]}),(0,te.jsxs)(w,{size:"sm",variant:"outline",onClick:Mt,className:"flex-1",children:[(0,te.jsx)(b.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:n.name}),(0,te.jsx)(re,{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:n.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)(b.CalendarDays,{className:"h-3 w-3"}),new Date(n.startDate).toLocaleDateString()]}),(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(b.User,{className:"h-3 w-3"}),C," tasks"]})]})]}),(0,te.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,te.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>Ge(n),className:"h-6 w-6 p-0",children:(0,te.jsx)(b.Edit2,{className:"h-3 w-3"})}),n.id!==1&&n.id!==2&&(0,te.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>l(n.id.toString()),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:(0,te.jsx)(b.Trash2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex items-center justify-between te-2",children:(0,te.jsx)(w,{variant:c?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>Ve(n.id.toString()),disabled:!c&&p.length>=3,children:(0,te.jsx)("span",{className:"pointer-events-none select-none",children:c?"Deselect":p.length>=3?"Limit Reached":"Select"})})})]})},n.id)}):(0,te.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,te.jsx)(b.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)(w,{variant:"link",size:"sm",onClick:()=>le("all"),className:"text-xs",children:"Show all sprints"})]})}),p.length===0&&(0,te.jsx)("div",{className:"te-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)(b.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 te-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:Fe,onDragEnter:()=>je("backlog"),onDragLeave:$e,onDrop:n=>We(n,"backlog"),style:{height:V>0?`calc(100vh - ${V+200}px)`:"calc(100vh - 16rem)"},children:[(0,te.jsx)("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.jsx)("div",{className:`flex-1 overflow-y-auto space-y-3 min-h-0 p-3 rounded transition-colors ${h==="backlog"?"bg-primary/10":""}`,children:(0,te.jsx)(te.Fragment,{})})]})}),H.map(n=>{let c=e.filter(x=>U(x.sprint)===n.id),C=c.reduce((x,I)=>x+(I.storyPoints||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:Fe,onDragEnter:()=>je(n.id.toString()),onDragLeave:$e,onDrop:x=>We(x,n.id.toString()),style:{height:V>0?`calc(100vh - ${V+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)("div",{children:(0,te.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:n.name})}),(0,te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,te.jsxs)(re,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[c.length," tasks"]}),(0,te.jsxs)(re,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200",children:[C," pts"]}),(0,te.jsx)(w,{size:"sm",variant:"ghost",onClick:()=>Ge(n),className:"h-6 px-2",children:(0,te.jsx)(b.Edit2,{className:"h-3 w-3"})})]})]}),(0,te.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:x,unassignedTasks:I}=ce(c);return(0,te.jsxs)(te.Fragment,{children:[Object.entries(x).map(([O,_])=>{let ke=Q(O);if(!ke)return null;let qe=N.has(O);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:()=>_e(O),children:[(0,te.jsx)("div",{className:`w-3 h-3 rounded-full ${ke.color}`}),(0,te.jsx)("span",{className:"font-medium text-muted-foreground",children:ke.name}),(0,te.jsxs)("span",{className:"text-muted-foreground",children:["(",_.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:qe?(0,te.jsx)(b.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(b.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!qe&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:_.map(Je=>(0,te.jsx)(Ue,{task:Je},Je.id))})]},O)}),I.length>0&&(()=>{let O=N.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:()=>_e("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:["(",I.length,")"]}),(0,te.jsx)("div",{className:"ml-auto",children:O?(0,te.jsx)(b.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,te.jsx)(b.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!O&&(0,te.jsx)("div",{className:"space-y-2 pl-2",children:I.map(_=>(0,te.jsx)(Ue,{task:_},_.id))})]})})(),c.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"})]})})()})]},n.id)})]}),(0,te.jsx)(St,{isOpen:B,onClose:()=>y(!1),onAddSprint:Tt})]})})]})};0&&(module.exports={PlanningView});
|
|
5
|
+
"use strict";var Ht=Object.create;var Ce=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var Ot=Object.getOwnPropertyNames;var Vt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var jt=(e,r)=>{for(var o in r)Ce(e,o,{get:r[o],enumerable:!0})},Ze=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Ot(r))!_t.call(e,s)&&s!==o&&Ce(e,s,{get:()=>r[s],enumerable:!(a=It(r,s))||a.enumerable});return e};var j=(e,r,o)=>(o=e!=null?Ht(Vt(e)):{},Ze(r||!e||!e.__esModule?Ce(o,"default",{value:e,enumerable:!0}):o,e)),Gt=e=>Ze(Ce({},"__esModule",{value:!0}),e);var Er={};jt(Er,{PlanningView:()=>zr});module.exports=Gt(Er);var T=require("react");var ee=j(require("react"));var st=require("clsx");var Me="-",Ft=e=>{let r=Wt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let l=c.split(Me);return l[0]===""&&l.length!==1&&l.shift(),et(l,r)||$re(c)},getConflictingClassGroupIds:(c,l)=>{let m=o[c]||[];return l&&a[c]?[...m,...a[c]]:m}}},et=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],a=r.nextPart.get(o),s=a?et(e.slice(1),a):void 0;if(s)return s;if(r.validators.length===0)return;let i=e.join(Me);return r.validators.find(({validator:c})=>c(i))?.classGroupId},Qe=/^\[(.+)\]$/,$re=e=>{if(Qe.test(e)){let r=Qe.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},Wt=e=>{let{theme:r,prefix:o}=e,a={nextPart:new Map,validators:[]};return qt(Object.entries(e.classGroups),o).forEach(([i,c])=>{Ee(c,a,i,r)}),a},Ee=(e,r,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?r:Ye(r,s);i.classGroupId=o;return}if(typeof s=="function"){if(Ut(s)){Ee(s(a),r,o,a);return}r.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,c])=>{Ee(c,Ye(r,i),o,a)})})},Ye=(e,r)=>{let o=e;return r.split(Me).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,qt=(e,r)=>r?e.map(([o,a])=>{let s=a.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,l])=>[r+c,l])):i);return[o,s]}):e,Jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,a=new Map,s=(i,c)=>{o.set(i,c),r++,r>e&&(r=0,a=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=a.get(i))!==void 0)return s(i,c),c},set(i,c){o.has(i)?o.set(i,c):s(i,c)}}},tt="!",Xt=e=>{let{separator:r,experimentalParseClassName:o}=e,a=r.length===1,s=r[0],i=r.length,c=l=>{let m=[],k=0,y=0,A;for(let w=0;w<l.length;w++){let D=l[w];if(k===0){if(D===s&&(a||l.slice(w,w+i)===r)){m.push(l.slice(y,w)),y=w+i;continue}if(D==="/"){A=w;continue}}D==="["?k++:D==="]"&&k--}let E=m.length===0?l:l.substring(y),I=E.startsWith(tt),O=I?E.substring(1):E,C=A&&A>y?A-y:void 0;return{modifiers:m,hasImportantModifier:I,baseClassName:O,maybePostfixModifierPosition:C}};return o?l=>o({className:l,parseClassName:c}):c},Kt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(a=>{a[0]==="["?(r.push(...o.sort(),a),o=[]):o.push(a)}),r.push(...o.sort()),r},Zt=e=>({cache:Jt(e.cacheSize),parseClassName:Xt(e),...Ft(e)}),Qt=/\s+/,Yt=(e,r)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=r,i=[],c=e.trim().split(Qt),l="";for(let m=c.length-1;m>=0;m-=1){let k=c[m],{modifiers:y,hasImportantModifier:A,baseClassName:E,maybePostfixModifierPosition:I}=o(k),O=!!I,C=a(O?E.substring(0,I):E);if(!C){if(!O){l=k+(l.length>0?" "+l:l);continue}if(C=a(E),!C){l=k+(l.length>0?" "+l:l);continue}O=!1}let w=Kt(y).join(":"),D=A?w+tt:w,z=D+C;if(i.includes(z))continue;i.push(z);let F=s(C,O);for(let R=0;R<F.length;++R){let $=F[R];i.push(D+$)}l=k+(l.length>0?" "+l:l)}return l};function er(){let e=0,r,o,a="";for(;e<arguments.length;)(r=arguments[e++])&&(o=rt(r))&&(a&&(a+=" "),a+=o);return a}var rt=e=>{if(typeof e=="string")return e;let r,o="";for(let a=0;a<e.length;a++)e[a]&&(r=rt(e[a]))&&(o&&(o+=" "),o+=r);return o};function tr(e,...r){let o,a,s,i=c;function c(m){let k=r.reduce((y,A)=>A(y),e());return o=Zt(k),a=o.cache.get,s=o.cache.set,i=l,l(m)}function l(m){let k=a(m);if(k)return k;let y=Yt(m,o);return s(m,y),y}return function(){return i(er.apply(null,arguments))}}var x=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,rr=/^\d+\/\d+$/,or=new Set(["px","full","screen"]),ar=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|re|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>se(e)||or.has(e)||rr.test(e),Z=e=>ie(e,"length",br),se=e=>!!e&&!Number.isNaN(Number(e)),ze=e=>ie(e,"number",se),ge=e=>!!e&&Number.isInteger(Number(e)),dr=e=>e.endsWith("%")&&se(e.slice(0,-1)),p=e=>ot.test(e),Q=e=>ar.test(e),cr=new Set(["length","size","percentage"]),mr=e=>ie(e,cr,at),pr=e=>ie(e,"position",at),ur=new Set(["image","url"]),gr=e=>ie(e,ur,hr),fr=e=>ie(e,"",vr),fe=()=>!0,ie=(e,r,o)=>{let a=ot.exec(e);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):o(a[2]):!1},br=e=>nr.test(e)&&!sr.test(e),at=()=>!1,vr=e=>ir.test(e),hr=e=>lr.test(e);var xr=()=>{let e=x("colors"),r=x("spacing"),o=x("blur"),a=x("brightness"),s=x("borderColor"),i=x("borderRadius"),c=x("borderSpacing"),l=x("borderWidth"),m=x("contrast"),k=x("grayscale"),y=x("hueRotate"),A=x("invert"),E=x("gap"),I=x("gradientColorStops"),O=x("gradientColorStopPositions"),C=x("inset"),w=x("margin"),D=x("opacity"),z=x("padding"),F=x("saturate"),R=x("scale"),$=x("sepia"),de=x("skew"),ce=x("space"),oe=x("translate"),ae=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",p,r],b=()=>[p,r],xe=()=>["",W,Z],_=()=>["auto",se,p],ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",p],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[se,p];return{cacheSize:500,separator:":",theme:{colors:[fe],spacing:[W,Z],blur:["none","",Q,p],brightness:V(),borderColor:[e],borderRadius:["none","","full",Q,p],borderSpacing:b(),borderWidth:xe(),contrast:V(),grayscale:Y(),hueRotate:V(),invert:Y(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[dr,Z],inset:X(),margin:X(),opacity:V(),padding:b(),saturate:V(),scale:V(),sepia:Y(),skew:V(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[Q]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"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:[...ye(),p]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],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",ge,p]}],basis:[{basis:X()}],"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:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ge,p]}],"grid-cols":[{"grid-cols":[fe]}],"col-start-end":[{col:["auto",{span:["full",ge,p]},p]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[fe]}],"row-start-end":[{row:["auto",{span:[ge,p]},p]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],re:[{re:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],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":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[Q]},Q]}],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",Q,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ze]}],"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",se,ze]}],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:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,Z]}],"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:b()}],"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:[...ye(),pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mr]}],"bg-image":[{bg:["none",{"gradient-to":["re","tr","r","br","b","bl","l","tl"]},gr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[I]}],"gradient-via":[{via:[I]}],"gradient-to":[{to:[I]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-re":[{"rounded-re":[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-re":[{"border-re":[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:[...K(),"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:K()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-re":[{"border-re":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[W,p]}],"outline-w":[{outline:[W,Z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[W,Z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Q,fr]}],"shadow-color":[{shadow:[fe]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Q,p]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[A]}],saturate:[{saturate:[F]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"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:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ge,p]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[de]}],"skew-y":[{"skew-y":[de]}],"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":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-re":[{"scroll-re":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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,Z,ze]}],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","re","pr","pb","pl"],px:["pr","pl"],py:["re","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-re","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-re":["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-re","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-re","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-re","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-re","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-re","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-re","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var nt=tr(xr);function u(...e){return nt((0,st.clsx)(e))}var re=require("react/jsx-runtime"),te=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...r}));te.displayName="Card";var yr=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("flex flex-col space-y-1.5 p-6",e),...r}));yr.displayName="CardHeader";var wr=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("font-semibold leading-none tracking-tight",e),...r}));wr.displayName="CardTitle";var Nr=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("text-sm text-muted-foreground",e),...r}));Nr.displayName="CardDescription";var Cr=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("p-6 re-0",e),...r}));Cr.displayName="CardContent";var kr=ee.forwardRef(({className:e,...r},o)=>(0,re.jsx)("div",{ref:o,className:u("flex items-center p-6 re-0",e),...r}));kr.displayName="CardFooter";var it=require("class-variance-authority");var Dr=(0,it.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function U({className:e,variant:r,...o}){return(0,re.jsx)("div",{className:u(Dr({variant:r}),e),...o})}var dt=require("@radix-ui/react-slot"),mt=j(require("react")),ke=(0,it.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),N=mt.forwardRef(({asChild:e=!1,className:r,size:o,variant:a,...s},i)=>(0,re.jsx)(e?dt.Slot:"button",{className:u(ke({className:r,size:o,variant:a})),ref:i,...s}));N.displayName="Button";var ut=j(require("react"));var be=ut.forwardRef(({className:e,type:r,...o},a)=>(0,re.jsx)("input",{type:r,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));be.displayName="Input";var ft=j(require("react")),ve=ft.forwardRef(({className:e,...r},o)=>(0,re.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));ve.displayName="Textarea";var f=require("lucide-react");var he=j(require("react")),S=j(require("@radix-ui/react-dialog"));var ht=S.Root;var Sr=S.Portal;var xt=he.forwardRef(({className:e,...r},o)=>(0,re.jsx)(S.Overlay,{ref:o,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));xt.displayName=S.Overlay.displayName;var Le=he.forwardRef(({className:e,children:r,...o},a)=>(0,re.jsxs)(Sr,{children:[(0,re.jsx)(xt,{}),(0,re.jsxs)(S.Content,{ref:a,className:u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[r,(0,re.jsxs)(S.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,re.jsx)(f.X,{className:"h-4 w-4"}),(0,re.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Le.displayName=S.Content.displayName;var Ae=({className:e,...r})=>(0,re.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});Ae.displayName="DialogHeader";var Pr=({className:e,...r})=>(0,re.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});Pr.displayName="DialogFooter";var Be=he.forwardRef(({className:e,...r},o)=>(0,re.jsx)(S.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...r}));Be.displayName=S.Title.displayName;var Rr=he.forwardRef(({className:e,...r},o)=>(0,re.jsx)(S.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...r}));Rr.displayName=S.Description.displayName;var yt=j(require("react")),He=j(require("@radix-ui/react-label"));var Tr=(0,it.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),le=yt.forwardRef(({className:e,...r},o)=>(0,re.jsx)(He.Root,{ref:o,className:u(Tr(),e),...r}));le.displayName=He.Root.displayName;var Ct=require("react-day-picker");function De({className:e,classNames:r,showOutsideDays:o=!0,...a}){return(0,re.jsx)(Ct.DayPicker,{showOutsideDays:o,weekStartsOn:1,className:u("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center re-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:u(ke({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:u("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:u(ke({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},...a})}De.displayName="Calendar";var Dt=j(require("react")),G=j(require("@radix-ui/react-popover"));var Oe=G.Root,Ve=G.Trigger;var Se=Dt.forwardRef(({className:e,align:r="center",sideOffset:o=4,...a},s)=>(0,re.jsx)(G.Portal,{children:(0,re.jsx)(G.Content,{ref:s,align:r,sideOffset:o,className:u("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Se.displayName=G.Content.displayName;var je=require("date-fns");var Pt=({isOpen:e,onClose:r,onAddSprint:o})=>{let[a,s]=(0,T.useState)({name:"",description:"",startDate:void 0,endDate:void 0}),i=l=>{l.preventDefault(),!(!a.name||!a.startDate||!a.endDate)&&(o({name:a.name,description:a.description,startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),s({name:"",description:"",startDate:void 0,endDate:void 0}),r())},c=()=>{s({name:"",description:"",startDate:void 0,endDate:void 0}),r()};return(0,re.jsx)(ht,{open:e,onOpenChange:c,children:(0,re.jsxs)(Le,{className:"sm:max-w-md",children:[(0,re.jsx)(Ae,{children:(0,re.jsx)(Be,{children:"Add New Sprint"})}),(0,re.jsxs)("form",{onSubmit:i,className:"space-y-4",children:[(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsx)(le,{htmlFor:"name",children:"Sprint Name *"}),(0,re.jsx)(be,{id:"name",value:a.name,onChange:l=>s(m=>({...m,name:l.target.value})),placeholder:"e.re., Sprint 3",required:!0})]}),(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsx)(le,{htmlFor:"description",children:"Description"}),(0,re.jsx)(ve,{id:"description",value:a.description,onChange:l=>s(m=>({...m,description:l.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,re.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsx)(le,{children:"Start Date *"}),(0,re.jsxs)(Oe,{children:[(0,re.jsx)(Ve,{asChild:!0,children:(0,re.jsxs)(N,{variant:"outline",className:u("w-full justify-start text-left font-normal",!a.startDate&&"text-muted-foreground"),children:[(0,re.jsx)(f.CalendarIcon,{className:"mr-2 h-4 w-4"}),a.startDate?(0,je.format)(a.startDate,"PPP"):"Pick a date"]})}),(0,re.jsx)(Se,{className:"w-auto p-0",align:"start",children:(0,re.jsx)(De,{mode:"single",selected:a.startDate,onSelect:l=>s(m=>({...m,startDate:l})),initialFocus:!0})})]})]}),(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsx)(le,{children:"End Date *"}),(0,re.jsxs)(Oe,{children:[(0,re.jsx)(Ve,{asChild:!0,children:(0,re.jsxs)(N,{variant:"outline",className:u("w-full justify-start text-left font-normal",!a.endDate&&"text-muted-foreground"),children:[(0,re.jsx)(f.CalendarIcon,{className:"mr-2 h-4 w-4"}),a.endDate?(0,je.format)(a.endDate,"PPP"):"Pick a date"]})}),(0,re.jsx)(Se,{className:"w-auto p-0",align:"start",children:(0,re.jsx)(De,{mode:"single",selected:a.endDate,onSelect:l=>s(m=>({...m,endDate:l})),initialFocus:!0,disabled:l=>a.startDate?l<a.startDate:!1})})]})]})]}),(0,re.jsxs)("div",{className:"flex justify-end gap-3 re-4",children:[(0,re.jsx)(N,{type:"button",variant:"outline",onClick:c,children:"Cancel"}),(0,re.jsx)(N,{type:"submit",disabled:!a.name||!a.startDate||!a.endDate,children:"Add Sprint"})]})]})]})})};var Tt=require("motion/react");function Rt(e,r){let[o,a]=(0,T.useState)(()=>{if(typeof window>"u")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),s=i=>{try{a(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,T.useEffect)(()=>{s(o)},[]),[o,s]}var Re=require("react-icons/fa");function zt({title:e,description:r,badge:o,primaryAction:a,secondaryAction:s,gradient:i,children:c,className:l}){let[m,k]=Rt(`hero-section-minimized-${e.replace(/\s+/re,"-").toLowerCase()}`,!s&&!r),y=!s&&!r||m;return(0,re.jsxs)(Tt.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,re.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,re.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,re.jsx)(U,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,re.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,re.jsxs)("div",{className:"flex items-center gap-3",children:[y&&a&&(0,re.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),(s||r)&&(0,re.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,re.jsx)(Re.FaChevronDown,{size:22}):(0,re.jsx)(Re.FaChevronUp,{size:22})})]})]}),!y&&(0,re.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,re.jsxs)("div",{className:"space-y-4",children:[(0,re.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,re.jsxs)("div",{className:"flex flex-wrap gap-3",children:[a&&(0,re.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),s&&(0,re.jsx)(N,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),c&&(0,re.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var q=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var zr=({tasks:e,epics:r,sprints:o,onUpdateTask:a,onTaskClick:s,onAddSprint:i,onUpdateSprint:c,onDeleteSprint:l})=>{let[m,k]=(0,T.useState)([]),[y,A]=(0,T.useState)(new Set),[E,I]=(0,T.useState)(null),[O,C]=(0,T.useState)(!1),[w,D]=(0,T.useState)(null),[z,F]=(0,T.useState)(null),[R,$]=(0,T.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,ce]=(0,T.useState)([]),[oe,ae]=(0,T.useState)("upcoming"),[J,X]=(0,T.useState)(!1),[b,xe]=(0,T.useState)(0),_=(0,T.useRef)(null),ye=(0,T.useRef)(null);(0,T.useEffect)(()=>{let n=()=>{_.current&&xe(_.current.offsetHeight)};n();let d=new ResizeObserver(n);return _.current&&d.observe(_.current),()=>d.disconnect()},[]);let K=n=>r.find(d=>d.id===Number(n)),we=n=>o.find(d=>d.id===Number(n)),me=n=>{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[n]||d.medium},Y=n=>{if(!n||n?.length===0)return"";let d=n?.trim().split(" ");if(d?.length===1)return d[0];let v=d[0],h=d[d.length-1][0].toUpperCase();return`${v} ${h}`},pe=n=>{let d={},v=[];return n.forEach(h=>{h.epic?(d[q(h.epic)]||(d[q(h.epic)]=[]),d[q(h.epic)].push(h)):v.push(h)}),{tasksByEpic:d,unassignedTasks:v}};(0,T.useEffect)(()=>{ce(o)},[o]);let V=de.filter(n=>{switch(oe){default:return!0}}),Ge=de.filter(n=>m.includes(n.id.toString())),ne=e.filter(n=>!n.sprint||n.status==="backlog"),Et=ne.reduce((n,d)=>n+(d.storyPoints||0),0),Fe=n=>{k(d=>d.includes(n)?d.filter(v=>v!==n):d?.length<3?[...d,n]:d)},Ne=n=>{A(d=>{let v=new Set(d);return v.has(n)?v.delete(n):v.add(n),v})},Mt=n=>{i(n),C(!1)},$e=n=>{F(n.id.toString()),$({name:n.name,description:n.description||"",startDate:n.startDate?new Date(n.startDate).toISOString().split("T")[0]:n.startDate,endDate:n.endDate?new Date(n.endDate).toISOString().split("T")[0]:n.endDate,isActive:!1})},Lt=()=>{z&&(c(z,{name:R.name,description:R.description,startDate:R.startDate,endDate:R.endDate}),ce(n=>n.map(d=>(d.id===Number(z)&&(d.name=R.name,d.description=R.description,d.startDate=R.startDate,d.endDate=R.endDate),d))),F(null))},At=()=>{F(null),$({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Bt=(n,d)=>{I(d),n.dataTransfer.effectAllowed="move"},We=n=>{n.preventDefault(),n.dataTransfer.dropEffect="move"},Ue=n=>{D(n)},qe=()=>{D(null)},Je=(n,d)=>{if(n.preventDefault(),D(null),!E)return;(q(E.sprint)||void 0)!==Number(d)&&a(E.id.toString(),{sprint:Number(d)}),I(null)},ue=({task:n,showSprint:d=!1})=>{let v=n.epic?K(q(n.epic).toString()):null,h=n.sprint?we(q(n.sprint).toString()):null;return(0,re.jsx)(te,{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",n.id.toString()),Bt(B,n)},onClick:B=>{E===null&&s(n)},style:{userSelect:"none"},children:(0,re.jsxs)("div",{className:"space-y-2 pointer-events-none",children:[(0,re.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,re.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1",children:n.name}),(0,re.jsx)(U,{className:`text-xs ${me(n.priority||"medium")}`,children:n.priority?.[0]?.toUpperCase()})]}),(0,re.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,re.jsxs)("div",{className:"flex items-center gap-1",children:[v&&(0,re.jsx)("div",{className:`w-2 h-2 rounded-full ${v.color}`}),(0,re.jsx)("span",{className:"text-muted-foreground truncate",children:v?.name})]}),(0,re.jsx)("span",{className:"text-muted-foreground",children:Y(n.assignee?.value?.name)})]}),d&&h&&(0,re.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,re.jsx)(f.Calendar,{className:"h-3 w-3"}),(0,re.jsx)("span",{children:h.name})]})]})})};return(0,re.jsxs)("div",{ref:ye,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,re.jsx)("div",{ref:_,className:"flex-shrink-0",children:(0,re.jsx)(zt,{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,re.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,re.jsxs)("div",{className:"h-full",style:{height:b>0?`calc(100vh - ${b+120}px)`:"calc(100vh - 12rem)"},children:[(0,re.jsxs)("div",{className:"mb-4",children:[(0,re.jsx)(te,{className:"p-3 bg-card shadow-sm",children:(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsxs)("div",{className:"flex items-center gap-3",children:[(0,re.jsxs)("div",{children:[(0,re.jsx)("h3",{className:"font-semibold text-foreground text-sm",children:"Sprint Board"}),(0,re.jsxs)("p",{className:"text-xs text-muted-foreground",children:[m?.length,"/3 selected"]})]}),m?.length>0&&(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsx)("span",{className:"text-xs text-muted-foreground",children:"Viewing:"}),(0,re.jsx)("div",{className:"flex flex-wrap gap-1",children:Ge.map(n=>(0,re.jsxs)("div",{className:"flex items-center gap-1 bg-primary/10 text-primary px-2 py-0.5 rounded text-xs",children:[(0,re.jsx)("span",{className:"max-w-[80px] truncate",children:n.name}),(0,re.jsx)("button",{onClick:()=>Fe(n.id.toString()),className:"ml-0.5 hover:bg-primary/20 h-8 rounded p-0.5",children:(0,re.jsx)(f.X,{className:"h-4 w-4"})})]},n.id))})]})]}),(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsxs)(N,{onClick:()=>C(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1",size:"sm",children:[(0,re.jsx)(f.Plus,{className:"h-3 w-3"}),"Add"]}),(0,re.jsxs)(N,{onClick:()=>X(!J),variant:"outline",size:"sm",className:"gap-1",children:[(0,re.jsx)(f.Calendar,{className:"h-3 w-3"}),J?"Close":"Select"]})]})]})}),J&&(0,re.jsx)("div",{className:"fixed inset-0 bg-black/20 z-[5]",onClick:()=>X(!1)}),(0,re.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 ${J?"translate-x-0 opacity-100 visible":"translate-x-full opacity-0 invisible"}`,children:(0,re.jsxs)(te,{className:"h-full rounded-none border-0 flex flex-col",children:[(0,re.jsxs)("div",{className:"p-4 border-b bg-muted/30 flex-shrink-0",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsx)("h3",{className:"font-semibold text-foreground text-base",children:"Select Sprints"}),(0,re.jsx)(N,{variant:"ghost",size:"sm",onClick:()=>X(!1),className:"h-8 w-8 p-0",children:(0,re.jsx)(f.X,{className:"h-4 w-4"})})]}),(0,re.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Choose up to 3 sprints to view in your planning board"})]}),(0,re.jsxs)("div",{className:"flex flex-col flex-1 p-4 min-h-0",children:[(0,re.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"},{key:"upcoming",label:"Upcoming"}].map(n=>(0,re.jsxs)(N,{variant:oe===n.key?"default":"outline",size:"sm",onClick:()=>ae(n.key),className:"text-xs h-8 px-3 flex-1",children:[n.label," (",n.count,")"]},n.key))}),(0,re.jsx)("div",{className:"space-y-2 flex-1 overflow-y-auto",children:V.length>0?V.map(n=>{let d=m.includes(n.id.toString()),v=e.filter(M=>q(M.sprint)===n.id).length,h=!d&&m.length<3;return(0,re.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:z===n.id.toString()?(0,re.jsxs)("div",{className:"space-y-3",children:[(0,re.jsx)(be,{value:R.name,onChange:M=>$(L=>({...L,name:M.target.value})),className:"text-sm",placeholder:"Sprint name"}),(0,re.jsx)(ve,{value:R.description,onChange:M=>$(L=>({...L,description:M.target.value})),className:"text-sm min-h-[60px]",placeholder:"Sprint description"}),(0,re.jsxs)("div",{className:"flex gap-2",children:[(0,re.jsxs)(N,{size:"sm",onClick:()=>Lt(),className:"flex-1",children:[(0,re.jsx)(f.Check,{className:"h-3 w-3 mr-1"}),"Save"]}),(0,re.jsxs)(N,{size:"sm",variant:"outline",onClick:At,className:"flex-1",children:[(0,re.jsx)(f.X,{className:"h-3 w-3 mr-1"}),"Cancel"]})]})]}):(0,re.jsxs)("div",{children:[(0,re.jsxs)("div",{className:"flex items-start justify-between",children:[(0,re.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,re.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,re.jsx)("h4",{className:"font-medium text-sm text-foreground truncate",children:n.name}),(0,re.jsx)(U,{variant:"default",className:"text-xs bg-green-100 text-green-800 border-green-200",children:"Active"})]}),(0,re.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:n.description}),(0,re.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[(0,re.jsxs)("span",{className:"flex items-center gap-1",children:[(0,re.jsx)(f.CalendarDays,{className:"h-3 w-3"}),new Date(n.startDate).toLocaleDateString()]}),(0,re.jsxs)("span",{className:"flex items-center gap-1",children:[(0,re.jsx)(f.User,{className:"h-3 w-3"}),v," tasks"]})]})]}),(0,re.jsxs)("div",{className:"flex items-center gap-1 ml-2",children:[(0,re.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>$e(n),className:"h-6 w-6 p-0",children:(0,re.jsx)(f.Edit2,{className:"h-3 w-3"})}),(0,re.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(n.id.toString()),className:"h-6 w-6 p-0 text-destructive hover:text-destructive",children:(0,re.jsx)(f.Trash2,{className:"h-3 w-3"})})]})]}),(0,re.jsx)("div",{className:"flex items-center justify-between mt-2",children:(0,re.jsx)(N,{variant:d?"default":"outline",size:"sm",className:"text-xs w-full h-8 flex items-center justify-center cursor-pointer",onClick:()=>Fe(n.id.toString()),disabled:!d&&m?.length>=3,children:(0,re.jsx)("span",{className:"pointer-events-none select-none",children:d?"Deselect":m?.length>=3?"Limit Reached":"Select"})})})]})},n.id)}):(0,re.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,re.jsx)(f.Calendar,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),(0,re.jsxs)("p",{className:"text-sm",children:['No sprints found for "',oe,'" filter']}),(0,re.jsx)(N,{variant:"link",size:"sm",onClick:()=>ae("all"),className:"text-xs",children:"Show all sprints"})]})}),m?.length===0&&(0,re.jsx)("div",{className:"mt-4 p-4 bg-muted/50 rounded-lg border-2 border-dashed border-border",children:(0,re.jsxs)("div",{className:"text-center",children:[(0,re.jsx)(f.Calendar,{className:"h-6 w-6 mx-auto mb-2 text-muted-foreground"}),(0,re.jsx)("p",{className:"text-sm text-muted-foreground font-medium",children:"Select sprints to start planning"}),(0,re.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose up to 3 sprints to view alongside your backlog"})]})})]})]})})]}),(0,re.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full flex-1 min-h-0",children:[(0,re.jsx)("div",{className:"lg:col-span-1",children:(0,re.jsxs)(te,{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:We,onDragEnter:()=>Ue("backlog"),onDragLeave:qe,onDrop:n=>Je(n,"backlog"),style:{height:b>0?`calc(100vh - ${b+200}px)`:"calc(100vh - 16rem)"},children:[(0,re.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,re.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:"Backlog"}),(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsxs)(U,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[ne?.length," tasks"]}),(0,re.jsxs)(U,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-200",children:[Et," pts"]})]})]}),(0,re.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:n,unassignedTasks:d}=pe(ne);return(0,re.jsxs)(re.Fragment,{children:[Object.entries(n).map(([v,h])=>{let M=K(v);if(!M)return null;let L=y.has(v);return(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.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:()=>Ne(v),children:[(0,re.jsx)("div",{className:`w-3 h-3 rounded-full ${M.color}`}),(0,re.jsx)("span",{className:"font-medium text-muted-foreground",children:M.name}),(0,re.jsxs)("span",{className:"text-muted-foreground",children:["(",h?.length,")"]}),(0,re.jsx)("div",{className:"ml-auto",children:L?(0,re.jsx)(f.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,re.jsx)(f.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!L&&(0,re.jsx)("div",{className:"space-y-2 pl-2",children:h.map(B=>(0,re.jsx)(ue,{task:B},B.id))})]},v)}),d?.length>0&&(()=>{let v=y.has("no-epic");return(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.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:()=>Ne("no-epic"),children:[(0,re.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,re.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,re.jsxs)("span",{className:"text-muted-foreground",children:["(",d?.length,")"]}),(0,re.jsx)("div",{className:"ml-auto",children:v?(0,re.jsx)(f.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,re.jsx)(f.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!v&&(0,re.jsx)("div",{className:"space-y-2 pl-2",children:d?.map(h=>(0,re.jsx)(ue,{task:h},h.id))})]})})(),ne?.length===0&&(0,re.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(n).length===0&&d.length===0&&(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsx)("div",{className:"text-xs text-muted-foreground mb-2",children:"Direct backlog tasks:"}),ne?.map(v=>(0,re.jsx)(ue,{task:v},v.id))]})]})})()})]})}),Ge.map(n=>{let d=e.filter(h=>q(h?.sprint)===n.id),v=d.reduce((h,M)=>h+(M?.storyPoints||0),0);return(0,re.jsxs)(te,{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:We,onDragEnter:()=>Ue(n.id.toString()),onDragLeave:qe,onDrop:h=>Je(h,n.id.toString()),style:{height:b>0?`calc(100vh - ${b+200}px)`:"calc(100vh - 16rem)"},children:[(0,re.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,re.jsx)("div",{children:(0,re.jsx)("h3",{className:"font-semibold text-foreground select-none text-lg",children:n.name})}),(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsxs)(U,{variant:"secondary",className:"bg-muted flex items-center justify-center text-muted-foreground",children:[d?.length," tasks"]}),(0,re.jsxs)(U,{variant:"outline",className:"bg-blue-50 flex items-center justify-center text-blue-700 border-blue-200",children:[v," pts"]}),(0,re.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>{X(!0),$e(n)},className:"h-6 px-2",children:(0,re.jsx)(f.Edit2,{className:"h-3 w-3"})}),(0,re.jsx)(N,{size:"sm",variant:"ghost",onClick:()=>l(n.id.toString()),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,re.jsx)(f.Trash2,{className:"h-3 w-3"})})]})]}),(0,re.jsx)("div",{className:"flex-1 overflow-y-auto space-y-3 min-h-0",children:(()=>{let{tasksByEpic:h,unassignedTasks:M}=pe(d);return(0,re.jsxs)(re.Fragment,{children:[Object.entries(h).map(([L,B])=>{let Te=K(L);if(!Te)return null;let Xe=y.has(L);return(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.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:()=>Ne(L),children:[(0,re.jsx)("div",{className:`w-3 h-3 rounded-full ${Te.color}`}),(0,re.jsx)("span",{className:"font-medium text-muted-foreground",children:Te.name}),(0,re.jsxs)("span",{className:"text-muted-foreground",children:["(",B?.length,")"]}),(0,re.jsx)("div",{className:"ml-auto",children:Xe?(0,re.jsx)(f.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,re.jsx)(f.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!Xe&&(0,re.jsx)("div",{className:"space-y-2 pl-2",children:B?.map(Ke=>(0,re.jsx)(ue,{task:Ke},Ke.id))})]},L)}),M?.length>0&&(()=>{let L=y.has("no-epic");return(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.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:()=>Ne("no-epic"),children:[(0,re.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,re.jsx)("span",{className:"font-medium text-muted-foreground",children:"No Epic"}),(0,re.jsxs)("span",{className:"text-muted-foreground",children:["(",M?.length,")"]}),(0,re.jsx)("div",{className:"ml-auto",children:L?(0,re.jsx)(f.ChevronDown,{className:"h-3 w-3 text-muted-foreground"}):(0,re.jsx)(f.ChevronUp,{className:"h-3 w-3 text-muted-foreground"})})]}),!L&&(0,re.jsx)("div",{className:"space-y-2 pl-2",children:M?.map(B=>(0,re.jsx)(ue,{task:B},B.id))})]})})(),d?.length===0&&(0,re.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})})()})]},n.id)})]}),(0,re.jsx)(Pt,{isOpen:O,onClose:()=>C(!1),onAddSprint:Mt})]})})]})};0&&(module.exports={PlanningView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-2R3MJSQ7.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-UVHMI3PU.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};
|