@ehfuse/taskbox 0.5.443 → 0.5.445
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.d.ts +2 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +13 -13
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export type { LeadTimeDistributionChartProps } from "./charts/LeadTimeDistributi
|
|
|
64
64
|
export * from "./atoms/TaskStatusChip";
|
|
65
65
|
export * from "./atoms/TaskPriorityChip";
|
|
66
66
|
export * from "./atoms/GoogleEventChip";
|
|
67
|
+
export * from "./atoms/CalendarTaskChip";
|
|
67
68
|
export * from "./atoms/ReceiverAvatars";
|
|
68
69
|
export * from "./atoms/CommentBubbleIcon";
|
|
69
70
|
export * from "./atoms/ConfirmCountButton";
|
|
@@ -85,6 +86,7 @@ export * from "./configs/projectIcons";
|
|
|
85
86
|
export * from "./utils/taskEffort";
|
|
86
87
|
export * from "./utils/taskRelations";
|
|
87
88
|
export * from "./utils/taskStatus";
|
|
89
|
+
export * from "./utils/calendarTaskTime";
|
|
88
90
|
export * from "./utils/taskDone";
|
|
89
91
|
export * from "./utils/taskConfirm";
|
|
90
92
|
export * from "./utils/taskVisibility";
|
package/dist/index.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import{a as ra,b as Lu,c as cc,d as HR,e as WR,f as FR,g as VR,h as KR}from"./ch
|
|
|
7
7
|
`),o=document.createElement("div");return o.innerHTML=t,(o.textContent??"").replace(/\n{3,}/g,`
|
|
8
8
|
|
|
9
9
|
`).trim()}function bs({syncKey:e,value:t,onChange:o,readOnly:n=!1,viewFirst:r=!1,onTranslate:i,minHeight:a=180,height:l=0,onChangeHeight:s}){let{uploadContentImage:u,openExternalUrl:c}=fe(),d=S=>{c?c(S):window.open(S,"_blank","noopener,noreferrer")},[p,m]=lf(()=>!r||!Oa(t).trim());xs(()=>{r&&m(!Oa(t).trim())},[e,r]);let f=wr(null),g=wr(new Ov),B=wr(null),x=l>0?l:0,T=wr(x),$=wr(s);$.current=s;let y=wr(null),L=wr(Date.now()+800),D=Fe(),_=Ev(),F=Dv(_.breakpoints.down("sm")),[M,Q]=lf(!1),G=()=>{let S=Oa(t);S&&navigator.clipboard.writeText(S).then(()=>{Q(!0),window.setTimeout(()=>Q(!1),1500)})},I=(S,h=!1)=>S instanceof Element?S.closest(h?".taskbox-content-readview a[href]":".ehfuse-editor-content a[href]"):null,k=S=>D||S.ctrlKey||S.metaKey;xs(()=>{if(n)return;let S=Rm(t);y.current===S||y.current===t||(y.current=S,L.current=Date.now()+800,f.current?.setHtml(S))},[e,t,n]);let w=wr(-1);return xs(()=>{if(n||D||l<=0||w.current===l||(w.current=l,Math.abs(l-T.current)<1))return;let S=B.current?.querySelector(".ehfuse-editor-container");S&&(Math.abs(S.getBoundingClientRect().height-l)<1||(S.style.height=`${l}px`,T.current=l))},[n,D,l]),xs(()=>{if(n||D)return;let S=B.current?.querySelector(".ehfuse-editor-container");if(!S||typeof ResizeObserver>"u")return;let h,O=new ResizeObserver(v=>{let V=Math.round(v[0]?.contentRect.height??0);V<=0||(window.clearTimeout(h),h=window.setTimeout(()=>{Math.abs(V-T.current)<1||(T.current=V,$.current?.(V))},300))});return O.observe(S),()=>{window.clearTimeout(h),O.disconnect()}},[n,D]),n||!p?hs(Pa,{sx:{position:"relative",mt:1},children:[jt(Pa,{onClickCapture:S=>{let h=I(S.target,!0);h&&(S.preventDefault(),S.stopPropagation(),d(h.href))},className:"taskbox-content-readview",sx:{border:"1px solid #e0e0e0",borderRadius:1,p:"12px",pr:F?"12px":"52px",minHeight:a,fontSize:16,lineHeight:1.6,color:"#37352f",wordBreak:"break-word",userSelect:n?"none":"text","& > p:first-of-type":{mt:0},"& > p:last-of-type":{mb:0},"& a[href]":{color:"#2563eb",textDecoration:"underline",cursor:"pointer"},"& img":{maxWidth:"100%"}},dangerouslySetInnerHTML:{__html:Rm(t)}}),F?hs(Pa,{sx:{display:"flex",gap:1,mt:1},children:[jt(wm,{variant:"outlined",color:"inherit",startIcon:jt(Mv,{sx:{fontSize:18}}),onClick:G,sx:{flex:1,fontSize:15,color:"#37352f",borderColor:"#d9d9d6"},children:M?"\uBCF5\uC0AC\uB428":"\uBCF5\uC0AC"}),n?null:jt(wm,{variant:"outlined",color:"inherit",startIcon:jt(sf,{sx:{fontSize:18}}),onClick:()=>m(!0),sx:{flex:1,fontSize:15,color:"#37352f",borderColor:"#d9d9d6"},children:"\uC218\uC815"}),i?jt(wm,{variant:"outlined",color:"inherit",startIcon:jt(cf,{sx:{fontSize:18}}),onClick:i,sx:{flex:1,fontSize:15,color:"#37352f",borderColor:"#d9d9d6"},children:"\uBC88\uC5ED"}):null]}):hs(Pa,{sx:{position:"absolute",top:6,right:6,display:"flex",flexDirection:"column",gap:.25},children:[n?null:jt(Em,{title:"\uB0B4\uC6A9 \uC218\uC815",arrow:!0,placement:"left",children:jt(Dm,{size:"small","aria-label":"\uB0B4\uC6A9 \uC218\uC815",onClick:()=>m(!0),sx:{color:"#9a9a97"},children:jt(sf,{sx:{fontSize:17}})})}),i?jt(Em,{title:"\uBC88\uC5ED",arrow:!0,placement:"left",children:jt(Dm,{size:"small","aria-label":"\uBC88\uC5ED",onClick:i,sx:{color:"#9a9a97"},children:jt(cf,{sx:{fontSize:17}})})}):null]})]}):hs(Pa,{ref:B,onDragOver:S=>S.stopPropagation(),onDrop:S=>S.stopPropagation(),onMouseDownCapture:S=>{k(S)&&I(S.target)&&S.preventDefault()},onClickCapture:S=>{let h=k(S)?I(S.target):null;h&&(S.preventDefault(),S.stopPropagation(),d(h.href))},sx:{mt:1,"& .ehfuse-editor-content > p:first-of-type":{mt:0},"& .ehfuse-editor-content > p:last-of-type":{mb:0},"& .ehfuse-editor-content.ehfuse-editor-empty::before":{top:"12px",left:"12px"},...D?{"& .ehfuse-editor-content a[href]":{cursor:"pointer"}}:{},position:"relative"},children:[r?jt(Em,{title:"\uD3B8\uC9D1 \uB05D(\uC77D\uAE30 \uBAA8\uB4DC)",arrow:!0,children:jt(Dm,{size:"small","aria-label":"\uD3B8\uC9D1 \uB05D",onMouseDown:S=>S.preventDefault(),onClick:()=>m(!1),sx:{position:"absolute",top:4,right:6,zIndex:2,color:"#2f9e5b"},children:jt(Rv,{sx:{fontSize:19}})})}):null,jt(Pv,{ref:f,defaultValue:Rm(t),autoHeight:D,resizable:!D,showToolbar:!D,focusBorder:!0,styles:{focusBorderColor:"var(--primary)"},toolbarOptions:zv,plugins:[g.current],locale:"ko",minHeight:x||a,placeholder:"\uB0B4\uC6A9\uC744 \uC785\uB825\uD558\uC138\uC694",onImageUpload:u,contentStyle:{padding:"12px"},onChange:S=>{let h=Date.now()<L.current,O=S===y.current;y.current=S,!(h||O)&&o(S)}})]})}import{useState as Pi}from"react";import{Box as qt,Button as uf,Dialog as Uv,IconButton as Oi,Switch as Yv,TextField as jv,Tooltip as Pm}from"@mui/material";import{DndContext as Xv,PointerSensor as Qv,closestCenter as Zv,useSensor as Jv,useSensors as e_}from"@dnd-kit/core";import{restrictToParentElement as t_,restrictToVerticalAxis as o_}from"@dnd-kit/modifiers";import{SortableContext as n_,arrayMove as r_,useSortable as i_,verticalListSortingStrategy as a_}from"@dnd-kit/sortable";import{CSS as l_}from"@dnd-kit/utilities";import df from"@mui/icons-material/Close";import s_ from"@mui/icons-material/AddCircle";import pf from"@mui/icons-material/AddTask";import c_ from"@mui/icons-material/Checklist";import m_ from"@mui/icons-material/CheckCircle";import u_ from"@mui/icons-material/DragIndicator";import d_ from"@mui/icons-material/Launch";import p_ from"@mui/icons-material/LinkOutlined";import f_ from"@mui/icons-material/RadioButtonUnchecked";import{useEffect as qv,useMemo as Lv,useState as Mm}from"react";import{Box as En,Button as Av,Tab as Nv,Tabs as $v}from"@mui/material";import{FormDialog as Hv}from"@ehfuse/mui-form-dialog";import{ClearTextField as Wv}from"@ehfuse/mui-form-controls";import{ErrorAlert as Fv}from"@ehfuse/alerts";import Vv from"@mui/icons-material/CheckCircle";import Kv from"@mui/icons-material/RadioButtonUnchecked";import{OverlayScrollbar as Gv}from"@ehfuse/overlay-scrollbar";import{jsx as no,jsxs as ks}from"react/jsx-runtime";var mf=[{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 Ts({open:e,task:t,tasks:o,excludeSeqs:n=[],onClose:r,onSubmit:i,hideRelationType:a=!1,title:l="\uAD00\uB828 \uC5C5\uBB34 \uC5F0\uACB0",confirmLabel:s="\uC5F0\uACB0",multiSelect:u=!1}){let c=Fe(),[d,p]=Mm("related"),[m,f]=Mm(""),[g,B]=Mm([]);qv(()=>{e&&(p("related"),f(""),B([]))},[e]);let x=Lv(()=>{let D=new Set([t.seq,...n]),_=m.trim().toLowerCase();return o.filter(F=>D.has(F.seq)||F.is_event||F.is_notice||F.linked_only?!1:_?F.title.toLowerCase().includes(_)||(F.ticket_no??"").toLowerCase().includes(_):!0).sort((F,M)=>!!F.completed!=!!M.completed?F.completed?1:-1:M.seq-F.seq)},[o,t.seq,n,m]),T=()=>{if(g.length===0){Fv("\uC5F0\uACB0\uD560 \uC5C5\uBB34\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return}for(let D of g)i(D,d);r()},$=D=>{B(_=>_.includes(D)?_.filter(F=>F!==D):u?[..._,D]:[D])},y=mf.find(D=>D.type===d)?.hint??"",L=ks(En,{sx:{display:"flex",flexDirection:"column",minHeight:0,height:c?"100%":"auto"},children:[a?null:no($v,{value:d,onChange:(D,_)=>p(_),sx:{minHeight:38,flexShrink:0,borderBottom:"1px solid #ededeb","& .MuiTab-root":{minHeight:38,py:.5,fontSize:16,color:"#333333"}},children:mf.map(D=>no(Nv,{value:D.type,label:D.label},D.type))}),a?null:no(En,{sx:{mt:1,mb:1.5,fontSize:14,flexShrink:0},children:y}),ks(En,{sx:{...c?{height:"100%",minHeight:0}:{height:560},display:"flex",flexDirection:"column",...c?{}:{border:"1px solid #cccccc",borderRadius:1},overflow:"hidden",userSelect:"none"},children:[no(En,{sx:{px:1.5,py:1,borderBottom:"1px solid #cccccc",flexShrink:0},children:no(Wv,{placeholder:"\uC81C\uBAA9\xB7\uD2F0\uCF13\uBC88\uD638\uB85C \uAC80\uC0C9",value:m,onChange:D=>f(D.target.value),fullWidth:!0,autoFocus:!0,size:"small",sx:{"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{px:0}}})}),no(En,{sx:{flex:1,minHeight:0},children:no(Gv,{style:{height:"100%"},contentStyle:{paddingTop:0},children:no(En,{sx:{display:"flex",flexDirection:"column"},children:x.length===0?no(En,{sx:{py:4,textAlign:"center",fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uD560 \uC218 \uC788\uB294 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):x.map(D=>{let _=D.is_notice||D.is_event?ze(D.icon||(D.is_notice?_t:Pt)):null,F=g.includes(D.seq);return ks(En,{onClick:()=>$(D.seq),sx:{display:"flex",alignItems:"center",gap:.75,px:1.5,py:1.25,flexShrink:0,cursor:"pointer",borderBottom:"1px solid #ededeb","&:last-of-type":{borderBottom:"none"},bgcolor:F?"#e3eefb":"transparent","&:hover":{bgcolor:F?"#e3eefb":"#f7f7f5"}},children:[F?no(Vv,{sx:{fontSize:20,flexShrink:0,color:"#2f6fd0"}}):no(Kv,{sx:{fontSize:20,flexShrink:0,color:"#c9c8c5"}}),_?no(_,{sx:{fontSize:17,flexShrink:0,color:D.icon_color||"#1e3a8a"}}):null,ks(En,{component:"span",sx:{flex:1,minWidth:0,fontSize:15,color:"#37352f",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",lineHeight:1.5,wordBreak:"break-word"},children:[D.ticket_no?`${D.ticket_no} `:"",D.title]}),no(En,{sx:{flexShrink:0,display:"flex",alignItems:"center"},children:no(He,{option:Ot(D)})})]},D.seq)})})})})]})]});return no(Hv,{open:e,onClose:r,maxWidth:"sm",fullScreen:c,mobilePresentation:c?"slide":"dialog",...c?{contentPaddingX:0,contentTopPadding:0,sectionsPaddingTop:0}:{},sx:c?{DialogContent:{pb:0,"& .os-content > div":{height:"100%",boxSizing:"border-box",paddingBottom:0,marginBottom:0},"& .FormSection-content, & .section-content":{height:"100%",paddingBottom:0,marginBottom:0}}}:void 0,title:l,locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-link",sections:[{id:"task-link",showTitle:!1,children:L}],scrollPastLastSection:!1,sectionContentPaddingTop:0,contentTopPadding:12,actions:{showCancelButton:!0,right:no(Av,{variant:"contained",disabled:g.length===0,onClick:T,children:s})}})}import{ConfirmActionPopper as g_}from"@ehfuse/mui-confirm-action";import{Fragment as b_,jsx as Be,jsxs as Rn}from"react/jsx-runtime";var ff="taskbox.checklist.hideCompleted";function x_({id:e,children:t}){let{attributes:o,listeners:n,setNodeRef:r,transform:i,transition:a,isDragging:l}=i_({id:e});return Be(qt,{ref:r,sx:{transform:l_.Transform.toString(i),transition:a,...l?{opacity:.6,position:"relative",zIndex:1}:{}},children:t({handleProps:{...o,...n},dragging:l})})}function h_({sortable:e,sensors:t,rowIds:o,onDragEnd:n,children:r}){let i=Be(qt,{sx:{display:"flex",flexDirection:"column",mt:.5,pl:3.25},children:r});return e?Be(Xv,{sensors:t,collisionDetection:Zv,modifiers:[o_,t_],onDragEnd:n,children:Be(n_,{items:o,strategy:a_,children:i})}):i}function ys({taskSeq:e,checklist:t,onAdd:o,onToggle:n,confirmOnToggle:r=!1,onRemove:i,onUpdate:a,onReorder:l,removeLocked:s=!1,onConvertToTask:u,onOpenLinkedTask:c,linkCandidates:d,linkBaseTask:p,onLinkExistingTask:m,resolveLinkedTask:f,myAccountSeq:g=0}){let[B,x]=Pi(""),[T,$]=Pi(!1),[y,L]=Pi(null),D=Fe(),[_,F]=Pi(null),[M,Q]=Pi(null),G=j=>{let E=j.task_seq?f?.(j.task_seq):void 0;return E?E.completed:j.checked},I=j=>{if(!j.task_seq||g<=0)return!1;let E=f?.(j.task_seq);return E?!bd(E,g):!1},k=j=>!!j.task_seq&&!!f&&!f?.(j.task_seq),w=t.filter(j=>!k(j)),S=w.filter(G).length,[h,O]=Pi(()=>{try{return localStorage.getItem(ff)==="1"}catch{return!1}}),v=j=>{O(j);try{localStorage.setItem(ff,j?"1":"0")}catch{}},V=!!l&&!D&&!s,H=e_(Jv(Qv,{activationConstraint:{distance:5}})),A=(j,E)=>j.task_seq?`linked-${j.task_seq}`:`row-${E}`,W=t.map(A),ee=W.filter((j,E)=>{let ae=t[E];return k(ae)?!1:!(h&&G(ae))}),X=j=>{let{active:E,over:ae}=j;if(!ae||E.id===ae.id)return;let Z=W.indexOf(String(E.id)),C=W.indexOf(String(ae.id));Z<0||C<0||l?.(e,r_(t,Z,C))},oe=()=>{B.trim()&&(o(e,B),x(""))};return Rn(Go,{icon:Be(c_,{sx:{fontSize:19,display:"block"}}),title:Rn(b_,{children:["\uD560\uC77C",t.length>0?Rn(qt,{component:"span",sx:{fontSize:12.5,color:"#9a9a97"},children:[S," / ",t.length]}):null]}),titleExtra:w.length>0?Rn(qt,{sx:{flex:1,minWidth:0,ml:1,display:"flex",alignItems:"center",gap:1},children:[Be(qt,{sx:{flex:1,minWidth:0,height:6,borderRadius:3,bgcolor:"#ececea"},children:Be(qt,{sx:{height:"100%",borderRadius:3,width:`${Math.round(S/w.length*100)}%`,bgcolor:"#2f80ed",transition:"width 0.2s"}})}),S>0?Rn(qt,{component:"label",sx:{display:"inline-flex",alignItems:"center",gap:.25,flexShrink:0,cursor:"pointer",fontSize:13.5,fontWeight:400,color:"#57564f",userSelect:"none"},children:[Be(Yv,{size:"small",checked:h,onChange:(j,E)=>v(E)}),"\uC644\uB8CC\uC228\uAE40"]}):null]}):null,children:[Be(h_,{sortable:V,sensors:H,rowIds:ee,onDragEnd:X,children:t.map((j,E)=>{let ae=j.task_seq?f?.(j.task_seq):void 0,Z=G(j);if(h&&Z||k(j))return null;let C=!!j.task_seq,R=I(j),b=N=>Rn(qt,{sx:{display:"flex",alignItems:D?"flex-start":"center",gap:1,px:1.25,...V?{ml:-3,pl:.5}:{},py:.5,borderRadius:1,"&:hover":{bgcolor:"#f7f7f5"},"&:hover .taskbox-checklist-remove":{opacity:1},"&:hover .taskbox-checklist-convert":{opacity:1},"&:hover .taskbox-checklist-handle":{opacity:1}},children:[N?Be(qt,{className:"taskbox-checklist-handle",...N,sx:{display:"inline-flex",flexShrink:0,alignItems:"center",color:"#c9c8c5",opacity:0,transition:"opacity 0.15s",cursor:"grab","&:active":{cursor:"grabbing"},touchAction:"none",userSelect:"none"},children:Be(u_,{sx:{fontSize:16}})}):null,Be(Pm,{title:R?"\uC5F0\uACB0 \uC5C5\uBB34\uC758 \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB9CC \uC644\uB8CC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4":"",arrow:!0,disableInteractive:!0,children:Be(qt,{component:"span",onClick:R?void 0:q=>r?Q({anchorEl:q.currentTarget,index:E,checked:!Z}):n(e,E,!Z),sx:{display:"inline-flex",flexShrink:0,cursor:R?"default":"pointer",...D?{mt:"1px"}:{}},children:Z?Be(m_,{sx:{fontSize:18,color:R?"#a9c6ec":"#2f80ed"}}):Be(f_,{sx:{fontSize:18,color:R?"#d6d5d1":"#9a9a97"}})})}),y?.index===E?Be(qt,{component:"input",autoFocus:!0,spellCheck:!1,value:y.label,enterKeyHint:"done",onChange:q=>L({index:E,label:q.target.value}),onBlur:()=>{y.label.trim()&&y.label.trim()!==j.label&&a?.(e,E,y.label),L(null)},onKeyDown:q=>{q.key==="Enter"&&q.target.blur(),q.key==="Escape"&&L(null)},sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:14,color:"#37352f",bgcolor:"transparent",p:0}}):Be(qt,{component:"span",onClick:C?j.task_seq&&c?()=>c(j.task_seq):void 0:s||!a?void 0:D?()=>F({index:E,label:j.label}):()=>L({index:E,label:j.label}),sx:{flex:1,minWidth:0,fontSize:14.5,color:"#37352f",textDecoration:Z?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",...D?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,lineHeight:1.4,wordBreak:"break-word"}:{whiteSpace:"nowrap"},...C?c?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}:s||!a?{}:{cursor:"text"}},children:j.label}),C?Rn(qt,{component:"span",onClick:j.task_seq&&c?()=>c(j.task_seq):void 0,sx:{display:"inline-flex",alignItems:"center",gap:.4,flexShrink:0,...D?{mt:"1px"}:{},px:.75,py:.2,borderRadius:1,fontSize:12,fontWeight:500,color:"#1d4f91",bgcolor:"#e3eefb",whiteSpace:"nowrap",...c?{cursor:"pointer"}:{}},children:[Be(d_,{sx:{fontSize:12}}),ae?.manager_name?.trim()||"\uC5C5\uBB34"]}):null,!s&&!C&&u?Be(Pm,{title:"\uC5C5\uBB34\uB85C \uB9CC\uB4E4\uAE30",arrow:!0,enterDelay:300,disableInteractive:!0,children:Be(Oi,{className:"taskbox-checklist-convert",size:"small","aria-label":"\uC5C5\uBB34\uB85C \uB9CC\uB4E4\uAE30",onClick:()=>u(e,E,j.label),sx:{display:D?"none":"inline-flex",opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:Be(pf,{sx:{fontSize:16}})})}):null,s?null:Be(Oi,{className:"taskbox-checklist-remove",size:"small","aria-label":"\uD560\uC77C \uC0AD\uC81C",onClick:()=>i(e,E),sx:{display:D?"none":"inline-flex",opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:Be(df,{sx:{fontSize:15}})})]});return V?Be(x_,{id:W[E],children:({handleProps:N})=>b(N)},W[E]):Be(qt,{children:b(null)},W[E])})}),Rn(qt,{sx:{mt:.5,ml:3.25,display:"flex",alignItems:"center",gap:.5},children:[Be(qt,{component:"input",spellCheck:!1,value:B,placeholder:"+ \uD560\uC77C \uCD94\uAC00",enterKeyHint:"done",onChange:j=>x(j.target.value),onKeyDown:j=>{j.key==="Enter"&&oe()},sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:14,color:"#37352f",bgcolor:"transparent",px:1.25,py:.75,"&::placeholder":{color:"#9a9a97"}}}),d&&p&&m?Be(Pm,{title:"\uAE30\uC874 \uC5C5\uBB34 \uBD99\uC774\uAE30",arrow:!0,children:Be(Oi,{size:"small","aria-label":"\uAE30\uC874 \uC5C5\uBB34 \uBD99\uC774\uAE30",onMouseDown:j=>j.preventDefault(),onClick:()=>$(!0),sx:{flexShrink:0,color:"#9a9a97"},children:Be(p_,{sx:{fontSize:20}})})}):null,Be(Oi,{size:"small","aria-label":"\uD560\uC77C \uCD94\uAC00",disabled:!B.trim(),onMouseDown:j=>j.preventDefault(),onClick:oe,sx:{flexShrink:0,color:B.trim()?"#2f80ed":"#c9c8c5"},children:Be(s_,{sx:{fontSize:20}})})]}),d&&p&&m?Be(Ts,{open:T,task:p,tasks:d,excludeSeqs:t.map(j=>Number(j.task_seq??0)).filter(j=>j>0),hideRelationType:!0,multiSelect:!0,title:"\uAE30\uC874 \uC5C5\uBB34 \uBD99\uC774\uAE30",confirmLabel:"\uBD99\uC774\uAE30",onClose:()=>$(!1),onSubmit:j=>{let E=d.find(ae=>ae.seq===j);m(e,j,String(E?.title??"").trim())}}):null,Be(g_,{open:!!M,anchorEl:M?.anchorEl??null,title:M?.checked?"\uC774 \uD560\uC77C\uC744 \uC644\uB8CC \uCC98\uB9AC\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC644\uB8CC\uB97C \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:M?.checked?"\uC644\uB8CC":"\uD574\uC81C",onCancel:()=>Q(null),onConfirm:()=>{M&&n(e,M.index,M.checked),Q(null)}}),Be(Uv,{open:!!_,onClose:()=>F(null),maxWidth:"xs",fullWidth:!0,slotProps:{paper:{sx:{borderRadius:2,m:2}}},children:Rn(qt,{sx:{p:2,display:"flex",flexDirection:"column",gap:1.5},children:[Be(qt,{sx:{fontSize:15.5,fontWeight:600,color:"#37352f"},children:"\uD560\uC77C \uC218\uC815"}),Be(jv,{autoFocus:!0,fullWidth:!0,size:"medium",value:_?.label??"",onChange:j=>F(E=>E&&{...E,label:j.target.value}),onKeyDown:j=>{if(j.key!=="Enter")return;let E=_;E&&E.label.trim()&&a?.(e,E.index,E.label.trim()),F(null)}}),Rn(qt,{sx:{display:"flex",alignItems:"center",gap:1},children:[!s&&u&&_&&!t[_.index]?.task_seq?Be(Oi,{"aria-label":"\uC5C5\uBB34\uB85C \uB9CC\uB4E4\uAE30",onClick:()=>{u(e,_.index,t[_.index]?.label??""),F(null)},sx:{color:"#57564f"},children:Be(pf,{sx:{fontSize:20}})}):null,!s&&_?Be(Oi,{"aria-label":"\uD560\uC77C \uC0AD\uC81C",onClick:()=>{i(e,_.index),F(null)},sx:{color:"#e5484d"},children:Be(df,{sx:{fontSize:19}})}):null,Be(qt,{sx:{flex:1}}),Be(uf,{color:"inherit",onClick:()=>F(null),children:"\uCDE8\uC18C"}),Be(uf,{variant:"contained",disabled:!_?.label.trim(),onClick:()=>{_&&_.label.trim()&&a?.(e,_.index,_.label.trim()),F(null)},children:"\uD655\uC778"})]})]})})]})}import{useRef as B_,useState as v_}from"react";import{Box as Mn,IconButton as __}from"@mui/material";import I_ from"@mui/icons-material/Close";import hf from"@mui/icons-material/AttachFileOutlined";var k_=new Set(["jpg","jpeg","png","gif","bmp","webp","svg","pdf","txt","json","xml","log","md","markdown","csv","xls","xlsx","html","htm","js","jsx","ts","tsx","css","scss","sass","less","php","py","java","c","cpp","h","hpp","cs","go","rs","rb","swift","kt","scala","sql","sh","bash","bat","ps1","yml","yaml","toml","ini","conf","mp4","avi","mov","wmv","flv","webm","mp3","wav","ogg","m4a","aac"]),Ss=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return k_.has(t)};import{LinearProgress as T_}from"@mui/material";import{Fragment as y_,jsx as C_,jsxs as S_}from"react/jsx-runtime";function gf(e){let t=Hn(),o=t.useValue("attachmentUpload.taskSeq"),n=t.useValue("attachmentUpload.index"),r=t.useValue("attachmentUpload.total"),i=t.useValue("attachmentUpload.queue"),a=n??0;return!a||e>0&&(o??0)!==e?null:{index:a,total:r??0,queue:i??[]}}function Om(){let t=Hn().useValue("attachmentUpload.progress");return S_(y_,{children:[t??0,"%"]})}function xf(){let t=Hn().useValue("attachmentUpload.progress");return C_(T_,{variant:"determinate",value:t??0,sx:{height:4,borderRadius:2,bgcolor:"#dbe9fb",mt:.75}})}import{Fragment as w_,jsx as Bo,jsxs as za}from"react/jsx-runtime";function Cs(e){return e>=1048576?`${(e/1048576).toFixed(1)}MB`:`${Math.max(1,Math.round(e/1024))}KB`}var Bs={flex:1,minWidth:0,fontSize:13.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function vs({taskSeq:e,attachments:t,onAdd:o,onRemove:n,removeLocked:r=!1,onPreview:i,onDownload:a}){let[l,s]=v_(!1),u=B_(null),c=Fe(),d=la(),p=aa(),m=gf(e),f=e===0,g=y=>{if(i){i(y);return}window.open(p(y.uuid??""),"_blank","noopener,noreferrer")},B=y=>{if(a){a(y);return}window.open(p(y.uuid??"",{download:!0}),"_blank","noopener,noreferrer")},x=y=>m?y+1<m.index?"done":y+1===m.index?"uploading":"waiting":"waiting",T=(y,L,D,_={})=>za(Mn,{sx:{px:1,py:.5,borderRadius:1,border:"1px solid",borderColor:_.uploading?"#d5e6fb":"#e6e6e3",bgcolor:_.uploading?"#f4f9ff":"transparent","&:hover .taskbox-file-remove":{opacity:1}},children:[za(Mn,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Bo(hf,{sx:{fontSize:16,color:"#9a9a97"}}),L,Bo(Mn,{component:"span",sx:{fontSize:12,color:_.uploading?"#2f80ed":"#9a9a97",flexShrink:0},children:D}),_.removeIndex!==void 0?Bo(__,{className:"taskbox-file-remove",size:"small","aria-label":"\uCCA8\uBD80 \uC0AD\uC81C",onClick:()=>n(e,_.removeIndex),sx:{opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:Bo(I_,{sx:{fontSize:15}})}):null]}),_.uploading?Bo(xf,{}):null]},y),$=y=>{let L=Ss(y.name);return Bo(Mn,{component:"button",type:"button",onClick:()=>L?g(y):B(y),title:`${y.name} ${L?"\uBBF8\uB9AC\uBCF4\uAE30":"\uB2E4\uC6B4\uB85C\uB4DC"}`,sx:{...Bs,color:"#37352f",textAlign:"left",p:0,border:"none",background:"none",font:"inherit",fontSize:13.5,cursor:"pointer",outline:"none","&:focus-visible":{textDecoration:"underline",color:"#2f80ed"},"&:hover":{textDecoration:"underline",color:"#2f80ed"}},children:y.name})};return za(Go,{icon:Bo(hf,{sx:{fontSize:18,display:"block"}}),title:za(w_,{children:["\uD30C\uC77C ",t.length>0?t.length:""]}),children:[za(Mn,{sx:{display:"flex",flexDirection:"column",gap:.5,mt:1},children:[t.map((y,L)=>{let D=`${y.uuid||y.name}-${L}`;if(f){let _=x(L),F=_==="uploading";return T(D,Bo(Mn,{component:"span",sx:{...Bs,color:_==="done"?"#37352f":"#9a9a97"},children:y.name}),F?Bo(Om,{}):Cs(y.size),{uploading:F,removeIndex:!r&&!m?L:void 0})}return y.uuid?T(D,$(y),Cs(y.size),{removeIndex:r?void 0:L}):T(D,Bo(Mn,{component:"span",title:"\uC2E4\uD30C\uC77C\uC774 \uC5C6\uB294 \uC774\uC804 \uBC29\uC2DD \uCCA8\uBD80\uC785\uB2C8\uB2E4(\uB2E4\uC6B4\uB85C\uB4DC \uBD88\uAC00) \u2014 \uB2E4\uC2DC \uCCA8\uBD80\uD574 \uC8FC\uC138\uC694.",sx:{...Bs,color:"#9a9a97"},children:y.name}),Cs(y.size),{removeIndex:r?void 0:L})}),!f&&m?m.queue.slice(m.index-1).map((y,L)=>{let D=L===0;return T(`uploading-${m.index+L}-${y.name}`,Bo(Mn,{component:"span",sx:{...Bs,color:"#9a9a97"},children:y.name}),D?Bo(Om,{}):Cs(y.size),{uploading:D})}):null]}),Bo(Mn,{onClick:()=>u.current?.click(),onDragOver:y=>{y.preventDefault(),s(!0)},onDragLeave:()=>s(!1),onDrop:y=>{y.preventDefault(),s(!1);let L=Array.from(y.dataTransfer.files);L.length>0&&o(e,L)},sx:{mt:1,py:2.5,display:"flex",alignItems:"center",justifyContent:"center",gap:.5,border:"1.5px dashed",borderColor:l?"#2f80ed":"#cfcfcc",borderRadius:1,bgcolor:l?"#eef6ff":"transparent",color:"#787774",fontSize:13.5,cursor:"pointer",transition:"background-color 0.15s, border-color 0.15s","&:hover":{bgcolor:"#fafaf9",borderColor:"#9a9a97"}},children:c?`\uD30C\uC77C\uC744 \uCCA8\uBD80\uD558\uC138\uC694 (\uCD5C\uB300 ${d}MB)`:`\uD30C\uC77C\uC744 \uB04C\uC5B4\uB2E4 \uB193\uAC70\uB098 \uD074\uB9AD\uD574 \uCCA8\uBD80\uD558\uC138\uC694 (\uCD5C\uB300 ${d}MB)`}),Bo(Mn,{component:"input",ref:u,type:"file",multiple:!0,onChange:y=>{let L=Array.from(y.target.files??[]);L.length>0&&o(e,L),y.target.value=""},sx:{display:"none"}})]})}import{useState as z_}from"react";import{Checkbox as q_,Divider as L_,ListItemIcon as A_,Menu as N_,MenuItem as yf}from"@mui/material";import $_ from"@mui/icons-material/Add";import{useEffect as D_,useState as bf}from"react";import{Box as zm,Button as E_}from"@mui/material";import{FormDialog as R_}from"@ehfuse/mui-form-dialog";import{ClearTextField as M_}from"@ehfuse/mui-form-controls";import{ColorPicker as P_}from"@ehfuse/mui-color-picker";import{ErrorAlert as O_}from"@ehfuse/alerts";import{jsx as qa,jsxs as qm}from"react/jsx-runtime";var kf="#2f80ed";function Tf({open:e,onClose:t,onSubmit:o}){let[n,r]=bf(""),[i,a]=bf(kf);D_(()=>{e&&(r(""),a(kf))},[e]);let l=()=>{let c=n.trim();if(!c){O_("\uB77C\uBCA8 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.");return}o(c,i),t()},s=ld(i),u=qm(zm,{children:[qm(zm,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[qa(M_,{label:"\uB77C\uBCA8 \uC774\uB984",value:n,onChange:c=>r(c.target.value),onKeyDown:c=>{c.key==="Enter"&&(c.preventDefault(),l())},fullWidth:!0,autoFocus:!0}),qa(P_,{value:i,onChange:c=>a(c),shape:"circle",colorSize:28})]}),qm(zm,{sx:{mt:2,display:"flex",alignItems:"center",gap:1,fontSize:13,color:"#787774"},children:["\uBBF8\uB9AC\uBCF4\uAE30",qa(He,{option:{key:"__preview__",name:n.trim()||"\uB77C\uBCA8",...s}})]})]});return qa(R_,{open:e,onClose:t,maxWidth:"xs",title:"\uC0C8 \uB77C\uBCA8 \uCD94\uAC00",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-add-label",sections:[{id:"add-label",showTitle:!1,children:u}],actions:{showCancelButton:!0,right:qa(E_,{variant:"contained",onClick:l,children:"\uCD94\uAC00"})}})}import{Fragment as H_,jsx as zi,jsxs as _s}from"react/jsx-runtime";function Is({anchorEl:e,selectedKeys:t,labelOptions:o,onToggle:n,onAddLabel:r,onClose:i}){let[a,l]=z_(!1),s=xn();return _s(H_,{children:[_s(N_,{anchorEl:e,open:!!e,onClose:i,transitionDuration:0,...s,children:[o.map(u=>{let c=t.includes(u.key);return _s(yf,{onClick:()=>n(u.key),sx:{fontSize:14,minWidth:170,gap:1},children:[zi(q_,{size:"small",checked:c,sx:{p:0}}),zi(He,{option:u})]},u.key)}),zi(L_,{}),_s(yf,{onClick:()=>l(!0),sx:{fontSize:14,color:"#787774"},children:[zi(A_,{children:zi($_,{sx:{fontSize:18,color:"#787774"}})}),"\uB77C\uBCA8 \uCD94\uAC00"]})]}),zi(Tf,{open:a,onClose:()=>l(!1),onSubmit:r})]})}function Sf(e,t){let o=Number(e.author_account_seq??0);return t.filter(n=>{let r=Number(n.account_seq??0);return r>0&&r!==o})}function Cf(e,t){let o=(e.target_account_seqs??[]).filter(d=>d>0);if(o.length===0)return null;let n=new Set(o),r=Sf(e,t),i=new Map;for(let d of r){let p=String(d.department??"").trim();if(!p)continue;let m=i.get(p)??[];m.push(d),i.set(p,m)}let a=[],l=new Set;for(let[d,p]of i)if(p.every(f=>n.has(Number(f.account_seq??0)))){a.push(d);for(let f of p)l.add(Number(f.account_seq??0))}let s=new Map(r.map(d=>[Number(d.account_seq??0),d.name])),u=e.target_names??[],c=[];return o.forEach((d,p)=>{l.has(d)||c.push(s.get(d)??u[p]??"\uC774\uB984\uC5C6\uC74C")}),{teamNames:a,individualNames:c}}function ws(e,t){let o=Cf(e,t);return o?[...o.teamNames,...o.individualNames].join(", "):"\uBAA8\uB4E0 \uC9C1\uC6D0"}function k3(e,t){let o=Cf(e,t);return o?{kind:"members",teamNames:o.teamNames,individualNames:o.individualNames}:{kind:"everyone"}}function Bf(e,t,o){let n=(e.target_account_seqs??[]).filter(m=>m>0),r=Sf(e,t),i=n.length>0?n.length:r.length,a=e.acks??[],l=o>0&&a.some(m=>m.account_seq===o),s=o>0&&Number(e.author_account_seq??0)===o,u=n.length===0||n.includes(o),c=new Set(a.map(m=>m.account_seq)),p=(n.length>0?r.filter(m=>n.includes(Number(m.account_seq??0))):r).filter(m=>!c.has(Number(m.account_seq??0))).map(m=>String(m.name??"").trim()).filter(m=>m.length>0);return{count:a.length,total:i,acked:l,pendingNames:p,canAck:o>0&&!s&&u&&!l&&!e.completed}}function vf(e,t){let o=Number(t)||50,n=o*1024*1024,r=e.filter(l=>l.size>n),i=e.filter(l=>l.size<=n),a=r.length>0?`\uD30C\uC77C\uC740 1\uAC1C\uB2F9 \uCD5C\uB300 ${o}MB \uAE4C\uC9C0 \uCCA8\uBD80\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
|
|
10
|
-
\uC81C\uC678\uB41C \uD30C\uC77C: ${r.map(l=>l.name).join(", ")}`:null;return{accepted:i,rejected:r,message:a}}import{DatePicker as Z_}from"@ehfuse/mui-datetime-picker";import{Fragment as Na,jsx as xe,jsxs as Er}from"react/jsx-runtime";var Ef="#0f9d58";function Nm({form:e,statusOptions:t,customTabs:o,sprints:n=[],avatarSrcByName:r,isNotice:i=!1,hideProject:a=!1,hideBug:l=!1,leadingRow:s,hideLabel:u=!1,employees:c=[],workspaceName:d="",myAccountSeq:p=0,departments:m=[],myGroupSeq:f=0,onMemberEdit:g,onAddProject:B,onAddLabelOption:x,contentSyncKey:T="create",contentTemplates:$,onSaveContentTemplate:y,onRemoveContentTemplate:L}){let D=Hn(),_=la(),F=e.useFormValue("manager_name"),M=e.useFormValue("receiver_names"),Q=e.useFormValue("start_date"),G=!!e.useFormValue("is_event"),I=!!e.useFormValue("is_bug"),k=e.useFormValue("bug_repro")??"",w=e.useFormValue("bug_device")??"",S=e.useFormValue("bug_where")??"",h=e.useFormValue("bug_version")??"",O=e.useFormValue("event_time")??"",v=e.useFormValue("event_place")??"",V=e.useFormValue("event_address")??"",H=e.useFormValue("due_date"),A=e.useFormValue("reminders")??[],W=e.useFormValue("priority"),ee=e.useFormValue("content"),oe=e.useFormValue("checklist")??[],j=e.useFormValue("tab_key"),E=e.useFormValue("sprint_seq")??0,ae=e.useFormValue("story_points")??0,Z=o.find(K=>K.key===j&&K.useSprints),C=Z?n.filter(K=>`custom-${K.group_seq}`===j):[],[R,b]=La(null),N=e.useFormValue("label_keys"),[q,J]=La(null),me=e.useFormValue("visibility")||"involved",Te=Number(e.useFormValue("visibility_group_seq")??0),[Ae,ne]=La(null),Ie=e.useFormValue("repeat_rule")||"",Ee=e.useFormValue("repeat_until")||"",[Re,Je]=La(null),[Qe,ye]=La(null),Rt=e.useFormValue("target_names"),Qo=e.useFormValue("target_account_seqs"),le=D.useValue("createAttachmentFiles")??[],ct=i?ws({author_account_seq:p,target_names:Rt,target_account_seqs:Qo},c):"";return Er(Na,{children:[s,i?null:Er(Dr,{sx:{display:"flex",gap:1.25,px:2,pt:1.5,pb:1.5,flexShrink:0},children:[d?xe(Dr,{sx:{alignSelf:"center",fontSize:13.5,fontWeight:600,color:"#37352f",mr:"6px",maxWidth:160,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:d,children:d}):null,[{value:"task",label:"\uC5C5\uBB34"},{value:"event",label:"\uC77C\uC815"},...l?[]:[{value:"bug",label:"\uC624\uB958"}]].map(K=>{let De=I?"bug":G?"event":"task",qe=De===K.value;return xe(W_,{onClick:()=>{if(De===K.value)return;e.setFormValue("is_event",K.value==="event"),e.setFormValue("is_bug",K.value==="bug"),e.setFormValue("visibility",K.value==="bug"?"all":"involved"),e.setFormValue("visibility_group_seq",0),K.value==="bug"&&(e.setFormValue("repeat_rule",""),e.setFormValue("repeat_until",""));let Ve=e.getFormValue("icon"),At=e.getFormValue("icon_color"),Zo=[$n,"event",ca].includes(Ve),Io=!At||At===Ef||At===ma;Zo&&e.setFormValue("icon",K.value==="event"?"event":K.value==="bug"?ca:$n),Io&&e.setFormValue("icon_color",K.value==="event"?Ef:K.value==="bug"?ma:"")},sx:{px:1.75,lineHeight:1,pt:"8px",pb:"10px",borderRadius:99,fontSize:13.5,fontWeight:qe?600:400,color:qe?"#ffffff":"#787774",bgcolor:qe?"#2563eb":"#f4f4f2"},children:K.label},K.label)})]}),xe(Aa,{sx:{borderColor:"#e6e6e3"}}),Er(Dr,{sx:{py:1.5,display:"flex",flexDirection:"column",gap:.25},children:[xe(ds,{hideProject:a,hideDueDate:!G&&!!Ie,values:{tabKey:j,managerName:F,receiverNames:M,startDate:Q,dueDate:H,reminders:A,priority:W,eventTime:O,eventPlace:v,eventAddress:V},customTabs:o,avatarSrcByName:r,notice:i,event:G,onChangeEventTime:K=>e.setFormValue("event_time",K),onChangeEventPlace:K=>e.setFormValue("event_place",K),onChangeEventAddress:K=>e.setFormValue("event_address",K),targetSummary:ct,onChangeProject:K=>e.setFormValue("tab_key",K),onAddProject:B,onChangeStartDate:K=>e.setFormValue("start_date",K),onChangeDueDate:K=>e.setFormValue("due_date",K),onChangeReminder:K=>e.setFormValue("reminders",K),onChangePriority:K=>e.setFormValue("priority",K),onMemberEdit:g,pinColumns:!0,beforeStart:Er(Na,{children:[!i&&!I?xe(_e,{icon:xe(Y_,{sx:{fontSize:17,...Ie?{color:"#2f80ed"}:{}}}),label:"\uBC18\uBCF5",onClick:K=>Je(K),sx:G?void 0:Tt(2),children:Ie?ls(Ie):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uC5C6\uC74C"})}):null,!i&&!I&&Ie?xe(_e,{icon:xe(j_,{sx:{fontSize:17}}),label:"\uBC18\uBCF5 \uC885\uB8CC",onClick:K=>ye(K),sx:G?void 0:Tt(2),children:Ee?Wo(Ee):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uC790\uB3D9"})}):null]}),trailing:Er(Na,{children:[i?null:xe(_e,{icon:me==="all"?xe(If,{sx:{fontSize:17,color:"#2f80ed"}}):me==="group"?xe(wf,{sx:{fontSize:17,color:"#d9730d"}}):xe(_f,{sx:{fontSize:17}}),label:"\uACF5\uAC1C",onClick:K=>ne(K),sx:G?void 0:Tt(1),children:me==="all"?"\uC804\uCCB4\uACF5\uAC1C":me==="group"?`\uBD80\uC11C\uACF5\uAC1C \xB7 ${m.find(K=>K.seq===Te)?.name??"\uBD80\uC11C"}`:"\uBE44\uACF5\uAC1C"}),Z&&!G&&!i?Er(Na,{children:[xe(_e,{icon:xe(U_,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:K=>b(K),sx:Tt(1),children:E>0?C.find(K=>K.seq===E)?.name??"\uC0AD\uC81C\uB41C \uBAA9\uD45C":xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uBBF8\uBC30\uC815"})}),xe(_e,{icon:xe(X_,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",sx:Tt(1),children:xe(Jn,{value:ae>0?String(ae):"",placeholder:"\uBBF8\uCD94\uC815",onCommit:K=>e.setFormValue("story_points",Number(K.replace(/[^0-9.]/g,""))||0)})})]}):null,I?xe(ps,{values:{repro:k,device:w,where:S,version:h},onChangeRepro:K=>e.setFormValue("bug_repro",K),onChangeDevice:K=>e.setFormValue("bug_device",K),onChangeWhere:K=>e.setFormValue("bug_where",K),onChangeVersion:K=>e.setFormValue("bug_version",K)}):null]}),leading:G||u?null:xe(Dr,{sx:{gridColumn:"1 / -1"},children:xe(_e,{icon:xe(G_,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:K=>J(K),children:(N??[]).length>0?xe(gr,{labelKeys:N??[],labelOptions:t}):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uBE44\uC5B4 \uC788\uC74C"})})})}),xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(Go,{icon:xe(V_,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",titleExtra:$?xe(gs,{content:ee,templates:$,onApply:K=>e.setFormValue("content",K),onSave:y,onRemove:L}):void 0,children:xe(bs,{syncKey:T,value:ee,onChange:K=>e.setFormValue("content",K)})}),I?null:Er(Na,{children:[xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(Go,{icon:xe(K_,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:xe(Q_,{form:e,name:"note",placeholder:"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",sx:{mt:1}})})]}),G?null:xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),G?null:xe(ys,{taskSeq:0,checklist:oe,onAdd:(K,De)=>e.setFormValue("checklist",[...oe,{label:De,checked:!1}]),onToggle:(K,De,qe)=>e.setFormValue("checklist",oe.map((Ve,At)=>At===De?{...Ve,checked:qe}:Ve)),onRemove:(K,De)=>e.setFormValue("checklist",oe.filter((qe,Ve)=>Ve!==De)),onUpdate:(K,De,qe)=>e.setFormValue("checklist",oe.map((Ve,At)=>At===De?{...Ve,label:qe}:Ve))}),xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(vs,{taskSeq:0,attachments:le.map(K=>({name:K.name,size:K.size})),onAdd:(K,De)=>{let qe=vf(De,_);qe.message&&Df(qe.message),qe.accepted.length!==0&&D.setValue("createAttachmentFiles",[...D.getValue("createAttachmentFiles")??[],...qe.accepted])},onRemove:(K,De)=>D.setValue("createAttachmentFiles",le.filter((qe,Ve)=>Ve!==De))})]}),xe(Lm,{transitionDuration:0,anchorEl:R,open:!!R,onClose:()=>b(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...C.map(K=>({seq:K.seq,label:Vo(K)}))].map(K=>xe(Am,{onClick:()=>{e.setFormValue("sprint_seq",K.seq),b(null)},sx:{fontSize:14,minWidth:170},children:K.label},K.seq))}),xe(Lm,{transitionDuration:0,anchorEl:Re,open:!!Re,onClose:()=>Je(null),children:[{value:"",label:"\uC5C6\uC74C"},...Ea].map(K=>xe(Am,{selected:Ie===K.value,onClick:()=>{if(Je(null),K.value===""){e.setFormValue("repeat_rule",""),e.setFormValue("repeat_until","");return}let De;if(G){if(De=String(e.getFormValue("due_date")??"").slice(0,10),!De){Df("\uBC18\uBCF5\uD558\uB824\uBA74 \uC77C\uC815 \uB0A0\uC9DC\uB97C \uBA3C\uC800 \uC120\uD0DD\uD558\uC138\uC694.");return}}else{if(De=String(e.getFormValue("start_date")??"").slice(0,10),!De){let qe=new Date,Ve=At=>String(At).padStart(2,"0");De=`${qe.getFullYear()}-${Ve(qe.getMonth()+1)}-${Ve(qe.getDate())}`}e.setFormValue("due_date","")}e.setFormValue("repeat_rule",K.value),e.setFormValue("repeat_until",ss(De,K.value))},sx:{fontSize:14,minWidth:140},children:K.label},K.value||"none"))}),xe(Z_,{anchorEl:Qe,open:!!Qe,onClose:()=>ye(null),selectedDate:Ee?new Date(`${Ee}T00:00:00`):new Date,onDateChange:K=>{let De=qe=>String(qe).padStart(2,"0");e.setFormValue("repeat_until",`${K.getFullYear()}-${De(K.getMonth()+1)}-${De(K.getDate())}`),ye(null)}}),xe(Lm,{transitionDuration:0,anchorEl:Ae,open:!!Ae,onClose:()=>ne(null),children:[{key:"involved",label:"\uBE44\uACF5\uAC1C",tip:"\uC791\uC131\uC790\xB7\uCC45\uC784\uC790\xB7\uCC38\uC870\uC790\uB9CC \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4",icon:xe(_f,{sx:{fontSize:17,color:"#57564f"}}),selected:me==="involved",onPick:()=>{e.setFormValue("visibility","involved"),e.setFormValue("visibility_group_seq",0)}},{key:"all",label:"\uC804\uCCB4\uACF5\uAC1C",tip:"\uBAA8\uB4E0 \uC9C1\uC6D0\uC774 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4",icon:xe(If,{sx:{fontSize:17,color:"#2f80ed"}}),selected:me==="all",onPick:()=>{e.setFormValue("visibility","all"),e.setFormValue("visibility_group_seq",0)}},...[...m].sort((K,De)=>K.seq===f?-1:De.seq===f?1:0).map(K=>({key:`group-${K.seq}`,label:`\uBD80\uC11C\uACF5\uAC1C \xB7 ${K.name}`,tip:`${K.name} \uC18C\uC18D \uC9C1\uC6D0\uC774 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4`,icon:xe(wf,{sx:{fontSize:17,color:"#d9730d"}}),selected:me==="group"&&Te===K.seq,onPick:()=>{e.setFormValue("visibility","group"),e.setFormValue("visibility_group_seq",K.seq)}}))].map(K=>xe(F_,{title:K.tip,arrow:!0,disableInteractive:!0,placement:"right",children:Er(Am,{selected:K.selected,onClick:()=>{K.onPick(),ne(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[K.icon,K.label]})},K.key))}),xe(Is,{anchorEl:q,selectedKeys:N??[],labelOptions:t,onToggle:K=>e.setFormValue("label_keys",_l(N??[],K)),onAddLabel:(K,De)=>x?.(K,De),onClose:()=>J(null)})]})}import{Fragment as Pf,jsx as dt,jsxs as $a}from"react/jsx-runtime";function gW({open:e,onClose:t,desktopPresentation:o="drawer",...n}){let{form:r,presetTitle:i="",presetContent:a="",presetVisibility:l,presetVisibilityGroupSeq:s=0,presetDueDate:u="",presetTabKey:c="",presetManager:d=null,isNotice:p=!1,defaultBug:m=!1}=n,f=Hn(),g=e1(!1),[B,x]=Rf(0),T=r.useFormValue("title"),$=r.useFormValue("icon"),y=r.useFormValue("icon_color"),L=!!r.useFormValue("is_event"),D=!!r.useFormValue("is_bug"),_=Fe(),M=f.useValue("createSubmitting")??!1,Q=p||L?ze($||(p?_t:Pt)):null,G=p?"\uACF5\uC9C0 \uB4F1\uB85D":L?"\uC77C\uC815 \uB4F1\uB85D":D?"\uC624\uB958 \uB4F1\uB85D":"\uC5C5\uBB34 \uB4F1\uB85D",I=p?"\uACF5\uC9C0 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694":L?"\uC77C\uC815 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694":D?"\uC5B4\uB5A4 \uC624\uB958\uC778\uC9C0 \uD55C \uC904\uB85C \uC801\uC5B4\uC8FC\uC138\uC694":"\uC5C5\uBB34 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694";J_(()=>{let O=g.current;g.current=e,!(!e||O)&&(r.setFormValues({...r.getFormValues(),title:i,icon:p?_t:m?ca:$n,icon_color:p?"#e5484d":m?ma:"",manager_name:d?.name??"",manager_account_seq:d?.accountSeq??0,receiver_names:[],receiver_account_seqs:[],is_notice:p,is_event:!1,is_bug:m,visibility:l??(m?"all":"involved"),visibility_group_seq:l==="group"?s:0,bug_repro:"",bug_device:"",bug_where:"",bug_version:"",event_time:"",event_place:"",event_address:"",target_names:[],target_account_seqs:[],start_date:"",due_date:u,reminders:[],priority:"medium",note:"",content:a,checklist:[],tab_key:c}),f.setValue("createAttachmentFiles",[]),x(v=>v+1))},[e]);let[k,w]=Rf(null),S=O=>Q?L?dt(r1,{title:"\uC544\uC774\uCF58 \uBCC0\uACBD",arrow:!0,enterDelay:400,disableInteractive:!0,children:dt(t1,{onClick:v=>w(v.currentTarget),sx:{display:"flex",p:.5,borderRadius:1,color:y||"#1e3a8a","&:hover":{bgcolor:"#f2f2f0"}},children:dt(Q,{sx:{fontSize:20}})})}):dt(er,{sx:[{display:"flex",color:y||"#1e3a8a"},O],children:dt(Q,{sx:{fontSize:20}})}):null,h=$a(er,{sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:2,pb:1},children:[S({p:0}),dt(er,{component:"input",autoFocus:!0,spellCheck:!1,value:T,placeholder:I,onChange:O=>r.setFormValue("title",O.target.value),sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:19,fontWeight:600,color:"#37352f",p:0,m:0,"&::placeholder":{color:"#c9c8c5",fontWeight:400}}})]});return _||o==="dialog"?dt(Pf,{children:dt(l1,{open:e,onClose:t,locale:"ko",fontScale:_?{enabled:!0,default:1.1,min:.6}:{enabled:!0},title:G,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fullScreen:_,mobilePresentation:_?"slide":"dialog",maxWidth:"md",actions:{showCancelButton:!0,right:dt($m,{variant:"contained",disableElevation:!0,disabled:M,onClick:M?void 0:r.submit,children:M?"\uC800\uC7A5 \uC911\u2026":"\uC800\uC7A5\uD558\uAE30"})},tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},sections:[{id:"task-create",title:"",showTitle:!1,children:dt(er,{sx:{width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:dt(Nm,{...n,contentSyncKey:`create-${B}`,leadingRow:h})})}]})}):$a(Pf,{children:[dt(o1,{anchor:"right",open:e,onClose:t,"aria-label":"\uC0C8 \uC5C5\uBB34 \uB4F1\uB85D",sx:{zIndex:O=>O.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:$a(er,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[$a(er,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1.5,flexShrink:0},children:[S({px:.5}),dt(er,{component:"input",autoFocus:!0,spellCheck:!1,value:T,placeholder:I,onChange:O=>r.setFormValue("title",O.target.value),sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:18,fontWeight:500,color:"#37352f",p:0,m:0,"&::placeholder":{color:"#c9c8c5",fontWeight:400}}}),dt(n1,{"aria-label":"\uB2EB\uAE30",onClick:t,sx:{color:"#6b7280"},children:dt(i1,{})})]}),dt(Mf,{sx:{borderColor:"#e6e6e3"}}),dt(er,{sx:{flex:1,minHeight:0},children:dt(a1,{style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:dt(Nm,{...n,contentSyncKey:`create-${B}`})})}),dt(Mf,{sx:{borderColor:"#e6e6e3"}}),$a(er,{sx:{display:"flex",justifyContent:"flex-end",gap:.5,px:2,py:1.5,flexShrink:0},children:[dt($m,{onClick:t,color:"inherit",disabled:M,children:"\uCDE8\uC18C"}),dt($m,{onClick:r.submit,variant:"contained",disabled:M,children:M?"\uB4F1\uB85D \uC911\u2026":"\uB4F1\uB85D"})]})]})}),dt(Tr,{anchorEl:k,value:$,color:y,onSelect:O=>{r.setFormValue("icon",O),w(null)},onSelectColor:O=>r.setFormValue("icon_color",O),onClose:()=>w(null)})]})}import{useCallback as _I,useEffect as zs,useRef as qs,useState as Ls}from"react";import{Box as As,Button as II,Divider as fg,Drawer as wI,IconButton as DI,ListItemIcon as eu,ListItemText as tu,Menu as EI,MenuItem as ou}from"@mui/material";import RI from"@mui/icons-material/MoreVert";import MI from"@mui/icons-material/DeleteOutline";import PI from"@mui/icons-material/ShareOutlined";import OI from"@mui/icons-material/HistoryOutlined";import zI from"@ehfuse/overlay-scrollbar";import{FormDialog as qI}from"@ehfuse/mui-form-dialog";import{SuccessAlert as gg}from"@ehfuse/alerts";import{useRef as Wm,useState as ni}from"react";import{Box as ve,Button as qf,Chip as Ds,IconButton as Po,Tooltip as Wf}from"@mui/material";import Lf from"@mui/icons-material/Send";import{TextField as d1}from"@ehfuse/mui-form-controls";import Es from"@mui/icons-material/Close";import p1 from"@mui/icons-material/EditOutlined";import Af from"@mui/icons-material/ContentCopyOutlined";import Nf from"@mui/icons-material/Check";import f1 from"@mui/icons-material/Favorite";import g1 from"@mui/icons-material/FavoriteBorderOutlined";import x1 from"@mui/icons-material/CheckCircle";import h1 from"@mui/icons-material/CheckCircleOutlineOutlined";import qi from"@mui/icons-material/AttachFileOutlined";import b1 from"@mui/icons-material/AddCircleOutline";import k1 from"@mui/icons-material/ImageOutlined";var Hm=e=>{if(e===0)return"0 Bytes";let t=1024,o=["Bytes","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,n)).toFixed(2))+" "+o[n]};import{ConfirmActionPopper as T1}from"@ehfuse/mui-confirm-action";import{Box as s1}from"@mui/material";import{Fragment as u1,jsx as Of}from"react/jsx-runtime";var c1=/https?:\/\/[^\s<>"']+/g;function m1(e){let t=e,o="";for(;;){let n=t.slice(-1);if(n===")"&&(t.match(/\(/g)??[]).length<(t.match(/\)/g)??[]).length){t=t.slice(0,-1),o=n+o;continue}if(".,;:!?]}".includes(n)&&n!==""){t=t.slice(0,-1),o=n+o;continue}break}return[t,o]}function zf({text:e}){let{openExternalUrl:t}=fe(),o=i=>{t?t(i):window.open(i,"_blank","noopener,noreferrer")},n=[],r=0;for(let i of e.matchAll(c1)){let a=i.index??0,[l,s]=m1(i[0]);a>r&&n.push(e.slice(r,a)),n.push(Of(s1,{component:"a",href:l,onClick:u=>{u.preventDefault(),u.stopPropagation(),o(l)},sx:{color:"#2563eb",textDecoration:"underline",wordBreak:"break-all",cursor:"pointer"},children:l},`${a}-${l}`)),s&&n.push(s),r=a+i[0].length}return r<e.length&&n.push(e.slice(r)),Of(u1,{children:n})}import{Fragment as Hf,jsx as ie,jsxs as yt}from"react/jsx-runtime";var y1=5;function $f({kind:e,reactions:t,myAccountSeq:o,onToggle:n}){let r=t??[],i=o>0&&r.some(u=>u.account_seq===o),a=e==="like"?"\uC88B\uC544\uC694":"\uD655\uC778",l=r.length===0?a:ie(ve,{sx:{whiteSpace:"pre-line",fontSize:12},children:r.map(u=>`${u.name} \xB7 ${u.time}`).join(`
|
|
10
|
+
\uC81C\uC678\uB41C \uD30C\uC77C: ${r.map(l=>l.name).join(", ")}`:null;return{accepted:i,rejected:r,message:a}}import{DatePicker as Z_}from"@ehfuse/mui-datetime-picker";import{Fragment as Na,jsx as xe,jsxs as Er}from"react/jsx-runtime";var Ef="#0f9d58";function Nm({form:e,statusOptions:t,customTabs:o,sprints:n=[],avatarSrcByName:r,isNotice:i=!1,hideProject:a=!1,hideBug:l=!1,leadingRow:s,hideLabel:u=!1,employees:c=[],workspaceName:d="",myAccountSeq:p=0,departments:m=[],myGroupSeq:f=0,onMemberEdit:g,onAddProject:B,onAddLabelOption:x,contentSyncKey:T="create",contentTemplates:$,onSaveContentTemplate:y,onRemoveContentTemplate:L}){let D=Hn(),_=la(),F=e.useFormValue("manager_name"),M=e.useFormValue("receiver_names"),Q=e.useFormValue("start_date"),G=!!e.useFormValue("is_event"),I=!!e.useFormValue("is_bug"),k=e.useFormValue("bug_repro")??"",w=e.useFormValue("bug_device")??"",S=e.useFormValue("bug_where")??"",h=e.useFormValue("bug_version")??"",O=e.useFormValue("event_time")??"",v=e.useFormValue("event_place")??"",V=e.useFormValue("event_address")??"",H=e.useFormValue("due_date"),A=e.useFormValue("reminders")??[],W=e.useFormValue("priority"),ee=e.useFormValue("content"),oe=e.useFormValue("checklist")??[],j=e.useFormValue("tab_key"),E=e.useFormValue("sprint_seq")??0,ae=e.useFormValue("story_points")??0,Z=o.find(K=>K.key===j&&K.useSprints),C=Z?n.filter(K=>`custom-${K.group_seq}`===j):[],[R,b]=La(null),N=e.useFormValue("label_keys"),[q,J]=La(null),me=e.useFormValue("visibility")||"involved",Te=Number(e.useFormValue("visibility_group_seq")??0),[Ae,ne]=La(null),Ie=e.useFormValue("repeat_rule")||"",Ee=e.useFormValue("repeat_until")||"",[Re,Je]=La(null),[Qe,ye]=La(null),Rt=e.useFormValue("target_names"),Qo=e.useFormValue("target_account_seqs"),le=D.useValue("createAttachmentFiles")??[],ct=i?ws({author_account_seq:p,target_names:Rt,target_account_seqs:Qo},c):"";return Er(Na,{children:[s,i?null:Er(Dr,{sx:{display:"flex",gap:1.25,px:2,pt:1.5,pb:1.5,flexShrink:0},children:[d?xe(Dr,{sx:{alignSelf:"center",fontSize:13.5,fontWeight:600,color:"#37352f",mr:"6px",maxWidth:160,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:d,children:d}):null,[{value:"task",label:"\uC5C5\uBB34"},{value:"event",label:"\uC77C\uC815"},...l?[]:[{value:"bug",label:"\uC624\uB958"}]].map(K=>{let De=I?"bug":G?"event":"task",qe=De===K.value;return xe(W_,{onClick:()=>{if(De===K.value)return;e.setFormValue("is_event",K.value==="event"),e.setFormValue("is_bug",K.value==="bug"),e.setFormValue("visibility",K.value==="bug"?"all":"involved"),e.setFormValue("visibility_group_seq",0),K.value==="bug"&&(e.setFormValue("repeat_rule",""),e.setFormValue("repeat_until",""));let Ve=e.getFormValue("icon"),At=e.getFormValue("icon_color"),Zo=[$n,"event",ca].includes(Ve),Io=!At||At===Ef||At===ma;Zo&&e.setFormValue("icon",K.value==="event"?"event":K.value==="bug"?ca:$n),Io&&e.setFormValue("icon_color",K.value==="event"?Ef:K.value==="bug"?ma:"")},sx:{px:1.75,lineHeight:1,pt:"8px",pb:"10px",borderRadius:99,fontSize:13.5,fontWeight:qe?600:400,color:qe?"#ffffff":"#787774",bgcolor:qe?"#2563eb":"#f4f4f2"},children:K.label},K.label)})]}),xe(Aa,{sx:{borderColor:"#e6e6e3"}}),Er(Dr,{sx:{pt:1.5,pb:2,display:"flex",flexDirection:"column",gap:.25},children:[xe(ds,{hideProject:a,hideDueDate:!G&&!!Ie,values:{tabKey:j,managerName:F,receiverNames:M,startDate:Q,dueDate:H,reminders:A,priority:W,eventTime:O,eventPlace:v,eventAddress:V},customTabs:o,avatarSrcByName:r,notice:i,event:G,onChangeEventTime:K=>e.setFormValue("event_time",K),onChangeEventPlace:K=>e.setFormValue("event_place",K),onChangeEventAddress:K=>e.setFormValue("event_address",K),targetSummary:ct,onChangeProject:K=>e.setFormValue("tab_key",K),onAddProject:B,onChangeStartDate:K=>e.setFormValue("start_date",K),onChangeDueDate:K=>e.setFormValue("due_date",K),onChangeReminder:K=>e.setFormValue("reminders",K),onChangePriority:K=>e.setFormValue("priority",K),onMemberEdit:g,pinColumns:!0,beforeStart:Er(Na,{children:[!i&&!I?xe(_e,{icon:xe(Y_,{sx:{fontSize:17,...Ie?{color:"#2f80ed"}:{}}}),label:"\uBC18\uBCF5",onClick:K=>Je(K),sx:G?void 0:Tt(2),children:Ie?ls(Ie):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uC5C6\uC74C"})}):null,!i&&!I&&Ie?xe(_e,{icon:xe(j_,{sx:{fontSize:17}}),label:"\uBC18\uBCF5 \uC885\uB8CC",onClick:K=>ye(K),sx:G?void 0:Tt(2),children:Ee?Wo(Ee):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uC790\uB3D9"})}):null]}),trailing:Er(Na,{children:[i?null:xe(_e,{icon:me==="all"?xe(If,{sx:{fontSize:17,color:"#2f80ed"}}):me==="group"?xe(wf,{sx:{fontSize:17,color:"#d9730d"}}):xe(_f,{sx:{fontSize:17}}),label:"\uACF5\uAC1C",onClick:K=>ne(K),sx:G?void 0:Tt(1),children:me==="all"?"\uC804\uCCB4\uACF5\uAC1C":me==="group"?`\uBD80\uC11C\uACF5\uAC1C \xB7 ${m.find(K=>K.seq===Te)?.name??"\uBD80\uC11C"}`:"\uBE44\uACF5\uAC1C"}),Z&&!G&&!i?Er(Na,{children:[xe(_e,{icon:xe(U_,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:K=>b(K),sx:Tt(1),children:E>0?C.find(K=>K.seq===E)?.name??"\uC0AD\uC81C\uB41C \uBAA9\uD45C":xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uBBF8\uBC30\uC815"})}),xe(_e,{icon:xe(X_,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",sx:Tt(1),children:xe(Jn,{value:ae>0?String(ae):"",placeholder:"\uBBF8\uCD94\uC815",onCommit:K=>e.setFormValue("story_points",Number(K.replace(/[^0-9.]/g,""))||0)})})]}):null,I?xe(ps,{values:{repro:k,device:w,where:S,version:h},onChangeRepro:K=>e.setFormValue("bug_repro",K),onChangeDevice:K=>e.setFormValue("bug_device",K),onChangeWhere:K=>e.setFormValue("bug_where",K),onChangeVersion:K=>e.setFormValue("bug_version",K)}):null]}),leading:G||u?null:xe(Dr,{sx:{gridColumn:"1 / -1"},children:xe(_e,{icon:xe(G_,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:K=>J(K),children:(N??[]).length>0?xe(gr,{labelKeys:N??[],labelOptions:t}):xe(Dr,{component:"span",sx:{color:"#9a9a97"},children:"\uBE44\uC5B4 \uC788\uC74C"})})})}),xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(Go,{icon:xe(V_,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",titleExtra:$?xe(gs,{content:ee,templates:$,onApply:K=>e.setFormValue("content",K),onSave:y,onRemove:L}):void 0,children:xe(bs,{syncKey:T,value:ee,onChange:K=>e.setFormValue("content",K)})}),I?null:Er(Na,{children:[xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(Go,{icon:xe(K_,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:xe(Q_,{form:e,name:"note",placeholder:"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",sx:{mt:1}})})]}),G?null:xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),G?null:xe(ys,{taskSeq:0,checklist:oe,onAdd:(K,De)=>e.setFormValue("checklist",[...oe,{label:De,checked:!1}]),onToggle:(K,De,qe)=>e.setFormValue("checklist",oe.map((Ve,At)=>At===De?{...Ve,checked:qe}:Ve)),onRemove:(K,De)=>e.setFormValue("checklist",oe.filter((qe,Ve)=>Ve!==De)),onUpdate:(K,De,qe)=>e.setFormValue("checklist",oe.map((Ve,At)=>At===De?{...Ve,label:qe}:Ve))}),xe(Aa,{sx:{my:1.5,borderColor:"#e6e6e3"}}),xe(vs,{taskSeq:0,attachments:le.map(K=>({name:K.name,size:K.size})),onAdd:(K,De)=>{let qe=vf(De,_);qe.message&&Df(qe.message),qe.accepted.length!==0&&D.setValue("createAttachmentFiles",[...D.getValue("createAttachmentFiles")??[],...qe.accepted])},onRemove:(K,De)=>D.setValue("createAttachmentFiles",le.filter((qe,Ve)=>Ve!==De))})]}),xe(Lm,{transitionDuration:0,anchorEl:R,open:!!R,onClose:()=>b(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...C.map(K=>({seq:K.seq,label:Vo(K)}))].map(K=>xe(Am,{onClick:()=>{e.setFormValue("sprint_seq",K.seq),b(null)},sx:{fontSize:14,minWidth:170},children:K.label},K.seq))}),xe(Lm,{transitionDuration:0,anchorEl:Re,open:!!Re,onClose:()=>Je(null),children:[{value:"",label:"\uC5C6\uC74C"},...Ea].map(K=>xe(Am,{selected:Ie===K.value,onClick:()=>{if(Je(null),K.value===""){e.setFormValue("repeat_rule",""),e.setFormValue("repeat_until","");return}let De;if(G){if(De=String(e.getFormValue("due_date")??"").slice(0,10),!De){Df("\uBC18\uBCF5\uD558\uB824\uBA74 \uC77C\uC815 \uB0A0\uC9DC\uB97C \uBA3C\uC800 \uC120\uD0DD\uD558\uC138\uC694.");return}}else{if(De=String(e.getFormValue("start_date")??"").slice(0,10),!De){let qe=new Date,Ve=At=>String(At).padStart(2,"0");De=`${qe.getFullYear()}-${Ve(qe.getMonth()+1)}-${Ve(qe.getDate())}`}e.setFormValue("due_date","")}e.setFormValue("repeat_rule",K.value),e.setFormValue("repeat_until",ss(De,K.value))},sx:{fontSize:14,minWidth:140},children:K.label},K.value||"none"))}),xe(Z_,{anchorEl:Qe,open:!!Qe,onClose:()=>ye(null),selectedDate:Ee?new Date(`${Ee}T00:00:00`):new Date,onDateChange:K=>{let De=qe=>String(qe).padStart(2,"0");e.setFormValue("repeat_until",`${K.getFullYear()}-${De(K.getMonth()+1)}-${De(K.getDate())}`),ye(null)}}),xe(Lm,{transitionDuration:0,anchorEl:Ae,open:!!Ae,onClose:()=>ne(null),children:[{key:"involved",label:"\uBE44\uACF5\uAC1C",tip:"\uC791\uC131\uC790\xB7\uCC45\uC784\uC790\xB7\uCC38\uC870\uC790\uB9CC \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4",icon:xe(_f,{sx:{fontSize:17,color:"#57564f"}}),selected:me==="involved",onPick:()=>{e.setFormValue("visibility","involved"),e.setFormValue("visibility_group_seq",0)}},{key:"all",label:"\uC804\uCCB4\uACF5\uAC1C",tip:"\uBAA8\uB4E0 \uC9C1\uC6D0\uC774 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4",icon:xe(If,{sx:{fontSize:17,color:"#2f80ed"}}),selected:me==="all",onPick:()=>{e.setFormValue("visibility","all"),e.setFormValue("visibility_group_seq",0)}},...[...m].sort((K,De)=>K.seq===f?-1:De.seq===f?1:0).map(K=>({key:`group-${K.seq}`,label:`\uBD80\uC11C\uACF5\uAC1C \xB7 ${K.name}`,tip:`${K.name} \uC18C\uC18D \uC9C1\uC6D0\uC774 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4`,icon:xe(wf,{sx:{fontSize:17,color:"#d9730d"}}),selected:me==="group"&&Te===K.seq,onPick:()=>{e.setFormValue("visibility","group"),e.setFormValue("visibility_group_seq",K.seq)}}))].map(K=>xe(F_,{title:K.tip,arrow:!0,disableInteractive:!0,placement:"right",children:Er(Am,{selected:K.selected,onClick:()=>{K.onPick(),ne(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[K.icon,K.label]})},K.key))}),xe(Is,{anchorEl:q,selectedKeys:N??[],labelOptions:t,onToggle:K=>e.setFormValue("label_keys",_l(N??[],K)),onAddLabel:(K,De)=>x?.(K,De),onClose:()=>J(null)})]})}import{Fragment as Pf,jsx as dt,jsxs as $a}from"react/jsx-runtime";function gW({open:e,onClose:t,desktopPresentation:o="drawer",...n}){let{form:r,presetTitle:i="",presetContent:a="",presetVisibility:l,presetVisibilityGroupSeq:s=0,presetDueDate:u="",presetTabKey:c="",presetManager:d=null,isNotice:p=!1,defaultBug:m=!1}=n,f=Hn(),g=e1(!1),[B,x]=Rf(0),T=r.useFormValue("title"),$=r.useFormValue("icon"),y=r.useFormValue("icon_color"),L=!!r.useFormValue("is_event"),D=!!r.useFormValue("is_bug"),_=Fe(),M=f.useValue("createSubmitting")??!1,Q=p||L?ze($||(p?_t:Pt)):null,G=p?"\uACF5\uC9C0 \uB4F1\uB85D":L?"\uC77C\uC815 \uB4F1\uB85D":D?"\uC624\uB958 \uB4F1\uB85D":"\uC5C5\uBB34 \uB4F1\uB85D",I=p?"\uACF5\uC9C0 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694":L?"\uC77C\uC815 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694":D?"\uC5B4\uB5A4 \uC624\uB958\uC778\uC9C0 \uD55C \uC904\uB85C \uC801\uC5B4\uC8FC\uC138\uC694":"\uC5C5\uBB34 \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694";J_(()=>{let O=g.current;g.current=e,!(!e||O)&&(r.setFormValues({...r.getFormValues(),title:i,icon:p?_t:m?ca:$n,icon_color:p?"#e5484d":m?ma:"",manager_name:d?.name??"",manager_account_seq:d?.accountSeq??0,receiver_names:[],receiver_account_seqs:[],is_notice:p,is_event:!1,is_bug:m,visibility:l??(m?"all":"involved"),visibility_group_seq:l==="group"?s:0,bug_repro:"",bug_device:"",bug_where:"",bug_version:"",event_time:"",event_place:"",event_address:"",target_names:[],target_account_seqs:[],start_date:"",due_date:u,reminders:[],priority:"medium",note:"",content:a,checklist:[],tab_key:c}),f.setValue("createAttachmentFiles",[]),x(v=>v+1))},[e]);let[k,w]=Rf(null),S=O=>Q?L?dt(r1,{title:"\uC544\uC774\uCF58 \uBCC0\uACBD",arrow:!0,enterDelay:400,disableInteractive:!0,children:dt(t1,{onClick:v=>w(v.currentTarget),sx:{display:"flex",p:.5,borderRadius:1,color:y||"#1e3a8a","&:hover":{bgcolor:"#f2f2f0"}},children:dt(Q,{sx:{fontSize:20}})})}):dt(er,{sx:[{display:"flex",color:y||"#1e3a8a"},O],children:dt(Q,{sx:{fontSize:20}})}):null,h=$a(er,{sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:2,pb:1},children:[S({p:0}),dt(er,{component:"input",autoFocus:!0,spellCheck:!1,value:T,placeholder:I,onChange:O=>r.setFormValue("title",O.target.value),sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:19,fontWeight:600,color:"#37352f",p:0,m:0,"&::placeholder":{color:"#c9c8c5",fontWeight:400}}})]});return _||o==="dialog"?dt(Pf,{children:dt(l1,{open:e,onClose:t,locale:"ko",fontScale:_?{enabled:!0,default:1.1,min:.6}:{enabled:!0},title:G,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fullScreen:_,mobilePresentation:_?"slide":"dialog",maxWidth:"md",actions:{showCancelButton:!0,right:dt($m,{variant:"contained",disableElevation:!0,disabled:M,onClick:M?void 0:r.submit,children:M?"\uC800\uC7A5 \uC911\u2026":"\uC800\uC7A5\uD558\uAE30"})},tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},sections:[{id:"task-create",title:"",showTitle:!1,children:dt(er,{sx:{width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:dt(Nm,{...n,contentSyncKey:`create-${B}`,leadingRow:h})})}]})}):$a(Pf,{children:[dt(o1,{anchor:"right",open:e,onClose:t,"aria-label":"\uC0C8 \uC5C5\uBB34 \uB4F1\uB85D",sx:{zIndex:O=>O.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:$a(er,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[$a(er,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1.5,flexShrink:0},children:[S({px:.5}),dt(er,{component:"input",autoFocus:!0,spellCheck:!1,value:T,placeholder:I,onChange:O=>r.setFormValue("title",O.target.value),sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:18,fontWeight:500,color:"#37352f",p:0,m:0,"&::placeholder":{color:"#c9c8c5",fontWeight:400}}}),dt(n1,{"aria-label":"\uB2EB\uAE30",onClick:t,sx:{color:"#6b7280"},children:dt(i1,{})})]}),dt(Mf,{sx:{borderColor:"#e6e6e3"}}),dt(er,{sx:{flex:1,minHeight:0},children:dt(a1,{style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:dt(Nm,{...n,contentSyncKey:`create-${B}`})})}),dt(Mf,{sx:{borderColor:"#e6e6e3"}}),$a(er,{sx:{display:"flex",justifyContent:"flex-end",gap:.5,px:2,py:1.5,flexShrink:0},children:[dt($m,{onClick:t,color:"inherit",disabled:M,children:"\uCDE8\uC18C"}),dt($m,{onClick:r.submit,variant:"contained",disabled:M,children:M?"\uB4F1\uB85D \uC911\u2026":"\uB4F1\uB85D"})]})]})}),dt(Tr,{anchorEl:k,value:$,color:y,onSelect:O=>{r.setFormValue("icon",O),w(null)},onSelectColor:O=>r.setFormValue("icon_color",O),onClose:()=>w(null)})]})}import{useCallback as _I,useEffect as zs,useRef as qs,useState as Ls}from"react";import{Box as As,Button as II,Divider as fg,Drawer as wI,IconButton as DI,ListItemIcon as eu,ListItemText as tu,Menu as EI,MenuItem as ou}from"@mui/material";import RI from"@mui/icons-material/MoreVert";import MI from"@mui/icons-material/DeleteOutline";import PI from"@mui/icons-material/ShareOutlined";import OI from"@mui/icons-material/HistoryOutlined";import zI from"@ehfuse/overlay-scrollbar";import{FormDialog as qI}from"@ehfuse/mui-form-dialog";import{SuccessAlert as gg}from"@ehfuse/alerts";import{useRef as Wm,useState as ni}from"react";import{Box as ve,Button as qf,Chip as Ds,IconButton as Po,Tooltip as Wf}from"@mui/material";import Lf from"@mui/icons-material/Send";import{TextField as d1}from"@ehfuse/mui-form-controls";import Es from"@mui/icons-material/Close";import p1 from"@mui/icons-material/EditOutlined";import Af from"@mui/icons-material/ContentCopyOutlined";import Nf from"@mui/icons-material/Check";import f1 from"@mui/icons-material/Favorite";import g1 from"@mui/icons-material/FavoriteBorderOutlined";import x1 from"@mui/icons-material/CheckCircle";import h1 from"@mui/icons-material/CheckCircleOutlineOutlined";import qi from"@mui/icons-material/AttachFileOutlined";import b1 from"@mui/icons-material/AddCircleOutline";import k1 from"@mui/icons-material/ImageOutlined";var Hm=e=>{if(e===0)return"0 Bytes";let t=1024,o=["Bytes","KB","MB","GB","TB"],n=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,n)).toFixed(2))+" "+o[n]};import{ConfirmActionPopper as T1}from"@ehfuse/mui-confirm-action";import{Box as s1}from"@mui/material";import{Fragment as u1,jsx as Of}from"react/jsx-runtime";var c1=/https?:\/\/[^\s<>"']+/g;function m1(e){let t=e,o="";for(;;){let n=t.slice(-1);if(n===")"&&(t.match(/\(/g)??[]).length<(t.match(/\)/g)??[]).length){t=t.slice(0,-1),o=n+o;continue}if(".,;:!?]}".includes(n)&&n!==""){t=t.slice(0,-1),o=n+o;continue}break}return[t,o]}function zf({text:e}){let{openExternalUrl:t}=fe(),o=i=>{t?t(i):window.open(i,"_blank","noopener,noreferrer")},n=[],r=0;for(let i of e.matchAll(c1)){let a=i.index??0,[l,s]=m1(i[0]);a>r&&n.push(e.slice(r,a)),n.push(Of(s1,{component:"a",href:l,onClick:u=>{u.preventDefault(),u.stopPropagation(),o(l)},sx:{color:"#2563eb",textDecoration:"underline",wordBreak:"break-all",cursor:"pointer"},children:l},`${a}-${l}`)),s&&n.push(s),r=a+i[0].length}return r<e.length&&n.push(e.slice(r)),Of(u1,{children:n})}import{Fragment as Hf,jsx as ie,jsxs as yt}from"react/jsx-runtime";var y1=5;function $f({kind:e,reactions:t,myAccountSeq:o,onToggle:n}){let r=t??[],i=o>0&&r.some(u=>u.account_seq===o),a=e==="like"?"\uC88B\uC544\uC694":"\uD655\uC778",l=r.length===0?a:ie(ve,{sx:{whiteSpace:"pre-line",fontSize:12},children:r.map(u=>`${u.name} \xB7 ${u.time}`).join(`
|
|
11
11
|
`)}),s=e==="like"?"#e5484d":"#2f80ed";return ie(Wf,{title:l,arrow:!0,enterDelay:300,disableInteractive:!0,slotProps:{transition:{timeout:0}},children:yt(ve,{sx:{display:"inline-flex",alignItems:"center"},children:[ie(Po,{size:"small","aria-label":`\uB313\uAE00 ${a}`,onClick:n,sx:{color:i?s:"#c9c8c5",p:.5},children:e==="like"?i?ie(f1,{sx:{fontSize:16}}):ie(g1,{sx:{fontSize:16}}):i?ie(x1,{sx:{fontSize:16}}):ie(h1,{sx:{fontSize:16}})}),r.length>0?ie(ve,{component:"span",sx:{fontSize:12,color:i?s:"#9a9a97",ml:-.25},children:r.length}):null]})})}function Ff({taskSeq:e,comments:t,currentUserName:o="",myAccountSeq:n=0,avatarSrcByName:r,onUpdate:i,onRemove:a,onToggleReaction:l,onPreview:s,onDownload:u}){let[c,d]=ni(null),p=Wm(null),[m,f]=ni(null),g=Fe(),[B,x]=ni(null),T=(k,w)=>{navigator.clipboard.writeText(w).then(()=>{x(k),setTimeout(()=>x(S=>S===k?null:S),1500)})},[$,y]=ni(!1),L=Math.max(0,t.length-y1),D=L>0&&!$,_=c?Math.min(c.index,L):L,F=t.map((k,w)=>({comment:k,index:w})).slice(D?_:0),M=aa(),Q=(k,w)=>{if(s){s(k,w&&w.length>1?w:void 0);return}window.open(M(k.uuid??""),"_blank","noopener,noreferrer")},G=k=>{if(u){u(k);return}window.open(M(k.uuid??"",{download:!0}),"_blank","noopener,noreferrer")},I=fe().slots?.avatar;return yt(ve,{sx:{px:2,pb:2,display:"flex",flexDirection:"column",gap:.25},children:[yt(ve,{sx:{display:"flex",alignItems:"center",gap:1},children:[ie(kr,{sx:{fontSize:18,display:"block",color:"#37352f"}}),yt(ve,{sx:{fontSize:Bm,fontWeight:500,color:"#37352f"},children:["\uB313\uAE00",t.length>0?` (${t.length})`:""]}),L>0&&(!D||_>0)?ie(ve,{role:"button",tabIndex:0,onClick:()=>y(k=>!k),onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),y(w=>!w))},sx:{ml:"auto",flexShrink:0,cursor:"pointer",fontSize:14.5,color:"#5b87d6","&:hover":{textDecoration:"underline"}},children:D?`\uC774\uC804 \uB313\uAE00 ${_}\uAC1C \uB354 \uBCF4\uAE30`:"\uC774\uC804 \uB313\uAE00 \uC811\uAE30"}):null]}),t.length===0?ie(ve,{sx:{mt:1,fontSize:14.5,color:"#9a9a97"},children:"\uB4F1\uB85D\uB41C \uB313\uAE00\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):null,ie(ve,{sx:{display:"flex",flexDirection:"column",gap:1,mt:1},children:F.map(({comment:k,index:w})=>{let S=!!o&&k.author===o;return yt(ve,{sx:{display:"flex",gap:1.5,alignItems:"flex-start","&:hover .taskbox-comment-actions":{opacity:1,pointerEvents:"auto"},"&:not(:last-child)":{borderBottom:"1px dashed #e0dfdc",pb:1}},children:[(()=>{let h=r?.get(k.author)??"";return I?ie(ve,{sx:{display:"inline-flex",flexShrink:0},children:ie(I,{name:k.author,src:h||void 0,size:44})}):ie(ve,{sx:{display:"inline-flex",flexShrink:0},children:ie(Ho,{src:h,name:k.author,avatarSx:{width:44,height:44,fontSize:20,borderRadius:"50%",...Ti[0]},iconFontSize:24})})})(),yt(ve,{sx:{flex:1,minWidth:0},children:[yt(ve,{sx:{display:"flex",alignItems:"center",gap:.75,minWidth:0,position:"relative"},children:[ie(ve,{component:"span",sx:{fontSize:14.5,fontWeight:700,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.author}),k.external?ie(ve,{component:"span",sx:{flexShrink:0,px:.6,fontSize:11.5,fontWeight:500,lineHeight:"18px",color:"#d9730d",bgcolor:"#fdf0e6",borderRadius:"4px",whiteSpace:"nowrap"},children:"\uAC00\uB9F9\uC810"}):null,ie(ve,{component:"span",sx:{fontSize:12.5,color:"#9a9a97",flexShrink:0,whiteSpace:"nowrap"},children:k.time}),S?ie(ve,{sx:{ml:"auto"}}):yt(ve,{sx:{display:"flex",alignItems:"center",gap:.25,ml:"auto",flexShrink:0},children:[ie(Po,{size:"small","aria-label":"\uB313\uAE00 \uBCF5\uC0AC",onClick:()=>T(w,k.text),sx:{color:B===w?"#2f9e5b":"#9a9a97",p:.5},children:B===w?ie(Nf,{sx:{fontSize:15}}):ie(Af,{sx:{fontSize:15}})}),ie($f,{kind:"like",reactions:k.likes,myAccountSeq:n,onToggle:()=>l?.(e,w,"like")}),ie($f,{kind:"ack",reactions:k.acks,myAccountSeq:n,onToggle:()=>l?.(e,w,"ack")})]}),S?yt(ve,{className:"taskbox-comment-actions",sx:{display:"flex",alignItems:"center",gap:.25,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",pointerEvents:g?"auto":"none",backgroundColor:"#fff",opacity:g?1:0,transition:"opacity 0.15s"},children:[ie(Po,{size:"small","aria-label":"\uB313\uAE00 \uBCF5\uC0AC",onClick:()=>T(w,k.text),sx:{color:B===w?"#2f9e5b":"#9a9a97"},children:B===w?ie(Nf,{sx:{fontSize:15}}):ie(Af,{sx:{fontSize:15}})}),ie(Po,{size:"small","aria-label":"\uB313\uAE00 \uC218\uC815",onClick:()=>d({index:w,text:k.text,attachments:[...k.attachments??[]],files:[]}),sx:{color:"#9a9a97"},children:ie(p1,{sx:{fontSize:15}})}),ie(Po,{size:"small","aria-label":"\uB313\uAE00 \uC0AD\uC81C",onClick:h=>f({anchorEl:h.currentTarget,index:w}),sx:{color:"#9a9a97"},children:ie(Es,{sx:{fontSize:15}})})]}):null]}),c?.index===w?yt(ve,{sx:{mt:.5},children:[ie(ve,{component:"textarea",autoFocus:!0,spellCheck:!1,value:c.text,onChange:h=>d({...c,text:h.target.value}),sx:{width:"100%",minHeight:56,border:"1px solid #dedddb",borderRadius:1,outline:"none",font:"inherit",fontSize:14,p:1,resize:"vertical"}}),yt(ve,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:.75,mt:.75},children:[c.attachments.map((h,O)=>{let v=()=>d({...c,attachments:c.attachments.filter((V,H)=>H!==O)});return Ha(h.name)&&h.uuid?yt(ve,{sx:{position:"relative"},children:[ie(ve,{component:"img",src:M(h.uuid,{thumb:"md"}),alt:h.name,title:h.name,loading:"lazy",sx:{width:72,height:72,objectFit:"cover",borderRadius:1,border:"1px solid #e6e6e3",display:"block"}}),ie(Po,{size:"small","aria-label":"\uCCA8\uBD80 \uC81C\uAC70",onClick:v,sx:{position:"absolute",top:-6,right:-6,p:.25,bgcolor:"#ffffff",border:"1px solid #e6e6e3","&:hover":{bgcolor:"#f1f5f9"}},children:ie(Es,{sx:{fontSize:14}})})]},`kept-${h.uuid}-${O}`):ie(Ds,{size:"small",icon:ie(qi,{sx:{fontSize:14}}),label:h.name,onDelete:v,sx:{fontSize:14,height:26,bgcolor:"#f1f5f9"}},`kept-${h.uuid??h.name}-${O}`)}),c.files.map((h,O)=>{let v=()=>d({...c,files:c.files.filter((V,H)=>H!==O)});return Ha(h.name)?yt(ve,{sx:{position:"relative"},children:[ie(ve,{component:"img",src:URL.createObjectURL(h),alt:h.name,title:`${h.name} (\uC0C8 \uD30C\uC77C)`,onLoad:V=>URL.revokeObjectURL(V.target.src),sx:{width:72,height:72,objectFit:"cover",borderRadius:1,border:"2px solid #2f80ed",display:"block"}}),ie(Po,{size:"small","aria-label":"\uCCA8\uBD80 \uC81C\uAC70",onClick:v,sx:{position:"absolute",top:-6,right:-6,p:.25,bgcolor:"#ffffff",border:"1px solid #e6e6e3","&:hover":{bgcolor:"#f1f5f9"}},children:ie(Es,{sx:{fontSize:14}})})]},`new-${h.name}-${O}`):ie(Ds,{size:"small",icon:ie(qi,{sx:{fontSize:14}}),label:`${h.name} (\uC0C8 \uD30C\uC77C)`,onDelete:v,sx:{fontSize:14,height:26,bgcolor:"#eef4ff"}},`new-${h.name}-${O}`)}),ie(Wf,{title:"\uCCA8\uBD80 \uCD94\uAC00",arrow:!0,children:ie(Po,{size:"small","aria-label":"\uCCA8\uBD80 \uCD94\uAC00",onClick:()=>p.current?.click(),sx:{ml:"auto",color:"#2f80ed"},children:ie(b1,{sx:{fontSize:20}})})})]}),yt(ve,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:.75,mt:.5},children:[ie(qf,{size:"small",color:"inherit",onClick:()=>d(null),children:"\uCDE8\uC18C"}),ie(qf,{size:"small",variant:"contained",disabled:!c.text.trim()&&c.attachments.length===0&&c.files.length===0,onClick:()=>{i(e,w,c.text,{attachments:c.attachments,files:c.files}),d(null)},children:"\uC800\uC7A5"})]}),ie(ve,{component:"input",type:"file",multiple:!0,ref:p,sx:{display:"none"},onChange:h=>{let O=Array.from(h.target.files??[]);O.length>0&&d({...c,files:[...c.files,...O].slice(0,10)}),h.target.value=""}})]}):yt(ve,{children:[k.text?ie(ve,{sx:{fontSize:15,whiteSpace:"pre-wrap"},children:ie(zf,{text:k.text})}):null,(k.attachments??[]).length>0?ie(ve,{sx:{display:"flex",flexWrap:"wrap",gap:.75,mt:.75},children:(k.attachments??[]).map((h,O)=>{let v=!!h.uuid,V=Ha(h.name),H=(k.attachments??[]).filter(W=>!!W.uuid&&Ha(W.name));if(V&&v)return ie(ve,{component:"img",src:M(h.uuid??"",{thumb:"md"}),alt:h.name,title:`${h.name} \uD06C\uAC8C \uBCF4\uAE30`,loading:"lazy",onClick:()=>Q(h,H),sx:{width:96,height:96,objectFit:"cover",borderRadius:1,border:"1px solid #e6e6e3",cursor:"pointer",bgcolor:"#f8fafc"}},`${h.name}-${O}`);let A=Ss(h.name);return ie(Ds,{size:"small",icon:ie(qi,{sx:{fontSize:14}}),label:`${h.name} (${Hm(h.size)})`,clickable:v,onClick:v?()=>A?Q(h):G(h):void 0,title:v?`${h.name} ${A?"\uBBF8\uB9AC\uBCF4\uAE30":"\uB2E4\uC6B4\uB85C\uB4DC"}`:h.name,sx:{fontSize:14,height:26,bgcolor:"#f1f5f9"}},`${h.name}-${O}`)})}):null]})]})]},`${k.time}-${w}`)})}),ie(T1,{open:!!m,anchorEl:m?.anchorEl??null,title:"\uC774 \uB313\uAE00\uC744 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C",onCancel:()=>f(null),onConfirm:()=>{m&&(a(e,m.index),d(null)),f(null)}})]})}function Ha(e){return/\.(png|jpe?g|gif|webp|bmp|svg|heic|heif)$/i.test(String(e??"").trim())}function Vf({onSubmit:e}){let[t,o]=ni(""),[n,r]=ni([]),[i,a]=ni(!1),l=Wm(null),s=Wm(null),u=Fe(),c=m=>{let f=Array.from(m??[]);f.length!==0&&r(g=>[...g,...f].slice(0,10))},d=()=>{let m=t.trim();!m&&n.length===0||(e(m,n.length>0?n:void 0),o(""),r([]))},p=yt(Hf,{children:[ie(Po,{size:"small","aria-label":"\uD30C\uC77C \uCCA8\uBD80",onClick:()=>l.current?.click(),sx:{color:"#9a9a97"},children:ie(qi,{sx:{fontSize:20}})}),ie(Po,{size:"small","aria-label":"\uC774\uBBF8\uC9C0 \uCCA8\uBD80",onClick:()=>s.current?.click(),sx:{color:"#9a9a97"},children:ie(k1,{sx:{fontSize:20}})})]});return yt(ve,{children:[n.length>0?ie(ve,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:1.5,px:2,pt:2},children:n.map((m,f)=>Ha(m.name)?yt(ve,{sx:{position:"relative"},children:[ie(ve,{component:"img",src:URL.createObjectURL(m),alt:m.name,title:m.name,onLoad:g=>URL.revokeObjectURL(g.target.src),sx:{width:72,height:72,objectFit:"cover",borderRadius:1,border:"1px solid #e6e6e3",display:"block"}}),ie(Po,{size:"small","aria-label":"\uCCA8\uBD80 \uC81C\uAC70",onClick:()=>r(g=>g.filter((B,x)=>x!==f)),sx:{position:"absolute",top:-6,right:-6,p:.25,bgcolor:"#ffffff",border:"1px solid #e6e6e3","&:hover":{bgcolor:"#f1f5f9"}},children:ie(Es,{sx:{fontSize:14}})})]},`${m.name}-${f}`):ie(Ds,{size:"small",icon:ie(qi,{sx:{fontSize:14}}),label:`${m.name} (${Hm(m.size)})`,onDelete:()=>r(g=>g.filter((B,x)=>x!==f)),sx:{fontSize:14,height:26,bgcolor:"#f1f5f9"}},`${m.name}-${f}`))}):null,yt(ve,{sx:{position:"relative",display:"flex"},onDragOver:m=>{Array.from(m.dataTransfer?.types??[]).includes("Files")&&(m.preventDefault(),a(!0))},onDragLeave:m=>{m.currentTarget.contains(m.relatedTarget)||a(!1)},onDrop:m=>{Array.from(m.dataTransfer?.types??[]).includes("Files")&&(m.preventDefault(),a(!1),c(m.dataTransfer?.files??null))},children:[i?yt(ve,{sx:{position:"absolute",inset:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",gap:.75,borderRadius:1,border:"2px dashed #2f80ed",bgcolor:"rgba(47,128,237,0.08)",color:"#2f80ed",fontSize:14,fontWeight:600,pointerEvents:"none"},children:[ie(qi,{sx:{fontSize:18}}),"\uC5EC\uAE30\uC5D0 \uB193\uC73C\uBA74 \uCCA8\uBD80\uB429\uB2C8\uB2E4"]}):null,ie(d1,{value:t,placeholder:"\uB313\uAE00\uC744 \uC785\uB825\uD558\uC138\uC694",onChange:m=>o(m.target.value),onPaste:m=>{Array.from(m.clipboardData?.files??[]).length!==0&&(m.preventDefault(),c(m.clipboardData.files))},fullWidth:!0,multiline:!0,minRows:u?1:3,maxRows:3,sx:{"& .MuiInputBase-root":{pl:2,pr:u?15:6.5,pb:u?void 0:5,borderRadius:0},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}}),u?yt(ve,{sx:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:.25},children:[p,ie(Po,{"aria-label":"\uB313\uAE00 \uB4F1\uB85D",disabled:!t.trim()&&n.length===0,onClick:d,sx:{color:"#2563eb","&.Mui-disabled":{color:"#c9c8c5"}},children:ie(Lf,{sx:{fontSize:22}})})]}):yt(Hf,{children:[ie(ve,{sx:{position:"absolute",left:8,bottom:6,display:"flex",alignItems:"center",gap:.25},children:p}),ie(Po,{"aria-label":"\uB313\uAE00 \uB4F1\uB85D",disabled:!t.trim()&&n.length===0,onClick:d,sx:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",color:"#2563eb","&.Mui-disabled":{color:"#c9c8c5"}},children:ie(Lf,{sx:{fontSize:22}})})]})]}),ie(ve,{component:"input",ref:l,type:"file",multiple:!0,onChange:m=>{c(m.target.files),m.target.value=""},sx:{display:"none"}}),ie(ve,{component:"input",ref:s,type:"file",accept:"image/*",multiple:!0,onChange:m=>{c(m.target.files),m.target.value=""},sx:{display:"none"}})]})}import{useState as Ai}from"react";import{Box as Ni,Button as z1,ButtonBase as q1,IconButton as $i,Tooltip as Hi}from"@mui/material";import L1 from"@mui/icons-material/Close";import A1 from"@mui/icons-material/ArrowBack";import N1 from"@mui/icons-material/ContentCopyOutlined";import $1 from"@mui/icons-material/ShareOutlined";import H1 from"@mui/icons-material/HistoryOutlined";import W1 from"@mui/icons-material/Print";import{ConfirmActionPopper as F1}from"@ehfuse/mui-confirm-action";import{useEffect as v1}from"react";import{Box as tr,Button as _1,CircularProgress as I1}from"@mui/material";import{FormDialog as w1}from"@ehfuse/mui-form-dialog";import{OverlayScrollbar as D1}from"@ehfuse/overlay-scrollbar";import{useCallback as S1,useEffect as C1,useRef as Fm}from"react";import{useModal as B1}from"@ehfuse/forma";function Rs({open:e,onClose:t,modalId:o}){let n=Fm(t);n.current=t;let r=B1({modalId:o,onClose:()=>n.current()}),i=Fm(r);i.current=r;let a=Fm(!1);return C1(()=>{e&&!a.current?i.current.open():!e&&a.current&&i.current.isOpen&&i.current.close(),a.current=e},[e]),{requestClose:S1(()=>{if(i.current.isOpen){i.current.close();return}n.current()},[])}}import{jsx as or,jsxs as Ms}from"react/jsx-runtime";var E1={created:"\uC5C5\uBB34\uB97C \uB4F1\uB85D\uD588\uC2B5\uB2C8\uB2E4",completed:"\uC644\uB8CC \uCC98\uB9AC\uD588\uC2B5\uB2C8\uB2E4",uncompleted:"\uC644\uB8CC\uB97C \uD574\uC81C\uD588\uC2B5\uB2C8\uB2E4",returned:"\uC644\uB8CC\uB97C \uB418\uB3CC\uB838\uC2B5\uB2C8\uB2E4",confirm_requested:"\uD655\uC778\uC744 \uC694\uCCAD\uD588\uC2B5\uB2C8\uB2E4",acked:"\uD655\uC778\uD588\uC2B5\uB2C8\uB2E4",claimed:"\uC5C5\uBB34\uB97C \uAC00\uC838\uAC14\uC2B5\uB2C8\uB2E4",bug_verified:"\uC218\uC815\uC744 \uD655\uC778\uD588\uC2B5\uB2C8\uB2E4(\uC885\uB8CC)",bug_reopened:"\uC7AC\uC624\uD508\uD588\uC2B5\uB2C8\uB2E4"};function Kf(e){return String(e??"").trim()||"\uC5C6\uC74C"}function R1(e){if(e.kind!=="field")return E1[String(e.kind)]??"\uBCC0\uACBD\uD588\uC2B5\uB2C8\uB2E4";let t=String(e.field_label??e.field??"").trim()||"\uD56D\uBAA9",o=String(e.old_value??"").trim(),n=String(e.new_value??"").trim();return!o&&n?`${t}\uC744(\uB97C) "${n}"(\uC73C)\uB85C \uC785\uB825\uD588\uC2B5\uB2C8\uB2E4`:o&&!n?`${t}\uC744(\uB97C) \uBE44\uC6E0\uC2B5\uB2C8\uB2E4`:`${t}\uC744(\uB97C) "${Kf(o)}" \u2192 "${Kf(n)}" \uB85C \uBC14\uAFE8\uC2B5\uB2C8\uB2E4`}function Ps({open:e,taskSeq:t,items:o,loading:n,onLoad:r,onClose:i}){let a=Fe(),{requestClose:l}=Rs({open:e,onClose:i});v1(()=>{e&&t>0&&!o&&r?.(t)},[e,t,o,r]);let s=or(tr,{sx:{height:a?"100%":420,minHeight:0},children:or(D1,{style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:Ms(tr,{sx:{px:2,pt:2,display:"flex",flexDirection:"column",gap:1,"&::after":{content:'""',flexShrink:0,height:16}},children:[n&&!o?Ms(tr,{sx:{display:"flex",alignItems:"center",gap:1,color:"#9a9a97",fontSize:14.5},children:[or(I1,{size:14,thickness:5,sx:{color:"#9a9a97"}}),"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"]}):null,o&&o.length===0?or(tr,{sx:{fontSize:14.5,color:"#9a9a97"},children:"\uAE30\uB85D\uB41C \uD65C\uB3D9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):null,(o??[]).map(u=>Ms(tr,{sx:{display:"flex",flexDirection:a?"column":"row",gap:a?.25:1,alignItems:a?"stretch":"baseline",minWidth:0,flexShrink:0,...a?{pb:1,borderBottom:"1px solid #ededeb","&:last-of-type":{borderBottom:"none",pb:0}}:{}},children:[or(tr,{sx:{flexShrink:0,...a?{}:{width:"10.5em"},whiteSpace:"nowrap",fontSize:13.5,color:"#9a9a97",lineHeight:1.5},children:Do(u.acted_time)}),Ms(tr,{sx:{minWidth:0,fontSize:14.5,color:"#37352f",lineHeight:1.5},children:[or(tr,{component:"span",sx:{fontWeight:500},children:String(u.actor_name??"").trim()||"\uC774\uB984\uC5C6\uC74C"}),or(tr,{component:"span",sx:{ml:.5},children:R1(u)})]})]},u.seq))]})})});return or(w1,{open:e,onClose:l,maxWidth:"sm",fullScreen:a,mobilePresentation:a?"slide":"dialog",contentPaddingX:0,contentTopPadding:0,contentBottomPadding:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,sx:a?{DialogContent:{pb:0,"& .os-content > div":{height:"100%",boxSizing:"border-box",paddingBottom:0,marginBottom:0},"& .FormSection-content, & .section-content":{height:"100%",paddingBottom:0,marginBottom:0}}}:void 0,title:`\uD65C\uB3D9${o&&o.length>0?` (${o.length})`:""}`,locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-activity",sections:[{id:"task-activity",showTitle:!1,children:s}],scrollPastLastSection:!1,actions:{showCancelButton:!1,right:or(_1,{variant:"contained",onClick:l,children:"\uB2EB\uAE30"})}})}import{InfoAlert as M1,SuccessAlert as P1}from"@ehfuse/alerts";var Gf=e=>e?e.replace(/<(script|style)[\s\S]*?<\/\1>/gi,"").replace(/<br\s*\/?>/gi,`
|
|
12
12
|
`).replace(/<\/(p|div|li|h[1-6]|tr)>/gi,`
|
|
13
13
|
`).replace(/<[^>]+>/g,"").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&/gi,"&").replace(/\n{3,}/g,`
|
|
@@ -21,5 +21,5 @@ ${I}`.trim()).then(()=>{D(!0),window.setTimeout(()=>D(!1),1500)})},G=Wa(ho,{sx:{
|
|
|
21
21
|
.ck.done{fill:#94a3b8;}`,".td.done { fill: #555555; }",".gt { font-size: 10px; font-weight: 700; fill: #000000; }",".label { font-size: 9px; fill: #333333; }",".value { font-size: 10px; }",".section { font-size: 11.5px; font-weight: 700; fill: #000000; }",".pageno { font-size: 9px; fill: #333333; }",`.head { fill: #eef2f7; stroke: ${nl}; stroke-width: 0.5; }`,`.group { fill: #f8fafc; stroke: ${nl}; stroke-width: 0.5; }`,`.frame { fill: none; stroke: ${nl}; stroke-width: 0.5; }`,`.hline { stroke: ${nl}; stroke-width: 0.5; }`,`.vline { stroke: ${nl}; stroke-width: 0.5; }`,".bar { fill: #bfdbfe; stroke: #60a5fa; stroke-width: 0.6; }",".bar.done { fill: #e5e7eb; stroke: #cbd5e1; }",".bar.overdue { fill: #fecaca; stroke: #f87171; }"].join("");function cr(e,t,o){let n=o-co;return[`<text x="${co}" y="46" class="doc-title">${$e(e.documentTitle)}</text>`,`<text x="${co}" y="66" class="doc-sub">${$e(e.subtitle)}</text>`,`<text x="${n}" y="42" class="doc-meta" text-anchor="end">${$e(e.facilityName)}</text>`,`<text x="${n}" y="58" class="doc-meta" text-anchor="end">\uCD9C\uB825 ${$e(Ui(e.printedAt))}${e.printedBy?` \xB7 ${$e(e.printedBy)}`:""}</text>`,t?`<text x="${n}" y="74" class="doc-meta" text-anchor="end">${$e(t)}</text>`:""].join("")}function mr(e){let{width:t,height:o,body:n,pageIndex:r,pageCount:i}=e;return[`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${o}" viewBox="0 0 ${t} ${o}">`,`<style>${hR}</style>`,`<rect x="0" y="0" width="${t}" height="${o}" fill="#ffffff" />`,n,`<text x="${t/2}" y="${o-22}" class="pageno" text-anchor="middle">${r+1} / ${i}</text>`,"</svg>"].join("")}var Ru=al,Zx=ll,On=co,sl=Ru-co,ji=22,Ar=20,Xi=22,ur=18,qr=5,Jx=Xo,eh=Lo,Eu=Zx-46,dr=[{key:"no",label:"\uBC88\uD638",width:30,align:"middle"},{key:"title",label:"\uC81C\uBAA9",width:300,align:"start"},{key:"status",label:"\uC0C1\uD0DC",width:60,align:"middle"},{key:"start",label:"\uC2DC\uC791",width:78,align:"middle"},{key:"due",label:"\uB9C8\uAC10",width:78,align:"middle"},{key:"manager",label:"\uCC45\uC784\uC790",width:80,align:"middle"},{key:"priority",label:"\uC911\uC694\uB3C4",width:60,align:"middle"},{key:"project",label:"\uD504\uB85C\uC81D\uD2B8",width:100,align:"middle"}],Lr=dr.reduce((e,t,o)=>(e.push(o===0?On:e[o-1]+dr[o-1].width),e),[]);function bR(e){let t=[],o=[],n=Jx+ji,r=0,i=(a,l)=>{t.push(o),o=[],n=eh+ji,a&&(o.push({kind:"group",label:a,count:l,continued:!0}),n+=Xi)};for(let a of e){a.label&&(n+Xi+Ar>Eu&&i("",0),o.push({kind:"group",label:a.label,count:a.rows.length,continued:!1}),n+=Xi);for(let l of a.rows){n+Ar>Eu&&i(a.label,a.rows.length),r+=1,o.push({kind:"row",completed:l.completed,values:dr.map(s=>{switch(s.key){case"no":return String(r);case"title":return l.title;case"status":return l.statusName;case"project":return l.projectLabel||"\uAE30\uBCF8";case"manager":return l.managerName||"-";case"start":return l.startDate;case"due":return l.dueDate;default:return l.priorityName||"-"}})}),n+=Ar;for(let s of l.checklistItems)s.label&&(n+ur>Eu&&i(a.label,a.rows.length),o.push({kind:"check",label:s.label,checked:s.checked,managerName:s.managerName,dueDate:s.dueDate}),n+=ur)}}return t.push(o),t.filter((a,l)=>l===0||a.length>0)}function kR(e,t){let o=[],n=[],r=(a,l,s)=>{Lr.slice(1).forEach((u,c)=>{let d=c+1;s(d)||n.push(`<line x1="${u}" y1="${a}" x2="${u}" y2="${a+l}" class="vline" />`)})};o.push(`<rect x="${On}" y="${t}" width="${sl-On}" height="${ji}" class="head" />`),dr.forEach((a,l)=>{let s=Lr[l],u=a.align==="middle"?s+a.width/2:s+qr;o.push(`<text x="${u}" y="${t+ji-7}" class="th" text-anchor="${a.align}">${$e(a.label)}</text>`)}),r(t,ji,()=>!1);let i=t+ji;for(let a of e){if(a.kind==="group"){o.push(`<rect x="${On}" y="${i}" width="${sl-On}" height="${Xi}" class="group" />`,`<text x="${On+qr}" y="${i+Xi-7}" class="gt">${$e(`${a.continued?`${a.label} (\uC774\uC5B4\uC11C)`:a.label} (${a.count})`)}</text>`),i+=Xi;continue}if(a.kind==="check"){let l=Lr[1]+qr+10,s=Lr[4]-Lr[1],u=a.checked?"ck done":"ck";o.push(`<text x="${l}" y="${i+ur-5}" class="${u}">${$e(`${a.checked?"\u2713":"\u25CB"} ${Pn(a.label,s-qr*2-22,9)}`)}</text>`),a.dueDate&&o.push(`<text x="${Lr[4]+dr[4].width/2}" y="${i+ur-5}" class="${u}" text-anchor="middle">${$e(Pn(a.dueDate,dr[4].width-qr*2,9))}</text>`),a.managerName&&o.push(`<text x="${Lr[5]+dr[5].width/2}" y="${i+ur-5}" class="${u}" text-anchor="middle">${$e(Pn(a.managerName,dr[5].width-qr*2,9))}</text>`),o.push(`<line x1="${On}" y1="${i+ur}" x2="${sl}" y2="${i+ur}" class="hline" />`),r(i,ur,c=>c>=2&&c<=3),i+=ur;continue}dr.forEach((l,s)=>{let u=Lr[s],c=l.align==="middle"?u+l.width/2:u+qr;o.push(`<text x="${c}" y="${i+Ar-6}" class="${a.completed?"td done":"td"}" text-anchor="${l.align}">${$e(Pn(a.values[s]??"",l.width-qr*2,9))}</text>`)}),o.push(`<line x1="${On}" y1="${i+Ar}" x2="${sl}" y2="${i+Ar}" class="hline" />`),r(i,Ar,()=>!1),i+=Ar}return o.push(...n),o.push(`<rect x="${On}" y="${t}" width="${sl-On}" height="${i-t}" class="frame" />`),o.join("")}async function TR(e,t){let o=bR(t),n=t.reduce((r,i)=>r+i.rows.length,0);return o.map((r,i)=>{let a=i===0?Jx:eh,l=[i===0?cr(e,`\uC804\uCCB4 ${n}\uAC74`,Ru):"",kR(r,a)].join("");return mr({width:Ru,height:Zx,body:l,pageIndex:i,pageCount:o.length})})}var Pu=rl,th=il,zn=co,nc=Pu-co,yR=th-46,oh=22,SR=68,CR=(nc-zn)/2,BR=14,Mu=58;function Qi(e){switch(e.kind){case"title":return 34;case"props":return Math.ceil(e.pairs.length/2)*oh+10;case"section":return 26;default:return BR}}function vR(e){let t=[{kind:"title",text:e.title,ticket:e.ticketNo}];return t.push({kind:"props",pairs:e.properties}),t.push({kind:"section",text:"\uB0B4\uC6A9"}),(e.content.trim()?e.content.split(`
|
|
22
22
|
`).flatMap(n=>n.trim()?Yi(n,Mu):[""]):["(\uB0B4\uC6A9 \uC5C6\uC74C)"]).forEach(n=>t.push({kind:"line",text:n,muted:!e.content.trim()})),e.checklist.length>0&&(t.push({kind:"section",text:`\uD560\uC77C (${e.checklist.filter(n=>n.checked).length}/${e.checklist.length})`}),e.checklist.forEach(n=>{Yi(n.label,Mu-3).forEach((r,i)=>t.push({kind:i===0?"check":"line",text:r,checked:n.checked}))})),e.includeComments&&e.comments.length>0&&(t.push({kind:"section",text:`\uB313\uAE00 (${e.comments.length})`}),e.comments.forEach(n=>{t.push({kind:"line",text:`${n.author} \xB7 ${n.time}`,muted:!0}),Yi(n.text,Mu).forEach(r=>t.push({kind:"line",text:r}))})),t}function _R(e){let t=[],o=[],n=Xo;for(let r of e){let i=Qi(r);n+i>yR&&(t.push(o),o=[],n=Lo),o.push(r),n+=i}return t.push(o),t}function IR(e,t){switch(e.kind){case"title":{let o=e.ticket?`<text x="${nc}" y="${t+16}" class="doc-meta" text-anchor="end">${$e(e.ticket)}</text>`:"";return{markup:`<text x="${zn}" y="${t+16}" class="section" style="font-size:14px">${$e(e.text)}</text>${o}<line x1="${zn}" y1="${t+24}" x2="${nc}" y2="${t+24}" class="hline" />`,nextY:t+Qi(e)}}case"props":{let o=[];return e.pairs.forEach((n,r)=>{let i=r%2,a=Math.floor(r/2),l=zn+i*CR,s=t+a*oh;o.push(`<text x="${l}" y="${s+14}" class="label">${$e(n.label)}</text>`,`<text x="${l+SR}" y="${s+14}" class="value">${$e(Yi(n.value||"-",26)[0]??"-")}</text>`)}),{markup:o.join(""),nextY:t+Qi(e)}}case"section":return{markup:`<text x="${zn}" y="${t+16}" class="section">${$e(e.text)}</text><line x1="${zn}" y1="${t+21}" x2="${nc}" y2="${t+21}" class="hline" />`,nextY:t+Qi(e)};case"check":return{markup:`<text x="${zn}" y="${t+10}" class="td">${e.checked?"\u2611":"\u2610"}</text><text x="${zn+14}" y="${t+10}" class="${e.checked?"td done":"td"}">${$e(e.text)}</text>`,nextY:t+Qi(e)};default:return{markup:`<text x="${zn}" y="${t+10}" class="${e.muted?"td done":"td"}">${$e(e.text)}</text>`,nextY:t+Qi(e)}}}async function wR(e,t){let o=_R(vR(t));return o.map((n,r)=>{let i=r===0?Xo:Lo,a=[r===0?cr(e,"",Pu):`<text x="${zn}" y="${Lo-12}" class="doc-meta">${$e(`${t.title} (\uC774\uC5B4\uC11C)`)}</text>`];for(let l of n){let s=IR(l,i);a.push(s.markup),i=s.nextY}return mr({width:Pu,height:th,body:a.join(""),pageIndex:r,pageCount:o.length})})}var zu=al,ih=ll,rc=co,cl=zu-co,nh=ih-46,rh=210,Nr=20,Ou=24;function $r(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let t=new Date(`${e}T00:00:00`);return Number.isNaN(t.getTime())?null:t}function ah(e,t){return Math.round((t.getTime()-e.getTime())/864e5)}function DR(e,t){let o=[];e.forEach(a=>{let l=$r(a.startDate),s=$r(a.dueDate);l&&o.push(l),s&&o.push(s)});let n=$r(t)??new Date;if(o.length===0)return{start:n,days:30};let r=new Date(Math.min(...o.map(a=>a.getTime()))),i=new Date(Math.max(...o.map(a=>a.getTime())));return r.setDate(r.getDate()-1),i.setDate(i.getDate()+1),{start:r,days:Math.max(7,ah(r,i)+1)}}async function ER(e,t,o){let n=DR(t,o),r=rc+rh,a=(cl-r)/n.days,l=$r(o),s=m=>r+ah(n.start,m)*a,u=Math.max(1,Math.floor((nh-Xo-Ou)/Nr)),c=Math.max(1,Math.floor((nh-Lo-Ou)/Nr)),d=[],p=0;for(;p<t.length||d.length===0;){let m=d.length===0?u:c;if(d.push(t.slice(p,p+m)),p+=m,p>=t.length)break}return d.map((m,f)=>{let g=f===0?Xo:Lo,B=[f===0?cr(e,`\uC804\uCCB4 ${t.length}\uAC74`,zu):""],x=g+Ou;B.push(`<line x1="${rc}" y1="${x}" x2="${cl}" y2="${x}" class="vline" />`);for(let T=0;T<n.days;T+=1){let $=new Date(n.start);if($.setDate($.getDate()+T),$.getDay()!==0&&T!==0)continue;let y=r+T*a;B.push(`<line x1="${y}" y1="${x}" x2="${y}" y2="${x+m.length*Nr}" class="hline" />`,`<text x="${y+2}" y="${x-6}" class="label">${$.getMonth()+1}.${$.getDate()}</text>`)}if(l&&l>=n.start){let T=s(l);T>=r&&T<=cl&&B.push(`<line x1="${T}" y1="${x}" x2="${T}" y2="${x+m.length*Nr}" stroke="#f87171" stroke-width="0.8" />`)}return m.forEach((T,$)=>{let y=x+$*Nr,L=Pn(T.title,rh-64,9);B.push(`<text x="${rc}" y="${y+14}" class="${T.completed?"td done":"td"}">${$e(L)}</text>`,`<text x="${r-6}" y="${y+14}" class="label" text-anchor="end">${$e(T.managerName)}</text>`,`<line x1="${rc}" y1="${y+Nr}" x2="${cl}" y2="${y+Nr}" class="hline" />`);let D=$r(T.startDate)??$r(T.dueDate),_=$r(T.dueDate)??$r(T.startDate);if(!D||!_)return;let F=s(D),M=Math.max(F+a*.8,s(_)+a*.8),Q=T.completed?"bar done":T.overdue?"bar overdue":"bar";B.push(`<rect x="${F}" y="${y+5}" width="${Math.max(3,Math.min(M,cl)-F)}" height="${Nr-10}" rx="2" class="${Q}" />`)}),mr({width:zu,height:ih,body:B.join(""),pageIndex:f,pageCount:d.length})})}function RR(e,t,o,n){return{title:e.title,managerName:e.managerName,startDate:String(t??"").slice(0,10),dueDate:String(o??"").slice(0,10),completed:e.completed,overdue:!e.completed&&!!o&&String(o).slice(0,10)<n}}var qu=rl,sh=il,Zi=co,ic=qu-co,lh=sh-46,Ji=30,ea=18,ch=12;function MR(e){let t=[],o=[],n=Xo,r=(i,a)=>{t.push(o),o=[],n=Lo,i&&(o.push({kind:"column",label:i,summary:a,continued:!0,gapBefore:!1}),n+=Ji)};for(let i of e){let a=o.length>0,l=a?ch:0;if(n+l+Ji+ea>lh?(r("",""),o.push({kind:"column",label:i.label,summary:i.summary,continued:!1,gapBefore:!1}),n+=Ji):(o.push({kind:"column",label:i.label,summary:i.summary,continued:!1,gapBefore:a}),n+=l+Ji),i.items.length===0){o.push({kind:"empty"}),n+=ea;continue}for(let s of i.items)n+ea>lh&&r(i.label,i.summary),o.push({kind:"item",title:s.title,meta:s.meta,completed:s.completed}),n+=ea}return t.push(o),t}async function PR(e,t,o){let n=MR(t);return n.map((r,i)=>{let a=i===0?Xo:Lo,l=[i===0?cr(e,o,qu):""];for(let s of r){if(s.kind==="column"){s.gapBefore&&(a+=ch),l.push(`<rect x="${Zi}" y="${a}" width="${ic-Zi}" height="${Ji-6}" class="group" />`,`<text x="${Zi+6}" y="${a+16}" class="gt">${$e(s.continued?`${s.label} (\uC774\uC5B4\uC11C)`:s.label)}</text>`,`<text x="${ic-6}" y="${a+16}" class="label" text-anchor="end">${$e(s.summary)}</text>`),a+=Ji;continue}if(s.kind==="empty"){l.push(`<text x="${Zi+12}" y="${a+12}" class="td done">(\uC5C5\uBB34 \uC5C6\uC74C)</text>`),a+=ea;continue}l.push(`<text x="${Zi+12}" y="${a+12}" class="${s.completed?"td done":"td"}">${$e(Pn(s.title,ic-Zi-12-120,9))}</text>`,`<text x="${ic-6}" y="${a+12}" class="label" text-anchor="end">${$e(s.meta)}</text>`),a+=ea}return mr({width:qu,height:sh,body:l.join(""),pageIndex:i,pageCount:n.length})})}var OR=[{header:"\uADF8\uB8F9",width:16},{header:"\uC81C\uBAA9",width:44},{header:"\uC0C1\uD0DC",width:10},{header:"\uD504\uB85C\uC81D\uD2B8",width:14},{header:"\uCC45\uC784\uC790",width:10},{header:"\uCC38\uC870\uC790",width:22},{header:"\uC2DC\uC791",width:12},{header:"\uB9C8\uAC10",width:14},{header:"\uC911\uC694\uB3C4",width:8},{header:"\uD560\uC77C",width:8},{header:"\uBE44\uACE0",width:30}],zR="FFEEF2F7",ac="FFCBD5E1";function qR(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()||"\uC5C5\uBB34\uBAA9\uB85D"}async function LR(e,t){let o=await import("./chunks/exceljs.min-XQ4JIAQG.js"),n=new o.Workbook,r=n.addWorksheet("\uC5C5\uBB34\uBAA9\uB85D",{pageSetup:{paperSize:9,orientation:"landscape",fitToPage:!0,fitToWidth:1,fitToHeight:0}});r.columns=OR.map(c=>({header:c.header,width:c.width})),r.spliceRows(1,0,[`${e.documentTitle}`],[`${e.subtitle} \xB7 ${e.facilityName} \xB7 \uCD9C\uB825 ${Ui(e.printedAt)}${e.printedBy?` \xB7 ${e.printedBy}`:""}`]),r.getRow(1).font={bold:!0,size:14},r.getRow(2).font={size:10,color:{argb:"FF6B7280"}};let i=r.getRow(3);i.font={bold:!0,size:10},i.eachCell(c=>{c.fill={type:"pattern",pattern:"solid",fgColor:{argb:zR}},c.alignment={vertical:"middle",horizontal:"center"}}),t.forEach(c=>{c.rows.forEach(d=>{let p=r.addRow([c.label,d.title,d.statusName,d.projectLabel||"\uAE30\uBCF8",d.managerName,d.receiverNamesFull,d.startDate==="-"?"":d.startDate,d.dueDate==="-"?"":d.dueDate,d.priorityName,d.checklist,d.note]);p.font={size:10,color:{argb:d.completed?"FF9CA3AF":"FF111827"}},p.alignment={vertical:"middle",wrapText:!1}})});let a=r.rowCount;for(let c=3;c<=a;c+=1)r.getRow(c).eachCell({includeEmpty:!0},d=>{d.border={top:{style:"thin",color:{argb:ac}},left:{style:"thin",color:{argb:ac}},bottom:{style:"thin",color:{argb:ac}},right:{style:"thin",color:{argb:ac}}}});r.views=[{state:"frozen",ySplit:3}];let l=await n.xlsx.writeBuffer(),s=new Blob([l],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=Ui(e.printedAt).replace(/[: ]/g,"").slice(0,13);return{blob:s,fileName:`${qR(e.documentTitle)}_${u}.xlsx`}}function AR(e){return String(e??"").replace(/<br\s*\/?>(?=.)/gi,`
|
|
23
23
|
`).replace(/<\/(p|div|li|h[1-6])>/gi,`
|
|
24
|
-
`).replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function NR(e,t){let o=Du(e,t);return{title:o.title,ticketNo:String(e.ticket_no??"").trim(),properties:[{label:"\uC0C1\uD0DC",value:o.statusName},{label:"\uD504\uB85C\uC81D\uD2B8",value:o.projectLabel||"\uAE30\uBCF8"},{label:"\uCC45\uC784\uC790",value:o.managerName},{label:"\uCC38\uC870\uC790",value:o.receiverNamesFull},{label:"\uC2DC\uC791\uC77C\uC2DC",value:o.startDate},{label:"\uB9C8\uAC10\uC608\uC815",value:o.dueDate},{label:"\uC911\uC694\uB3C4",value:o.priorityName},{label:"\uC791\uC131\uC790",value:String(e.created_by??"")}],content:AR(e.content),checklist:(e.checklist??[]).map(n=>({label:String(n.label??""),checked:!!n.checked})),comments:(e.comments??[]).map(n=>({author:String(n.author??""),time:String(n.time??""),text:String(n.text??"")})),includeComments:!0}}export{d2 as ALL_TASK_VIEWER_ACCOUNT_SEQS,Tf as AddLabelDialog,Vl as AddTabDialog,xf as AttachmentUploadGauge,Om as AttachmentUploadPercent,Sc as BUG_DEVICE_OPTIONS,ST as BUG_GROUP_KEY,ma as BUG_ICON_COLOR,CO as BUG_KANBAN_COLUMNS,yc as BUG_REPRO_OPTIONS,Cc as BUG_RESOLUTION_OPTIONS,Vr as BUG_STATUS_OPTIONS,ca as BUG_TASK_ICON,ps as BugPropertiesGrid,pd as COLUMN_WIDTHS,ua as COMPLETED_STATUS_OPTION,Lo as CONT_BODY_TOP,iu as CUSTOM_TAB_KEY_PREFIX,E8 as CalendarLinkDialog,hl as ChartEmptyMessage,kr as CommentBubbleIcon,yi as ConfirmCountButton,Kg as CumulativeFlowChart,qd as DATE_REMINDER_OPTIONS,CB as DEFAULT_COMPACT_COLUMNS,xc as DEFAULT_PROJECT_ICON,NK as DEFAULT_TASKBOX_TAB_ITEMS,$n as DEFAULT_TASK_ICON,na as DEFAULT_WORKLOAD_CAPACITY,Bm as DRAWER_SECTION_TITLE_FONT_SIZE,vK as DateRangeFilterPopover,Go as DrawerSection,Fo as DueDatePickerPopover,fT as ENDED_EVENT_STATUS_OPTION,Ef as EVENT_ICON_COLOR,Pt as EVENT_TASK_ICON,eV as EmployeeSelectDialog,Xo as FIRST_BODY_TOP,Ic as GROUP_BY_OPTIONS,Di as GoogleEventChip,K8 as GoogleEventDialog,gK as GroupByMenuButton,Fl as IconPickerGrid,Qp as InlineAddressInput,Jn as InlineTextValue,vc as KANBAN_CLOSED_COLUMN_KEY,ll as LANDSCAPE_HEIGHT,al as LANDSCAPE_WIDTH,_G as LabelFilterMenu,Is as LabelSelectMenu,Gg as LeadTimeDistributionChart,zf as LinkifiedText,pa as MANUAL_TASK_STATUS_OPTIONS,co as MARGIN_X,lK as MemberFilterMenu,yT as NOTICE_GROUP_KEY,da as NOTICE_STATUS_OPTIONS,_t as NOTICE_TASK_ICON,ju as NO_TASK_ICON,il as PORTRAIT_HEIGHT,rl as PORTRAIT_WIDTH,Xu as PROJECT_ICON_OPTIONS,_e as PropertyRow,Ti as RECEIVER_AVATAR_COLORS,Ld as REMINDER_OPTIONS,hr as REVIEW_DONE_BUTTON_SX,go as ReceiverAvatarStack,ig as RelatedTasksSection,XR as STATUS_KEY_REPLIED,$u as STATUS_KEY_WAITING,CT as SUPPORT_GROUP_KEY,YG as ShortcutHelpDialog,Xd as SortableTaskCard,Vg as SprintBurndownChart,oK as SprintChartsDialog,hg as SprintCloseDialog,PG as SprintFilterMenu,T8 as SprintManageDialog,Fg as SprintVelocityChart,bi as StatusSelectMenu,Dl as TASKBOX_COLUMNS,cn as TASKBOX_DRAWER_NARROW_MQ,WG as TASKBOX_SHORTCUT_HELP,ed as TASKBOX_UI_STATE_ID,kx as TASKBOX_VIEW_LABELS,jN as TASKBOX_VIEW_MODES,Yc as TASK_CARD_DRAG_HANDLE_CLASS,Ea as TASK_REPEAT_RULE_OPTIONS,wo as TASK_STATUS_OPTIONS,Hy as TIME_REMINDER_OPTIONS,Ul as TaskAckListPopover,bn as TaskActionButton,Ps as TaskActivityDialog,vs as TaskAttachmentsSection,zp as TaskBoxColumnSummary,h$ as TaskBoxCompactTable,tm as TaskBoxGroupBoard,W7 as TaskBoxMobileList,Ip as TaskBoxMonthAgenda,Sp as TaskBoxMonthCalendar,c7 as TaskBoxSprintColumnSummary,Kd as TaskBoxTable,$K as TaskBoxTabs,Pp as TaskBoxTimeline,YN as TaskBoxView,hp as TaskBoxWeekCalendar,Sa as TaskCardContent,ys as TaskChecklistSection,Vf as TaskCommentInput,Ff as TaskCommentsSection,bs as TaskContentEditor,gs as TaskContentTemplateMenu,Jf as TaskContentTranslateDialog,yG as TaskContextMenu,ds as TaskCorePropertiesGrid,Nm as TaskCreateBody,gW as TaskCreateDrawer,cx as TaskDateRangeFilter,pg as TaskDetailBody,j9 as TaskDetailDrawer,Yf as TaskDetailHeader,Tr as TaskIconPickerPopover,gr as TaskLabelChips,Ts as TaskLinkDialog,eg as TaskNoteField,po as TaskPriorityChip,LU as TaskRuleManageDialog,He as TaskStatusChip,RO as TaskStatusChips,rY as TaskTemplateManageDialog,fY as TaskTemplateRunDialog,yU as TaskboxManualDialog,xh as TaskboxProvider,Wg as WorkloadCapacityDialog,Ug as WorkloadChart,Zg as WorkloadPersonTasks,Jg as WorkloadPersonTasksDialog,tx as WorkloadTimelineGrid,Gp as addDaysToDate,jR as averageWorkload,Yl as buildCardBaseSx,VR as buildCumulativeFlow,KR as buildLeadCycleDistribution,wB as buildPlannedTask,ld as buildStatusOptionColors,PR as buildTaskColumnsPrintSvgPages,NR as buildTaskDetailPrintData,wR as buildTaskDetailPrintSvgPages,wl as buildTaskGroupSections,TR as buildTaskListPrintSvgPages,LR as buildTaskListXlsx,Um as buildTaskRelationsModel,O1 as buildTaskShareText,ER as buildTaskTimelinePrintSvgPages,Xa as buildTaskboxShortcutHelp,yl as buildTaskboxTheme,Up as buildTemplateTasks,Au as buildWorkloadRows,Nu as buildWorkloadTimeline,hd as canAssignBugManager,Ml as canClaimTaskItem,bd as canCompleteTaskItem,ty as canDeleteTaskItem,ey as canEditTaskCoreItem,hn as canEditTaskItem,Rl as canViewTaskItem,Pl as canVolunteerTaskItem,Pn as clampPrintText,xr as coreEditLocked,Ym as countTaskRelations,qp as countWorkdays,mT as createTaskboxTheme,Op as daysLeftUntil,ss as defaultRepeatUntil,hc as defaultTaskBoxFormValues,bc as defaultTaskboxUiStateValues,Kr as deleteLocked,$e as escapePrintXml,oc as estimatePrintTextWidth,vf as filterFilesWithinLimit,Yq as formatConfirmTime,o7 as formatHours,Wo as formatKoreanDate,Do as formatKoreanDateTime,Oc as formatMonthDay,y$ as formatOffsetLabel,tc as formatPrintDate,Ui as formatPrintStamp,Vo as formatSprintOptionLabel,id as getBugDeviceName,rd as getBugReproName,Sl as getBugResolutionName,gT as getBugStatusOption,HR as getDefaultDateRange,fa as getEventDisplayStatusOption,vO as getNoDueStatusRank,Bf as getNoticeAckInfo,ad as getNoticeStatusOption,k3 as getNoticeTargetDisplay,Y5 as getProjectIconAnchorComponent,ze as getProjectIconComponent,Wy as getReminderLabel,Hc as getReminderOptions,Wc as getRemindersLabel,ls as getRepeatRuleLabel,vl as getStatusOptionsForTask,qG as getTabHeaderConfig,El as getTaskBoxColumnDefs,gd as getTaskBoxGridMinWidth,fd as getTaskBoxGridTemplate,aE as getTaskBoxTabKind,yr as getTaskConfirmInfo,Ot as getTaskDisplayStatusOption,Bl as getTaskStatusOption,_i as groupGoogleEventsByDate,Pr as groupSeqFromTabKey,eF as hasRelation,og as hasTaskRelations,Oa as htmlToPlainText,GI as isCustomTabKey,WR as isFlowTask,xd as isOpenPoolTaskItem,UR as isOverCapacity,YR as isOverloaded,Bc as isPastEvent,Ol as isSupportOriginTaskItem,Cl as isTaskDone,BO as isWaitingTask,Qu as loadMuiIconCatalog,cc as monthsAgoDate,Dn as narrowOrderSx,Y9 as nowDateTimeString,Lu as nowMinuteString,UC as parseEstimatedHours,FR as parseTaskTimeMs,bl as pickPersonWorkloadTasks,ri as relationsOf,cr as renderPrintHeader,Tn as resolveReminders,GR as resolveRowCapacity,hi as resolveTaskStatusOptions,Tc as resolveTaskboxTheme,$R as resolveWorkloadCapacity,x$ as selectDepartmentSharedTasks,Li as shareTaskText,n7 as sumRemainingHours,ws as summarizeNoticeTargets,l8 as tabKeyFromGroupSeq,on as taskVisibilityOf,Du as toTaskPrintRow,RR as toTimelinePrintRow,ra as toYmd,_l as toggleLabelKey,Wl as toggleReminder,aa as useBuildFileUrl,Ju as useIconPickerGroups,gf as useTaskAttachmentUploadMeta,fe as useTaskboxConfig,iT as useTaskboxForm,HG as useTaskboxShortcuts,ge as useTaskboxTheme,Hn as useTaskboxUiState,la as useUploadMaxMb,Tt as wideColumnSx,zl as withOriginAuthorAvatar,mr as wrapPrintPage,Yi as wrapPrintText};
|
|
24
|
+
`).replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function NR(e,t){let o=Du(e,t);return{title:o.title,ticketNo:String(e.ticket_no??"").trim(),properties:[{label:"\uC0C1\uD0DC",value:o.statusName},{label:"\uD504\uB85C\uC81D\uD2B8",value:o.projectLabel||"\uAE30\uBCF8"},{label:"\uCC45\uC784\uC790",value:o.managerName},{label:"\uCC38\uC870\uC790",value:o.receiverNamesFull},{label:"\uC2DC\uC791\uC77C\uC2DC",value:o.startDate},{label:"\uB9C8\uAC10\uC608\uC815",value:o.dueDate},{label:"\uC911\uC694\uB3C4",value:o.priorityName},{label:"\uC791\uC131\uC790",value:String(e.created_by??"")}],content:AR(e.content),checklist:(e.checklist??[]).map(n=>({label:String(n.label??""),checked:!!n.checked})),comments:(e.comments??[]).map(n=>({author:String(n.author??""),time:String(n.time??""),text:String(n.text??"")})),includeComments:!0}}export{d2 as ALL_TASK_VIEWER_ACCOUNT_SEQS,Tf as AddLabelDialog,Vl as AddTabDialog,xf as AttachmentUploadGauge,Om as AttachmentUploadPercent,Sc as BUG_DEVICE_OPTIONS,ST as BUG_GROUP_KEY,ma as BUG_ICON_COLOR,CO as BUG_KANBAN_COLUMNS,yc as BUG_REPRO_OPTIONS,Cc as BUG_RESOLUTION_OPTIONS,Vr as BUG_STATUS_OPTIONS,ca as BUG_TASK_ICON,ps as BugPropertiesGrid,Ei as CALENDAR_CHIP_FONT_SIZE,lm as CALENDAR_PRIORITY_DOT_COLORS,pd as COLUMN_WIDTHS,ua as COMPLETED_STATUS_OPTION,Lo as CONT_BODY_TOP,iu as CUSTOM_TAB_KEY_PREFIX,E8 as CalendarLinkDialog,Br as CalendarTaskChip,hl as ChartEmptyMessage,kr as CommentBubbleIcon,yi as ConfirmCountButton,Kg as CumulativeFlowChart,qd as DATE_REMINDER_OPTIONS,CB as DEFAULT_COMPACT_COLUMNS,xc as DEFAULT_PROJECT_ICON,NK as DEFAULT_TASKBOX_TAB_ITEMS,$n as DEFAULT_TASK_ICON,na as DEFAULT_WORKLOAD_CAPACITY,Bm as DRAWER_SECTION_TITLE_FONT_SIZE,vK as DateRangeFilterPopover,Go as DrawerSection,Fo as DueDatePickerPopover,fT as ENDED_EVENT_STATUS_OPTION,Ef as EVENT_ICON_COLOR,Pt as EVENT_TASK_ICON,eV as EmployeeSelectDialog,Xo as FIRST_BODY_TOP,Ic as GROUP_BY_OPTIONS,Di as GoogleEventChip,K8 as GoogleEventDialog,gK as GroupByMenuButton,Fl as IconPickerGrid,Qp as InlineAddressInput,Jn as InlineTextValue,vc as KANBAN_CLOSED_COLUMN_KEY,ll as LANDSCAPE_HEIGHT,al as LANDSCAPE_WIDTH,_G as LabelFilterMenu,Is as LabelSelectMenu,Gg as LeadTimeDistributionChart,zf as LinkifiedText,pa as MANUAL_TASK_STATUS_OPTIONS,co as MARGIN_X,lK as MemberFilterMenu,yT as NOTICE_GROUP_KEY,da as NOTICE_STATUS_OPTIONS,_t as NOTICE_TASK_ICON,ju as NO_TASK_ICON,il as PORTRAIT_HEIGHT,rl as PORTRAIT_WIDTH,Xu as PROJECT_ICON_OPTIONS,_e as PropertyRow,Ti as RECEIVER_AVATAR_COLORS,Ld as REMINDER_OPTIONS,hr as REVIEW_DONE_BUTTON_SX,go as ReceiverAvatarStack,ig as RelatedTasksSection,XR as STATUS_KEY_REPLIED,$u as STATUS_KEY_WAITING,CT as SUPPORT_GROUP_KEY,YG as ShortcutHelpDialog,Xd as SortableTaskCard,Vg as SprintBurndownChart,oK as SprintChartsDialog,hg as SprintCloseDialog,PG as SprintFilterMenu,T8 as SprintManageDialog,Fg as SprintVelocityChart,bi as StatusSelectMenu,Dl as TASKBOX_COLUMNS,cn as TASKBOX_DRAWER_NARROW_MQ,WG as TASKBOX_SHORTCUT_HELP,ed as TASKBOX_UI_STATE_ID,kx as TASKBOX_VIEW_LABELS,jN as TASKBOX_VIEW_MODES,Yc as TASK_CARD_DRAG_HANDLE_CLASS,Ea as TASK_REPEAT_RULE_OPTIONS,wo as TASK_STATUS_OPTIONS,Hy as TIME_REMINDER_OPTIONS,Ul as TaskAckListPopover,bn as TaskActionButton,Ps as TaskActivityDialog,vs as TaskAttachmentsSection,zp as TaskBoxColumnSummary,h$ as TaskBoxCompactTable,tm as TaskBoxGroupBoard,W7 as TaskBoxMobileList,Ip as TaskBoxMonthAgenda,Sp as TaskBoxMonthCalendar,c7 as TaskBoxSprintColumnSummary,Kd as TaskBoxTable,$K as TaskBoxTabs,Pp as TaskBoxTimeline,YN as TaskBoxView,hp as TaskBoxWeekCalendar,Sa as TaskCardContent,ys as TaskChecklistSection,Vf as TaskCommentInput,Ff as TaskCommentsSection,bs as TaskContentEditor,gs as TaskContentTemplateMenu,Jf as TaskContentTranslateDialog,yG as TaskContextMenu,ds as TaskCorePropertiesGrid,Nm as TaskCreateBody,gW as TaskCreateDrawer,cx as TaskDateRangeFilter,pg as TaskDetailBody,j9 as TaskDetailDrawer,Yf as TaskDetailHeader,Tr as TaskIconPickerPopover,gr as TaskLabelChips,Ts as TaskLinkDialog,eg as TaskNoteField,po as TaskPriorityChip,LU as TaskRuleManageDialog,He as TaskStatusChip,RO as TaskStatusChips,rY as TaskTemplateManageDialog,fY as TaskTemplateRunDialog,yU as TaskboxManualDialog,xh as TaskboxProvider,Wg as WorkloadCapacityDialog,Ug as WorkloadChart,Zg as WorkloadPersonTasks,Jg as WorkloadPersonTasksDialog,tx as WorkloadTimelineGrid,Gp as addDaysToDate,jR as averageWorkload,Yl as buildCardBaseSx,VR as buildCumulativeFlow,KR as buildLeadCycleDistribution,wB as buildPlannedTask,ld as buildStatusOptionColors,PR as buildTaskColumnsPrintSvgPages,NR as buildTaskDetailPrintData,wR as buildTaskDetailPrintSvgPages,wl as buildTaskGroupSections,TR as buildTaskListPrintSvgPages,LR as buildTaskListXlsx,Um as buildTaskRelationsModel,O1 as buildTaskShareText,ER as buildTaskTimelinePrintSvgPages,Xa as buildTaskboxShortcutHelp,yl as buildTaskboxTheme,Up as buildTemplateTasks,Au as buildWorkloadRows,Nu as buildWorkloadTimeline,hd as canAssignBugManager,Ml as canClaimTaskItem,bd as canCompleteTaskItem,ty as canDeleteTaskItem,ey as canEditTaskCoreItem,hn as canEditTaskItem,Rl as canViewTaskItem,Pl as canVolunteerTaskItem,Pn as clampPrintText,wi as compareCalendarTasks,xr as coreEditLocked,Ym as countTaskRelations,qp as countWorkdays,mT as createTaskboxTheme,Op as daysLeftUntil,ss as defaultRepeatUntil,hc as defaultTaskBoxFormValues,bc as defaultTaskboxUiStateValues,Kr as deleteLocked,$e as escapePrintXml,oc as estimatePrintTextWidth,vf as filterFilesWithinLimit,Yq as formatConfirmTime,o7 as formatHours,Wo as formatKoreanDate,Do as formatKoreanDateTime,Oc as formatMonthDay,y$ as formatOffsetLabel,tc as formatPrintDate,Ui as formatPrintStamp,Vo as formatSprintOptionLabel,id as getBugDeviceName,rd as getBugReproName,Sl as getBugResolutionName,gT as getBugStatusOption,Ii as getCalendarTaskTime,HR as getDefaultDateRange,fa as getEventDisplayStatusOption,vO as getNoDueStatusRank,Bf as getNoticeAckInfo,ad as getNoticeStatusOption,k3 as getNoticeTargetDisplay,Y5 as getProjectIconAnchorComponent,ze as getProjectIconComponent,Wy as getReminderLabel,Hc as getReminderOptions,Wc as getRemindersLabel,ls as getRepeatRuleLabel,vl as getStatusOptionsForTask,qG as getTabHeaderConfig,El as getTaskBoxColumnDefs,gd as getTaskBoxGridMinWidth,fd as getTaskBoxGridTemplate,aE as getTaskBoxTabKind,yr as getTaskConfirmInfo,Ot as getTaskDisplayStatusOption,Bl as getTaskStatusOption,_i as groupGoogleEventsByDate,Pr as groupSeqFromTabKey,eF as hasRelation,og as hasTaskRelations,Oa as htmlToPlainText,GI as isCustomTabKey,WR as isFlowTask,xd as isOpenPoolTaskItem,UR as isOverCapacity,YR as isOverloaded,Bc as isPastEvent,Ol as isSupportOriginTaskItem,Cl as isTaskDone,BO as isWaitingTask,Qu as loadMuiIconCatalog,cc as monthsAgoDate,Dn as narrowOrderSx,Y9 as nowDateTimeString,Lu as nowMinuteString,UC as parseEstimatedHours,FR as parseTaskTimeMs,bl as pickPersonWorkloadTasks,ri as relationsOf,cr as renderPrintHeader,Tn as resolveReminders,GR as resolveRowCapacity,hi as resolveTaskStatusOptions,Tc as resolveTaskboxTheme,$R as resolveWorkloadCapacity,x$ as selectDepartmentSharedTasks,Li as shareTaskText,n7 as sumRemainingHours,ws as summarizeNoticeTargets,l8 as tabKeyFromGroupSeq,on as taskVisibilityOf,Du as toTaskPrintRow,RR as toTimelinePrintRow,ra as toYmd,_l as toggleLabelKey,Wl as toggleReminder,aa as useBuildFileUrl,Ju as useIconPickerGroups,gf as useTaskAttachmentUploadMeta,fe as useTaskboxConfig,iT as useTaskboxForm,HG as useTaskboxShortcuts,ge as useTaskboxTheme,Hn as useTaskboxUiState,la as useUploadMaxMb,Tt as wideColumnSx,zl as withOriginAuthorAvatar,mr as wrapPrintPage,Yi as wrapPrintText};
|
|
25
25
|
//# sourceMappingURL=index.esm.js.map
|