@ehfuse/taskbox 0.5.98 → 0.5.99
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/index.esm.js +1 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10,5 +10,5 @@ var Sl="waiting",lS="replied";import{createContext as Xm,useContext as Qm,useMem
|
|
|
10
10
|
`).replace(/<[^>]+>/g,"").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&/gi,"&").replace(/\n{3,}/g,`
|
|
11
11
|
|
|
12
12
|
`).trim():"";function yT(e){let o=[`[\uC5C5\uBB34] ${e.title}`],t=nt(e.start_date),n=nt(e.due_date);(t||n)&&o.push(`\uAE30\uAC04: ${t&&n?`${t} ~ ${n}`:t||n}`),e.manager_name&&o.push(`\uCC45\uC784\uC790: ${e.manager_name}`);let r=Bo(e).name;r&&o.push(`\uC0C1\uD0DC: ${r}`);let i=om(e.content);i&&o.push("",i);let a=String(e.note??"").trim();return a&&o.push("",`\uBE44\uACE0: ${a}`),o.join(`
|
|
13
|
-
`)}function tm(e){navigator.clipboard.writeText(e).then(()=>TT("\uC5C5\uBB34 \uB0B4\uC6A9\uC744 \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4.")).catch(()=>kT("\uBCF5\uC0AC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB0B4\uC6A9\uC744 \uC9C1\uC811 \uC120\uD0DD\uD574 \uBCF5\uC0AC\uD574 \uC8FC\uC138\uC694."))}function Un(e,o){let t=yT(e);if(o&&typeof navigator.share=="function"){navigator.share({text:t}).catch(n=>{n?.name!=="AbortError"&&tm(t)});return}tm(t)}import{Fragment as DT,jsx as oo,jsxs as rm}from"react/jsx-runtime";function im({task:e,myAccountSeq:o=0,onToggleCompleted:t,onChangeTitle:n,onChangeIcon:r,onChangeIconColor:i,onClose:a,appBarMode:l=!1}){let u=Ne(),[s,c]=nm(null),[m,d]=nm(null),p=vn(e.icon||(e.is_notice?So:e.is_event?"event":Ee)),x=!!e.is_notice,D=!!e.is_event,T=x&&o>0&&(e.author_account_seq??0)===o,g=!xt(e,o),f=!D&&(x?T:(e.author_account_seq??0)===o||(e.manager_account_seq??0)===o);return rm(DT,{children:[rm(vi,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1.5,flexShrink:0},children:[l&&a?oo(Ii,{"aria-label":"\uB4A4\uB85C",onClick:a,sx:{color:"#37352f",ml:-1},children:oo(CT,{})}):null,f&&!l?oo(Xa,{title:e.completed&&e.completed_by?`${e.completed_by} \xB7 ${gt(e.completed_time)} \uC644\uB8CC`:e.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC",arrow:!0,disableInteractive:!0,slotProps:{transition:{timeout:0}},children:oo(ST,{checked:e.completed,icon:oo(wT,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:oo(_T,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(B,C)=>t(e.seq,C),sx:{p:0}})}):null,l?null:oo(Xa,{title:g?"":"\uC544\uC774\uCF58 \uBCC0\uACBD",arrow:!0,children:oo(Ii,{size:"small",onClick:g?void 0:B=>d(B.currentTarget),sx:{color:e.icon_color||(x?"#e5484d":"#1e3a8a")},children:oo(p,{sx:{fontSize:20}})})}),s!==null?oo(vi,{component:"input",autoFocus:!0,spellCheck:!1,value:s,onChange:B=>c(B.target.value),onBlur:()=>{s.trim()&&s.trim()!==e.title&&n(e.seq,s.trim()),c(null)},onKeyDown:B=>{B.key==="Enter"&&B.target.blur(),B.key==="Escape"&&c(null)},sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:18,fontWeight:500,color:"#37352f",p:0,m:0}}):l?oo(vi,{sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x?"\uACF5\uC9C0":D?"\uC77C\uC815":e.is_bug?"\uC624\uB958":"\uC5C5\uBB34"}):oo(vi,{onClick:g?void 0:()=>c(e.title),sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:g?"default":"text",textDecoration:e.completed?"line-through":"none"},children:e.title}),oo(Xa,{title:u?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",arrow:!0,children:oo(Ii,{"aria-label":u?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",onClick:()=>Un(e,u),sx:{color:"#6b7280"},children:u?oo(vT,{sx:{fontSize:20}}):oo(IT,{sx:{fontSize:20}})})}),a&&!l?oo(Ii,{"aria-label":"\uB2EB\uAE30",onClick:a,sx:{color:"#6b7280"},children:oo(BT,{})}):null]}),oo(Wn,{anchorEl:m,value:e.icon||(x?So:""),color:e.icon_color||(x?"#e5484d":"#1e3a8a"),onSelect:B=>r(e.seq,B),onSelectColor:B=>i?.(e.seq,B),onClose:()=>d(null)})]})}import{useState as Pt}from"react";import{Box as io,Button as Gn,ButtonBase as jT,Checkbox as XT,Divider as hn,IconButton as QT,Menu as JT,MenuItem as ZT}from"@mui/material";import ey from"@mui/icons-material/ExpandLess";import oy from"@mui/icons-material/ExpandMore";import ty from"@mui/icons-material/ConfirmationNumberOutlined";import ny from"@mui/icons-material/Check";import ry from"@mui/icons-material/DirectionsRunOutlined";import iy from"@mui/icons-material/SpeedOutlined";import ol from"@mui/icons-material/CheckCircle";import ay from"@mui/icons-material/CheckCircleOutlineOutlined";import tl from"@mui/icons-material/CheckCircleOutlined";import fm from"@mui/icons-material/AccessTimeOutlined";import ly from"@mui/icons-material/AutorenewOutlined";import sy from"@mui/icons-material/LabelOutlined";import cy from"@mui/icons-material/PersonOutlineOutlined";import my from"@mui/icons-material/SubjectOutlined";import uy from"@mui/icons-material/StickyNote2Outlined";import dy from"@mui/icons-material/PanToolAltOutlined";import{useState as MT}from"react";import{TextField as ET}from"@ehfuse/mui-form-controls";import{jsx as OT}from"react/jsx-runtime";function am({value:e,onCommit:o,onDraftChange:t,readOnly:n=!1}){let[r,i]=MT(null);return OT(ET,{value:r??e,placeholder:n?"":"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",slotProps:{input:{readOnly:n}},onChange:a=>{i(a.target.value),t?.(a.target.value)},onBlur:()=>{r!==null&&r.trim()!==e&&o(r),i(null)},onKeyDown:a=>{a.key==="Enter"&&a.target.blur(),a.key==="Escape"&&i(null)},sx:{mt:1}})}import{useMemo as um,useState as Za}from"react";import{Box as fo,Button as dm,IconButton as $T}from"@mui/material";import KT from"@mui/icons-material/AccountTreeOutlined";import UT from"@mui/icons-material/Add";import VT from"@mui/icons-material/Close";import GT from"@mui/icons-material/NextPlanOutlined";function gn(e){return e.relations??[]}function rR(e,o,t){return gn(e).some(n=>n.type===t&&n.task_seq===o.seq)||gn(o).some(n=>n.type===t&&n.task_seq===e.seq)}function lm(e){return`${e.created_time??""}|${String(e.seq).padStart(12,"0")}`}function sm(e,o){let t=new Map(o.map(p=>[p.seq,p]));t.set(e.seq,e);let n=new Map,r=(p,x)=>{n.has(p)||n.set(p,new Set),n.has(x)||n.set(x,new Set),n.get(p).add(x),n.get(x).add(p)};for(let p of t.values())for(let x of gn(p))x.type==="follow_up"&&t.has(x.task_seq)&&r(p.seq,x.task_seq);let i=new Set([e.seq]),a=[e.seq];for(;a.length>0;){let p=a.shift();for(let x of n.get(p)??[])i.has(x)||(i.add(x),a.push(x))}let l=[...i].map(p=>t.get(p)).filter(p=>!!p).sort((p,x)=>lm(p).localeCompare(lm(x))),u=new Set;for(let p of gn(e))p.type==="related"&&u.add(p.task_seq);for(let p of t.values())p.seq!==e.seq&&gn(p).some(x=>x.type==="related"&&x.task_seq===e.seq)&&u.add(p.seq);let s=[...u].map(p=>t.get(p)).filter(p=>p!==void 0&&p.seq!==e.seq),c=[...t.values()].filter(p=>p.seq!==e.seq&&gn(p).some(x=>x.type==="duplicate_of"&&x.task_seq===e.seq)),m=gn(e).find(p=>p.type==="duplicate_of")?.task_seq,d=m?t.get(m)??null:null;return{lineage:l,related:s,duplicates:c,duplicateOf:d}}import{useEffect as PT,useMemo as RT,useState as Qa}from"react";import{Box as Vn,Button as zT,Tab as qT,Tabs as AT}from"@mui/material";import LT from"@mui/icons-material/Check";import{FormDialog as NT}from"@ehfuse/mui-form-dialog";import{ClearTextField as FT}from"@ehfuse/mui-form-controls";import{ErrorAlert as HT}from"@ehfuse/alerts";import{OverlayScrollbar as WT}from"@ehfuse/overlay-scrollbar";import{jsx as Lo,jsxs as Ja}from"react/jsx-runtime";var cm=[{type:"related",label:"\uAD00\uB828",hint:"\uB2E8\uC21C\uD788 \uAD00\uB828 \uC788\uB294 \uC5C5\uBB34\uB85C \uC5F0\uACB0\uD569\uB2C8\uB2E4"},{type:"follow_up",label:"\uC774\uC804 \uC5C5\uBB34",hint:"\uC774 \uC5C5\uBB34\uAC00 \uC120\uD0DD\uD55C \uC5C5\uBB34\uC5D0\uC11C \uC774\uC5B4\uC9C4 \uD6C4\uC18D\uC784\uC744 \uD45C\uC2DC\uD569\uB2C8\uB2E4(\uC774\uB825 \uD0C0\uC784\uB77C\uC778)"},{type:"duplicate_of",label:"\uC911\uBCF5(\uC6D0\uBCF8)",hint:"\uC774 \uC5C5\uBB34\uAC00 \uC120\uD0DD\uD55C \uC6D0\uBCF8 \uC5C5\uBB34\uC758 \uC911\uBCF5\uC784\uC744 \uD45C\uC2DC\uD569\uB2C8\uB2E4"}];function mm({open:e,task:o,tasks:t,excludeSeqs:n=[],onClose:r,onSubmit:i}){let[a,l]=Qa("related"),[u,s]=Qa(""),[c,m]=Qa(0);PT(()=>{e&&(l("related"),s(""),m(0))},[e]);let d=RT(()=>{let T=new Set([o.seq,...n]),g=u.trim().toLowerCase();return t.filter(f=>T.has(f.seq)||f.is_event||f.is_notice?!1:g?f.title.toLowerCase().includes(g)||(f.ticket_no??"").toLowerCase().includes(g):!0)},[t,o.seq,n,u]),p=()=>{if(!c){HT("\uC5F0\uACB0\uD560 \uC5C5\uBB34\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return}i(c,a),r()},x=cm.find(T=>T.type===a)?.hint??"",D=Ja(Vn,{children:[Lo(AT,{value:a,onChange:(T,g)=>l(g),sx:{minHeight:38,mb:.75,"& .MuiTab-root":{minHeight:38,py:.5,fontSize:14}},children:cm.map(T=>Lo(qT,{value:T.type,label:T.label},T.type))}),Lo(Vn,{sx:{mb:1.5,fontSize:12.5,color:"#9a9a97"},children:x}),Lo(FT,{label:"\uC5C5\uBB34 \uAC80\uC0C9",placeholder:"\uC81C\uBAA9\xB7\uD2F0\uCF13\uBC88\uD638\uB85C \uAC80\uC0C9",value:u,onChange:T=>s(T.target.value),fullWidth:!0,autoFocus:!0}),Lo(Vn,{sx:{mt:1.5,height:300,border:"1px solid #e6e6e3",borderRadius:1},children:Lo(WT,{style:{height:"100%"},children:d.length===0?Lo(Vn,{sx:{py:4,textAlign:"center",fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uD560 \uC218 \uC788\uB294 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):d.map(T=>{let g=Ke(T.icon||Ee),f=T.seq===c;return Ja(Vn,{onClick:()=>m(f?0:T.seq),sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.75,cursor:"pointer",bgcolor:f?"#e3eefb":"transparent","&:hover":{bgcolor:f?"#e3eefb":"#f7f7f5"}},children:[g?Lo(g,{sx:{fontSize:17,flexShrink:0,color:T.icon_color||"#1e3a8a"}}):null,Ja(Vn,{component:"span",sx:{flex:1,minWidth:0,fontSize:14,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[T.ticket_no?`${T.ticket_no} `:"",T.title]}),Lo(Pe,{option:Bo(T),small:!0}),f?Lo(LT,{sx:{fontSize:17,flexShrink:0,color:"#2f80ed"}}):null]},T.seq)})})})]});return Lo(NT,{open:e,onClose:r,maxWidth:"sm",title:"\uAD00\uB828 \uC5C5\uBB34 \uC5F0\uACB0",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-link",sections:[{id:"task-link",showTitle:!1,children:D}],actions:{showCancelButton:!0,right:Lo(zT,{variant:"contained",disabled:!c,onClick:p,children:"\uC5F0\uACB0"})}})}import{Fragment as YT,jsx as $e,jsxs as jo}from"react/jsx-runtime";function el({item:e,caption:o,onOpen:t,onUnlink:n}){let r=Ke(e.icon||Ee);return jo(fo,{sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.5,borderRadius:1,"&:hover":{bgcolor:"#f7f7f5"},"&:hover .taskbox-relation-unlink":{opacity:1}},children:[o?$e(fo,{component:"span",sx:{flexShrink:0,px:.6,py:.1,borderRadius:.75,fontSize:11.5,fontWeight:500,color:"#8a6d1d",bgcolor:"#faf1d7"},children:o}):null,r?$e(r,{sx:{fontSize:16,flexShrink:0,color:e.icon_color||"#1e3a8a"}}):null,jo(fo,{component:"span",onClick:t,sx:{flex:1,minWidth:0,fontSize:14,color:e.completed?"#9a9a97":"#37352f",textDecoration:e.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...t?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[e.ticket_no?`${e.ticket_no} `:"",e.title]}),$e(Pe,{option:Bo(e),small:!0}),n?$e($T,{className:"taskbox-relation-unlink",size:"small","aria-label":"\uC5F0\uACB0 \uD574\uC81C",onClick:n,sx:{opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:$e(VT,{sx:{fontSize:15}})}):null]})}function pm({task:e,tasks:o,readOnly:t=!1,onOpenTask:n,onLink:r,onUnlink:i,onCreateFollowUp:a}){let[l,u]=Za(!1),[s,c]=Za(null),[m,d]=Za(null),p=um(()=>sm(e,o),[e,o]),x=p.lineage.length>=2,D=(x?p.lineage.length-1:0)+p.related.length+p.duplicates.length+(p.duplicateOf?1:0),T=um(()=>{let f=new Set;for(let B of p.lineage)f.add(B.seq);for(let B of p.related)f.add(B.seq);for(let B of p.duplicates)f.add(B.seq);return p.duplicateOf&&f.add(p.duplicateOf.seq),[...f]},[p]),g=(f,B,C)=>{d({anchorEl:f,targetSeq:B,type:C})};return jo(Ao,{icon:$e(KT,{sx:{fontSize:19,display:"block"}}),title:jo(YT,{children:["\uAD00\uB828 \uC5C5\uBB34",D>0?$e(fo,{component:"span",sx:{fontSize:12.5,color:"#9a9a97"},children:D}):null]}),titleExtra:t?null:jo(fo,{sx:{ml:"auto",display:"flex",alignItems:"center",gap:.5},children:[a?$e(dm,{size:"small",color:"inherit",startIcon:$e(GT,{sx:{fontSize:16}}),onClick:f=>c(f.currentTarget),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uD6C4\uC18D \uC5C5\uBB34"}):null,r?$e(dm,{size:"small",color:"inherit",startIcon:$e(UT,{sx:{fontSize:16}}),onClick:()=>u(!0),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uC5F0\uACB0"}):null]}),children:[jo(fo,{sx:{display:"flex",flexDirection:"column",mt:.5,pl:3.25},children:[x?$e(fo,{sx:{mb:p.related.length||p.duplicates.length||p.duplicateOf?1:0},children:p.lineage.map((f,B)=>{let C=f.seq===e.seq,O=B===p.lineage.length-1;return jo(fo,{sx:{display:"flex",gap:1},children:[jo(fo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:14,flexShrink:0,pt:1.1},children:[$e(fo,{sx:{width:C?9:7,height:C?9:7,borderRadius:"50%",bgcolor:C?"#2f80ed":f.completed?"#9a9a97":"#c9c8c5",flexShrink:0}}),O?null:$e(fo,{sx:{width:"2px",flex:1,bgcolor:"#e6e6e3"}})]}),jo(fo,{sx:{flex:1,minWidth:0,pb:O?0:.5},children:[jo(fo,{sx:{display:"flex",alignItems:"center",gap:.75},children:[jo(fo,{component:"span",onClick:!C&&n?()=>n(f.seq):void 0,sx:{minWidth:0,fontSize:14,fontWeight:C?600:400,color:C?"#2f80ed":f.completed?"#9a9a97":"#37352f",textDecoration:f.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...!C&&n?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[f.ticket_no?`${f.ticket_no} `:"",f.title]}),$e(Pe,{option:Bo(f),small:!0})]}),$e(fo,{sx:{fontSize:12,color:"#9a9a97"},children:f.completed&&f.completed_time?`${f.completed_time} \uC644\uB8CC`:f.created_time??""})]})]},f.seq)})}):null,p.duplicateOf?$e(el,{item:p.duplicateOf,caption:"\uC6D0\uBCF8",onOpen:n?()=>n(p.duplicateOf.seq):void 0,onUnlink:!t&&i?f=>g(f.currentTarget,p.duplicateOf.seq,"duplicate_of"):void 0}):null,p.duplicates.map(f=>$e(el,{item:f,caption:"\uC911\uBCF5",onOpen:n?()=>n(f.seq):void 0,onUnlink:!t&&i?B=>g(B.currentTarget,f.seq,"duplicate_of"):void 0},`dup-${f.seq}`)),p.related.map(f=>$e(el,{item:f,onOpen:n?()=>n(f.seq):void 0,onUnlink:!t&&i?B=>g(B.currentTarget,f.seq,"related"):void 0},`rel-${f.seq}`)),D===0?$e(fo,{sx:{px:1.25,py:.75,fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):null]}),r?$e(mm,{open:l,task:e,tasks:o,excludeSeqs:T,onClose:()=>u(!1),onSubmit:(f,B)=>r(e.seq,f,B)}):null,$e(je,{open:!!s,anchorEl:s,title:"\uC774 \uC5C5\uBB34\uC5D0\uC11C \uC774\uC5B4\uC9C0\uB294 \uD6C4\uC18D \uC5C5\uBB34\uB97C \uB9CC\uB4DC\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uB9CC\uB4E4\uAE30",onCancel:()=>c(null),onConfirm:()=>{a?.(e.seq),c(null)}}),$e(je,{open:!!m,anchorEl:m?.anchorEl??null,title:"\uC774 \uC5C5\uBB34\uC640\uC758 \uC5F0\uACB0\uC744 \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uD574\uC81C",onCancel:()=>d(null),onConfirm:()=>{m&&i?.(e.seq,m.targetSeq,m.type),d(null)}})]})}import{Fragment as _o,jsx as R,jsxs as Ve}from"react/jsx-runtime";function Yn({label:e="\uBE44\uC5B4 \uC788\uC74C"}){return R(io,{component:"span",sx:{color:"#9a9a97"},children:e})}function xm({task:e,customTabs:o,statusOptions:t,avatarSrcByName:n,onChangeStatus:r,onChangeLabels:i,onAddLabelOption:a,onChangeProject:l,onAddProject:u,onChangeDate:s,onChangeReminder:c,onMemberEdit:m,onChangePriority:d,onChangeEstimatedTime:p,onChangeEventTime:x,onChangeEventPlace:D,onChangeEventAddress:T,onChangeNote:g,onChangeContent:f,onAddChecklistItem:B,onToggleChecklistItem:C,onRemoveChecklistItem:O,onUpdateChecklistItem:y,onConvertChecklistToTask:_,onOpenChecklistTask:k,resolveChecklistTask:S,relatedTasksPool:w,onOpenRelatedTask:K,onLinkRelatedTask:h,onUnlinkRelatedTask:b,onCreateFollowUpTask:q,onAddAttachments:A,onRemoveAttachment:L,onPreview:z,onDownload:re,onUpdateComment:le,onRemoveComment:pe,onToggleCommentReaction:ie,currentUserName:ke="",myAccountSeq:ee=0,noticeAdmin:ae=!1,hideProject:Te=!1,hideLabel:xe=!1,showTitle:W=!1,onChangeTitle:V,onToggleCompleted:Y,onChangeIcon:F,onChangeIconColor:v,employees:N=[],onAckConfirm:ne,onRequestConfirm:ye,onChangeBugField:Oe,sprints:P=[],sprintProject:fe=!1,hideSprint:me=!1,onChangeSprint:ue,onChangeStoryPoints:U,onChangeResolution:Ge,onClaimTask:$,onVerifyBug:Ye}){let[so,ut]=Pt(null),[qt,Fo]=Pt(null),[Do,dt]=Pt(null),[Qt,Ho]=Pt(null),[Jt,Oo]=Pt(!1),Jo={[Vo]:Jt?{maxHeight:120,opacity:1,overflow:"hidden",transition:"max-height 0.25s ease, opacity 0.2s ease"}:{minHeight:0,maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none",transition:"max-height 0.25s ease, opacity 0.2s ease"}},[Me,E]=Pt(null),[H,X]=Pt(null),[se,ze]=Pt(null),[qe,to]=Pt(null),J=!!e.is_notice,Ie=!!e.is_event,Ae=!!e.is_bug,Ze=!!$&&Nr(e,ee),Zo=!!$&&Fr(e,ee),Wo=!!Ye&&Ae&&!!e.completed&&ee>0&&(e.author_account_seq??0)===ee&&!(e.acks??[]).some(M=>M.account_seq===ee),Le=!xt(e,ee),et=!e.is_event&&(e.is_notice?ee>0&&(e.author_account_seq??0)===ee:(e.author_account_seq??0)===ee||(e.manager_account_seq??0)===ee),Jn=vn(e.icon||(e.is_notice?So:e.is_event?"event":Ee)),Cn=J?!Lr(e,ee):Le,Zt=Ze||Zo?Ve(Mn,{onClick:M=>to(M.currentTarget),children:[R(dy,{sx:{fontSize:16,mr:.5}}),"\uAC00\uC838\uAC00\uAE30"]}):null,wr=J?Bi(e,N):"",co=J?Nc(e,N,ee):null,lo=!J&&!Ie?Qr(e,ee):null,Zn=!!(lo&&lo.total>0||J&&co);return Ve(_o,{children:[W?Ve(io,{sx:{px:2,pt:2,pb:.5,display:"flex",alignItems:"flex-start",gap:1},children:[et?R(XT,{checked:e.completed,icon:R(ay,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:R(ol,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(M,Dr)=>{Do||dt({anchorEl:M.currentTarget,nextCompleted:Dr})},sx:{p:0,mt:.25}}):null,R(QT,{size:"small","aria-label":"\uC544\uC774\uCF58 \uBCC0\uACBD",onClick:Le?void 0:M=>Fo(M.currentTarget),sx:{p:0,mt:.25,color:e.icon_color||(J?"#e5484d":"#1e3a8a")},children:R(Jn,{sx:{fontSize:20}})}),R(io,{sx:{flex:1,minWidth:0},children:so!==null?R(io,{component:"input",autoFocus:!0,spellCheck:!1,value:so,onChange:M=>ut(M.target.value),onBlur:()=>{so.trim()&&so.trim()!==e.title&&V(e.seq,so.trim()),ut(null)},onKeyDown:M=>{M.key==="Enter"&&M.target.blur(),M.key==="Escape"&&ut(null)},sx:{width:"100%",border:"none",outline:"none",font:"inherit",fontSize:19,fontWeight:600,color:"#37352f",p:0,m:0}}):R(io,{onClick:()=>ut(e.title),sx:{fontSize:19,fontWeight:600,color:"#37352f",lineHeight:1.35,cursor:"text",textDecoration:e.completed?"line-through":"none",userSelect:"text"},children:e.title})}),R(je,{open:!!Do,anchorEl:Do?.anchorEl??null,title:Do?.nextCompleted?"\uC774 \uC5C5\uBB34\uB97C \uC644\uB8CC \uCC98\uB9AC\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC644\uB8CC\uB97C \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:Do?.nextCompleted?"\uC644\uB8CC":"\uD574\uC81C",onCancel:()=>dt(null),onConfirm:()=>{Do&&Y(e.seq,Do.nextCompleted),dt(null)}}),R(Wn,{anchorEl:qt,value:e.icon||(J?So:""),color:e.icon_color||(J?"#e5484d":"#1e3a8a"),onSelect:M=>F(e.seq,M),onSelectColor:M=>v?.(e.seq,M),onClose:()=>Fo(null)})]}):null,Ve(io,{sx:{py:1.5,display:"flex",flexDirection:"column",gap:0,[Vo]:{pb:0,"& > :last-child":{mb:0}}},children:[R(pi,{hideProject:Te,values:{tabKey:e.tab_key??"",managerName:e.manager_name,receiverNames:e.receiver_names,startDate:e.start_date,dueDate:e.due_date,reminder:e.reminder,priority:e.priority,estimatedTime:e.estimated_time,eventTime:e.event_time??"",eventPlace:e.event_place??"",eventAddress:e.event_address??""},customTabs:o,avatarSrcByName:n,showEstimatedTime:!Ie,notice:J,event:Ie,readOnly:Le,targetSummary:wr,onChangeProject:M=>l(e.seq,M),onAddProject:u,onChangeStartDate:M=>s(e.seq,"start_date",M),onChangeDueDate:M=>s(e.seq,"due_date",M),onChangeReminder:M=>c(e.seq,M),onChangePriority:M=>d(e.seq,M),onChangeEstimatedTime:M=>p(e.seq,M),onChangeEventTime:M=>x?.(e.seq,M),onChangeEventPlace:M=>D?.(e.seq,M),onChangeEventAddress:M=>T?.(e.seq,M),onMemberEdit:M=>m(e,M),narrowCollapsedSx:Jo,reminderLocked:e.completed,managerAction:Zt,leading:Ve(_o,{children:[Wo||Zt&&(J||Ie)?Ve(io,{sx:{gridColumn:"1 / -1",display:"flex",justifyContent:"center",gap:1,px:2,py:.75},children:[J||Ie?Zt:null,Wo?Ve(_o,{children:[R(Gn,{variant:"contained",size:"small",onClick:()=>Ye?.(e.seq,!0),sx:{bgcolor:"#2f80ed"},children:"\uAC80\uC99D\uC644\uB8CC"}),R(Gn,{variant:"outlined",size:"small",color:"error",onClick:()=>Ye?.(e.seq,!1),children:"\uC7AC\uC624\uD508"})]}):null]}):null,Ae&&e.ticket_no?R(de,{icon:R(ty,{sx:{fontSize:17}}),label:"\uD2F0\uCF13",children:R(io,{component:"span",sx:{fontVariantNumeric:"tabular-nums"},children:e.ticket_no})}):null,Ie?null:R(io,{sx:Ae&&e.ticket_no||Zn?void 0:{gridColumn:"1 / -1"},children:R(de,{icon:R(ly,{sx:{fontSize:17}}),label:"\uC0C1\uD0DC",onClick:Le||e.completed?void 0:M=>E(M),children:R(Pe,{option:Bo(e)})})}),lo&&lo.total>0?R(io,{children:R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uD655\uC778",children:lo.canConfirm?R(Gn,{size:"small",variant:"contained",onClick:()=>ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):Ve(Gn,{size:"small",variant:"outlined",color:"inherit",startIcon:lo.myTime?R(ol,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:M=>Ho({anchorEl:M.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:[lo.count," / ",lo.total]})})}):null,J&&co?R(io,{children:R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uD655\uC778",children:R(io,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,minWidth:0},children:co.canAck?R(Gn,{size:"small",variant:"contained",onClick:()=>ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):R(Gn,{size:"small",variant:"outlined",color:"inherit",startIcon:co.acked?R(ol,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:M=>Ho({anchorEl:M.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:co.total>0&&co.count>=co.total?"\uC644\uB8CC":Ve(_o,{children:[co.count,R(io,{component:"span",sx:{mx:.4},children:"/"}),co.total]})})})})}):null,fe&&!me&&!Ie&&!J?Ve(_o,{children:[R(de,{icon:R(ry,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:Le?void 0:M=>X(M),children:(e.sprint_seq??0)>0?P.find(M=>M.seq===e.sprint_seq)?.name??"\uC0AD\uC81C\uB41C \uC2A4\uD504\uB9B0\uD2B8":R(Yn,{label:"\uBBF8\uBC30\uC815"})}),R(de,{icon:R(iy,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",children:R(Ot,{value:(e.story_points??0)>0?String(e.story_points):"",placeholder:"\uBBF8\uCD94\uC815",readOnly:Le,onCommit:M=>U?.(e.seq,Number(M.replace(/[^0-9.]/g,""))||0)})})]}):null,Ie||xe?null:R(io,{sx:[{gridColumn:"1 / -1"},Jo??null],children:R(de,{icon:R(sy,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:Le?void 0:M=>ze(M),children:(e.label_keys??[]).length>0?R(At,{labelKeys:e.label_keys??[],labelOptions:t}):R(Yn,{})})})]}),trailing:Ve(_o,{children:[Ae?R(fi,{values:{repro:e.bug_repro??"",device:e.bug_device??"",where:e.bug_where??"",version:e.bug_version??"",resolution:e.resolution??""},readOnly:Le,showResolution:!!e.completed,onChangeRepro:M=>Oe?.(e.seq,"bug_repro",M),onChangeDevice:M=>Oe?.(e.seq,"bug_device",M),onChangeWhere:M=>Oe?.(e.seq,"bug_where",M),onChangeVersion:M=>Oe?.(e.seq,"bug_version",M),onChangeResolution:M=>Ge?.(e.seq,M)}):null,R(de,{icon:R(cy,{sx:{fontSize:17}}),label:"\uC791\uC131\uC790",sx:[uo(9),Jo??null],children:e.created_by?Ve(_o,{children:[R(Co,{names:[e.created_by],size:20,avatarSrcByName:n}),e.created_by]}):R(Yn,{})}),R(de,{icon:R(fm,{sx:{fontSize:17}}),label:"\uC791\uC131\uC2DC\uAC04",sx:[uo(11),Jo??null],children:e.created_time?gt(e.created_time):R(Yn,{})}),e.completed?Ve(_o,{children:[R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC790",sx:[uo(10),Jo??null],children:e.completed_by?Ve(_o,{children:[R(Co,{names:[e.completed_by],size:20,avatarSrcByName:n}),e.completed_by]}):R(Yn,{})}),R(de,{icon:R(fm,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC2DC\uAC04",sx:[uo(12),Jo??null],children:e.completed_time?gt(e.completed_time):R(Yn,{})})]}):null]})}),Ve(io,{sx:{display:"none",[Vo]:{display:"block",mt:1.5,mb:0}},children:[R(hn,{sx:{borderColor:"#e6e6e3"}}),R(jT,{onClick:()=>Oo(M=>!M),sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:.5,pt:1.25,pb:1.25,fontSize:13.5,bgcolor:"#f4f4f2",color:"#37352f","&:active":{opacity:.6}},children:Jt?Ve(_o,{children:["\uC811\uAE30 ",R(ey,{sx:{fontSize:18}})]}):Ve(_o,{children:["\uC815\uBCF4 \uB354\uBCF4\uAE30 ",R(oy,{sx:{fontSize:18}})]})})]}),Ve(io,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3",[Vo]:{mt:0,mb:1.25}}}),R(Ao,{icon:R(my,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",children:R(io,{sx:{userSelect:"text"},children:R(xi,{syncKey:e.seq,value:e.content??"",readOnly:Le,onChange:M=>f(e.seq,M)})})}),e.is_bug?null:Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Ao,{icon:R(uy,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:R(io,{sx:{userSelect:"text"},children:R(am,{value:e.note,readOnly:Cn,onCommit:M=>g(e.seq,M)})})})]}),Ie?null:Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(hi,{taskSeq:e.seq,checklist:e.checklist??[],removeLocked:Cn,onAdd:B,onToggle:C,onRemove:O,onUpdate:y,onConvertToTask:_,onOpenLinkedTask:k,resolveLinkedTask:S})]}),w&&!Ie&&!J?Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(pm,{task:e,tasks:w,readOnly:Le,onOpenTask:K,onLink:h,onUnlink:b,onCreateFollowUp:q})]}):null,R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Ti,{taskSeq:e.seq,attachments:e.attachments??[],removeLocked:Cn,onAdd:A,onRemove:L,onPreview:z?M=>z({...M,taskSeq:e.seq}):void 0,onDownload:re?M=>re({...M,taskSeq:e.seq}):void 0})]}),R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Zc,{taskSeq:e.seq,comments:e.comments??[],currentUserName:ke,myAccountSeq:ee,avatarSrcByName:n,onUpdate:le,onRemove:pe,onToggleReaction:ie})]}),R(Ar,{anchorEl:Me,value:e.status,options:J?rr:Ae?on:ir,onSelect:M=>r(e.seq,M),onClose:()=>E(null)}),R(JT,{transitionDuration:0,anchorEl:H,open:!!H,onClose:()=>X(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...P.filter(M=>`custom-${M.group_seq}`===String(e.tab_key??"")).map(M=>({seq:M.seq,label:zo(M)}))].map(M=>Ve(ZT,{onClick:()=>{ue?.(e.seq,M.seq),X(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[M.label,(e.sprint_seq??0)===M.seq?R(ny,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},M.seq))}),R(Xr,{anchorEl:Qt?.anchorEl??null,open:!!Qt?.open,acks:e.acks??[],total:co?.total??lo?.total??0,avatarSrcByName:n,onRequestConfirm:ye&&lo&&lo.count<lo.total?()=>{ye(e.seq),Ho(M=>M?{...M,open:!1}:null)}:void 0,onClose:()=>Ho(M=>M?{...M,open:!1}:null)}),R(Si,{anchorEl:se,selectedKeys:e.label_keys??[],labelOptions:t,onToggle:M=>i(e.seq,zr(e.label_keys??[],M)),onAddLabel:a,onClose:()=>ze(null)}),R(je,{open:!!qe,anchorEl:qe,title:Ze?"\uC774 \uC5C5\uBB34\uB97C \uAC00\uC838\uC640 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC5C5\uBB34\uC758 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uAC00\uC838\uAC00\uAE30",onCancel:()=>to(null),onConfirm:()=>{$?.(e.seq),to(null)}})]})}import{jsx as Eo,jsxs as ky}from"react/jsx-runtime";function L2(){let e=new Date,o=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())} ${o(e.getHours())}:${o(e.getMinutes())}`}function N2({open:e,task:o,onClose:t,onAddComment:n,onSaveFields:r,myAccountSeq:i=0,onToggleCompleted:a,onChangeTitle:l,onChangeIcon:u,onChangeIconColor:s,...c}){let m=Ne(),d=hm(null);o&&(d.current=o);let p=o??d.current,[x,D]=py({}),T=Object.keys(x).length>0;gm(()=>{D({})},[o?.seq,e]);let g=hm(null);if(gm(()=>{g.current?.scrollTo({top:0})},[o?.seq]),!p)return null;let f=m&&T?{...p,...x}:p,B=(k,S)=>{m?D(w=>({...w,...k})):S()},C=()=>{let k=x;D({});let S=p.seq,w=k.title===void 0?void 0:String(k.title).trim();if(r){let K={...k};w!==void 0&&(w?K.title=w:delete K.title),Object.keys(K).length>0&&r(S,K),km({message:"\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",position:"center"});return}w&&l(S,w),k.icon!==void 0&&u(S,String(k.icon)),k.icon_color!==void 0&&s?.(S,String(k.icon_color)),k.status!==void 0&&c.onChangeStatus(S,k.status),k.label_keys!==void 0&&c.onChangeLabels(S,k.label_keys??[]),k.tab_key!==void 0&&c.onChangeProject(S,String(k.tab_key??"")),k.start_date!==void 0&&c.onChangeDate(S,"start_date",String(k.start_date??"")),k.due_date!==void 0&&c.onChangeDate(S,"due_date",String(k.due_date??"")),k.reminder!==void 0&&c.onChangeReminder(S,k.reminder),k.priority!==void 0&&c.onChangePriority(S,k.priority),k.estimated_time!==void 0&&c.onChangeEstimatedTime(S,String(k.estimated_time??"")),k.event_time!==void 0&&c.onChangeEventTime?.(S,String(k.event_time??"")),k.event_place!==void 0&&c.onChangeEventPlace?.(S,String(k.event_place??"")),k.event_address!==void 0&&c.onChangeEventAddress?.(S,String(k.event_address??"")),k.content!==void 0&&c.onChangeContent(S,String(k.content??"")),k.note!==void 0&&c.onChangeNote(S,String(k.note??"")),km({message:"\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",position:"center"})},O={...c,onChangeStatus:(k,S)=>B({status:S},()=>c.onChangeStatus(k,S)),onChangeLabels:(k,S)=>B({label_keys:S},()=>c.onChangeLabels(k,S)),onChangeProject:(k,S)=>B({tab_key:S},()=>c.onChangeProject(k,S)),onChangeDate:(k,S,w)=>B({[S]:w},()=>c.onChangeDate(k,S,w)),onChangeReminder:(k,S)=>B({reminder:S},()=>c.onChangeReminder(k,S)),onChangePriority:(k,S)=>B({priority:S},()=>c.onChangePriority(k,S)),onChangeEstimatedTime:(k,S)=>B({estimated_time:S},()=>c.onChangeEstimatedTime(k,S)),onChangeEventTime:(k,S)=>B({event_time:S},()=>c.onChangeEventTime?.(k,S)),onChangeEventPlace:(k,S)=>B({event_place:S},()=>c.onChangeEventPlace?.(k,S)),onChangeEventAddress:(k,S)=>B({event_address:S},()=>c.onChangeEventAddress?.(k,S)),onChangeContent:(k,S)=>B({content:S},()=>c.onChangeContent(k,S)),onChangeNote:(k,S)=>B({note:S},()=>c.onChangeNote(k,S))},y=Eo(xm,{...O,task:f,myAccountSeq:i,onChangeTitle:(k,S)=>B({title:S},()=>l(k,S)),onToggleCompleted:a,onChangeIcon:(k,S)=>B({icon:S},()=>u(k,S)),onChangeIconColor:(k,S)=>B({icon_color:S},()=>s?.(k,S)),showTitle:m}),_=Eo(em,{onSubmit:(k,S)=>n(f.seq,k,S)},f.seq);return m?Eo(by,{open:e,onClose:t,locale:"ko",fontScale:{enabled:!0,default:1.1,min:.6},title:f.is_notice?"\uACF5\uC9C0\uC0AC\uD56D":f.is_event?"\uC77C\uC815":f.is_bug?"\uC624\uB958":"\uC5C5\uBB34",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1},custom:[{icon:Eo(gy,{sx:{ml:2,color:"#6b7280"}}),tooltip:"\uACF5\uC720\uD558\uAE30",onClick:()=>Un(f,!0)},{icon:Eo(xy,{sx:{ml:1,color:T?"#2f9e5b":"#c9c8c5"}}),tooltip:T?"\uC800\uC7A5":"",onClick:T?C:void 0}]},fullScreen:!0,mobilePresentation:"slide",tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},actions:{visible:!0,showCancelButton:!1,left:_},sx:{DialogContent:{borderBottom:"none"}},dialogActionSx:{padding:"0 !important","@media (max-width:1023.95px)":{padding:"0 !important"},borderTop:"1px solid #37352f","& .left-actions":{flex:1,width:"100%",minWidth:0,"& > *":{flex:1,minWidth:0}},"& .right-actions":{display:"none"}},sections:[{id:"task-detail",title:"",showTitle:!1,children:Eo(_i,{sx:{userSelect:"none",width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:y})}]},p.seq):Eo(fy,{anchor:"right",open:e,onClose:t,sx:{zIndex:k=>k.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:ky(_i,{sx:{display:"flex",flexDirection:"column",height:"100%",userSelect:"none"},children:[Eo(im,{task:f,myAccountSeq:i,onToggleCompleted:a,onChangeTitle:l,onChangeIcon:u,onChangeIconColor:s,onClose:t}),Eo(bm,{sx:{borderColor:"#e6e6e3"}}),Eo(_i,{sx:{flex:1,minHeight:0},children:Eo(hy,{ref:g,style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:y})}),Eo(bm,{sx:{borderColor:"#37352f"}}),Eo(_i,{sx:{flexShrink:0},children:_})]})})}import{useEffect as yy,useState as bn}from"react";import{Box as wo,Button as il,IconButton as Tm}from"@mui/material";import{FormDialog as Sy}from"@ehfuse/mui-form-dialog";import By from"@mui/icons-material/EditOutlined";import{ErrorAlert as ym}from"@ehfuse/alerts";import{ClearTextField as Sm,DateTextField as Bm,LabelSelect as Cm}from"@ehfuse/mui-form-controls";var nl="custom-";function Ty(e){return e.startsWith(nl)}function W2(e){return e>0?`${nl}${e}`:""}function rl(e){if(!Ty(e))return 0;let o=Number(e.slice(nl.length));return Number.isInteger(o)&&o>0?o:0}import{Fragment as vy,jsx as Qe,jsxs as Xt}from"react/jsx-runtime";var Cy=[{value:"planning",label:"\uACC4\uD68D\uC911"},{value:"active",label:"\uC9C4\uD589\uC911"},{value:"closed",label:"\uC885\uB8CC"}];function vm(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?e.slice(5).replace("-","."):"-"}function J2({open:e,customTabs:o,sprints:t,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,onRemove:l}){let u=o.filter(h=>h.useSprints&&!h.archived),[s,c]=bn(""),[m,d]=bn(""),[p,x]=bn(""),[D,T]=bn(""),[g,f]=bn(""),[B,C]=bn(!1),[O,y]=bn(0);yy(()=>{e&&(c(u.length===1?u[0].key:""),d(""),x(""),T(""),f(""),y(0))},[e]);let _=()=>{d(""),x(""),T(""),f(""),y(0)},k=h=>{y(h.seq),c(`custom-${h.group_seq}`),d(h.name),x(h.goal),T(h.start_date),f(h.end_date)},S=async()=>{let h=rl(s);if(!h){ym("\uBAA9\uD45C\uB97C \uB9CC\uB4E4 \uD504\uB85C\uC81D\uD2B8\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return}if(!m.trim()){ym("\uBAA9\uD45C \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.");return}C(!0);try{if(O>0){i(O,{name:m.trim(),goal:p.trim(),start_date:D,end_date:g}),_();return}await r({group_seq:h,name:m.trim(),goal:p.trim(),start_date:D,end_date:g})&&_()}finally{C(!1)}},w=new Map(o.map(h=>[rl(h.key),h.label])),K=Qe(wo,{children:u.length===0?Qe(wo,{sx:{py:2,fontSize:14,color:"#787774"},children:'\uBAA9\uD45C\uB97C \uC0AC\uC6A9\uD558\uB294 \uD504\uB85C\uC81D\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8 \uC218\uC815\uC5D0\uC11C "\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8) \uC0AC\uC6A9"\uC744 \uBA3C\uC800 \uCF1C\uC138\uC694.'}):Xt(vy,{children:[Xt(wo,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:2.5,mt:1},children:[Qe(Cm,{label:"\uD504\uB85C\uC81D\uD2B8",size:"medium",value:s,options:u.map(h=>({value:h.key,label:h.label})),onChange:h=>c(String(h.target.value)),disabled:O>0}),Qe(Sm,{label:"\uBAA9\uD45C \uC774\uB984",size:"medium",placeholder:"\uC608: 8\uC6D4 2\uC8FC\uCC28",value:m,onChange:h=>d(h.target.value)}),Qe(Bm,{size:"medium",label:"\uC2DC\uC791\uC77C",value:D,onChange:h=>T(h.target.value)}),Qe(Bm,{size:"medium",label:"\uC885\uB8CC\uC77C",value:g,onChange:h=>f(h.target.value)}),Qe(Sm,{label:"\uC124\uBA85",size:"medium",placeholder:"\uC120\uD0DD \uC785\uB825",value:p,onChange:h=>x(h.target.value),sx:{gridColumn:"1 / -1"}})]}),Xt(wo,{sx:{mt:1.5,display:"flex",justifyContent:"flex-end",gap:1},children:[O>0?Qe(il,{color:"inherit",onClick:_,disabled:B,children:"\uCDE8\uC18C"}):null,Qe(il,{variant:"contained",onClick:()=>{S()},disabled:B,children:O>0?"\uBAA9\uD45C \uC800\uC7A5":"\uBAA9\uD45C \uB9CC\uB4E4\uAE30"})]}),Qe(wo,{sx:{mt:2,borderTop:"1px solid #e6e6e3"},children:t.length===0?Qe(wo,{sx:{py:3,textAlign:"center",fontSize:14,color:"#9a9a97"},children:"\uB4F1\uB85D\uB41C \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):t.map(h=>Xt(wo,{sx:{display:"flex",flexDirection:"column",gap:1,py:1.75,borderBottom:"1px solid #f0efed"},children:[Xt(wo,{sx:{minWidth:0},children:[Xt(wo,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Qe(wo,{component:"span",sx:{fontSize:16,fontWeight:600,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:h.name}),Qe(wo,{component:"span",sx:{flexShrink:0,px:1,py:.25,borderRadius:.75,bgcolor:"#f1f5f9",color:"#64748b",fontSize:13,fontWeight:500},children:w.get(h.group_seq)??"\uC0AD\uC81C\uB41C \uD504\uB85C\uC81D\uD2B8"}),Xt(wo,{component:"span",sx:{flexShrink:0,fontSize:14,color:"#57564f"},children:[vm(h.start_date)," ~ ",vm(h.end_date)]})]}),h.goal?Qe(wo,{sx:{mt:.5,fontSize:14,color:"#787774",lineHeight:1.5},children:h.goal}):null]}),Xt(wo,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Qe(Cm,{label:"\uC0C1\uD0DC",showLabel:!1,size:"small",value:h.status,options:Cy.map(b=>({value:b.value,label:b.label})),onChange:b=>a(h.seq,String(b.target.value)),sx:{width:104,flexShrink:0}}),Qe(Tm,{"aria-label":"\uBAA9\uD45C \uC218\uC815",onClick:()=>k(h),sx:{color:"#9a9a97","&:hover":{color:"#2563eb"}},children:Qe(By,{sx:{fontSize:18}})}),Qe(Tm,{"aria-label":"\uBAA9\uD45C \uC0AD\uC81C",onClick:()=>l(h.seq),sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:Qe(Tt,{style:{width:16,height:16}})})]})]},h.seq))})]})});return Qe(Sy,{open:e,onClose:n,maxWidth:"sm",title:"\uBAA9\uD45C \uAD00\uB9AC",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-manage",sections:[{id:"sprint-manage",showTitle:!1,children:K}],actions:{showCancelButton:!1,right:Qe(il,{variant:"contained",onClick:n,children:"\uB2EB\uAE30"})}})}import{useState as Im}from"react";import{Box as ao,Button as al,Divider as Iy,IconButton as _y,TextField as wy}from"@mui/material";import{FormDialog as Dy}from"@ehfuse/mui-form-dialog";import My from"@mui/icons-material/OpenInNewOutlined";import Ey from"@mui/icons-material/EventOutlined";import{ConfirmDialog as Oy}from"@ehfuse/alerts";import{jsx as De,jsxs as kn}from"react/jsx-runtime";function sz({open:e,imports:o,onRegister:t,onRemove:n,onClose:r}){let[i,a]=Im(""),[l,u]=Im(!1),s=async()=>{let d=i.trim();if(d){u(!0);try{await t(d)&&a("")}finally{u(!1)}}},c=async d=>{await Oy({title:"\uAC00\uC838\uC624\uAE30 \uD574\uC81C",message:`"${d.name||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}" \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30\uB97C \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&n(d.seq)},m=kn(ao,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[kn(ao,{sx:{color:"#37352f",lineHeight:1.7},children:["\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758 \uC77C\uC815\uC744 ",De("b",{children:"\uC77D\uAE30\uC804\uC6A9"}),"\uC73C\uB85C \uC5C5\uBB34\uD568 \uCE98\uB9B0\uB354\uC5D0 \uD568\uAED8 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",De("br",{}),"\uD45C\uC2DC/\uC228\uAE40\uC740 \uC5C5\uBB34\uD568 \uC6B0\uC0C1\uB2E8\uC758 ",De("b",{children:"\uAD6C\uAE00 \uC77C\uC815"})," \uC2A4\uC704\uCE58\uB85C \uCF1C\uACE0 \uB055\uB2C8\uB2E4."]}),De(ao,{sx:{fontWeight:700,color:"#37352f",mt:.5},children:"\uB4F1\uB85D\uB41C \uCE98\uB9B0\uB354"}),o.length>0?De(ao,{sx:{display:"flex",flexDirection:"column",border:"1px solid #e6e6e3",borderRadius:1},children:o.map((d,p)=>kn(ao,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:.75,borderTop:p>0?"1px solid #efefed":"none"},children:[De(Ey,{sx:{fontSize:18,color:"#0f9d58",flexShrink:0}}),De(ao,{component:"span",sx:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.name||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),De(_y,{"aria-label":"\uAC00\uC838\uC624\uAE30 \uD574\uC81C",size:"small",onClick:()=>{c(d)},sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:De(Tt,{sx:{fontSize:18}})})]},d.seq))}):De(ao,{sx:{color:"#9a9a97",px:.5},children:"\uC544\uC9C1 \uB4F1\uB85D\uB41C \uCE98\uB9B0\uB354\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}),De(Iy,{sx:{my:1,borderColor:"#e6e6e3"}}),De(ao,{sx:{fontWeight:700,color:"#37352f"},children:"\uC0C8 \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30"}),kn(ao,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,mb:1,fontSize:15,lineHeight:1.8,display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[De(ao,{children:kn(ao,{component:"span",children:["\uAD6C\uAE00 \uCE98\uB9B0\uB354(\uC6F9) > \uC67C\uCABD \uBAA9\uB85D\uC5D0\uC11C \uAC00\uC838\uC62C \uCE98\uB9B0\uB354\uC5D0 \uB9C8\uC6B0\uC2A4\uB97C \uC62C\uB824 \u22EE > ",De("b",{children:"\uC124\uC815 \uBC0F \uACF5\uC720"}),"\uB97C \uC5FD\uB2C8\uB2E4."]})}),De(ao,{children:kn(ao,{component:"span",children:[De("b",{children:"\uCE98\uB9B0\uB354 \uD1B5\uD569"})," \uC139\uC158\uC758 ",De("b",{children:'"iCal \uD615\uC2DD\uC758 \uBE44\uBC00 \uC8FC\uC18C"'})," \uB97C \uBCF5\uC0AC\uD574 \uC544\uB798\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694."]})}),De(ao,{children:De(ao,{component:"span",children:"\uBE44\uBC00 \uC8FC\uC18C\uB294 \uBCF8\uC778 \uC804\uC6A9\uC785\uB2C8\uB2E4. \uC11C\uBC84\uC5D0 \uC800\uC7A5\uB418\uBA70 \uB2E4\uB978 \uC9C1\uC6D0\uC5D0\uAC8C \uBCF4\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."})}),De(ao,{children:De(ao,{component:"span",children:"\uC77C\uC815\uC740 \uC57D 10\uBD84 \uAC04\uACA9\uC73C\uB85C \uAC31\uC2E0\uB418\uACE0, \uBC18\uBCF5 \uC77C\uC815\uC740 \uC77C\uBC18\uC801\uC778 \uADDC\uCE59(\uB9E4\uC77C/\uB9E4\uC8FC/\uB9E4\uC6D4/\uB9E4\uB144)\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4."})})]}),kn(ao,{sx:{display:"flex",gap:2,alignItems:"center"},children:[De(wy,{value:i,onChange:d=>a(d.target.value),fullWidth:!0,label:"\uBE44\uBC00 iCal \uC8FC\uC18C",placeholder:"https://calendar.google.com/calendar/ical/\u2026/basic.ics",slotProps:{input:{spellCheck:!1}}}),De(al,{variant:"contained",disabled:!i.trim()||l,onClick:()=>{s()},sx:{flexShrink:0},children:l?"\uD655\uC778 \uC911\u2026":"\uB4F1\uB85D"})]})]});return De(Dy,{open:e,onClose:r,width:680,title:"\uAD6C\uAE00 \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-import",sections:[{id:"calendar-import",showTitle:!1,children:m}],actions:{showCancelButton:!1,left:De(al,{variant:"outlined",startIcon:De(My,{sx:{fontSize:16}}),onClick:()=>window.open("https://calendar.google.com/calendar","_blank"),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),right:De(al,{variant:"contained",onClick:r,children:"\uB2EB\uAE30"})}})}import{Box as Rt,Button as Br,TextField as Py}from"@mui/material";import{FormDialog as Ry}from"@ehfuse/mui-form-dialog";import zy from"@mui/icons-material/ContentCopyOutlined";import _m from"@mui/icons-material/OpenInNewOutlined";import{InfoAlert as wm}from"@ehfuse/alerts";import{Fragment as Ay,jsx as Je,jsxs as Tn}from"react/jsx-runtime";function qy(e){return`${window.location.origin}/api/v1/taskbox/calendar/${e}.ics`}function gz({open:e,feed:o,feedTaskCount:t,buildFeedUrl:n,onSubscribe:r,onClose:i}){let a=n??qy,l=o.subscribed?a(o.token):"",u=()=>{navigator.clipboard.writeText(l).then(()=>wm("\uD53C\uB4DC \uC8FC\uC18C\uB97C \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4.")).catch(()=>wm("\uBCF5\uC0AC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC8FC\uC18C\uB97C \uC9C1\uC811 \uC120\uD0DD\uD574 \uBCF5\uC0AC\uD558\uC138\uC694."))},s=()=>{let m=l.replace(/^https?:\/\//,"webcal://");window.open(`https://calendar.google.com/calendar/r?cid=${encodeURIComponent(m)}`,"_blank")},c=Tn(Rt,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[Tn(Rt,{sx:{color:"#37352f",lineHeight:1.7},children:["\uB0B4\uAC00 \uAD00\uC5EC\uD55C \uC5C5\uBB34\uB97C ",Je("b",{children:"\uC77D\uAE30\uC804\uC6A9"}),"\uC73C\uB85C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4."]}),t===0?Tn(Rt,{sx:{color:"#8a6d1d",bgcolor:"#faf1d7",borderRadius:1,px:1.5,py:1.25,lineHeight:1.7},children:["\uC9C0\uAE08\uC740 \uCE98\uB9B0\uB354\uC5D0 \uD45C\uC2DC\uD560 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",Je("br",{}),Je("b",{children:"\uB9C8\uAC10\uAE30\uD55C\uC774 \uC788\uB294 \uB0B4 \uC5C5\uBB34 \uB610\uB294 \uBCF4\uB0B8\uC5C5\uBB34"}),"\uAC00 \uC0DD\uAE30\uBA74"," ",o.subscribed?"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uC790\uB3D9\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.":"\uC5EC\uAE30\uC11C \uAD6C\uB3C5\uC744 \uC2DC\uC791\uD558\uC138\uC694."]}):o.subscribed&&o.enabled?Tn(Ay,{children:[Je(Py,{value:l,fullWidth:!0,label:"\uB0B4 \uD53C\uB4DC \uC8FC\uC18C",slotProps:{input:{readOnly:!0}}}),Tn(Rt,{sx:{display:"flex",gap:2},children:[Je(Br,{variant:"outlined",startIcon:Je(zy,{}),onClick:u,children:"\uC8FC\uC18C \uBCF5\uC0AC"}),Je(Br,{variant:"contained",startIcon:Je(_m,{}),onClick:s,children:"Google \uCE98\uB9B0\uB354\uC5D0 \uCD94\uAC00"})]}),Tn(Rt,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,fontSize:15,lineHeight:1.8,display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[Je(Rt,{children:Tn("span",{children:["\uBC84\uD2BC\uC774 \uB3D9\uC791\uD558\uC9C0 \uC54A\uC73C\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354 > \uB2E4\uB978 \uCE98\uB9B0\uB354 + > ",Je("b",{children:"URL\uB85C \uCD94\uAC00"}),"\uC5D0 \uC704 \uC8FC\uC18C\uB97C \uBD99\uC5EC\uB123\uC73C\uC138\uC694."]})}),Je(Rt,{children:Je("span",{children:"\uAD6C\uAE00\uC774 \uD53C\uB4DC\uB97C \uC8FC\uAE30\uC801\uC73C\uB85C(\uC218 \uC2DC\uAC04 \uAC04\uACA9) \uAC00\uC838\uAC00\uBBC0\uB85C \uBCC0\uACBD\uC0AC\uD56D \uBC18\uC601\uC774 \uB2A6\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."})}),Je(Rt,{children:Je("span",{children:"\uB0B4\uBCF4\uB0B4\uAE30\uB97C \uADF8\uB9CC\uD558\uB824\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uCD94\uAC00\uD55C \uCE98\uB9B0\uB354\uB97C \uC0AD\uC81C\uD558\uBA74 \uB429\uB2C8\uB2E4."})}),Je(Rt,{children:Je("span",{children:"\uC774 \uC8FC\uC18C\uB294 \uBCF8\uC778 \uC804\uC6A9\uC785\uB2C8\uB2E4. \uACF5\uC720\uD558\uBA74 \uB0B4 \uC5C5\uBB34 \uC77C\uC815\uC774 \uB178\uCD9C\uB429\uB2C8\uB2E4."})})]})]}):Je(Br,{variant:"contained",onClick:r,sx:{alignSelf:"flex-start"},children:"\uAD6C\uB3C5 \uC2DC\uC791 (\uD53C\uB4DC \uBC1C\uAE09)"})]});return Je(Ry,{open:e,onClose:i,width:680,title:"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uB85C \uB0B4\uBCF4\uB0B4\uAE30",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-subscribe",sections:[{id:"calendar-subscribe",showTitle:!1,children:c}],actions:{showCancelButton:!1,left:Je(Br,{variant:"outlined",startIcon:Je(_m,{sx:{fontSize:16}}),onClick:()=>window.open("https://calendar.google.com/calendar","_blank"),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),right:Je(Br,{variant:"contained",onClick:i,children:"\uB2EB\uAE30"})}})}import{useEffect as Ly,useMemo as ll,useState as sl}from"react";import{Box as Cr,Button as Ny,Typography as Fy}from"@mui/material";import{FormDialog as Hy}from"@ehfuse/mui-form-dialog";import{SearchTextField as Wy}from"@ehfuse/mui-form-controls";import{TreeView as $y}from"@ehfuse/tree-view";import{Fragment as jy,jsx as Xo,jsxs as Xy}from"react/jsx-runtime";function Dm(e){return`${e.name}#${e.seq}`}function Ky(e){return Number(e.slice(e.lastIndexOf("#")+1))||0}function Uy(e){let o=[],t=n=>{for(let r of n.employees??[])o.push(r);for(let r of n.groups??[])t(r)};for(let n of e)t(n);return o}function Vy(e,o){return o?[e.name,e.department,e.role_name,e.work_position].filter(Boolean).some(t=>String(t).toLowerCase().includes(o)):!0}function Gy(e){let o=[[e.name,e.role_name].filter(Boolean).join(" "),e.department].filter(Boolean).join(" / ");return{id:`emp:${e.seq}`,label:Dm(e),renderLabel:Xo(Cr,{component:"span",sx:{display:"inline-flex",alignItems:"baseline",gap:.75},children:Xo(Cr,{component:"span",sx:{fontWeight:400,color:"text.primary"},children:o})})}}function Mm(e,o){let t=(e.groups??[]).map(r=>Mm(r,o)).filter(r=>r!==null),n=(e.employees??[]).filter(r=>Vy(r,o)).map(Gy);return t.length===0&&n.length===0?null:{id:`group:${e.key}`,label:e.name,children:[...t,...n]}}function Yy({groups:e,allEmployees:o,initialSelectedSeqs:t,multiple:n,isMobile:r,onSelectionChange:i}){let[a,l]=sl(""),u=ll(()=>e.map(c=>Mm(c,a.trim().toLowerCase())).filter(c=>c!==null),[e,a]),s=ll(()=>o.filter(c=>t.includes(c.seq)).map(Dm),[]);return Xy(jy,{children:[Xo(Cr,{sx:{px:1.5,py:1,borderBottom:"1px solid #cccccc",flexShrink:0},children:Xo(Wy,{size:"small",fullWidth:!0,placeholder:"\uC774\uB984, \uBD80\uC11C \uAC80\uC0C9",onSearch:l,onClear:()=>l(""),sx:{"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{px:0}}})}),Xo(Cr,{sx:r?{display:"flex",flexDirection:"column"}:{flex:1,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:Xo($y,{items:u,checkbox:!0,multiSelect:n,selectionMode:"child",showSearch:!1,defaultExpanded:!0,initialSelections:s,onChange:c=>i(c.map(Ky).filter(m=>m>0)),styles:{border:"none",borderRadius:"0"}})})]})}function vz({open:e,title:o="\uC9C1\uC6D0 \uC120\uD0DD",hint:t="",groups:n,multiple:r=!1,selectedSeqs:i,confirmText:a="\uD655\uC778",onConfirm:l,onClose:u}){let s=Ne(),[c,m]=sl([]),[d,p]=sl(0),x=ll(()=>Uy(n),[n]),D=i??[];Ly(()=>{e&&(m(D),p(g=>g+1))},[e]);let T=()=>{let g=x.filter(f=>c.includes(f.seq));l(r?g:g.slice(0,1)),u()};return Xo(Hy,{open:e,onClose:u,title:`${o}${r&&c.length>0?` (${c.length}\uBA85)`:""}`,locale:"ko",fullScreen:s,mobilePresentation:s?"slide":"dialog",draggable:!0,width:"600px",tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},scrollPastLastSection:!1,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-employee-select",sections:[{id:"employee-select",title:"\uC9C1\uC6D0 \uC120\uD0DD",showTitle:!1,children:Xo(Cr,{sx:{...s?{}:{height:560},display:"flex",flexDirection:"column",border:"1px solid #cccccc",borderRadius:1,...s?{}:{overflow:"hidden"},userSelect:"none"},children:Xo(Yy,{groups:n,allEmployees:x,initialSelectedSeqs:D,multiple:r,isMobile:s,onSelectionChange:m},d)})}],dialogActionSx:{"@media (max-width:1023.95px)":{gap:"0.75rem !important","& .left-actions":{flex:1,minWidth:0},"& .right-actions":{flex:1}}},actions:{visible:!0,showCancelButton:!1,left:t?Xo(Fy,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line",lineHeight:1.35},children:t}):void 0,right:Xo(Ny,{variant:"contained",onClick:T,children:a})}})}import{useEffect as e0,useMemo as o0,useState as t0}from"react";import{Box as Qn,Button as n0,Divider as r0}from"@mui/material";import{FormDialog as i0}from"@ehfuse/mui-form-dialog";import{LabelSelect as a0}from"@ehfuse/mui-form-controls";import{Box as ct}from"@mui/material";import{jsx as jn,jsxs as Xn}from"react/jsx-runtime";function Qy(e,o){let t=o.filter(n=>n.sprint_seq===e.seq&&!n.archived&&n.completed);return{points:t.reduce((n,r)=>n+(r.story_points??0),0),count:t.length}}function Em({sprints:e,tasks:o,height:t=160}){let r=[...e].sort((c,m)=>`${c.start_date}|${c.seq}`.localeCompare(`${m.start_date}|${m.seq}`)).map(c=>({sprint:c,...Qy(c,o)})),i=r.some(c=>c.points>0),a=r.map(c=>i?c.points:c.count),l=Math.max(1,...a),u=r.filter(c=>c.sprint.status==="closed").map(c=>i?c.points:c.count),s=u.length>0?Math.round(u.reduce((c,m)=>c+m,0)/u.length*10)/10:null;return r.length===0?jn(ct,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uD45C\uC2DC\uD560 \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):Xn(ct,{children:[Xn(ct,{sx:{mb:1,display:"flex",justifyContent:"space-between",fontSize:14,color:"#000"},children:[Xn("span",{children:["\uC644\uB8CC ",i?"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8(SP)":"\uC5C5\uBB34 \uC218(\uAC74)"," \u2014 \uBAA9\uD45C\uBCC4"]}),s!==null?Xn("span",{children:["\uD3C9\uADE0(\uC885\uB8CC \uBAA9\uD45C)"," ",jn(ct,{component:"span",sx:{color:"#2f80ed",fontWeight:700},children:s}),i?"SP":"\uAC74"]}):null]}),jn(ct,{sx:{display:"flex",alignItems:"flex-end",gap:2,height:t,px:.5},children:r.map(c=>{let m=i?c.points:c.count,d=Math.round((t-24)*m/l),p=c.sprint.status==="closed";return Xn(ct,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:"100%"},children:[jn(ct,{sx:{fontSize:14,fontWeight:700,color:"#37352f",lineHeight:1.5},children:m}),jn(ct,{sx:{width:"60%",maxWidth:56,height:Math.max(2,d),borderRadius:"4px 4px 0 0",bgcolor:p?"#2f80ed":"#a9c9f5"}})]},c.sprint.seq)})}),jn(ct,{sx:{display:"flex",gap:2,px:.5,mt:.5},children:r.map(c=>Xn(ct,{sx:{flex:1,minWidth:0,textAlign:"center",fontSize:13.5,color:"#000",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[c.sprint.name,c.sprint.status!=="closed"?" (\uC9C4\uD589\uC911)":""]},c.sprint.seq))})]})}import{useMemo as Jy}from"react";import{Box as yn}from"@mui/material";import{jsx as mt,jsxs as Sn}from"react/jsx-runtime";function Om(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00`):null}function Zy(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function cl(e){return e.slice(5).replace("-",".")}function Pm({sprint:e,tasks:o,todayStr:t,height:n=200}){let r=Jy(()=>{let g=Om(e.start_date),f=Om(e.end_date);if(!g||!f||f<g||Math.round((f.getTime()-g.getTime())/864e5)+1>366)return null;let C=o.filter(h=>h.sprint_seq===e.seq&&!h.archived);if(C.length===0)return{empty:!0};let O=C.some(h=>(h.story_points??0)>0),y=h=>O?h.story_points??0:1,_=C.reduce((h,b)=>h+y(b),0),k=new Map;for(let h of C){if(!h.completed)continue;let b=(h.completed_time??"").slice(0,10),q=/^\d{4}-\d{2}-\d{2}$/.test(b)?b:e.start_date;k.set(q,(k.get(q)??0)+y(h))}let S=[];for(let h=new Date(g);h<=f;h.setDate(h.getDate()+1))S.push(Zy(h));let w=_,K=[];for(let h of S){if(h>t)break;w-=k.get(h)??0,K.push({day:h,value:Math.max(0,w)})}return{empty:!1,days:S,total:_,usePoints:O,actual:K}},[e,o,t]);if(!r)return mt(yn,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uBAA9\uD45C\uC758 \uC2DC\uC791\uC77C\xB7\uC885\uB8CC\uC77C\uC774 \uC788\uC5B4\uC57C \uBC88\uB2E4\uC6B4\uC744 \uADF8\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4."});if(r.empty)return mt(yn,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uBC30\uC815\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."});let{days:i,total:a,usePoints:l,actual:u}=r,s=600,c=200,m=8,d=g=>i.length===1?0:g/(i.length-1)*s,p=g=>m+(c-m*2)*(1-g/Math.max(1,a)),x=`${d(0)},${p(a)} ${d(i.length-1)},${p(0)}`,D=u.map(g=>`${d(i.indexOf(g.day))},${p(g.value)}`).join(" "),T=u[u.length-1];return Sn(yn,{children:[Sn(yn,{sx:{mb:1,display:"flex",justifyContent:"space-between",fontSize:14,color:"#000"},children:[Sn("span",{children:["\uB0A8\uC740 ",l?"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8(SP)":"\uC5C5\uBB34 \uC218(\uAC74)"," \u2014 \uCD1D ",a]}),T?Sn("span",{children:["\uD604\uC7AC"," ",mt(yn,{component:"span",sx:{color:"#2f80ed",fontWeight:700},children:T.value}),l?"SP":"\uAC74"," \uB0A8\uC74C"]}):null]}),mt(yn,{sx:{border:"1px solid #e6e6e3",borderRadius:1,bgcolor:"#fafaf9",px:1,py:.5},children:Sn("svg",{viewBox:`0 0 ${s} ${c}`,preserveAspectRatio:"none",style:{display:"block",width:"100%",height:n},children:[mt("line",{x1:0,y1:p(0),x2:s,y2:p(0),stroke:"#e6e6e3",strokeWidth:1}),mt("polyline",{points:x,fill:"none",stroke:"#9a9a97",strokeWidth:1.5,strokeDasharray:"6 5",vectorEffect:"non-scaling-stroke"}),u.length>1?mt("polyline",{points:D,fill:"none",stroke:"#2f80ed",strokeWidth:2.5,vectorEffect:"non-scaling-stroke"}):null,T?mt("circle",{cx:d(i.indexOf(T.day)),cy:p(T.value),r:4,fill:"#2f80ed",vectorEffect:"non-scaling-stroke"}):null]})}),Sn(yn,{sx:{mt:.5,display:"flex",justifyContent:"space-between",fontSize:13.5,color:"#000"},children:[mt("span",{children:cl(e.start_date)}),t>e.start_date&&t<e.end_date?Sn("span",{children:["\uC624\uB298 ",cl(t)]}):null,mt("span",{children:cl(e.end_date)})]})]})}import{jsx as zt,jsxs as ml}from"react/jsx-runtime";function Wz({open:e,sprints:o,tasks:t,todayStr:n,initialSprintSeq:r=0,onClose:i}){let[a,l]=t0(0);e0(()=>{if(!e)return;let c=o.find(d=>d.status==="active")??o[0],m=o.find(d=>d.seq===r)??c;l(m?.seq??0)},[e]);let u=o0(()=>o.find(c=>c.seq===a)??null,[o,a]),s=ml(Qn,{sx:{display:"flex",flexDirection:"column"},children:[ml(Qn,{sx:{px:3,py:2.5},children:[zt(Qn,{sx:{mb:1.5,fontSize:17,fontWeight:700,color:"#37352f"},children:"\uBCA8\uB85C\uC2DC\uD2F0"}),zt(Em,{sprints:o,tasks:t})]}),zt(r0,{sx:{borderColor:"#e6e6e3"}}),ml(Qn,{sx:{px:3,py:2.5},children:[zt(Qn,{sx:{mb:1.5,fontSize:17,fontWeight:700,color:"#37352f"},children:"\uBC88\uB2E4\uC6B4"}),zt(a0,{label:"\uBAA9\uD45C",showLabel:!1,value:a?String(a):"",options:o.map(c=>({value:String(c.seq),label:zo(c)})),onChange:c=>l(Number(c.target.value)||0),sx:{width:280,mb:2}}),u?zt(Pm,{sprint:u,tasks:t,todayStr:n}):zt(Qn,{sx:{py:4,textAlign:"center",fontSize:13.5,color:"#9a9a97"},children:"\uBC88\uB2E4\uC6B4\uC744 \uBCFC \uBAA9\uD45C\uB97C \uC120\uD0DD\uD558\uC138\uC694."})]})]});return zt(i0,{open:e,onClose:i,width:680,title:"\uBAA9\uD45C \uCC28\uD2B8",locale:"ko",contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-charts",sections:[{id:"sprint-charts",showTitle:!1,children:s}],actions:{showCancelButton:!1,right:zt(n0,{variant:"contained",onClick:i,children:"\uB2EB\uAE30"})}})}import{Checkbox as l0,Divider as s0,Menu as c0,MenuItem as ul}from"@mui/material";import{jsx as vr,jsxs as Rm}from"react/jsx-runtime";function Gz({anchorEl:e,candidates:o,selectedNames:t,avatarSrcByName:n,onToggle:r,onClear:i,onClose:a}){return Rm(c0,{anchorEl:e,open:!!e,onClose:a,transitionDuration:0,children:[o.length===0?vr(ul,{disabled:!0,sx:{fontSize:14},children:"\uBAA9\uB85D\uC5D0 \uC9C0\uC815\uB41C \uC0AC\uB78C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):o.map(l=>{let u=t.includes(l.name);return Rm(ul,{onClick:()=>r(l),sx:{fontSize:14,minWidth:170,gap:1},children:[vr(l0,{size:"small",checked:u,sx:{p:0}}),vr(Co,{names:[l.name],size:20,avatarSrcByName:n}),l.name]},`${l.accountSeq}-${l.name}`)}),vr(s0,{}),vr(ul,{disabled:t.length===0,onClick:i,sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{useState as m0}from"react";import{ButtonBase as u0,Menu as d0,MenuItem as p0}from"@mui/material";import f0 from"@mui/icons-material/KeyboardArrowDown";import x0 from"@mui/icons-material/Check";import{Fragment as g0,jsx as dl,jsxs as pl}from"react/jsx-runtime";function oq({value:e,onChange:o,options:t}){let[n,r]=m0(null),i=t??Yi,a=Yi.find(l=>l.value===e)?.label??"";return pl(g0,{children:[pl(u0,{onClick:l=>r(l.currentTarget),sx:{display:"flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:1,fontSize:13.5,color:"#37352f","&:hover":{bgcolor:"#f2f2f0"}},children:[a,dl(f0,{sx:{fontSize:17,color:"#9a9a97"}})]}),dl(d0,{transitionDuration:0,anchorEl:n,open:!!n,onClose:()=>r(null),children:i.map(l=>pl(p0,{selected:l.value===e,onClick:()=>{o(l.value),r(null)},sx:{fontSize:14,minWidth:140,justifyContent:"space-between",gap:1},children:[l.label,l.value===e?dl(x0,{sx:{fontSize:16,color:"#2f80ed"}}):null]},l.value))})]})}import{Box as Di,ButtonBase as h0}from"@mui/material";import{DateTextField as zm}from"@ehfuse/mui-form-controls";function Bn(e){let o=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}`}function wi(e,o=new Date){let t=new Date(o);return t.setMonth(t.getMonth()-e),t}function rq(e=new Date){return{fromDate:Bn(wi(1,e)),toDate:Bn(e)}}import{jsx as Ir,jsxs as qm}from"react/jsx-runtime";var b0=[{label:"1\uAC1C\uC6D4",months:1},{label:"3\uAC1C\uC6D4",months:3},{label:"6\uAC1C\uC6D4",months:6},{label:"1\uB144",months:12},{label:"\uC804\uCCB4",months:0}];function Am({fromDate:e,toDate:o,onChange:t}){let n=i=>{if(i<=0){t("","");return}t(Bn(wi(i)),Bn(new Date))},r=i=>i<=0?!e&&!o:!e||!o?!1:e===Bn(wi(i))&&o===Bn(new Date);return qm(Di,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[Ir(Di,{sx:{display:"flex",alignItems:"center",gap:1.5},children:b0.map(i=>{let a=r(i.months);return Ir(h0,{onClick:()=>n(i.months),sx:{px:1.25,py:.85,borderRadius:1,fontSize:13,fontWeight:a?500:400,border:"1px solid",borderColor:a?"#2f80ed":"#dedddb",color:a?"#2f80ed":"#37352f",bgcolor:a?"#eef6ff":"transparent","&:hover":{bgcolor:a?"#eef6ff":"#f7f7f5"}},children:i.label},i.label)})}),qm(Di,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Ir(zm,{value:e,size:"small",placeholder:"\uC2DC\uC791\uC77C",onChange:i=>t(i.target.value,o),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}}),Ir(Di,{component:"span",sx:{fontSize:13,color:"#9a9a97"},children:"~"}),Ir(zm,{value:o,size:"small",placeholder:"\uC885\uB8CC\uC77C",onChange:i=>t(e,i.target.value),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}})]})]})}import{Popover as k0}from"@mui/material";import{jsx as Lm}from"react/jsx-runtime";function pq({anchorEl:e,fromDate:o,toDate:t,onChange:n,onClose:r}){return Lm(k0,{transitionDuration:0,anchorEl:e,open:!!e,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{p:1.5}}},children:Lm(Am,{fromDate:o,toDate:t,onChange:n})})}import{Box as T0,ButtonBase as y0,Tab as S0,Tabs as B0}from"@mui/material";import C0 from"@mui/icons-material/Checklist";import v0 from"@mui/icons-material/Face";import I0 from"@mui/icons-material/Publish";import _0 from"@mui/icons-material/NotificationsOutlined";import w0 from"@mui/icons-material/BugReportOutlined";import D0 from"@mui/icons-material/DescriptionOutlined";import M0 from"@mui/icons-material/Inventory2Outlined";import{jsx as Qo}from"react/jsx-runtime";function Nm(e,o){return o>0?`${e} (${o})`:e}var Iq=[{id:"my",label:"\uC804\uCCB4",icon:Qo(C0,{sx:{fontSize:18}})},{id:"notice",label:"\uACF5\uC9C0\uC0AC\uD56D",icon:Qo(_0,{sx:{fontSize:18}})},{id:"mine",label:"\uB0B4 \uC5C5\uBB34",icon:Qo(v0,{sx:{fontSize:18}})},{id:"sent",label:"\uBCF4\uB0B8 \uC5C5\uBB34",icon:Qo(I0,{sx:{fontSize:18}})},{id:"bug",label:"\uC624\uB958",icon:Qo(w0,{sx:{fontSize:18}})},{id:"archive",label:"\uBCF4\uAD00\uD568",icon:Qo(M0,{sx:{fontSize:18}}),hideCount:!0},{id:"report",label:"\uBCF4\uACE0\uC11C",icon:Qo(D0,{sx:{fontSize:18}}),hideCount:!0}];function E0(e){return{minHeight:46,minWidth:75,bgcolor:e.bg,color:e.color,borderRadius:"8px 8px 0 0",padding:"10px 18px",textTransform:"none",fontSize:14,fontWeight:500,border:`1px solid ${e.borderColor}`,borderBottom:"none","&:hover":{bgcolor:e.hoverBg},"&.Mui-selected":{bgcolor:e.selectedBg,color:e.selectedColor,border:`1px solid ${e.selectedBg}`,borderBottom:"none","&:hover":{bgcolor:e.selectedBg}},...e.sx}}function _q({items:e,activeTab:o,counts:t,onChange:n,compact:r=!1}){let i=te(),a=E0(i.tabs),l=e;return r?Qo(T0,{sx:{display:"flex",flexWrap:"wrap",gap:1.25},children:l.map(u=>{let s=o===u.id;return Qo(y0,{onClick:()=>n(u.id),sx:{px:1.5,py:.75,borderRadius:1,fontSize:yo(13.5),fontWeight:500,whiteSpace:"nowrap",border:"1px solid",bgcolor:s?i.tabs.selectedBg:i.tabs.bg,color:s?i.tabs.selectedColor:i.tabs.color,borderColor:s?i.tabs.selectedBg:i.tabs.borderColor},children:Nm(u.label,u.hideCount?0:t[u.id]??0)},u.id)})}):Qo(B0,{value:o,onChange:(u,s)=>n(s),sx:{minHeight:46,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"12px",minHeight:46}},children:l.map(u=>Qo(S0,{value:u.id,label:Nm(u.label,u.hideCount?0:t[u.id]??0),icon:u.icon,iconPosition:"start",sx:a},u.id))})}import{useEffect as O0,useMemo as P0,useState as fl}from"react";import{Divider as xl,ListItemIcon as No,Menu as gl,MenuItem as To}from"@mui/material";import R0 from"@mui/icons-material/OpenInNewOutlined";import z0 from"@mui/icons-material/Check";import q0 from"@mui/icons-material/CheckCircleOutlined";import A0 from"@mui/icons-material/RadioButtonUnchecked";import L0 from"@mui/icons-material/SendOutlined";import N0 from"@mui/icons-material/EventOutlined";import F0 from"@mui/icons-material/PersonOutlineOutlined";import H0 from"@mui/icons-material/ViewKanbanOutlined";import W0 from"@mui/icons-material/ContentCopyOutlined";import $0 from"@mui/icons-material/NextPlanOutlined";import K0 from"@mui/icons-material/ContentPasteOutlined";import U0 from"@mui/icons-material/ShareOutlined";import V0 from"@mui/icons-material/DirectionsRunOutlined";import Fm from"@mui/icons-material/ChevronRight";import G0 from"@mui/icons-material/ArchiveOutlined";import Y0 from"@mui/icons-material/UnarchiveOutlined";import{ConfirmDialog as j0}from"@ehfuse/alerts";import{Fragment as X0,jsx as ce,jsxs as xo}from"react/jsx-runtime";function nA({target:e,onClose:o,customTabs:t,sprints:n=[],myAccountSeq:r=0,onOpenDetail:i,onToggleCompleted:a,onRequestConfirm:l,onChangeDueDate:u,onChangeReminder:s,onMemberEdit:c,onMoveProject:m,onDuplicate:d,onCreateFollowUp:p,onShare:x,onAssignSprint:D,onArchiveToggle:T,onDelete:g}){let f=Ne(),B=ot(),[C,O]=fl(null),[y,_]=fl(null),[k,S]=fl(null);O0(()=>{e||(O(null),_(null),S(null))},[e]);let w=e?.task??null,K=!!w?.is_notice,h=!!w?.is_event,b=w?!xt(w,r):!1,q=P0(()=>new Set(t.filter(z=>z.useSprints).map(z=>z.key)),[t]),A=async()=>{let z=w;if(o(),!z)return;await j0({title:"\uC5C5\uBB34 \uC0AD\uC81C",message:`"${z.title}" \uC5C5\uBB34\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&g(z.seq)},L=()=>{w&&T(w.seq,!w.archived),o()};return xo(X0,{children:[xo(gl,{open:!!e,onClose:o,transitionDuration:0,anchorReference:f?"none":"anchorPosition",anchorPosition:!f&&e?{top:e.position.top,left:e.position.left}:void 0,slotProps:{paper:{sx:{minWidth:190,...f?{position:"fixed",top:"50%",left:"50%",translate:"-50% -50%",maxHeight:"70vh"}:{}}},list:f?{sx:{"& .MuiMenuItem-root":{py:1,minHeight:0}}}:void 0},children:[xo(To,{onClick:()=>{w&&i(w),o()},sx:{fontSize:14},children:[ce(No,{children:ce(R0,{sx:{fontSize:19}})}),"\uC0C1\uC138 \uC5F4\uAE30"]}),xo(To,{disabled:K?(w?.author_account_seq??0)!==r:(w?.author_account_seq??0)!==r&&(w?.manager_account_seq??0)!==r,onClick:()=>{w&&a(w.seq,!w.completed),o()},sx:{fontSize:14},children:[ce(No,{children:w?.completed?ce(A0,{sx:{fontSize:19}}):ce(q0,{sx:{fontSize:19}})}),w?.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC"]}),!K&&l?xo(To,{disabled:!(w?.manager_account_seq??0)&&(w?.receiver_account_seqs??[]).length===0,onClick:()=>{w&&l(w),o()},sx:{fontSize:14},children:[ce(No,{children:ce(L0,{sx:{fontSize:19}})}),"\uD655\uC778 \uC694\uCCAD"]}):null,h?null:ce(xl,{}),h?null:xo(To,{disabled:b,onClick:z=>{w&&O({anchorEl:z.currentTarget,task:w})},sx:{fontSize:14},children:[ce(No,{children:ce(N0,{sx:{fontSize:19}})}),"\uB9C8\uAC10\uAE30\uD55C \uBCC0\uACBD"]}),!K&&!h&&c?xo(To,{onClick:()=>{w&&c(w,"manager"),o()},sx:{fontSize:14},children:[ce(No,{children:ce(F0,{sx:{fontSize:19}})}),"\uCC45\uC784\uC790 \uBCC0\uACBD"]}):null,h?null:xo(To,{disabled:b,onClick:z=>{w&&_({anchorEl:z.currentTarget,task:w})},sx:{fontSize:14},children:[ce(No,{children:ce(H0,{sx:{fontSize:19}})}),"\uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9",ce(Fm,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}),ce(xl,{}),d?xo(To,{disabled:b,onClick:()=>{w&&d(w.seq),o()},sx:{fontSize:14},children:[ce(No,{children:ce(W0,{sx:{fontSize:19}})}),"\uBCF5\uC81C"]}):null,p&&w&&!w.is_event&&!w.is_notice?xo(To,{onClick:()=>{w&&p(w.seq),o()},sx:{fontSize:14},children:[ce(No,{children:ce($0,{sx:{fontSize:19}})}),"\uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30"]}):null,xo(To,{onClick:()=>{w&&(x?x(w):Un(w,f)),o()},sx:{fontSize:14},children:[ce(No,{children:f?ce(U0,{sx:{fontSize:19}}):ce(K0,{sx:{fontSize:19}})}),f?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC"]}),w&&!w.is_notice&&!w.is_event&&q.has(String(w.tab_key??""))&&D?xo(To,{onClick:z=>S(z.currentTarget),sx:{fontSize:14},children:[ce(No,{children:ce(V0,{sx:{fontSize:19}})}),"\uBAA9\uD45C\uC5D0 \uB123\uAE30",ce(Fm,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}):null,xo(To,{onClick:L,disabled:b||!w?.archived&&!(w&&Pr(w)),sx:{fontSize:14},children:[ce(No,{children:w?.archived?ce(Y0,{sx:{fontSize:19}}):ce(G0,{sx:{fontSize:19}})}),w?.archived?"\uBCF4\uAD00 \uD574\uC81C":"\uBCF4\uAD00"]}),ce(xl,{}),xo(To,{disabled:b,onClick:A,sx:{fontSize:14,color:"#e5484d"},children:[ce(No,{children:ce(Tt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC0AD\uC81C"]})]}),ce(Nt,{anchorEl:C?.anchorEl??null,open:!!C,date:C?.task.due_date??"",reminder:C?.task.reminder??"none",hideReminder:!!C?.task.completed,centered:f,onClose:()=>{O(null),o()},onDateChange:z=>{C&&u(C.task.seq,z)},onReminderChange:z=>{C&&s?.(C.task.seq,z)}}),xo(gl,{transitionDuration:0,anchorEl:y?.anchorEl??null,open:!!y,onClose:()=>{_(null),o()},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...B,children:[ce(To,{selected:!y?.task.tab_key,onClick:()=>{y&&m(y.task.seq,""),_(null),o()},sx:{fontSize:14,minWidth:170},children:"\uC5C6\uC74C"}),t.filter(z=>!z.archived).map(z=>ce(To,{selected:y?.task.tab_key===z.key,onClick:()=>{y&&m(y.task.seq,z.key),_(null),o()},sx:{fontSize:14,minWidth:170},children:z.label},z.key))]}),ce(gl,{transitionDuration:0,anchorEl:k,open:!!k,onClose:()=>S(null),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...n.filter(z=>`custom-${z.group_seq}`===String(w?.tab_key??"")).map(z=>({seq:z.seq,label:zo(z)}))].map(z=>xo(To,{onClick:()=>{w&&D?.(w.seq,z.seq),S(null),o()},sx:{fontSize:14,minWidth:160,gap:1},children:[z.label,(w?.sprint_seq??0)===z.seq?ce(z0,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},z.seq))})]})}import{Checkbox as Q0,Divider as J0,Menu as Z0,MenuItem as Hm}from"@mui/material";import{jsx as Mi,jsxs as Wm}from"react/jsx-runtime";function sA({anchorEl:e,labelOptions:o,selectedKeys:t,onToggle:n,onClear:r,onClose:i}){return Wm(Z0,{transitionDuration:0,anchorEl:e,open:!!e,onClose:i,children:[o.map(a=>{let l=t.includes(a.key);return Wm(Hm,{onClick:()=>n(a.key),sx:{fontSize:14,minWidth:190,gap:1},children:[Mi(Q0,{size:"small",checked:l,sx:{p:0}}),Mi(Pe,{option:a})]},a.key)}),Mi(J0,{}),Mi(Hm,{disabled:t.length===0,onClick:()=>{r(),i()},sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{Divider as $m,Menu as eS,MenuItem as hl}from"@mui/material";import oS from"@mui/icons-material/Check";import tS from"@mui/icons-material/BarChartOutlined";import nS from"@mui/icons-material/SettingsOutlined";import{jsx as _r,jsxs as Ei}from"react/jsx-runtime";function gA(e){let{anchorEl:o,sprints:t,value:n,onSelect:r,onManage:i,onCharts:a,onClose:l}=e;return Ei(eS,{transitionDuration:0,anchorEl:o,open:!!o,onClose:l,children:[[{seq:0,label:"\uC804\uCCB4"},{seq:-1,label:"\uBBF8\uBC30\uC815 \uC5C5\uBB34"},...t.map(u=>({seq:u.seq,label:zo(u)}))].map(u=>Ei(hl,{onClick:()=>{r(u.seq),l()},sx:{fontSize:14,minWidth:180,gap:1},children:[u.label,n===u.seq?_r(oS,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},u.seq)),_r($m,{}),a?Ei(hl,{onClick:()=>{l(),a()},sx:{fontSize:14,gap:1},children:[_r(tS,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uCC28\uD2B8"]}):null,a?_r($m,{}):null,Ei(hl,{onClick:()=>{l(),i()},sx:{fontSize:14,gap:1},children:[_r(nS,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uAD00\uB9AC\u2026"]})]})}var rS={my:"tasks",mine:"tasks",sent:"tasks",notice:"notice",bug:"bug",archive:"archive",done:"done",report:"report"};function iS(e){return rS[e]??"tasks"}var kA={list:"\uBAA9\uB85D",card:"\uD504\uB85C\uC81D\uD2B8",kanban:"\uC0C1\uD0DC",sprint:"\uBAA9\uD45C",calendar:"\uC8FC\uAC04",month:"\uC6D4\uAC04",agenda:"\uC544\uC820\uB2E4",timeline:"\uD0C0\uC784\uB77C\uC778"},Km=["list","calendar","month","card","kanban","sprint","timeline"],aS=["list","card"];function TA(e){let o=iS(e);switch(o){case"notice":return{kind:o,viewOptions:[],showCreate:!0,createLabel:"\uACF5\uC9C0\uC0AC\uD56D \uB4F1\uB85D",showGroupBy:!1,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!0,columns:{notice:!0}};case"bug":return{kind:o,viewOptions:Km,showCreate:!0,createLabel:"\uC624\uB958 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{bug:!0}};case"archive":return{kind:o,viewOptions:aS,showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"done":return{kind:o,viewOptions:["list"],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"report":return{kind:o,viewOptions:[],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{}};default:return{kind:o,viewOptions:Km,showCreate:!0,createLabel:"\uC5C5\uBB34 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:e==="mine"?{showRequest:!1,confirmMode:"action"}:e==="sent"?{confirmMode:"time"}:{}}}}export{jv as ALL_TASK_VIEWER_ACCOUNT_SEQS,zc as AddLabelDialog,Gr as AddTabDialog,Ec as AttachmentUploadGauge,Wa as AttachmentUploadPercent,Hi as BUG_DEVICE_OPTIONS,nr as BUG_ICON_COLOR,Ev as BUG_KANBAN_COLUMNS,Fi as BUG_REPRO_OPTIONS,Wi as BUG_RESOLUTION_OPTIONS,on as BUG_STATUS_OPTIONS,tr as BUG_TASK_ICON,fi as BugPropertiesGrid,gf as COLUMN_WIDTHS,Ki as COMPLETED_STATUS_OPTION,nl as CUSTOM_TAB_KEY_PREFIX,sz as CalendarImportDialog,gz as CalendarSubscribeDialog,On as CommentBubbleIcon,En as ConfirmCountButton,ss as DATE_REMINDER_OPTIONS,Ri as DEFAULT_PROJECT_ICON,Iq as DEFAULT_TASKBOX_TAB_ITEMS,Ee as DEFAULT_TASK_ICON,pq as DateRangeFilterPopover,Ao as DrawerSection,Nt as DueDatePickerPopover,Yp as ENDED_EVENT_STATUS_OPTION,Wc as EVENT_ICON_COLOR,vz as EmployeeSelectDialog,Yi as GROUP_BY_OPTIONS,An as GoogleEventChip,oq as GroupByMenuButton,Vr as IconPickerGrid,gc as InlineAddressInput,Ot as InlineTextValue,Ui as KANBAN_CLOSED_COLUMN_KEY,sA as LabelFilterMenu,Si as LabelSelectMenu,ir as MANUAL_TASK_STATUS_OPTIONS,Gz as MemberFilterMenu,rr as NOTICE_STATUS_OPTIONS,So as NOTICE_TASK_ICON,Ol as NO_TASK_ICON,zi as PROJECT_ICON_OPTIONS,de as PropertyRow,Dn as RECEIVER_AVATAR_COLORS,cs as REMINDER_OPTIONS,Co as ReceiverAvatarStack,pm as RelatedTasksSection,lS as STATUS_KEY_REPLIED,Sl as STATUS_KEY_WAITING,hs as SortableTaskCard,Pm as SprintBurndownChart,Wz as SprintChartsDialog,gA as SprintFilterMenu,J2 as SprintManageDialog,Em as SprintVelocityChart,Ar as StatusSelectMenu,Qi as TASKBOX_COLUMNS,Vo as TASKBOX_DRAWER_NARROW_MQ,Pl as TASKBOX_UI_STATE_ID,kA as TASKBOX_VIEW_LABELS,pM as TASKBOX_VIEW_MODES,en as TASK_STATUS_OPTIONS,lx as TIME_REMINDER_OPTIONS,Xr as TaskAckListPopover,Mn as TaskActionButton,Ti as TaskAttachmentsSection,rc as TaskBoxColumnSummary,ga as TaskBoxGroupBoard,ZM as TaskBoxMobileList,Gs as TaskBoxMonthAgenda,Ws as TaskBoxMonthCalendar,IM as TaskBoxSprintColumnSummary,fs as TaskBoxTable,_q as TaskBoxTabs,Zs as TaskBoxTimeline,dM as TaskBoxView,qs as TaskBoxWeekCalendar,mr as TaskCardContent,hi as TaskChecklistSection,em as TaskCommentInput,Zc as TaskCommentsSection,xi as TaskContentEditor,nA as TaskContextMenu,pi as TaskCorePropertiesGrid,Ua as TaskCreateBody,cP as TaskCreateDrawer,Am as TaskDateRangeFilter,xm as TaskDetailBody,N2 as TaskDetailDrawer,im as TaskDetailHeader,Wn as TaskIconPickerPopover,At as TaskLabelChips,mm as TaskLinkDialog,am as TaskNoteField,$o as TaskPriorityChip,Pe as TaskStatusChip,Nv as TaskStatusChips,Zm as TaskboxProvider,qy as buildCalendarFeedUrl,Jr as buildCardBaseSx,Wl as buildStatusOptionColors,ji as buildTaskGroupSections,sm as buildTaskRelationsModel,yT as buildTaskShareText,Er as buildTaskboxTheme,$l as canAssignBugManager,Nr as canClaimTaskItem,xt as canEditTaskItem,Lr as canViewTaskItem,Fr as canVolunteerTaskItem,oc as countWorkdays,$p as createTaskboxTheme,nc as daysLeftUntil,qi as defaultTaskBoxFormValues,Ai as defaultTaskboxUiStateValues,Fc as filterFilesWithinLimit,k_ as formatConfirmTime,ec as formatHours,nt as formatKoreanDate,gt as formatKoreanDateTime,zo as formatSprintOptionLabel,Nl as getBugDeviceName,Ll as getBugReproName,Or as getBugResolutionName,jp as getBugStatusOption,rq as getDefaultDateRange,ar as getEventDisplayStatusOption,Pv as getNoDueStatusRank,Nc as getNoticeAckInfo,Fl as getNoticeStatusOption,T5 as getNoticeTargetDisplay,vn as getProjectIconAnchorComponent,Ke as getProjectIconComponent,aa as getReminderLabel,ia as getReminderOptions,Hl as getStatusOptionsForTask,TA as getTabHeaderConfig,Zi as getTaskBoxColumnDefs,Hr as getTaskBoxGridTemplate,iS as getTaskBoxTabKind,Qr as getTaskConfirmInfo,Bo as getTaskDisplayStatusOption,Rr as getTaskStatusOption,Rn as groupGoogleEventsByDate,rl as groupSeqFromTabKey,rR as hasRelation,dk as htmlToPlainText,Ty as isCustomTabKey,Gi as isOpenPoolTaskItem,$i as isPastEvent,Pr as isTaskDone,Ov as isWaitingTask,wi as monthsAgoDate,uo as narrowOrderSx,L2 as nowDateTimeString,jh as parseEstimatedHours,gn as relationsOf,_n as resolveTaskStatusOptions,Ni as resolveTaskboxTheme,Un as shareTaskText,tc as sumRemainingHours,Bi as summarizeNoticeTargets,W2 as tabKeyFromGroupSeq,Bn as toYmd,zr as toggleLabelKey,Pi as useBuildFileUrl,Mc as useTaskAttachmentUploadMeta,Mo as useTaskboxConfig,Lp as useTaskboxForm,te as useTaskboxTheme,ft as useTaskboxUiState,or as useUploadMaxMb};
|
|
13
|
+
`)}function tm(e){navigator.clipboard.writeText(e).then(()=>TT("\uC5C5\uBB34 \uB0B4\uC6A9\uC744 \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4.")).catch(()=>kT("\uBCF5\uC0AC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB0B4\uC6A9\uC744 \uC9C1\uC811 \uC120\uD0DD\uD574 \uBCF5\uC0AC\uD574 \uC8FC\uC138\uC694."))}function Un(e,o){let t=yT(e);if(o&&typeof navigator.share=="function"){navigator.share({text:t}).catch(n=>{n?.name!=="AbortError"&&tm(t)});return}tm(t)}import{Fragment as DT,jsx as oo,jsxs as rm}from"react/jsx-runtime";function im({task:e,myAccountSeq:o=0,onToggleCompleted:t,onChangeTitle:n,onChangeIcon:r,onChangeIconColor:i,onClose:a,appBarMode:l=!1}){let u=Ne(),[s,c]=nm(null),[m,d]=nm(null),p=vn(e.icon||(e.is_notice?So:e.is_event?"event":Ee)),x=!!e.is_notice,D=!!e.is_event,T=x&&o>0&&(e.author_account_seq??0)===o,g=!xt(e,o),f=!D&&(x?T:(e.author_account_seq??0)===o||(e.manager_account_seq??0)===o);return rm(DT,{children:[rm(vi,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1.5,flexShrink:0},children:[l&&a?oo(Ii,{"aria-label":"\uB4A4\uB85C",onClick:a,sx:{color:"#37352f",ml:-1},children:oo(CT,{})}):null,f&&!l?oo(Xa,{title:e.completed&&e.completed_by?`${e.completed_by} \xB7 ${gt(e.completed_time)} \uC644\uB8CC`:e.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC",arrow:!0,disableInteractive:!0,slotProps:{transition:{timeout:0}},children:oo(ST,{checked:e.completed,icon:oo(wT,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:oo(_T,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(B,C)=>t(e.seq,C),sx:{p:0}})}):null,l?null:oo(Xa,{title:g?"":"\uC544\uC774\uCF58 \uBCC0\uACBD",arrow:!0,children:oo(Ii,{size:"small",onClick:g?void 0:B=>d(B.currentTarget),sx:{color:e.icon_color||(x?"#e5484d":"#1e3a8a")},children:oo(p,{sx:{fontSize:20}})})}),s!==null?oo(vi,{component:"input",autoFocus:!0,spellCheck:!1,value:s,onChange:B=>c(B.target.value),onBlur:()=>{s.trim()&&s.trim()!==e.title&&n(e.seq,s.trim()),c(null)},onKeyDown:B=>{B.key==="Enter"&&B.target.blur(),B.key==="Escape"&&c(null)},sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:18,fontWeight:500,color:"#37352f",p:0,m:0}}):l?oo(vi,{sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x?"\uACF5\uC9C0":D?"\uC77C\uC815":e.is_bug?"\uC624\uB958":"\uC5C5\uBB34"}):oo(vi,{onClick:g?void 0:()=>c(e.title),sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:g?"default":"text",textDecoration:e.completed?"line-through":"none"},children:e.title}),oo(Xa,{title:u?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",arrow:!0,children:oo(Ii,{"aria-label":u?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",onClick:()=>Un(e,u),sx:{color:"#6b7280"},children:u?oo(vT,{sx:{fontSize:20}}):oo(IT,{sx:{fontSize:20}})})}),a&&!l?oo(Ii,{"aria-label":"\uB2EB\uAE30",onClick:a,sx:{color:"#6b7280"},children:oo(BT,{})}):null]}),oo(Wn,{anchorEl:m,value:e.icon||(x?So:""),color:e.icon_color||(x?"#e5484d":"#1e3a8a"),onSelect:B=>r(e.seq,B),onSelectColor:B=>i?.(e.seq,B),onClose:()=>d(null)})]})}import{useState as Pt}from"react";import{Box as io,Button as Gn,ButtonBase as jT,Checkbox as XT,Divider as hn,IconButton as QT,Menu as JT,MenuItem as ZT}from"@mui/material";import ey from"@mui/icons-material/ExpandLess";import oy from"@mui/icons-material/ExpandMore";import ty from"@mui/icons-material/ConfirmationNumberOutlined";import ny from"@mui/icons-material/Check";import ry from"@mui/icons-material/DirectionsRunOutlined";import iy from"@mui/icons-material/SpeedOutlined";import ol from"@mui/icons-material/CheckCircle";import ay from"@mui/icons-material/CheckCircleOutlineOutlined";import tl from"@mui/icons-material/CheckCircleOutlined";import fm from"@mui/icons-material/AccessTimeOutlined";import ly from"@mui/icons-material/AutorenewOutlined";import sy from"@mui/icons-material/LabelOutlined";import cy from"@mui/icons-material/PersonOutlineOutlined";import my from"@mui/icons-material/SubjectOutlined";import uy from"@mui/icons-material/StickyNote2Outlined";import dy from"@mui/icons-material/PanToolAltOutlined";import{useState as MT}from"react";import{TextField as ET}from"@ehfuse/mui-form-controls";import{jsx as OT}from"react/jsx-runtime";function am({value:e,onCommit:o,onDraftChange:t,readOnly:n=!1}){let[r,i]=MT(null);return OT(ET,{value:r??e,placeholder:n?"":"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",slotProps:{input:{readOnly:n}},onChange:a=>{i(a.target.value),t?.(a.target.value)},onBlur:()=>{r!==null&&r.trim()!==e&&o(r),i(null)},onKeyDown:a=>{a.key==="Enter"&&a.target.blur(),a.key==="Escape"&&i(null)},sx:{mt:1}})}import{useMemo as um,useState as Za}from"react";import{Box as fo,Button as dm,IconButton as $T}from"@mui/material";import KT from"@mui/icons-material/AccountTreeOutlined";import UT from"@mui/icons-material/Add";import VT from"@mui/icons-material/Close";import GT from"@mui/icons-material/NextPlanOutlined";function gn(e){return e.relations??[]}function rR(e,o,t){return gn(e).some(n=>n.type===t&&n.task_seq===o.seq)||gn(o).some(n=>n.type===t&&n.task_seq===e.seq)}function lm(e){return`${e.created_time??""}|${String(e.seq).padStart(12,"0")}`}function sm(e,o){let t=new Map(o.map(p=>[p.seq,p]));t.set(e.seq,e);let n=new Map,r=(p,x)=>{n.has(p)||n.set(p,new Set),n.has(x)||n.set(x,new Set),n.get(p).add(x),n.get(x).add(p)};for(let p of t.values())for(let x of gn(p))x.type==="follow_up"&&t.has(x.task_seq)&&r(p.seq,x.task_seq);let i=new Set([e.seq]),a=[e.seq];for(;a.length>0;){let p=a.shift();for(let x of n.get(p)??[])i.has(x)||(i.add(x),a.push(x))}let l=[...i].map(p=>t.get(p)).filter(p=>!!p).sort((p,x)=>lm(p).localeCompare(lm(x))),u=new Set;for(let p of gn(e))p.type==="related"&&u.add(p.task_seq);for(let p of t.values())p.seq!==e.seq&&gn(p).some(x=>x.type==="related"&&x.task_seq===e.seq)&&u.add(p.seq);let s=[...u].map(p=>t.get(p)).filter(p=>p!==void 0&&p.seq!==e.seq),c=[...t.values()].filter(p=>p.seq!==e.seq&&gn(p).some(x=>x.type==="duplicate_of"&&x.task_seq===e.seq)),m=gn(e).find(p=>p.type==="duplicate_of")?.task_seq,d=m?t.get(m)??null:null;return{lineage:l,related:s,duplicates:c,duplicateOf:d}}import{useEffect as PT,useMemo as RT,useState as Qa}from"react";import{Box as Vn,Button as zT,Tab as qT,Tabs as AT}from"@mui/material";import LT from"@mui/icons-material/Check";import{FormDialog as NT}from"@ehfuse/mui-form-dialog";import{ClearTextField as FT}from"@ehfuse/mui-form-controls";import{ErrorAlert as HT}from"@ehfuse/alerts";import{OverlayScrollbar as WT}from"@ehfuse/overlay-scrollbar";import{jsx as Lo,jsxs as Ja}from"react/jsx-runtime";var cm=[{type:"related",label:"\uAD00\uB828",hint:"\uB2E8\uC21C\uD788 \uAD00\uB828 \uC788\uB294 \uC5C5\uBB34\uB85C \uC5F0\uACB0\uD569\uB2C8\uB2E4"},{type:"follow_up",label:"\uC774\uC804 \uC5C5\uBB34",hint:"\uC774 \uC5C5\uBB34\uAC00 \uC120\uD0DD\uD55C \uC5C5\uBB34\uC5D0\uC11C \uC774\uC5B4\uC9C4 \uD6C4\uC18D\uC784\uC744 \uD45C\uC2DC\uD569\uB2C8\uB2E4(\uC774\uB825 \uD0C0\uC784\uB77C\uC778)"},{type:"duplicate_of",label:"\uC911\uBCF5(\uC6D0\uBCF8)",hint:"\uC774 \uC5C5\uBB34\uAC00 \uC120\uD0DD\uD55C \uC6D0\uBCF8 \uC5C5\uBB34\uC758 \uC911\uBCF5\uC784\uC744 \uD45C\uC2DC\uD569\uB2C8\uB2E4"}];function mm({open:e,task:o,tasks:t,excludeSeqs:n=[],onClose:r,onSubmit:i}){let[a,l]=Qa("related"),[u,s]=Qa(""),[c,m]=Qa(0);PT(()=>{e&&(l("related"),s(""),m(0))},[e]);let d=RT(()=>{let T=new Set([o.seq,...n]),g=u.trim().toLowerCase();return t.filter(f=>T.has(f.seq)||f.is_event||f.is_notice?!1:g?f.title.toLowerCase().includes(g)||(f.ticket_no??"").toLowerCase().includes(g):!0)},[t,o.seq,n,u]),p=()=>{if(!c){HT("\uC5F0\uACB0\uD560 \uC5C5\uBB34\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return}i(c,a),r()},x=cm.find(T=>T.type===a)?.hint??"",D=Ja(Vn,{children:[Lo(AT,{value:a,onChange:(T,g)=>l(g),sx:{minHeight:38,mb:.75,"& .MuiTab-root":{minHeight:38,py:.5,fontSize:14}},children:cm.map(T=>Lo(qT,{value:T.type,label:T.label},T.type))}),Lo(Vn,{sx:{mb:1.5,fontSize:12.5,color:"#9a9a97"},children:x}),Lo(FT,{label:"\uC5C5\uBB34 \uAC80\uC0C9",placeholder:"\uC81C\uBAA9\xB7\uD2F0\uCF13\uBC88\uD638\uB85C \uAC80\uC0C9",value:u,onChange:T=>s(T.target.value),fullWidth:!0,autoFocus:!0}),Lo(Vn,{sx:{mt:1.5,height:300,border:"1px solid #e6e6e3",borderRadius:1},children:Lo(WT,{style:{height:"100%"},children:d.length===0?Lo(Vn,{sx:{py:4,textAlign:"center",fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uD560 \uC218 \uC788\uB294 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):d.map(T=>{let g=Ke(T.icon||Ee),f=T.seq===c;return Ja(Vn,{onClick:()=>m(f?0:T.seq),sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.75,cursor:"pointer",bgcolor:f?"#e3eefb":"transparent","&:hover":{bgcolor:f?"#e3eefb":"#f7f7f5"}},children:[g?Lo(g,{sx:{fontSize:17,flexShrink:0,color:T.icon_color||"#1e3a8a"}}):null,Ja(Vn,{component:"span",sx:{flex:1,minWidth:0,fontSize:14,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[T.ticket_no?`${T.ticket_no} `:"",T.title]}),Lo(Pe,{option:Bo(T),small:!0}),f?Lo(LT,{sx:{fontSize:17,flexShrink:0,color:"#2f80ed"}}):null]},T.seq)})})})]});return Lo(NT,{open:e,onClose:r,maxWidth:"sm",title:"\uAD00\uB828 \uC5C5\uBB34 \uC5F0\uACB0",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-link",sections:[{id:"task-link",showTitle:!1,children:D}],actions:{showCancelButton:!0,right:Lo(zT,{variant:"contained",disabled:!c,onClick:p,children:"\uC5F0\uACB0"})}})}import{Fragment as YT,jsx as $e,jsxs as jo}from"react/jsx-runtime";function el({item:e,caption:o,onOpen:t,onUnlink:n}){let r=Ke(e.icon||Ee);return jo(fo,{sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.5,borderRadius:1,"&:hover":{bgcolor:"#f7f7f5"},"&:hover .taskbox-relation-unlink":{opacity:1}},children:[o?$e(fo,{component:"span",sx:{flexShrink:0,px:.6,py:.1,borderRadius:.75,fontSize:11.5,fontWeight:500,color:"#8a6d1d",bgcolor:"#faf1d7"},children:o}):null,r?$e(r,{sx:{fontSize:16,flexShrink:0,color:e.icon_color||"#1e3a8a"}}):null,jo(fo,{component:"span",onClick:t,sx:{flex:1,minWidth:0,fontSize:14,color:e.completed?"#9a9a97":"#37352f",textDecoration:e.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...t?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[e.ticket_no?`${e.ticket_no} `:"",e.title]}),$e(Pe,{option:Bo(e),small:!0}),n?$e($T,{className:"taskbox-relation-unlink",size:"small","aria-label":"\uC5F0\uACB0 \uD574\uC81C",onClick:n,sx:{opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:$e(VT,{sx:{fontSize:15}})}):null]})}function pm({task:e,tasks:o,readOnly:t=!1,onOpenTask:n,onLink:r,onUnlink:i,onCreateFollowUp:a}){let[l,u]=Za(!1),[s,c]=Za(null),[m,d]=Za(null),p=um(()=>sm(e,o),[e,o]),x=p.lineage.length>=2,D=(x?p.lineage.length-1:0)+p.related.length+p.duplicates.length+(p.duplicateOf?1:0),T=um(()=>{let f=new Set;for(let B of p.lineage)f.add(B.seq);for(let B of p.related)f.add(B.seq);for(let B of p.duplicates)f.add(B.seq);return p.duplicateOf&&f.add(p.duplicateOf.seq),[...f]},[p]),g=(f,B,C)=>{d({anchorEl:f,targetSeq:B,type:C})};return jo(Ao,{icon:$e(KT,{sx:{fontSize:19,display:"block"}}),title:jo(YT,{children:["\uAD00\uB828 \uC5C5\uBB34",D>0?$e(fo,{component:"span",sx:{fontSize:12.5,color:"#9a9a97"},children:D}):null]}),titleExtra:t?null:jo(fo,{sx:{ml:"auto",display:"flex",alignItems:"center",gap:.5},children:[a?$e(dm,{size:"small",color:"inherit",startIcon:$e(GT,{sx:{fontSize:16}}),onClick:f=>c(f.currentTarget),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uD6C4\uC18D \uC5C5\uBB34"}):null,r?$e(dm,{size:"small",color:"inherit",startIcon:$e(UT,{sx:{fontSize:16}}),onClick:()=>u(!0),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uC5F0\uACB0"}):null]}),children:[jo(fo,{sx:{display:"flex",flexDirection:"column",mt:.5,pl:3.25},children:[x?$e(fo,{sx:{mb:p.related.length||p.duplicates.length||p.duplicateOf?1:0},children:p.lineage.map((f,B)=>{let C=f.seq===e.seq,O=B===p.lineage.length-1;return jo(fo,{sx:{display:"flex",gap:1},children:[jo(fo,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:14,flexShrink:0,pt:1.1},children:[$e(fo,{sx:{width:C?9:7,height:C?9:7,borderRadius:"50%",bgcolor:C?"#2f80ed":f.completed?"#9a9a97":"#c9c8c5",flexShrink:0}}),O?null:$e(fo,{sx:{width:"2px",flex:1,bgcolor:"#e6e6e3"}})]}),jo(fo,{sx:{flex:1,minWidth:0,pb:O?0:.5},children:[jo(fo,{sx:{display:"flex",alignItems:"center",gap:.75},children:[jo(fo,{component:"span",onClick:!C&&n?()=>n(f.seq):void 0,sx:{minWidth:0,fontSize:14,fontWeight:C?600:400,color:C?"#2f80ed":f.completed?"#9a9a97":"#37352f",textDecoration:f.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...!C&&n?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[f.ticket_no?`${f.ticket_no} `:"",f.title]}),$e(Pe,{option:Bo(f),small:!0})]}),$e(fo,{sx:{fontSize:12,color:"#9a9a97"},children:f.completed&&f.completed_time?`${f.completed_time} \uC644\uB8CC`:f.created_time??""})]})]},f.seq)})}):null,p.duplicateOf?$e(el,{item:p.duplicateOf,caption:"\uC6D0\uBCF8",onOpen:n?()=>n(p.duplicateOf.seq):void 0,onUnlink:!t&&i?f=>g(f.currentTarget,p.duplicateOf.seq,"duplicate_of"):void 0}):null,p.duplicates.map(f=>$e(el,{item:f,caption:"\uC911\uBCF5",onOpen:n?()=>n(f.seq):void 0,onUnlink:!t&&i?B=>g(B.currentTarget,f.seq,"duplicate_of"):void 0},`dup-${f.seq}`)),p.related.map(f=>$e(el,{item:f,onOpen:n?()=>n(f.seq):void 0,onUnlink:!t&&i?B=>g(B.currentTarget,f.seq,"related"):void 0},`rel-${f.seq}`)),D===0?$e(fo,{sx:{px:1.25,py:.75,fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):null]}),r?$e(mm,{open:l,task:e,tasks:o,excludeSeqs:T,onClose:()=>u(!1),onSubmit:(f,B)=>r(e.seq,f,B)}):null,$e(je,{open:!!s,anchorEl:s,title:"\uC774 \uC5C5\uBB34\uC5D0\uC11C \uC774\uC5B4\uC9C0\uB294 \uD6C4\uC18D \uC5C5\uBB34\uB97C \uB9CC\uB4DC\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uB9CC\uB4E4\uAE30",onCancel:()=>c(null),onConfirm:()=>{a?.(e.seq),c(null)}}),$e(je,{open:!!m,anchorEl:m?.anchorEl??null,title:"\uC774 \uC5C5\uBB34\uC640\uC758 \uC5F0\uACB0\uC744 \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uD574\uC81C",onCancel:()=>d(null),onConfirm:()=>{m&&i?.(e.seq,m.targetSeq,m.type),d(null)}})]})}import{Fragment as _o,jsx as R,jsxs as Ve}from"react/jsx-runtime";function Yn({label:e="\uBE44\uC5B4 \uC788\uC74C"}){return R(io,{component:"span",sx:{color:"#9a9a97"},children:e})}function xm({task:e,customTabs:o,statusOptions:t,avatarSrcByName:n,onChangeStatus:r,onChangeLabels:i,onAddLabelOption:a,onChangeProject:l,onAddProject:u,onChangeDate:s,onChangeReminder:c,onMemberEdit:m,onChangePriority:d,onChangeEstimatedTime:p,onChangeEventTime:x,onChangeEventPlace:D,onChangeEventAddress:T,onChangeNote:g,onChangeContent:f,onAddChecklistItem:B,onToggleChecklistItem:C,onRemoveChecklistItem:O,onUpdateChecklistItem:y,onConvertChecklistToTask:_,onOpenChecklistTask:k,resolveChecklistTask:S,relatedTasksPool:w,onOpenRelatedTask:K,onLinkRelatedTask:h,onUnlinkRelatedTask:b,onCreateFollowUpTask:q,onAddAttachments:A,onRemoveAttachment:L,onPreview:z,onDownload:re,onUpdateComment:le,onRemoveComment:pe,onToggleCommentReaction:ie,currentUserName:ke="",myAccountSeq:ee=0,noticeAdmin:ae=!1,hideProject:Te=!1,hideLabel:xe=!1,showTitle:W=!1,onChangeTitle:V,onToggleCompleted:Y,onChangeIcon:F,onChangeIconColor:v,employees:N=[],onAckConfirm:ne,onRequestConfirm:ye,onChangeBugField:Oe,sprints:P=[],sprintProject:fe=!1,hideSprint:me=!1,onChangeSprint:ue,onChangeStoryPoints:U,onChangeResolution:Ge,onClaimTask:$,onVerifyBug:Ye}){let[so,ut]=Pt(null),[qt,Fo]=Pt(null),[Do,dt]=Pt(null),[Qt,Ho]=Pt(null),[Jt,Oo]=Pt(!1),Jo={[Vo]:Jt?{maxHeight:120,opacity:1,overflow:"hidden",transition:"max-height 0.25s ease, opacity 0.2s ease"}:{minHeight:0,maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none",transition:"max-height 0.25s ease, opacity 0.2s ease"}},[Me,E]=Pt(null),[H,X]=Pt(null),[se,ze]=Pt(null),[qe,to]=Pt(null),J=!!e.is_notice,Ie=!!e.is_event,Ae=!!e.is_bug,Ze=!!$&&Nr(e,ee),Zo=!!$&&Fr(e,ee),Wo=!!Ye&&Ae&&!!e.completed&&ee>0&&(e.author_account_seq??0)===ee&&!(e.acks??[]).some(M=>M.account_seq===ee),Le=!xt(e,ee),et=!e.is_event&&(e.is_notice?ee>0&&(e.author_account_seq??0)===ee:(e.author_account_seq??0)===ee||(e.manager_account_seq??0)===ee),Jn=vn(e.icon||(e.is_notice?So:e.is_event?"event":Ee)),Cn=J?!Lr(e,ee):Le,Zt=Ze||Zo?Ve(Mn,{onClick:M=>to(M.currentTarget),children:[R(dy,{sx:{fontSize:16,mr:.5}}),"\uAC00\uC838\uAC00\uAE30"]}):null,wr=J?Bi(e,N):"",co=J?Nc(e,N,ee):null,lo=!J&&!Ie?Qr(e,ee):null,Zn=!!(lo&&lo.total>0||J&&co);return Ve(_o,{children:[W?Ve(io,{sx:{px:2,pt:2,pb:.5,display:"flex",alignItems:"flex-start",gap:1},children:[et?R(XT,{checked:e.completed,icon:R(ay,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:R(ol,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(M,Dr)=>{Do||dt({anchorEl:M.currentTarget,nextCompleted:Dr})},sx:{p:0,mt:.25}}):null,R(QT,{size:"small","aria-label":"\uC544\uC774\uCF58 \uBCC0\uACBD",onClick:Le?void 0:M=>Fo(M.currentTarget),sx:{p:0,mt:.25,color:e.icon_color||(J?"#e5484d":"#1e3a8a")},children:R(Jn,{sx:{fontSize:20}})}),R(io,{sx:{flex:1,minWidth:0},children:so!==null?R(io,{component:"input",autoFocus:!0,spellCheck:!1,value:so,onChange:M=>ut(M.target.value),onBlur:()=>{so.trim()&&so.trim()!==e.title&&V(e.seq,so.trim()),ut(null)},onKeyDown:M=>{M.key==="Enter"&&M.target.blur(),M.key==="Escape"&&ut(null)},sx:{width:"100%",border:"none",outline:"none",font:"inherit",fontSize:19,fontWeight:600,color:"#37352f",p:0,m:0}}):R(io,{onClick:()=>ut(e.title),sx:{fontSize:19,fontWeight:600,color:"#37352f",lineHeight:1.35,cursor:"text",textDecoration:e.completed?"line-through":"none",userSelect:"text"},children:e.title})}),R(je,{open:!!Do,anchorEl:Do?.anchorEl??null,title:Do?.nextCompleted?"\uC774 \uC5C5\uBB34\uB97C \uC644\uB8CC \uCC98\uB9AC\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC644\uB8CC\uB97C \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:Do?.nextCompleted?"\uC644\uB8CC":"\uD574\uC81C",onCancel:()=>dt(null),onConfirm:()=>{Do&&Y(e.seq,Do.nextCompleted),dt(null)}}),R(Wn,{anchorEl:qt,value:e.icon||(J?So:""),color:e.icon_color||(J?"#e5484d":"#1e3a8a"),onSelect:M=>F(e.seq,M),onSelectColor:M=>v?.(e.seq,M),onClose:()=>Fo(null)})]}):null,Ve(io,{sx:{py:1.5,display:"flex",flexDirection:"column",gap:0,[Vo]:{pb:0,"& > :last-child":{mb:0}}},children:[R(pi,{hideProject:Te,values:{tabKey:e.tab_key??"",managerName:e.manager_name,receiverNames:e.receiver_names,startDate:e.start_date,dueDate:e.due_date,reminder:e.reminder,priority:e.priority,estimatedTime:e.estimated_time,eventTime:e.event_time??"",eventPlace:e.event_place??"",eventAddress:e.event_address??""},customTabs:o,avatarSrcByName:n,showEstimatedTime:!Ie,notice:J,event:Ie,readOnly:Le,targetSummary:wr,onChangeProject:M=>l(e.seq,M),onAddProject:u,onChangeStartDate:M=>s(e.seq,"start_date",M),onChangeDueDate:M=>s(e.seq,"due_date",M),onChangeReminder:M=>c(e.seq,M),onChangePriority:M=>d(e.seq,M),onChangeEstimatedTime:M=>p(e.seq,M),onChangeEventTime:M=>x?.(e.seq,M),onChangeEventPlace:M=>D?.(e.seq,M),onChangeEventAddress:M=>T?.(e.seq,M),onMemberEdit:M=>m(e,M),narrowCollapsedSx:Jo,reminderLocked:e.completed,managerAction:Zt,leading:Ve(_o,{children:[Wo||Zt&&(J||Ie)?Ve(io,{sx:{gridColumn:"1 / -1",display:"flex",justifyContent:"flex-start",gap:2,px:2,py:1.5},children:[J||Ie?Zt:null,Wo?Ve(_o,{children:[R(Gn,{variant:"contained",size:"large",onClick:()=>Ye?.(e.seq,!0),sx:{bgcolor:"#2f80ed"},children:"\uAC80\uC99D\uC644\uB8CC"}),R(Gn,{variant:"outlined",size:"large",color:"error",onClick:()=>Ye?.(e.seq,!1),children:"\uC7AC\uC624\uD508"})]}):null]}):null,Ae&&e.ticket_no?R(de,{icon:R(ty,{sx:{fontSize:17}}),label:"\uD2F0\uCF13",children:R(io,{component:"span",sx:{fontVariantNumeric:"tabular-nums"},children:e.ticket_no})}):null,Ie?null:R(io,{sx:Ae&&e.ticket_no||Zn?void 0:{gridColumn:"1 / -1"},children:R(de,{icon:R(ly,{sx:{fontSize:17}}),label:"\uC0C1\uD0DC",onClick:Le||e.completed?void 0:M=>E(M),children:R(Pe,{option:Bo(e)})})}),lo&&lo.total>0?R(io,{children:R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uD655\uC778",children:lo.canConfirm?R(Gn,{size:"small",variant:"contained",onClick:()=>ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):Ve(Gn,{size:"small",variant:"outlined",color:"inherit",startIcon:lo.myTime?R(ol,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:M=>Ho({anchorEl:M.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:[lo.count," / ",lo.total]})})}):null,J&&co?R(io,{children:R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uD655\uC778",children:R(io,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,minWidth:0},children:co.canAck?R(Gn,{size:"small",variant:"contained",onClick:()=>ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):R(Gn,{size:"small",variant:"outlined",color:"inherit",startIcon:co.acked?R(ol,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:M=>Ho({anchorEl:M.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:co.total>0&&co.count>=co.total?"\uC644\uB8CC":Ve(_o,{children:[co.count,R(io,{component:"span",sx:{mx:.4},children:"/"}),co.total]})})})})}):null,fe&&!me&&!Ie&&!J?Ve(_o,{children:[R(de,{icon:R(ry,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:Le?void 0:M=>X(M),children:(e.sprint_seq??0)>0?P.find(M=>M.seq===e.sprint_seq)?.name??"\uC0AD\uC81C\uB41C \uC2A4\uD504\uB9B0\uD2B8":R(Yn,{label:"\uBBF8\uBC30\uC815"})}),R(de,{icon:R(iy,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",children:R(Ot,{value:(e.story_points??0)>0?String(e.story_points):"",placeholder:"\uBBF8\uCD94\uC815",readOnly:Le,onCommit:M=>U?.(e.seq,Number(M.replace(/[^0-9.]/g,""))||0)})})]}):null,Ie||xe?null:R(io,{sx:[{gridColumn:"1 / -1"},Jo??null],children:R(de,{icon:R(sy,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:Le?void 0:M=>ze(M),children:(e.label_keys??[]).length>0?R(At,{labelKeys:e.label_keys??[],labelOptions:t}):R(Yn,{})})})]}),trailing:Ve(_o,{children:[Ae?R(fi,{values:{repro:e.bug_repro??"",device:e.bug_device??"",where:e.bug_where??"",version:e.bug_version??"",resolution:e.resolution??""},readOnly:Le,showResolution:!!e.completed,onChangeRepro:M=>Oe?.(e.seq,"bug_repro",M),onChangeDevice:M=>Oe?.(e.seq,"bug_device",M),onChangeWhere:M=>Oe?.(e.seq,"bug_where",M),onChangeVersion:M=>Oe?.(e.seq,"bug_version",M),onChangeResolution:M=>Ge?.(e.seq,M)}):null,R(de,{icon:R(cy,{sx:{fontSize:17}}),label:"\uC791\uC131\uC790",sx:[uo(9),Jo??null],children:e.created_by?Ve(_o,{children:[R(Co,{names:[e.created_by],size:20,avatarSrcByName:n}),e.created_by]}):R(Yn,{})}),R(de,{icon:R(fm,{sx:{fontSize:17}}),label:"\uC791\uC131\uC2DC\uAC04",sx:[uo(11),Jo??null],children:e.created_time?gt(e.created_time):R(Yn,{})}),e.completed?Ve(_o,{children:[R(de,{icon:R(tl,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC790",sx:[uo(10),Jo??null],children:e.completed_by?Ve(_o,{children:[R(Co,{names:[e.completed_by],size:20,avatarSrcByName:n}),e.completed_by]}):R(Yn,{})}),R(de,{icon:R(fm,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC2DC\uAC04",sx:[uo(12),Jo??null],children:e.completed_time?gt(e.completed_time):R(Yn,{})})]}):null]})}),Ve(io,{sx:{display:"none",[Vo]:{display:"block",mt:1.5,mb:0}},children:[R(hn,{sx:{borderColor:"#e6e6e3"}}),R(jT,{onClick:()=>Oo(M=>!M),sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:.5,pt:1.25,pb:1.25,fontSize:13.5,bgcolor:"#f4f4f2",color:"#37352f","&:active":{opacity:.6}},children:Jt?Ve(_o,{children:["\uC811\uAE30 ",R(ey,{sx:{fontSize:18}})]}):Ve(_o,{children:["\uC815\uBCF4 \uB354\uBCF4\uAE30 ",R(oy,{sx:{fontSize:18}})]})})]}),Ve(io,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3",[Vo]:{mt:0,mb:1.25}}}),R(Ao,{icon:R(my,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",children:R(io,{sx:{userSelect:"text"},children:R(xi,{syncKey:e.seq,value:e.content??"",readOnly:Le,onChange:M=>f(e.seq,M)})})}),e.is_bug?null:Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Ao,{icon:R(uy,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:R(io,{sx:{userSelect:"text"},children:R(am,{value:e.note,readOnly:Cn,onCommit:M=>g(e.seq,M)})})})]}),Ie?null:Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(hi,{taskSeq:e.seq,checklist:e.checklist??[],removeLocked:Cn,onAdd:B,onToggle:C,onRemove:O,onUpdate:y,onConvertToTask:_,onOpenLinkedTask:k,resolveLinkedTask:S})]}),w&&!Ie&&!J?Ve(_o,{children:[R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(pm,{task:e,tasks:w,readOnly:Le,onOpenTask:K,onLink:h,onUnlink:b,onCreateFollowUp:q})]}):null,R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Ti,{taskSeq:e.seq,attachments:e.attachments??[],removeLocked:Cn,onAdd:A,onRemove:L,onPreview:z?M=>z({...M,taskSeq:e.seq}):void 0,onDownload:re?M=>re({...M,taskSeq:e.seq}):void 0})]}),R(hn,{sx:{my:1.5,borderColor:"#e6e6e3"}}),R(Zc,{taskSeq:e.seq,comments:e.comments??[],currentUserName:ke,myAccountSeq:ee,avatarSrcByName:n,onUpdate:le,onRemove:pe,onToggleReaction:ie})]}),R(Ar,{anchorEl:Me,value:e.status,options:J?rr:Ae?on:ir,onSelect:M=>r(e.seq,M),onClose:()=>E(null)}),R(JT,{transitionDuration:0,anchorEl:H,open:!!H,onClose:()=>X(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...P.filter(M=>`custom-${M.group_seq}`===String(e.tab_key??"")).map(M=>({seq:M.seq,label:zo(M)}))].map(M=>Ve(ZT,{onClick:()=>{ue?.(e.seq,M.seq),X(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[M.label,(e.sprint_seq??0)===M.seq?R(ny,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},M.seq))}),R(Xr,{anchorEl:Qt?.anchorEl??null,open:!!Qt?.open,acks:e.acks??[],total:co?.total??lo?.total??0,avatarSrcByName:n,onRequestConfirm:ye&&lo&&lo.count<lo.total?()=>{ye(e.seq),Ho(M=>M?{...M,open:!1}:null)}:void 0,onClose:()=>Ho(M=>M?{...M,open:!1}:null)}),R(Si,{anchorEl:se,selectedKeys:e.label_keys??[],labelOptions:t,onToggle:M=>i(e.seq,zr(e.label_keys??[],M)),onAddLabel:a,onClose:()=>ze(null)}),R(je,{open:!!qe,anchorEl:qe,title:Ze?"\uC774 \uC5C5\uBB34\uB97C \uAC00\uC838\uC640 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC5C5\uBB34\uC758 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uAC00\uC838\uAC00\uAE30",onCancel:()=>to(null),onConfirm:()=>{$?.(e.seq),to(null)}})]})}import{jsx as Eo,jsxs as ky}from"react/jsx-runtime";function L2(){let e=new Date,o=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())} ${o(e.getHours())}:${o(e.getMinutes())}`}function N2({open:e,task:o,onClose:t,onAddComment:n,onSaveFields:r,myAccountSeq:i=0,onToggleCompleted:a,onChangeTitle:l,onChangeIcon:u,onChangeIconColor:s,...c}){let m=Ne(),d=hm(null);o&&(d.current=o);let p=o??d.current,[x,D]=py({}),T=Object.keys(x).length>0;gm(()=>{D({})},[o?.seq,e]);let g=hm(null);if(gm(()=>{g.current?.scrollTo({top:0})},[o?.seq]),!p)return null;let f=m&&T?{...p,...x}:p,B=(k,S)=>{m?D(w=>({...w,...k})):S()},C=()=>{let k=x;D({});let S=p.seq,w=k.title===void 0?void 0:String(k.title).trim();if(r){let K={...k};w!==void 0&&(w?K.title=w:delete K.title),Object.keys(K).length>0&&r(S,K),km({message:"\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",position:"center"});return}w&&l(S,w),k.icon!==void 0&&u(S,String(k.icon)),k.icon_color!==void 0&&s?.(S,String(k.icon_color)),k.status!==void 0&&c.onChangeStatus(S,k.status),k.label_keys!==void 0&&c.onChangeLabels(S,k.label_keys??[]),k.tab_key!==void 0&&c.onChangeProject(S,String(k.tab_key??"")),k.start_date!==void 0&&c.onChangeDate(S,"start_date",String(k.start_date??"")),k.due_date!==void 0&&c.onChangeDate(S,"due_date",String(k.due_date??"")),k.reminder!==void 0&&c.onChangeReminder(S,k.reminder),k.priority!==void 0&&c.onChangePriority(S,k.priority),k.estimated_time!==void 0&&c.onChangeEstimatedTime(S,String(k.estimated_time??"")),k.event_time!==void 0&&c.onChangeEventTime?.(S,String(k.event_time??"")),k.event_place!==void 0&&c.onChangeEventPlace?.(S,String(k.event_place??"")),k.event_address!==void 0&&c.onChangeEventAddress?.(S,String(k.event_address??"")),k.content!==void 0&&c.onChangeContent(S,String(k.content??"")),k.note!==void 0&&c.onChangeNote(S,String(k.note??"")),km({message:"\uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",position:"center"})},O={...c,onChangeStatus:(k,S)=>B({status:S},()=>c.onChangeStatus(k,S)),onChangeLabels:(k,S)=>B({label_keys:S},()=>c.onChangeLabels(k,S)),onChangeProject:(k,S)=>B({tab_key:S},()=>c.onChangeProject(k,S)),onChangeDate:(k,S,w)=>B({[S]:w},()=>c.onChangeDate(k,S,w)),onChangeReminder:(k,S)=>B({reminder:S},()=>c.onChangeReminder(k,S)),onChangePriority:(k,S)=>B({priority:S},()=>c.onChangePriority(k,S)),onChangeEstimatedTime:(k,S)=>B({estimated_time:S},()=>c.onChangeEstimatedTime(k,S)),onChangeEventTime:(k,S)=>B({event_time:S},()=>c.onChangeEventTime?.(k,S)),onChangeEventPlace:(k,S)=>B({event_place:S},()=>c.onChangeEventPlace?.(k,S)),onChangeEventAddress:(k,S)=>B({event_address:S},()=>c.onChangeEventAddress?.(k,S)),onChangeContent:(k,S)=>B({content:S},()=>c.onChangeContent(k,S)),onChangeNote:(k,S)=>B({note:S},()=>c.onChangeNote(k,S))},y=Eo(xm,{...O,task:f,myAccountSeq:i,onChangeTitle:(k,S)=>B({title:S},()=>l(k,S)),onToggleCompleted:a,onChangeIcon:(k,S)=>B({icon:S},()=>u(k,S)),onChangeIconColor:(k,S)=>B({icon_color:S},()=>s?.(k,S)),showTitle:m}),_=Eo(em,{onSubmit:(k,S)=>n(f.seq,k,S)},f.seq);return m?Eo(by,{open:e,onClose:t,locale:"ko",fontScale:{enabled:!0,default:1.1,min:.6},title:f.is_notice?"\uACF5\uC9C0\uC0AC\uD56D":f.is_event?"\uC77C\uC815":f.is_bug?"\uC624\uB958":"\uC5C5\uBB34",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1},custom:[{icon:Eo(gy,{sx:{ml:2,color:"#6b7280"}}),tooltip:"\uACF5\uC720\uD558\uAE30",onClick:()=>Un(f,!0)},{icon:Eo(xy,{sx:{ml:1,color:T?"#2f9e5b":"#c9c8c5"}}),tooltip:T?"\uC800\uC7A5":"",onClick:T?C:void 0}]},fullScreen:!0,mobilePresentation:"slide",tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},actions:{visible:!0,showCancelButton:!1,left:_},sx:{DialogContent:{borderBottom:"none"}},dialogActionSx:{padding:"0 !important","@media (max-width:1023.95px)":{padding:"0 !important"},borderTop:"1px solid #37352f","& .left-actions":{flex:1,width:"100%",minWidth:0,"& > *":{flex:1,minWidth:0}},"& .right-actions":{display:"none"}},sections:[{id:"task-detail",title:"",showTitle:!1,children:Eo(_i,{sx:{userSelect:"none",width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:y})}]},p.seq):Eo(fy,{anchor:"right",open:e,onClose:t,sx:{zIndex:k=>k.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:ky(_i,{sx:{display:"flex",flexDirection:"column",height:"100%",userSelect:"none"},children:[Eo(im,{task:f,myAccountSeq:i,onToggleCompleted:a,onChangeTitle:l,onChangeIcon:u,onChangeIconColor:s,onClose:t}),Eo(bm,{sx:{borderColor:"#e6e6e3"}}),Eo(_i,{sx:{flex:1,minHeight:0},children:Eo(hy,{ref:g,style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:y})}),Eo(bm,{sx:{borderColor:"#37352f"}}),Eo(_i,{sx:{flexShrink:0},children:_})]})})}import{useEffect as yy,useState as bn}from"react";import{Box as wo,Button as il,IconButton as Tm}from"@mui/material";import{FormDialog as Sy}from"@ehfuse/mui-form-dialog";import By from"@mui/icons-material/EditOutlined";import{ErrorAlert as ym}from"@ehfuse/alerts";import{ClearTextField as Sm,DateTextField as Bm,LabelSelect as Cm}from"@ehfuse/mui-form-controls";var nl="custom-";function Ty(e){return e.startsWith(nl)}function W2(e){return e>0?`${nl}${e}`:""}function rl(e){if(!Ty(e))return 0;let o=Number(e.slice(nl.length));return Number.isInteger(o)&&o>0?o:0}import{Fragment as vy,jsx as Qe,jsxs as Xt}from"react/jsx-runtime";var Cy=[{value:"planning",label:"\uACC4\uD68D\uC911"},{value:"active",label:"\uC9C4\uD589\uC911"},{value:"closed",label:"\uC885\uB8CC"}];function vm(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?e.slice(5).replace("-","."):"-"}function J2({open:e,customTabs:o,sprints:t,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,onRemove:l}){let u=o.filter(h=>h.useSprints&&!h.archived),[s,c]=bn(""),[m,d]=bn(""),[p,x]=bn(""),[D,T]=bn(""),[g,f]=bn(""),[B,C]=bn(!1),[O,y]=bn(0);yy(()=>{e&&(c(u.length===1?u[0].key:""),d(""),x(""),T(""),f(""),y(0))},[e]);let _=()=>{d(""),x(""),T(""),f(""),y(0)},k=h=>{y(h.seq),c(`custom-${h.group_seq}`),d(h.name),x(h.goal),T(h.start_date),f(h.end_date)},S=async()=>{let h=rl(s);if(!h){ym("\uBAA9\uD45C\uB97C \uB9CC\uB4E4 \uD504\uB85C\uC81D\uD2B8\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return}if(!m.trim()){ym("\uBAA9\uD45C \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.");return}C(!0);try{if(O>0){i(O,{name:m.trim(),goal:p.trim(),start_date:D,end_date:g}),_();return}await r({group_seq:h,name:m.trim(),goal:p.trim(),start_date:D,end_date:g})&&_()}finally{C(!1)}},w=new Map(o.map(h=>[rl(h.key),h.label])),K=Qe(wo,{children:u.length===0?Qe(wo,{sx:{py:2,fontSize:14,color:"#787774"},children:'\uBAA9\uD45C\uB97C \uC0AC\uC6A9\uD558\uB294 \uD504\uB85C\uC81D\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8 \uC218\uC815\uC5D0\uC11C "\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8) \uC0AC\uC6A9"\uC744 \uBA3C\uC800 \uCF1C\uC138\uC694.'}):Xt(vy,{children:[Xt(wo,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:2.5,mt:1},children:[Qe(Cm,{label:"\uD504\uB85C\uC81D\uD2B8",size:"medium",value:s,options:u.map(h=>({value:h.key,label:h.label})),onChange:h=>c(String(h.target.value)),disabled:O>0}),Qe(Sm,{label:"\uBAA9\uD45C \uC774\uB984",size:"medium",placeholder:"\uC608: 8\uC6D4 2\uC8FC\uCC28",value:m,onChange:h=>d(h.target.value)}),Qe(Bm,{size:"medium",label:"\uC2DC\uC791\uC77C",value:D,onChange:h=>T(h.target.value)}),Qe(Bm,{size:"medium",label:"\uC885\uB8CC\uC77C",value:g,onChange:h=>f(h.target.value)}),Qe(Sm,{label:"\uC124\uBA85",size:"medium",placeholder:"\uC120\uD0DD \uC785\uB825",value:p,onChange:h=>x(h.target.value),sx:{gridColumn:"1 / -1"}})]}),Xt(wo,{sx:{mt:1.5,display:"flex",justifyContent:"flex-end",gap:1},children:[O>0?Qe(il,{color:"inherit",onClick:_,disabled:B,children:"\uCDE8\uC18C"}):null,Qe(il,{variant:"contained",onClick:()=>{S()},disabled:B,children:O>0?"\uBAA9\uD45C \uC800\uC7A5":"\uBAA9\uD45C \uB9CC\uB4E4\uAE30"})]}),Qe(wo,{sx:{mt:2,borderTop:"1px solid #e6e6e3"},children:t.length===0?Qe(wo,{sx:{py:3,textAlign:"center",fontSize:14,color:"#9a9a97"},children:"\uB4F1\uB85D\uB41C \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):t.map(h=>Xt(wo,{sx:{display:"flex",flexDirection:"column",gap:1,py:1.75,borderBottom:"1px solid #f0efed"},children:[Xt(wo,{sx:{minWidth:0},children:[Xt(wo,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Qe(wo,{component:"span",sx:{fontSize:16,fontWeight:600,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:h.name}),Qe(wo,{component:"span",sx:{flexShrink:0,px:1,py:.25,borderRadius:.75,bgcolor:"#f1f5f9",color:"#64748b",fontSize:13,fontWeight:500},children:w.get(h.group_seq)??"\uC0AD\uC81C\uB41C \uD504\uB85C\uC81D\uD2B8"}),Xt(wo,{component:"span",sx:{flexShrink:0,fontSize:14,color:"#57564f"},children:[vm(h.start_date)," ~ ",vm(h.end_date)]})]}),h.goal?Qe(wo,{sx:{mt:.5,fontSize:14,color:"#787774",lineHeight:1.5},children:h.goal}):null]}),Xt(wo,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Qe(Cm,{label:"\uC0C1\uD0DC",showLabel:!1,size:"small",value:h.status,options:Cy.map(b=>({value:b.value,label:b.label})),onChange:b=>a(h.seq,String(b.target.value)),sx:{width:104,flexShrink:0}}),Qe(Tm,{"aria-label":"\uBAA9\uD45C \uC218\uC815",onClick:()=>k(h),sx:{color:"#9a9a97","&:hover":{color:"#2563eb"}},children:Qe(By,{sx:{fontSize:18}})}),Qe(Tm,{"aria-label":"\uBAA9\uD45C \uC0AD\uC81C",onClick:()=>l(h.seq),sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:Qe(Tt,{style:{width:16,height:16}})})]})]},h.seq))})]})});return Qe(Sy,{open:e,onClose:n,maxWidth:"sm",title:"\uBAA9\uD45C \uAD00\uB9AC",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-manage",sections:[{id:"sprint-manage",showTitle:!1,children:K}],actions:{showCancelButton:!1,right:Qe(il,{variant:"contained",onClick:n,children:"\uB2EB\uAE30"})}})}import{useState as Im}from"react";import{Box as ao,Button as al,Divider as Iy,IconButton as _y,TextField as wy}from"@mui/material";import{FormDialog as Dy}from"@ehfuse/mui-form-dialog";import My from"@mui/icons-material/OpenInNewOutlined";import Ey from"@mui/icons-material/EventOutlined";import{ConfirmDialog as Oy}from"@ehfuse/alerts";import{jsx as De,jsxs as kn}from"react/jsx-runtime";function sz({open:e,imports:o,onRegister:t,onRemove:n,onClose:r}){let[i,a]=Im(""),[l,u]=Im(!1),s=async()=>{let d=i.trim();if(d){u(!0);try{await t(d)&&a("")}finally{u(!1)}}},c=async d=>{await Oy({title:"\uAC00\uC838\uC624\uAE30 \uD574\uC81C",message:`"${d.name||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}" \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30\uB97C \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&n(d.seq)},m=kn(ao,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[kn(ao,{sx:{color:"#37352f",lineHeight:1.7},children:["\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758 \uC77C\uC815\uC744 ",De("b",{children:"\uC77D\uAE30\uC804\uC6A9"}),"\uC73C\uB85C \uC5C5\uBB34\uD568 \uCE98\uB9B0\uB354\uC5D0 \uD568\uAED8 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",De("br",{}),"\uD45C\uC2DC/\uC228\uAE40\uC740 \uC5C5\uBB34\uD568 \uC6B0\uC0C1\uB2E8\uC758 ",De("b",{children:"\uAD6C\uAE00 \uC77C\uC815"})," \uC2A4\uC704\uCE58\uB85C \uCF1C\uACE0 \uB055\uB2C8\uB2E4."]}),De(ao,{sx:{fontWeight:700,color:"#37352f",mt:.5},children:"\uB4F1\uB85D\uB41C \uCE98\uB9B0\uB354"}),o.length>0?De(ao,{sx:{display:"flex",flexDirection:"column",border:"1px solid #e6e6e3",borderRadius:1},children:o.map((d,p)=>kn(ao,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:.75,borderTop:p>0?"1px solid #efefed":"none"},children:[De(Ey,{sx:{fontSize:18,color:"#0f9d58",flexShrink:0}}),De(ao,{component:"span",sx:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.name||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),De(_y,{"aria-label":"\uAC00\uC838\uC624\uAE30 \uD574\uC81C",size:"small",onClick:()=>{c(d)},sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:De(Tt,{sx:{fontSize:18}})})]},d.seq))}):De(ao,{sx:{color:"#9a9a97",px:.5},children:"\uC544\uC9C1 \uB4F1\uB85D\uB41C \uCE98\uB9B0\uB354\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}),De(Iy,{sx:{my:1,borderColor:"#e6e6e3"}}),De(ao,{sx:{fontWeight:700,color:"#37352f"},children:"\uC0C8 \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30"}),kn(ao,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,mb:1,fontSize:15,lineHeight:1.8,display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[De(ao,{children:kn(ao,{component:"span",children:["\uAD6C\uAE00 \uCE98\uB9B0\uB354(\uC6F9) > \uC67C\uCABD \uBAA9\uB85D\uC5D0\uC11C \uAC00\uC838\uC62C \uCE98\uB9B0\uB354\uC5D0 \uB9C8\uC6B0\uC2A4\uB97C \uC62C\uB824 \u22EE > ",De("b",{children:"\uC124\uC815 \uBC0F \uACF5\uC720"}),"\uB97C \uC5FD\uB2C8\uB2E4."]})}),De(ao,{children:kn(ao,{component:"span",children:[De("b",{children:"\uCE98\uB9B0\uB354 \uD1B5\uD569"})," \uC139\uC158\uC758 ",De("b",{children:'"iCal \uD615\uC2DD\uC758 \uBE44\uBC00 \uC8FC\uC18C"'})," \uB97C \uBCF5\uC0AC\uD574 \uC544\uB798\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694."]})}),De(ao,{children:De(ao,{component:"span",children:"\uBE44\uBC00 \uC8FC\uC18C\uB294 \uBCF8\uC778 \uC804\uC6A9\uC785\uB2C8\uB2E4. \uC11C\uBC84\uC5D0 \uC800\uC7A5\uB418\uBA70 \uB2E4\uB978 \uC9C1\uC6D0\uC5D0\uAC8C \uBCF4\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."})}),De(ao,{children:De(ao,{component:"span",children:"\uC77C\uC815\uC740 \uC57D 10\uBD84 \uAC04\uACA9\uC73C\uB85C \uAC31\uC2E0\uB418\uACE0, \uBC18\uBCF5 \uC77C\uC815\uC740 \uC77C\uBC18\uC801\uC778 \uADDC\uCE59(\uB9E4\uC77C/\uB9E4\uC8FC/\uB9E4\uC6D4/\uB9E4\uB144)\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4."})})]}),kn(ao,{sx:{display:"flex",gap:2,alignItems:"center"},children:[De(wy,{value:i,onChange:d=>a(d.target.value),fullWidth:!0,label:"\uBE44\uBC00 iCal \uC8FC\uC18C",placeholder:"https://calendar.google.com/calendar/ical/\u2026/basic.ics",slotProps:{input:{spellCheck:!1}}}),De(al,{variant:"contained",disabled:!i.trim()||l,onClick:()=>{s()},sx:{flexShrink:0},children:l?"\uD655\uC778 \uC911\u2026":"\uB4F1\uB85D"})]})]});return De(Dy,{open:e,onClose:r,width:680,title:"\uAD6C\uAE00 \uCE98\uB9B0\uB354 \uAC00\uC838\uC624\uAE30",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-import",sections:[{id:"calendar-import",showTitle:!1,children:m}],actions:{showCancelButton:!1,left:De(al,{variant:"outlined",startIcon:De(My,{sx:{fontSize:16}}),onClick:()=>window.open("https://calendar.google.com/calendar","_blank"),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),right:De(al,{variant:"contained",onClick:r,children:"\uB2EB\uAE30"})}})}import{Box as Rt,Button as Br,TextField as Py}from"@mui/material";import{FormDialog as Ry}from"@ehfuse/mui-form-dialog";import zy from"@mui/icons-material/ContentCopyOutlined";import _m from"@mui/icons-material/OpenInNewOutlined";import{InfoAlert as wm}from"@ehfuse/alerts";import{Fragment as Ay,jsx as Je,jsxs as Tn}from"react/jsx-runtime";function qy(e){return`${window.location.origin}/api/v1/taskbox/calendar/${e}.ics`}function gz({open:e,feed:o,feedTaskCount:t,buildFeedUrl:n,onSubscribe:r,onClose:i}){let a=n??qy,l=o.subscribed?a(o.token):"",u=()=>{navigator.clipboard.writeText(l).then(()=>wm("\uD53C\uB4DC \uC8FC\uC18C\uB97C \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4.")).catch(()=>wm("\uBCF5\uC0AC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC8FC\uC18C\uB97C \uC9C1\uC811 \uC120\uD0DD\uD574 \uBCF5\uC0AC\uD558\uC138\uC694."))},s=()=>{let m=l.replace(/^https?:\/\//,"webcal://");window.open(`https://calendar.google.com/calendar/r?cid=${encodeURIComponent(m)}`,"_blank")},c=Tn(Rt,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[Tn(Rt,{sx:{color:"#37352f",lineHeight:1.7},children:["\uB0B4\uAC00 \uAD00\uC5EC\uD55C \uC5C5\uBB34\uB97C ",Je("b",{children:"\uC77D\uAE30\uC804\uC6A9"}),"\uC73C\uB85C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4."]}),t===0?Tn(Rt,{sx:{color:"#8a6d1d",bgcolor:"#faf1d7",borderRadius:1,px:1.5,py:1.25,lineHeight:1.7},children:["\uC9C0\uAE08\uC740 \uCE98\uB9B0\uB354\uC5D0 \uD45C\uC2DC\uD560 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",Je("br",{}),Je("b",{children:"\uB9C8\uAC10\uAE30\uD55C\uC774 \uC788\uB294 \uB0B4 \uC5C5\uBB34 \uB610\uB294 \uBCF4\uB0B8\uC5C5\uBB34"}),"\uAC00 \uC0DD\uAE30\uBA74"," ",o.subscribed?"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uC790\uB3D9\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.":"\uC5EC\uAE30\uC11C \uAD6C\uB3C5\uC744 \uC2DC\uC791\uD558\uC138\uC694."]}):o.subscribed&&o.enabled?Tn(Ay,{children:[Je(Py,{value:l,fullWidth:!0,label:"\uB0B4 \uD53C\uB4DC \uC8FC\uC18C",slotProps:{input:{readOnly:!0}}}),Tn(Rt,{sx:{display:"flex",gap:2},children:[Je(Br,{variant:"outlined",startIcon:Je(zy,{}),onClick:u,children:"\uC8FC\uC18C \uBCF5\uC0AC"}),Je(Br,{variant:"contained",startIcon:Je(_m,{}),onClick:s,children:"Google \uCE98\uB9B0\uB354\uC5D0 \uCD94\uAC00"})]}),Tn(Rt,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,fontSize:15,lineHeight:1.8,display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[Je(Rt,{children:Tn("span",{children:["\uBC84\uD2BC\uC774 \uB3D9\uC791\uD558\uC9C0 \uC54A\uC73C\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354 > \uB2E4\uB978 \uCE98\uB9B0\uB354 + > ",Je("b",{children:"URL\uB85C \uCD94\uAC00"}),"\uC5D0 \uC704 \uC8FC\uC18C\uB97C \uBD99\uC5EC\uB123\uC73C\uC138\uC694."]})}),Je(Rt,{children:Je("span",{children:"\uAD6C\uAE00\uC774 \uD53C\uB4DC\uB97C \uC8FC\uAE30\uC801\uC73C\uB85C(\uC218 \uC2DC\uAC04 \uAC04\uACA9) \uAC00\uC838\uAC00\uBBC0\uB85C \uBCC0\uACBD\uC0AC\uD56D \uBC18\uC601\uC774 \uB2A6\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4."})}),Je(Rt,{children:Je("span",{children:"\uB0B4\uBCF4\uB0B4\uAE30\uB97C \uADF8\uB9CC\uD558\uB824\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uCD94\uAC00\uD55C \uCE98\uB9B0\uB354\uB97C \uC0AD\uC81C\uD558\uBA74 \uB429\uB2C8\uB2E4."})}),Je(Rt,{children:Je("span",{children:"\uC774 \uC8FC\uC18C\uB294 \uBCF8\uC778 \uC804\uC6A9\uC785\uB2C8\uB2E4. \uACF5\uC720\uD558\uBA74 \uB0B4 \uC5C5\uBB34 \uC77C\uC815\uC774 \uB178\uCD9C\uB429\uB2C8\uB2E4."})})]})]}):Je(Br,{variant:"contained",onClick:r,sx:{alignSelf:"flex-start"},children:"\uAD6C\uB3C5 \uC2DC\uC791 (\uD53C\uB4DC \uBC1C\uAE09)"})]});return Je(Ry,{open:e,onClose:i,width:680,title:"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uB85C \uB0B4\uBCF4\uB0B4\uAE30",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-subscribe",sections:[{id:"calendar-subscribe",showTitle:!1,children:c}],actions:{showCancelButton:!1,left:Je(Br,{variant:"outlined",startIcon:Je(_m,{sx:{fontSize:16}}),onClick:()=>window.open("https://calendar.google.com/calendar","_blank"),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354"}),right:Je(Br,{variant:"contained",onClick:i,children:"\uB2EB\uAE30"})}})}import{useEffect as Ly,useMemo as ll,useState as sl}from"react";import{Box as Cr,Button as Ny,Typography as Fy}from"@mui/material";import{FormDialog as Hy}from"@ehfuse/mui-form-dialog";import{SearchTextField as Wy}from"@ehfuse/mui-form-controls";import{TreeView as $y}from"@ehfuse/tree-view";import{Fragment as jy,jsx as Xo,jsxs as Xy}from"react/jsx-runtime";function Dm(e){return`${e.name}#${e.seq}`}function Ky(e){return Number(e.slice(e.lastIndexOf("#")+1))||0}function Uy(e){let o=[],t=n=>{for(let r of n.employees??[])o.push(r);for(let r of n.groups??[])t(r)};for(let n of e)t(n);return o}function Vy(e,o){return o?[e.name,e.department,e.role_name,e.work_position].filter(Boolean).some(t=>String(t).toLowerCase().includes(o)):!0}function Gy(e){let o=[[e.name,e.role_name].filter(Boolean).join(" "),e.department].filter(Boolean).join(" / ");return{id:`emp:${e.seq}`,label:Dm(e),renderLabel:Xo(Cr,{component:"span",sx:{display:"inline-flex",alignItems:"baseline",gap:.75},children:Xo(Cr,{component:"span",sx:{fontWeight:400,color:"text.primary"},children:o})})}}function Mm(e,o){let t=(e.groups??[]).map(r=>Mm(r,o)).filter(r=>r!==null),n=(e.employees??[]).filter(r=>Vy(r,o)).map(Gy);return t.length===0&&n.length===0?null:{id:`group:${e.key}`,label:e.name,children:[...t,...n]}}function Yy({groups:e,allEmployees:o,initialSelectedSeqs:t,multiple:n,isMobile:r,onSelectionChange:i}){let[a,l]=sl(""),u=ll(()=>e.map(c=>Mm(c,a.trim().toLowerCase())).filter(c=>c!==null),[e,a]),s=ll(()=>o.filter(c=>t.includes(c.seq)).map(Dm),[]);return Xy(jy,{children:[Xo(Cr,{sx:{px:1.5,py:1,borderBottom:"1px solid #cccccc",flexShrink:0},children:Xo(Wy,{size:"small",fullWidth:!0,placeholder:"\uC774\uB984, \uBD80\uC11C \uAC80\uC0C9",onSearch:l,onClear:()=>l(""),sx:{"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{px:0}}})}),Xo(Cr,{sx:r?{display:"flex",flexDirection:"column"}:{flex:1,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:Xo($y,{items:u,checkbox:!0,multiSelect:n,selectionMode:"child",showSearch:!1,defaultExpanded:!0,initialSelections:s,onChange:c=>i(c.map(Ky).filter(m=>m>0)),styles:{border:"none",borderRadius:"0"}})})]})}function vz({open:e,title:o="\uC9C1\uC6D0 \uC120\uD0DD",hint:t="",groups:n,multiple:r=!1,selectedSeqs:i,confirmText:a="\uD655\uC778",onConfirm:l,onClose:u}){let s=Ne(),[c,m]=sl([]),[d,p]=sl(0),x=ll(()=>Uy(n),[n]),D=i??[];Ly(()=>{e&&(m(D),p(g=>g+1))},[e]);let T=()=>{let g=x.filter(f=>c.includes(f.seq));l(r?g:g.slice(0,1)),u()};return Xo(Hy,{open:e,onClose:u,title:`${o}${r&&c.length>0?` (${c.length}\uBA85)`:""}`,locale:"ko",fullScreen:s,mobilePresentation:s?"slide":"dialog",draggable:!0,width:"600px",tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},scrollPastLastSection:!1,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-employee-select",sections:[{id:"employee-select",title:"\uC9C1\uC6D0 \uC120\uD0DD",showTitle:!1,children:Xo(Cr,{sx:{...s?{}:{height:560},display:"flex",flexDirection:"column",border:"1px solid #cccccc",borderRadius:1,...s?{}:{overflow:"hidden"},userSelect:"none"},children:Xo(Yy,{groups:n,allEmployees:x,initialSelectedSeqs:D,multiple:r,isMobile:s,onSelectionChange:m},d)})}],dialogActionSx:{"@media (max-width:1023.95px)":{gap:"0.75rem !important","& .left-actions":{flex:1,minWidth:0},"& .right-actions":{flex:1}}},actions:{visible:!0,showCancelButton:!1,left:t?Xo(Fy,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line",lineHeight:1.35},children:t}):void 0,right:Xo(Ny,{variant:"contained",onClick:T,children:a})}})}import{useEffect as e0,useMemo as o0,useState as t0}from"react";import{Box as Qn,Button as n0,Divider as r0}from"@mui/material";import{FormDialog as i0}from"@ehfuse/mui-form-dialog";import{LabelSelect as a0}from"@ehfuse/mui-form-controls";import{Box as ct}from"@mui/material";import{jsx as jn,jsxs as Xn}from"react/jsx-runtime";function Qy(e,o){let t=o.filter(n=>n.sprint_seq===e.seq&&!n.archived&&n.completed);return{points:t.reduce((n,r)=>n+(r.story_points??0),0),count:t.length}}function Em({sprints:e,tasks:o,height:t=160}){let r=[...e].sort((c,m)=>`${c.start_date}|${c.seq}`.localeCompare(`${m.start_date}|${m.seq}`)).map(c=>({sprint:c,...Qy(c,o)})),i=r.some(c=>c.points>0),a=r.map(c=>i?c.points:c.count),l=Math.max(1,...a),u=r.filter(c=>c.sprint.status==="closed").map(c=>i?c.points:c.count),s=u.length>0?Math.round(u.reduce((c,m)=>c+m,0)/u.length*10)/10:null;return r.length===0?jn(ct,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uD45C\uC2DC\uD560 \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):Xn(ct,{children:[Xn(ct,{sx:{mb:1,display:"flex",justifyContent:"space-between",fontSize:14,color:"#000"},children:[Xn("span",{children:["\uC644\uB8CC ",i?"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8(SP)":"\uC5C5\uBB34 \uC218(\uAC74)"," \u2014 \uBAA9\uD45C\uBCC4"]}),s!==null?Xn("span",{children:["\uD3C9\uADE0(\uC885\uB8CC \uBAA9\uD45C)"," ",jn(ct,{component:"span",sx:{color:"#2f80ed",fontWeight:700},children:s}),i?"SP":"\uAC74"]}):null]}),jn(ct,{sx:{display:"flex",alignItems:"flex-end",gap:2,height:t,px:.5},children:r.map(c=>{let m=i?c.points:c.count,d=Math.round((t-24)*m/l),p=c.sprint.status==="closed";return Xn(ct,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:"100%"},children:[jn(ct,{sx:{fontSize:14,fontWeight:700,color:"#37352f",lineHeight:1.5},children:m}),jn(ct,{sx:{width:"60%",maxWidth:56,height:Math.max(2,d),borderRadius:"4px 4px 0 0",bgcolor:p?"#2f80ed":"#a9c9f5"}})]},c.sprint.seq)})}),jn(ct,{sx:{display:"flex",gap:2,px:.5,mt:.5},children:r.map(c=>Xn(ct,{sx:{flex:1,minWidth:0,textAlign:"center",fontSize:13.5,color:"#000",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[c.sprint.name,c.sprint.status!=="closed"?" (\uC9C4\uD589\uC911)":""]},c.sprint.seq))})]})}import{useMemo as Jy}from"react";import{Box as yn}from"@mui/material";import{jsx as mt,jsxs as Sn}from"react/jsx-runtime";function Om(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00`):null}function Zy(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function cl(e){return e.slice(5).replace("-",".")}function Pm({sprint:e,tasks:o,todayStr:t,height:n=200}){let r=Jy(()=>{let g=Om(e.start_date),f=Om(e.end_date);if(!g||!f||f<g||Math.round((f.getTime()-g.getTime())/864e5)+1>366)return null;let C=o.filter(h=>h.sprint_seq===e.seq&&!h.archived);if(C.length===0)return{empty:!0};let O=C.some(h=>(h.story_points??0)>0),y=h=>O?h.story_points??0:1,_=C.reduce((h,b)=>h+y(b),0),k=new Map;for(let h of C){if(!h.completed)continue;let b=(h.completed_time??"").slice(0,10),q=/^\d{4}-\d{2}-\d{2}$/.test(b)?b:e.start_date;k.set(q,(k.get(q)??0)+y(h))}let S=[];for(let h=new Date(g);h<=f;h.setDate(h.getDate()+1))S.push(Zy(h));let w=_,K=[];for(let h of S){if(h>t)break;w-=k.get(h)??0,K.push({day:h,value:Math.max(0,w)})}return{empty:!1,days:S,total:_,usePoints:O,actual:K}},[e,o,t]);if(!r)return mt(yn,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uBAA9\uD45C\uC758 \uC2DC\uC791\uC77C\xB7\uC885\uB8CC\uC77C\uC774 \uC788\uC5B4\uC57C \uBC88\uB2E4\uC6B4\uC744 \uADF8\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4."});if(r.empty)return mt(yn,{sx:{py:4,textAlign:"center",fontSize:14.5,color:"#9a9a97"},children:"\uBC30\uC815\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."});let{days:i,total:a,usePoints:l,actual:u}=r,s=600,c=200,m=8,d=g=>i.length===1?0:g/(i.length-1)*s,p=g=>m+(c-m*2)*(1-g/Math.max(1,a)),x=`${d(0)},${p(a)} ${d(i.length-1)},${p(0)}`,D=u.map(g=>`${d(i.indexOf(g.day))},${p(g.value)}`).join(" "),T=u[u.length-1];return Sn(yn,{children:[Sn(yn,{sx:{mb:1,display:"flex",justifyContent:"space-between",fontSize:14,color:"#000"},children:[Sn("span",{children:["\uB0A8\uC740 ",l?"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8(SP)":"\uC5C5\uBB34 \uC218(\uAC74)"," \u2014 \uCD1D ",a]}),T?Sn("span",{children:["\uD604\uC7AC"," ",mt(yn,{component:"span",sx:{color:"#2f80ed",fontWeight:700},children:T.value}),l?"SP":"\uAC74"," \uB0A8\uC74C"]}):null]}),mt(yn,{sx:{border:"1px solid #e6e6e3",borderRadius:1,bgcolor:"#fafaf9",px:1,py:.5},children:Sn("svg",{viewBox:`0 0 ${s} ${c}`,preserveAspectRatio:"none",style:{display:"block",width:"100%",height:n},children:[mt("line",{x1:0,y1:p(0),x2:s,y2:p(0),stroke:"#e6e6e3",strokeWidth:1}),mt("polyline",{points:x,fill:"none",stroke:"#9a9a97",strokeWidth:1.5,strokeDasharray:"6 5",vectorEffect:"non-scaling-stroke"}),u.length>1?mt("polyline",{points:D,fill:"none",stroke:"#2f80ed",strokeWidth:2.5,vectorEffect:"non-scaling-stroke"}):null,T?mt("circle",{cx:d(i.indexOf(T.day)),cy:p(T.value),r:4,fill:"#2f80ed",vectorEffect:"non-scaling-stroke"}):null]})}),Sn(yn,{sx:{mt:.5,display:"flex",justifyContent:"space-between",fontSize:13.5,color:"#000"},children:[mt("span",{children:cl(e.start_date)}),t>e.start_date&&t<e.end_date?Sn("span",{children:["\uC624\uB298 ",cl(t)]}):null,mt("span",{children:cl(e.end_date)})]})]})}import{jsx as zt,jsxs as ml}from"react/jsx-runtime";function Wz({open:e,sprints:o,tasks:t,todayStr:n,initialSprintSeq:r=0,onClose:i}){let[a,l]=t0(0);e0(()=>{if(!e)return;let c=o.find(d=>d.status==="active")??o[0],m=o.find(d=>d.seq===r)??c;l(m?.seq??0)},[e]);let u=o0(()=>o.find(c=>c.seq===a)??null,[o,a]),s=ml(Qn,{sx:{display:"flex",flexDirection:"column"},children:[ml(Qn,{sx:{px:3,py:2.5},children:[zt(Qn,{sx:{mb:1.5,fontSize:17,fontWeight:700,color:"#37352f"},children:"\uBCA8\uB85C\uC2DC\uD2F0"}),zt(Em,{sprints:o,tasks:t})]}),zt(r0,{sx:{borderColor:"#e6e6e3"}}),ml(Qn,{sx:{px:3,py:2.5},children:[zt(Qn,{sx:{mb:1.5,fontSize:17,fontWeight:700,color:"#37352f"},children:"\uBC88\uB2E4\uC6B4"}),zt(a0,{label:"\uBAA9\uD45C",showLabel:!1,value:a?String(a):"",options:o.map(c=>({value:String(c.seq),label:zo(c)})),onChange:c=>l(Number(c.target.value)||0),sx:{width:280,mb:2}}),u?zt(Pm,{sprint:u,tasks:t,todayStr:n}):zt(Qn,{sx:{py:4,textAlign:"center",fontSize:13.5,color:"#9a9a97"},children:"\uBC88\uB2E4\uC6B4\uC744 \uBCFC \uBAA9\uD45C\uB97C \uC120\uD0DD\uD558\uC138\uC694."})]})]});return zt(i0,{open:e,onClose:i,width:680,title:"\uBAA9\uD45C \uCC28\uD2B8",locale:"ko",contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-charts",sections:[{id:"sprint-charts",showTitle:!1,children:s}],actions:{showCancelButton:!1,right:zt(n0,{variant:"contained",onClick:i,children:"\uB2EB\uAE30"})}})}import{Checkbox as l0,Divider as s0,Menu as c0,MenuItem as ul}from"@mui/material";import{jsx as vr,jsxs as Rm}from"react/jsx-runtime";function Gz({anchorEl:e,candidates:o,selectedNames:t,avatarSrcByName:n,onToggle:r,onClear:i,onClose:a}){return Rm(c0,{anchorEl:e,open:!!e,onClose:a,transitionDuration:0,children:[o.length===0?vr(ul,{disabled:!0,sx:{fontSize:14},children:"\uBAA9\uB85D\uC5D0 \uC9C0\uC815\uB41C \uC0AC\uB78C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):o.map(l=>{let u=t.includes(l.name);return Rm(ul,{onClick:()=>r(l),sx:{fontSize:14,minWidth:170,gap:1},children:[vr(l0,{size:"small",checked:u,sx:{p:0}}),vr(Co,{names:[l.name],size:20,avatarSrcByName:n}),l.name]},`${l.accountSeq}-${l.name}`)}),vr(s0,{}),vr(ul,{disabled:t.length===0,onClick:i,sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{useState as m0}from"react";import{ButtonBase as u0,Menu as d0,MenuItem as p0}from"@mui/material";import f0 from"@mui/icons-material/KeyboardArrowDown";import x0 from"@mui/icons-material/Check";import{Fragment as g0,jsx as dl,jsxs as pl}from"react/jsx-runtime";function oq({value:e,onChange:o,options:t}){let[n,r]=m0(null),i=t??Yi,a=Yi.find(l=>l.value===e)?.label??"";return pl(g0,{children:[pl(u0,{onClick:l=>r(l.currentTarget),sx:{display:"flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:1,fontSize:13.5,color:"#37352f","&:hover":{bgcolor:"#f2f2f0"}},children:[a,dl(f0,{sx:{fontSize:17,color:"#9a9a97"}})]}),dl(d0,{transitionDuration:0,anchorEl:n,open:!!n,onClose:()=>r(null),children:i.map(l=>pl(p0,{selected:l.value===e,onClick:()=>{o(l.value),r(null)},sx:{fontSize:14,minWidth:140,justifyContent:"space-between",gap:1},children:[l.label,l.value===e?dl(x0,{sx:{fontSize:16,color:"#2f80ed"}}):null]},l.value))})]})}import{Box as Di,ButtonBase as h0}from"@mui/material";import{DateTextField as zm}from"@ehfuse/mui-form-controls";function Bn(e){let o=t=>String(t).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}`}function wi(e,o=new Date){let t=new Date(o);return t.setMonth(t.getMonth()-e),t}function rq(e=new Date){return{fromDate:Bn(wi(1,e)),toDate:Bn(e)}}import{jsx as Ir,jsxs as qm}from"react/jsx-runtime";var b0=[{label:"1\uAC1C\uC6D4",months:1},{label:"3\uAC1C\uC6D4",months:3},{label:"6\uAC1C\uC6D4",months:6},{label:"1\uB144",months:12},{label:"\uC804\uCCB4",months:0}];function Am({fromDate:e,toDate:o,onChange:t}){let n=i=>{if(i<=0){t("","");return}t(Bn(wi(i)),Bn(new Date))},r=i=>i<=0?!e&&!o:!e||!o?!1:e===Bn(wi(i))&&o===Bn(new Date);return qm(Di,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[Ir(Di,{sx:{display:"flex",alignItems:"center",gap:1.5},children:b0.map(i=>{let a=r(i.months);return Ir(h0,{onClick:()=>n(i.months),sx:{px:1.25,py:.85,borderRadius:1,fontSize:13,fontWeight:a?500:400,border:"1px solid",borderColor:a?"#2f80ed":"#dedddb",color:a?"#2f80ed":"#37352f",bgcolor:a?"#eef6ff":"transparent","&:hover":{bgcolor:a?"#eef6ff":"#f7f7f5"}},children:i.label},i.label)})}),qm(Di,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Ir(zm,{value:e,size:"small",placeholder:"\uC2DC\uC791\uC77C",onChange:i=>t(i.target.value,o),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}}),Ir(Di,{component:"span",sx:{fontSize:13,color:"#9a9a97"},children:"~"}),Ir(zm,{value:o,size:"small",placeholder:"\uC885\uB8CC\uC77C",onChange:i=>t(e,i.target.value),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}})]})]})}import{Popover as k0}from"@mui/material";import{jsx as Lm}from"react/jsx-runtime";function pq({anchorEl:e,fromDate:o,toDate:t,onChange:n,onClose:r}){return Lm(k0,{transitionDuration:0,anchorEl:e,open:!!e,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{p:1.5}}},children:Lm(Am,{fromDate:o,toDate:t,onChange:n})})}import{Box as T0,ButtonBase as y0,Tab as S0,Tabs as B0}from"@mui/material";import C0 from"@mui/icons-material/Checklist";import v0 from"@mui/icons-material/Face";import I0 from"@mui/icons-material/Publish";import _0 from"@mui/icons-material/NotificationsOutlined";import w0 from"@mui/icons-material/BugReportOutlined";import D0 from"@mui/icons-material/DescriptionOutlined";import M0 from"@mui/icons-material/Inventory2Outlined";import{jsx as Qo}from"react/jsx-runtime";function Nm(e,o){return o>0?`${e} (${o})`:e}var Iq=[{id:"my",label:"\uC804\uCCB4",icon:Qo(C0,{sx:{fontSize:18}})},{id:"notice",label:"\uACF5\uC9C0\uC0AC\uD56D",icon:Qo(_0,{sx:{fontSize:18}})},{id:"mine",label:"\uB0B4 \uC5C5\uBB34",icon:Qo(v0,{sx:{fontSize:18}})},{id:"sent",label:"\uBCF4\uB0B8 \uC5C5\uBB34",icon:Qo(I0,{sx:{fontSize:18}})},{id:"bug",label:"\uC624\uB958",icon:Qo(w0,{sx:{fontSize:18}})},{id:"archive",label:"\uBCF4\uAD00\uD568",icon:Qo(M0,{sx:{fontSize:18}}),hideCount:!0},{id:"report",label:"\uBCF4\uACE0\uC11C",icon:Qo(D0,{sx:{fontSize:18}}),hideCount:!0}];function E0(e){return{minHeight:46,minWidth:75,bgcolor:e.bg,color:e.color,borderRadius:"8px 8px 0 0",padding:"10px 18px",textTransform:"none",fontSize:14,fontWeight:500,border:`1px solid ${e.borderColor}`,borderBottom:"none","&:hover":{bgcolor:e.hoverBg},"&.Mui-selected":{bgcolor:e.selectedBg,color:e.selectedColor,border:`1px solid ${e.selectedBg}`,borderBottom:"none","&:hover":{bgcolor:e.selectedBg}},...e.sx}}function _q({items:e,activeTab:o,counts:t,onChange:n,compact:r=!1}){let i=te(),a=E0(i.tabs),l=e;return r?Qo(T0,{sx:{display:"flex",flexWrap:"wrap",gap:1.25},children:l.map(u=>{let s=o===u.id;return Qo(y0,{onClick:()=>n(u.id),sx:{px:1.5,py:.75,borderRadius:1,fontSize:yo(13.5),fontWeight:500,whiteSpace:"nowrap",border:"1px solid",bgcolor:s?i.tabs.selectedBg:i.tabs.bg,color:s?i.tabs.selectedColor:i.tabs.color,borderColor:s?i.tabs.selectedBg:i.tabs.borderColor},children:Nm(u.label,u.hideCount?0:t[u.id]??0)},u.id)})}):Qo(B0,{value:o,onChange:(u,s)=>n(s),sx:{minHeight:46,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"12px",minHeight:46}},children:l.map(u=>Qo(S0,{value:u.id,label:Nm(u.label,u.hideCount?0:t[u.id]??0),icon:u.icon,iconPosition:"start",sx:a},u.id))})}import{useEffect as O0,useMemo as P0,useState as fl}from"react";import{Divider as xl,ListItemIcon as No,Menu as gl,MenuItem as To}from"@mui/material";import R0 from"@mui/icons-material/OpenInNewOutlined";import z0 from"@mui/icons-material/Check";import q0 from"@mui/icons-material/CheckCircleOutlined";import A0 from"@mui/icons-material/RadioButtonUnchecked";import L0 from"@mui/icons-material/SendOutlined";import N0 from"@mui/icons-material/EventOutlined";import F0 from"@mui/icons-material/PersonOutlineOutlined";import H0 from"@mui/icons-material/ViewKanbanOutlined";import W0 from"@mui/icons-material/ContentCopyOutlined";import $0 from"@mui/icons-material/NextPlanOutlined";import K0 from"@mui/icons-material/ContentPasteOutlined";import U0 from"@mui/icons-material/ShareOutlined";import V0 from"@mui/icons-material/DirectionsRunOutlined";import Fm from"@mui/icons-material/ChevronRight";import G0 from"@mui/icons-material/ArchiveOutlined";import Y0 from"@mui/icons-material/UnarchiveOutlined";import{ConfirmDialog as j0}from"@ehfuse/alerts";import{Fragment as X0,jsx as ce,jsxs as xo}from"react/jsx-runtime";function nA({target:e,onClose:o,customTabs:t,sprints:n=[],myAccountSeq:r=0,onOpenDetail:i,onToggleCompleted:a,onRequestConfirm:l,onChangeDueDate:u,onChangeReminder:s,onMemberEdit:c,onMoveProject:m,onDuplicate:d,onCreateFollowUp:p,onShare:x,onAssignSprint:D,onArchiveToggle:T,onDelete:g}){let f=Ne(),B=ot(),[C,O]=fl(null),[y,_]=fl(null),[k,S]=fl(null);O0(()=>{e||(O(null),_(null),S(null))},[e]);let w=e?.task??null,K=!!w?.is_notice,h=!!w?.is_event,b=w?!xt(w,r):!1,q=P0(()=>new Set(t.filter(z=>z.useSprints).map(z=>z.key)),[t]),A=async()=>{let z=w;if(o(),!z)return;await j0({title:"\uC5C5\uBB34 \uC0AD\uC81C",message:`"${z.title}" \uC5C5\uBB34\uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&g(z.seq)},L=()=>{w&&T(w.seq,!w.archived),o()};return xo(X0,{children:[xo(gl,{open:!!e,onClose:o,transitionDuration:0,anchorReference:f?"none":"anchorPosition",anchorPosition:!f&&e?{top:e.position.top,left:e.position.left}:void 0,slotProps:{paper:{sx:{minWidth:190,...f?{position:"fixed",top:"50%",left:"50%",translate:"-50% -50%",maxHeight:"70vh"}:{}}},list:f?{sx:{"& .MuiMenuItem-root":{py:1,minHeight:0}}}:void 0},children:[xo(To,{onClick:()=>{w&&i(w),o()},sx:{fontSize:14},children:[ce(No,{children:ce(R0,{sx:{fontSize:19}})}),"\uC0C1\uC138 \uC5F4\uAE30"]}),xo(To,{disabled:K?(w?.author_account_seq??0)!==r:(w?.author_account_seq??0)!==r&&(w?.manager_account_seq??0)!==r,onClick:()=>{w&&a(w.seq,!w.completed),o()},sx:{fontSize:14},children:[ce(No,{children:w?.completed?ce(A0,{sx:{fontSize:19}}):ce(q0,{sx:{fontSize:19}})}),w?.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC"]}),!K&&l?xo(To,{disabled:!(w?.manager_account_seq??0)&&(w?.receiver_account_seqs??[]).length===0,onClick:()=>{w&&l(w),o()},sx:{fontSize:14},children:[ce(No,{children:ce(L0,{sx:{fontSize:19}})}),"\uD655\uC778 \uC694\uCCAD"]}):null,h?null:ce(xl,{}),h?null:xo(To,{disabled:b,onClick:z=>{w&&O({anchorEl:z.currentTarget,task:w})},sx:{fontSize:14},children:[ce(No,{children:ce(N0,{sx:{fontSize:19}})}),"\uB9C8\uAC10\uAE30\uD55C \uBCC0\uACBD"]}),!K&&!h&&c?xo(To,{onClick:()=>{w&&c(w,"manager"),o()},sx:{fontSize:14},children:[ce(No,{children:ce(F0,{sx:{fontSize:19}})}),"\uCC45\uC784\uC790 \uBCC0\uACBD"]}):null,h?null:xo(To,{disabled:b,onClick:z=>{w&&_({anchorEl:z.currentTarget,task:w})},sx:{fontSize:14},children:[ce(No,{children:ce(H0,{sx:{fontSize:19}})}),"\uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9",ce(Fm,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}),ce(xl,{}),d?xo(To,{disabled:b,onClick:()=>{w&&d(w.seq),o()},sx:{fontSize:14},children:[ce(No,{children:ce(W0,{sx:{fontSize:19}})}),"\uBCF5\uC81C"]}):null,p&&w&&!w.is_event&&!w.is_notice?xo(To,{onClick:()=>{w&&p(w.seq),o()},sx:{fontSize:14},children:[ce(No,{children:ce($0,{sx:{fontSize:19}})}),"\uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30"]}):null,xo(To,{onClick:()=>{w&&(x?x(w):Un(w,f)),o()},sx:{fontSize:14},children:[ce(No,{children:f?ce(U0,{sx:{fontSize:19}}):ce(K0,{sx:{fontSize:19}})}),f?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC"]}),w&&!w.is_notice&&!w.is_event&&q.has(String(w.tab_key??""))&&D?xo(To,{onClick:z=>S(z.currentTarget),sx:{fontSize:14},children:[ce(No,{children:ce(V0,{sx:{fontSize:19}})}),"\uBAA9\uD45C\uC5D0 \uB123\uAE30",ce(Fm,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}):null,xo(To,{onClick:L,disabled:b||!w?.archived&&!(w&&Pr(w)),sx:{fontSize:14},children:[ce(No,{children:w?.archived?ce(Y0,{sx:{fontSize:19}}):ce(G0,{sx:{fontSize:19}})}),w?.archived?"\uBCF4\uAD00 \uD574\uC81C":"\uBCF4\uAD00"]}),ce(xl,{}),xo(To,{disabled:b,onClick:A,sx:{fontSize:14,color:"#e5484d"},children:[ce(No,{children:ce(Tt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC0AD\uC81C"]})]}),ce(Nt,{anchorEl:C?.anchorEl??null,open:!!C,date:C?.task.due_date??"",reminder:C?.task.reminder??"none",hideReminder:!!C?.task.completed,centered:f,onClose:()=>{O(null),o()},onDateChange:z=>{C&&u(C.task.seq,z)},onReminderChange:z=>{C&&s?.(C.task.seq,z)}}),xo(gl,{transitionDuration:0,anchorEl:y?.anchorEl??null,open:!!y,onClose:()=>{_(null),o()},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...B,children:[ce(To,{selected:!y?.task.tab_key,onClick:()=>{y&&m(y.task.seq,""),_(null),o()},sx:{fontSize:14,minWidth:170},children:"\uC5C6\uC74C"}),t.filter(z=>!z.archived).map(z=>ce(To,{selected:y?.task.tab_key===z.key,onClick:()=>{y&&m(y.task.seq,z.key),_(null),o()},sx:{fontSize:14,minWidth:170},children:z.label},z.key))]}),ce(gl,{transitionDuration:0,anchorEl:k,open:!!k,onClose:()=>S(null),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...n.filter(z=>`custom-${z.group_seq}`===String(w?.tab_key??"")).map(z=>({seq:z.seq,label:zo(z)}))].map(z=>xo(To,{onClick:()=>{w&&D?.(w.seq,z.seq),S(null),o()},sx:{fontSize:14,minWidth:160,gap:1},children:[z.label,(w?.sprint_seq??0)===z.seq?ce(z0,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},z.seq))})]})}import{Checkbox as Q0,Divider as J0,Menu as Z0,MenuItem as Hm}from"@mui/material";import{jsx as Mi,jsxs as Wm}from"react/jsx-runtime";function sA({anchorEl:e,labelOptions:o,selectedKeys:t,onToggle:n,onClear:r,onClose:i}){return Wm(Z0,{transitionDuration:0,anchorEl:e,open:!!e,onClose:i,children:[o.map(a=>{let l=t.includes(a.key);return Wm(Hm,{onClick:()=>n(a.key),sx:{fontSize:14,minWidth:190,gap:1},children:[Mi(Q0,{size:"small",checked:l,sx:{p:0}}),Mi(Pe,{option:a})]},a.key)}),Mi(J0,{}),Mi(Hm,{disabled:t.length===0,onClick:()=>{r(),i()},sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{Divider as $m,Menu as eS,MenuItem as hl}from"@mui/material";import oS from"@mui/icons-material/Check";import tS from"@mui/icons-material/BarChartOutlined";import nS from"@mui/icons-material/SettingsOutlined";import{jsx as _r,jsxs as Ei}from"react/jsx-runtime";function gA(e){let{anchorEl:o,sprints:t,value:n,onSelect:r,onManage:i,onCharts:a,onClose:l}=e;return Ei(eS,{transitionDuration:0,anchorEl:o,open:!!o,onClose:l,children:[[{seq:0,label:"\uC804\uCCB4"},{seq:-1,label:"\uBBF8\uBC30\uC815 \uC5C5\uBB34"},...t.map(u=>({seq:u.seq,label:zo(u)}))].map(u=>Ei(hl,{onClick:()=>{r(u.seq),l()},sx:{fontSize:14,minWidth:180,gap:1},children:[u.label,n===u.seq?_r(oS,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},u.seq)),_r($m,{}),a?Ei(hl,{onClick:()=>{l(),a()},sx:{fontSize:14,gap:1},children:[_r(tS,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uCC28\uD2B8"]}):null,a?_r($m,{}):null,Ei(hl,{onClick:()=>{l(),i()},sx:{fontSize:14,gap:1},children:[_r(nS,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uAD00\uB9AC\u2026"]})]})}var rS={my:"tasks",mine:"tasks",sent:"tasks",notice:"notice",bug:"bug",archive:"archive",done:"done",report:"report"};function iS(e){return rS[e]??"tasks"}var kA={list:"\uBAA9\uB85D",card:"\uD504\uB85C\uC81D\uD2B8",kanban:"\uC0C1\uD0DC",sprint:"\uBAA9\uD45C",calendar:"\uC8FC\uAC04",month:"\uC6D4\uAC04",agenda:"\uC544\uC820\uB2E4",timeline:"\uD0C0\uC784\uB77C\uC778"},Km=["list","calendar","month","card","kanban","sprint","timeline"],aS=["list","card"];function TA(e){let o=iS(e);switch(o){case"notice":return{kind:o,viewOptions:[],showCreate:!0,createLabel:"\uACF5\uC9C0\uC0AC\uD56D \uB4F1\uB85D",showGroupBy:!1,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!0,columns:{notice:!0}};case"bug":return{kind:o,viewOptions:Km,showCreate:!0,createLabel:"\uC624\uB958 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{bug:!0}};case"archive":return{kind:o,viewOptions:aS,showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"done":return{kind:o,viewOptions:["list"],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"report":return{kind:o,viewOptions:[],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{}};default:return{kind:o,viewOptions:Km,showCreate:!0,createLabel:"\uC5C5\uBB34 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:e==="mine"?{showRequest:!1,confirmMode:"action"}:e==="sent"?{confirmMode:"time"}:{}}}}export{jv as ALL_TASK_VIEWER_ACCOUNT_SEQS,zc as AddLabelDialog,Gr as AddTabDialog,Ec as AttachmentUploadGauge,Wa as AttachmentUploadPercent,Hi as BUG_DEVICE_OPTIONS,nr as BUG_ICON_COLOR,Ev as BUG_KANBAN_COLUMNS,Fi as BUG_REPRO_OPTIONS,Wi as BUG_RESOLUTION_OPTIONS,on as BUG_STATUS_OPTIONS,tr as BUG_TASK_ICON,fi as BugPropertiesGrid,gf as COLUMN_WIDTHS,Ki as COMPLETED_STATUS_OPTION,nl as CUSTOM_TAB_KEY_PREFIX,sz as CalendarImportDialog,gz as CalendarSubscribeDialog,On as CommentBubbleIcon,En as ConfirmCountButton,ss as DATE_REMINDER_OPTIONS,Ri as DEFAULT_PROJECT_ICON,Iq as DEFAULT_TASKBOX_TAB_ITEMS,Ee as DEFAULT_TASK_ICON,pq as DateRangeFilterPopover,Ao as DrawerSection,Nt as DueDatePickerPopover,Yp as ENDED_EVENT_STATUS_OPTION,Wc as EVENT_ICON_COLOR,vz as EmployeeSelectDialog,Yi as GROUP_BY_OPTIONS,An as GoogleEventChip,oq as GroupByMenuButton,Vr as IconPickerGrid,gc as InlineAddressInput,Ot as InlineTextValue,Ui as KANBAN_CLOSED_COLUMN_KEY,sA as LabelFilterMenu,Si as LabelSelectMenu,ir as MANUAL_TASK_STATUS_OPTIONS,Gz as MemberFilterMenu,rr as NOTICE_STATUS_OPTIONS,So as NOTICE_TASK_ICON,Ol as NO_TASK_ICON,zi as PROJECT_ICON_OPTIONS,de as PropertyRow,Dn as RECEIVER_AVATAR_COLORS,cs as REMINDER_OPTIONS,Co as ReceiverAvatarStack,pm as RelatedTasksSection,lS as STATUS_KEY_REPLIED,Sl as STATUS_KEY_WAITING,hs as SortableTaskCard,Pm as SprintBurndownChart,Wz as SprintChartsDialog,gA as SprintFilterMenu,J2 as SprintManageDialog,Em as SprintVelocityChart,Ar as StatusSelectMenu,Qi as TASKBOX_COLUMNS,Vo as TASKBOX_DRAWER_NARROW_MQ,Pl as TASKBOX_UI_STATE_ID,kA as TASKBOX_VIEW_LABELS,pM as TASKBOX_VIEW_MODES,en as TASK_STATUS_OPTIONS,lx as TIME_REMINDER_OPTIONS,Xr as TaskAckListPopover,Mn as TaskActionButton,Ti as TaskAttachmentsSection,rc as TaskBoxColumnSummary,ga as TaskBoxGroupBoard,ZM as TaskBoxMobileList,Gs as TaskBoxMonthAgenda,Ws as TaskBoxMonthCalendar,IM as TaskBoxSprintColumnSummary,fs as TaskBoxTable,_q as TaskBoxTabs,Zs as TaskBoxTimeline,dM as TaskBoxView,qs as TaskBoxWeekCalendar,mr as TaskCardContent,hi as TaskChecklistSection,em as TaskCommentInput,Zc as TaskCommentsSection,xi as TaskContentEditor,nA as TaskContextMenu,pi as TaskCorePropertiesGrid,Ua as TaskCreateBody,cP as TaskCreateDrawer,Am as TaskDateRangeFilter,xm as TaskDetailBody,N2 as TaskDetailDrawer,im as TaskDetailHeader,Wn as TaskIconPickerPopover,At as TaskLabelChips,mm as TaskLinkDialog,am as TaskNoteField,$o as TaskPriorityChip,Pe as TaskStatusChip,Nv as TaskStatusChips,Zm as TaskboxProvider,qy as buildCalendarFeedUrl,Jr as buildCardBaseSx,Wl as buildStatusOptionColors,ji as buildTaskGroupSections,sm as buildTaskRelationsModel,yT as buildTaskShareText,Er as buildTaskboxTheme,$l as canAssignBugManager,Nr as canClaimTaskItem,xt as canEditTaskItem,Lr as canViewTaskItem,Fr as canVolunteerTaskItem,oc as countWorkdays,$p as createTaskboxTheme,nc as daysLeftUntil,qi as defaultTaskBoxFormValues,Ai as defaultTaskboxUiStateValues,Fc as filterFilesWithinLimit,k_ as formatConfirmTime,ec as formatHours,nt as formatKoreanDate,gt as formatKoreanDateTime,zo as formatSprintOptionLabel,Nl as getBugDeviceName,Ll as getBugReproName,Or as getBugResolutionName,jp as getBugStatusOption,rq as getDefaultDateRange,ar as getEventDisplayStatusOption,Pv as getNoDueStatusRank,Nc as getNoticeAckInfo,Fl as getNoticeStatusOption,T5 as getNoticeTargetDisplay,vn as getProjectIconAnchorComponent,Ke as getProjectIconComponent,aa as getReminderLabel,ia as getReminderOptions,Hl as getStatusOptionsForTask,TA as getTabHeaderConfig,Zi as getTaskBoxColumnDefs,Hr as getTaskBoxGridTemplate,iS as getTaskBoxTabKind,Qr as getTaskConfirmInfo,Bo as getTaskDisplayStatusOption,Rr as getTaskStatusOption,Rn as groupGoogleEventsByDate,rl as groupSeqFromTabKey,rR as hasRelation,dk as htmlToPlainText,Ty as isCustomTabKey,Gi as isOpenPoolTaskItem,$i as isPastEvent,Pr as isTaskDone,Ov as isWaitingTask,wi as monthsAgoDate,uo as narrowOrderSx,L2 as nowDateTimeString,jh as parseEstimatedHours,gn as relationsOf,_n as resolveTaskStatusOptions,Ni as resolveTaskboxTheme,Un as shareTaskText,tc as sumRemainingHours,Bi as summarizeNoticeTargets,W2 as tabKeyFromGroupSeq,Bn as toYmd,zr as toggleLabelKey,Pi as useBuildFileUrl,Mc as useTaskAttachmentUploadMeta,Mo as useTaskboxConfig,Lp as useTaskboxForm,te as useTaskboxTheme,ft as useTaskboxUiState,or as useUploadMaxMb};
|
|
14
14
|
//# sourceMappingURL=index.esm.js.map
|