cortex-react-components 2.13.5 → 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-VBSFVJM5.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-Q7KKN6MH.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/{chunk-KY3ELFX5.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-6DQ7FEQQ.mjs → chunk-5WVFEIMC.mjs} +1 -1
- package/dist/{chunk-LQASBVUG.mjs → chunk-62A35O55.mjs} +1 -1
- package/dist/{chunk-57PJ7CHJ.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/chunk-6R36YTGY.mjs +1 -0
- package/dist/{chunk-2AWS5Z43.mjs → chunk-76AKO55V.mjs} +1 -1
- package/dist/{chunk-SPAOEUCG.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-BY5TSHJ5.mjs → chunk-B7AXSCTN.mjs} +1 -1
- package/dist/{chunk-6NED7ZVK.mjs → chunk-CBYI4FLL.mjs} +1 -1
- package/dist/{chunk-NPGGDQ6F.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-S4ES6P3Y.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/chunk-GTXTHH5Y.mjs +4 -0
- package/dist/{chunk-QWFFSMKK.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-75XBZHOC.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-AEFWTCCE.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/{chunk-2VOOH4YJ.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-TUACRDU3.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-B2TBKNIJ.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-FX6IXEMQ.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-FRXZ2OKW.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/{chunk-K4MFTVNB.mjs → chunk-NWISIJFD.mjs} +1 -1
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-RUZVSK25.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/chunk-QC2UWZWL.mjs +1 -0
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/chunk-USGRM22Y.mjs +1 -0
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-ZXJFBN7L.mjs → chunk-XKGBG5FX.mjs} +1 -1
- package/dist/{chunk-N52FSTLG.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/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/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddEpicModal.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/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 +9 -9
- 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/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-7YVVWDS2.mjs +0 -4
- package/dist/chunk-E6Y5COQK.mjs +0 -1
- package/dist/chunk-TOI73VEE.mjs +0 -1
- package/dist/chunk-WSQHAE6Q.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var nt=Object.create;var ee=Object.defineProperty;var st=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ct=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var pt=(e,t)=>{for(var o in t)ee(e,o,{get:t[o],enumerable:!0})},ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of lt(t))!dt.call(e,s)&&s!==o&&ee(e,s,{get:()=>t[s],enumerable:!(r=st(t,s))||r.enumerable});return e};var S=(e,t,o)=>(o=e!=null?nt(ct(e)):{},ze(t||!e||!e.__esModule?ee(o,"default",{value:e,enumerable:!0}):o,e)),mt=e=>ze(ee({},"__esModule",{value:!0}),e);var eo={};pt(eo,{AddTaskModal:()=>Yt});module.exports=mt(eo);var J=require("react");var q=S(require("react")),h=S(require("@radix-ui/react-dialog")),He=require("lucide-react");var We=require("clsx");var ge="-",ut=e=>{let t=ft(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let i=c.split(ge);return i[0]===""&&i.length!==1&&i.shift(),Ge(i,t)||gt(c)},getConflictingClassGroupIds:(c,i)=>{let u=o[c]||[];return i&&r[c]?[...u,...r[c]]:u}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Ge(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(ge);return t.validators.find(({validator:c})=>c(a))?.classGroupId},De=/^\[(.+)\]$/,gt=e=>{if(De.test(e)){let t=De.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ft=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return vt(Object.entries(e.classGroups),o).forEach(([a,c])=>{ue(c,r,a,t)}),r},ue=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:Ae(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(bt(s)){ue(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,c])=>{ue(c,Ae(t,a),o,r)})})},Ae=(e,t)=>{let o=e;return t.split(ge).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},bt=e=>e.isThemeGetter,vt=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,i])=>[t+c,i])):a);return[o,s]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return s(a,c),c},set(a,c){o.has(a)?o.set(a,c):s(a,c)}}},Me="!",ht=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,c=i=>{let u=[],x=0,f=0,n;for(let v=0;v<i.length;v++){let P=i[v];if(x===0){if(P===s&&(r||i.slice(v,v+a)===t)){u.push(i.slice(f,v)),f=v+a;continue}if(P==="/"){n=v;continue}}P==="["?x++:P==="]"&&x--}let R=u.length===0?i:i.substring(f),N=R.startsWith(Me),k=N?R.substring(1):R,w=n&&n>f?n-f:void 0;return{modifiers:u,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:w}};return o?i=>o({className:i,parseClassName:c}):c},xt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},wt=e=>({cache:yt(e.cacheSize),parseClassName:ht(e),...ut(e)}),Pt=/\s+/,Rt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(Pt),i="";for(let u=c.length-1;u>=0;u-=1){let x=c[u],{modifiers:f,hasImportantModifier:n,baseClassName:R,maybePostfixModifierPosition:N}=o(x),k=!!N,w=r(k?R.substring(0,N):R);if(!w){if(!k){i=x+(i.length>0?" "+i:i);continue}if(w=r(R),!w){i=x+(i.length>0?" "+i:i);continue}k=!1}let v=xt(f).join(":"),P=n?v+Me:v,T=P+w;if(a.includes(T))continue;a.push(T);let _=s(w,k);for(let V=0;V<_.length;++V){let K=_[V];a.push(P+K)}i=x+(i.length>0?" "+i:i)}return i};function St(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Le(t))&&(r&&(r+=" "),r+=o);return r}var Le=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Le(e[r]))&&(o&&(o+=" "),o+=t);return o};function Ct(e,...t){let o,r,s,a=c;function c(u){let x=t.reduce((f,n)=>n(f),e());return o=wt(x),r=o.cache.get,s=o.cache.set,a=i,i(u)}function i(u){let x=r(u);if(x)return x;let f=Rt(u,o);return s(u,f),f}return function(){return a(St.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,Tt=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,It=/\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$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D=e=>H(e)||Nt.has(e)||Tt.test(e),A=e=>F(e,"length",Ht),H=e=>!!e&&!Number.isNaN(Number(e)),me=e=>F(e,"number",H),O=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&H(e.slice(0,-1)),d=e=>Ve.test(e),G=e=>kt.test(e),Mt=new Set(["length","size","percentage"]),Lt=e=>F(e,Mt,Ee),Vt=e=>F(e,"position",Ee),Et=new Set(["image","url"]),Bt=e=>F(e,Et,Ut),Wt=e=>F(e,"",Ft),$=()=>!0,F=(e,t,o)=>{let r=Ve.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ht=e=>It.test(e)&&!zt.test(e),Ee=()=>!1,Ft=e=>Dt.test(e),Ut=e=>At.test(e);var _t=()=>{let e=g("colors"),t=g("spacing"),o=g("blur"),r=g("brightness"),s=g("borderColor"),a=g("borderRadius"),c=g("borderSpacing"),i=g("borderWidth"),u=g("contrast"),x=g("grayscale"),f=g("hueRotate"),n=g("invert"),R=g("gap"),N=g("gradientColorStops"),k=g("gradientColorStopPositions"),w=g("inset"),v=g("margin"),P=g("opacity"),T=g("padding"),_=g("saturate"),V=g("scale"),K=g("sepia"),Re=g("skew"),Se=g("space"),Ce=g("translate"),le=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",d,t],b=()=>[d,t],Te=()=>["",D,A],Q=()=>["auto",H,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",d],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[H,d];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[D,A],blur:["none","",G,d],brightness:z(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:b(),borderWidth:Te(),contrast:z(),grayscale:j(),hueRotate:z(),invert:j(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,A],inset:de(),margin:de(),opacity:z(),padding:b(),saturate:z(),scale:z(),sepia:j(),skew:z(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Ne(),d]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-C":[{"overflow-C":ce()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-C":[{"overscroll-C":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-C":[{"inset-C":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,d]}],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",d]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",O,d]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",O,d]},d]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[O,d]},d]}],"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",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-C":[{"gap-C":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-C":[{"space-C":[Se]}],"space-C-reverse":["space-C-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[$]}],"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",d]}],"line-clamp":[{"line-clamp":["none",H,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",D,A]}],"underline-offset":[{"underline-offset":["auto",D,d]}],"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",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","C","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","C","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-C":[{"rounded-C":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-C":[{"border-C":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-C":[{"border-C":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-C":[{"divide-C":[i]}],"divide-C-reverse":["divide-C-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-C":[{"border-C":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-C":[{"border-C":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[D,d]}],"outline-w":[{outline:[D,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[D,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Wt]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[n]}],saturate:[{saturate:[_]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[n]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-C":[{"border-spacing-C":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-C":[{"scale-C":[V]}],rotate:[{rotate:[O,d]}],"translate-x":[{"translate-x":[Ce]}],"translate-C":[{"translate-C":[Ce]}],"skew-x":[{"skew-x":[Re]}],"skew-C":[{"skew-C":[Re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","C","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-pt":[{"scroll-pt":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","C","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-C":[{"touch-pan":["C","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,A,me]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-C"],overscroll:["overscroll-x","overscroll-C"],inset:["inset-x","inset-C","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-C":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-C"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-C","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-C":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-C"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-C"],"border-w-x":["border-w-r","border-w-C"],"border-w-C":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-C"],"border-color-x":["border-color-r","border-color-C"],"border-color-C":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-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-C","touch-pz"],"touch-x":["touch"],"touch-C":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Be=Ct(_t);function m(...e){return Be((0,We.clsx)(e))}var C=require("react/jsx-runtime"),Fe=h.Root;var jt=h.Portal;var Ue=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Overlay,{ref:o,className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=h.Overlay.displayName;var fe=q.forwardRef(({className:e,children:t,...o},r)=>(0,C.jsxs)(jt,{children:[(0,C.jsx)(Ue,{}),(0,C.jsxs)(h.Content,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-C-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,C.jsxs)(h.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,C.jsx)(He.X,{className:"h-4 w-4"}),(0,C.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));fe.displayName=h.Content.displayName;var be=({className:e,...t})=>(0,C.jsx)("div",{className:m("flex flex-col space-C-1.5 text-center sm:text-left",e),...t});be.displayName="DialogHeader";var ve=({className:e,...t})=>(0,C.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ve.displayName="DialogFooter";var ye=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Title,{ref:o,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));ye.displayName=h.Title.displayName;var Ot=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Description,{ref:o,className:m("text-sm text-muted-foreground",e),...t}));Ot.displayName=h.Description.displayName;var _e=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Oe=S(require("react")),$t=(0,je.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"}}}),te=Oe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,$e.jsx)(e?_e.Slot:"button",{className:m($t({className:t,size:o,variant:r})),ref:a,...s}));te.displayName="Button";var qe=S(require("react"));var oe=qe.forwardRef(({className:e,type:t,...o},r)=>(0,C.jsx)("input",{type:t,className:m("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));oe.displayName="Input";var Ze=S(require("react")),he=Ze.forwardRef(({className:e,...t},o)=>(0,C.jsx)("textarea",{className:m("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,...t}));he.displayName="Textarea";var p=S(require("@radix-ui/react-select")),M=S(require("react")),re=p.Root;var ie=p.Value,X=M.forwardRef(({children:e,className:t,...o},r)=>(0,C.jsxs)(p.Trigger,{className:m("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,C.jsx)(p.Icon,{asChild:!0,children:(0,C.jsx)(He.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));X.displayName=p.Trigger.displayName;var Ke=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,C.jsx)(He.ChevronUp,{className:"h-4 w-4"})}));Ke.displayName=p.ScrollUpButton.displayName;var Qe=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,C.jsx)(He.ChevronDown,{className:"h-4 w-4"})}));Qe.displayName=p.ScrollDownButton.displayName;var Z=M.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,C.jsx)(p.Portal,{children:(0,C.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-C-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-C-1",t),position:o,ref:s,...r,children:[(0,C.jsx)(Ke,{}),(0,C.jsx)(p.Viewport,{className:m("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,C.jsx)(Qe,{})]})}));Z.displayName=p.Content.displayName;var qt=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));qt.displayName=p.Label.displayName;var B=M.forwardRef(({children:e,className:t,...o},r)=>(0,C.jsxs)(p.Item,{className:m("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,C.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,C.jsx)(p.ItemIndicator,{children:(0,C.jsx)(He.Check,{className:"h-4 w-4"})})}),(0,C.jsx)(p.ItemText,{children:e})]}));B.displayName=p.Item.displayName;var Xt=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Xt.displayName=p.Separator.displayName;var Ye=S(require("react")),xe=S(require("@radix-ui/react-label"));var Zt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=Ye.forwardRef(({className:e,...t},o)=>(0,C.jsx)(xe.Root,{ref:o,className:m(Zt(),e),...t}));I.displayName=xe.Root.displayName;var W=S(require("react")),U=S(require("@radix-ui/react-toggle-group"));var ot=S(require("react")),we=S(require("@radix-ui/react-toggle"));var Pe=(0,je.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Jt=ot.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,C.jsx)(we.Root,{ref:s,className:m(Pe({variant:t,size:o,className:e})),...r}));Jt.displayName=we.Root.displayName;var at=W.createContext({size:"default",variant:"default"}),ne=W.forwardRef(({className:e,variant:t,size:o,children:r,...s},a)=>(0,C.jsx)(U.Root,{ref:a,className:m("flex items-center justify-center gap-1",e),...s,children:(0,C.jsx)(at.Provider,{value:{variant:t,size:o},children:r})}));ne.displayName=U.Root.displayName;var se=W.forwardRef(({className:e,children:t,variant:o,size:r,...s},a)=>{let c=W.useContext(at);return(0,C.jsx)(U.Item,{ref:a,className:m(Pe({variant:c.variant||o,size:c.size||r}),e),...s,children:t})});se.displayName=U.Item.displayName;var Kt=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:He.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:He.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:He.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:He.Zap}],Qt=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],Yt=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:s,assignees:a,defaultEpicId:c})=>{let[i,u]=(0,J.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:"",sprintId:"none",assignee:""});(0,J.useEffect)(()=>{e&&c&&u(n=>({...n,epicId:c}))},[e,c]),(0,J.useEffect)(()=>{e&&u({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:c||"",sprintId:"none",assignee:""})},[e]);let x=n=>{n.preventDefault(),i.name.trim()&&(o({name:i.name.trim(),description:i.description.trim(),status:"todo",priority:i.priority,type:i.type,storyPoints:i.storyPoints,epic:Number(i.epicId),sprint:Number(i.sprintId),assignee:i.assignee.trim()?{relationTo:"digital-colleagues",value:Number(i.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),u({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:c||"",sprintId:"none",assignee:""}),t())},f=(n,R)=>{u(N=>({...N,[n]:R}))};return(0,C.jsx)(Fe,{open:e,onOpenChange:t,children:(0,C.jsxs)(fe,{className:"sm:max-w-md",children:[(0,C.jsx)(be,{children:(0,C.jsx)(ye,{children:"Add New Task"})}),(0,C.jsxs)("form",{onSubmit:x,className:"space-C-4",children:[(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"name",children:"Task Title"}),(0,C.jsx)(oe,{id:"name",value:i.name,onChange:n=>f("name",n.target.value),placeholder:"Enter task title",required:!0})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"description",children:"Description"}),(0,C.jsx)(he,{id:"description",value:i.description,onChange:n=>f("description",n.target.value),placeholder:"Enter task description",rows:3})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{children:"Type"}),(0,C.jsx)(ne,{type:"single",value:i.type||"",onValueChange:n=>n&&f("type",n),children:Kt.map(n=>{let R=n.icon;return(0,C.jsxs)(se,{value:n.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,C.jsx)(R,{className:"h-4 w-4"}),n.label]},n.value)})})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{children:"Priority"}),(0,C.jsx)(ne,{type:"single",value:i.priority||"",onValueChange:n=>n&&f("priority",n),children:Qt.map(n=>(0,C.jsx)(se,{value:n.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:n.label},n.value))})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"points",children:"Story Points"}),(0,C.jsx)(oe,{id:"points",type:"number",min:"1",max:"100",value:i.storyPoints,onChange:n=>f("storyPoints",parseInt(n.target.value)||1),placeholder:"Enter story points",required:!0})]}),!c&&(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"epic",children:"Epic"}),(0,C.jsxs)(re,{value:i.epicId,onValueChange:n=>f("epicId",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select an epic"})}),(0,C.jsx)(Z,{children:r.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.name]})},n.id))})]})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,C.jsxs)(re,{value:i.sprintId,onValueChange:n=>f("sprintId",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select a sprint"})}),(0,C.jsxs)(Z,{children:[(0,C.jsx)(B,{value:"none",children:"No Sprint"}),s.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsx)("div",{className:"flex items-center gap-2",children:n.name})},n.id))]})]})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(I,{htmlFor:"sprint",children:"Assignee"}),(0,C.jsxs)(re,{value:i.assignee,onValueChange:n=>f("assignee",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select an Assignee"})}),(0,C.jsxs)(Z,{children:[(0,C.jsx)(B,{value:"none",children:"No Assignee"}),a.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsx)("div",{className:"flex items-center gap-2",children:n.name})},n.id))]})]})]}),(0,C.jsxs)(ve,{children:[(0,C.jsx)(te,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,C.jsx)(te,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};0&&(module.exports={AddTaskModal});
|
|
4
|
+
"use strict";var nt=Object.create;var ee=Object.defineProperty;var st=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ct=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var pt=(e,t)=>{for(var o in t)ee(e,o,{get:t[o],enumerable:!0})},De=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of lt(t))!dt.call(e,s)&&s!==o&&ee(e,s,{get:()=>t[s],enumerable:!(r=st(t,s))||r.enumerable});return e};var S=(e,t,o)=>(o=e!=null?nt(ct(e)):{},De(t||!e||!e.__esModule?ee(o,"default",{value:e,enumerable:!0}):o,e)),mt=e=>De(ee({},"__esModule",{value:!0}),e);var eo={};pt(eo,{AddTaskModal:()=>Yt});module.exports=mt(eo);var J=require("react");var q=S(require("react")),h=S(require("@radix-ui/react-dialog")),He=require("lucide-react");var We=require("clsx");var ge="-",ut=e=>{let t=ft(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let i=c.split(ge);return i[0]===""&&i.length!==1&&i.shift(),Ge(i,t)||gt(c)},getConflictingClassGroupIds:(c,i)=>{let u=o[c]||[];return i&&r[c]?[...u,...r[c]]:u}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Ge(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(ge);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Ie=/^\[(.+)\]$/,gt=e=>{if(Ie.test(e)){let t=Ie.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ft=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return vt(Object.entries(e.classGroups),o).forEach(([a,c])=>{ue(c,r,a,t)}),r},ue=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:Ae(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(bt(s)){ue(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,c])=>{ue(c,Ae(t,a),o,r)})})},Ae=(e,t)=>{let o=e;return t.split(ge).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},bt=e=>e.isThemeGetter,vt=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,i])=>[t+c,i])):a);return[o,s]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return s(a,c),c},set(a,c){o.has(a)?o.set(a,c):s(a,c)}}},Me="!",ht=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,c=i=>{let u=[],x=0,f=0,n;for(let v=0;v<i.length;v++){let P=i[v];if(x===0){if(P===s&&(r||i.slice(v,v+a)===t)){u.push(i.slice(f,v)),f=v+a;continue}if(P==="/"){n=v;continue}}P==="["?x++:P==="]"&&x--}let R=u.length===0?i:i.substring(f),N=R.startsWith(Me),k=N?R.substring(1):R,w=n&&n>f?n-f:void 0;return{modifiers:u,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:w}};return o?i=>o({className:i,parseClassName:c}):c},xt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},wt=e=>({cache:yt(e.cacheSize),parseClassName:ht(e),...ut(e)}),Pt=/\s+/,Rt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(Pt),i="";for(let u=c.length-1;u>=0;u-=1){let x=c[u],{modifiers:f,hasImportantModifier:n,baseClassName:R,maybePostfixModifierPosition:N}=o(x),k=!!N,w=r(k?R.substring(0,N):R);if(!w){if(!k){i=x+(i.length>0?" "+i:i);continue}if(w=r(R),!w){i=x+(i.length>0?" "+i:i);continue}k=!1}let v=xt(f).join(":"),P=n?v+Me:v,T=P+w;if(a.includes(T))continue;a.push(T);let _=s(w,k);for(let V=0;V<_.length;++V){let K=_[V];a.push(P+K)}i=x+(i.length>0?" "+i:i)}return i};function St(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Le(t))&&(r&&(r+=" "),r+=o);return r}var Le=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Le(e[r]))&&(o&&(o+=" "),o+=t);return o};function Ct(e,...t){let o,r,s,a=c;function c(u){let x=t.reduce((f,n)=>n(f),e());return o=wt(x),r=o.cache.get,s=o.cache.set,a=i,i(u)}function i(u){let x=r(u);if(x)return x;let f=Rt(u,o);return s(u,f),f}return function(){return a(St.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,Tt=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zt=/\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$/,Dt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>H(e)||Nt.has(e)||Tt.test(e),A=e=>F(e,"length",Ht),H=e=>!!e&&!Number.isNaN(Number(e)),me=e=>F(e,"number",H),O=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&H(e.slice(0,-1)),d=e=>Ve.test(e),G=e=>kt.test(e),Mt=new Set(["length","size","percentage"]),Lt=e=>F(e,Mt,Ee),Vt=e=>F(e,"position",Ee),Et=new Set(["image","url"]),Bt=e=>F(e,Et,Ut),Wt=e=>F(e,"",Ft),$=()=>!0,F=(e,t,o)=>{let r=Ve.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ht=e=>zt.test(e)&&!Dt.test(e),Ee=()=>!1,Ft=e=>It.test(e),Ut=e=>At.test(e);var _t=()=>{let e=g("colors"),t=g("spacing"),o=g("blur"),r=g("brightness"),s=g("borderColor"),a=g("borderRadius"),c=g("borderSpacing"),i=g("borderWidth"),u=g("contrast"),x=g("grayscale"),f=g("hueRotate"),n=g("invert"),R=g("gap"),N=g("gradientColorStops"),k=g("gradientColorStopPositions"),w=g("inset"),v=g("margin"),P=g("opacity"),T=g("padding"),_=g("saturate"),V=g("scale"),K=g("sepia"),Re=g("skew"),Se=g("space"),Ce=g("translate"),le=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",d,t],b=()=>[d,t],Te=()=>["",I,A],Q=()=>["auto",H,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",d],ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[H,d];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[I,A],blur:["none","",G,d],brightness:D(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:b(),borderWidth:Te(),contrast:D(),grayscale:j(),hueRotate:D(),invert:j(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,A],inset:de(),margin:de(),opacity:D(),padding:b(),saturate:D(),scale:D(),sepia:j(),skew:D(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":ze()}],"break-before":[{"break-before":ze()}],"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:[...Ne(),d]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-C":[{"overflow-C":ce()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-C":[{"overscroll-C":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-C":[{"inset-C":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,d]}],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",d]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",O,d]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",O,d]},d]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[O,d]},d]}],"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",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-C":[{"gap-C":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-C":[{"space-C":[Se]}],"space-C-reverse":["space-C-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[$]}],"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",d]}],"line-clamp":[{"line-clamp":["none",H,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,A]}],"underline-offset":[{"underline-offset":["auto",I,d]}],"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",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","C","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","C","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-C":[{"rounded-C":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-C":[{"border-C":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-C":[{"border-C":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-C":[{"divide-C":[i]}],"divide-C-reverse":["divide-C-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-C":[{"border-C":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-C":[{"border-C":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[I,d]}],"outline-w":[{outline:[I,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[I,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Wt]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[n]}],saturate:[{saturate:[_]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[n]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-C":[{"border-spacing-C":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-C":[{"scale-C":[V]}],rotate:[{rotate:[O,d]}],"translate-x":[{"translate-x":[Ce]}],"translate-C":[{"translate-C":[Ce]}],"skew-x":[{"skew-x":[Re]}],"skew-C":[{"skew-C":[Re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","C","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-pt":[{"scroll-pt":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","C","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-C":[{"touch-pan":["C","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,A,me]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-C"],overscroll:["overscroll-x","overscroll-C"],inset:["inset-x","inset-C","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-C":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-C"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-C","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-C":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-C"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-C"],"border-w-x":["border-w-r","border-w-C"],"border-w-C":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-C"],"border-color-x":["border-color-r","border-color-C"],"border-color-C":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-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-C","touch-pz"],"touch-x":["touch"],"touch-C":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Be=Ct(_t);function m(...e){return Be((0,We.clsx)(e))}var C=require("react/jsx-runtime"),Fe=h.Root;var jt=h.Portal;var Ue=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Overlay,{ref:o,className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=h.Overlay.displayName;var fe=q.forwardRef(({className:e,children:t,...o},r)=>(0,C.jsxs)(jt,{children:[(0,C.jsx)(Ue,{}),(0,C.jsxs)(h.Content,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-C-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,C.jsxs)(h.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,C.jsx)(He.X,{className:"h-4 w-4"}),(0,C.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));fe.displayName=h.Content.displayName;var be=({className:e,...t})=>(0,C.jsx)("div",{className:m("flex flex-col space-C-1.5 text-center sm:text-left",e),...t});be.displayName="DialogHeader";var ve=({className:e,...t})=>(0,C.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ve.displayName="DialogFooter";var ye=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Title,{ref:o,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));ye.displayName=h.Title.displayName;var Ot=q.forwardRef(({className:e,...t},o)=>(0,C.jsx)(h.Description,{ref:o,className:m("text-sm text-muted-foreground",e),...t}));Ot.displayName=h.Description.displayName;var _e=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Oe=S(require("react")),$t=(0,je.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"}}}),te=Oe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,$e.jsx)(e?_e.Slot:"button",{className:m($t({className:t,size:o,variant:r})),ref:a,...s}));te.displayName="Button";var qe=S(require("react"));var oe=qe.forwardRef(({className:e,type:t,...o},r)=>(0,C.jsx)("input",{type:t,className:m("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));oe.displayName="Input";var Ze=S(require("react")),he=Ze.forwardRef(({className:e,...t},o)=>(0,C.jsx)("textarea",{className:m("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,...t}));he.displayName="Textarea";var p=S(require("@radix-ui/react-select")),M=S(require("react")),re=p.Root;var ie=p.Value,X=M.forwardRef(({children:e,className:t,...o},r)=>(0,C.jsxs)(p.Trigger,{className:m("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,C.jsx)(p.Icon,{asChild:!0,children:(0,C.jsx)(He.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));X.displayName=p.Trigger.displayName;var Ke=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,C.jsx)(He.ChevronUp,{className:"h-4 w-4"})}));Ke.displayName=p.ScrollUpButton.displayName;var Qe=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,C.jsx)(He.ChevronDown,{className:"h-4 w-4"})}));Qe.displayName=p.ScrollDownButton.displayName;var Z=M.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,C.jsx)(p.Portal,{children:(0,C.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-C-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-C-1",t),position:o,ref:s,...r,children:[(0,C.jsx)(Ke,{}),(0,C.jsx)(p.Viewport,{className:m("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,C.jsx)(Qe,{})]})}));Z.displayName=p.Content.displayName;var qt=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));qt.displayName=p.Label.displayName;var B=M.forwardRef(({children:e,className:t,...o},r)=>(0,C.jsxs)(p.Item,{className:m("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,C.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,C.jsx)(p.ItemIndicator,{children:(0,C.jsx)(He.Check,{className:"h-4 w-4"})})}),(0,C.jsx)(p.ItemText,{children:e})]}));B.displayName=p.Item.displayName;var Xt=M.forwardRef(({className:e,...t},o)=>(0,C.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Xt.displayName=p.Separator.displayName;var Ye=S(require("react")),xe=S(require("@radix-ui/react-label"));var Zt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),z=Ye.forwardRef(({className:e,...t},o)=>(0,C.jsx)(xe.Root,{ref:o,className:m(Zt(),e),...t}));z.displayName=xe.Root.displayName;var W=S(require("react")),U=S(require("@radix-ui/react-toggle-group"));var ot=S(require("react")),we=S(require("@radix-ui/react-toggle"));var Pe=(0,je.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Jt=ot.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,C.jsx)(we.Root,{ref:s,className:m(Pe({variant:t,size:o,className:e})),...r}));Jt.displayName=we.Root.displayName;var at=W.createContext({size:"default",variant:"default"}),ne=W.forwardRef(({className:e,variant:t,size:o,children:r,...s},a)=>(0,C.jsx)(U.Root,{ref:a,className:m("flex items-center justify-center gap-1",e),...s,children:(0,C.jsx)(at.Provider,{value:{variant:t,size:o},children:r})}));ne.displayName=U.Root.displayName;var se=W.forwardRef(({className:e,children:t,variant:o,size:r,...s},a)=>{let c=W.useContext(at);return(0,C.jsx)(U.Item,{ref:a,className:m(Pe({variant:c.variant||o,size:c.size||r}),e),...s,children:t})});se.displayName=U.Item.displayName;var Kt=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:He.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:He.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:He.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:He.Zap}],Qt=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],Yt=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:s,assignees:a,defaultEpicId:c})=>{let[i,u]=(0,J.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:"",sprint:"none",assignee:""});(0,J.useEffect)(()=>{e&&c&&u(n=>({...n,epic:c}))},[e,c]),(0,J.useEffect)(()=>{e&&u({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:c||"",sprint:"none",assignee:""})},[e]);let x=n=>{n.preventDefault(),i.name.trim()&&(o({name:i.name.trim(),description:i.description.trim(),status:"todo",priority:i.priority,type:i.type,storyPoints:i.storyPoints,epic:Number(i.epic),sprint:Number(i.sprint),assignee:i.assignee.trim()?{relationTo:"digital-colleagues",value:Number(i.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),u({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:c||"",sprint:"",assignee:""}),t())},f=(n,R)=>{u(N=>({...N,[n]:R}))};return(0,C.jsx)(Fe,{open:e,onOpenChange:t,children:(0,C.jsxs)(fe,{className:"sm:max-w-md",children:[(0,C.jsx)(be,{children:(0,C.jsx)(ye,{children:"Add New Task"})}),(0,C.jsxs)("form",{onSubmit:x,className:"space-C-4",children:[(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"name",children:"Task Title"}),(0,C.jsx)(oe,{id:"name",value:i.name,onChange:n=>f("name",n.target.value),placeholder:"Enter task title",required:!0})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"description",children:"Description"}),(0,C.jsx)(he,{id:"description",value:i.description,onChange:n=>f("description",n.target.value),placeholder:"Enter task description",rows:3})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{children:"Type"}),(0,C.jsx)(ne,{type:"single",value:i.type||"",onValueChange:n=>n&&f("type",n),children:Kt.map(n=>{let R=n.icon;return(0,C.jsxs)(se,{value:n.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,C.jsx)(R,{className:"h-4 w-4"}),n.label]},n.value)})})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{children:"Priority"}),(0,C.jsx)(ne,{type:"single",value:i.priority||"",onValueChange:n=>n&&f("priority",n),children:Qt.map(n=>(0,C.jsx)(se,{value:n.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:n.label},n.value))})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"points",children:"Story Points"}),(0,C.jsx)(oe,{id:"points",type:"number",min:"1",max:"100",value:i.storyPoints,onChange:n=>f("storyPoints",parseInt(n.target.value)||1),placeholder:"Enter story points",required:!0})]}),!c&&(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"epic",children:"Epic"}),(0,C.jsxs)(re,{value:i.epic,onValueChange:n=>f("epic",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select an epic"})}),(0,C.jsx)(Z,{children:r.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.name]})},n.id))})]})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,C.jsxs)(re,{value:i.sprint,onValueChange:n=>f("sprint",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select a sprint"})}),(0,C.jsxs)(Z,{children:[(0,C.jsx)(B,{value:"none",children:"No Sprint"}),s.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsx)("div",{className:"flex items-center gap-2",children:n.name})},n.id))]})]})]}),(0,C.jsxs)("div",{className:"space-C-2",children:[(0,C.jsx)(z,{htmlFor:"sprint",children:"Assignee"}),(0,C.jsxs)(re,{value:i.assignee,onValueChange:n=>f("assignee",n),children:[(0,C.jsx)(X,{children:(0,C.jsx)(ie,{placeholder:"Select an Assignee"})}),(0,C.jsxs)(Z,{children:[(0,C.jsx)(B,{value:"none",children:"No Assignee"}),a.map(n=>(0,C.jsx)(B,{value:n.id.toString(),children:(0,C.jsx)("div",{className:"flex items-center gap-2",children:n.name})},n.id))]})]})]}),(0,C.jsxs)(ve,{children:[(0,C.jsx)(te,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,C.jsx)(te,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};0&&(module.exports={AddTaskModal});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-QC2UWZWL.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AddTaskModal};
|
|
@@ -6,7 +6,7 @@ interface EpicsViewProps {
|
|
|
6
6
|
sprints: Sprint[];
|
|
7
7
|
onUpdateTask: (taskId: string, updates: Partial<Task>) => void;
|
|
8
8
|
onTaskClick: (task: Task) => void;
|
|
9
|
-
onAddTaskToEpic: (
|
|
9
|
+
onAddTaskToEpic: (task: Omit<Task, 'id' | 'updatedAt' | 'createdAt'>) => void;
|
|
10
10
|
onAddEpic: () => void;
|
|
11
11
|
onUpdateEpic: (epicId: string, updates: Partial<Epic>) => void;
|
|
12
12
|
onDeleteEpic: (epicId: string) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
'use client'
|
|
3
4
|
|
|
4
|
-
"use strict";var Ve=Object.create;var ne=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var _e=(e,t)=>{for(var r in t)ne(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of je(t))!Oe.call(e,s)&&s!==r&&ne(e,s,{get:()=>t[s],enumerable:!(o=$e(t,s))||o.enumerable});return e};var se=(e,t,r)=>(r=e!=null?Ve(Fe(e)):{},fe(t||!e||!e.__esModule?ne(r,"default",{value:e,enumerable:!0}):r,e)),We=e=>fe(ne({},"__esModule",{value:!0}),e);var Pt={};_e(Pt,{EpicsView:()=>zt});module.exports=We(Pt);var L=require("react");var j=se(require("react"));var Ne=require("clsx");var de="-",Ue=e=>{let t=qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(de);return i[0]===""&&i.length!==1&&i.shift(),ve(i,t)||Je(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?ve(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(de);return t.validators.find(({validator:c})=>c(n))?.classGroupId},be=/^\[(.+)\]$/,Je=e=>{if(be.test(e)){let t=be.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},qe=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ze(Object.entries(e.classGroups),r).forEach(([n,c])=>{ce(c,o,n,t)}),o},ce=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:he(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Xe(s)){ce(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,c])=>{ce(c,he(t,n),r,o)})})},he=(e,t)=>{let r=e;return t.split(de).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Xe=e=>e.isThemeGetter,Ze=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,i])=>[t+c,i])):n);return[r,s]}):e,Ke=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,c)=>{r.set(n,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let c=r.get(n);if(c!==void 0)return c;if((c=o.get(n))!==void 0)return s(n,c),c},set(n,c){r.has(n)?r.set(n,c):s(n,c)}}},xe="!",Qe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,c=i=>{let u=[],p=0,v=0,C;for(let b=0;b<i.length;b++){let h=i[b];if(p===0){if(h===s&&(o||i.slice(b,b+n)===t)){u.push(i.slice(v,b)),v=b+n;continue}if(h==="/"){C=b;continue}}h==="["?p++:h==="]"&&p--}let E=u.length===0?i:i.substring(v),w=E.startsWith(xe),N=w?E.substring(1):E,x=C&&C>v?C-v:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:N,maybePostfixModifierPosition:x}};return r?i=>r({className:i,parseClassName:c}):c},Ye=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},et=e=>({cache:Ke(e.cacheSize),parseClassName:Qe(e),...Ue(e)}),tt=/\s+/,rt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],c=e.trim().split(tt),i="";for(let u=c.length-1;u>=0;u-=1){let p=c[u],{modifiers:v,hasImportantModifier:C,baseClassName:E,maybePostfixModifierPosition:w}=r(p),N=!!w,x=o(N?E.substring(0,w):E);if(!x){if(!N){i=p+(i.length>0?" "+i:i);continue}if(x=o(E),!x){i=p+(i.length>0?" "+i:i);continue}N=!1}let b=Ye(v).join(":"),h=C?b+xe:b,R=h+x;if(n.includes(R))continue;n.push(R);let V=s(x,N);for(let H=0;H<V.length;++H){let _=V[H];n.push(h+_)}i=p+(i.length>0?" "+i:i)}return i};function ot(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}var ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function nt(e,...t){let r,o,s,n=c;function c(u){let p=t.reduce((v,C)=>C(v),e());return r=et(p),o=r.cache.get,s=r.cache.set,n=i,i(u)}function i(u){let p=o(u);if(p)return p;let v=rt(u,r);return s(u,v),v}return function(){return n(ot.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},we=/^\[(?:([F-M-]+):)?(.+)\]$/i,st=/^\d+\/\d+$/,at=new Set(["px","full","screen"]),it=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lt=/\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$/,ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dt=/^(inset_)?-?((\d+)?\.?(\d+)[F-M]+|0)_-?((\d+)?\.?(\d+)[F-M]+|0)/,ut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>W(e)||at.has(e)||st.test(e),D=e=>U(e,"length",xt),W=e=>!!e&&!Number.isNaN(Number(e)),le=e=>U(e,"number",W),Q=e=>!!e&&Number.isInteger(Number(e)),pt=e=>e.endsWith("%")&&W(e.slice(0,-1)),d=e=>we.test(e),G=e=>it.test(e),mt=new Set(["length","size","percentage"]),gt=e=>U(e,mt,ke),ft=e=>U(e,"position",ke),bt=new Set(["image","url"]),ht=e=>U(e,bt,wt),vt=e=>U(e,"",yt),Y=()=>!0,U=(e,t,r)=>{let o=we.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},xt=e=>lt.test(e)&&!ct.test(e),ke=()=>!1,yt=e=>dt.test(e),wt=e=>ut.test(e);var kt=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),s=f("borderColor"),n=f("borderRadius"),c=f("borderSpacing"),i=f("borderWidth"),u=f("contrast"),p=f("grayscale"),v=f("hueRotate"),C=f("invert"),E=f("gap"),w=f("gradientColorStops"),N=f("gradientColorStopPositions"),x=f("inset"),b=f("margin"),h=f("opacity"),R=f("padding"),V=f("saturate"),H=f("scale"),_=f("sepia"),ee=f("skew"),te=f("space"),re=f("translate"),q=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",d,t],m=()=>[d,t],l=()=>["",I,D],T=()=>["auto",W,d],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",d],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[W,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[I,D],blur:["none","",G,d],brightness:A(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:m(),borderWidth:l(),contrast:A(),grayscale:K(),hueRotate:A(),invert:K(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[pt,D],inset:oe(),margin:oe(),opacity:A(),padding:m(),saturate:A(),scale:A(),sepia:K(),skew:A(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"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:[...$(),d]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],M:[{M:["auto",Q,d]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",Q,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Q,d]},d]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Q,d]},d]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[te]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[te]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,D]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",le]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",W,le]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,D]}],"underline-offset":[{"underline-offset":["auto",I,d]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),ft]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ht]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[I,d]}],"outline-w":[{outline:[I,D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:l()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[I,D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,vt]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[C]}],saturate:[{saturate:[V]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"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",d]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[Q,d]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,D,le]}],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","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-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 Ce=nt(kt);function S(...e){return Ce((0,Ne.clsx)(e))}var F=require("react/jsx-runtime"),J=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("rounded-xl border bg-card text-card-foreground shadow",e),...t}));J.displayName="Card";var Ct=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("flex flex-col space-y-1.5 p-6",e),...t}));Ct.displayName="CardHeader";var Nt=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("font-semibold leading-none tracking-tight",e),...t}));Nt.displayName="CardTitle";var Tt=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("text-sm text-muted-foreground",e),...t}));Tt.displayName="CardDescription";var St=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("p-6 pt-0",e),...t}));St.displayName="CardContent";var Et=j.forwardRef(({className:e,...t},r)=>(0,F.jsx)("div",{ref:r,className:S("flex items-center p-6 pt-0",e),...t}));Et.displayName="CardFooter";var Te=require("class-variance-authority");var Rt=(0,Te.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 O({className:e,variant:t,...r}){return(0,F.jsx)("div",{className:S(Rt({variant:t}),e),...r})}var Ee=require("@radix-ui/react-slot"),Me=se(require("react")),Mt=(0,Te.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"}}}),P=Me.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,F.jsx)(e?Ee.Slot:"button",{className:S(Mt({className:t,size:r,variant:o})),ref:n,...s}));P.displayName="Button";var M=require("lucide-react"),Pe=({task:e,epic:t,onDragStart:r,onTaskClick:o,isCompact:s=!1})=>{let n=v=>{r(e)},c=()=>{o(e)},i=()=>{switch(e.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},u=()=>{switch(e.type){case"story":return(0,F.jsx)(M.BookOpen,{className:"h-3 w-3"});case"bug":return(0,F.jsx)(M.Bug,{className:"h-3 w-3"});case"spike":return(0,F.jsx)(M.Zap,{className:"h-3 w-3"});case"task":default:return(0,F.jsx)(M.AlertCircle,{className:"h-3 w-3"})}},p=()=>{switch(e.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return s?(0,F.jsx)(J,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:n,onClick:c,children:(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${p()}`,children:u()}),(0,F.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,F.jsxs)(J,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:n,onClick:c,children:[(0,F.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,F.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${p()}`,children:[u(),(0,F.jsx)("span",{className:"capitalize",children:e.type})]}),(0,F.jsxs)("div",{className:"flex gap-1",children:[(0,F.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${i()}`,children:e.priority}),(0,F.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.storyPoints})]})]}),(0,F.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,F.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,F.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)(M.User,{className:"h-4 w-4"}),(0,F.jsx)("span",{children:e.assignee?.value?.name})]}),(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)(M.Calendar,{className:"h-4 w-4"}),(0,F.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()})]})]})]})};var Le=se(require("react"));var ue=Le.forwardRef(({className:e,type:t,...r},o)=>(0,F.jsx)("input",{type:t,className:S("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));ue.displayName="Input";var Ae=se(require("react")),pe=Ae.forwardRef(({className:e,...t},r)=>(0,F.jsx)("textarea",{className:S("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));pe.displayName="Textarea";var De=require("motion/react");function Be(e,t){let[r,o]=(0,L.useState)(()=>{if(typeof window>"u")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{o(n),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,L.useEffect)(()=>{s(r)},[]),[r,s]}var ie=require("react-icons/fa");function Ge({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:c,className:i}){let[u,p]=Be(`hero-section-minimized-${e.replace(/\s+/F,"-").toLowerCase()}`,!s&&!t),v=!s&&!t||u;return(0,F.jsxs)(De.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${i||""}`,children:[(0,F.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,F.jsx)(O,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,F.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[v&&o&&(0,F.jsx)(P,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,F.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!u),style:{lineHeight:0},children:u?(0,F.jsx)(ie.FaChevronDown,{size:22}):(0,F.jsx)(ie.FaChevronUp,{size:22})})]})]}),!v&&(0,F.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,F.jsxs)("div",{className:"space-y-4",children:[(0,F.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,F.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,F.jsx)(P,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,F.jsx)(P,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),c&&(0,F.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var me=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var zt=({tasks:e,epics:t,sprints:r,onUpdateTask:o,onTaskClick:s,onAddTaskToEpic:n,onAddEpic:c,onUpdateEpic:i,onDeleteEpic:u})=>{let[p,v]=(0,L.useState)(null),[C,E]=(0,L.useState)(null),[w,N]=(0,L.useState)({}),[x,b]=(0,L.useState)(0),h=(0,L.useRef)(null),R=(0,L.useRef)(null);(0,L.useEffect)(()=>{let l=()=>{if(h.current){let B=h.current.offsetHeight;b(B)}};l();let T=new ResizeObserver(l);h.current&&T.observe(h.current);let $=()=>{setTimeout(l,100)};return window.addEventListener("storage",$),()=>{T.disconnect(),window.removeEventListener("storage",$)}},[]),(0,L.useEffect)(()=>{let l=setTimeout(()=>{h.current&&b(h.current.offsetHeight)},300);return()=>clearTimeout(l)},[C]);let V=l=>{v(l)},H=l=>{l.preventDefault()},_=(l,T)=>{l.preventDefault(),p&&me(p.epic).toString()!==T&&(o(p.id.toString(),{epic:Number(T)}),v(null))},ee=l=>e.filter(T=>me(T.epic).toString()===l),te=l=>{E(l.id.toString()),N({name:l.name,description:l.description,confidence:l.confidence,phase:l.phase})},re=()=>{C&&w.name&&(i(C.toString(),w),E(null),N({}))},q=()=>{E(null),N({})},X=l=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&u(l)},oe=l=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[l]||`Phase ${l}`,m=l=>{switch(l){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return(0,F.jsxs)("div",{ref:R,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,F.jsx)("div",{ref:h,className:"flex-shrink-0",children:(0,F.jsx)(Ge,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:c}})}),(0,F.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,F.jsx)("div",{className:"h-full overflow-y-auto",style:{height:x>0?`calc(100vh - ${x+120}px)`:"calc(100vh - 12rem)"},children:(0,F.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:t.map(l=>{let T=ee(l.id.toString()),$=T.reduce((y,Z)=>y+(Z.storyPoints||0),0),B=x>0?`calc(100vh - ${x+200}px)`:"calc(100vh - 14rem)";return(0,F.jsxs)(J,{className:`flex flex-col ${C===l.id.toString()?"h-auto":""} bg-card shadow-sm`,style:{height:C===l.id.toString()?"auto":B,minHeight:"400px"},onDragOver:H,onDrop:y=>_(y,l.id.toString()),children:[(0,F.jsx)("div",{className:"p-4 border-b border-border",children:C===l.id.toString()?(0,F.jsxs)("div",{className:"space-y-4",children:[(0,F.jsxs)("div",{className:"flex items-center justify-between",children:[(0,F.jsx)(ue,{value:w.name||"",onChange:y=>N({...w,name:y.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,F.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,F.jsx)(P,{size:"sm",variant:"ghost",onClick:re,className:"p-1 h-8 w-8",children:(0,F.jsx)(M.Check,{className:"h-4 w-4"})}),(0,F.jsx)(P,{size:"sm",variant:"ghost",onClick:q,className:"p-1 h-8 w-8",children:(0,F.jsx)(M.X,{className:"h-4 w-4"})})]})]}),(0,F.jsx)(pe,{value:w.description||"",onChange:y=>N({...w,description:y.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,F.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,F.jsxs)("select",{value:w.confidence||l.confidence,onChange:y=>N({...w,confidence:y.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,F.jsx)("option",{value:"low",children:"Low"}),(0,F.jsx)("option",{value:"medium",children:"Medium"}),(0,F.jsx)("option",{value:"high",children:"High"})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,F.jsx)("select",{value:w.phase?.toString()||l.phase.toString(),onChange:y=>N({...w,phase:parseInt(y.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[1,2,3,4,5,6,7,8,9].map(y=>(0,F.jsxs)("option",{value:y.toString(),children:["Phase ",y]},y))})]})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,F.jsx)("div",{className:`w-4 h-4 rounded-full ${l.color}`}),(0,F.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:l.name}),(0,F.jsxs)("div",{className:"flex gap-1",children:[(0,F.jsx)(P,{size:"sm",variant:"ghost",onClick:()=>te(l),className:"p-1 h-8 w-8",children:(0,F.jsx)(M.Edit2,{className:"h-3 w-3"})}),(0,F.jsx)(P,{size:"sm",variant:"ghost",onClick:()=>X(l.id.toString()),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,F.jsx)(M.Trash2,{className:"h-3 w-3"})})]})]}),(0,F.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,F.jsxs)(O,{className:`text-xs ${m(l.confidence)}`,children:[l.confidence," confidence"]}),(0,F.jsxs)(O,{variant:"outline",className:"text-xs",children:["Phase ",l.phase]}),(0,F.jsxs)(O,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[T.length," tasks"]}),(0,F.jsxs)(O,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[$," pts"]})]}),l.description&&(0,F.jsx)("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:l.description}),(0,F.jsxs)(P,{onClick:()=>n(l.id.toString()),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,F.jsx)(M.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,F.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,F.jsx)("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${p?"border-primary bg-primary/10":"border-border"}`,children:T.length===0?(0,F.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[(0,F.jsx)(M.Move,{className:"h-8 w-8 mb-2"}),(0,F.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):T.map(y=>(0,F.jsx)(Pe,{task:y,epic:l,onDragStart:V,onTaskClick:s,isCompact:!0},y.id))})})]},l.id)})})})})]})};0&&(module.exports={EpicsView});
|
|
5
|
+
"use strict";var zt=Object.create;var ze=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty;var Gt=(e,t)=>{for(var o in t)ze(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ht(t))!Vt.call(e,n)&&n!==o&&ze(e,n,{get:()=>t[n],enumerable:!(r=At(t,n))||r.enumerable});return e};var B=(e,t,o)=>(o=e!=null?zt(Bt(e)):{},Xe(t||!e||!e.__esModule?ze(o,"default",{value:e,enumerable:!0}):o,e)),Ot=e=>Xe(ze({},"__esModule",{value:!0}),e);var Ao={};Gt(Ao,{EpicsView:()=>zo});module.exports=Ot(Ao);var z=require("react");var Y=B(require("react"));var at=require("clsx");var Ue="-",Ft=e=>{let t=$t(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let i=c.split(Ue);return i[0]===""&&i.length!==1&&i.shift(),Qe(i,t)||Wt(c)},getConflictingClassGroupIds:(c,i)=>{let b=o[c]||[];return i&&r[c]?[...b,...r[c]]:b}}},Qe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?Qe(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Ue);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Ze=/^\[(.+)\]$/,Wt=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},$t=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return jt(Object.entries(e.classGroups),o).forEach(([a,c])=>{$e(c,r,a,t)}),r},$e=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Ke(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){$e(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,c])=>{$e(c,Ke(t,a),o,r)})})},Ke=(e,t)=>{let o=e;return t.split(Ue).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ut=e=>e.isThemeGetter,jt=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,i])=>[t+c,i])):a);return[o,n]}):e,_t=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return n(a,c),c},set(a,c){o.has(a)?o.set(a,c):n(a,c)}}},Ye="!",qt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,c=i=>{let b=[],h=0,l=0,s;for(let x=0;x<i.length;x++){let C=i[x];if(h===0){if(C===n&&(r||i.slice(x,x+a)===t)){b.push(i.slice(l,x)),l=x+a;continue}if(C==="/"){s=x;continue}}C==="["?h++:C==="]"&&h--}let R=b.length===0?i:i.substring(l),T=R.startsWith(Ye),H=T?R.substring(1):R,y=s&&s>l?s-l:void 0;return{modifiers:b,hasImportantModifier:T,baseClassName:H,maybePostfixModifierPosition:y}};return o?i=>o({className:i,parseClassName:c}):c},Jt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Xt=e=>({cache:_t(e.cacheSize),parseClassName:qt(e),...Ft(e)}),Zt=/\s+/,Kt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],c=e.trim().split(Zt),i="";for(let b=c.length-1;b>=0;b-=1){let h=c[b],{modifiers:l,hasImportantModifier:s,baseClassName:R,maybePostfixModifierPosition:T}=o(h),H=!!T,y=r(H?R.substring(0,T):R);if(!y){if(!H){i=h+(i.length>0?" "+i:i);continue}if(y=r(R),!y){i=h+(i.length>0?" "+i:i);continue}H=!1}let x=Jt(l).join(":"),C=s?x+Ye:x,A=C+y;if(a.includes(A))continue;a.push(A);let Q=n(y,H);for(let W=0;W<Q.length;++W){let se=Q[W];a.push(C+se)}i=h+(i.length>0?" "+i:i)}return i};function Qt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=et(t))&&(r&&(r+=" "),r+=o);return r}var et=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=et(e[r]))&&(o&&(o+=" "),o+=t);return o};function Yt(e,...t){let o,r,n,a=c;function c(b){let h=t.reduce((l,s)=>s(l),e());return o=Xt(h),r=o.cache.get,n=o.cache.set,a=i,i(b)}function i(b){let h=r(b);if(h)return h;let l=Kt(b,o);return n(b,l),l}return function(){return a(Qt.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,eo=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),oo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ro=/\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$/,ao=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,no=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>me(e)||to.has(e)||eo.test(e),_=e=>ue(e,"length",fo),me=e=>!!e&&!Number.isNaN(Number(e)),We=e=>ue(e,"number",me),xe=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&me(e.slice(0,-1)),g=e=>tt.test(e),q=e=>oo.test(e),lo=new Set(["length","size","percentage"]),co=e=>ue(e,lo,ot),po=e=>ue(e,"position",ot),mo=new Set(["image","url"]),uo=e=>ue(e,mo,vo),go=e=>ue(e,"",bo),we=()=>!0,ue=(e,t,o)=>{let r=tt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},fo=e=>ro.test(e)&&!ao.test(e),ot=()=>!1,bo=e=>io.test(e),vo=e=>no.test(e);var ho=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),r=S("brightness"),n=S("borderColor"),a=S("borderRadius"),c=S("borderSpacing"),i=S("borderWidth"),b=S("contrast"),h=S("grayscale"),l=S("hueRotate"),s=S("invert"),R=S("gap"),T=S("gradientColorStops"),H=S("gradientColorStopPositions"),y=S("inset"),x=S("margin"),C=S("opacity"),A=S("padding"),Q=S("saturate"),W=S("scale"),se=S("sepia"),be=S("skew"),ke=S("space"),De=S("translate"),F=()=>["auto","contain","none"],ve=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",g,t],w=()=>[g,t],Ee=()=>["",j,_],le=()=>["auto",me,g],Me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",g],Ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],d=()=>[me,g];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[j,_],blur:["none","",q,g],brightness:d(),borderColor:[e],borderRadius:["none","","full",q,g],borderSpacing:w(),borderWidth:Ee(),contrast:d(),grayscale:de(),hueRotate:d(),invert:de(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[so,_],inset:he(),margin:he(),opacity:d(),padding:w(),saturate:d(),scale:d(),sepia:de(),skew:d(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[q]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"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:[...Me(),g]}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],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",xe,g]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",xe,g]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,g]},g]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,g]},g]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],ee:[{ee:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],ee:[{ee:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[q]},q]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",q,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",We]}],"font-family":[{font:[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",g]}],"line-clamp":[{"line-clamp":["none",me,We]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,_]}],"underline-offset":[{"underline-offset":["auto",j,g]}],"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:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Me(),po]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[H]}],"gradient-via-pos":[{via:[H]}],"gradient-to-pos":[{to:[H]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ce()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[j,g]}],"outline-w":[{outline:[j,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[j,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",q,go]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",q,g]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[s]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[s]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"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",g]}],duration:[{duration:d()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:d()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[xe,g]}],"translate-x":[{"translate-x":[De]}],"translate-y":[{"translate-y":[De]}],"skew-x":[{"skew-x":[be]}],"skew-y":[{"skew-y":[be]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],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",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-ee":[{"scroll-ee":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-ee":[{"scroll-ee":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,_,We]}],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"],ee:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],ee:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-ee":["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-ee":["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 rt=Yt(ho);function f(...e){return rt((0,at.clsx)(e))}var ee=require("react/jsx-runtime"),ge=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var yo=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 ee-6",e),...t}));yo.displayName="CardHeader";var xo=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));xo.displayName="CardTitle";var wo=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));wo.displayName="CardDescription";var No=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("ee-6 pt-0",e),...t}));No.displayName="CardContent";var So=Y.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("div",{ref:o,className:f("flex items-center ee-6 pt-0",e),...t}));So.displayName="CardFooter";var it=require("class-variance-authority");var Co=(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 te({className:e,variant:t,...o}){return(0,ee.jsx)("div",{className:f(Co({variant:t}),e),...o})}var st=require("@radix-ui/react-slot"),ct=B(require("react")),Po=(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"}}}),I=ct.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,ee.jsx)(e?st.Slot:"button",{className:f(Po({className:t,size:o,variant:r})),ref:a,...n}));I.displayName="Button";var G=require("lucide-react"),pt=({task:e,epic:t,onDragStart:o,onTaskClick:r,isCompact:n=!1})=>{let a=l=>{o(e)},c=()=>{r(e)},i=()=>{switch(e.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},b=()=>{switch(e.type){case"story":return(0,ee.jsx)(G.BookOpen,{className:"h-3 w-3"});case"bug":return(0,ee.jsx)(G.Bug,{className:"h-3 w-3"});case"spike":return(0,ee.jsx)(G.Zap,{className:"h-3 w-3"});case"task":default:return(0,ee.jsx)(G.AlertCircle,{className:"h-3 w-3"})}},h=()=>{switch(e.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return n?(0,ee.jsx)(ge,{className:"ee-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:a,onClick:c,children:(0,ee.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ee.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${h()}`,children:b()}),(0,ee.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,ee.jsxs)(ge,{className:"ee-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:a,onClick:c,children:[(0,ee.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ee.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${h()}`,children:[b(),(0,ee.jsx)("span",{className:"capitalize",children:e.type})]}),(0,ee.jsxs)("div",{className:"flex gap-1",children:[(0,ee.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${i()}`,children:e.priority}),(0,ee.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.storyPoints})]})]}),(0,ee.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,ee.jsx)("ee",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,ee.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,ee.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ee.jsx)(G.User,{className:"h-4 w-4"}),(0,ee.jsx)("span",{children:e.assignee?.value?.name})]}),(0,ee.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ee.jsx)(G.Calendar,{className:"h-4 w-4"}),(0,ee.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()})]})]})]})};var mt=B(require("react"));var $=mt.forwardRef(({className:e,type:t,...o},r)=>(0,ee.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));$.displayName="Input";var gt=B(require("react")),oe=gt.forwardRef(({className:e,...t},o)=>(0,ee.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));oe.displayName="Textarea";var vt=require("motion/react");function bt(e,t){let[o,r]=(0,z.useState)(()=>{if(typeof window>"ee")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{r(a),typeof window<"ee"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,z.useEffect)(()=>{n(o)},[]),[o,n]}var He=require("react-icons/fa");function ht({title:e,description:t,badge:o,primaryAction:r,secondaryAction:n,gradient:a,children:c,className:i}){let[b,h]=bt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),l=!n&&!t||b;return(0,ee.jsxs)(vt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} ee-8 text-white ${i||""}`,children:[(0,ee.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,ee.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,ee.jsx)(te,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,ee.jsx)("h2",{className:"text-3xl font-bold ee-0",children:e})]}),(0,ee.jsxs)("div",{className:"flex items-center gap-3",children:[l&&r&&(0,ee.jsx)(I,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(n||t)&&(0,ee.jsx)("button",{"aria-label":b?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 ee-1 text-white transition-colors",onClick:()=>h(!b),style:{lineHeight:0},children:b?(0,ee.jsx)(He.FaChevronDown,{size:22}):(0,ee.jsx)(He.FaChevronUp,{size:22})})]})]}),!l&&(0,ee.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,ee.jsxs)("div",{className:"space-y-4",children:[(0,ee.jsx)("ee",{className:"max-w-[600px] text-white/80",children:t}),(0,ee.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,ee.jsx)(I,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),n&&(0,ee.jsx)(I,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),c&&(0,ee.jsx)("div",{className:"hidden lg:block",children:c})]})]})}var je=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Ne=B(require("react")),E=B(require("@radix-ui/react-dialog"));var Be=E.Root;var Ro=E.Portal;var xt=Ne.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(E.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xt.displayName=E.Overlay.displayName;var Se=Ne.forwardRef(({className:e,children:t,...o},r)=>(0,ee.jsxs)(Ro,{children:[(0,ee.jsx)(xt,{}),(0,ee.jsxs)(E.Content,{ref:r,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background ee-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,ee.jsxs)(E.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,ee.jsx)(G.X,{className:"h-4 w-4"}),(0,ee.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Se.displayName=E.Content.displayName;var Ce=({className:e,...t})=>(0,ee.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ce.displayName="DialogHeader";var Pe=({className:e,...t})=>(0,ee.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pe.displayName="DialogFooter";var Re=Ne.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(E.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));Re.displayName=E.Title.displayName;var To=Ne.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(E.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));To.displayName=E.Description.displayName;var wt=B(require("react")),_e=B(require("@radix-ui/react-label"));var ko=(0,it.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),L=wt.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(_e.Root,{ref:o,className:f(ko(),e),...t}));L.displayName=_e.Root.displayName;var v=B(require("@radix-ui/react-select")),J=B(require("react")),ae=v.Root;var ie=v.Value,X=J.forwardRef(({children:e,className:t,...o},r)=>(0,ee.jsxs)(v.Trigger,{className:f("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,ee.jsx)(v.Icon,{asChild:!0,children:(0,ee.jsx)(G.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));X.displayName=v.Trigger.displayName;var Ct=J.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(v.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ee.jsx)(G.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=v.ScrollUpButton.displayName;var Pt=J.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(v.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ee.jsx)(G.ChevronDown,{className:"h-4 w-4"})}));Pt.displayName=v.ScrollDownButton.displayName;var Z=J.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,ee.jsx)(v.Portal,{children:(0,ee.jsxs)(v.Content,{className:f("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:n,...r,children:[(0,ee.jsx)(Ct,{}),(0,ee.jsx)(v.Viewport,{className:f("ee-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ee.jsx)(Pt,{})]})}));Z.displayName=v.Content.displayName;var Do=J.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(v.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Do.displayName=v.Label.displayName;var U=J.forwardRef(({children:e,className:t,...o},r)=>(0,ee.jsxs)(v.Item,{className:f("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,ee.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ee.jsx)(v.ItemIndicator,{children:(0,ee.jsx)(G.Check,{className:"h-4 w-4"})})}),(0,ee.jsx)(v.ItemText,{children:e})]}));U.displayName=v.Item.displayName;var Eo=J.forwardRef(({className:e,...t},o)=>(0,ee.jsx)(v.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Eo.displayName=v.Separator.displayName;var Tt=({isOpen:e,onClose:t,onAddEpic:o})=>{let[r,n]=(0,z.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),a=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],c=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],i=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],b=l=>{l.preventDefault(),r.name.trim()&&(o({name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:r.startDate,endDate:r.endDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),n({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString(),endDate:new Date().toISOString(),progress:0}),t())},h=(l,s)=>{n(R=>({...R,[l]:s}))};return(0,ee.jsx)(Be,{open:e,onOpenChange:t,children:(0,ee.jsxs)(Se,{className:"sm:max-w-md",children:[(0,ee.jsx)(Ce,{children:(0,ee.jsx)(Re,{children:"Add New Epic"})}),(0,ee.jsxs)("form",{onSubmit:b,className:"space-y-4",children:[(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"name",children:"Epic Name"}),(0,ee.jsx)($,{id:"name",value:r.name,onChange:l=>h("name",l.target.value),placeholder:"Enter epic name",required:!0})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"description",children:"Description"}),(0,ee.jsx)(oe,{id:"description",value:r.description,onChange:l=>h("description",l.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Color"}),(0,ee.jsx)("div",{className:"flex gap-2 flex-wrap",children:a.map(l=>(0,ee.jsx)("button",{type:"button",onClick:()=>h("color",l),className:`w-8 h-8 rounded-full ${l} ${r.color===l?"ring-2 ring-gray-400":""}`},l))})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Confidence"}),(0,ee.jsxs)(ae,{value:r.confidence,onValueChange:l=>h("confidence",l),children:[(0,ee.jsx)(X,{children:(0,ee.jsx)(ie,{})}),(0,ee.jsx)(Z,{children:c.map(l=>(0,ee.jsx)(U,{value:l.value,children:l.label},l.value))})]})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Phase"}),(0,ee.jsxs)(ae,{value:r.phase.toString(),onValueChange:l=>h("phase",parseInt(l)),children:[(0,ee.jsx)(X,{children:(0,ee.jsx)(ie,{})}),(0,ee.jsx)(Z,{children:i.map(l=>(0,ee.jsx)(U,{value:l.value.toString(),children:l.label},l.value))})]})]})]}),(0,ee.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Start Date"}),(0,ee.jsx)($,{type:"date",value:r.startDate,onChange:l=>h("startDate",l.target.value)})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"End Date"}),(0,ee.jsx)($,{type:"date",value:r.endDate,onChange:l=>h("endDate",l.target.value)})]})]}),(0,ee.jsxs)(Pe,{children:[(0,ee.jsx)(I,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ee.jsx)(I,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var ne=B(require("react")),fe=B(require("@radix-ui/react-toggle-group"));var kt=B(require("react")),qe=B(require("@radix-ui/react-toggle"));var Je=(0,it.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mo=kt.forwardRef(({className:e,variant:t,size:o,...r},n)=>(0,ee.jsx)(qe.Root,{ref:n,className:f(Je({variant:t,size:o,className:e})),...r}));Mo.displayName=qe.Root.displayName;var Mt=ne.createContext({size:"default",variant:"default"}),Ge=ne.forwardRef(({className:e,variant:t,size:o,children:r,...n},a)=>(0,ee.jsx)(fe.Root,{ref:a,className:f("flex items-center justify-center gap-1",e),...n,children:(0,ee.jsx)(Mt.Provider,{value:{variant:t,size:o},children:r})}));Ge.displayName=fe.Root.displayName;var Oe=ne.forwardRef(({className:e,children:t,variant:o,size:r,...n},a)=>{let c=ne.useContext(Mt);return(0,ee.jsx)(fe.Item,{ref:a,className:f(Je({variant:c.variant||o,size:c.size||r}),e),...n,children:t})});Oe.displayName=fe.Item.displayName;var Lo=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:G.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:G.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:G.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:G.Zap}],Io=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],Lt=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:n,assignees:a,defaultEpicId:c})=>{let[i,b]=(0,z.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:"",sprint:"none",assignee:""});(0,z.useEffect)(()=>{e&&c&&b(s=>({...s,epic:c}))},[e,c]),(0,z.useEffect)(()=>{e&&b({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:c||"",sprint:"none",assignee:""})},[e]);let h=s=>{s.preventDefault(),i.name.trim()&&(o({name:i.name.trim(),description:i.description.trim(),status:"todo",priority:i.priority,type:i.type,storyPoints:i.storyPoints,epic:Number(i.epic),sprint:Number(i.sprint),assignee:i.assignee.trim()?{relationTo:"digital-colleagues",value:Number(i.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),b({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:c||"",sprint:"",assignee:""}),t())},l=(s,R)=>{b(T=>({...T,[s]:R}))};return(0,ee.jsx)(Be,{open:e,onOpenChange:t,children:(0,ee.jsxs)(Se,{className:"sm:max-w-md",children:[(0,ee.jsx)(Ce,{children:(0,ee.jsx)(Re,{children:"Add New Task"})}),(0,ee.jsxs)("form",{onSubmit:h,className:"space-y-4",children:[(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"name",children:"Task Title"}),(0,ee.jsx)($,{id:"name",value:i.name,onChange:s=>l("name",s.target.value),placeholder:"Enter task title",required:!0})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"description",children:"Description"}),(0,ee.jsx)(oe,{id:"description",value:i.description,onChange:s=>l("description",s.target.value),placeholder:"Enter task description",rows:3})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Type"}),(0,ee.jsx)(Ge,{type:"single",value:i.type||"",onValueChange:s=>s&&l("type",s),children:Lo.map(s=>{let R=s.icon;return(0,ee.jsxs)(Oe,{value:s.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,ee.jsx)(R,{className:"h-4 w-4"}),s.label]},s.value)})})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{children:"Priority"}),(0,ee.jsx)(Ge,{type:"single",value:i.priority||"",onValueChange:s=>s&&l("priority",s),children:Io.map(s=>(0,ee.jsx)(Oe,{value:s.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:s.label},s.value))})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"points",children:"Story Points"}),(0,ee.jsx)($,{id:"points",type:"number",min:"1",max:"100",value:i.storyPoints,onChange:s=>l("storyPoints",parseInt(s.target.value)||1),placeholder:"Enter story points",required:!0})]}),!c&&(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"epic",children:"Epic"}),(0,ee.jsxs)(ae,{value:i.epic,onValueChange:s=>l("epic",s),children:[(0,ee.jsx)(X,{children:(0,ee.jsx)(ie,{placeholder:"Select an epic"})}),(0,ee.jsx)(Z,{children:r.map(s=>(0,ee.jsx)(U,{value:s.id.toString(),children:(0,ee.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ee.jsx)("div",{className:`w-3 h-3 rounded-full ${s.color}`}),s.name]})},s.id))})]})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,ee.jsxs)(ae,{value:i.sprint,onValueChange:s=>l("sprint",s),children:[(0,ee.jsx)(X,{children:(0,ee.jsx)(ie,{placeholder:"Select a sprint"})}),(0,ee.jsxs)(Z,{children:[(0,ee.jsx)(U,{value:"none",children:"No Sprint"}),n.map(s=>(0,ee.jsx)(U,{value:s.id.toString(),children:(0,ee.jsx)("div",{className:"flex items-center gap-2",children:s.name})},s.id))]})]})]}),(0,ee.jsxs)("div",{className:"space-y-2",children:[(0,ee.jsx)(L,{htmlFor:"sprint",children:"Assignee"}),(0,ee.jsxs)(ae,{value:i.assignee,onValueChange:s=>l("assignee",s),children:[(0,ee.jsx)(X,{children:(0,ee.jsx)(ie,{placeholder:"Select an Assignee"})}),(0,ee.jsxs)(Z,{children:[(0,ee.jsx)(U,{value:"none",children:"No Assignee"}),a.map(s=>(0,ee.jsx)(U,{value:s.id.toString(),children:(0,ee.jsx)("div",{className:"flex items-center gap-2",children:s.name})},s.id))]})]})]}),(0,ee.jsxs)(Pe,{children:[(0,ee.jsx)(I,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,ee.jsx)(I,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var zo=({tasks:e,epics:t,sprints:o,onUpdateTask:r,onTaskClick:n,onAddTaskToEpic:a,onAddEpic:c,onUpdateEpic:i,onDeleteEpic:b})=>{let[h,l]=(0,z.useState)(t),[s,R]=(0,z.useState)(null),[T,H]=(0,z.useState)(null),[y,x]=(0,z.useState)({}),[C,A]=(0,z.useState)(0),[Q,W]=(0,z.useState)(!1),[se,be]=(0,z.useState)(!1),[ke,De]=(0,z.useState)(null),F=(0,z.useRef)(null),ve=(0,z.useRef)(null);(0,z.useEffect)(()=>{l(t)},[t]),(0,z.useEffect)(()=>{let d=()=>{if(F.current){let Fe=F.current.offsetHeight;A(Fe)}};d();let k=new ResizeObserver(d);F.current&&k.observe(F.current);let pe=()=>{setTimeout(d,100)};return window.addEventListener("storage",pe),()=>{k.disconnect(),window.removeEventListener("storage",pe)}},[]),(0,z.useEffect)(()=>{let d=setTimeout(()=>{F.current&&A(F.current.offsetHeight)},300);return()=>clearTimeout(d)},[T]);let he=d=>{R(d)},w=d=>{d.preventDefault()},Ee=(d,k)=>{d.preventDefault(),s&&je(s.epic).toString()!==k&&(r(s.id.toString(),{epic:Number(k)}),R(null))},le=d=>e.filter(k=>je(k.epic).toString()===d),Me=d=>{H(d.id.toString()),x({name:d.name,description:d.description,confidence:d.confidence,phase:d.phase})},ce=async()=>{T&&y.name&&(await i(T.toString(),y),l(d=>d.map(k=>k.id.toString()===T?{...k,...y}:k)),H(null),x({}))},Le=()=>{H(null),x({})},ye=async d=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&(await b(d),l(k=>k.filter(pe=>pe.id.toString()!==d)))},de=d=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[d]||`Phase ${d}`,Ie=d=>{switch(d){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{ref:ve,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,ee.jsx)("div",{ref:F,className:"flex-shrink-0",children:(0,ee.jsx)(ht,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:()=>W(!0)}})}),(0,ee.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,ee.jsx)("div",{className:"h-full overflow-y-auto",style:{height:C>0?`calc(100vh - ${C+120}px)`:"calc(100vh - 12rem)"},children:(0,ee.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:h.map(d=>{let k=le(d.id.toString()),pe=k.reduce((M,It)=>M+(It.storyPoints||0),0),Fe=C>0?`calc(100vh - ${C+200}px)`:"calc(100vh - 14rem)";return(0,ee.jsxs)(ge,{className:`flex flex-col ${T===d.id.toString()?"h-auto":""} bg-card shadow-sm`,style:{height:T===d.id.toString()?"auto":Fe,minHeight:"400px"},onDragOver:w,onDrop:M=>Ee(M,d.id.toString()),children:[(0,ee.jsx)("div",{className:"ee-4 border-b border-border",children:T===d.id.toString()?(0,ee.jsxs)("div",{className:"space-y-4",children:[(0,ee.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ee.jsx)($,{value:y.name||"",onChange:M=>x({...y,name:M.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,ee.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,ee.jsx)(I,{size:"sm",variant:"ghost",onClick:ce,className:"ee-1 h-8 w-8",children:(0,ee.jsx)(G.Check,{className:"h-4 w-4"})}),(0,ee.jsx)(I,{size:"sm",variant:"ghost",onClick:Le,className:"ee-1 h-8 w-8",children:(0,ee.jsx)(G.X,{className:"h-4 w-4"})})]})]}),(0,ee.jsx)(oe,{value:y.description||"",onChange:M=>x({...y,description:M.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,ee.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,ee.jsxs)("div",{children:[(0,ee.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,ee.jsxs)("select",{value:y.confidence||d.confidence,onChange:M=>x({...y,confidence:M.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[(0,ee.jsx)("option",{value:"low",children:"Low"}),(0,ee.jsx)("option",{value:"medium",children:"Medium"}),(0,ee.jsx)("option",{value:"high",children:"High"})]})]}),(0,ee.jsxs)("div",{children:[(0,ee.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,ee.jsx)("select",{value:y.phase?.toString()||d.phase.toString(),onChange:M=>x({...y,phase:parseInt(M.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[1,2,3,4,5,6,7,8,9].map(M=>(0,ee.jsxs)("option",{value:M.toString(),children:["Phase ",M]},M))})]})]})]}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ee.jsx)("div",{className:`w-4 h-4 rounded-full ${d.color}`}),(0,ee.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:d.name}),(0,ee.jsxs)("div",{className:"flex gap-1",children:[(0,ee.jsx)(I,{size:"sm",variant:"ghost",onClick:()=>Me(d),className:"ee-1 h-8 w-8",children:(0,ee.jsx)(G.Edit2,{className:"h-3 w-3"})}),(0,ee.jsx)(I,{size:"sm",variant:"ghost",onClick:()=>ye(d.id.toString()),className:"ee-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,ee.jsx)(G.Trash2,{className:"h-3 w-3"})})]})]}),(0,ee.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,ee.jsxs)(te,{className:`text-xs ${Ie(d.confidence)}`,children:[d.confidence," confidence"]}),(0,ee.jsxs)(te,{variant:"outline",className:"text-xs",children:["Phase ",d.phase]}),(0,ee.jsxs)(te,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[k.length," tasks"]}),(0,ee.jsxs)(te,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[pe," pts"]})]}),d.description&&(0,ee.jsx)("ee",{className:"text-sm text-muted-foreground mb-3 select-none",children:d.description}),(0,ee.jsxs)(I,{onClick:()=>{be(!0),De(d)},variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,ee.jsx)(G.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,ee.jsx)("div",{className:"flex-1 ee-4 overflow-y-auto",children:(0,ee.jsx)("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded ee-3 transition-colors ${s?"border-primary bg-primary/10":"border-border"}`,children:k.length===0?(0,ee.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[(0,ee.jsx)(G.Move,{className:"h-8 w-8 mb-2"}),(0,ee.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):k.map(M=>(0,ee.jsx)(pt,{task:M,epic:d,onDragStart:he,onTaskClick:n,isCompact:!0},M.id))})})]},d.id)})})})})]}),(0,ee.jsx)(Tt,{isOpen:Q,onClose:()=>W(!1),onAddEpic:c}),(0,ee.jsx)(Lt,{isOpen:se,onClose:()=>be(!1),onAddTask:a,assignees:[],epics:[],defaultEpicId:ke?.id.toString()||"",sprints:o})]})};0&&(module.exports={EpicsView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-USGRM22Y.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-6R36YTGY.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-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 EpicsView};
|