@ehfuse/taskbox 0.7.21 → 0.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15,7 +15,7 @@ import{a as ia,b as ld,c as bc,d as VP,e as UP,f as GP,g as KP,h as YP}from"./ch
|
|
|
15
15
|
`).trim():"";function X1(e){let t=[`[\uC5C5\uBB34] ${e.title}`],o=Uo(e.start_date),n=Uo(e.due_date);(o||n)&&t.push(`\uAE30\uAC04: ${o&&n?`${o} ~ ${n}`:o||n}`),e.manager_name&&t.push(`\uCC45\uC784\uC790: ${e.manager_name}`);let r=Mt(e).name;r&&t.push(`\uC0C1\uD0DC: ${r}`);let i=_g(e.content);i&&t.push("",i);let a=String(e.note??"").trim();return a&&t.push("",`\uBE44\uACE0: ${a}`),t.join(`
|
|
16
16
|
`)}function wg(e){navigator.clipboard.writeText(e).then(()=>j1("\uC5C5\uBB34 \uB0B4\uC6A9\uC744 \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4.")).catch(()=>Y1("\uBCF5\uC0AC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB0B4\uC6A9\uC744 \uC9C1\uC811 \uC120\uD0DD\uD574 \uBCF5\uC0AC\uD574 \uC8FC\uC138\uC694."))}function Ai(e,t,o){let n=X1(e);if(o){o(n);return}if(t&&typeof navigator.share=="function"){navigator.share({text:n}).catch(r=>{r?.name!=="AbortError"&&wg(n)});return}wg(n)}import{Fragment as aw,jsx as Ae,jsxs as uu}from"react/jsx-runtime";function Dg({task:e,myAccountSeq:t=0,onToggleCompleted:o,onChangeTitle:n,onChangeIcon:r,onChangeIconColor:i,onClose:a,appBarMode:l=!1,activityItems:s,activityLoading:m,onLoadActivity:c,onPrint:p,onDelete:d,canDelete:u}){let f=Ue(),g=Ua({taskSeq:e.seq,items:s,loading:m,onLoad:c}),[v,D]=Ga(null),[b,S]=Ga(null),[h,E]=Ga(null),[y,T]=Ga(null),[I,A]=Ga(null),q=!!e.is_notice,C=!!e.is_event,k=q?ze(e.icon||gt):C?ze(e.icon||Rt):null,x=q&&t>0&&(e.author_account_seq??0)===t,{onReturnTask:B,onReviewDone:w,editPolicy:_,shareText:N}=me(),M=!!B&&Qt(e,t),$=M&&!!w,Y=!Cn(e,t),te=Sr(e,t,_),ce=t>0&&(e.author_account_seq??0)===t,ue=!!d&&(u??!jr(e,t,_,!ce)),j=!C&&(q?x:(e.author_account_seq??0)===t||(e.manager_account_seq??0)===t);return uu(aw,{children:[uu(Li,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1.5,flexShrink:0},children:[l&&a?Ae(Ni,{"aria-label":"\uB4A4\uB85C",onClick:a,sx:{color:"#37352f",ml:-1},children:Ae(ew,{})}):null,j&&!l?Ae(Fi,{title:e.completed&&e.completed_by?`${e.completed_by} \xB7 ${Po(e.completed_time)} \uC644\uB8CC`:"",arrow:!0,disableInteractive:!0,slotProps:{transition:{timeout:0}},children:uu(Li,{sx:{display:"flex",flexShrink:0,mr:1},children:[Ae(Oo,{onClick:O=>A({anchorEl:O.currentTarget,nextCompleted:!e.completed}),children:e.completed?M?"\uB418\uB3CC\uB9AC\uAE30":"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC\uD558\uAE30"}),$?Ae(Q1,{variant:"contained",size:"small",disableElevation:!0,onClick:O=>T(O.currentTarget),sx:{ml:1,...Cr},children:"\uAC80\uC218\uC644\uB8CC"}):null]})}):null,l||!k?null:C&&!Y?Ae(Fi,{title:"\uC544\uC774\uCF58 \uBCC0\uACBD",arrow:!0,enterDelay:400,disableInteractive:!0,children:Ae(Z1,{onClick:O=>S(O.currentTarget),sx:{display:"flex",p:.5,borderRadius:1,color:e.icon_color||"#1e3a8a","&:hover":{bgcolor:"#f2f2f0"}},children:Ae(k,{sx:{fontSize:20}})})}):Ae(Li,{sx:{display:"flex",px:.5,color:e.icon_color||(q?"#e5484d":"#1e3a8a")},children:Ae(k,{sx:{fontSize:20}})}),v!==null?Ae(Li,{component:"input",autoFocus:!0,spellCheck:!1,value:v,onChange:O=>D(O.target.value),onBlur:()=>{v.trim()&&v.trim()!==e.title&&n(e.seq,v.trim()),D(null)},onKeyDown:O=>{O.key==="Enter"&&O.target.blur(),O.key==="Escape"&&D(null)},sx:{flex:1,minWidth:0,border:"none",outline:"none",font:"inherit",fontSize:18,fontWeight:500,color:"#37352f",p:0,m:0}}):l?Ae(Li,{sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q?"\uACF5\uC9C0":C?"\uC77C\uC815":e.is_bug?"\uC624\uB958":"\uC5C5\uBB34"}):Ae(Li,{onClick:te?void 0:()=>D(e.title),sx:{flex:1,minWidth:0,fontSize:18,fontWeight:500,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:te?"default":"text",textDecoration:e.completed?"line-through":"none"},children:e.title}),c?Ae(Fi,{title:"\uD65C\uB3D9",arrow:!0,children:Ae(Ni,{"aria-label":"\uD65C\uB3D9",onClick:g.openDialog,sx:{color:"#6b7280"},children:Ae(nw,{sx:{fontSize:20}})})}):null,Ae(Fi,{title:f?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",arrow:!0,children:Ae(Ni,{"aria-label":f?"\uACF5\uC720\uD558\uAE30":"\uB0B4\uC6A9 \uBCF5\uC0AC",onClick:()=>Ai(e,f,N),sx:{color:"#6b7280"},children:f?Ae(ow,{sx:{fontSize:20}}):Ae(tw,{sx:{fontSize:20}})})}),p?Ae(Fi,{title:"\uC778\uC1C4",arrow:!0,children:Ae(Ni,{"aria-label":"\uC778\uC1C4",onClick:()=>p(e),sx:{color:"#6b7280"},children:Ae(rw,{sx:{fontSize:20}})})}):null,ue?Ae(Fi,{title:"\uC0AD\uC81C",arrow:!0,children:Ae(Ni,{"aria-label":"\uC0AD\uC81C",onClick:O=>E(O.currentTarget),sx:{color:"#6b7280","&:hover":{color:"#e5484d"}},children:Ae(Gt,{sx:{fontSize:20}})})}):null,a&&!l?Ae(Ni,{"aria-label":"\uB2EB\uAE30",onClick:a,sx:{color:"#6b7280"},children:Ae(J1,{})}):null]}),Ae(Br,{anchorEl:y,onCancel:()=>T(null),onConfirm:()=>{w?.(e),T(null)}}),Ae(_o,{open:!!I,anchorEl:I?.anchorEl??null,nextCompleted:I?.nextCompleted??!1,returnMode:M,onCancel:()=>A(null),onConfirm:O=>{I&&(O&&B?B(e,O):o(e.seq,I.nextCompleted)),A(null)}}),Ae(Ir,{anchorEl:b,value:e.icon??"",color:e.icon_color??"",onSelect:O=>{r(e.seq,O),S(null)},onSelectColor:i?O=>i(e.seq,O):void 0,onClose:()=>S(null)}),Ae(iw,{open:!!h,anchorEl:h,title:"\uC774 \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C",onCancel:()=>E(null),onConfirm:()=>{E(null),d?.(e)}}),Ae(Ls,{controller:g})]})}import{useRef as Aw,useState as Ao}from"react";import{useEffect as lw,useRef as sw,useState as cw}from"react";var mw=5e3,uw=15e3,dw=25;function Eg(e){let t=e.replace(/<[^>]*>/g," ").replace(/ /g," ").replace(/\s+/g," ").trim();return Math.min(uw,Math.max(mw,Math.round(t.length/dw*1e3)))}function pw(){return typeof document>"u"?!1:document.visibilityState==="visible"&&(typeof document.hasFocus!="function"||document.hasFocus())}function Rg(e,t,o,n){let[r,i]=cw(0),a=sw(n);return a.current=n,lw(()=>{if(i(0),!t||o<=0)return;let l=0,s=Date.now(),m=!1,p=setInterval(()=>{let d=Date.now(),u=Math.min(d-s,1e3);s=d,!(m||!pw())&&(l+=u,i(Math.min(1,l/o)),l>=o&&(m=!0,a.current()))},250);return()=>clearInterval(p)},[e,t,o]),t?r:0}import{Box as tt,Button as ci,ButtonBase as $g,Checkbox as Lw,Divider as mi,Menu as ku,MenuItem as Tu}from"@mui/material";import Nw from"@mui/icons-material/ExpandLess";import Fw from"@mui/icons-material/ExpandMore";import $w from"@mui/icons-material/ConfirmationNumberOutlined";import Hw from"@mui/icons-material/FactCheckOutlined";import Hg from"@mui/icons-material/Check";import Ww from"@mui/icons-material/DirectionsRunOutlined";import Vw from"@mui/icons-material/SpeedOutlined";import yu from"@mui/icons-material/CheckCircle";import Uw from"@mui/icons-material/CheckCircleOutlineOutlined";import Su from"@mui/icons-material/CheckCircleOutlined";import Wg from"@mui/icons-material/AccessTimeOutlined";import Gw from"@mui/icons-material/AutorenewOutlined";import Kw from"@mui/icons-material/LabelOutlined";import Yw from"@mui/icons-material/PersonOutlineOutlined";import jw from"@mui/icons-material/SubjectOutlined";import Xw from"@mui/icons-material/StickyNote2Outlined";import Qw from"@mui/icons-material/PanToolAltOutlined";import Vg from"@mui/icons-material/LockOutlined";import Ug from"@mui/icons-material/PublicOutlined";import Gg from"@mui/icons-material/Group";import Zw from"@mui/icons-material/Repeat";import Jw from"@mui/icons-material/EventOutlined";import{useEffect as hw,useState as kw}from"react";import{Box as ho,Button as Mg,Chip as Tw,IconButton as yw,Tooltip as Sw}from"@mui/material";import gu from"@mui/icons-material/Check";import{ConfirmActionPopper as Cw}from"@ehfuse/mui-confirm-action";import{FormDialog as Bw}from"@ehfuse/mui-form-dialog";import vw from"@mui/icons-material/Translate";import Pg from"@mui/icons-material/ContentCopyOutlined";import{useEffect as fw,useRef as du}from"react";import{useFormaState as gw,useModal as xw}from"@ehfuse/forma";var pu=new Map,bw={target:"",doneTargets:[],result:null,loading:!1,error:"",copied:!1,summaryCopied:!1};function fu(e){let t=du(e);t.current=e;let{translateContent:o}=me(),n=du(o);n.current=o;let r=du(0),i={translate:xw({modalId:we("taskbox-content-translate"),onClose:()=>{r.current+=1}})},a=gw(bw);fw(()=>{r.current+=1,a.setValue("target","")},[e.taskSeq]);let l=d=>(t.current.translatedTargets??[]).includes(d)||(a.getValue("doneTargets")??[]).includes(d)||pu.has(`${t.current.taskSeq}:${d}`),s=d=>{a.setValue("target",d);let u=++r.current,f=t.current.taskSeq,g=n.current;if(!g||!(f>0)||!d)return;let v=`${f}:${d}`,D=pu.get(v);if(D){a.setValues({result:D,error:""});return}a.setValues({loading:!0,error:"",result:null}),g({taskSeq:f,target:d}).then(b=>{if(u!==r.current)return;pu.set(v,b);let S=a.getValue("doneTargets")??[];S.includes(d)||a.setValue("doneTargets",[...S,d]),a.setValue("result",b)}).catch(b=>{u===r.current&&a.setValue("error",b instanceof Error?b.message:"AI \uBC88\uC5ED\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.")}).finally(()=>{u===r.current&&a.setValue("loading",!1)})},m=()=>{a.setValue("target",""),i.translate.open()},c=()=>{let d=a.getValue("result");d?.summary&&navigator.clipboard.writeText(d.summary).then(()=>{a.setValue("summaryCopied",!0),window.setTimeout(()=>a.setValue("summaryCopied",!1),1500)})},p=()=>{let d=a.getValue("result");if(!d)return;let u=d.html?ai(d.html):d.text;navigator.clipboard.writeText(`${d.title}
|
|
17
17
|
|
|
18
|
-
${u}`.trim()).then(()=>{a.setValue("copied",!0),window.setTimeout(()=>a.setValue("copied",!1),1500)})};return{modals:i,ui:a,taskSeq:e.taskSeq,isStored:l,selectTarget:s,openDialog:m,copySummary:c,copyResult:p}}import{jsx as st,jsxs as Ka}from"react/jsx-runtime";var Og=[{code:"en",label:"\uC601\uC5B4"},{code:"ja",label:"\uC77C\uBCF8\uC5B4"},{code:"zh",label:"\uC911\uAD6D\uC5B4(\uAC04\uCCB4)"},{code:"zh-TW",label:"\uC911\uAD6D\uC5B4(\uBC88\uCCB4)"},{code:"vi",label:"\uBCA0\uD2B8\uB0A8\uC5B4"},{code:"th",label:"\uD0DC\uAD6D\uC5B4"},{code:"ko",label:"\uD55C\uAD6D\uC5B4"}];function qg({controller:e,title:t,html:o}){let n=e.modals.translate,{ui:r}=e,i=String(r.useValue("target")??"");r.useValue("doneTargets");let a=r.useValue("result"),l=!!r.useValue("loading"),s=String(r.useValue("error")??""),m=!!r.useValue("copied"),c=!!r.useValue("summaryCopied"),[p,d]=kw(null),u=(g,v)=>{if(g!==i){if(g===""||e.isStored(g)){e.selectTarget(g);return}d({code:g,anchor:v})}};hw(()=>{n.isOpen&&d(null)},[n.isOpen,e.taskSeq]);let f=Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[st(ho,{sx:{display:"flex",flexWrap:"wrap",gap:.75},children:[{code:"",label:"\uC6D0\uBB38"},...Og].map(g=>st(Tw,{label:g.label,clickable:!0,icon:g.code&&e.isStored(g.code)?st(gu,{sx:{fontSize:16}}):void 0,onClick:v=>u(g.code,v.currentTarget),color:i===g.code?"primary":"default",variant:i===g.code?"filled":"outlined",sx:{fontSize:14,height:30}},g.code||"__source__"))}),st(Cw,{open:!!p,anchorEl:p?.anchor??null,title:`${Og.find(g=>g.code===p?.code)?.label??""}\uB85C AI \uBC88\uC5ED\uC744 \uC2DC\uC791\uD560\uAE4C\uC694?`,confirmText:"\uC2DC\uC791",cancelText:"\uCDE8\uC18C",placement:"bottom-start",onCancel:()=>d(null),onConfirm:()=>{p&&e.selectTarget(p.code),d(null)}}),i?l?st(ho,{sx:{minHeight:200,display:"flex",alignItems:"center",justifyContent:"center"},children:st(Bi,{})}):s?st(ho,{sx:{fontSize:15,color:"#c62828",py:2},children:s}):a?Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[a.summary?Ka(ho,{sx:{position:"relative",display:"flex",alignItems:"center",gap:2,px:1.5,pr:5,py:1.25,bgcolor:"#eef4ff",border:"1px solid #c7d7fe",borderRadius:1},children:[st(Sw,{title:"\uC694\uC57D \uBCF5\uC0AC",arrow:!0,children:st(yw,{size:"small","aria-label":"\uC694\uC57D \uBCF5\uC0AC",onClick:e.copySummary,sx:{position:"absolute",top:4,right:4,color:"#64748b"},children:c?st(gu,{sx:{fontSize:18,color:"#2f9e5b"}}):st(Pg,{sx:{fontSize:18}})})}),st(vw,{sx:{fontSize:30,color:"#2563eb",flexShrink:0,mx:1.5}}),Ka(ho,{sx:{flex:1,minWidth:0},children:[st(ho,{sx:{fontSize:16,fontWeight:600,color:"#1e3a8a"},children:"AI \uBC88\uC5ED (Gemini) \xB7 \uC6D0\uBB38\uACFC \uB2E4\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4"}),st(ho,{sx:{fontSize:15,color:"#111",mt:.25,lineHeight:1.5,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a.summary})]})]}):null,st(ho,{sx:{fontSize:18,fontWeight:700,color:"#111",wordBreak:"break-word"},children:a.title}),a.html?st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",wordBreak:"break-word","& > p:first-of-type":{mt:0},"& > p:last-of-type":{mb:0},"& a[href]":{color:"#2563eb",textDecoration:"underline"},"& img":{maxWidth:"100%"}},dangerouslySetInnerHTML:{__html:a.html}}):st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",whiteSpace:"pre-wrap"},children:a.text})]}):null:Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[st(ho,{sx:{fontSize:18,fontWeight:700,color:"#111",wordBreak:"break-word"},children:t}),st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",wordBreak:"break-word","& > p:first-of-type":{mt:0},"& > p:last-of-type":{mb:0},"& a[href]":{color:"#2563eb",textDecoration:"underline"},"& img":{maxWidth:"100%"}},dangerouslySetInnerHTML:{__html:o||"<p></p>"}})]})]});return st(Bw,{open:n.isOpen,onClose:n.close,width:760,title:"\uB0B4\uC6A9 \uBC88\uC5ED",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-content-translate",maxContentHeight:"80vh",sectionContentPaddingTop:0,sections:[{id:"translate",showTitle:!1,children:f}],actions:{showCancelButton:!1,left:i&&a?st(Mg,{variant:"outlined",color:"inherit",startIcon:m?st(gu,{sx:{fontSize:18,color:"#2f9e5b"}}):st(Pg,{sx:{fontSize:18}}),onClick:e.copyResult,sx:{minWidth:80,color:"#37352f",borderColor:"#d9d9d6"},children:"\uBCF5\uC0AC"}):void 0,right:st(Mg,{variant:"contained",onClick:n.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{ConfirmActionPopper as eD}from"@ehfuse/mui-confirm-action";import{DatePicker as tD}from"@ehfuse/mui-datetime-picker";import{useState as Iw}from"react";import{TextField as _w}from"@ehfuse/mui-form-controls";import{jsx as ww}from"react/jsx-runtime";function zg({value:e,onCommit:t,onDraftChange:o,readOnly:n=!1}){let[r,i]=Iw(null);return ww(_w,{value:r??e,placeholder:n?"":"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",slotProps:{input:{readOnly:n}},onChange:a=>{i(a.target.value),o?.(a.target.value)},onBlur:()=>{r!==null&&r.trim()!==e&&t(r),i(null)},onKeyDown:a=>{a.key==="Enter"&&a.target.blur(),a.key==="Escape"&&i(null)},sx:{mt:1}})}import{useMemo as hu,useState as Dw}from"react";import{Box as ao,Button as Ng,IconButton as Ew}from"@mui/material";import Rw from"@mui/icons-material/AccountTreeOutlined";import Mw from"@mui/icons-material/LinkOutlined";import Pw from"@mui/icons-material/Close";import Ow from"@mui/icons-material/RedoOutlined";function si(e){return e.relations??[]}function Q8(e,t,o){return si(e).some(n=>n.type===o&&n.task_seq===t.seq)||si(t).some(n=>n.type===o&&n.task_seq===e.seq)}function Ag(e){return`${e.created_time??""}|${String(e.seq).padStart(12,"0")}`}function xu(e,t){let o=new Map(t.map(f=>[f.seq,f]));o.set(e.seq,e);let n=new Map,r=(f,g)=>{n.has(f)||n.set(f,new Set),n.has(g)||n.set(g,new Set),n.get(f).add(g),n.get(g).add(f)};for(let f of o.values())for(let g of si(f))g.type==="follow_up"&&o.has(g.task_seq)&&r(f.seq,g.task_seq);let i=new Set([e.seq]),a=[e.seq];for(;a.length>0;){let f=a.shift();for(let g of n.get(f)??[])i.has(g)||(i.add(g),a.push(g))}let l=[...i].map(f=>o.get(f)).filter(f=>!!f).sort((f,g)=>Ag(f).localeCompare(Ag(g))),s=new Set;for(let f of si(e))f.type==="related"&&s.add(f.task_seq);for(let f of o.values())f.seq!==e.seq&&si(f).some(g=>g.type==="related"&&g.task_seq===e.seq)&&s.add(f.seq);let m=[...s].map(f=>o.get(f)).filter(f=>f!==void 0&&f.seq!==e.seq),c=[...o.values()].filter(f=>f.seq!==e.seq&&si(f).some(g=>g.type==="duplicate_of"&&g.task_seq===e.seq)),p=si(e).find(f=>f.type==="duplicate_of")?.task_seq,d=p?o.get(p)??null:null,u=[...o.values()].filter(f=>f.seq!==e.seq&&(f.checklist??[]).some(g=>Number(g.task_seq??0)===e.seq));return{lineage:l,related:m,duplicates:c,duplicateOf:d,parents:u}}function bu(e,t){let o=xu(e,t);return(o.lineage.length>=2?o.lineage.length-1:0)+o.related.length+o.duplicates.length+(o.duplicateOf?1:0)+o.parents.length}function Lg(e,t){return bu(e,t)>0}import{ConfirmActionPopper as qw}from"@ehfuse/mui-confirm-action";import{Fragment as zw,jsx as dt,jsxs as bn}from"react/jsx-runtime";function Ns({item:e,caption:t,onOpen:o,onUnlink:n}){let r=e.is_notice||e.is_event?ze(e.icon||(e.is_notice?gt:Rt)):null;return bn(ao,{sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.5,borderRadius:1,"&:hover":{bgcolor:"#f7f7f5"},"&:hover .taskbox-relation-unlink":{opacity:1}},children:[t?dt(ao,{component:"span",sx:{flexShrink:0,px:.6,py:.1,borderRadius:.75,fontSize:11.5,fontWeight:500,color:"#8a6d1d",bgcolor:"#faf1d7"},children:t}):null,r?dt(r,{sx:{fontSize:16,flexShrink:0,color:e.icon_color||"#1e3a8a"}}):null,bn(ao,{component:"span",onClick:o,sx:{flex:1,minWidth:0,fontSize:14,color:e.completed?"#9a9a97":"#37352f",textDecoration:e.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...o?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[e.ticket_no?`${e.ticket_no} `:"",e.title]}),dt($e,{option:Mt(e),small:!0}),n?dt(Ew,{className:"taskbox-relation-unlink",size:"small","aria-label":"\uC5F0\uACB0 \uD574\uC81C",onClick:n,sx:{opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:dt(Pw,{sx:{fontSize:15}})}):null]})}function Fg({task:e,tasks:t,readOnly:o=!1,onOpenTask:n,onLink:r,onUnlink:i,onCreateFollowUp:a}){let l=Aa({onSubmit:(g,v)=>r?.(e.seq,g,v)}),[s,m]=Dw(null),c=hu(()=>xu(e,t),[e,t]),p=c.lineage.length>=2,d=hu(()=>bu(e,t),[e,t]),u=hu(()=>{let g=new Set;for(let v of c.lineage)g.add(v.seq);for(let v of c.related)g.add(v.seq);for(let v of c.duplicates)g.add(v.seq);for(let v of c.parents)g.add(v.seq);return c.duplicateOf&&g.add(c.duplicateOf.seq),[...g]},[c]),f=(g,v,D)=>{m({anchorEl:g,targetSeq:v,type:D})};return bn(jo,{icon:dt(Rw,{sx:{fontSize:19,display:"block"}}),title:bn(zw,{children:["\uAD00\uB828 \uC5C5\uBB34",d>0?dt(ao,{component:"span",sx:{fontSize:12.5,color:"#9a9a97"},children:d}):null]}),titleExtra:o?null:bn(ao,{sx:{ml:"auto",display:"flex",alignItems:"center",gap:.5},children:[a?dt(Ng,{size:"small",color:"inherit",startIcon:dt(Ow,{sx:{fontSize:16}}),onClick:()=>a(e.seq),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uD6C4\uC18D \uC5C5\uBB34"}):null,r?dt(Ng,{size:"small",color:"inherit",startIcon:dt(Mw,{sx:{fontSize:16}}),onClick:l.openDialog,sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uC5F0\uACB0"}):null]}),children:[bn(ao,{sx:{display:"flex",flexDirection:"column",mt:.5,pl:3.25},children:[p?dt(ao,{sx:{mb:c.related.length||c.duplicates.length||c.duplicateOf?1:0},children:c.lineage.map((g,v)=>{let D=g.seq===e.seq,b=v===c.lineage.length-1;return bn(ao,{sx:{display:"flex",gap:1},children:[bn(ao,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:14,flexShrink:0,pt:1.1},children:[dt(ao,{sx:{width:D?9:7,height:D?9:7,borderRadius:"50%",bgcolor:D?"#2f80ed":g.completed?"#9a9a97":"#c9c8c5",flexShrink:0}}),b?null:dt(ao,{sx:{width:"2px",flex:1,bgcolor:"#e6e6e3"}})]}),bn(ao,{sx:{flex:1,minWidth:0,pb:b?0:.5},children:[bn(ao,{sx:{display:"flex",alignItems:"center",gap:.75},children:[bn(ao,{component:"span",onClick:!D&&n?()=>n(g.seq):void 0,sx:{minWidth:0,fontSize:14,fontWeight:D?600:400,color:D?"#2f80ed":g.completed?"#9a9a97":"#37352f",textDecoration:g.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...!D&&n?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[g.ticket_no?`${g.ticket_no} `:"",g.title]}),dt($e,{option:Mt(g),small:!0})]}),dt(ao,{sx:{fontSize:12,color:"#9a9a97"},children:g.completed&&g.completed_time?`${g.completed_time} \uC644\uB8CC`:g.created_time??""})]})]},g.seq)})}):null,c.parents.map(g=>dt(Ns,{item:g,caption:"\uC0C1\uC704 \uC5C5\uBB34",onOpen:n?()=>n(g.seq):void 0},`parent-${g.seq}`)),c.duplicateOf?dt(Ns,{item:c.duplicateOf,caption:"\uC6D0\uBCF8",onOpen:n?()=>n(c.duplicateOf.seq):void 0,onUnlink:!o&&i?g=>f(g.currentTarget,c.duplicateOf.seq,"duplicate_of"):void 0}):null,c.duplicates.map(g=>dt(Ns,{item:g,caption:"\uC911\uBCF5",onOpen:n?()=>n(g.seq):void 0,onUnlink:!o&&i?v=>f(v.currentTarget,g.seq,"duplicate_of"):void 0},`dup-${g.seq}`)),c.related.map(g=>dt(Ns,{item:g,onOpen:n?()=>n(g.seq):void 0,onUnlink:!o&&i?v=>f(v.currentTarget,g.seq,"related"):void 0},`rel-${g.seq}`)),d===0?dt(ao,{sx:{px:1.25,py:.75,fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):null]}),r?dt(Is,{controller:l,task:e,tasks:t,excludeSeqs:u}):null,dt(qw,{open:!!s,anchorEl:s?.anchorEl??null,title:"\uC774 \uC5C5\uBB34\uC640\uC758 \uC5F0\uACB0\uC744 \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uD574\uC81C",onCancel:()=>m(null),onConfirm:()=>{s&&i?.(e.seq,s.targetSeq,s.type),m(null)}})]})}import{Fragment as ko,jsx as L,jsxs as Ze}from"react/jsx-runtime";function Or({label:e="\uBE44\uC5B4 \uC788\uC74C"}){return L(tt,{component:"span",sx:{color:"#9a9a97"},children:e})}function Kg({task:e,customTabs:t,statusOptions:o,avatarSrcByName:n,onChangeStatus:r,onChangeLabels:i,onAddLabelOption:a,onChangeProject:l,onAddProject:s,onChangeDate:m,onChangeReminder:c,onMemberEdit:p,onChangePriority:d,onChangeVisibility:u,onChangeRepeat:f,departments:g=[],onChangeEventTime:v,onChangeEventPlace:D,onChangeEventAddress:b,onChangeNote:S,onChangeNoteDraft:h,onChangeContent:E,contentTemplates:y,onSaveContentTemplate:T,onRemoveContentTemplate:I,contentLoading:A=!1,onAddChecklistItem:q,onToggleChecklistItem:C,onRemoveChecklistItem:k,onUpdateChecklistItem:x,onReorderChecklist:B,onConvertChecklistToTask:w,onOpenChecklistTask:_,onLinkChecklistTask:N,resolveChecklistTask:M,relatedTasksPool:$,onOpenRelatedTask:Y,onLinkRelatedTask:te,onUnlinkRelatedTask:ce,onCreateFollowUpTask:ue,onAddAttachments:j,onRemoveAttachment:O,onPreview:oe,onDownload:F,onUpdateComment:W,onRemoveComment:V,onToggleCommentReaction:U,currentUserName:de="",myAccountSeq:re=0,headerless:Te=!1,noticeAdmin:K=!1,hideProject:ne=!1,hideLabel:he=!1,showTitle:Se=!1,onChangeTitle:_e,onToggleCompleted:Le,onChangeIcon:ct,onChangeIconColor:Ge,employees:Pe=[],onAckConfirm:Ne,onRequestConfirm:G,onChangeBugField:ae,sprints:We=[],sprintProject:Ft=!1,hideSprint:$o=!1,onChangeSprint:$t,onChangeStoryPoints:ie,onChangeResolution:Qe,onClaimTask:Ho,onVerifyBug:Co}){let[Ht,Hn]=Ao(null),Bo=Aw(!1),[wt,Q]=Ao(null),[z,Oe]=Ao(null),[Wt,Ve]=Ao(null),[H,X]=Ao(!1),fe={[gn]:H?{maxHeight:120,opacity:1,overflow:"hidden",transition:"max-height 0.25s ease, opacity 0.2s ease"}:{minHeight:0,maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none",transition:"max-height 0.25s ease, opacity 0.2s ease"}},[De,rt]=Ao(null),[it,zt]=Ao(null),[Dt,Vt]=Ao(null),[to,Et]=Ao(null),[Wn,tn]=Ao(null),[fr,gr]=Ao(null),[ui,di]=Ao(null),Ee=!!e.is_notice,at=!!e.is_event,Wo=!!e.is_bug,ea=!!Ho&&Nl(e,re),{onReturnTask:pi,onReviewDone:fl,editPolicy:Ke,translateContent:Wr,contentTranslate:on}=me(),ta=Te&&!!fl&&!!pi&&Qt(e,re),[Vr,xr]=Ao(null),Mo=!!(Wr&&on),br=fu({taskSeq:e.seq,translatedTargets:e.translated_targets??[]}),fc=!!Ho&&Fl(e,re),oa=!!Co&&Wo&&!!e.completed&&re>0&&(e.author_account_seq??0)===re&&!(e.acks??[]).some(P=>P.account_seq===re),nn=!Cn(e,re),po=Sr(e,re,Ke),fo=!e.is_event&&(e.is_notice?re>0&&(e.author_account_seq??0)===re:(e.author_account_seq??0)===re||(e.manager_account_seq??0)===re),hr=e.is_notice||e.is_event?ze(e.icon||(e.is_notice?gt:Rt)):null,Ur=Ee?!Ll(e,re):nn,kr=ea||fc?Ze(Oo,{onClick:P=>di(P.currentTarget),children:[L(Qw,{sx:{fontSize:16,mr:.5}}),"\uAC00\uC838\uAC00\uAE30"]}):null,Vn=Ee?Os(e,Pe):"",Ut=Ee?ag(e,Pe,re):null,Xt=Ee?null:_r(e,re),gl=Eg(e.content??""),na=Rg(e.seq,!!(Xt?.canConfirm&&Ne),gl,()=>Ne?.(e.seq)),gc=Math.max(1,Math.ceil((1-na)*gl/1e3)),xc=!!(Xt&&Xt.total>0||Ee&&Ut),xl=(e.origin_license_seq??0)>0,bl=!Ee&&!xl,ra=Ze(ko,{children:[L(Be,{icon:L(Yw,{sx:{fontSize:17}}),label:"\uC791\uC131\uC790",sx:[qn(9),fe??null,...at?[]:[ht(1)]],children:e.created_by?Ze(ko,{children:[L(go,{names:[e.created_by],size:20,avatarSrcByName:n}),e.created_by]}):L(Or,{})}),L(Be,{icon:L(Wg,{sx:{fontSize:17}}),label:"\uC791\uC131\uC77C\uC2DC",sx:[qn(11),fe??null,...at?[]:[ht(2)]],children:e.created_time?Po(e.created_time):L(Or,{})})]});return Ze(ko,{children:[Se?Ze(tt,{sx:{px:2,pt:2,pb:.5,display:"flex",alignItems:"flex-start",gap:1},children:[fo?L(Lw,{checked:e.completed,icon:L(Uw,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:L(yu,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(P,At)=>{z||Oe({anchorEl:P.currentTarget,nextCompleted:At})},sx:{p:0,mt:.25}}):null,hr?at&&!nn?L($g,{onClick:P=>Q(P.currentTarget),sx:{display:"flex",p:.25,mt:.1,borderRadius:1,color:e.icon_color||"#1e3a8a","&:hover":{bgcolor:"#f2f2f0"}},children:L(hr,{sx:{fontSize:20}})}):L(tt,{sx:{display:"flex",p:0,mt:.25,color:e.icon_color||(Ee?"#e5484d":"#1e3a8a")},children:L(hr,{sx:{fontSize:20}})}):null,L(tt,{sx:{flex:1,minWidth:0},children:Ht!==null?L(tt,{component:"div",contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,ref:P=>{if(!P||P.dataset.focused)return;P.dataset.focused="1",P.focus();let At=document.createRange();At.selectNodeContents(P),At.collapse(!1);let yn=window.getSelection();yn?.removeAllRanges(),yn?.addRange(At)},onBlur:P=>{let At=(P.currentTarget.textContent??"").replace(/\n/g," ").trim();!Bo.current&&At&&At!==e.title&&_e(e.seq,At),Bo.current=!1,Hn(null)},onKeyDown:P=>{P.key==="Enter"&&(P.preventDefault(),P.target.blur()),P.key==="Escape"&&(Bo.current=!0,P.target.blur())},onPaste:P=>{P.preventDefault();let At=P.clipboardData.getData("text/plain").replace(/\n/g," ");document.execCommand("insertText",!1,At)},sx:{outline:"none",fontSize:19,fontWeight:600,color:"#37352f",lineHeight:"26px",cursor:"text",textDecoration:e.completed?"line-through":"none",userSelect:"text",wordBreak:"break-word"},children:Ht}):L(tt,{onClick:po?void 0:()=>Hn(e.title),sx:{fontSize:19,fontWeight:600,color:"#37352f",lineHeight:"26px",cursor:po?"default":"text",textDecoration:e.completed?"line-through":"none",userSelect:"text",wordBreak:"break-word"},children:e.title})}),L(_o,{open:!!z,anchorEl:z?.anchorEl??null,nextCompleted:z?.nextCompleted??!1,returnMode:!!pi&&Qt(e,re),onCancel:()=>Oe(null),onConfirm:P=>{z&&(P&&pi?pi(e,P):Le(e.seq,z.nextCompleted)),Oe(null)}})]}):null,Ze(tt,{sx:{py:1.5,display:"flex",flexDirection:"column",gap:0,[gn]:{pb:0,"& > :last-child":{mb:0}}},children:[L(bs,{hideProject:ne,pinColumns:!0,projectColumn:!at&&!he?2:"full",values:{tabKey:e.tab_key??"",managerName:e.manager_name,receiverNames:e.receiver_names,startDate:e.start_date,dueDate:e.due_date,reminders:vn(e),priority:e.priority,eventTime:e.event_time??"",eventPlace:e.event_place??"",eventAddress:e.event_address??""},customTabs:t,avatarSrcByName:Hl(e,n),hideDueDate:!at&&!!e.repeat_rule,notice:Ee,event:at,readOnly:nn,coreLocked:po,targetSummary:Vn,onChangeProject:P=>l(e.seq,P),onAddProject:s,onChangeStartDate:P=>m(e.seq,"start_date",P),onChangeDueDate:P=>m(e.seq,"due_date",P),onChangeReminder:P=>c(e.seq,P),onChangePriority:P=>d(e.seq,P),onChangeEventTime:P=>v?.(e.seq,P),onChangeEventPlace:P=>D?.(e.seq,P),onChangeEventAddress:P=>b?.(e.seq,P),onMemberEdit:P=>p(e,P,null),narrowCollapsedSx:fe,reminderLocked:e.completed,managerAction:kr,supportOrigin:(e.origin_license_seq??0)>0?{licenseName:e.origin_license_name??"",authorName:e.origin_author_name||e.author_name||e.created_by||"",contactPhone:e.origin_contact_phone??"",contactEmail:e.origin_contact_email??"",supportType:Yl(e.support_type??"")}:void 0,leading:Ze(ko,{children:[oa||kr&&(Ee||at)?Ze(tt,{sx:{gridColumn:"1 / -1",display:"flex",justifyContent:"flex-start",gap:2,px:2,py:1.5},children:[Ee||at?kr:null,oa?Ze(ko,{children:[L(ci,{variant:"contained",size:"large",onClick:()=>Co?.(e.seq,!0),sx:{bgcolor:"#2f80ed"},children:"\uAC80\uC99D\uC644\uB8CC"}),L(ci,{variant:"outlined",size:"large",color:"error",onClick:()=>Co?.(e.seq,!1),children:"\uC7AC\uC624\uD508"})]}):null]}):null,Wo&&e.ticket_no?L(Be,{icon:L($w,{sx:{fontSize:17}}),label:"\uD2F0\uCF13",sx:ht(1),children:L(tt,{component:"span",sx:{fontVariantNumeric:"tabular-nums"},children:e.ticket_no})}):null,at?null:L(tt,{sx:Wo&&e.ticket_no||bl||xc?ht(Wo&&e.ticket_no?2:1):{gridColumn:"1 / -1"},children:L(Be,{icon:L(Gw,{sx:{fontSize:17}}),label:"\uC0C1\uD0DC",onClick:nn||e.completed?void 0:P=>rt(P),children:L($e,{option:Mt(e)})})}),ta?Ze(Be,{icon:L(Hw,{sx:{fontSize:17}}),label:"\uAC80\uC218",sx:{gridColumn:"1 / -1"},children:[L(Oo,{onClick:P=>Oe({anchorEl:P.currentTarget,nextCompleted:!1}),children:"\uB418\uB3CC\uB9AC\uAE30"}),L(ci,{size:"small",variant:"contained",disableElevation:!0,onClick:P=>{P.stopPropagation(),xr(P.currentTarget)},sx:{ml:1,...Cr},children:"\uAC80\uC218\uC644\uB8CC"}),L(Br,{anchorEl:Vr,onCancel:()=>xr(null),onConfirm:()=>{fl?.(e),xr(null)}})]}):null,bl?(()=>{let P=ln(e),At=P==="all"?L(Ug,{sx:{fontSize:17,color:"#2f80ed"}}):P==="group"?L(Gg,{sx:{fontSize:17,color:"#d9730d"}}):L(Vg,{sx:{fontSize:17}}),yn=P==="all"?"\uC804\uCCB4\uACF5\uAC1C":P==="group"?`\uBD80\uC11C\uACF5\uAC1C \xB7 ${g.find(Gr=>Gr.seq===(e.visibility_group_seq??0))?.name??"\uBD80\uC11C"}`:"\uBE44\uACF5\uAC1C";return L(tt,{sx:at?void 0:ht(Wo?1:2),children:L(Be,{icon:At,label:"\uACF5\uAC1C",onClick:po||!u?void 0:Gr=>zt(Gr),children:yn})})})():null,!Wo&&!xl?L(tt,{sx:at?void 0:ht(1),children:L(Be,{icon:L(Zw,{sx:{fontSize:17,...e.repeat_rule?{color:"#2f80ed"}:{}}}),label:"\uBC18\uBCF5",onClick:po||!f?void 0:P=>Vt(P),children:e.repeat_rule?Bl(e.repeat_rule):L(Or,{label:"\uC5C6\uC74C"})})}):null,!Wo&&e.repeat_rule?L(tt,{sx:at?void 0:ht(2),children:L(Be,{icon:L(Jw,{sx:{fontSize:17}}),label:"\uBC18\uBCF5 \uC885\uB8CC",onClick:po||!f?void 0:P=>Et(P),children:e.repeat_until?`${e.repeat_until}\uAE4C\uC9C0`:L(Or,{})})}):null,Xt&&Xt.total>0?L(tt,{sx:at?void 0:ht(2),children:L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uD655\uC778",children:Xt.canConfirm?Ze(tt,{sx:{display:"inline-flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[L(ci,{size:"small",variant:"contained",onClick:()=>Ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",backgroundImage:`linear-gradient(to right, #1a5fc4 ${na*100}%, transparent ${na*100}%)`,boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}),Ze(tt,{component:"span",sx:{fontSize:14,color:"text.secondary",whiteSpace:"nowrap"},children:[gc,"\uCD08 \uB4A4 \uC790\uB3D9 \uD655\uC778"]})]}):Ze(ci,{size:"small",variant:"outlined",color:"inherit",startIcon:Xt.myTime?L(yu,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:P=>Ve({anchorEl:P.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:[Xt.count," / ",Xt.total]})})}):null,Ee&&Ut?L(tt,{sx:ht(2),children:L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uD655\uC778",children:L(tt,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,minWidth:0},children:Ut.canAck?L(ci,{size:"small",variant:"contained",onClick:()=>Ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):L(ci,{size:"small",variant:"outlined",color:"inherit",startIcon:Ut.acked?L(yu,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:P=>Ve({anchorEl:P.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:Ut.total>0&&Ut.count>=Ut.total?"\uC644\uB8CC":Ze(ko,{children:[Ut.count,L(tt,{component:"span",sx:{mx:.4},children:"/"}),Ut.total]})})})})}):null,Ft&&!$o&&!at&&!Ee?Ze(ko,{children:[L(Be,{icon:L(Ww,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:po?void 0:P=>tn(P),sx:ht(1),children:(e.sprint_seq??0)>0?We.find(P=>P.seq===e.sprint_seq)?.name??"\uC0AD\uC81C\uB41C \uC2A4\uD504\uB9B0\uD2B8":L(Or,{label:"\uBBF8\uBC30\uC815"})}),L(Be,{icon:L(Vw,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",sx:ht(2),children:L(tr,{value:(e.story_points??0)>0?String(e.story_points):"",placeholder:"\uBBF8\uCD94\uC815",readOnly:po,onCommit:P=>ie?.(e.seq,Number(P.replace(/[^0-9.]/g,""))||0)})})]}):null,at||he?null:L(tt,{sx:[ne?{gridColumn:"1 / -1"}:ht(1),fe??null],children:L(Be,{icon:L(Kw,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:nn?void 0:P=>gr(P),children:(e.label_keys??[]).length>0?L(yr,{labelKeys:e.label_keys??[],labelOptions:o}):L(Or,{})})})]}),afterProject:at?null:ra,trailing:Ze(ko,{children:[Wo?L(hs,{values:{repro:e.bug_repro??"",device:e.bug_device??"",where:e.bug_where??"",version:e.bug_version??"",resolution:e.resolution??""},readOnly:po,showResolution:!!e.completed,onChangeRepro:P=>ae?.(e.seq,"bug_repro",P),onChangeDevice:P=>ae?.(e.seq,"bug_device",P),onChangeWhere:P=>ae?.(e.seq,"bug_where",P),onChangeVersion:P=>ae?.(e.seq,"bug_version",P),onChangeResolution:P=>Qe?.(e.seq,P)}):null,at?ra:null,e.completed?Ze(ko,{children:[L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC790",sx:[qn(10),fe??null,...at?[]:[ht(1)]],children:e.completed_by?Ze(ko,{children:[L(go,{names:[e.completed_by],size:20,avatarSrcByName:n}),e.completed_by]}):L(Or,{})}),L(Be,{icon:L(Wg,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC77C\uC2DC",sx:[qn(12),fe??null,...at?[]:[ht(2)]],children:e.completed_time?Po(e.completed_time):L(Or,{})})]}):null]})}),Ze(tt,{sx:{display:"none",[gn]:{display:"block",mt:1.5,mb:0}},children:[L(mi,{sx:{borderColor:"#e6e6e3"}}),L($g,{onClick:()=>X(P=>!P),sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:.5,pt:1.25,pb:1.25,fontSize:13.5,bgcolor:"#f4f4f2",color:"#37352f","&:active":{opacity:.6}},children:H?Ze(ko,{children:["\uC811\uAE30 ",L(Nw,{sx:{fontSize:18}})]}):Ze(ko,{children:["\uC815\uBCF4 \uB354\uBCF4\uAE30 ",L(Fw,{sx:{fontSize:18}})]})})]}),Ze(tt,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3",[gn]:{mt:0,mb:1.25}}}),L(jo,{icon:L(jw,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",titleExtra:L(Bs,{content:e.content??"",templates:y??[],onApply:P=>E?.(e.seq,P),onSave:T,onRemove:I,readOnly:po||!y}),children:L(tt,{sx:{userSelect:"text"},children:A?L(tt,{sx:{minHeight:180,display:"flex",alignItems:"center",justifyContent:"center"},children:L(Bi,{})}):L(ys,{syncKey:e.seq,value:e.content??"",readOnly:po,viewFirst:!0,onTranslate:Mo?br.openDialog:void 0,onChange:P=>E(e.seq,P)})})}),e.is_bug?null:Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(jo,{icon:L(Xw,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:L(tt,{sx:{userSelect:"text"},children:L(zg,{value:e.note,readOnly:Ur,onCommit:P=>S(e.seq,P),onDraftChange:h?P=>h(e.seq,P):void 0})})})]}),at?null:Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(_s,{taskSeq:e.seq,checklist:e.checklist??[],removeLocked:Ur,onAdd:q,onToggle:C,confirmOnToggle:!0,onRemove:k,onUpdate:x,onReorder:B,onConvertToTask:w,onOpenLinkedTask:_,resolveLinkedTask:M,myAccountSeq:re,linkCandidates:$,linkBaseTask:e,onLinkExistingTask:N})]}),$&&!at&&!Ee&&(!nn||Lg(e,$))?Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Fg,{task:e,tasks:$,readOnly:nn,onOpenTask:Y,onLink:te,onUnlink:ce,onCreateFollowUp:ue})]}):null,L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Rs,{taskSeq:e.seq,attachments:e.attachments??[],removeLocked:Ee?Ur:po,onAdd:j,onRemove:O,onPreview:oe?(P,At)=>oe({...P,taskSeq:e.seq},At?.map(yn=>({...yn,taskSeq:e.seq}))):void 0,onDownload:F?P=>F({...P,taskSeq:e.seq}):void 0})]}),L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Bg,{taskSeq:e.seq,comments:e.comments??[],currentUserName:de,myAccountSeq:re,avatarSrcByName:n,onUpdate:W,onRemove:V,onToggleReaction:U,onPreview:oe?(P,At)=>oe({...P,taskSeq:e.seq},At?.map(yn=>({...yn,taskSeq:e.seq}))):void 0,onDownload:F?P=>F({...P,taskSeq:e.seq}):void 0})]}),Mo?L(qg,{controller:br,title:e.title,html:e.content??""}):null,L(hi,{anchorEl:De,value:e.status,options:Ee?fa:Wo?Yr:ga,onSelect:P=>r(e.seq,P),onClose:()=>rt(null)}),L(ku,{transitionDuration:0,anchorEl:Dt,open:!!Dt,onClose:()=>Vt(null),children:[{value:"",label:"\uC5C6\uC74C"},...ua].map(P=>L(Tu,{selected:(e.repeat_rule??"")===P.value,onClick:()=>{Vt(null),Hc(e,P.value,f)},sx:{fontSize:14,minWidth:140},children:P.label},P.value||"none"))}),L(tD,{anchorEl:to,open:!!to,onClose:()=>Et(null),selectedDate:e.repeat_until?new Date(`${e.repeat_until}T00:00:00`):new Date,onDateChange:P=>{Et(null),Wc(e,P,f)}}),L(ku,{transitionDuration:0,anchorEl:it,open:!!it,onClose:()=>zt(null),children:[{key:"involved",label:"\uBE44\uACF5\uAC1C",icon:L(Vg,{sx:{fontSize:17,color:"#57564f"}}),selected:ln(e)==="involved",onPick:()=>u?.(e.seq,"involved",0)},{key:"all",label:"\uC804\uCCB4\uACF5\uAC1C",icon:L(Ug,{sx:{fontSize:17,color:"#2f80ed"}}),selected:ln(e)==="all",onPick:()=>u?.(e.seq,"all",0)},...g.map(P=>({key:`group-${P.seq}`,label:`\uBD80\uC11C\uACF5\uAC1C \xB7 ${P.name}`,icon:L(Gg,{sx:{fontSize:17,color:"#d9730d"}}),selected:ln(e)==="group"&&(e.visibility_group_seq??0)===P.seq,onPick:()=>u?.(e.seq,"group",P.seq)}))].map(P=>Ze(Tu,{selected:P.selected,onClick:()=>{P.onPick(),zt(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[P.icon,P.label,P.selected?L(Hg,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},P.key))}),L(ku,{transitionDuration:0,anchorEl:Wn,open:!!Wn,onClose:()=>tn(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...We.filter(P=>`custom-${P.group_seq}`===String(e.tab_key??"")).map(P=>({seq:P.seq,label:Ko(P)}))].map(P=>Ze(Tu,{onClick:()=>{$t?.(e.seq,P.seq),tn(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[P.label,(e.sprint_seq??0)===P.seq?L(Hg,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},P.seq))}),L(ts,{anchorEl:Wt?.anchorEl??null,open:!!Wt?.open,acks:e.acks??[],total:Ut?.total??Xt?.total??0,pendingNames:Ut?.pendingNames??Xt?.pendingNames??[],avatarSrcByName:n,onRequestConfirm:G&&(Ut?Ut.count<Ut.total:Xt&&Xt.count<Xt.total)?()=>{G(e.seq),Ve(P=>P?{...P,open:!1}:null)}:void 0,onClose:()=>Ve(P=>P?{...P,open:!1}:null)}),L(Ps,{anchorEl:fr,selectedKeys:e.label_keys??[],labelOptions:o,onToggle:P=>i(e.seq,Ml(e.label_keys??[],P)),onAddLabel:a,onClose:()=>gr(null)}),L(Ir,{anchorEl:wt,value:e.icon??"",color:e.icon_color??"",onSelect:P=>{ct(e.seq,P),Q(null)},onSelectColor:Ge?P=>Ge(e.seq,P):void 0,onClose:()=>Q(null)}),L(eD,{open:!!ui,anchorEl:ui,title:ea?"\uC774 \uC5C5\uBB34\uB97C \uAC00\uC838\uC640 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC5C5\uBB34\uC758 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uAC00\uC838\uAC00\uAE30",onCancel:()=>di(null),onConfirm:()=>{Ho?.(e.seq),di(null)}})]})}import{ConfirmActionPopper as fD}from"@ehfuse/mui-confirm-action";import{Fragment as gD,jsx as ot,jsxs as $i}from"react/jsx-runtime";function GU(){let e=new Date,t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}`}function KU({open:e,task:t,onClose:o,onAddComment:n,onSaveFields:r,presentation:i="auto",myAccountSeq:a=0,onToggleCompleted:l,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c,activityItems:p,activityLoading:d,onLoadActivity:u,onPrint:f,onDelete:g,canDelete:v,...D}){let b=Ue(),{form:S,baseTask:h,task:E,hasPendingChanges:y,stagedBodyProps:T,changeTitle:I,changeIcon:A,changeIconColor:q}=Vc({open:e,task:t,isMobile:b,bodyProps:D,onSaveFields:r,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c}),C=Ua({taskSeq:E?.seq??0,items:p,loading:d,onLoad:u}),[k,x]=Yg(null),[B,w]=Yg(null),{editPolicy:_,shareText:N}=me(),M=!!g&&(v??(h?!jr(h,a,_,!(a>0&&(h.author_account_seq??0)===a)):!1)),$=nD(null);if(oD(()=>{$.current?.scrollTo({top:0})},[t?.seq]),!h||!E)return null;let Y=E,te=b||i==="dialog",ce=ot(Kg,{...T,headerless:te,task:Y,myAccountSeq:a,onChangeTitle:I,onToggleCompleted:l,onChangeIcon:A,onChangeIconColor:q,showTitle:b||i==="dialog"}),ue=ot(vg,{onSubmit:(j,O)=>n(Y.seq,j,O)},Y.seq);return te?$i(gD,{children:[ot(pD,{open:e,onClose:o,backdropClick:!y,locale:"ko",fontScale:{enabled:!0,default:1.1,min:.6},title:Y.is_notice?"\uACF5\uC9C0\uC0AC\uD56D":Y.is_event?"\uC77C\uC815":Y.is_bug?"\uC624\uB958":"\uC5C5\uBB34",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1},custom:[...b?[{raw:!0,icon:ot(rD,{variant:"contained",size:"small",disableElevation:!0,disabled:!y,onClick:y?()=>{S.submit()}:void 0,sx:{ml:1.5,height:32,minWidth:64,px:1.75,py:0,borderRadius:1,fontSize:14,fontWeight:600,bgcolor:"#2f80ed","&:hover":{bgcolor:"#2f80ed"},"&.Mui-disabled":{bgcolor:"#f2f2f0",color:"#c9c8c5"}},children:"\uC800\uC7A5\uD558\uAE30"})}]:[],{raw:!0,icon:ot(aD,{size:"small","aria-label":"\uB354\uBCF4\uAE30",onClick:j=>x(j.currentTarget),children:ot(sD,{sx:{color:"#6b7280"}})})}]},fullScreen:b,maxWidth:b?void 0:"md",width:b?void 0:720,mobilePresentation:b?"slide":void 0,tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},actions:{visible:!0,showCancelButton:!1,left:ue},sx:{DialogContent:{borderBottom:"none"}},dialogActionSx:{padding:"0 !important","@media (max-width:1023.95px)":{padding:"0 !important"},borderTop:"1px solid #37352f","& .left-actions":{flex:1,width:"100%",minWidth:0,"& > *":{flex:1,minWidth:0}},"& .right-actions":{display:"none"}},sections:[{id:"task-detail",title:"",showTitle:!1,children:ot(Fs,{sx:{userSelect:"none",width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:ce})}]},h.seq),$i(lD,{open:!!k,anchorEl:k,onClose:()=>x(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{zIndex:1500},children:[u?$i(vu,{onClick:()=>{x(null),C.openDialog()},children:[ot(Cu,{children:ot(uD,{fontSize:"small"})}),ot(Bu,{children:"\uD65C\uB3D9"})]}):null,$i(vu,{onClick:()=>{x(null),Ai(Y,!0,N)},children:[ot(Cu,{children:ot(mD,{fontSize:"small"})}),ot(Bu,{children:"\uACF5\uC720\uD558\uAE30"})]}),M?$i(vu,{onClick:j=>{let O=k??j.currentTarget;x(null),w(O)},sx:{color:"#e5484d"},children:[ot(Cu,{children:ot(cD,{fontSize:"small",sx:{color:"#e5484d"}})}),ot(Bu,{children:"\uC0AD\uC81C"})]}):null]}),ot(fD,{open:!!B,anchorEl:B,title:"\uC774 \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C",onCancel:()=>w(null),onConfirm:()=>{w(null),g?.(Y)}}),ot(Ls,{controller:C})]}):ot(iD,{anchor:"right",open:e,onClose:o,"aria-label":"\uC5C5\uBB34 \uC0C1\uC138",disableAutoFocus:!0,disableEnforceFocus:!0,sx:{zIndex:j=>j.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:$i(Fs,{sx:{display:"flex",flexDirection:"column",height:"100%",userSelect:"none"},children:[ot(Dg,{task:Y,myAccountSeq:a,onToggleCompleted:l,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c,onClose:o,activityItems:p,activityLoading:d,onLoadActivity:u,onPrint:f,onDelete:g,canDelete:v}),ot(jg,{sx:{borderColor:"#e6e6e3"}}),ot(Fs,{sx:{flex:1,minHeight:0},children:ot(dD,{ref:$,style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:ce})}),ot(jg,{sx:{borderColor:"#37352f"}}),ot(Fs,{sx:{flexShrink:0},children:ue})]})})}import{Box as To,Button as Du,IconButton as ex}from"@mui/material";import{FormDialog as tx}from"@ehfuse/mui-form-dialog";import _D from"@mui/icons-material/Add";import wD from"@mui/icons-material/DirectionsRunOutlined";import DD from"@mui/icons-material/EditOutlined";import{ClearTextField as ox,DateTextField as nx,LabelSelect as rx}from"@ehfuse/mui-form-controls";import{Box as ar,Button as bD,FormControlLabel as Iu,Radio as _u,RadioGroup as hD}from"@mui/material";import{FormDialog as kD}from"@ehfuse/mui-form-dialog";import{LabelSelect as TD}from"@ehfuse/mui-form-controls";import yD from"@ehfuse/overlay-scrollbar";import{useGlobalForm as xD}from"@ehfuse/forma";function Xg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}){let a=n.filter(c=>c.seq!==t?.seq&&c.group_seq===(t?.group_seq??0)&&c.status!=="closed"),l=o.length>0,s=xD({formId:we("taskbox-sprint-close-form"),initialValues:{mode:"backlog",moveToSeq:"0"},onValidate:c=>!(l&&c.mode==="move"&&!(Number(c.moveToSeq)>0)),onSubmit:c=>(i({mode:l?c.mode:"keep",moveToSprintSeq:c.mode==="move"&&Number(c.moveToSeq)||0,taskSeqs:o.map(p=>p.seq)}),!0)}),m={form:Zt({modalIdPrefix:"taskbox-sprint-close-dialog",open:e,onClose:r,onOpen:()=>s.setFormValues({mode:a.length>0?"move":"backlog",moveToSeq:String(a[0]?.seq??0)})})};return{form:s,modals:m,candidates:a,hasRemaining:l}}import{Fragment as SD,jsx as lo,jsxs as Hi}from"react/jsx-runtime";function Qg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}){let{form:a,modals:l,candidates:s,hasRemaining:m}=Xg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}),c=a.useFormValue("mode")??"backlog",p=Number(a.useFormValue("moveToSeq"))||0;return lo(kD,{open:l.form.isOpen,onClose:l.form.close,maxWidth:"sm",title:"\uBAA9\uD45C \uB9C8\uAC10",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-close",tabs:{visible:!1},actions:{showCancelButton:!0,right:lo(bD,{variant:"contained",onClick:()=>{a.submit()},disabled:m&&c==="move"&&!(p>0),children:"\uB9C8\uAC10"})},sections:[{id:"sprint-close",title:"",showTitle:!1,children:Hi(ar,{sx:{display:"flex",flexDirection:"column",gap:2},children:[Hi(ar,{sx:{fontSize:18,color:"#37352f"},children:[lo(ar,{component:"span",sx:{fontWeight:600},children:t?.name??""})," \uBAA9\uD45C\uB97C \uB9C8\uAC10\uD569\uB2C8\uB2E4."]}),m?Hi(SD,{children:[Hi(ar,{sx:{fontSize:15,color:"#6f6f6c"},children:["\uB05D\uB098\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uAC00"," ",o.length,"\uAC74 \uC788\uC2B5\uB2C8\uB2E4. \uC5B4\uB5BB\uAC8C \uD560\uAE4C\uC694?"]}),lo(ar,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:lo(yD,{style:{maxHeight:220},thumb:{width:6},children:o.map(d=>Hi(ar,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,borderBottom:"1px solid #f2f2f0","&:last-of-type":{borderBottom:"none"}},children:[lo(ar,{sx:{flex:1,minWidth:0,fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.title}),lo($e,{option:Mt(d)})]},d.seq))})}),Hi(hD,{value:c,onChange:(d,u)=>a.setFormValue("mode",u),children:[s.length>0?lo(Iu,{value:"move",control:lo(_u,{size:"small"}),label:"\uB2E4\uC74C \uBAA9\uD45C\uB85C \uC774\uC6D4",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}}):null,c==="move"&&s.length>0?lo(ar,{sx:{pl:4,pb:1},children:lo(TD,{form:a,name:"moveToSeq",size:"small",label:"",fullWidth:!0,options:s.map(d=>({value:String(d.seq),label:d.name}))})}):null,lo(Iu,{value:"backlog",control:lo(_u,{size:"small"}),label:"\uBBF8\uBC30\uC815(\uBC31\uB85C\uADF8)\uC73C\uB85C \uBE7C\uAE30",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}}),lo(Iu,{value:"keep",control:lo(_u,{size:"small"}),label:"\uC774 \uBAA9\uD45C\uC5D0 \uADF8\uB300\uB85C \uB450\uAE30",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}})]})]}):lo(ar,{sx:{fontSize:15,color:"#6f6f6c"},children:"\uB0A8\uC740 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774\uB300\uB85C \uB9C8\uAC10\uD558\uBA74 \uBAA9\uD45C\uAC00 \uC885\uB8CC\uB429\uB2C8\uB2E4."})]})}]})}var wu="custom-";function CD(e){return e.startsWith(wu)}function sG(e){return e>0?`${wu}${e}`:""}function hn(e){if(!CD(e))return 0;let t=Number(e.slice(wu.length));return Number.isInteger(t)&&t>0?t:0}import{useState as BD}from"react";import{useGlobalForm as vD,useModal as ID}from"@ehfuse/forma";import{ErrorAlert as Zg}from"@ehfuse/alerts";var $s={editingSeq:0,name:"",goal:"",start_date:"",end_date:""};function Jg({open:e,customTabs:t,onClose:o,onCreate:n,onUpdate:r,onChangeStatus:i,tasks:a=[],onCloseSprint:l,onRemove:s}){let m=t.filter(S=>S.useSprints&&!S.archived),[c,p]=BD(null),d=c?a.filter(S=>(S.sprint_seq??0)===c.seq&&!S.completed):[],u=vD({formId:we("taskbox-sprint-form"),initialValues:{groupKey:"",...$s},onValidate:S=>hn(S.groupKey)?String(S.name??"").trim()?!0:(Zg("\uBAA9\uD45C \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."),!1):(Zg("\uBAA9\uD45C\uB97C \uB9CC\uB4E4 \uD504\uB85C\uC81D\uD2B8\uB97C \uC120\uD0DD\uD558\uC138\uC694."),!1),onSubmit:async S=>{let h={name:String(S.name).trim(),goal:String(S.goal??"").trim(),start_date:S.start_date??"",end_date:S.end_date??""};if(S.editingSeq>0)return r(S.editingSeq,h),f.form.close(),!0;let E=await n({group_seq:hn(S.groupKey),...h});return E&&f.form.close(),E}}),f={manage:Zt({modalIdPrefix:"taskbox-sprint-manage-dialog",open:e,onClose:o,onOpen:()=>u.setFormValues({groupKey:m.length===1?m[0].key:"",...$s})}),form:ID({modalId:we("taskbox-sprint-form-dialog"),onClose:()=>u.setFormValues($s)})};return{form:u,modals:f,sprintTabs:m,closingSprint:c,remainingTasks:d,openCreateForm:()=>{u.setFormValues($s),f.form.open()},openEditForm:S=>{u.setFormValues({editingSeq:S.seq,groupKey:`custom-${S.group_seq}`,name:S.name,goal:S.goal,start_date:S.start_date,end_date:S.end_date}),f.form.open()},changeStatus:(S,h)=>{if(h==="closed"&&l){p(S);return}i(S.seq,h)},cancelCloseSprint:()=>p(null),confirmCloseSprint:S=>{c&&l?.(c.seq,S),p(null)},removeSprint:s}}import{Fragment as ax,jsx as Je,jsxs as qr}from"react/jsx-runtime";var ED=[{value:"planning",label:"\uACC4\uD68D\uC911"},{value:"active",label:"\uC9C4\uD589\uC911"},{value:"closed",label:"\uC885\uB8CC"}];function ix(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?e.slice(5).replace("-","."):"-"}function IG({open:e,customTabs:t,sprints:o,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,tasks:l=[],onCloseSprint:s,onRemove:m}){let c=Jg({open:e,customTabs:t,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,tasks:l,onCloseSprint:s,onRemove:m}),{form:p,modals:d,sprintTabs:u,closingSprint:f,remainingTasks:g}=c,v=Number(p.useFormValue("editingSeq"))||0,D=p.isSubmitting,b=new Map(t.map(h=>[hn(h.key),h.label])),S=Je(To,{children:u.length===0?Je(To,{sx:{py:2,fontSize:14,color:"#787774"},children:'\uBAA9\uD45C\uB97C \uC0AC\uC6A9\uD558\uB294 \uD504\uB85C\uC81D\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8 \uC218\uC815\uC5D0\uC11C "\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8) \uC0AC\uC6A9"\uC744 \uBA3C\uC800 \uCF1C\uC138\uC694.'}):Je(ax,{children:Je(To,{children:o.length===0?qr(To,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[Je(wD,{sx:{fontSize:48,color:"#d9d9d6"}}),Je(To,{sx:{fontSize:13.5},children:"\uB4F1\uB85D\uB41C \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):o.map(h=>qr(To,{sx:{display:"flex",flexDirection:"column",gap:1,"&:not(:last-of-type)::after":{content:'""',display:"block",my:1.75,borderBottom:"1px solid #f0efed"}},children:[qr(To,{sx:{minWidth:0},children:[qr(To,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Je(To,{component:"span",sx:{fontSize:18,fontWeight:600,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:h.name}),Je(To,{component:"span",sx:{flexShrink:0,px:1,py:.25,borderRadius:.75,bgcolor:"#f1f5f9",color:"#64748b",fontSize:13,fontWeight:500},children:b.get(h.group_seq)??"\uC0AD\uC81C\uB41C \uD504\uB85C\uC81D\uD2B8"}),qr(To,{component:"span",sx:{flexShrink:0,fontSize:14,color:"#57564f"},children:[ix(h.start_date)," ~"," ",ix(h.end_date)]})]}),h.goal?Je(To,{sx:{mt:.5,fontSize:14,color:"#787774",lineHeight:1.5},children:h.goal}):null]}),qr(To,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Je(rx,{label:"\uC0C1\uD0DC",showLabel:!1,size:"small",value:h.status,options:ED.map(E=>({value:E.value,label:E.label})),onChange:E=>c.changeStatus(h,String(E.target.value)),sx:{width:104,flexShrink:0}}),Je(ex,{"aria-label":"\uBAA9\uD45C \uC218\uC815",onClick:()=>c.openEditForm(h),sx:{color:"#9a9a97","&:hover":{color:"#2563eb"}},children:Je(DD,{sx:{fontSize:18}})}),Je(ex,{"aria-label":"\uBAA9\uD45C \uC0AD\uC81C",onClick:()=>c.removeSprint(h.seq),sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:Je(Gt,{style:{width:16,height:16}})})]})]},h.seq))})})});return qr(ax,{children:[Je(tx,{open:d.manage.isOpen,onClose:d.manage.close,maxWidth:"sm",title:"\uBAA9\uD45C \uAD00\uB9AC",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-manage",sections:[{id:"sprint-manage",showTitle:!1,children:S}],sectionContentPaddingTop:0,actions:{showCancelButton:!0,left:u.length>0?Je(Du,{startIcon:Je(_D,{}),onClick:c.openCreateForm,sx:{color:"#2563eb"},children:"\uC0C8 \uBAA9\uD45C"}):void 0,right:Je(Du,{variant:"contained",onClick:d.manage.close,children:"\uD655\uC778"})}}),Je(Qg,{open:f!==null,sprint:f,remainingTasks:g,sprints:o,onClose:c.cancelCloseSprint,onConfirm:c.confirmCloseSprint}),Je(tx,{open:d.form.isOpen,onClose:d.form.close,maxWidth:"sm",title:v>0?"\uBAA9\uD45C \uC218\uC815":"\uC0C8 \uBAA9\uD45C",locale:"ko",backdropClick:!1,tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-form",sections:[{id:"sprint-form",title:"",showTitle:!1,children:Je(To,{sx:{pt:1},children:qr(To,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:2.5,mt:1},children:[Je(rx,{form:p,name:"groupKey",label:"\uD504\uB85C\uC81D\uD2B8",size:"medium",options:u.map(h=>({value:h.key,label:h.label})),disabled:v>0}),Je(ox,{form:p,name:"name",label:"\uBAA9\uD45C \uC774\uB984",size:"medium",placeholder:"\uC608: 8\uC6D4 2\uC8FC\uCC28"}),Je(nx,{form:p,name:"start_date",size:"medium",label:"\uC2DC\uC791\uC77C"}),Je(nx,{form:p,name:"end_date",size:"medium",label:"\uC885\uB8CC\uC77C"}),Je(ox,{form:p,name:"goal",label:"\uC124\uBA85",size:"medium",placeholder:"\uC120\uD0DD \uC785\uB825",sx:{gridColumn:"1 / -1"}})]})})}],actions:{showCancelButton:!0,right:Je(Du,{variant:"contained",onClick:()=>{p.submit()},disabled:D,children:v>0?"\uC218\uC815":"\uBAA9\uD45C \uB9CC\uB4E4\uAE30"})}})]})}import{Box as Tt,Button as Ws,FormControlLabel as sx,Switch as cx}from"@mui/material";import{FormDialog as zD}from"@ehfuse/mui-form-dialog";import AD from"@mui/icons-material/LinkOutlined";import LD from"@mui/icons-material/LinkOffOutlined";import ND from"@mui/icons-material/SyncOutlined";import FD from"@mui/icons-material/ArrowForward";import{useRef as qD}from"react";import{useCallback as RD,useEffect as MD,useRef as Ya}from"react";import{useModal as PD}from"@ehfuse/forma";var Hs=[];function OD(){let e=Hs;if(Hs=[],e.length!==0){if(e.length===1){e[0].close();return}for(let t of e)window.dispatchEvent(new CustomEvent(`modal:close:${t.modalId}`));window.addEventListener("popstate",t=>t.stopImmediatePropagation(),{capture:!0,once:!0}),window.history.go(-e.length)}}function Xo({modalId:e,open:t,onClose:o,onOpen:n}){let r=Ya(n);r.current=n;let i=Ya(o);i.current=o;let a=Ya(t);a.current=t;let l=Ya(!1),s=PD({modalId:e,onClose:()=>{l.current=!1,a.current&&i.current()}}),m=Ya(s);m.current=s;let c=RD(()=>{l.current||!m.current.isOpen||(l.current=!0,m.current.close())},[]);return MD(()=>{if(t){r.current?.(),m.current.open();return}!m.current.isOpen||l.current||(l.current=!0,Hs.push({modalId:m.current.modalId,close:()=>m.current.close()}),Hs.length===1&&queueMicrotask(OD))},[t]),{...s,close:c}}function lx(e){let t=qD(e);t.current=e;let o={link:Xo({modalId:we("taskbox-calendar-link"),open:e.open,onClose:()=>t.current.onClose()})},{status:n}=e.googleApi,{calendarName:r}=me(),i=n.linked&&n.calendar_name||r||"\uC5C5\uBB34\uD568",a={connect:()=>t.current.googleApi.onConnect(),disconnect:()=>t.current.googleApi.onDisconnect(),toggleExport:l=>t.current.googleApi.onToggleExport(l),toggleImport:l=>t.current.googleApi.onToggleImport(l),resync:()=>t.current.googleApi.onResync?.()};return{modals:o,status:n,busy:!!e.googleApi.busy,canResync:!!e.googleApi.onResync,calendarName:i,actions:a}}import{Fragment as HD,jsx as je,jsxs as jt}from"react/jsx-runtime";function mx({from:e,to:t}){return jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[e,je(FD,{sx:{fontSize:16,color:"#787774"}}),t]})}function $D({size:e=28}){return jt(Tt,{component:"svg",viewBox:"0 0 48 48","aria-hidden":!0,sx:{width:e,height:e,flexShrink:0,mx:1},children:[je("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),je("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),je("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),je("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}function VG(e){let t=lx(e),{status:o,busy:n,calendarName:r,actions:i}=t,a=t.modals.link,l=jt(Tt,{sx:{display:"flex",flexDirection:"column",gap:"24px"},children:[jt(Tt,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,fontSize:15,lineHeight:1.8,color:"#37352f",display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[je(Tt,{children:jt(Tt,{component:"span",children:[je("b",{children:"\uB0B4\uBCF4\uB0B4\uAE30"}),"\uB294 \uB0B4 \uC5C5\uBB34\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758"," ",jt("b",{children:['"',r,'"']})," \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uD569\uB2C8\uB2E4."]})}),je(Tt,{children:jt(Tt,{component:"span",children:[je("b",{children:"\uAC00\uC838\uC624\uAE30"}),"\uB294 \uAD6C\uAE00 \uAE30\uBCF8 \uCE98\uB9B0\uB354 \uC77C\uC815\uC744 \uC5C5\uBB34\uD568\uC5D0 \uBCF4\uC5EC\uC8FC\uACE0, \uC5C5\uBB34\uD568\uC5D0\uC11C \uADF8 \uC77C\uC815\uC744 \uACE0\uCE58\uAC70\uB098 \uC9C0\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4."]})}),je(Tt,{children:jt(Tt,{component:"span",children:['"',r,'" \uCE98\uB9B0\uB354 \uC77C\uC815\uC740 \uC5C5\uBB34\uD568\uC5D0\uC11C \uC218\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.']})})]}),o.configured?jt(Tt,{sx:{border:"1px solid #e6e6e3",borderRadius:1,pl:2,pr:3,py:1.75,display:"flex",flexDirection:"column",gap:1.25},children:[jt(Tt,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[je($D,{}),jt(Tt,{sx:{flex:1,minWidth:0},children:[je(Tt,{sx:{fontSize:18,color:"#111",fontWeight:700},children:"\uAD6C\uAE00 \uACC4\uC815 \uC5F0\uACB0"}),je(Tt,{sx:{fontSize:15,color:"#111",mt:.5,lineHeight:1.6},children:o.linked?jt(HD,{children:[jt(Tt,{component:"span",sx:{display:"block",fontWeight:600},children:[o.google_email||"\uAD6C\uAE00 \uACC4\uC815"," ","\uC5D0 \uC5F0\uACB0\uB428"]}),jt(Tt,{component:"span",sx:{display:"block"},children:['\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 "',r,'" \uCE98\uB9B0\uB354\uAC00 \uB9CC\uB4E4\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.']})]}):`\uAD6C\uAE00 \uACC4\uC815\uC744 \uC5F0\uACB0\uD558\uBA74 \uB0B4 \uC5C5\uBB34\uAC00 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758 "${r}" \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uB429\uB2C8\uB2E4.`}),o.last_error?jt(Tt,{sx:{fontSize:13,color:"#c62828",mt:.5},children:["\uCD5C\uADFC \uC624\uB958: ",o.last_error]}):null]}),o.linked?je(Ws,{size:"small",variant:"outlined",color:"inherit",disabled:n,startIcon:je(LD,{sx:{fontSize:18}}),onClick:i.disconnect,sx:{flexShrink:0,whiteSpace:"nowrap",ml:2},children:"\uC5F0\uACB0 \uD574\uC81C"}):je(Ws,{size:"small",variant:"contained",disableElevation:!0,disabled:n,startIcon:je(AD,{sx:{fontSize:18}}),onClick:i.connect,sx:{flexShrink:0,whiteSpace:"nowrap",bgcolor:"#2563eb",ml:2},children:"\uC5F0\uACB0\uD558\uAE30"})]}),o.linked?jt(Tt,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",pl:4.5},children:[je(sx,{control:je(cx,{size:"small",checked:o.export_enabled,disabled:n,onChange:(s,m)=>i.toggleExport(m)}),label:jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:["\uB0B4\uBCF4\uB0B4\uAE30 (",je(mx,{from:"\uC5C5\uBB34\uD568",to:"\uAD6C\uAE00"}),")"]}),sx:{m:0,"& .MuiFormControlLabel-label":{fontSize:14,color:"#37352f"}}}),je(sx,{control:je(cx,{size:"small",checked:o.import_enabled,disabled:n,onChange:(s,m)=>i.toggleImport(m)}),label:jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:["\uAC00\uC838\uC624\uAE30 (",je(mx,{from:"\uAD6C\uAE00",to:"\uC5C5\uBB34\uD568"}),")"]}),sx:{m:0,"& .MuiFormControlLabel-label":{fontSize:14,color:"#37352f"}}}),t.canResync?je(Ws,{size:"small",color:"inherit",disabled:n||!o.export_enabled,startIcon:je(ND,{sx:{fontSize:18}}),onClick:i.resync,sx:{ml:"auto",whiteSpace:"nowrap"},children:"\uC804\uCCB4 \uB2E4\uC2DC \uB0B4\uBCF4\uB0B4\uAE30"}):null]}):null]}):je(Tt,{sx:{fontSize:14,color:"#8a6d1d",lineHeight:1.7},children:"\uC11C\uBC84\uC5D0 \uAD6C\uAE00 \uC5F0\uB3D9 \uC124\uC815(\uD074\uB77C\uC774\uC5B8\uD2B8 ID/\uBE44\uBC00\uBC88\uD638)\uC774 \uC5C6\uC5B4 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uAD00\uB9AC\uC790\uC5D0\uAC8C \uBB38\uC758\uD558\uC138\uC694."})]});return je(zD,{open:a.isOpen,onClose:a.close,width:680,title:"\uCE98\uB9B0\uB354 \uC5F0\uB3D9",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-link",sectionContentPaddingTop:0,sections:[{id:"calendar-link",showTitle:!1,children:l}],actions:{showCancelButton:!1,right:je(Ws,{variant:"contained",onClick:a.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{useState as Us}from"react";import GD from"@mui/icons-material/OpenInNewOutlined";import{Box as zr,Button as Eu,ButtonBase as KD,FormControlLabel as YD,Switch as jD}from"@mui/material";import{FormDialog as XD}from"@ehfuse/mui-form-dialog";import{ClearTextField as Ru}from"@ehfuse/mui-form-controls";import{DatePicker as fx,TimePicker as gx}from"@ehfuse/mui-datetime-picker";import xx from"@mui/icons-material/CalendarMonthOutlined";import bx from"@mui/icons-material/AccessTimeOutlined";import{useEffect as WD,useRef as Vs}from"react";import{useGlobalForm as VD}from"@ehfuse/forma";import{ErrorAlert as ux}from"@ehfuse/alerts";var UD={title:"",allDay:!0,startDate:"",endDate:"",startTime:"09:00",endTime:"10:00",location:"",description:""};function dx(e,t){let[o,n]=e.split(":").map(Number),r=((o*60+n+t)%1440+1440)%1440,i=a=>String(a).padStart(2,"0");return`${i(Math.floor(r/60))}:${i(r%60)}`}function px(e){let t=Vs(e);t.current=e;let o=Vs(null);e.event&&(o.current=e.event);let n=e.event??o.current,r=n?.editable===!1,i=Vs(r);i.current=r;let a=Vs(!!e.onDelete);e.open&&(a.current=!!e.onDelete);let l=VD({formId:we("taskbox-google-event-form"),initialValues:UD,onValidate:c=>t.current.busy||i.current?!1:c.title.trim()?c.startDate?!0:(ux("\uC2DC\uC791\uC77C\uC744 \uC120\uD0DD\uD558\uC138\uC694."),!1):(ux("\uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),!1),onSubmit:c=>{let p=c.endDate&&c.endDate>=c.startDate?c.endDate:c.startDate;return t.current.onSave({title:c.title.trim(),start_date:c.startDate,end_date:p,time:c.allDay?"":c.startTime,end_time:c.allDay?"":c.endTime,location:c.location.trim(),description:c.description.trim()}),!0}}),s={event:Xo({modalId:we("taskbox-google-event"),open:e.open,onClose:()=>t.current.onClose()})};WD(()=>{let c=e.event;if(!e.open||!c)return;let p=!!c.time;l.setFormValues({title:c.title==="(\uC81C\uBAA9 \uC5C6\uC74C)"?"":c.title,allDay:!p,startDate:c.start_date,endDate:c.end_date||c.start_date,startTime:p?c.time:"09:00",endTime:p?c.end_time||dx(c.time,60):"10:00",location:c.location??"",description:c.description??""})},[e.open,e.event]);let m={changeStartDate:c=>{let p=String(l.getFormValue("endDate")??"");l.setFormValue("startDate",c),(!p||p<c)&&l.setFormValue("endDate",c)},changeEndDate:c=>l.setFormValue("endDate",c),changeStartTime:c=>{let p=l.getFormValues();l.setFormValue("startTime",c),p.startDate===p.endDate&&p.endTime<=c&&l.setFormValue("endTime",dx(c,60))},changeEndTime:c=>l.setFormValue("endTime",c),changeAllDay:c=>l.setFormValue("allDay",c),remove:()=>t.current.onDelete?.()};return{form:l,modals:s,event:n,readOnly:r,busy:!!e.busy,canDelete:a.current,actions:m}}import{jsx as nt,jsxs as Wi}from"react/jsx-runtime";function hx(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e||"\uB0A0\uC9DC \uC120\uD0DD";let[t,o,n]=e.split("-").map(Number),r=["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"][new Date(t,o-1,n).getDay()];return`${t}.${String(o).padStart(2,"0")}.${String(n).padStart(2,"0")} (${r})`}function Mu(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00`):new Date}function kx(e){let t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function Tx(e){let t=/^(\d{2}):(\d{2})$/.exec(e);return t?{hour:t[1],minute:t[2]}:{hour:"09",minute:"00"}}function QD(e){switch(e){case"fromGmail":return"Gmail \uC5D0\uC11C \uC790\uB3D9 \uB4F1\uB85D\uB41C \uC77C\uC815(\uD56D\uACF5\uAD8C\xB7\uC608\uC57D \uB4F1)";case"birthday":return"\uC0DD\uC77C \uC77C\uC815";case"outOfOffice":return"\uBD80\uC7AC\uC911 \uC77C\uC815";case"focusTime":return"\uC9D1\uC911 \uC2DC\uAC04 \uC77C\uC815";case"workingLocation":return"\uADFC\uBB34 \uC704\uCE58 \uC77C\uC815";default:return"\uC774 \uC885\uB958\uC758 \uC77C\uC815"}}function ZD(e){let[t,o,n]=e.split("-").map(Number);window.open(`https://calendar.google.com/calendar/r/day/${t}/${o}/${n}`,"_blank")}function Gs({icon:e,label:t,placeholder:o,disabled:n,onClick:r}){return Wi(KD,{disabled:n,onClick:i=>r(i.currentTarget),sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.9,borderRadius:1,border:"1px solid #d9d9d6",bgcolor:n?"#f7f7f5":"#fff",color:t?"#37352f":"#9b9a97",fontSize:15,fontWeight:500,minWidth:0,whiteSpace:"nowrap","&:hover":{bgcolor:"#f7f7f5"},"&.Mui-disabled":{color:"#b9b8b4"}},children:[e,t||o]})}function cK(e){let t=Ue(),o=px(e),{form:n,event:r,readOnly:i,busy:a,actions:l}=o,s=o.modals.event,m=!!n.useValue("allDay"),c=String(n.useValue("startDate")??""),p=String(n.useValue("endDate")??""),d=String(n.useValue("startTime")??""),u=String(n.useValue("endTime")??""),[f,g]=Us(null),[v,D]=Us(null),[b,S]=Us(null),[h,E]=Us(null),y=r?Wi(zr,{sx:{display:"flex",flexDirection:"column",gap:2.25,pt:.5},children:[nt(zr,{sx:{bgcolor:i?"#fff4e5":"#f2f6fa",borderRadius:1,px:1.5,py:1,fontSize:14.5,lineHeight:1.7,color:"#37352f"},children:i?`${QD(r.event_type)}\uC740 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C\uB9CC \uC218\uC815\xB7\uC0AD\uC81C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`:`${r.calendar||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"} \uC758 \uC77C\uC815\uC785\uB2C8\uB2E4. \uC800\uC7A5\uD558\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uB429\uB2C8\uB2E4.${r.recurring?" \uBC18\uBCF5 \uC77C\uC815\uC774\uB77C \uC774 \uD68C\uCC28\uB9CC \uBC14\uB01D\uB2C8\uB2E4.":""}`}),nt(Ru,{label:"\uC81C\uBAA9",name:"title",form:n,disabled:i,onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),n.submit())},fullWidth:!0,autoFocus:!t&&!i}),nt(YD,{control:nt(jD,{checked:m,disabled:i,onChange:(T,I)=>l.changeAllDay(I),size:"small"}),label:"\uC885\uC77C",sx:{ml:0,"& .MuiFormControlLabel-label":{fontSize:15,color:"#37352f"}}}),Wi(zr,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[Wi(zr,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[nt(zr,{sx:{width:44,fontSize:14.5,color:"#57564f",flexShrink:0},children:"\uC2DC\uC791"}),nt(Gs,{icon:nt(xx,{sx:{fontSize:18,color:"#787774"}}),label:hx(c),placeholder:"\uB0A0\uC9DC \uC120\uD0DD",disabled:i,onClick:g}),m?null:nt(Gs,{icon:nt(bx,{sx:{fontSize:18,color:"#787774"}}),label:d,placeholder:"\uC2DC\uAC01",disabled:i,onClick:S})]}),Wi(zr,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[nt(zr,{sx:{width:44,fontSize:14.5,color:"#57564f",flexShrink:0},children:"\uC885\uB8CC"}),nt(Gs,{icon:nt(xx,{sx:{fontSize:18,color:"#787774"}}),label:hx(p),placeholder:"\uB0A0\uC9DC \uC120\uD0DD",disabled:i,onClick:D}),m?null:nt(Gs,{icon:nt(bx,{sx:{fontSize:18,color:"#787774"}}),label:u,placeholder:"\uC2DC\uAC01",disabled:i,onClick:E})]})]}),nt(Ru,{label:"\uC7A5\uC18C",name:"location",form:n,disabled:i,fullWidth:!0}),nt(Ru,{label:"\uC124\uBA85",name:"description",form:n,disabled:i,fullWidth:!0,multiline:!0,minRows:3,maxRows:8}),nt(fx,{anchorEl:f,open:!!f,onClose:()=>g(null),selectedDate:Mu(c),onDateChange:T=>{l.changeStartDate(kx(T)),g(null)},centered:t,locale:"ko"}),nt(fx,{anchorEl:v,open:!!v,onClose:()=>D(null),selectedDate:Mu(p||c),minDate:c?Mu(c):void 0,onDateChange:T=>{l.changeEndDate(kx(T)),D(null)},centered:t,locale:"ko"}),nt(gx,{anchorEl:b,open:!!b,onClose:()=>S(null),value:Tx(d),format:"HH:mm",minuteStep:5,autoApply:!0,centered:t,locale:"ko",onChange:(T,I)=>{l.changeStartTime(`${T}:${I}`),S(null)}}),nt(gx,{anchorEl:h,open:!!h,onClose:()=>E(null),value:Tx(u),format:"HH:mm",minuteStep:5,autoApply:!0,centered:t,locale:"ko",onChange:(T,I)=>{l.changeEndTime(`${T}:${I}`),E(null)}})]}):null;return nt(XD,{open:s.isOpen,onClose:s.close,width:520,title:"\uAD6C\uAE00 \uC77C\uC815",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!i&&o.canDelete,confirmConfig:{title:r?.recurring?"\uC774 \uD68C\uCC28\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC77C\uC815\uC744 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C"}}},onDelete:l.remove,fontScale:{enabled:!0},fontScaleKey:"taskbox-google-event",sectionContentPaddingTop:0,sections:[{id:"google-event",showTitle:!1,children:y}],actions:{showCancelButton:!i,right:i?Wi(zr,{sx:{display:"flex",gap:"1rem",alignItems:"center"},children:[nt(Eu,{variant:"outlined",startIcon:nt(GD,{}),onClick:()=>r&&ZD(r.start_date),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC5F4\uAE30"}),nt(Eu,{variant:"contained",onClick:s.close,sx:{minWidth:72},children:"\uB2EB\uAE30"})]}):nt(Eu,{variant:"contained",onClick:()=>{n.submit()},disabled:a,children:"\uC800\uC7A5"})}})}import{useMemo as Cx,useState as nE}from"react";import{Box as ja,Button as rE,Typography as iE}from"@mui/material";import{FormDialog as aE}from"@ehfuse/mui-form-dialog";import{SearchTextField as lE}from"@ehfuse/mui-form-controls";import{TreeView as sE}from"@ehfuse/tree-view";import{useMemo as JD,useRef as yx}from"react";import{useFormaState as eE,useGlobalForm as tE}from"@ehfuse/forma";function oE(e){let t=[],o=n=>{for(let r of n.employees??[])t.push(r);for(let r of n.groups??[])o(r)};for(let n of e)o(n);return t}function Sx(e){let t=yx(e);t.current=e;let o=JD(()=>oE(e.groups),[e.groups]),n=yx(o);n.current=o;let r=eE({openCount:0}),i=tE({formId:we("taskbox-employee-select-form"),initialValues:{selectedSeqs:[]},onSubmit:s=>{let m=n.current.filter(c=>s.selectedSeqs.includes(c.seq));return t.current.onConfirm(t.current.multiple?m:m.slice(0,1)),t.current.onClose(),!0}}),a={select:Xo({modalId:we("taskbox-employee-select"),open:e.open,onClose:()=>t.current.onClose(),onOpen:()=>{i.setFormValues({selectedSeqs:t.current.selectedSeqs}),r.setValue("openCount",Number(r.getValue("openCount")??0)+1)}})};return{form:i,modals:a,ui:r,allEmployees:o,changeSelection:s=>i.setFormValue("selectedSeqs",s)}}import{Fragment as pE,jsx as kn,jsxs as fE}from"react/jsx-runtime";function Bx(e){return`${e.name}#${e.seq}`}function cE(e){return Number(e.slice(e.lastIndexOf("#")+1))||0}function mE(e,t){return t?[e.name,e.department,e.role_name,e.work_position].filter(Boolean).some(o=>String(o).toLowerCase().includes(t)):!0}function uE(e){let t=[[e.name,e.role_name].filter(Boolean).join(" "),e.department].filter(Boolean).join(" / ");return{id:`emp:${e.seq}`,label:Bx(e),renderLabel:kn(ja,{component:"span",sx:{display:"inline-flex",alignItems:"baseline",gap:.75},children:kn(ja,{component:"span",sx:{fontWeight:400,color:"text.primary"},children:t})})}}function vx(e,t){let o=(e.groups??[]).map(r=>vx(r,t)).filter(r=>r!==null),n=(e.employees??[]).filter(r=>mE(r,t)).map(uE);return o.length===0&&n.length===0?null:{id:`group:${e.key}`,label:e.name,children:[...o,...n]}}function dE({groups:e,allEmployees:t,initialSelectedSeqs:o,multiple:n,isMobile:r,onSelectionChange:i}){let[a,l]=nE(""),s=Cx(()=>e.map(c=>vx(c,a.trim().toLowerCase())).filter(c=>c!==null),[e,a]),m=Cx(()=>t.filter(c=>o.includes(c.seq)).map(Bx),[]);return fE(pE,{children:[kn(ja,{sx:{px:1.5,py:1,borderBottom:"1px solid #cccccc",flexShrink:0},children:kn(lE,{size:"small",fullWidth:!0,placeholder:"\uC774\uB984, \uBD80\uC11C \uAC80\uC0C9",onSearch:l,onClear:()=>l(""),sx:{"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{px:0}}})}),kn(ja,{sx:r?{display:"flex",flexDirection:"column"}:{flex:1,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:kn(sE,{items:s,checkbox:!0,multiSelect:n,selectionMode:"child",showSearch:!1,defaultExpanded:!0,initialSelections:m,onChange:c=>i(c.map(cE).filter(p=>p>0)),styles:{border:"none",borderRadius:"0"}})})]})}function BK({open:e,title:t="\uC9C1\uC6D0 \uC120\uD0DD",hint:o="",groups:n,multiple:r=!1,selectedSeqs:i,confirmText:a="\uD655\uC778",onConfirm:l,onClose:s}){let m=Ue(),c=i??[],p=Sx({open:e,groups:n,multiple:r,selectedSeqs:c,onConfirm:l,onClose:s}),{form:d,allEmployees:u}=p,f=p.modals.select,g=d.useValue("selectedSeqs")??[],v=Number(p.ui.useValue("openCount")??0);return kn(aE,{open:f.isOpen,onClose:f.close,title:`${t}${r&&g.length>0?` (${g.length}\uBA85)`:""}`,locale:"ko",fullScreen:m,mobilePresentation:m?"slide":"dialog",draggable:!0,width:"600px",tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},scrollPastLastSection:!1,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-employee-select",sections:[{id:"employee-select",title:"\uC9C1\uC6D0 \uC120\uD0DD",showTitle:!1,children:kn(ja,{sx:{...m?{}:{height:560},display:"flex",flexDirection:"column",border:"1px solid #cccccc",borderRadius:1,...m?{}:{overflow:"hidden"},userSelect:"none"},children:kn(dE,{groups:n,allEmployees:u,initialSelectedSeqs:c,multiple:r,isMobile:m,onSelectionChange:p.changeSelection},v)})}],dialogActionSx:{"@media (max-width:1023.95px)":{gap:"0.75rem !important","& .left-actions":{flex:1,minWidth:0},"& .right-actions":{flex:1}}},actions:{visible:!0,showCancelButton:!1,left:o?kn(iE,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line",lineHeight:1.35},children:o}):void 0,right:kn(rE,{variant:"contained",onClick:()=>{d.submit()},children:a})}})}import{useMemo as XE}from"react";import{Box as sr,Button as Gx}from"@mui/material";import{FormDialog as QE}from"@ehfuse/mui-form-dialog";import{LabelSelect as zu}from"@ehfuse/mui-form-controls";import ZE from"@mui/icons-material/SpeedOutlined";import{Box as Ro,Button as hE}from"@mui/material";import{FormDialog as kE}from"@ehfuse/mui-form-dialog";import{LabelSelect as TE,NumberField as yE}from"@ehfuse/mui-form-controls";import SE from"@ehfuse/overlay-scrollbar";import{useEffect as gE,useRef as xE}from"react";import{useGlobalForm as bE}from"@ehfuse/forma";function Ix(e){return`byAccount.a${e}`}function Xa(e){return Math.max(0,Math.floor(Number(e)||0))}function Pu(e){return{basis:e.basis,default_capacity:e.default_capacity,byAccount:Object.fromEntries(Object.entries(e.by_account??{}).map(([t,o])=>[`a${t}`,o]))}}function _x({open:e,capacity:t,onClose:o,onSave:n}){let r=bE({formId:we("taskbox-workload-capacity-form"),initialValues:Pu(t??Kr),onSubmit:async l=>{let s={};for(let[m,c]of Object.entries(l.byAccount??{})){let p=Xa(c),d=Number(m.slice(1));d>0&&p>0&&(s[d]=p)}return await n({...t??Kr,basis:l.basis,default_capacity:Xa(l.default_capacity),by_account:s}),!0}}),i={form:Zt({modalIdPrefix:"taskbox-workload-capacity-dialog",open:e,onClose:o,onOpen:()=>r.setFormValues(Pu(t??Kr))})},a=xE(!0);return gE(()=>{if(a.current){a.current=!1;return}e&&r.setFormValues(Pu(t??Kr))},[t]),{form:r,modals:i}}import{jsx as so,jsxs as Qa}from"react/jsx-runtime";var CE=[{value:"count",label:"\uBBF8\uC644\uB8CC \uAC74\uC218"},{value:"points",label:"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8"}];function wx({form:e,name:t,unit:o,size:n,clearWhenZero:r}){let i=Xa(e.useFormValue(t));return so(yE,{size:n,fullWidth:!0,min:0,max:999,thousandSeparator:!1,align:"right",suffix:o,clearWhenZero:r,value:i,onValueChange:a=>e.setFormValue(t,Xa(a))})}function Dx({open:e,capacity:t,employees:o,onClose:n,onSave:r}){let{form:i,modals:a}=_x({open:e,capacity:t,onClose:n,onSave:r}),l=i.useFormValue("basis")==="points"?"SP":"\uAC74";return so(kE,{open:a.form.isOpen,onClose:a.form.close,maxWidth:"sm",title:"\uC778\uC6D0 \uC6A9\uB7C9",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-workload-capacity",tabs:{visible:!1},actions:{showCancelButton:!0,right:so(hE,{variant:"contained",onClick:()=>{i.submit()},children:"\uC800\uC7A5"})},sectionContentPaddingTop:0,sections:[{id:"capacity",title:"",showTitle:!1,children:Qa(Ro,{sx:{display:"flex",flexDirection:"column",gap:2},children:[so(Ro,{sx:{fontSize:15,color:"#37352f"},children:"\uD55C \uC0AC\uB78C\uC774 \uB3D9\uC2DC\uC5D0 \uC548\uC744 \uC218 \uC788\uB294 \uC591\uC744 \uC815\uD569\uB2C8\uB2E4. \uC774 \uAC12\uC744 \uB118\uAE30\uBA74 \uC6CC\uD06C\uB85C\uB4DC \uCC28\uD2B8\uC5D0\uC11C \uBD89\uAC8C \uD45C\uC2DC\uB429\uB2C8\uB2E4. 0 \uC73C\uB85C \uB450\uBA74 \uC6A9\uB7C9\uC744 \uC4F0\uC9C0 \uC54A\uACE0 \uD300 \uD3C9\uADE0\uC744 \uAE30\uC900\uC73C\uB85C \uBD05\uB2C8\uB2E4."}),Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[so(Ro,{sx:{width:104,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uC138\uB294 \uB2E8\uC704"}),so(TE,{form:i,name:"basis",size:"medium",fullWidth:!0,label:"",options:CE})]}),Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[so(Ro,{sx:{width:104,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uAE30\uBCF8 \uC6A9\uB7C9"}),so(wx,{form:i,name:"default_capacity",size:"medium",unit:l})]}),so(Ro,{sx:{pl:"119px",mt:-1.25,fontSize:13.5,color:"#37352f"},children:`\uC804\uC6D0 \uACF5\uD1B5 \uAE30\uC900(${l}) \xB7 0 = \uC6A9\uB7C9 \uC548 \uC500`}),so(Ro,{sx:{fontSize:16,fontWeight:700,color:"#37352f"},children:"\uC0AC\uB78C\uBCC4 \uC608\uC678"}),o.length===0?so(Ro,{sx:{fontSize:15,color:"#787774"},children:"\uC9C1\uC6D0 \uBAA9\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uAE30\uBCF8 \uC6A9\uB7C9\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4."}):so(Ro,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:so(SE,{style:{maxHeight:260},thumb:{width:6},children:o.filter(s=>Number(s.account_seq)>0).map(s=>Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5,px:2,py:1,borderBottom:"1px solid #f2f2f0","&:last-of-type":{borderBottom:"none"}},children:[Qa(Ro,{sx:{flex:1,minWidth:0,fontSize:16,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[s.name,s.department?so(Ro,{component:"span",sx:{ml:1,fontSize:14,color:"#787774"},children:s.department}):null]}),so(Ro,{sx:{width:132,flexShrink:0},children:so(wx,{form:i,name:Ix(Number(s.account_seq)),size:"small",unit:l,clearWhenZero:!0})})]},s.account_seq))})})]})}]})}import{lazy as BE,Suspense as vE}from"react";import{Box as IE}from"@mui/material";import{jsx as Ks}from"react/jsx-runtime";function _E({height:e}){return Ks(IE,{sx:typeof e=="number"?{height:e,minHeight:120}:{position:"absolute",inset:0}})}function Za(e,t){let o=BE(e);return function(r){return Ks(vE,{fallback:Ks(_E,{height:r.height??t}),children:Ks(o,{...r})})}}var Ex=Za(()=>import("./chunks/SprintVelocityChart-DMENH7QX.js").then(e=>({default:e.SprintVelocityChart})),200),Rx=Za(()=>import("./chunks/SprintBurndownChart-4GZ5RXBN.js").then(e=>({default:e.SprintBurndownChart})),200),Mx=Za(()=>import("./chunks/CumulativeFlowChart-BDDP3H2H.js").then(e=>({default:e.CumulativeFlowChart})),220),Px=Za(()=>import("./chunks/LeadTimeDistributionChart-45ETE64V.js").then(e=>({default:e.LeadTimeDistributionChart})),200),Ox=Za(()=>import("./chunks/WorkloadChart-PKXYKQYH.js").then(e=>({default:e.WorkloadChart})),200);import{Box as LE,Button as NE}from"@mui/material";import{FormDialog as FE}from"@ehfuse/mui-form-dialog";import{useState as wE}from"react";import{Box as qt,Button as DE,Menu as EE,MenuItem as RE}from"@mui/material";import ME from"@mui/icons-material/PersonOutlineOutlined";import PE from"@ehfuse/overlay-scrollbar";import{jsx as eo,jsxs as lr}from"react/jsx-runtime";var qx=56,zx=68,Ax=96;function OE(e){let t=String(e.due_date??"").slice(0,10);return t?t.slice(5).replace("-","/"):"-"}function Lx(e,t){let o=String(e.due_date??"").slice(0,10);return!!o&&o<t}function Nx({tasks:e,row:t,todayStr:o,employees:n,rows:r,height:i=200,hideSummary:a=!1,onChangeManager:l,onOpenTask:s}){let[m,c]=wE(null),p=kl(e,t.accountSeq),d=u=>r.find(f=>f.accountSeq===u)?.total??0;return lr(qt,{sx:{display:"flex",flexDirection:"column",minHeight:0,height:i},children:[a?null:lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:.5,pb:.75,fontSize:14,color:"#37352f"},children:[eo(qt,{component:"span",sx:{fontWeight:700},children:t.name}),lr(qt,{component:"span",children:["\uBBF8\uC644\uB8CC ",p.length,"\uAC74"]}),t.capacity>0?lr(qt,{component:"span",sx:{color:t.load>t.capacity?"#e5484d":"#787774"},children:["\xB7 \uC6A9\uB7C9 ",t.capacity," \uC911 ",t.load]}):null]}),lr(qt,{sx:{flex:1,minHeight:0,display:"flex",flexDirection:"column",border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:[lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,flexShrink:0,bgcolor:"#fafaf9",borderBottom:"1px solid #e6e6e3",fontSize:13.5,fontWeight:600,color:"#37352f"},children:[eo(qt,{sx:{width:qx,flexShrink:0},children:"\uB9C8\uAC10"}),eo(qt,{sx:{flex:1,minWidth:0},children:"\uC5C5\uBB34"}),eo(qt,{sx:{width:zx,flexShrink:0,textAlign:"center"},children:"\uC911\uC694\uB3C4"}),l?eo(qt,{sx:{width:Ax,flexShrink:0,textAlign:"center"},children:"\uCC45\uC784\uC790"}):null]}),eo(qt,{sx:{flex:1,minHeight:0},children:eo(PE,{style:{height:"100%"},thumb:{width:6},children:p.length===0?eo(qt,{sx:{p:2,fontSize:14,color:"#9a9a97"},children:"\uBBF8\uC644\uB8CC \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):p.map(u=>lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1.5,borderBottom:"1px solid #f2f2f0"},children:[eo(qt,{sx:{width:qx,flexShrink:0,fontSize:13.5,color:Lx(u,o)?"#e5484d":"#787774",fontWeight:Lx(u,o)?700:400},children:OE(u)}),eo(qt,{onClick:s?()=>s(u.seq):void 0,sx:{flex:1,minWidth:0,fontSize:14.5,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...s?{cursor:"pointer","&:hover":{textDecoration:"underline"}}:{}},children:u.title}),eo(qt,{sx:{width:zx,flexShrink:0,display:"flex",justifyContent:"center"},children:eo(oo,{priority:u.priority})}),l?eo(qt,{sx:{width:Ax,flexShrink:0,display:"flex",justifyContent:"center"},children:eo(DE,{size:"small",variant:"outlined",startIcon:eo(ME,{sx:{fontSize:17}}),onClick:f=>c({el:f.currentTarget,taskSeq:u.seq}),children:"\uC62E\uAE30\uAE30"})}):null]},u.seq))})})]}),eo(EE,{anchorEl:m?.el??null,open:!!m,onClose:()=>c(null),transitionDuration:0,children:n.filter(u=>Number(u.account_seq)>0&&Number(u.account_seq)!==t.accountSeq).map(u=>lr(RE,{onClick:()=>{m&&l&&l(m.taskSeq,Number(u.account_seq),u.name),c(null)},sx:{fontSize:14,minWidth:200},children:[eo(qt,{sx:{flex:1},children:u.name}),lr(qt,{component:"span",sx:{ml:2,fontSize:13,color:"#787774"},children:[d(Number(u.account_seq)),"\uAC74"]})]},u.account_seq))})]})}import{useEffect as qE,useRef as zE,useState as AE}from"react";function Fx({open:e,row:t,onClose:o,onOpenTask:n}){let[r,i]=AE(t);qE(()=>{t&&i(t)},[t]);let a=zE(0),l={dialog:Zt({modalIdPrefix:"taskbox-workload-person-dialog",open:e,onClose:()=>{o();let m=a.current;a.current=0,m>0&&n?.(m)}})};return{modals:l,shown:t??r,openTask:n?m=>{if(!l.dialog.isOpen){n(m);return}a.current=m,l.dialog.close()}:void 0}}import{jsx as Ys}from"react/jsx-runtime";function $x({open:e,row:t,rows:o,tasks:n,todayStr:r,employees:i,onClose:a,onChangeManager:l,onOpenTask:s}){let{modals:m,shown:c,openTask:p}=Fx({open:e,row:t,onClose:a,onOpenTask:s}),d=c?kl(n,c.accountSeq).length:0;return Ys(FE,{open:m.dialog.isOpen,onClose:m.dialog.close,maxWidth:"sm",title:c?`${c.name} \uC5C5\uBB34 (${d})`:"\uC5C5\uBB34",locale:"ko",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-workload-person",tabs:{visible:!1},actions:{showCancelButton:!1,right:Ys(NE,{variant:"contained",onClick:m.dialog.close,children:"\uB2EB\uAE30"})},sections:[{id:"person-tasks",title:"",showTitle:!1,children:Ys(LE,{sx:{minHeight:0},children:c?Ys(Nx,{tasks:n,row:c,rows:o,todayStr:r,employees:i,height:"min(420px, 52vh)",hideSummary:!0,onChangeManager:l,onOpenTask:p}):null})}]})}import{useMemo as $E}from"react";import{Box as Lo,Tooltip as HE}from"@mui/material";import{OverlayScrollbar as WE}from"@ehfuse/overlay-scrollbar";import{jsx as yo,jsxs as Xs}from"react/jsx-runtime";var Hx="#e5484d",VE="#2f80ed",UE="#9a9a97",Ou=30,GE=96,js=56;function qu({count:e,max:t,color:o,title:n}){let r=e>0&&t>0?.18+e/t*.72:0;return yo(HE,{title:n,arrow:!0,disableInteractive:!0,placement:"top",children:yo(Lo,{sx:{display:"flex",alignItems:"center",justifyContent:"center",borderRight:"1px solid #ececea",borderBottom:"1px solid #ececea",bgcolor:r>0?`${o}${Math.round(r*255).toString(16).padStart(2,"0")}`:"transparent",color:r>.55?"#fff":"#37352f",fontSize:12.5,fontWeight:e>0?700:400,fontVariantNumeric:"tabular-nums"},children:e>0?e:""})})}function Wx({tasks:e,todayStr:t,weeks:o=6,height:n=200}){let r=$E(()=>cd(e,{todayStr:t,weeks:o}),[e,t,o]);if(r.rows.length===0)return yo(Lo,{sx:aa(n),children:yo(hl,{text:"\uB2F4\uB2F9\uC790\uAC00 \uC9C0\uC815\uB41C \uBBF8\uC644\uB8CC \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",height:n})});let i=`${GE}px ${js}px repeat(${r.weeks.length}, minmax(${js}px, 1fr)) ${js}px ${js}px`,a={height:Ou,display:"flex",alignItems:"center",justifyContent:"center",borderRight:"1px solid #ececea",borderBottom:"1px solid #dcdad6",fontSize:12,fontWeight:700,color:"#37352f",bgcolor:"#f8f8f7",whiteSpace:"nowrap"};return yo(Lo,{sx:aa(n),children:yo(WE,{style:{height:"100%"},thumb:{width:8},children:Xs(Lo,{sx:{display:"grid",gridTemplateColumns:i,minWidth:"fit-content",height:"100%",gridTemplateRows:`${Ou}px repeat(${r.rows.length}, minmax(${Ou}px, 1fr))`},children:[yo(Lo,{sx:{...a,justifyContent:"flex-start",pl:1},children:"\uB2F4\uB2F9\uC790"}),yo(Lo,{sx:{...a,color:Hx},children:"\uC9C0\uC5F0"}),r.weeks.map(l=>yo(Lo,{sx:{...a,...l.isCurrent?{borderBottom:"2px solid #2f80ed"}:{}},children:l.label},l.start)),yo(Lo,{sx:a,children:"\uB9C8\uAC10\uC5C6\uC74C"}),yo(Lo,{sx:a,children:"\uD569\uACC4"}),r.rows.map(l=>Xs(Lo,{sx:{display:"contents"},children:[yo(Lo,{sx:{display:"flex",alignItems:"center",pl:1,borderRight:"1px solid #ececea",borderBottom:"1px solid #ececea",fontSize:13,color:l.accountSeq>0?"#37352f":"#9a9a97",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.name}),yo(qu,{count:l.overdue,max:r.maxCell,color:Hx,title:`${l.name} \xB7 \uC9C0\uC5F0 ${l.overdue}\uAC74`}),l.byWeek.map((s,m)=>yo(qu,{count:s,max:r.maxCell,color:VE,title:`${l.name} \xB7 ${r.weeks[m].label} \uC8FC \uB9C8\uAC10 ${s}\uAC74`},r.weeks[m].start)),yo(qu,{count:l.noDue,max:r.maxCell,color:UE,title:`${l.name} \xB7 \uB9C8\uAC10 \uBBF8\uC815 ${l.noDue}\uAC74`}),Xs(Lo,{sx:{display:"flex",alignItems:"center",justifyContent:"center",borderBottom:"1px solid #ececea",fontSize:12.5,fontWeight:700,color:"#37352f",fontVariantNumeric:"tabular-nums"},children:[l.total,l.beyond>0?Xs(Lo,{component:"span",sx:{ml:.25,fontSize:10.5,color:"#9a9a97"},children:["(+",l.beyond,")"]}):null]})]},l.accountSeq))]})})})}import{useMemo as KE,useRef as YE,useState as Vx}from"react";import{useGlobalForm as jE}from"@ehfuse/forma";function Ux({open:e,sprints:t,tasks:o,todayStr:n,initialSprintSeq:r,capacity:i,onSaveCapacity:a,onOpenTask:l,onClose:s}){let m=jE({formId:we("taskbox-sprint-charts-form"),initialValues:{sprintSeq:"",flowDays:"30",workloadMode:"distribution"}}),[c,p]=Vx(0),[d,u]=Vx(!1),f=YE(0),g={charts:Zt({modalIdPrefix:"taskbox-sprint-charts-dialog",open:e,onClose:()=>{s();let h=f.current;f.current=0,h>0&&l?.(h)},onOpen:()=>{let h=t.find(y=>y.status==="active")??t[0],E=t.find(y=>y.seq===r)??h;m.setFormValue("sprintSeq",E?.seq?String(E.seq):"")}})},v=KE(()=>sd(o,{todayStr:n,capacity:i}),[o,n,i]),D=v.find(h=>h.accountSeq===c)??null;return{form:m,modals:g,workloadRows:v,pickedAccountSeq:c,pickedRow:D,pickPerson:p,closePersonTasks:()=>p(0),capacityOpen:d,openCapacity:()=>u(!0),closeCapacity:()=>u(!1),saveCapacity:a?async h=>{await a(h),u(!1)}:void 0,openTask:l?h=>{if(!g.charts.isOpen){l(h);return}f.current=h,g.charts.close()}:void 0}}import{Fragment as Kx,jsx as pt,jsxs as Qs}from"react/jsx-runtime";var Yx="min(560px, 62vh)",JE=`calc(${Yx} - 4px)`,eR=[{value:"30",label:"\uCD5C\uADFC 30\uC77C"},{value:"60",label:"\uCD5C\uADFC 60\uC77C"},{value:"90",label:"\uCD5C\uADFC 90\uC77C"}];function LY({open:e,sprints:t,tasks:o,todayStr:n,showSprintCharts:r,capacity:i=Kr,capacityEmployees:a=[],onSaveCapacity:l,onChangeTaskManager:s,onOpenTask:m,initialSprintSeq:c=0,onClose:p}){let d=Ux({open:e,sprints:t,tasks:o,todayStr:n,initialSprintSeq:c,capacity:i,onSaveCapacity:l,onOpenTask:m,onClose:p}),{form:u,modals:f,workloadRows:g,pickedAccountSeq:v,pickedRow:D}=d,b=Number(u.useFormValue("sprintSeq"))||0,S=Number(u.useFormValue("flowDays"))||30,h=u.useFormValue("workloadMode")==="timeline"?"timeline":"distribution",E=XE(()=>t.find(k=>k.seq===b)??null,[t,b]),y={height:JE,boxSizing:"border-box",px:3,py:2.5,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden"},T=pt(zu,{form:u,name:"sprintSeq",label:"\uBAA9\uD45C",showLabel:!1,showEmptyOption:!1,options:t.map(k=>({value:String(k.seq),label:Ko(k)})),sx:{width:280,flexShrink:0}}),A=Qs(Kx,{children:[pt(zu,{form:u,name:"workloadMode",label:"\uBCF4\uAE30",showLabel:!1,showEmptyOption:!1,options:[{value:"distribution",label:"\uC9C0\uAE08 \uBD80\uD558(\uC9C0\uC5F0\xB7\uC784\uBC15\xB7\uC5EC\uC720)"},{value:"timeline",label:"\uC8FC\uBCC4 \uB9C8\uAC10 \uBC00\uC9D1"}],sx:{width:280,flexShrink:0}}),l?pt(Gx,{size:"small",variant:"outlined",startIcon:pt(ZE,{sx:{fontSize:18}}),onClick:d.openCapacity,sx:{flexShrink:0},children:"\uC6A9\uB7C9"}):null]}),q=r??t.length>0,C=pt(zu,{form:u,name:"flowDays",label:"\uAE30\uAC04",showLabel:!1,showEmptyOption:!1,options:eR,sx:{width:280,flexShrink:0}});return Qs(Kx,{children:[pt(QE,{open:f.charts.isOpen,onClose:f.charts.close,maxWidth:"md",title:"\uC5C5\uBB34 \uCC28\uD2B8",locale:"ko",contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,sectionTitleGap:0,fixedHeight:Yx,contentBottomPadding:0,scrollPastLastSection:!1,tabs:{visible:!0,switchContent:!0,fullWidth:!0},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-charts",sections:[...q?[{id:"velocity",tabTitle:"\uBCA8\uB85C\uC2DC\uD2F0",showTitle:!1,children:pt(sr,{sx:y,children:pt(Ex,{sprints:t,tasks:o,height:"100%"})})},{id:"burndown",tabTitle:"\uBC88\uB2E4\uC6B4",showTitle:!1,children:pt(sr,{sx:y,children:E?pt(Rx,{sprint:E,tasks:o,todayStr:n,height:"100%",headerLeft:T}):Qs(sr,{sx:aa("100%"),children:[pt(sr,{sx:hc,children:T}),pt(hl,{text:"\uBC88\uB2E4\uC6B4\uC744 \uBCFC \uBAA9\uD45C\uB97C \uC120\uD0DD\uD558\uC138\uC694.",height:"100%"})]})})},{id:"cumulative-flow",tabTitle:"\uB204\uC801\uD750\uB984\uB3C4",showTitle:!1,children:pt(sr,{sx:y,children:pt(Mx,{tasks:o,todayStr:n,days:S,height:"100%",headerLeft:C})})}]:[],{id:"workload",tabTitle:"\uC6CC\uD06C\uB85C\uB4DC",showTitle:!1,children:pt(sr,{sx:y,children:h==="timeline"?Qs(sr,{sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[pt(sr,{sx:hc,children:A}),pt(Wx,{tasks:o,todayStr:n,height:"100%"})]}):pt(Ox,{tasks:o,todayStr:n,height:"100%",capacity:i,headerLeft:A,selectedAccountSeq:v,onSelectPerson:s?d.pickPerson:void 0})})},{id:"lead-time",tabTitle:"\uB9AC\uB4DC\uD0C0\uC784",showTitle:!1,children:pt(sr,{sx:y,children:pt(Px,{tasks:o,todayStr:n,days:S,height:"100%",headerLeft:C})})}],actions:{showCancelButton:!1,right:pt(Gx,{variant:"contained",onClick:f.charts.close,children:"\uB2EB\uAE30"})}}),pt($x,{open:v>0,row:D,rows:g,tasks:o,todayStr:n,employees:a,onClose:d.closePersonTasks,onChangeManager:s,onOpenTask:d.openTask}),d.saveCapacity?pt(Dx,{open:d.capacityOpen,capacity:i,employees:a,onClose:d.closeCapacity,onSave:d.saveCapacity}):null]})}import{Checkbox as tR,Divider as oR,Menu as nR,MenuItem as Au}from"@mui/material";import{jsx as Ja,jsxs as jx}from"react/jsx-runtime";function WY({anchorEl:e,candidates:t,selectedNames:o,avatarSrcByName:n,onToggle:r,onClear:i,onClose:a}){return jx(nR,{anchorEl:e,open:!!e,onClose:a,transitionDuration:0,children:[t.length===0?Ja(Au,{disabled:!0,sx:{fontSize:14},children:"\uBAA9\uB85D\uC5D0 \uC9C0\uC815\uB41C \uC0AC\uB78C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):t.map(l=>{let s=o.includes(l.name);return jx(Au,{onClick:()=>r(l),sx:{fontSize:14,minWidth:170,gap:1},children:[Ja(tR,{size:"small",checked:s,sx:{p:0}}),Ja(go,{names:[l.name],size:20,avatarSrcByName:n}),l.name]},`${l.accountSeq}-${l.name}`)}),Ja(oR,{}),Ja(Au,{disabled:o.length===0,onClick:i,sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{useState as rR}from"react";import{ButtonBase as iR,Menu as aR,MenuItem as lR}from"@mui/material";import sR from"@mui/icons-material/KeyboardArrowDown";import cR from"@mui/icons-material/Check";import{Fragment as mR,jsx as Lu,jsxs as Nu}from"react/jsx-runtime";function QY({value:e,onChange:t,options:o}){let[n,r]=rR(null),i=o??Zc,a=Zc.find(l=>l.value===e)?.label??"";return Nu(mR,{children:[Nu(iR,{onClick:l=>r(l.currentTarget),sx:{display:"flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:1,fontSize:13.5,color:"#37352f","&:hover":{bgcolor:"#f2f2f0"}},children:[a,Lu(sR,{sx:{fontSize:17,color:"#9a9a97"}})]}),Lu(aR,{transitionDuration:0,anchorEl:n,open:!!n,onClose:()=>r(null),children:i.map(l=>Nu(lR,{selected:l.value===e,onClick:()=>{t(l.value),r(null)},sx:{fontSize:14,minWidth:140,justifyContent:"space-between",gap:1},children:[l.label,l.value===e?Lu(cR,{sx:{fontSize:16,color:"#2f80ed"}}):null]},l.value))})]})}import{Box as Zs,ButtonBase as uR}from"@mui/material";import{DateTextField as Xx}from"@ehfuse/mui-form-controls";import{jsx as el,jsxs as Qx}from"react/jsx-runtime";var dR=[{label:"1\uAC1C\uC6D4",months:1},{label:"3\uAC1C\uC6D4",months:3},{label:"6\uAC1C\uC6D4",months:6},{label:"1\uB144",months:12},{label:"\uC804\uCCB4",months:0}];function Zx({fromDate:e,toDate:t,onChange:o}){let n=i=>{if(i<=0){o("","");return}o(ia(bc(i)),ia(new Date))},r=i=>i<=0?!e&&!t:!e||!t?!1:e===ia(bc(i))&&t===ia(new Date);return Qx(Zs,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[el(Zs,{sx:{display:"flex",alignItems:"center",gap:1.5},children:dR.map(i=>{let a=r(i.months);return el(uR,{onClick:()=>n(i.months),sx:{px:1.25,py:.85,borderRadius:1,fontSize:13,fontWeight:a?500:400,border:"1px solid",borderColor:a?"#2f80ed":"#dedddb",color:a?"#2f80ed":"#37352f",bgcolor:a?"#eef6ff":"transparent","&:hover":{bgcolor:a?"#eef6ff":"#f7f7f5"}},children:i.label},i.label)})}),Qx(Zs,{sx:{display:"flex",alignItems:"center",gap:.5},children:[el(Xx,{value:e,size:"small",placeholder:"\uC2DC\uC791\uC77C",onChange:i=>o(i.target.value,t),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}}),el(Zs,{component:"span",sx:{fontSize:13,color:"#9a9a97"},children:"~"}),el(Xx,{value:t,size:"small",placeholder:"\uC885\uB8CC\uC77C",onChange:i=>o(e,i.target.value),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}})]})]})}import{Popover as pR}from"@mui/material";import{jsx as Jx}from"react/jsx-runtime";function lj({anchorEl:e,fromDate:t,toDate:o,onChange:n,onClose:r}){return Jx(pR,{transitionDuration:0,anchorEl:e,open:!!e,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{p:1.5}}},children:Jx(Zx,{fromDate:t,toDate:o,onChange:n})})}import{Box as fR,ButtonBase as gR,Tab as xR,Tabs as bR}from"@mui/material";import hR from"@mui/icons-material/Checklist";import kR from"@mui/icons-material/Face";import TR from"@mui/icons-material/Publish";import yR from"@mui/icons-material/NotificationsOutlined";import SR from"@mui/icons-material/BugReportOutlined";import CR from"@mui/icons-material/SupportAgentOutlined";import BR from"@mui/icons-material/DescriptionOutlined";import vR from"@mui/icons-material/Inventory2Outlined";import{jsx as Qo}from"react/jsx-runtime";function eb(e,t){return t>0?`${e} (${t})`:e}var yj=[{id:"my",label:"\uC804\uCCB4",icon:Qo(hR,{sx:{fontSize:18}})},{id:"mine",label:"\uB0B4 \uC5C5\uBB34",icon:Qo(kR,{sx:{fontSize:18}})},{id:"sent",label:"\uBCF4\uB0B8 \uC5C5\uBB34",icon:Qo(TR,{sx:{fontSize:18}})},{id:"support",label:"\uACE0\uAC1D\uC13C\uD130",icon:Qo(CR,{sx:{fontSize:18}})},{id:"bug",label:"\uC624\uB958",icon:Qo(SR,{sx:{fontSize:18}})},{id:"notice",label:"\uACF5\uC9C0\uC0AC\uD56D",icon:Qo(yR,{sx:{fontSize:18}})},{id:"archive",label:"\uBCF4\uAD00\uD568",icon:Qo(vR,{sx:{fontSize:18}}),hideCount:!0},{id:"report",label:"\uBCF4\uACE0\uC11C",icon:Qo(BR,{sx:{fontSize:18}}),hideCount:!0}];function IR(e){return{minHeight:46,minWidth:75,bgcolor:e.bg,color:e.color,borderRadius:"8px 8px 0 0",padding:"10px 18px",textTransform:"none",fontSize:14,fontWeight:500,border:`1px solid ${e.borderColor}`,borderBottom:"none","&:hover":{bgcolor:e.hoverBg},"&.Mui-selected":{bgcolor:e.selectedBg,color:e.selectedColor,border:`1px solid ${e.selectedBg}`,borderBottom:"none","&:hover":{bgcolor:e.selectedBg}},...e.sx}}function Sj({items:e,activeTab:t,counts:o,onChange:n,compact:r=!1}){let i=xe(),a=IR(i.tabs),l=e;return r?Qo(fR,{sx:{display:"flex",flexWrap:"wrap",gap:1.25},children:l.map(s=>{let m=t===s.id;return Qo(gR,{onClick:()=>n(s.id),sx:{px:1.5,py:.75,borderRadius:1,fontSize:Ct(13.5),fontWeight:500,whiteSpace:"nowrap",border:"1px solid",bgcolor:m?i.tabs.selectedBg:i.tabs.bg,color:m?i.tabs.selectedColor:i.tabs.color,borderColor:m?i.tabs.selectedBg:i.tabs.borderColor},children:eb(s.label,s.hideCount?0:o[s.id]??0)},s.id)})}):Qo(bR,{value:t,onChange:(s,m)=>n(m),sx:{minHeight:46,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"12px",minHeight:46}},children:l.map(s=>Qo(xR,{value:s.id,label:eb(s.label,s.hideCount?0:o[s.id]??0),icon:s.icon,iconPosition:"start",sx:a},s.id))})}import{useEffect as _R,useMemo as wR,useState as Fu}from"react";import{Divider as Js,ListItemIcon as co,Menu as $u,MenuItem as Nt}from"@mui/material";import DR from"@mui/icons-material/OpenInNewOutlined";import ER from"@mui/icons-material/RestoreFromTrashOutlined";import RR from"@mui/icons-material/Check";import MR from"@mui/icons-material/CheckCircleOutlined";import PR from"@mui/icons-material/RadioButtonUnchecked";import OR from"@mui/icons-material/SendOutlined";import qR from"@mui/icons-material/EventOutlined";import zR from"@mui/icons-material/PersonOutlineOutlined";import AR from"@mui/icons-material/ViewKanbanOutlined";import LR from"@mui/icons-material/ContentCopyOutlined";import NR from"@mui/icons-material/PrintOutlined";import FR from"@mui/icons-material/NextPlanOutlined";import $R from"@mui/icons-material/ContentPasteOutlined";import HR from"@mui/icons-material/ShareOutlined";import WR from"@mui/icons-material/DirectionsRunOutlined";import tb from"@mui/icons-material/ChevronRight";import VR from"@mui/icons-material/ArchiveOutlined";import UR from"@mui/icons-material/UnarchiveOutlined";import{ConfirmDialog as ob}from"@ehfuse/alerts";import{Fragment as nb,jsx as ke,jsxs as _t}from"react/jsx-runtime";function nX({target:e,onClose:t,customTabs:o,sprints:n=[],myAccountSeq:r=0,onOpenDetail:i,onToggleCompleted:a,onRequestConfirm:l,onChangeDueDate:s,onChangeReminder:m,onMemberEdit:c,onMoveProject:p,onDuplicate:d,onPrint:u,onCreateFollowUp:f,onShare:g,onAssignSprint:v,onArchiveToggle:D,onDelete:b,onRestore:S,onPurge:h}){let E=Ue(),y=Sn(),[T,I]=Fu(null),[A,q]=Fu(null),[C,k]=Fu(null);_R(()=>{e||(I(null),q(null),k(null))},[e]);let x=e?.task??null,B=!!x?.is_notice,w=!!x?.is_event,_=x?!Cn(x,r):!1,{editPolicy:N,shareText:M}=me(),$=x?Sr(x,r,N):!1,Y=x?jr(x,r,N,_):!1,te=x?jr(x,r,N,!1):!1,ce=!!x?.deleted,ue=(()=>{if(!x||x.completed)return!0;let W=_r(x,r);return W.total===0||W.count>=W.total})(),j=wR(()=>new Set(o.filter(W=>W.useSprints).map(W=>W.key)),[o]),O=async(W="one")=>{let V=x;if(t(),!V)return;await ob({title:"\uC5C5\uBB34 \uC0AD\uC81C",message:W==="series"?`"${V.title}" \uC758 \uC774 \uD68C\uCC28\uC640 \uC774\uD6C4 \uBC18\uBCF5 \uD68C\uCC28\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`:`"${V.title}" \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&b?.(V.seq,W)},oe=async()=>{let W=x;if(t(),!W)return;await ob({title:"\uC601\uAD6C \uC0AD\uC81C",message:`"${W.title}" \uC5C5\uBB34\uB97C \uC601\uAD6C\uD788 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C? \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`})&&h?.(W.seq)},F=()=>{x&&D(x.seq,!x.archived),t()};return _t(nb,{children:[_t($u,{open:!!e,onClose:t,transitionDuration:0,anchorReference:E?"none":"anchorPosition",anchorPosition:!E&&e?{top:e.position.top,left:e.position.left}:void 0,slotProps:{paper:{sx:{minWidth:190,...E?{position:"fixed",top:"50%",left:"50%",translate:"-50% -50%",maxHeight:"70vh"}:{}}},list:E?{sx:{"& .MuiMenuItem-root":{py:1,minHeight:0}}}:void 0},children:[_t(Nt,{onClick:()=>{x&&i(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(DR,{sx:{fontSize:19}})}),"\uC0C1\uC138 \uC5F4\uAE30"]}),ce?ke(Js,{}):null,ce&&S?_t(Nt,{disabled:te,onClick:()=>{x&&S(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(ER,{sx:{fontSize:19}})}),"\uBCF5\uC6D0"]}):null,ce&&h?_t(Nt,{disabled:te,onClick:()=>{oe()},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC601\uAD6C \uC0AD\uC81C"]}):null,ce?null:_t(nb,{children:[_t(Nt,{disabled:B?(x?.author_account_seq??0)!==r:(x?.author_account_seq??0)!==r&&(x?.manager_account_seq??0)!==r,onClick:()=>{x&&a(x.seq,!x.completed),t()},sx:{fontSize:14},children:[ke(co,{children:x?.completed?ke(PR,{sx:{fontSize:19}}):ke(MR,{sx:{fontSize:19}})}),x?.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC"]}),!B&&l?_t(Nt,{disabled:ue,onClick:()=>{x&&l(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(OR,{sx:{fontSize:19}})}),"\uD655\uC778 \uC694\uCCAD"]}):null,w?null:ke(Js,{}),w?null:_t(Nt,{disabled:$,onClick:W=>{x&&I({anchorEl:W.currentTarget,task:x})},sx:{fontSize:14},children:[ke(co,{children:ke(qR,{sx:{fontSize:19}})}),"\uB9C8\uAC10\uC608\uC815 \uBCC0\uACBD"]}),!B&&!w&&c?_t(Nt,{disabled:N==="coreAuthorManager"?$:!1,onClick:()=>{x&&c(x,"manager"),t()},sx:{fontSize:14},children:[ke(co,{children:ke(zR,{sx:{fontSize:19}})}),"\uCC45\uC784\uC790 \uBCC0\uACBD"]}):null,w?null:_t(Nt,{disabled:$,onClick:W=>{x&&q({anchorEl:W.currentTarget,task:x})},sx:{fontSize:14},children:[ke(co,{children:ke(AR,{sx:{fontSize:19}})}),"\uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9",ke(tb,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}),ke(Js,{}),d?_t(Nt,{disabled:_,onClick:()=>{x&&d(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(LR,{sx:{fontSize:19}})}),"\uBCF5\uC81C"]}):null,u?_t(Nt,{onClick:()=>{x&&u(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(NR,{sx:{fontSize:19}})}),"\uC778\uC1C4"]}):null,f&&x&&!x.is_event&&!x.is_notice?_t(Nt,{onClick:()=>{x&&f(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(FR,{sx:{fontSize:19}})}),"\uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30"]}):null,_t(Nt,{onClick:()=>{x&&(g?g(x):Ai(x,E,M)),t()},sx:{fontSize:14},children:[ke(co,{children:E?ke(HR,{sx:{fontSize:19}}):ke($R,{sx:{fontSize:19}})}),E?"\uACF5\uC720":"\uB0B4\uC6A9 \uBCF5\uC0AC"]}),x&&!x.is_notice&&!x.is_event&&j.has(String(x.tab_key??""))&&v?_t(Nt,{onClick:W=>k(W.currentTarget),sx:{fontSize:14},children:[ke(co,{children:ke(WR,{sx:{fontSize:19}})}),"\uBAA9\uD45C\uC5D0 \uB123\uAE30",ke(tb,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}):null,_t(Nt,{onClick:F,disabled:_||!x?.archived&&!(x&&Dl(x)),sx:{fontSize:14},children:[ke(co,{children:x?.archived?ke(UR,{sx:{fontSize:19}}):ke(VR,{sx:{fontSize:19}})}),x?.archived?"\uBCF4\uAD00 \uD574\uC81C":"\uBCF4\uAD00"]}),b?ke(Js,{}):null,b?_t(Nt,{disabled:Y,onClick:()=>{O("one")},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),(x?.repeat_group_key??0)>0?"\uC0AD\uC81C (\uC774 \uD68C\uCC28\uB9CC)":"\uC0AD\uC81C"]}):null,b&&(x?.repeat_group_key??0)>0?_t(Nt,{disabled:Y,onClick:()=>{O("series")},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC0AD\uC81C (\uC774\uD6C4 \uBC18\uBCF5 \uC804\uCCB4)"]}):null]})]}),ke(Go,{anchorEl:T?.anchorEl??null,open:!!T,date:T?.task.due_date??"",reminders:vn(T?.task),hideReminder:!!T?.task.completed,centered:E,onClose:()=>{I(null),t()},onDateChange:W=>{T&&s(T.task.seq,W)},onReminderChange:W=>{T&&m?.(T.task.seq,W)}}),_t($u,{transitionDuration:0,anchorEl:A?.anchorEl??null,open:!!A,onClose:()=>{q(null),t()},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...y,children:[ke(Nt,{selected:!A?.task.tab_key,onClick:()=>{A&&p(A.task.seq,""),q(null),t()},sx:{fontSize:14,minWidth:170},children:"\uC5C6\uC74C"}),o.filter(W=>!W.archived).map(W=>ke(Nt,{selected:A?.task.tab_key===W.key,onClick:()=>{A&&p(A.task.seq,W.key),q(null),t()},sx:{fontSize:14,minWidth:170},children:W.label},W.key))]}),ke($u,{transitionDuration:0,anchorEl:C,open:!!C,onClose:()=>k(null),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:[{seq:0,label:"\uBC31\uB85C\uADF8 (\uBBF8\uBC30\uC815)"},...n.filter(W=>`custom-${W.group_seq}`===String(x?.tab_key??"")).map(W=>({seq:W.seq,label:Ko(W)}))].map(W=>_t(Nt,{onClick:()=>{x&&v?.(x.seq,W.seq),k(null),t()},sx:{fontSize:14,minWidth:160,gap:1},children:[W.label,(x?.sprint_seq??0)===W.seq?ke(RR,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},W.seq))})]})}import{Checkbox as GR,Divider as KR,Menu as YR,MenuItem as rb}from"@mui/material";import{jsx as ec,jsxs as ib}from"react/jsx-runtime";function sX({anchorEl:e,labelOptions:t,selectedKeys:o,onToggle:n,onClear:r,onClose:i}){return ib(YR,{transitionDuration:0,anchorEl:e,open:!!e,onClose:i,children:[t.map(a=>{let l=o.includes(a.key);return ib(rb,{onClick:()=>n(a.key),sx:{fontSize:14,minWidth:190,gap:1},children:[ec(GR,{size:"small",checked:l,sx:{p:0}}),ec($e,{option:a})]},a.key)}),ec(KR,{}),ec(rb,{disabled:o.length===0,onClick:()=>{r(),i()},sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{Divider as jR,Menu as XR,MenuItem as ab}from"@mui/material";import QR from"@mui/icons-material/Check";import ZR from"@mui/icons-material/SettingsOutlined";import{jsx as Hu,jsxs as Wu}from"react/jsx-runtime";function gX(e){let{anchorEl:t,sprints:o,value:n,onSelect:r,onManage:i,onClose:a}=e;return Wu(XR,{transitionDuration:0,anchorEl:t,open:!!t,onClose:a,children:[[{seq:0,label:"\uC804\uCCB4"},{seq:-1,label:"\uBBF8\uBC30\uC815 \uC5C5\uBB34"},...o.map(l=>({seq:l.seq,label:Ko(l)}))].map(l=>Wu(ab,{onClick:()=>{r(l.seq),a()},sx:{fontSize:14,minWidth:180,gap:1},children:[l.label,n===l.seq?Hu(QR,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},l.seq)),Hu(jR,{}),Wu(ab,{onClick:()=>{a(),i()},sx:{fontSize:14,gap:1},children:[Hu(ZR,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uAD00\uB9AC\u2026"]})]})}var JR={my:"tasks",mine:"tasks",sent:"tasks",notice:"notice",support:"support",bug:"bug",archive:"archive",done:"done",report:"report"};function eM(e){return JR[e]??"tasks"}var sb={list:"\uBAA9\uB85D",card:"\uD504\uB85C\uC81D\uD2B8",kanban:"\uC0C1\uD0DC",sprint:"\uBAA9\uD45C",calendar:"\uC8FC\uAC04",month:"\uC6D4\uAC04",agenda:"\uC544\uC820\uB2E4",timeline:"\uD0C0\uC784\uB77C\uC778"},lb=["list","calendar","month","card","kanban","sprint","timeline"],tM=["list","kanban"],oM=["list","card"];function hX(e){let t=eM(e);switch(t){case"notice":return{kind:t,viewOptions:[],showCreate:!0,createLabel:"\uACF5\uC9C0\uC0AC\uD56D \uB4F1\uB85D",showGroupBy:!1,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!0,columns:{notice:!0}};case"bug":return{kind:t,viewOptions:lb,showCreate:!0,createLabel:"\uC624\uB958 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{bug:!0}};case"support":return{kind:t,viewOptions:tM,showCreate:!1,createLabel:"",showGroupBy:!0,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{support:!0,showProject:!1}};case"archive":return{kind:t,viewOptions:oM,showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"done":return{kind:t,viewOptions:["list"],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"report":return{kind:t,viewOptions:[],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{}};default:return{kind:t,viewOptions:lb,showCreate:!0,createLabel:"\uC5C5\uBB34 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:e==="mine"?{showRequest:!1,confirmMode:"action"}:e==="sent"?{confirmMode:"time"}:{}}}}import{useMemo as nM}from"react";import{useKeyboardState as rM}from"@ehfuse/keyboard-state";var cb=[{key:"g l",view:"list"},{key:"g b",view:"card"},{key:"g k",view:"kanban"},{key:"g s",view:"sprint"},{key:"g c",view:"calendar"},{key:"g m",view:"month"},{key:"g t",view:"timeline"}];function CX(e,t={}){let{enabled:o=!0,views:n}=t,{onCreateTask:r,onFocusSearch:i,onToggleHelp:a,onChangeView:l,onRefresh:s,onEscape:m}=e,c=n?n.join(","):"",p=nM(()=>{let d=[];if(r&&d.push({key:"n",callback:r,options:{preventDefault:!0}}),i&&d.push({key:"/",callback:i,options:{preventDefault:!0}}),s&&d.push({key:"r",callback:s,options:{preventDefault:!0}}),a&&d.push({key:"shift+?",callback:a,options:{preventDefault:!0}}),m&&d.push({key:"escape",callback:m,options:{allowInEditable:!0}}),l)for(let u of mb(c?c.split(","):void 0))d.push({key:u.key,callback:()=>l(u.view),options:{preventDefault:!0}});return d},[r,i,a,l,s,m,c]);rM(o?p:[])}function mb(e){if(!e)return cb;let t=new Set(e);return cb.filter(o=>t.has(o.view))}function tl(e){return[{keys:"N",description:"\uC0C8 \uC5C5\uBB34 \uB4F1\uB85D"},{keys:"/",description:"\uAC80\uC0C9"},{keys:"R",description:"\uBAA9\uB85D \uC0C8\uB85C\uACE0\uCE68"},...mb(e).map(t=>({keys:t.key.split(" ").map(o=>o.toUpperCase()).join(" \u2192 "),description:`${sb[t.view]} \uBCF4\uAE30`})),{keys:"?",description:"\uB2E8\uCD95\uD0A4 \uB3C4\uC6C0\uB9D0"},{keys:"Esc",description:"\uB2EB\uAE30"}]}var BX=tl();import{Box as ol,Button as aM}from"@mui/material";import lM from"@mui/icons-material/ArrowRightAlt";import{FormDialog as sM}from"@ehfuse/mui-form-dialog";import{useState as iM}from"react";var ub={id:"concept",tabTitle:"\uAC1C\uB150",intro:"\uC5C5\uBB34\uD568\uC740 '\uB204\uAC00 \uBB34\uC5C7\uC744 \uC5B8\uC81C\uAE4C\uC9C0 \uD558\uB294\uC9C0'\uB97C \uD55C \uACF3\uC5D0 \uBAA8\uC73C\uB294 \uB3C4\uAD6C\uC785\uB2C8\uB2E4. \uBA54\uC2E0\uC800\uC5D0 \uD769\uC5B4\uC9C4 \uC9C0\uC2DC\uC640 \uC5D1\uC140\uC5D0 \uC801\uC5B4 \uB454 \uB9C8\uAC10\uC77C \uB300\uC2E0, \uC5C5\uBB34\uB97C \uBCF4\uB0B8 \uC0AC\uB78C\uACFC \uBC1B\uC740 \uC0AC\uB78C\uC774 \uAC19\uC740 \uD654\uBA74\uC744 \uBD05\uB2C8\uB2E4.",topics:[{title:"\uC138 \uAC78\uC74C\uC774\uBA74 \uB05D",lead:"\uC5C5\uBB34 \uD558\uB098\uC758 \uC0DD\uC560\uB294 \uC774 \uC138 \uAC78\uC74C\uC785\uB2C8\uB2E4. \uB098\uBA38\uC9C0 \uAE30\uB2A5\uC740 \uC804\uBD80 \uC774 \uD750\uB984\uC744 \uB3D5\uB294 \uAC83\uC774\uB77C, \uC774\uAC83\uB9CC \uC54C\uBA74 \uCCAB\uB0A0\uBD80\uD130 \uC501\uB2C8\uB2E4.",steps:[{title:"\uB4F1\uB85D",desc:"\uC81C\uBAA9 \xB7 \uCC45\uC784\uC790 \xB7 \uB9C8\uAC10\uC608\uC815\uB9CC \uC801\uC5B4 \uBCF4\uB0C5\uB2C8\uB2E4."},{title:"\uD655\uC778",desc:"\uBC1B\uC740 \uC0AC\uB78C\uC774 \uD655\uC778\uD558\uACE0 \uCC98\uB9AC\uD55C \uB4A4 \uC644\uB8CC\uD569\uB2C8\uB2E4."},{title:"\uBCF4\uAD00",desc:"\uB05D\uB09C \uC5C5\uBB34\uB294 \uBCF4\uAD00\uD568\uC5D0 \uB0A8\uC544 \uC5B8\uC81C\uB4E0 \uB2E4\uC2DC \uCC3E\uC2B5\uB2C8\uB2E4."}]},{title:"\uC5C5\uBB34\uB97C \uB458\uB7EC\uC2FC \uC138 \uC0AC\uB78C",lead:"\uC5C5\uBB34\uB9C8\uB2E4 \uBCF4\uB0B8 \uC0AC\uB78C \uD558\uB098, \uBC1B\uC740 \uC0AC\uB78C \uD558\uB098, \uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC138 \uC5ED\uD560\uC774 \uBAA8\uB450 '\uAD00\uC5EC\uC790'\uC774\uACE0, \uACF5\uAC1C \uBC94\uC704\uAC00 **\uBE44\uACF5\uAC1C**\uC5EC\uB3C4 \uC11C\uB85C\uC5D0\uAC8C \uBCF4\uC785\uB2C8\uB2E4. \uB204\uAC00 \uBB34\uC5C7\uC744 \uB204\uB97C \uC218 \uC788\uB294\uC9C0\uB294 **\uC5ED\uD560** \uD0ED\uC5D0 \uBAA8\uC544 \uB450\uC5C8\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uC5C5\uBB34\uB97C \uBCF4\uB0B8 \uC0AC\uB78C. \uC5C5\uBB34\uC758 \uC8FC\uC778\uC785\uB2C8\uB2E4."},{term:"\uCC45\uC784\uC790",desc:"\uC5C5\uBB34\uB97C \uBC1B\uC544 \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C(\uD55C \uBA85)."},{term:"\uCC38\uC870\uC790",desc:"\uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4(\uC5EC\uB7EC \uBA85)."}]},{title:"\uBC1B\uC740 \uC5C5\uBB34\uC640 \uBCF4\uB0B8 \uC5C5\uBB34",lead:"\uD0ED\uC740 '\uB0B4\uAC00 \uBC1B\uC740 \uAC83'\uACFC '\uB0B4\uAC00 \uBCF4\uB0B8 \uAC83'\uC744 \uAC00\uB974\uB294 \uCD95\uC785\uB2C8\uB2E4. \uB0A8\uC774 \uC2DC\uD0A8 \uC77C\uACFC \uB0B4\uAC00 \uC2DC\uD0A8 \uC77C\uC774 \uC11E\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",items:[{term:"\uB0B4 \uC5C5\uBB34",desc:"\uB0B4\uAC00 \uCC45\uC784\uC790\uC774\uAC70\uB098 \uCC38\uC870\uC790\uC778 \uC5C5\uBB34 \u2014 \uBC1B\uC740 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uBCF4\uB0B8 \uC5C5\uBB34",desc:"\uB0B4\uAC00 \uB4F1\uB85D\uD574 \uB2E4\uB978 \uC0AC\uB78C\uC5D0\uAC8C \uB9E1\uAE34 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uC804\uCCB4",desc:"\uB0B4\uAC00 \uBCFC \uC218 \uC788\uB294 \uBAA8\uB4E0 \uC5C5\uBB34. \uB0B4 \uC5C5\uBB34\xB7\uCC45\uC784\uC790\uBCC4\xB7\uC77C\uC815 \uADF8\uB8F9\uC73C\uB85C \uB098\uB258\uC5B4 \uBCF4\uC785\uB2C8\uB2E4."},{term:"\uACF5\uC9C0\uC0AC\uD56D",desc:"\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815 \uB300\uC0C1\uC790\uC5D0\uAC8C \uC54C\uB9AC\uB294 \uAE00. \uB300\uC0C1\uC790\uB294 \uD655\uC778 \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4."},{term:"\uBCF4\uAD00\uD568",desc:'\uB05D\uB098\uC11C \uBCF4\uAD00\uB41C \uC5C5\uBB34\xB7\uC77C\uC815\uACFC \uD734\uC9C0\uD1B5. "\uC5C5\uBB34 \xB7 \uC77C\uC815 \u25BE" \uBA54\uB274\uB85C \uAD6C\uBD84\uC744 \uBC14\uAFD4 \uBD05\uB2C8\uB2E4.'}]},{title:"\uD655\uC778 \xB7 \uC644\uB8CC \xB7 \uAC80\uC218",subtitle:"\uC138 \uAC00\uC9C0 \uB2E4\uB978 \uB9D0",lead:"\uB2E4\uC2DC \uBB3B\uC9C0 \uC54A\uC544\uB3C4 \uB418\uB294 \uC774\uC720\uAC00 \uC5EC\uAE30 \uC788\uC2B5\uB2C8\uB2E4. \uC77D\uC5C8\uB294\uC9C0, \uB05D\uB0AC\uB294\uC9C0, \uAC80\uC218\uD588\uB294\uC9C0\uAC00 \uAC01\uAC01 \uD45C\uC2DC\uB85C \uB0A8\uC2B5\uB2C8\uB2E4.",items:[{term:"\uD655\uC778",desc:'"\uC77D\uC5C8\uB2E4". \uBC1B\uC740 \uC0AC\uB78C\uC774 **\uD655\uC778** \uBC84\uD2BC\uC744 \uB20C\uB7EC \uB0A8\uAE41\uB2C8\uB2E4. \uC544\uC9C1 \uD655\uC778\uD558\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uB294 \uBAA9\uB85D \uB9E8 \uC704 **\uBBF8\uD655\uC778** \uC601\uC5ED\uC5D0 \uBAA8\uC785\uB2C8\uB2E4.'},{term:"\uC644\uB8CC",desc:'"\uB05D\uB0AC\uB2E4". \uCC45\uC784\uC790\uB098 \uC791\uC131\uC790\uAC00 \uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB97C \uB204\uB985\uB2C8\uB2E4.'},{term:"\uAC80\uC218\uC644\uB8CC",desc:'"\uBD24\uB2E4, \uAD1C\uCC2E\uB2E4". \uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC791\uC131\uC790\uC5D0\uAC8C **\uAC80\uC218 \uB300\uAE30**\uB85C \uB0A8\uACE0, \uC791\uC131\uC790\uAC00 **\uAC80\uC218\uC644\uB8CC**\uB85C \uB0B4\uB9AC\uAC70\uB098 \uBBF8\uD761\uD558\uBA74 \uC0AC\uC720\uB97C \uC801\uC5B4 **\uB418\uB3CC\uB9BD\uB2C8\uB2E4**.'}]},{title:"\uB450 \uAC1C\uC758 \uB0A0\uC9DC",lead:"\uC5C5\uBB34\uC5D0\uB294 \uC2DC\uC791\uC77C\uC2DC\uC640 \uB9C8\uAC10\uC608\uC815 \uB450 \uB0A0\uC9DC\uAC00 \uC788\uACE0, \uC54C\uB9BC\uACFC \uCE98\uB9B0\uB354\uB294 \uC804\uBD80 \uC774 \uB458\uC744 \uAE30\uC900\uC73C\uB85C \uC6C0\uC9C1\uC785\uB2C8\uB2E4.",items:[{term:"\uC2DC\uC791\uC77C\uC2DC",desc:"\uC77C\uC744 \uC2DC\uC791\uD560 \uC2DC\uC810. \uCC45\uC784\uC790 \uC54C\uB9BC\uC740 \uC774\uB54C\uBD80\uD130 \uAC11\uB2C8\uB2E4. \uBE44\uC6CC \uB450\uBA74 \uBC14\uB85C \uC2DC\uC791\uC73C\uB85C \uBD05\uB2C8\uB2E4."},{term:"\uB9C8\uAC10\uC608\uC815",desc:"\uB05D\uB0B4\uAE30\uB85C \uD55C \uC2DC\uC810. \uC0AC\uC804\xB7\uB2F9\uC77C\xB7\uC9C0\uC5F0 \uC54C\uB9BC\uC758 \uAE30\uC900\uC774\uACE0, \uCE98\uB9B0\uB354\xB7\uD0C0\uC784\uB77C\uC778\uC5D0 \uB193\uC774\uB294 \uB0A0\uC9DC\uC785\uB2C8\uB2E4. \uC9C0\uB09C \uB9C8\uAC10\uB9CC \uBE68\uAC04\uC0C9\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4."}]}]};var db={id:"roles",tabTitle:"\uC5ED\uD560",intro:"\uC5C5\uBB34\uB9C8\uB2E4 \uBCF4\uB0B8 \uC0AC\uB78C(\uC791\uC131\uC790) \uD558\uB098, \uBC1B\uC544 \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C(\uCC45\uC784\uC790) \uD558\uB098, \uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4(\uCC38\uC870\uC790)\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC14B \uB2E4 '\uAD00\uC5EC\uC790'\uB77C\uC11C \uACF5\uAC1C \uBC94\uC704\uAC00 **\uBE44\uACF5\uAC1C**\uC5EC\uB3C4 \uC11C\uB85C\uC5D0\uAC8C \uBCF4\uC785\uB2C8\uB2E4. \uB204\uAC00 \uBB34\uC5C7\uC744 \uB204\uB97C \uC218 \uC788\uB294\uC9C0\uAC00 \uC774 \uD0ED\uC758 \uB0B4\uC6A9\uC785\uB2C8\uB2E4.",topics:[{title:"\uC791\uC131\uC790",subtitle:"\uC5C5\uBB34\uC758 \uC8FC\uC778",lead:"\uC5C5\uBB34\uB97C \uB4F1\uB85D\uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uB0B4\uC6A9\uC744 \uC815\uD558\uACE0 \uACB0\uACFC\uB97C \uAC80\uC218\uD558\uB294 \uC790\uB9AC\uB77C, \uC5C5\uBB34\uB97C \uC5C6\uC568 \uC218 \uC788\uB294 \uC720\uC77C\uD55C \uC5ED\uD560\uC785\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uBB34\uC5C7\uC744 \uC5B8\uC81C\uAE4C\uC9C0 \uD560\uC9C0 \uC801\uC5B4 \uCC45\uC784\uC790\uC5D0\uAC8C \uBCF4\uB0C5\uB2C8\uB2E4. \uB05D\uB09C \uB4A4 \uACB0\uACFC\uB97C \uBCF4\uACE0 **\uAC80\uC218\uC644\uB8CC**\uB85C \uB0B4\uB9AC\uAC70\uB098, \uBBF8\uD761\uD558\uBA74 \uC0AC\uC720\uB97C \uC801\uC5B4 **\uB418\uB3CC\uB9BD\uB2C8\uB2E4**."},{term:"\uC218\uC815",desc:"\uC81C\uBAA9\xB7\uB9C8\uAC10\uC608\uC815\xB7\uCC45\uC784\uC790\xB7\uCC38\uC870\uC790\xB7\uB0B4\uC6A9 \uC804\uBD80 \uACE0\uCE69\uB2C8\uB2E4. \uBC14\uAFBC \uB0B4\uC6A9\uC740 \uC7A0\uC2DC \uBAA8\uC544 \uD55C \uAC74\uC758 \uC218\uC815 \uC54C\uB9BC\uC73C\uB85C \uAC11\uB2C8\uB2E4."},{term:"\uC644\uB8CC",desc:"\uC9C1\uC811 \uC644\uB8CC \uCCB4\uD06C\uB97C \uB204\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uBCF8\uC778\uC774 \uC644\uB8CC\uD558\uBA74 \uAC80\uC218 \uB2E8\uACC4\uAC00 \uC5C6\uC5B4 \uADF8\uB300\uB85C \uB05D\uC785\uB2C8\uB2E4."},{term:"\uB418\uB3CC\uB9AC\uAE30",desc:"\uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB97C **\uAC80\uC218 \uB300\uAE30\uC778 \uB3D9\uC548\uB9CC** \uC0AC\uC720\uC640 \uD568\uAED8 \uB418\uB3CC\uB9BD\uB2C8\uB2E4. \uC0AC\uC720\uB294 \uB313\uAE00\uB85C \uB0A8\uACE0 \uC644\uB8CC\uD55C \uC0AC\uB78C\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uC791\uC131\uC790 \uBCF8\uC778\uB9CC \uC0AD\uC81C\uD569\uB2C8\uB2E4(\uAD00\uB9AC\uC790 \uAD8C\uD55C\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB985\uB2C8\uB2E4). \uC0AD\uC81C\uD55C \uC5C5\uBB34\uB294 \uBCF4\uAD00\uD568\uC758 \uD734\uC9C0\uD1B5\uC5D0 \uB0A8\uC2B5\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:"\uD655\uC778 \uB300\uC0C1\uC5D0\uC11C **\uBE60\uC9D1\uB2C8\uB2E4** \u2014 \uB0B4\uAC00 \uC4F4 \uAE00\uC744 \uB0B4\uAC00 \uC77D\uC5C8\uB2E4\uACE0 \uB0A8\uAE38 \uC77C\uC740 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."}]},{title:"\uCC45\uC784\uC790",subtitle:"\uBC1B\uC544\uC11C \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C",lead:"\uC5C5\uBB34\uB97C \uC2E4\uC81C\uB85C \uCC98\uB9AC\uD558\uB294 \uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uC5C5\uBB34\uB97C \uBC1B\uC73C\uBA74 \uC2DC\uC791\uC77C\uC2DC\uBD80\uD130 \uC54C\uB9BC\uC774 \uC624\uACE0, \uBAA9\uB85D\uC5D0\uC11C\uB294 '\uB0B4 \uC5C5\uBB34'\uB85C \uBAA8\uC785\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uB0B4\uC6A9\uC744 \uD655\uC778\uD558\uACE0 \uCC98\uB9AC\uD55C \uB4A4 \uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB97C \uB204\uB985\uB2C8\uB2E4. \uC644\uB8CC\uD558\uBA74 \uC791\uC131\uC790\uC5D0\uAC8C **\uAC80\uC218 \uB300\uAE30**\uB85C \uB118\uC5B4\uAC11\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:'**\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C "\uC77D\uC5C8\uB2E4"\uB97C \uB0A8\uAE41\uB2C8\uB2E4. \uCC45\uC784\uC790\uAC00 \uD655\uC778\uD558\uBA74 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4.'},{term:"\uC218\uC815",desc:"\uACE0\uCE60 \uC218 \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uC9C4\uD589\uD558\uB2E4 \uBCF4\uBA74 \uB9C8\uAC10\uC608\uC815\xB7\uB0B4\uC6A9\uC774 \uB2EC\uB77C\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uC0C1\uD0DC\xB7\uBE44\uACE0\xB7\uD560\uC77C\uB3C4 \uBAA9\uB85D\uC5D0\uC11C \uBC14\uB85C \uACE0\uCE69\uB2C8\uB2E4."},{term:"\uD560\uC77C\uB85C \uB098\uB204\uAE30",desc:"\uD070 \uC5C5\uBB34\uB294 \uD560\uC77C(\uCCB4\uD06C\uB9AC\uC2A4\uD2B8)\uB85C \uCABC\uAC1C\uACE0, \uD544\uC694\uD558\uBA74 \uD560\uC77C\uC744 \uBCC4\uB3C4 \uC5C5\uBB34\uB85C \uC2B9\uACA9\uD574 \uB2E4\uB978 \uC0AC\uB78C\uC5D0\uAC8C \uB9E1\uAE41\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB0A8\uC774 \uB9E1\uAE34 \uC77C\uC744 \uBC1B\uC740 \uCABD\uC774 \uC5C6\uC568 \uC218\uB294 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4 \u2014 \uB418\uB3CC\uB9B4 \uC77C\uC774\uBA74 \uB313\uAE00\uB85C \uC54C\uB9BD\uB2C8\uB2E4."},{term:"\uD55C \uBA85\uBFD0",desc:"\uCC45\uC784\uC790\uB294 \uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uC5EC\uB7FF\uC774 \uB098\uB220\uC57C \uD558\uB294 \uC77C\uC740 \uD560\uC77C\uB85C \uCABC\uAC1C\uAC70\uB098 \uC5C5\uBB34\uB97C \uB098\uB220 \uB4F1\uB85D\uD569\uB2C8\uB2E4."}]},{title:"\uCC38\uC870\uC790",subtitle:"\uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4",lead:"\uC9C1\uC811 \uCC98\uB9AC\uD558\uC9C0\uB294 \uC54A\uC9C0\uB9CC \uB0B4\uC6A9\uC744 \uC54C\uC544\uC57C \uD558\uB294 \uC0AC\uB78C\uB4E4\uC785\uB2C8\uB2E4. \uC5EC\uB7EC \uBA85\uC744 \uB458 \uC218 \uC788\uACE0, \uC77D\uC5C8\uB2E4\uB294 \uD45C\uC2DC\uB9CC \uB0A8\uAE41\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uB0B4\uC6A9\uC744 \uC77D\uACE0 \uD544\uC694\uD558\uBA74 \uB313\uAE00\uB85C \uC758\uACAC\uC744 \uB2F5\uB2C8\uB2E4. **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:"\uD655\uC778 \uB300\uC0C1\uC785\uB2C8\uB2E4. \uCC38\uC870\uC790\uC758 \uD655\uC778\uC740 \uC54C\uB9BC\uC744 \uB9CC\uB4E4\uC9C0 \uC54A\uACE0 \uD655\uC778 \uD604\uD669(n/m)\uC5D0\uB9CC \uBC18\uC601\uB429\uB2C8\uB2E4 \u2014 \uC0AC\uB78C\uC774 \uB9CE\uC544 \uC54C\uB9BC\uC774 \uC2DC\uB044\uB7EC\uC6CC\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uC218\uC815",desc:"\uC0C1\uD0DC\xB7\uB77C\uBCA8\xB7\uBE44\uACE0\xB7\uD560\uC77C\xB7\uCCA8\uBD80\xB7\uB313\uAE00 \uAC19\uC740 **\uC9C4\uD589 \uD56D\uBAA9**\uC740 \uCC38\uC870\uC790\uB3C4 \uC501\uB2C8\uB2E4. \uC81C\uBAA9\xB7\uB0B4\uC6A9\xB7\uC77C\uC815\xB7\uCC45\uC784\uC790\xB7\uACF5\uAC1C\uBC94\uC704 \uAC19\uC740 **\uC57D\uC18D**\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB77C \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB9CC \uACE0\uCE60 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uAE30\uBCF8\uC740 \uCC38\uC870\uC790\uB3C4 \uAC00\uB2A5). \uC644\uB8CC \uCCB4\uD06C\uB294 \uC5B8\uC81C\uB098 \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB9CC."},{term:"\uC644\uB8CC \xB7 \uC0AD\uC81C",desc:"\uB458 \uB2E4 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uCC38\uC870\uB294 '\uBCF4\uB294 \uC790\uB9AC'\uC785\uB2C8\uB2E4."},{term:"\uB9C8\uAC10 \uC54C\uB9BC",desc:"\uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB9C8\uAC10 \uACC4\uC5F4 \uC54C\uB9BC\uC740 \uCC45\uC784\uC790\xB7\uC791\uC131\uC790\uC5D0\uAC8C\uB9CC \uAC11\uB2C8\uB2E4(\uCC38\uC870\uC790\uAE4C\uC9C0 \uBCF4\uB0B4\uBA74 \uC18C\uC74C\uC774 \uB429\uB2C8\uB2E4)."}]},{title:"\uAD8C\uD55C \uD55C\uB208\uC5D0",lead:"\uAC19\uC740 \uC5C5\uBB34\uB97C \uBCF4\uACE0 \uC788\uC5B4\uB3C4 \uB204\uB97C \uC218 \uC788\uB294 \uBC84\uD2BC\uC774 \uB2E4\uB985\uB2C8\uB2E4. \uBC84\uD2BC\uC774 \uC548 \uBCF4\uC774\uBA74 \uAD8C\uD55C\uC774 \uC5C6\uB294 \uAC83\uC785\uB2C8\uB2E4(\uC7A0\uAE34 \uCC44\uB85C \uBCF4\uC774\uC9C0 \uC54A\uACE0 \uC544\uC608 \uC228\uC2B5\uB2C8\uB2E4).",items:[{term:"\uC218\uC815",desc:"\uC9C4\uD589 \uD56D\uBAA9(\uC0C1\uD0DC\xB7\uB77C\uBCA8\xB7\uBE44\uACE0\xB7\uD560\uC77C \uB4F1)\uC740 \uAD00\uC5EC\uC790 \uC804\uC6D0. **\uC57D\uC18D**(\uC81C\uBAA9\xB7\uB0B4\uC6A9\xB7\uC77C\uC815\xB7\uBC30\uC815\xB7\uACF5\uAC1C\uBC94\uC704)\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB77C \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB85C \uC81C\uD55C\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uAD00\uC5EC\uC790\uAC00 \uC544\uB2C8\uBA74 \uC5F4\uB78C\uB9CC \uB429\uB2C8\uB2E4."},{term:"\uC644\uB8CC \xB7 \uC644\uB8CC \uD574\uC81C",desc:"\uC791\uC131\uC790 \xB7 \uCC45\uC784\uC790."},{term:"\uAC80\uC218\uC644\uB8CC \xB7 \uB418\uB3CC\uB9AC\uAE30",desc:"\uC791\uC131\uC790\uB9CC. \uB0A8\uC774 \uC644\uB8CC\uD55C \uC5C5\uBB34\uAC00 \uAC80\uC218 \uB300\uAE30\uC77C \uB54C\uB9CC \uB098\uC635\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uC791\uC131\uC790\uB9CC."},{term:"\uD655\uC778",desc:"\uCC45\uC784\uC790 \xB7 \uCC38\uC870\uC790 \u2014 \uC791\uC131\uC790\uB294 \uC81C\uC678."},{term:"\uB313\uAE00",desc:"\uBCFC \uC218 \uC788\uB294 \uC0AC\uB78C \uB204\uAD6C\uB098."}]},{title:"\uACF5\uC9C0\uC0AC\uD56D\uC740 \uADDC\uCE59\uC774 \uB2E4\uB985\uB2C8\uB2E4",lead:"\uACF5\uC9C0\uB294 '\uB9E1\uAE30\uB294 \uC77C'\uC774 \uC544\uB2C8\uB77C '\uC54C\uB9AC\uB294 \uAE00'\uC774\uB77C \uCC45\uC784\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uB300\uC0C1\uC790\uAC00 \uACE7 \uC77D\uC5B4\uC57C \uD560 \uC0AC\uB78C\uB4E4\uC785\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uACF5\uC9C0\uB97C \uC62C\uB9B0 \uC0AC\uB78C. \uC218\uC815\xB7\uAC8C\uC2DC\uC885\uB8CC\xB7\uC0AD\uC81C\uB97C \uD63C\uC790 \uB9E1\uC2B5\uB2C8\uB2E4(\uAD00\uB9AC\uC790\uB3C4 \uB0A8\uC758 \uACF5\uC9C0\uB294 \uACE0\uCE58\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4)."},{term:"\uB300\uC0C1\uC790",desc:"\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815\uD55C \uC0AC\uB78C\uB4E4. **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE30\uACE0, \uC791\uC131\uC790\uB294 \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C \uB204\uAC00 \uC548 \uC77D\uC5C8\uB294\uC9C0 \uBD05\uB2C8\uB2E4."},{term:"\uD655\uC778 \uC54C\uB9BC",desc:"\uB300\uC0C1\uC790\uAC00 \uD655\uC778\uD574\uB3C4 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC804 \uC9C1\uC6D0 \uACF5\uC9C0\uB77C\uBA74 \uC54C\uB9BC\uC774 \uC0AC\uB78C \uC218\uB9CC\uD07C \uC3DF\uC544\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uBC18\uBCF5 \uACF5\uC9C0",desc:"\uB9E4\uC8FC \uC548\uC804\uAD50\uC721\uCC98\uB7FC \uB418\uD480\uC774\uD558\uB294 \uC548\uB0B4\uB294 **\uBC18\uBCF5**\uC744 \uAC78 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD68C\uCC28\uB9C8\uB2E4 \uC0C8 \uACF5\uC9C0\uAC00 \uB418\uC5B4 \uB300\uC0C1\uC790\uAC00 \uADF8\uB54C\uADF8\uB54C \uB2E4\uC2DC \uD655\uC778\uD558\uACE0, \uBAA9\uB85D\uC5D0\uB294 **\uC9C0\uAE08 \uAC8C\uC2DC\uD560 \uD68C\uCC28 1\uAC74\uB9CC** \uBCF4\uC785\uB2C8\uB2E4. \uB2E4\uC74C \uD68C\uCC28\uB294 **\uAC8C\uC2DC\uC77C\uC2DC**\uAC00 \uB418\uBA74 \uC2A4\uC2A4\uB85C \uC62C\uB77C\uC624\uBA74\uC11C \uB300\uC0C1\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4(\uADF8 \uC804\uAE4C\uC9C0\uB294 \uAC8C\uC2DC\uC608\uC815)."}]},{title:"\uACE0\uAC1D\uC13C\uD130 \uC5C5\uBB34\uB294 \uC791\uC131\uC790\uAC00 \uC678\uBD80\uC785\uB2C8\uB2E4",feature:"support",lead:"\uAC00\uB9F9\uC810\xB7\uD648\uD398\uC774\uC9C0\uC5D0\uC11C \uB4E4\uC5B4\uC628 \uBB38\uC758\uB294 \uC791\uC131\uC790\uAC00 \uC6B0\uB9AC \uC9C1\uC6D0\uC774 \uC544\uB2C8\uB77C, \uAD00\uC5EC\uC790 \uADDC\uCE59\uC744 \uADF8\uB300\uB85C \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uBB38\uC758\uB97C \uB0A8\uAE34 \uACE0\uAC1D(\uC9C1\uC6D0 \uBA85\uBD80\uC5D0 \uC5C6\uB294 \uC678\uBD80 \uACC4\uC815). \uC6B0\uB9AC \uCABD \uAD00\uC5EC\uC790 \uD310\uC815\uC5D0\uC11C\uB294 \uBE60\uC9D1\uB2C8\uB2E4."},{term:"\uC218\uC815",desc:"\uC5F4\uB78C\uD560 \uC218 \uC788\uB294 \uC9C1\uC6D0 \uB204\uAD6C\uB098 \uACE0\uCE69\uB2C8\uB2E4 \u2014 \uAD00\uC5EC\uC790\uAC00 \uC5C6\uC5B4 \uC544\uBB34\uB3C4 \uC190\uB300\uC9C0 \uBABB\uD558\uBA74 \uB2F5\uBCC0\uC744 \uB2EC \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uCC45\uC784\uC790",desc:"**\uAC00\uC838\uAC00\uAE30**\uB85C \uC815\uD574\uC9D1\uB2C8\uB2E4. \uBA3C\uC800 \uC7A1\uC740 \uC0AC\uB78C\uC774 \uB2F5\uBCC0\uC744 \uB9E1\uC2B5\uB2C8\uB2E4."},{term:"\uB2F5\uBCC0",desc:"\uC9C1\uC6D0\uC774 \uB2E8 \uB313\uAE00\uC774 \uACE7 \uB2F5\uBCC0\uC785\uB2C8\uB2E4. \uACE0\uAC1D\uC5D0\uAC8C\uB294 \uB2F5\uBCC0 \uC54C\uB9BC\uB9CC \uAC00\uACE0, \uC5C5\uBB34\uD568\uC758 \uB2E4\uB978 \uC54C\uB9BC\uC740 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uD655\uC778 \xB7 \uAC80\uC218",desc:"\uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uACE0\uAC1D\uC774 \uD655\uC778 \uBC84\uD2BC\uC744 \uB204\uB97C \uD654\uBA74\uC774 \uC5C6\uC5B4 \uD655\uC778\xB7\uAC80\uC218 \uC6CC\uD06C\uD50C\uB85C\uB97C \uD0DC\uC6B0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]}]};var pb={id:"basics",tabTitle:"\uAE30\uBCF8 \uC0AC\uC6A9",intro:"\uB9E4\uC77C \uC4F0\uB294 \uC870\uC791\uB9CC \uBAA8\uC558\uC2B5\uB2C8\uB2E4. \uAC1C\uB150 \uD0ED\uC758 \uC138 \uAC78\uC74C \uC21C\uC11C \uADF8\uB300\uB85C\uC785\uB2C8\uB2E4.",topics:[{title:"1. \uB4F1\uB85D\uD558\uAE30",lines:["**\uC0C8\uB85C \uB9CC\uB4E4\uAE30** \uBC84\uD2BC(\uB2E8\uCD95\uD0A4 **N**) \u203A \uC81C\uBAA9 \xB7 \uCC45\uC784\uC790 \xB7 \uB9C8\uAC10\uC608\uC815\uC744 \uC801\uACE0 \uC800\uC7A5\uD569\uB2C8\uB2E4. \uB0B4\uC6A9\xB7\uCC38\uC870\uC790\xB7\uC2DC\uC791\uC77C\uC2DC\xB7\uC911\uC694\uB3C4\uB294 \uD544\uC694\uD560 \uB54C\uB9CC \uCC44\uC6C1\uB2C8\uB2E4.","**\uACF5\uAC1C \uBC94\uC704** : \uBE44\uACF5\uAC1C(\uAD00\uC5EC\uC790\uB9CC) / \uBD80\uC11C\uACF5\uAC1C / \uC804\uCCB4\uACF5\uAC1C. \uCC45\uC784\uC790\uAC00 \uC5C6\uB294 \uACF5\uAC1C \uC5C5\uBB34\uB294 \uC5F4\uB78C\uC790\uAC00 **\uAC00\uC838\uAC00\uAE30**\uB85C \uB9E1\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","**\uBC18\uBCF5** \uC5C5\uBB34\uB294 \uB9E4\uC77C\xB7\uB9E4\uC8FC\xB7\uB9E4\uC6D4 \uD68C\uCC28\uB85C \uB9CC\uB4E4\uC5B4\uC9C0\uACE0, **\uC77C\uC815**\uC740 \uC2DC\uAC01\uC774 \uC788\uB294 \uD589\uC0AC\uB77C \uC644\uB8CC \uB300\uC2E0 \uCE98\uB9B0\uB354\uC5D0 \uB193\uC785\uB2C8\uB2E4."]},{title:"2. \uD560\uC77C \uB098\uB204\uAE30",subtitle:"\uD63C\uC790 \uD558\uAE30 \uD070 \uC5C5\uBB34\uB77C\uBA74",lead:"\uC5C5\uBB34 \uD558\uB098\uB97C \uC798\uAC8C \uCABC\uAC1C \uC9C4\uD589\uC744 \uB208\uC5D0 \uBCF4\uC774\uAC8C \uD558\uACE0, \uD544\uC694\uD558\uBA74 \uC870\uAC01\uC744 \uD300\uC6D0\uC5D0\uAC8C \uB098\uB220 \uB9E1\uAE41\uB2C8\uB2E4. \uCABC\uAC24 \uC77C\uC774 \uC544\uB2C8\uBA74 \uAC74\uB108\uB6F0\uC5B4\uB3C4 \uB429\uB2C8\uB2E4.",lines:["\uC0C1\uC138\uC758 **\uD560\uC77C**\uC5D0 \uD56D\uBAA9\uC744 \uC801\uACE0 **Enter** \uB610\uB294 \uC624\uB978\uCABD **[+]** \uB85C \uCD94\uAC00\uD569\uB2C8\uB2E4. \uCD94\uAC00\uC640 \uCCB4\uD06C\uB294 **\uB204\uAD6C\uB098** \uD560 \uC218 \uC788\uACE0(\uD568\uAED8 \uC4F0\uB294 \uCE78), \uD56D\uBAA9 \uC0AD\uC81C\uB9CC \uC218\uC815 \uAD8C\uD55C\uC774 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.",'\uC9C4\uD589\uC740 \uBAA9\uB85D\xB7\uCE74\uB4DC\uC5D0 **"1/3"** \uCC98\uB7FC \uBCF4\uC5EC\uC11C, \uBB3B\uC9C0 \uC54A\uC544\uB3C4 \uC5B4\uB514\uAE4C\uC9C0 \uB410\uB294\uC9C0 \uB4DC\uB7EC\uB0A9\uB2C8\uB2E4. \uB370\uC2A4\uD06C\uD1B1\uC5D0\uC11C\uB294 \uD578\uB4E4\uB85C \uB04C\uC5B4 \uC21C\uC11C\uB97C \uBC14\uAFC9\uB2C8\uB2E4.',"\uD56D\uBAA9\uC5D0 \uB9C8\uC6B0\uC2A4\uB97C \uC62C\uB824 **\uC5C5\uBB34\uB85C \uB9CC\uB4E4\uAE30**\uB97C \uB204\uB974\uBA74 \uADF8 \uD56D\uBAA9\uC774 **\uBCC4\uB3C4 \uC5C5\uBB34**\uAC00 \uB429\uB2C8\uB2E4 \u2014 \uCC45\uC784\uC790\uC640 \uB9C8\uAC10\uC608\uC815\uC744 \uB530\uB85C \uC815\uD574 \uB098\uB220 \uB9E1\uAE38 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","\uC774\uBBF8 \uC788\uB294 \uC5C5\uBB34\uB97C \uD560\uC77C\uC5D0 **\uBD99\uC77C** \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4(\uC785\uB825\uCE78 \uC67C\uCABD \uB9C1\uD06C \uBC84\uD2BC).","\uC5F0\uACB0\uB41C \uD56D\uBAA9\uC758 \uCCB4\uD06C\uB294 \uACE7 **\uADF8 \uC5C5\uBB34\uC758 \uC644\uB8CC**\uC785\uB2C8\uB2E4. \uADF8\uB798\uC11C \uCCB4\uD06C\uB3C4 \uADF8 \uC5C5\uBB34\uC758 \uC644\uB8CC \uAD8C\uD55C\uC774 \uC788\uB294 \uC0AC\uB78C(\uC791\uC131\uC790\xB7\uCC45\uC784\uC790)\uB9CC \uB204\uB97C \uC218 \uC788\uACE0, \uD300\uC6D0\uC774 \uC790\uAE30 \uC5C5\uBB34\uB97C \uB05D\uB0B4\uBA74 \uC774\uCABD \uD560\uC77C\uB3C4 \uC800\uC808\uB85C \uCCB4\uD06C\uB429\uB2C8\uB2E4.","\uC5F0\uACB0 \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC5D0 \uBCF4\uB0B4\uBA74 \uD560\uC77C\uC5D0\uC11C\uB3C4 \uD568\uAED8 \uBE60\uC9D1\uB2C8\uB2E4."]},{title:"3. \uC5F4\uC5B4 \uBCF4\uACE0 \uB300\uD654\uD558\uAE30",lines:["\uD589\uC744 \uB204\uB974\uBA74 \uC624\uB978\uCABD\uC5D0 \uC0C1\uC138\uAC00 \uC5F4\uB9BD\uB2C8\uB2E4(\uBAA8\uBC14\uC77C\uC740 \uC804\uCCB4 \uD654\uBA74). \uC81C\uBAA9\uACFC \uC18D\uC131\uC740 \uADF8 \uC790\uB9AC\uC5D0\uC11C \uB20C\uB7EC \uACE0\uCE69\uB2C8\uB2E4.","\uC5C5\uBB34 \uB300\uD654\uB294 **\uB313\uAE00**\uB85C \uD569\uB2C8\uB2E4. \uD30C\uC77C\uC744 \uBD99\uC774\uACE0, **\uD655\uC778(\u2713)\xB7\uC88B\uC544\uC694** \uBC18\uC751\uC73C\uB85C \uC77D\uC5C8\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4. \uB313\uAE00\uC740 \uC791\uC131\uC790\uC640 \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC00\uC11C \uB2F5\uAE00 \uD750\uB984\uC774 \uB04A\uAE30\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","**\uD65C\uB3D9** \uC544\uC774\uCF58\uC5D0\uC11C \uB4F1\uB85D\xB7\uC218\uC815\xB7\uD655\uC778\xB7\uC644\uB8CC \uC774\uB825\uC744 \uBD05\uB2C8\uB2E4. \uBAA8\uBC14\uC77C \uC0C1\uC138\uB294 **\u22EE** \uC5D0 \uD65C\uB3D9\xB7\uACF5\uC720\xB7\uC0AD\uC81C\uAC00 \uC788\uACE0, \uACE0\uCE5C \uB0B4\uC6A9\uC740 **\uC800\uC7A5\uD558\uAE30**\uB85C \uD55C \uBC88\uC5D0 \uBCF4\uB0C5\uB2C8\uB2E4."]},{title:"4. \uD655\uC778\uD558\uAE30",lines:["\uBC1B\uC740 \uC5C5\uBB34\uB294 **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4. \uD655\uC778 \uC804 \uC5C5\uBB34\uB294 \uBAA9\uB85D \uB9E8 \uC704 **\uBBF8\uD655\uC778** \uC601\uC5ED(\uBAA8\uBC14\uC77C\uC740 \uBBF8\uD655\uC778 \uADF8\uB8F9)\uC5D0 \uBAA8\uC5EC \uC788\uC2B5\uB2C8\uB2E4.","\uD655\uC778 \uC5F4\uC758 **n/m** \uC744 \uB204\uB974\uBA74 \uB204\uAC00 \uD655\uC778\uD588\uB294\uC9C0 \uBCF4\uC774\uACE0, \uC791\uC131\uC790\uB294 \uBBF8\uD655\uC778\uC790\uC5D0\uAC8C **\uD655\uC778 \uC694\uCCAD**\uC744 \uB2E4\uC2DC \uBCF4\uB0BC \uC218 \uC788\uC2B5\uB2C8\uB2E4."]},{title:"5. \uC9C4\uD589\uD558\uACE0 \uC644\uB8CC\uD558\uAE30",lines:["\uC0C1\uD0DC \uCE69\uC744 \uB204\uB974\uBA74 \uC2DC\uC791\uC804 \u203A \uC9C4\uD589\uC911 \u203A \uBCF4\uB958\uB97C \uACE0\uB985\uB2C8\uB2E4.","\uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB294 **\uC791\uC131\uC790\uC640 \uCC45\uC784\uC790\uB9CC** \uB204\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB9C8\uAC10\uC608\uC815\uC774 \uBE44\uC5B4 \uC788\uC73C\uBA74 \uC644\uB8CC \uC2DC\uAC01\uC73C\uB85C \uCC44\uC6CC\uC9D1\uB2C8\uB2E4."]},{title:"6. \uAC80\uC218\uD558\uAE30",subtitle:"\uAC80\uC218\uC644\uB8CC \xB7 \uB418\uB3CC\uB9AC\uAE30",lines:["\uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD558\uBA74 \uC791\uC131\uC790\uC758 \uBAA9\uB85D \uB9E8 \uC704\uC5D0 **\uAC80\uC218 \uB300\uAE30**\uB85C \uB0A8\uC2B5\uB2C8\uB2E4(\uC644\uB8CC \uC228\uAE30\uAE30\uC640 \uBB34\uAD00, \uBAA8\uBC14\uC77C\uC740 \uBBF8\uD655\uC778 \uADF8\uB8F9).","\uACB0\uACFC\uAC00 \uAD1C\uCC2E\uC73C\uBA74 **\uAC80\uC218\uC644\uB8CC** \uBC84\uD2BC\uC73C\uB85C \uB0B4\uB9BD\uB2C8\uB2E4. \uBBF8\uD761\uD558\uBA74 \uC644\uB8CC \uCCB4\uD06C\uB97C \uD574\uC81C(\uC0C1\uC138\uC758 **\uB418\uB3CC\uB9AC\uAE30**)\uD558\uBA70 \uC0AC\uC720\uB97C \uC801\uC2B5\uB2C8\uB2E4 \u2014 \uC0AC\uC720\uB294 \uB313\uAE00\uB85C \uB0A8\uACE0, \uC0C1\uD0DC\uB294 \uC9C4\uD589\uC911\uC73C\uB85C \uB3CC\uC544\uAC00\uACE0, \uC644\uB8CC\uD55C \uC0AC\uB78C\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4.","**\uB418\uB3CC\uB9AC\uAE30\uB294 \uAC80\uC218 \uC804\uC5D0\uB9CC** \uB098\uC635\uB2C8\uB2E4 \u2014 \uAC80\uC218\uC644\uB8CC\uB97C \uB204\uB978 \uB4A4\uC5D0\uB294 \uC0AC\uC720 \uC5C6\uC774 \uB0B4\uB9AC\uB294 **\uC644\uB8CC \uD574\uC81C**\uB85C \uBC14\uB01D\uB2C8\uB2E4.","\uBCF8\uC778\uC774 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uAC80\uC218 \uB300\uC0C1\uC774 \uC544\uB2C8\uB77C \uCC98\uC74C\uBD80\uD130 **\uC644\uB8CC \uD574\uC81C**\uC785\uB2C8\uB2E4."]},{title:"7. \uBCF4\uAD00\uD558\uAE30 \xB7 \uC0AD\uC81C\uD558\uAE30",lines:["\uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC124\uC815 \uAE30\uAC04(\uAE30\uBCF8 7\uC77C) \uB4A4 \uC0C8\uBCBD\uC5D0 \uC790\uB3D9\uC73C\uB85C **\uBCF4\uAD00\uD568**\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4. \uC6B0\uD074\uB9AD \u203A **\uBCF4\uAD00**\uC73C\uB85C \uBC14\uB85C \uBCF4\uB0B4\uACE0, \uBCF4\uAD00\uD568\uC758 **\uBCF4\uAD00 \uD574\uC81C**\uB85C \uB418\uB3CC\uB9BD\uB2C8\uB2E4.","\uC0AD\uC81C\uB294 \uC791\uC131\uC790\uB9CC \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uC0C1\uC138\uC758 \uD734\uC9C0\uD1B5 \uC544\uC774\uCF58). \uC9C0\uC6B4 \uC5C5\uBB34\uB294 **\uD734\uC9C0\uD1B5**\uC5D0\uC11C \uB418\uC0B4\uB9B4 \uC218 \uC788\uACE0, \uC124\uC815 \uAE30\uAC04(\uAE30\uBCF8 90\uC77C) \uB4A4 \uC601\uAD6C \uC0AD\uC81C\uB429\uB2C8\uB2E4.",'\uBC18\uBCF5 \uC5C5\uBB34\uB294 \uC644\uB8CC\xB7\uC0AD\uC81C\uD560 \uB54C "\uC774 \uD68C\uCC28\uB9CC / \uC774\uD6C4 \uC804\uCCB4"\uB97C \uACE0\uB985\uB2C8\uB2E4.']}]};var fb={id:"notify",tabTitle:"\uC54C\uB9BC",intro:"\uC54C\uB9BC\uC740 \uBCA8(\uC5C5\uBB34\uD568 \uC548)\uACFC \uC571 \uD478\uC2DC \uB450 \uAC08\uB798\uB85C \uAC11\uB2C8\uB2E4. \uC544\uB798 \uD45C\uC758 '\uBC1B\uB294 \uC0AC\uB78C'\uC5D0 \uC5C6\uC73C\uBA74 \uADF8 \uC77C\uC774 \uC77C\uC5B4\uB098\uB3C4 \uC54C\uB9BC\uC774 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC54C\uB9BC\uC744 \uC904\uC774\uB294 \uCABD\uC73C\uB85C \uC815\uD55C \uADDC\uCE59\uC774 \uB9CE\uC544, \uAD00\uC5EC\uC790\uB77C\uACE0 \uC804\uBD80 \uBC1B\uB294 \uAC83\uC740 \uC544\uB2D9\uB2C8\uB2E4.",topics:[{title:"\uC5C5\uBB34\uB97C \uB9E1\uACE0 \uBC1B\uC744 \uB54C",items:[{term:"\uCC45\uC784\uC790\uB85C \uC9C0\uC815",desc:"\uC0C8 **\uCC45\uC784\uC790**\uC5D0\uAC8C. \uCC45\uC784\uC790\uB97C \uBC14\uAFB8\uBA74 \uC0C8 \uCC45\uC784\uC790\uB9CC \uBC1B\uC2B5\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790\uB85C \uCD94\uAC00",desc:"\uC0C8\uB85C \uCD94\uAC00\uB41C **\uCC38\uC870\uC790**\uC5D0\uAC8C\uB9CC. \uC6D0\uB798 \uC788\uB358 \uCC38\uC870\uC790\uB294 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC2DC\uC791\uC77C\uC2DC \uB3C4\uB2EC",desc:"**\uCC45\uC784\uC790**\uC5D0\uAC8C. \uC2DC\uC791\uC77C\uC2DC\uAC00 \uB418\uBA74 \uC790\uB3D9\uC73C\uB85C \uAC11\uB2C8\uB2E4."},{term:"\uC77C\uC815 \uCD08\uB300",desc:"\uC77C\uC815\uC758 **\uCC38\uC11D\uC790**\uC5D0\uAC8C."}]},{title:"\uD655\uC778 \xB7 \uC644\uB8CC \xB7 \uAC80\uC218",items:[{term:"\uCC45\uC784\uC790\uAC00 \uD655\uC778",desc:"**\uC791\uC131\uC790**\uC5D0\uAC8C. \uBC1B\uC740 \uC0AC\uB78C\uC774 \uC77D\uC5C8\uB2E4\uB294 \uC2E0\uD638\uC785\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790\uAC00 \uD655\uC778",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uCC38\uC870\uC790\uAC00 \uC5EC\uB7EC \uBA85\uC774\uB77C \uC0AC\uB78C \uC218\uB9CC\uD07C \uC54C\uB9BC\uC774 \uC3DF\uC544\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C\uB9CC \uBD05\uB2C8\uB2E4."},{term:"\uD655\uC778 \uC694\uCCAD(\uB9AC\uB9C8\uC778\uB4DC)",desc:"\uC544\uC9C1 **\uD655\uC778\uD558\uC9C0 \uC54A\uC740 \uB300\uC0C1\uC790**\uC5D0\uAC8C\uB9CC. \uC774\uBBF8 \uD655\uC778\uD55C \uC0AC\uB78C\uC740 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC644\uB8CC \uCC98\uB9AC",desc:"**\uC791\uC131\uC790 + \uCC38\uC870\uC790**\uC5D0\uAC8C. \uC644\uB8CC\uB97C \uB204\uB978 \uC0AC\uB78C \uBCF8\uC778\uC740 \uC81C\uC678\uB429\uB2C8\uB2E4."},{term:"\uAC80\uC218\uC644\uB8CC",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC2B9\uC778\uC774 \uC544\uB2C8\uB77C \uC791\uC131\uC790 \uD654\uBA74\uC758 \uD45C\uC2DC\uB97C \uB0B4\uB9AC\uB294 \uAC83\uC77C \uBFD0\uC785\uB2C8\uB2E4."},{term:"\uB418\uB3CC\uB9AC\uAE30",desc:"**\uC644\uB8CC\uB97C \uCC98\uB9AC\uD55C \uC0AC\uB78C**(\uBCF4\uD1B5 \uCC45\uC784\uC790)\uC5D0\uAC8C. \uC0AC\uC720\uAC00 \uD568\uAED8 \uC804\uB2EC\uB418\uACE0 \uB313\uAE00\uB85C\uB3C4 \uB0A8\uC2B5\uB2C8\uB2E4."}]},{title:"\uB9C8\uAC10 \uAD00\uB828",lead:"\uB9C8\uAC10 \uACC4\uC5F4\uC740 \uC804\uBD80 \uCC45\uC784\uC790\uC640 \uC791\uC131\uC790\uC5D0\uAC8C\uB9CC \uAC11\uB2C8\uB2E4. \uCC38\uC870\uC790\uB294 \uB9C8\uAC10 \uC54C\uB9BC\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uCC38\uC870\uAE4C\uC9C0 \uBCF4\uB0B4\uBA74 \uC54C\uB9BC\uC774 \uC18C\uC74C\uC774 \uB429\uB2C8\uB2E4.",items:[{term:"\uB9C8\uAC10 \uC0AC\uC804\uC54C\uB9BC",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uC5C5\uBB34\uB9C8\uB2E4 \uACE0\uB978 \uC2DC\uC810(\uC608: 1\uC77C \uC804)\uC5D0 \uAC11\uB2C8\uB2E4."},{term:"\uB9C8\uAC10 \uB2F9\uC77C",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uB9C8\uAC10 \uACBD\uACFC(\uC9C0\uC5F0)",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uB9C8\uAC10\uC774 \uC9C0\uB0AC\uB294\uB370 \uC644\uB8CC\uB418\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790",desc:"\uC704 \uC14B \uBAA8\uB450 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uB313\uAE00 \xB7 \uBC18\uC751",lead:"\uB313\uAE00 \uC54C\uB9BC\uC740 \uAD00\uC5EC\uC790 \uC804\uC6D0\uC5D0\uAC8C \uBCF4\uB0B4\uB2E4\uAC00 \uC54C\uB9BC \uD3ED\uC8FC\uB85C \uC904\uC600\uC2B5\uB2C8\uB2E4. \uC9C0\uAE08\uC740 '\uB300\uD654\uC5D0 \uC9C1\uC811 \uC5BD\uD78C \uC0AC\uB78C'\uB9CC \uBC1B\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC77C\uBC18 \uB313\uAE00",desc:"\uC5C5\uBB34 **\uC791\uC131\uC790 + \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uC791\uC131\uC790\uAC00 \uC790\uAE30 \uC5C5\uBB34\uC5D0 \uB313\uAE00",desc:"**\uCC45\uC784\uC790 + \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uCC45\uC784\uC790 \uC5C6\uB294 \uC5C5\uBB34\uC758 \uB313\uAE00",desc:"\uC704\uC5D0 \uB354\uD574 **\uCC38\uC870\uC790 \uC804\uC6D0**\uC5D0\uAC8C. \uB204\uAC00 \uB9E1\uC744\uC9C0 \uC815\uD558\uB294 \uB300\uD654\uB77C \uCC38\uC870\uC790\uB4E4\uC774 \uC54C\uC544\uC57C \uD558\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uCC45\uC784\uC790\uAC00 \uC815\uD574\uC9C0\uBA74 \uB2E4\uC2DC \uBE60\uC9D1\uB2C8\uB2E4."},{term:"\uB313\uAE00 \uC88B\uC544\uC694 \xB7 \uD655\uC778",desc:"\uADF8 **\uB313\uAE00\uC744 \uC4F4 \uC0AC\uB78C**\uC5D0\uAC8C\uB9CC."},{term:"\uACF5\uC9C0 \uB313\uAE00",desc:"**\uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C\uB9CC \u2014 \uB300\uC0C1\uC790\uAC00 \uC804 \uC9C1\uC6D0\uC774\uB77C \uD655\uC7A5 \uADDC\uCE59\uC744 \uC801\uC6A9\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uB0B4\uC6A9\uC774 \uBC14\uB014 \uB54C",lead:"\uC218\uC815 \uC54C\uB9BC\uC740 \uACE7\uBC14\uB85C \uBCF4\uB0B4\uC9C0 \uC54A\uACE0, \uD3B8\uC9D1\uC774 \uB05D\uB098 \uC870\uC6A9\uD574\uC9C4 \uB4A4 \uD55C \uAC74\uC73C\uB85C \uBAA8\uC544 \uBCF4\uB0C5\uB2C8\uB2E4 \u2014 \uACE0\uCE58\uB294 \uB3C4\uC911\uC5D0 \uC54C\uB9BC\uC774 \uC5EC\uB7EC \uBC88 \uAC00\uC9C0 \uC54A\uAC8C \uD558\uB824\uB294 \uAC83\uC785\uB2C8\uB2E4.",items:[{term:"\uC77C\uBC18 \uC5C5\uBB34 \uC218\uC815",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uB204\uAC00 \uACE0\uCCE4\uB4E0 \uB098\uBA38\uC9C0 \uD55C\uCABD\uC774 \uBC1B\uC2B5\uB2C8\uB2E4(\uACE0\uCE5C \uC0AC\uB78C \uBCF8\uC778\uC740 \uC81C\uC678). \uCC38\uC870\uC790\uB294 \uC81C\uC678\uB429\uB2C8\uB2E4."},{term:"\uACF5\uC9C0 \uC218\uC815",desc:"**\uC791\uC131\uC790 + \uB300\uC0C1\uC790**\uC5D0\uAC8C."},{term:"\uD569\uC0B0 \uBC1C\uC1A1",desc:"\uC5EC\uB7EC \uD544\uB4DC\uB97C \uC5F0\uB2EC\uC544 \uACE0\uCCD0\uB3C4 \uD55C \uAC74\uC73C\uB85C \uBB36\uC5EC \uAC11\uB2C8\uB2E4. \uBB34\uC5C7\uC774 \uC5B4\uB5BB\uAC8C \uBC14\uB00C\uC5C8\uB294\uC9C0 \uC694\uC57D\uC774 \uB2F4\uAE41\uB2C8\uB2E4."},{term:"\uC54C\uB9BC\uC774 \uC548 \uAC00\uB294 \uBCC0\uACBD",desc:"\uC644\uB8CC \xB7 \uBCF4\uAD00 \xB7 \uC815\uB82C \uC21C\uC11C \xB7 \uCC45\uC784\uC790/\uCC38\uC870\uC790 \uBCC0\uACBD \u2014 \uAC01\uAC01 \uC804\uC6A9 \uC54C\uB9BC\uC774 \uB530\uB85C \uC788\uC5B4 \uC218\uC815 \uC54C\uB9BC\uC73C\uB85C\uB294 \uC138\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uD560\uC77C(\uCCB4\uD06C\uB9AC\uC2A4\uD2B8) \uBCC0\uACBD",desc:"\uC218\uC815 \uC54C\uB9BC\uACFC \uAC19\uC740 **\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uBB34\uC5C7\uC744 \uCD94\uAC00\xB7\uC0AD\uC81C\xB7\uC218\uC815\uD588\uB294\uC9C0 \uAD6C\uCCB4\uC801\uC73C\uB85C \uB2F4\uAE41\uB2C8\uB2E4. \uCCB4\uD06C\uB9CC \uCF1C\uACE0 \uB044\uAC70\uB098 \uC21C\uC11C\uB9CC \uBC14\uAFB8\uBA74 \uC54C\uB9BC\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}]},{title:"\uACF5\uC9C0\uC0AC\uD56D",items:[{term:"\uACF5\uC9C0 \uB4F1\uB85D",desc:"**\uB300\uC0C1\uC790 \uC804\uC6D0**\uC5D0\uAC8C(\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815\uD55C \uC0AC\uB78C\uB4E4)."},{term:"\uB300\uC0C1\uC790 \uCD94\uAC00",desc:"\uC0C8\uB85C \uCD94\uAC00\uB41C **\uB300\uC0C1\uC790**\uC5D0\uAC8C\uB9CC."},{term:"\uB300\uC0C1\uC790\uAC00 \uD655\uC778",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC791\uC131\uC790\uB294 \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C \uBD05\uB2C8\uB2E4."}]},{title:"\uC54C\uC544 \uB450\uBA74 \uC88B\uC740 \uAC83",items:[{term:"\uB0B4 \uD589\uB3D9\uC740 \uC81C\uC678",desc:"\uB0B4\uAC00 \uB204\uB978 \uC77C\uB85C\uB294 \uB098\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB0B4\uAC00 \uC644\uB8CC\uD588\uC73C\uBA74 \uB098\uB294 \uC644\uB8CC \uC54C\uB9BC\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC2DC\uC791 \uC804\uC5D0\uB294 \uBCA8\uB9CC",desc:"\uC2DC\uC791\uC77C\uC2DC\uAC00 \uC544\uC9C1 \uC548 \uB41C \uC5C5\uBB34\uC758 \uCC45\uC784\uC790 \uB300\uC0C1 \uC54C\uB9BC\uC740 \uBCA8\uC5D0\uB9CC \uC313\uC774\uACE0 \uC571 \uD478\uC2DC\uB294 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC2DC\uC791\uC77C\uC2DC\uBD80\uD130 \uD478\uC2DC\uAC00 \uC624\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4(\uC77C\uC815\xB7\uACF5\uC9C0\uB294 \uC608\uC678 \uC5C6\uC774 \uBC14\uB85C)."},{term:"\uC885\uB958\uBCC4\uB85C \uB044\uAE30",desc:"**\uB0B4 \uC815\uBCF4 \u203A \uC54C\uB9BC \uC124\uC815**\uC5D0\uC11C \uC885\uB958\uBCC4\uB85C \uC218\uC2E0\uC744 \uB055\uB2C8\uB2E4. \uB048 \uC885\uB958\uB294 \uBCA8\xB7\uD478\uC2DC \uBAA8\uB450 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB2E4\uB9CC \uD655\uC778 \uC694\uCCAD\uC740 \uB04C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},{term:"\uC54C\uB9BC\uD1A1\uC740 \uC5C6\uC74C",desc:"\uC5C5\uBB34\uD568 \uC54C\uB9BC\uC740 \uBCA8\uACFC \uC571 \uD478\uC2DC\uBFD0\uC785\uB2C8\uB2E4 \u2014 \uBB38\uC790\xB7\uC54C\uB9BC\uD1A1\uC73C\uB85C\uB294 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]}]};var gb={id:"more",tabTitle:"\uB354 \uC54C\uC544\uBCF4\uAE30",intro:"\uC775\uC219\uD574\uC9C4 \uB4A4\uC5D0 \uC4F0\uBA74 \uC88B\uC740 \uAE30\uB2A5\uB4E4\uC785\uB2C8\uB2E4. \uC5C5\uBB34\uD568 \uC124\uC815\uC5D0\uC11C \uB048 \uAE30\uB2A5\uC740 \uC5EC\uAE30\uC5D0\uB3C4 \uBCF4\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",topics:[{title:"\uBCF4\uAE30 \uBC14\uAFB8\uAE30",lead:"\uAC19\uC740 \uC5C5\uBB34\uB97C \uBAA9\uB85D \xB7 \uD504\uB85C\uC81D\uD2B8 \xB7 \uC0C1\uD0DC \xB7 \uC8FC\uAC04 \xB7 \uC6D4\uAC04\uC73C\uB85C \uB2E4\uB974\uAC8C \uBD05\uB2C8\uB2E4. \uD5E4\uB354 \uC624\uB978\uCABD \uBC84\uD2BC\uC73C\uB85C \uBC14\uAFB8\uACE0 \uD0ED\uB9C8\uB2E4 \uB530\uB85C \uAE30\uC5B5\uB429\uB2C8\uB2E4(\uB2E8\uCD95\uD0A4 **G** \uB2E4\uC74C \uAE00\uC790\uD0A4).",lines:["**\uBAA9\uB85D** : \uC5F4 \uC81C\uBAA9\uC744 \uB204\uB974\uBA74 \uC815\uB82C(\uC81C\uBAA9\xB7\uB0A0\uC9DC) \uB610\uB294 \uD544\uD130(\uC0C1\uD0DC\xB7\uD655\uC778\xB7\uCC45\uC784\uC790\xB7\uD504\uB85C\uC81D\uD2B8\xB7\uC911\uC694\uB3C4)\uAC00 \uC5F4\uB9BD\uB2C8\uB2E4. **\uADF8\uB8F9** \uBA54\uB274\uB85C \uBB36\uB294 \uAE30\uC900\uC744 \uBC14\uAFB8\uACE0, \uADF8\uB8F9 \uBA38\uB9AC\uC904 **+** \uB85C \uADF8 \uADF8\uB8F9\uC5D0 \uBC14\uB85C \uB4F1\uB85D\uD569\uB2C8\uB2E4.","**\uD504\uB85C\uC81D\uD2B8 \xB7 \uC0C1\uD0DC \xB7 \uBAA9\uD45C** \uBCF4\uAE30\uB294 \uCE74\uB4DC\uB97C \uCEEC\uB7FC\uC5D0 \uC138\uC6C1\uB2C8\uB2E4 \u2014 \uC81C\uBAA9 \uC55E **\u22EE\u22EE \uD578\uB4E4**\uB85C \uB04C\uC5B4 \uB2E4\uB978 \uCEEC\uB7FC\uC73C\uB85C \uC62E\uAE30\uACE0, \uCEEC\uB7FC **\u22EE** \uBA54\uB274\uC5D0 \uB4F1\uB85D\xB7\uC218\uC815\xB7\uBCF4\uAD00\xB7\uC0AD\uC81C\uAC00 \uC788\uC2B5\uB2C8\uB2E4.","**\uC8FC\uAC04\xB7\uC6D4\uAC04** : \uB9C8\uAC10\uC608\uC815(\uC77C\uC815\uC740 \uC77C\uC2DC) \uAE30\uC900\uC73C\uB85C \uB193\uC774\uACE0, \uCE74\uB4DC\uB97C \uB2E4\uB978 \uB0A0\uB85C \uB04C\uBA74 \uB0A0\uC9DC\uAC00 \uBC14\uB01D\uB2C8\uB2E4. \uBE48 \uCE78\uC5D0 \uC62C\uB9AC\uBA74 \uADF8 \uB0A0\uC9DC\uB85C \uBC14\uB85C \uB4F1\uB85D\uD569\uB2C8\uB2E4. \uBC14\uAE65 \uCE98\uB9B0\uB354\uC640 \uC8FC\uACE0\uBC1B\uB294 \uBC29\uBC95\uC740 **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9** \uD0ED\uC5D0 \uC788\uC2B5\uB2C8\uB2E4."]},{title:"\uD0C0\uC784\uB77C\uC778",feature:"timeline",lines:["\uC2DC\uC791\uC77C\uC2DC~\uB9C8\uAC10\uC608\uC815\uC744 \uB9C9\uB300\uB85C \uBCF4\uC5EC \uAE30\uAC04 \uACB9\uCE68\uC744 \uBD05\uB2C8\uB2E4. \uC5C5\uBB34 \uC544\uB798 \uD560\uC77C \uC904\uC774 \uD3BC\uCCD0\uC9C0\uACE0, \uC67C\uCABD \uC5C5\uBB34\uBA85 \uC904\uC758 \uD578\uB4E4\uB85C \uC21C\uC11C\uB97C \uBC14\uAFC9\uB2C8\uB2E4."]},{title:"\uCC28\uD2B8",feature:"charts",lines:["**\uCC28\uD2B8** \uBC84\uD2BC\uC5D0\uC11C \uC6CC\uD06C\uB85C\uB4DC(\uC778\uC6D0\uBCC4 \uBD80\uD558)\xB7\uB204\uC801\uD750\uB984\uB3C4\xB7\uB9AC\uB4DC\uD0C0\uC784\uC744, \uBAA9\uD45C\uB97C \uC4F0\uBA74 \uBCA8\uB85C\uC2DC\uD2F0\xB7\uBC88\uB2E4\uC6B4\uC744 \uBD05\uB2C8\uB2E4. \uC778\uC6D0 \uC6A9\uB7C9\uC740 \uCC28\uD2B8 \uC548 \uC124\uC815 \uC544\uC774\uCF58\uC5D0\uC11C \uC815\uD569\uB2C8\uB2E4."]},{title:"\uAC80\uC0C9\uACFC \uD544\uD130",lines:["\uAC80\uC0C9\uCE78(\uB2E8\uCD95\uD0A4 **/**)\uC740 \uC81C\uBAA9\xB7\uBE44\uACE0\uB97C \uCC3E\uC2B5\uB2C8\uB2E4. \uBAA8\uBC14\uC77C\uC740 \uAC80\uC0C9 \uD654\uBA74\uC5D0\uC11C \uC0C1\uD0DC\xB7\uB77C\uBCA8 \uCE69\uC73C\uB85C \uD568\uAED8 \uAC70\uB985\uB2C8\uB2E4.","**\uD544\uD130 \xB7 \uCC45\uC784\uC790 \xB7 \uD504\uB85C\uC81D\uD2B8 \xB7 \uC911\uC694\uB3C4** \uBC84\uD2BC\uC740 \uCCB4\uD06C \uBA54\uB274\uAC00 \uC5F4\uB9AC\uACE0 \uAC78\uB9B0 \uAC1C\uC218\uAC00 \uBC84\uD2BC\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uC644\uB8CC\xB7\uBCF4\uAD00\uD568 \uD0ED\uC740 **\uAE30\uAC04** \uBC84\uD2BC\uC73C\uB85C \uC644\uB8CC\uC77C \uBC94\uC704\uB97C \uC815\uD569\uB2C8\uB2E4."]},{title:"\uB77C\uBCA8",feature:"label",lines:["**\uB77C\uBCA8** \uBC84\uD2BC\uC73C\uB85C \uAC70\uB974\uACE0, \uC0C1\uC138\uC758 \uB77C\uBCA8 \uD589\uC5D0\uC11C \uBD99\uC785\uB2C8\uB2E4. \uB77C\uBCA8 \uC0AC\uC804\uC740 \uC5C5\uBB34\uD568 \uC124\uC815\uC5D0\uC11C \uAD00\uB9AC\uD569\uB2C8\uB2E4."]},{title:"\uD5E4\uB354 \uC2A4\uC704\uCE58",lines:["**\uC644\uB8CC \uC228\uAE30\uAE30** : \uB05D\uB09C \uC5C5\uBB34\uB97C \uBAA8\uB4E0 \uBCF4\uAE30(\uD560\uC77C \uD3EC\uD568)\uC5D0\uC11C \uAC10\uCDA5\uB2C8\uB2E4.","**\uBAA8\uB4E0 \uC9C1\uC6D0** : (\uD5C8\uC6A9 \uACC4\uC815) \uAD00\uC5EC \uC5EC\uBD80\uC640 \uC0C1\uAD00\uC5C6\uC774 \uC804 \uC9C1\uC6D0\uC758 \uC5C5\uBB34\uB97C \uBD05\uB2C8\uB2E4. **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC77C\uC815** : \uAC00\uC838\uC628 \uC77C\uC815\uC744 \uCE98\uB9B0\uB354\uC5D0 \uD568\uAED8 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4(**\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9** \uD0ED \uCC38\uACE0).","\uD654\uBA74\uC774 \uC881\uC73C\uBA74 \uC2A4\uC704\uCE58\uB4E4\uC740 \uC624\uB978\uCABD **\u22EE \uBA54\uB274** \uC548\uC73C\uB85C \uB4E4\uC5B4\uAC11\uB2C8\uB2E4."]},{title:"\uAD00\uB828 \uC5C5\uBB34",lines:["\uC0C1\uC138\uC758 **\uAD00\uB828 \uC5C5\uBB34**\uC5D0\uC11C \uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30, \uAD00\uB828\xB7\uC911\uBCF5 \uC5C5\uBB34 \uC5F0\uACB0\uC744 \uD569\uB2C8\uB2E4. \uC6B0\uD074\uB9AD \uBA54\uB274\uC5D0\uC11C \uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9\xB7\uBAA9\uD45C\uC5D0 \uB123\uAE30\xB7\uBCF4\uAD00\xB7\uC0AD\uC81C\uB97C \uBC14\uB85C \uC2E4\uD589\uD569\uB2C8\uB2E4."]},{title:"\uD504\uB85C\uC81D\uD2B8",feature:"project",lines:["\uC5C5\uBB34\uB97C \uBB36\uB294 \uB2E8\uC704\uC785\uB2C8\uB2E4. **\uD504\uB85C\uC81D\uD2B8** \uBCF4\uAE30 \uB9E8 \uB05D \uC810\uC120 \uCE78\uC774\uB098 \uCEEC\uB7FC \u22EE \u203A \uC218\uC815\uC5D0\uC11C \uC774\uB984\xB7\uC544\uC774\uCF58\uC744 \uC815\uD558\uACE0, \uC5C5\uBB34\uB294 \uC0C1\uC138 \uC18D\uC131\uC774\uB098 \uC6B0\uD074\uB9AD \u203A \uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9\uC73C\uB85C \uC62E\uAE41\uB2C8\uB2E4.","\uBCF4\uAD00\uC740 \uC18C\uC18D \uC5C5\uBB34\uAC00 \uBAA8\uB450 \uC644\uB8CC\uB41C \uB4A4\uC5D0\uB9CC \uB429\uB2C8\uB2E4. \uC0AD\uC81C\uD558\uBA74 \uD504\uB85C\uC81D\uD2B8\uB9CC \uC5C6\uC5B4\uC9C0\uACE0 \uC18C\uC18D \uC5C5\uBB34\uB294 \uAE30\uBCF8 \uC5C5\uBB34\uD568\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4."]},{title:"\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8)",feature:"sprint",lines:["\uD504\uB85C\uC81D\uD2B8 \uC124\uC815\uC5D0\uC11C **\uBAA9\uD45C \uC0AC\uC6A9**\uC744 \uCF1C\uBA74 \uAE30\uAC04\uC774 \uC788\uB294 \uBAA9\uD45C\uB97C \uB9CC\uB4E4\uACE0 \uC5C5\uBB34\uB97C \uBC30\uC815\uD569\uB2C8\uB2E4(**\uBAA9\uD45C** \uBCF4\uAE30\uC5D0\uC11C \uCE74\uB4DC \uB04C\uAE30, \uC6B0\uD074\uB9AD \u203A \uBAA9\uD45C\uC5D0 \uB123\uAE30).","\uBAA9\uD45C \uC885\uB8CC \uC2DC \uB0A8\uC740 \uC5C5\uBB34\uB97C \uB2E4\uC74C \uBAA9\uD45C\uB85C \uB118\uAE38\uC9C0, \uBBF8\uBC30\uC815\uC73C\uB85C \uBE84\uC9C0 \uACE0\uB985\uB2C8\uB2E4. \uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8\uB294 \uC0C1\uC138 \uC18D\uC131\uC5D0\uC11C \uC801\uC2B5\uB2C8\uB2E4."]},{title:"\uC5C5\uBB34 \uD15C\uD50C\uB9BF \xB7 \uC790\uB3D9\uD654 \uADDC\uCE59 \xB7 \uBCF8\uBB38 \uC591\uC2DD",lines:["\u22EE \u203A **\uC5C5\uBB34 \uD15C\uD50C\uB9BF**\uC73C\uB85C \uC815\uD615 \uC808\uCC28(\uD560\uC77C \uD3EC\uD568)\uB97C \uD55C \uBC88\uC5D0 \uB9CC\uB4E4\uACE0, **\uC790\uB3D9\uD654 \uADDC\uCE59**\uC73C\uB85C \uB4F1\uB85D \uC2DC \uC870\uAC74\uBD80 \uBC30\uC815 \uB4F1\uC744 \uB9E1\uAE41\uB2C8\uB2E4.","**\uBCF8\uBB38 \uC591\uC2DD**(\uB0B4\uC6A9 \uC81C\uBAA9\uC758 \u22EE)\uC740 \uC790\uC8FC \uC4F0\uB294 \uBCF8\uBB38\uC744 \uC800\uC7A5\uD574 \uB450\uACE0 \uBD88\uB7EC\uC635\uB2C8\uB2E4."]},{title:"\uC624\uB958 \uD0ED",feature:"bug",lines:["\uD504\uB85C\uADF8\uB7A8 \uC624\uB958 \uC811\uC218 \uC804\uC6A9 \uD0ED\uC785\uB2C8\uB2E4. \uD2F0\uCF13\uBC88\uD638\uAC00 \uBD99\uACE0 \uC811\uC218 \u203A \uCC98\uB9AC \u203A \uC885\uB8CC\uB85C \uAD00\uB9AC\uD569\uB2C8\uB2E4.",'\uAC1C\uBC1C\uC0AC \uC804\uC6A9\uC774\uBA70, \uACE0\uAC1D\uC774 \uC811\uC218\uD55C \uC624\uB958 \uC81C\uBCF4\uB294 \uACE0\uAC1D\uC13C\uD130 \uD0ED\uC5D0 "\uC624\uB958" \uC885\uB958\uB85C \uC313\uC785\uB2C8\uB2E4.']},{title:"\uACE0\uAC1D\uC13C\uD130 \uD0ED",feature:"support",lines:["\uACE0\uAC1D\uC774 \uB0A8\uAE34 \uBB38\uC758\xB7\uAC74\uC758\xB7\uC624\uB958 \uC81C\uBCF4\uC640 \uD648\uD398\uC774\uC9C0 \uC0C1\uB2F4\uC2E0\uCCAD\uC774 \uC5C5\uBB34\uB85C \uC313\uC785\uB2C8\uB2E4.",'**\uAC00\uC838\uAC00\uAE30**\uB85C \uCC45\uC784\uC790\uAC00 \uB418\uACE0, \uB313\uAE00\uC774 \uACE7 \uB2F5\uBCC0\uC785\uB2C8\uB2E4(\uC791\uC131\uC790\uC5D0\uAC8C\uB294 \uB2F5\uBCC0 \uC54C\uB9BC\uB9CC \uAC11\uB2C8\uB2E4). \uC644\uB8CC 7\uC77C \uB4A4 \uBCF4\uAD00\uD568\uC758 "\uACE0\uAC1D\uC13C\uD130" \uAD6C\uBD84\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4.']},{title:"\uBCF4\uACE0\uC11C",feature:"report",lines:["**\uBCF4\uACE0\uC11C** \uD0ED\uC5D0\uC11C \uC5C5\uBB34 \uBCF4\uACE0\uC11C\uB97C \uC791\uC131\uD574 \uC804\uC790\uACB0\uC7AC\uB85C \uC0C1\uC2E0\uD569\uB2C8\uB2E4."]}]};var xb={id:"calendar",tabTitle:"\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9",intro:"\uC5C5\uBB34\uD568\uC744 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC640 \uC787\uC2B5\uB2C8\uB2E4. \uC8FC\uAC04\xB7\uC6D4\uAC04 \uBCF4\uAE30 \uB610\uB294 \uD5E4\uB354 \u22EE \u203A **\uCE98\uB9B0\uB354 \uC5F0\uB3D9**\uC5D0\uC11C \uAD6C\uAE00 \uACC4\uC815\uC744 \uC5F0\uACB0\uD558\uBA74 \uC5C5\uBB34 \uBCC0\uACBD\uC774 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 **\uBC14\uB85C** \uBC18\uC601\uB429\uB2C8\uB2E4.",topics:[{title:"\uB450 \uBC29\uD5A5",lead:"\uC5F0\uB3D9\uC740 \uBC29\uD5A5\uC774 \uB458\uC774\uACE0 \uB530\uB85C \uCF1C\uACE0 \uB055\uB2C8\uB2E4.",items:[{term:"\uB0B4\uBCF4\uB0B4\uAE30 (\uC5C5\uBB34\uD568 \u2192 \uAD6C\uAE00)",desc:"\uB0B4\uAC00 \uAD00\uC5EC\uD55C \uC5C5\uBB34(\uB9C8\uAC10\uC608\uC815 \uB610\uB294 \uC2DC\uC791\uC77C\uC2DC\uAC00 \uC788\uB294 \uAC83)\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uC0C8\uB85C \uB9CC\uB4E0 **\uC804\uC6A9 \uCE98\uB9B0\uB354**(\uC774\uB984\uC740 \uC5F0\uB3D9 \uD654\uBA74\uC5D0 \uD45C\uC2DC \u2014 \uC608: \uCF54\uB4DC\uB9C8\uCF13)\uC5D0 \uB123\uC2B5\uB2C8\uB2E4. \uB4F1\uB85D\xB7\uC218\uC815\xB7\uC644\uB8CC\xB7\uC0AD\uC81C\uAC00 \uC989\uC2DC \uBC18\uC601\uB418\uACE0, \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC81C\uBAA9 \uC55E\uC5D0 \u2713 \uAC00 \uBD99\uC2B5\uB2C8\uB2E4."},{term:"\uAC00\uC838\uC624\uAE30 (\uAD6C\uAE00 \u2192 \uC5C5\uBB34\uD568)",desc:"\uAD6C\uAE00 **\uAE30\uBCF8 \uCE98\uB9B0\uB354**\uC758 \uC77C\uC815\uC744 \uC5C5\uBB34\uD568 \uC8FC\uAC04\xB7\uC6D4\uAC04 \uBCF4\uAE30\uC5D0 \uACB9\uCCD0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4. \uC77D\uAE30 \uC804\uC6A9\uC774\uB77C \uC5C5\uBB34\uB85C \uBC14\uB00C\uC9C0\uB3C4, \uC6D0\uBCF8\uC774 \uACE0\uCCD0\uC9C0\uC9C0\uB3C4 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uC5F0\uACB0\uD558\uAE30",lines:["**\uCE98\uB9B0\uB354 \uC5F0\uB3D9** \u203A **\uAD6C\uAE00 \uACC4\uC815 \uC5F0\uACB0** \uBC84\uD2BC \u2192 \uAD6C\uAE00 \uB3D9\uC758 \uD654\uBA74\uC5D0\uC11C \uD5C8\uC6A9 \u2192 \uC5C5\uBB34\uD568\uC73C\uB85C \uB3CC\uC544\uC635\uB2C8\uB2E4(\uC5F0\uACB0 \uC644\uB8CC \uC54C\uB9BC).","\uC5F0\uACB0 \uC9C1\uD6C4 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 **\uC804\uC6A9 \uCE98\uB9B0\uB354**\uAC00 \uB9CC\uB4E4\uC5B4\uC9C0\uACE0 \uB0B4 \uC5C5\uBB34\uAC00 \uCC44\uC6CC\uC9D1\uB2C8\uB2E4(\uAC74\uC218\uAC00 \uB9CE\uC73C\uBA74 \uC7A0\uC2DC \uAC78\uB9BD\uB2C8\uB2E4).","\uAC00\uC838\uC624\uAE30\uB97C \uCF1C\uBA74 \uD5E4\uB354\uC758 **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC77C\uC815** \uC2A4\uC704\uCE58\uB85C \uAD6C\uAE00 \uC77C\uC815 \uD45C\uC2DC\uB97C \uD55C \uBC88\uC5D0 \uCF1C\uACE0 \uB055\uB2C8\uB2E4(\uD654\uBA74\uC774 \uC881\uC73C\uBA74 \u22EE \uBA54\uB274 \uC548).",'\uAD6C\uAE00\uC774 "\uD655\uC778\uB418\uC9C0 \uC54A\uC740 \uC571" \uACBD\uACE0\uB97C \uBCF4\uC5EC\uC8FC\uBA74 **\uACE0\uAE09 \u203A \uACC4\uC18D**\uC73C\uB85C \uC9C4\uD589\uD569\uB2C8\uB2E4.']},{title:"\uC54C\uC544 \uB458 \uC810",lines:["\uC804\uC6A9 \uCE98\uB9B0\uB354 \uC548\uC758 \uC77C\uC815\uC740 \uC5C5\uBB34\uD568\uC774 \uAD00\uB9AC\uD569\uB2C8\uB2E4 \u2014 \uAD6C\uAE00\uC5D0\uC11C \uACE0\uCCD0\uB3C4 \uB2E4\uC74C \uBCC0\uACBD \uB54C \uC5C5\uBB34\uD568 \uB0B4\uC6A9\uC73C\uB85C \uB418\uB3CC\uC544\uAC11\uB2C8\uB2E4. \uC5C5\uBB34\uB294 \uC5C5\uBB34\uD568\uC5D0\uC11C \uACE0\uCE58\uC138\uC694.","\uD45C\uC2DC\uAC00 \uC5B4\uAE0B\uB09C \uAC83 \uAC19\uC73C\uBA74 **\uC804\uCCB4 \uB2E4\uC2DC \uB0B4\uBCF4\uB0B4\uAE30**\uB85C \uADF8 \uCE98\uB9B0\uB354\uB97C \uB0B4 \uC5C5\uBB34 \uAE30\uC900\uC73C\uB85C \uB2E4\uC2DC \uCC44\uC6C1\uB2C8\uB2E4.","**\uC5F0\uACB0 \uD574\uC81C**\uD558\uBA74 \uAD8C\uD55C\uC740 \uB04A\uAE30\uC9C0\uB9CC \uAD6C\uAE00 \uCABD \uC804\uC6A9 \uCE98\uB9B0\uB354\uB294 \uB0A8\uC2B5\uB2C8\uB2E4. \uD544\uC694\uD558\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC9C0\uC6B0\uC138\uC694.","\uD55C \uC0AC\uB78C\uC774 \uC5EC\uB7EC \uAE30\uAE30\uC5D0\uC11C \uC368\uB3C4 \uC5F0\uACB0\uC740 \uACC4\uC815\uB2F9 \uD55C \uBC88\uC774\uBA74 \uB429\uB2C8\uB2E4. \uC560\uD50C\xB7\uB124\uC774\uBC84 \uCE98\uB9B0\uB354 \uC5F0\uB3D9\uC740 \uC81C\uACF5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."]}]};var bb={id:"shortcuts",tabTitle:"\uB2E8\uCD95\uD0A4",topics:[]};var tc=[ub,db,pb,fb,gb,xb,bb];function hb({open:e,onClose:t}){return{modals:{dialog:Zt({modalIdPrefix:"taskbox-shortcut-help-dialog",open:e,onClose:t})}}}function kb({open:e,onClose:t,features:o,initialTab:n}){let[r,i]=iM(0);return{modals:{dialog:Zt({modalIdPrefix:"taskbox-manual-dialog",open:e,onClose:t,onOpen:()=>{let s=tc.filter(m=>!m.feature||o[m.feature]!==!1).findIndex(m=>m.id===n);i(Math.max(0,s))}})},activeTabIndex:r,setActiveTabIndex:i}}import{jsx as Ar,jsxs as Tb}from"react/jsx-runtime";function cM({keys:e}){return Ar(ol,{sx:{display:"flex",alignItems:"center",gap:.5,justifyContent:"flex-end"},children:e.split(" \u2192 ").map((t,o)=>Tb(ol,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o>0?Ar(lM,{sx:{fontSize:18,color:"#9a9a97"}}):null,Ar(ol,{component:"span",sx:{minWidth:32,height:32,px:.75,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13.5,fontWeight:700,color:"#37352f",bgcolor:"#f4f4f2",border:"1px solid #e0dfdb",borderRadius:1,fontVariantNumeric:"tabular-nums"},children:t})]},`${t}-${o}`))})}function XX({open:e,onClose:t,views:o}){let{modals:n}=hb({open:e,onClose:t}),r=tl(o);return Ar(sM,{open:n.dialog.isOpen,onClose:n.dialog.close,maxWidth:"xs",title:"\uB2E8\uCD95\uD0A4",locale:"ko",titleIcons:{delete:{visible:!1}},tabs:{visible:!1},sectionContentPaddingTop:0,sections:[{id:"shortcuts",showTitle:!1,children:Ar(ol,{sx:{display:"grid",gridTemplateColumns:"auto 1fr",columnGap:2,rowGap:1.25,alignItems:"center",fontSize:14,color:"#37352f"},children:r.map(i=>Tb(ol,{sx:{display:"contents"},children:[Ar(cM,{keys:i.keys}),Ar("span",{children:i.description})]},i.keys))})}],actions:{showCancelButton:!1,right:Ar(aM,{variant:"contained",onClick:n.dialog.close,children:"\uB2EB\uAE30"})}})}import{Fragment as Vu}from"react";import{Box as yt,Button as mM}from"@mui/material";import uM from"@mui/icons-material/ArrowRightAlt";import dM from"@mui/icons-material/ChevronRightRounded";import pM from"@mui/icons-material/ArrowForward";import{FormDialog as fM}from"@ehfuse/mui-form-dialog";import{Fragment as SM,jsx as Xe,jsxs as cr}from"react/jsx-runtime";function oc(e){return e.split(/(\*\*[^*]+\*\*|\s*(?:→|->)\s*)/g).filter(o=>o.length>0).map((o,n)=>o.startsWith("**")&&o.endsWith("**")?Xe(yt,{component:"strong",sx:{fontWeight:700},children:o.slice(2,-2)},n):/^\s*(?:→|->)\s*$/.test(o)?Xe(pM,{sx:{fontSize:"1em",verticalAlign:"-0.15em",mx:.5,color:"text.secondary"}},n):Xe(Vu,{children:o},n))}function gM({keys:e}){let t=xe();return Xe(yt,{sx:{display:"flex",alignItems:"center",gap:.5,justifyContent:"flex-end"},children:e.split(" \u2192 ").map((o,n)=>cr(yt,{sx:{display:"flex",alignItems:"center",gap:.5},children:[n>0?Xe(uM,{sx:{fontSize:20,color:t.colors.textMuted}}):null,Xe(yt,{component:"span",sx:{minWidth:36,height:36,px:1,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:15,fontWeight:600,color:t.colors.textPrimary,bgcolor:t.colors.surfaceSubtle,border:`1px solid ${t.colors.border}`,borderRadius:1,fontVariantNumeric:"tabular-nums"},children:o})]},`${o}-${n}`))})}function xM({steps:e}){let t=xe();return Xe(yt,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, minmax(0, 1fr))"},gap:{xs:1,sm:2},mt:1.5},children:e.map((o,n)=>cr(yt,{sx:{position:"relative",minWidth:0,px:1.75,py:2.5,borderRadius:2,bgcolor:t.colors.surfaceSubtle,border:`1px solid ${t.colors.border}`,"&::before":{content:'""',position:"absolute",top:-1,left:12,right:12,height:3,borderRadius:"0 0 3px 3px",bgcolor:t.colors.accent,opacity:.85},"&::after":n<e.length-1?{content:'""',display:{xs:"none",sm:"block"},position:"absolute",top:"50%",right:-12,width:8,height:8,mt:"-4px",borderTop:`2px solid ${t.colors.borderStrong}`,borderRight:`2px solid ${t.colors.borderStrong}`,transform:"rotate(45deg)"}:void 0},children:[cr(yt,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Xe(yt,{sx:{flexShrink:0,width:26,height:26,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:500,lineHeight:1,bgcolor:t.colors.accent,color:t.colors.accentContrast,fontVariantNumeric:"tabular-nums"},children:n+1}),Xe(yt,{sx:{minWidth:0,fontSize:20,fontWeight:500,color:t.colors.textStrong,lineHeight:1.3,letterSpacing:"-0.01em"},children:o.title})]}),Xe(yt,{sx:{mt:1.5,fontSize:15,lineHeight:1.5,color:t.colors.textPrimary,wordBreak:"keep-all"},children:o.desc})]},o.title))})}var Sb="70vh",bM=24,hM=44,yb=`calc((${Sb} - ${bM*2+hM}px) / var(--mfd-font-scale, 1))`,kM=148;function TM({items:e}){let t=xe();return Xe(yt,{sx:{mt:1.5,display:"grid",gridTemplateColumns:{xs:"1fr",sm:`${kM}px minmax(0, 1fr)`},fontSize:15,lineHeight:1.6,color:t.colors.textPrimary,border:`1px solid ${t.colors.border}`,borderRadius:1.5,overflow:"hidden","& > *":{px:1.5,py:1.35,borderTop:`1px solid ${t.colors.border}`},"& > *:nth-of-type(even)":{borderLeft:{sm:`1px solid ${t.colors.border}`}},"& > *:nth-of-type(1)":{borderTop:0},"& > *:nth-of-type(2)":{borderTop:{xs:`1px solid ${t.colors.border}`,sm:0}}},children:e.map(o=>cr(Vu,{children:[Xe(yt,{sx:{fontWeight:500,color:t.colors.textStrong,wordBreak:"keep-all",bgcolor:t.colors.surfaceSubtle,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},children:o.term}),Xe(yt,{sx:{wordBreak:"keep-all"},children:oc(o.desc)})]},o.term))})}function yM({topic:e}){let t=xe();return cr(yt,{component:"section",sx:{py:{xs:3,sm:4},borderBottom:`1px solid ${t.colors.border}`,"&:last-of-type":{pb:0,borderBottom:0}},children:[cr(yt,{component:"h3",sx:{m:0,mb:1.75,fontSize:24,fontWeight:500,letterSpacing:"-0.01em",lineHeight:1.3,color:t.colors.textStrong,wordBreak:"keep-all",display:"flex",alignItems:"center",flexWrap:"wrap"},children:[e.title,e.subtitle?cr(SM,{children:[Xe(dM,{sx:{fontSize:22,color:t.colors.textMuted,mx:1,flexShrink:0}}),Xe(yt,{component:"span",sx:{fontSize:18,fontWeight:400,color:t.colors.textPrimary},children:e.subtitle})]}):null]}),e.lead?Xe(yt,{sx:{fontSize:15.5,lineHeight:1.65,color:t.colors.textPrimary,wordBreak:"keep-all"},children:oc(e.lead)}):null,e.steps?.length?Xe(xM,{steps:e.steps}):null,e.items?.length?Xe(TM,{items:e.items}):null,e.lines?.length?Xe(yt,{component:"ul",sx:{m:0,mt:e.lead||e.steps||e.items?1.25:0,pl:2.5,display:"flex",flexDirection:"column",gap:.5,fontSize:15,lineHeight:1.6,color:t.colors.textPrimary,wordBreak:"keep-all"},children:e.lines.map((o,n)=>Xe("li",{children:oc(o)},n))}):null]})}function cQ({open:e,onClose:t,views:o,features:n={},initialTab:r}){let i=xe(),{modals:a,activeTabIndex:l,setActiveTabIndex:s}=kb({open:e,onClose:t,features:n,initialTab:r}),m=d=>!d||n[d]!==!1,c=tl(o),p=tc.filter(d=>m(d.feature)).map(d=>({id:d.id,tabTitle:d.tabTitle,showTitle:!1,children:d.id==="shortcuts"?Xe(yt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:yb,maxHeight:yb,px:.5},children:Xe(yt,{sx:{display:"grid",gridTemplateColumns:"auto auto",columnGap:2.5,rowGap:1.75,alignItems:"center",fontSize:17,fontWeight:500,color:i.colors.textPrimary},children:c.map(u=>cr(Vu,{children:[Xe(gM,{keys:u.keys}),Xe("span",{children:u.description})]},u.keys))})}):cr(yt,{sx:{display:"flex",flexDirection:"column",px:.5},children:[d.intro?Xe(yt,{sx:{p:2,borderRadius:2,bgcolor:i.colors.accentSoft,color:i.colors.textStrong,fontSize:15.5,lineHeight:1.65,wordBreak:"keep-all"},children:oc(d.intro)}):null,d.topics.filter(u=>m(u.feature)).map(u=>Xe(yM,{topic:u},u.title))]})}));return Xe(fM,{open:a.dialog.isOpen,onClose:a.dialog.close,maxWidth:"md",title:"\uC5C5\uBB34\uD568 \uC124\uBA85\uC11C",locale:"ko",titleIcons:{delete:{visible:!1}},tabs:{visible:!0,switchContent:!0},activeTabValue:l,onTabChange:s,fixedHeight:"70vh",maxContentHeight:Sb,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-manual",sections:p,actions:{showCancelButton:!1,right:Xe(mM,{variant:"contained",onClick:a.dialog.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{useEffect as IM,useRef as _M,useState as Ib}from"react";import{Box as St,Button as Tn,IconButton as Gu,Menu as _b,MenuItem as wb,Switch as wM,Tooltip as Db}from"@mui/material";import{FormDialog as Eb}from"@ehfuse/mui-form-dialog";import Ku from"@mui/icons-material/Add";import DM from"@mui/icons-material/ArrowRightAlt";import EM from"@mui/icons-material/BoltOutlined";import RM from"@mui/icons-material/Close";import MM from"@mui/icons-material/EditOutlined";import{ClearTextField as nl,LabelSelect as No}from"@ehfuse/mui-form-controls";import{useEffect as CM,useRef as Cb}from"react";import{useGlobalForm as BM,useModal as vM}from"@ehfuse/forma";import{ErrorAlert as Bb}from"@ehfuse/alerts";var Vi=[{value:"due_date",label:"\uB9C8\uAC10\uC608\uC815"},{value:"start_date",label:"\uC2DC\uC791\uC77C\uC2DC"},{value:"priority",label:"\uC911\uC694\uB3C4"},{value:"manager_account_seq",label:"\uCC45\uC784\uC790"},{value:"receiver_account_seqs",label:"\uCC38\uC870\uC790"},{value:"label_keys",label:"\uB77C\uBCA8"},{value:"group_seq",label:"\uD504\uB85C\uC81D\uD2B8"},{value:"sprint_seq",label:"\uBAA9\uD45C"},{value:"content",label:"\uB0B4\uC6A9"},{value:"note",label:"\uBE44\uACE0"}];function nc(){return{editSeq:0,name:"",trigger:"created",enabled:!0,sort_no:0,condition:{},action:{}}}function Uu(e){return e.filter(t=>!t.archived).map(t=>({value:String(hn(t.key)),label:t.label}))}function rc(e){return e.map(t=>({value:t.key,label:t.name}))}function vb(e){let t=Cb(e);t.current=e;let o=BM({formId:we("taskbox-rule-form"),initialValues:nc(),onValidate:y=>y.name.trim()?Object.keys(y.action??{}).length===0?(Bb({message:"\uB3D9\uC791\uC744 \uD558\uB098 \uC774\uC0C1 \uCD94\uAC00\uD558\uC138\uC694."}),!1):!0:(Bb({message:"\uADDC\uCE59 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."}),!1),onSubmit:async y=>{let{editSeq:T,...I}=y,A=T>0?I.sort_no:t.current.rules.reduce((C,k)=>Math.max(C,k.sort_no),0)+1,q=T>0?await t.current.onUpdate(T,{...I,sort_no:A}):await t.current.onCreate({...I,sort_no:A});return q&&n.form.close(),q}}),n={list:Xo({modalId:we("taskbox-rule-manage"),open:e.open,onClose:()=>t.current.onClose()}),form:vM({modalId:we("taskbox-rule-edit"),onClose:()=>o.setFormValues(nc())})},r=Cb(n.form);r.current=n.form,CM(()=>{if(e.open)return;let y=window.setTimeout(()=>{r.current.isOpen&&r.current.close(),o.setFormValues(nc())},500);return()=>window.clearTimeout(y)},[e.open]);let i=()=>({...o.getFormValue("condition")??{}}),a=()=>({...o.getFormValue("action")??{}}),l=(y,T)=>{let I=i();T===""||T===void 0||T===null?delete I[y]:I[y]=T,o.setFormValue("condition",I)},s=(y,T)=>{let I=a();T===""||T===void 0||T===null?delete I[y]:I[y]=T,o.setFormValue("action",I)},m=()=>{o.setFormValues(nc()),n.form.open()},c=y=>{o.setFormValues({editSeq:y.seq,name:y.name,trigger:y.trigger,enabled:y.enabled,sort_no:y.sort_no,condition:{...y.condition,...y.trigger==="field_changed"&&y.condition.changed_field===void 0?{changed_field:Vi[0]?.value??""}:{}},action:{...y.action}}),n.form.open()},p=y=>{let T=i();y!=="status_changed"&&(delete T.from_status,delete T.to_status),y!=="overdue"&&delete T.overdue_days,y!=="field_changed"&&delete T.changed_field,y!=="commented"&&(delete T.comment_contains,delete T.comment_by_others),y==="field_changed"&&T.changed_field===void 0&&(T.changed_field=Vi[0]?.value??""),o.setFormValues({trigger:y,condition:T})},d=async y=>{let T=t.current.onPickAccount;if(!T)return;let I=i(),A=y==="manager_account"?I.manager_account_seq??0:I.receiver_account_seq??0,q=await T(A,y==="manager_account"?"\uCC45\uC784\uC790":"\uCC38\uC870\uC790");if(!q)return;let C=i();y==="manager_account"?(C.manager_account_seq=q.accountSeq,C.manager_name=q.name):(C.receiver_account_seq=q.accountSeq,C.receiver_name=q.name),o.setFormValue("condition",C)},u=y=>{let T=Uu(t.current.customTabs),I=rc(t.current.statusOptions);y==="group_seq"?l("group_seq",Number(T[0]?.value)||0):y==="kind"?l("is_bug",!0):y==="priority"?l("priority","high"):y==="label_key"?l("label_key",I[0]?.value??""):y==="title_contains"?o.setFormValue("condition",{...i(),title_contains:""}):y==="manager_empty"?l("manager_empty",!0):y==="manager_account"||y==="receiver_account"?d(y):y==="from_status"?l("from_status",Io[0]?.key??""):y==="to_status"?l("to_status",Io[0]?.key??""):y==="changed_field"?l("changed_field",Vi[0]?.value??""):y==="comment_contains"?o.setFormValue("condition",{...i(),comment_contains:""}):y==="comment_by_others"?l("comment_by_others",!0):y==="overdue_days"&&l("overdue_days",1)},f=y=>{if(y==="kind"){l("is_bug",""),l("is_event","");return}if(y==="manager_account"){l("manager_account_seq",""),l("manager_name","");return}if(y==="receiver_account"){l("receiver_account_seq",""),l("receiver_name","");return}l(y,"")},g=y=>{l("is_bug",y?!0:""),l("is_event",y?"":!0)},v=async y=>{let T=t.current.onPickAccount;if(!T)return;let I=a(),A=y==="assign_manager"?I.assign_manager_account_seq??0:y==="add_receiver"?I.add_receiver_account_seq??0:I.notify_account_seq??0,q=await T(A,y==="assign_manager"?"\uCC45\uC784\uC790":y==="add_receiver"?"\uCC38\uC870\uC790":"\uC54C\uB9BC \uBC1B\uC744 \uC0AC\uB78C");if(!q)return;let C=a();y==="assign_manager"?(C.assign_manager_account_seq=q.accountSeq,C.assign_manager_name=q.name):y==="add_receiver"?(C.add_receiver_account_seq=q.accountSeq,C.add_receiver_name=q.name):(C.notify_account_seq=q.accountSeq,C.notify_name=q.name),o.setFormValue("action",C)};return{form:o,modals:n,actions:{openCreate:m,openEdit:c,changeTrigger:p,setCondition:l,setAction:s,addCondition:u,removeCondition:f,changeKind:g,pickConditionAccount:d,addAction:y=>{let T=rc(t.current.statusOptions);if(y==="set_status")s("set_status",Io[0]?.key??"");else if(y==="set_priority")s("set_priority","high");else if(y==="add_label_key")s("add_label_key",T[0]?.value??"");else if(y==="apply_content_template"){let I=t.current.contentTemplates[0];o.setFormValue("action",{...a(),apply_content_template_seq:I?.seq??0,apply_content_template_name:I?.name??""})}else v(y)},removeAction:y=>{y==="assign_manager"?(s("assign_manager_account_seq",""),s("assign_manager_name","")):y==="add_receiver"?(s("add_receiver_account_seq",""),s("add_receiver_name","")):y==="apply_content_template"?(s("apply_content_template_seq",""),s("apply_content_template_name","")):y==="notify"?(s("notify_account_seq",""),s("notify_name",""),s("notify_message","")):s(y,"")},pickAccountFor:v,selectContentTemplate:y=>{let T=t.current.contentTemplates.find(I=>String(I.seq)===String(y));o.setFormValue("action",{...a(),apply_content_template_seq:T?.seq??0,apply_content_template_name:T?.name??""})},toggleRule:(y,T)=>t.current.onToggle(y,T),removeRule:y=>t.current.onRemove(y)}}}import{Fragment as Mb,jsx as le,jsxs as Zo}from"react/jsx-runtime";var Yu=[{value:"created",label:"\uC5C5\uBB34 \uB4F1\uB85D \uC2DC",hint:"\uC0C8 \uC5C5\uBB34\uAC00 \uB9CC\uB4E4\uC5B4\uC9C4 \uC9C1\uD6C4 \uD55C \uBC88 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"status_changed",label:"\uC0C1\uD0DC \uBCC0\uACBD \uC2DC",hint:"\uC0C1\uD0DC\uAC00 \uC2E4\uC81C\uB85C \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"commented",label:"\uB313\uAE00\uC774 \uB2EC\uB838\uC744 \uB54C",hint:"\uB313\uAE00\uC774 \uC0C8\uB85C \uB2EC\uB9AC\uAC70\uB098 \uC218\uC815\uB41C \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uD68C\uC2E0\uC744 \uBC1B\uC740 \uC790\uB9AC)."},{value:"manager_assigned",label:"\uCC45\uC784\uC790\uAC00 \uC9C0\uC815\uB410\uC744 \uB54C",hint:"\uCC45\uC784\uC790\uAC00 \uC0C8\uB85C \uC9C0\uC815\uB418\uAC70\uB098 \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"attachment_added",label:"\uCCA8\uBD80\uAC00 \uC62C\uB77C\uC654\uC744 \uB54C",hint:"\uC5C5\uBB34\uC5D0 \uD30C\uC77C\uC774 \uCCA8\uBD80\uB41C \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uC99D\uBE59 \uC811\uC218 \uC790\uB9AC)."},{value:"field_changed",label:"\uD544\uB4DC\uAC00 \uBC14\uB00C\uC5C8\uC744 \uB54C",hint:"\uC9C0\uC815\uD55C \uD544\uB4DC\uAC00 \uC2E4\uC81C\uB85C \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uD544\uB4DC\uB97C \uC548 \uACE0\uB974\uBA74 \uC544\uBB34 \uC218\uC815\uC5D0\uB098 \uC2E4\uD589)."},{value:"overdue",label:"\uB9C8\uAC10 \uACBD\uACFC \uC2DC",hint:"\uB9C8\uAC10\uC774 \uC9C0\uB09C \uBBF8\uC644\uB8CC \uC5C5\uBB34\uB97C \uB9E4\uC77C \uC810\uAC80\uD574 \uC2E4\uD589\uD569\uB2C8\uB2E4."}],ac=[{value:"high",label:"\uB192\uC74C"},{value:"medium",label:"\uC911\uAC04"},{value:"low",label:"\uB0AE\uC74C"}];function ic(e){return Io.find(t=>t.key===e)?.name??e}function PM(e,t,o){let{condition:n,action:r}=e,i=[];if(n.group_seq){let s=t.find(m=>hn(m.key)===n.group_seq);i.push(`\uD504\uB85C\uC81D\uD2B8=${s?.label??`#${n.group_seq}`}`)}n.is_bug===!0&&i.push("\uC624\uB958\uB9CC"),n.is_event===!0&&i.push("\uC77C\uC815\uB9CC"),n.priority&&i.push(`\uC911\uC694\uB3C4=${ac.find(s=>s.value===n.priority)?.label}`),n.label_key&&i.push(`\uB77C\uBCA8=${o.find(s=>s.key===n.label_key)?.name??n.label_key}`),n.title_contains&&i.push(`\uC81C\uBAA9\uC5D0 "${n.title_contains}" \uD3EC\uD568`),n.status&&i.push(`\uC0C1\uD0DC=${ic(n.status)}`),n.from_status&&i.push(`${ic(n.from_status)}\uC5D0\uC11C`),n.to_status&&i.push(`${ic(n.to_status)}\uB85C`),n.manager_empty===!0&&i.push("\uCC45\uC784\uC790 \uC5C6\uC74C"),n.manager_empty===!1&&i.push("\uCC45\uC784\uC790 \uC788\uC74C"),n.manager_account_seq&&i.push(`\uCC45\uC784\uC790=${n.manager_name||`\uACC4\uC815 #${n.manager_account_seq}`}`),n.receiver_account_seq&&i.push(`\uCC38\uC870\uC790\uC5D0 ${n.receiver_name||`\uACC4\uC815 #${n.receiver_account_seq}`}`),n.changed_field&&i.push(`${Vi.find(s=>s.value===n.changed_field)?.label??n.changed_field} \uBCC0\uACBD`),n.comment_contains&&i.push(`\uB313\uAE00\uC5D0 "${n.comment_contains}" \uD3EC\uD568`),n.comment_by_others===!0&&i.push("\uB0A8\uC774 \uC4F4 \uB313\uAE00"),typeof n.overdue_days=="number"&&i.push(`${n.overdue_days}\uC77C \uACBD\uACFC`);let a=[];r.set_status&&a.push(`\uC0C1\uD0DC=${ic(r.set_status)}`),r.set_priority&&a.push(`\uC911\uC694\uB3C4=${ac.find(s=>s.value===r.set_priority)?.label}`),r.assign_manager_account_seq&&a.push(`\uCC45\uC784\uC790=${r.assign_manager_name||"\uC9C0\uC815"}`),r.add_receiver_account_seq&&a.push(`\uCC38\uC870\uC790 + ${r.add_receiver_name||"\uC9C0\uC815"}`),r.add_label_key&&a.push(`\uB77C\uBCA8 + ${o.find(s=>s.key===r.add_label_key)?.name??r.add_label_key}`),r.apply_content_template_seq&&a.push(`\uBCF8\uBB38 \uC591\uC2DD=${r.apply_content_template_name||"\uC9C0\uC815"}`),r.notify_account_seq&&a.push("\uC54C\uB9BC \uBC1C\uC1A1");let l=Yu.find(s=>s.value===e.trigger)?.label??e.trigger;return{left:i.length>0?`${l} \xB7 ${i.join(", ")}`:l,right:a.join(", ")||"\uB3D9\uC791 \uC5C6\uC74C"}}var Rb={fontSize:16,fontWeight:700,color:"#37352f"},OM={display:"flex",alignItems:"center",gap:1},qM={width:104,flexShrink:0,fontSize:16,color:"#37352f"};function PQ({open:e,rules:t,customTabs:o,statusOptions:n,contentTemplates:r=[],onPickAccount:i,onClose:a,onCreate:l,onUpdate:s,onToggle:m,onRemove:c}){let p=vb({open:e,rules:t,customTabs:o,statusOptions:n,contentTemplates:r,onPickAccount:i,onClose:a,onCreate:l,onUpdate:s,onToggle:m,onRemove:c}),{form:d,actions:u}=p,f=p.modals.list,g=p.modals.form,{setCondition:v,setAction:D,removeCondition:b,removeAction:S,pickConditionAccount:h,pickAccountFor:E,changeTrigger:y}=u,T=d.isSubmitting,I=_M(null),[A,q]=Ib(null),[C,k]=Ib(null);IM(()=>{if(!g.isOpen)return;let F=window.setTimeout(()=>I.current?.focus(),120);return()=>window.clearTimeout(F)},[g.isOpen]);let x=Number(d.useValue("editSeq")??0)>0,B=d.useValue("trigger")??"created",w=rc(n),_=Io.map(F=>({value:F.key,label:F.name})),N=Uu(o),M=d.useValue("condition")??{},$=d.useValue("action")??{},Y=M.is_bug!==void 0||M.is_event!==void 0,te=[...M.group_seq===void 0&&N.length>0?[{key:"group_seq",label:"\uD504\uB85C\uC81D\uD2B8\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...Y?[]:[{key:"kind",label:"\uC885\uB958\uAC00 \uC624\uB958/\uC77C\uC815\uC778 \uACBD\uC6B0"}],...M.priority===void 0?[{key:"priority",label:"\uC911\uC694\uB3C4\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...M.label_key===void 0&&w.length>0?[{key:"label_key",label:"\uB77C\uBCA8\uC774 \uBD99\uC5B4 \uC788\uB294 \uACBD\uC6B0"}]:[],...M.title_contains===void 0?[{key:"title_contains",label:"\uC81C\uBAA9\uC5D0 ~ \uB2E8\uC5B4\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...M.manager_empty===void 0?[{key:"manager_empty",label:"\uCC45\uC784\uC790\uAC00 \uC5C6\uB294/\uC788\uB294 \uACBD\uC6B0"}]:[],...i&&M.manager_account_seq===void 0?[{key:"manager_account",label:"\uCC45\uC784\uC790\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...i&&M.receiver_account_seq===void 0?[{key:"receiver_account",label:"\uCC38\uC870\uC790\uC5D0 ~\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...B==="status_changed"&&M.from_status===void 0?[{key:"from_status",label:"\uC774 \uC0C1\uD0DC\uC5D0\uC11C \uBC14\uB010 \uACBD\uC6B0"}]:[],...B==="status_changed"&&M.to_status===void 0?[{key:"to_status",label:"\uC774 \uC0C1\uD0DC\uB85C \uBC14\uB010 \uACBD\uC6B0"}]:[],...B==="field_changed"&&M.changed_field===void 0?[{key:"changed_field",label:"~ \uD544\uB4DC\uAC00 \uBCC0\uACBD\uB41C \uACBD\uC6B0"}]:[],...B==="commented"&&M.comment_contains===void 0?[{key:"comment_contains",label:"\uB313\uAE00\uC5D0 ~ \uB2E8\uC5B4\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...B==="commented"&&M.comment_by_others===void 0?[{key:"comment_by_others",label:"\uCC45\uC784\uC790\uAC00 \uC544\uB2CC \uC0AC\uB78C\uC774 \uC4F4 \uACBD\uC6B0"}]:[],...B==="overdue"&&M.overdue_days===void 0?[{key:"overdue_days",label:"\uB9C8\uAC10 \uD6C4 \uBA70\uCE60 \uC9C0\uB09C \uACBD\uC6B0"}]:[]],ce=F=>{q(null),u.addCondition(F)},ue=[...$.set_status===void 0?[{key:"set_status",label:"\uC0C1\uD0DC \uBC14\uAFB8\uAE30"}]:[],...$.set_priority===void 0?[{key:"set_priority",label:"\uC911\uC694\uB3C4 \uBC14\uAFB8\uAE30"}]:[],...$.add_label_key===void 0&&w.length>0?[{key:"add_label_key",label:"\uB77C\uBCA8 \uBD99\uC774\uAE30"}]:[],...i&&$.assign_manager_account_seq===void 0?[{key:"assign_manager",label:"\uCC45\uC784\uC790 \uC9C0\uC815\uD558\uAE30"}]:[],...i&&$.add_receiver_account_seq===void 0?[{key:"add_receiver",label:"\uCC38\uC870\uC790 \uCD94\uAC00\uD558\uAE30"}]:[],...r.length>0&&$.apply_content_template_seq===void 0?[{key:"apply_content_template",label:"\uBCF8\uBB38 \uC591\uC2DD \uCC44\uC6B0\uAE30"}]:[],...i&&$.notify_account_seq===void 0?[{key:"notify",label:"\uC54C\uB9BC \uBCF4\uB0B4\uAE30"}]:[]],j=F=>{k(null),u.addAction(F)},O=(F,W,V,U)=>Zo(St,{sx:OM,children:[le(St,{sx:qM,children:F}),Zo(St,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:U?"column":"row",alignItems:U?"stretch":"center",gap:U?.5:1},children:[W,U?le(St,{sx:{fontSize:13.5,color:"#37352f"},children:U}):null]}),le(Db,{title:"\uC774 \uC904 \uBE7C\uAE30",arrow:!0,disableInteractive:!0,children:le(Gu,{size:"small","aria-label":`${F} \uC904 \uBE7C\uAE30`,onClick:V,children:le(RM,{sx:{fontSize:16}})})})]}),oe=()=>Zo(St,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[le(nl,{size:"medium",label:"\uADDC\uCE59 \uC774\uB984",inputRef:I,placeholder:"\uC608: \uC811\uC218 \uC624\uB958 \uC790\uB3D9 \uBC30\uC815",name:"name",form:d}),le(St,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:Yu.map(F=>{let W=B===F.value;return le(Tn,{disableElevation:!0,variant:W?"contained":"outlined",color:W?"primary":"inherit",onClick:()=>y(F.value),sx:{borderRadius:99,px:1.75,...W?{}:{color:"#57564f",borderColor:"#d9d9d6"}},children:F.label},F.value)})}),le(St,{sx:{fontSize:13,color:"#787774",mt:-.5},children:Yu.find(F=>F.value===B)?.hint}),Zo(St,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[le(St,{sx:Rb,children:"\uC5B4\uB5A4 \uC5C5\uBB34\uC77C \uB54C"}),te.length>0?le(Tn,{size:"small",startIcon:le(Ku,{sx:{fontSize:16}}),onClick:F=>q(F.currentTarget),sx:{color:"#2563eb",minWidth:0},children:"\uC870\uAC74 \uCD94\uAC00"}):null]}),M.group_seq!==void 0?O("\uD504\uB85C\uC81D\uD2B8",le(No,{size:"medium",fullWidth:!0,label:"",value:String(M.group_seq),options:N,onChange:F=>v("group_seq",Number(F.target.value)||"")}),()=>b("group_seq")):null,Y?O("\uC885\uB958",le(No,{size:"medium",fullWidth:!0,label:"",value:M.is_bug?"bug":"event",options:[{value:"bug",label:"\uC624\uB958\uB9CC"},{value:"event",label:"\uC77C\uC815\uB9CC"}],onChange:F=>{let W=F.target.value==="bug";v("is_bug",W?!0:""),v("is_event",W?"":!0)}}),()=>b("kind")):null,M.priority!==void 0?O("\uC911\uC694\uB3C4",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.priority",form:d,options:ac}),()=>b("priority")):null,M.label_key!==void 0?O("\uB77C\uBCA8",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.label_key",form:d,options:w}),()=>b("label_key")):null,M.title_contains!==void 0?O("\uC81C\uBAA9",le(nl,{size:"medium",fullWidth:!0,placeholder:"\uD3EC\uD568\uD560 \uB0B1\uB9D0 (\uC608: \uAE34\uAE09)",name:"condition.title_contains",form:d}),()=>b("title_contains")):null,M.manager_empty!==void 0?O("\uCC45\uC784\uC790",le(No,{size:"medium",fullWidth:!0,label:"",value:M.manager_empty?"empty":"assigned",options:[{value:"empty",label:"\uC5C6\uC74C"},{value:"assigned",label:"\uC788\uC74C"}],onChange:F=>v("manager_empty",F.target.value==="empty")}),()=>b("manager_empty")):null,M.manager_account_seq!==void 0?O("\uCC45\uC784\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{h("manager_account")},children:M.manager_name||`\uACC4\uC815 #${M.manager_account_seq}`}),()=>b("manager_account")):null,M.receiver_account_seq!==void 0?O("\uCC38\uC870\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{h("receiver_account")},children:M.receiver_name||`\uACC4\uC815 #${M.receiver_account_seq}`}),()=>b("receiver_account")):null,M.from_status!==void 0?O("\uC774 \uC0C1\uD0DC\uC5D0\uC11C",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.from_status",form:d,options:_}),()=>b("from_status")):null,M.to_status!==void 0?O("\uC774 \uC0C1\uD0DC\uB85C",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.to_status",form:d,options:_}),()=>b("to_status")):null,M.changed_field!==void 0?O("\uBCC0\uACBD \uD544\uB4DC",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.changed_field",form:d,options:Vi}),()=>b("changed_field")):null,M.comment_contains!==void 0?O("\uB313\uAE00 \uB0B1\uB9D0",le(nl,{size:"medium",fullWidth:!0,placeholder:"\uD3EC\uD568\uD560 \uB0B1\uB9D0 (\uC608: \uD68C\uC2E0)",name:"condition.comment_contains",form:d}),()=>b("comment_contains")):null,M.comment_by_others!==void 0?O("\uB313\uAE00 \uC791\uC131\uC790",le(No,{size:"medium",fullWidth:!0,label:"",value:M.comment_by_others?"others":"any",options:[{value:"others",label:"\uCC45\uC784\uC790\uAC00 \uC544\uB2CC \uC0AC\uB78C"},{value:"any",label:"\uB204\uAD6C\uB4E0"}],onChange:F=>v("comment_by_others",F.target.value==="others")}),()=>b("comment_by_others")):null,M.overdue_days!==void 0?O("\uACBD\uACFC\uC77C",le(nl,{size:"medium",fullWidth:!0,type:"number",value:String(M.overdue_days),onChange:F=>v("overdue_days",Math.max(0,Number(F.target.value)||0)),label:"\uB9C8\uAC10 \uD6C4 \uC9C0\uB09C \uC77C\uC218(\uC774\uC0C1)"}),()=>b("overdue_days")):null,Object.keys(M).length===0?le(St,{sx:{fontSize:13.5,color:"#9a9a97"},children:"\uC870\uAC74\uC774 \uC5C6\uC73C\uBA74 \uBAA8\uB4E0 \uC5C5\uBB34\uC5D0 \uC2E4\uD589\uB429\uB2C8\uB2E4."}):null,Zo(St,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[le(St,{sx:Rb,children:"\uBB34\uC5C7\uC744 \uD560\uAE4C\uC694"}),ue.length>0?le(Tn,{size:"small",startIcon:le(Ku,{sx:{fontSize:16}}),onClick:F=>k(F.currentTarget),sx:{color:"#2563eb",minWidth:0},children:"\uB3D9\uC791 \uCD94\uAC00"}):null]}),$.set_status!==void 0?O("\uC0C1\uD0DC",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.set_status",form:d,options:_}),()=>S("set_status")):null,$.set_priority!==void 0?O("\uC911\uC694\uB3C4",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.set_priority",form:d,options:ac}),()=>S("set_priority")):null,$.apply_content_template_seq!==void 0?O("\uBCF8\uBB38 \uC591\uC2DD",le(No,{size:"medium",fullWidth:!0,label:"",value:String($.apply_content_template_seq),options:r.map(F=>({value:String(F.seq),label:F.name})),onChange:F=>u.selectContentTemplate(String(F.target.value))}),()=>S("apply_content_template"),"\uBCF8\uBB38\uC774 \uBE44\uC5B4 \uC788\uC744 \uB54C\uB9CC \uCC44\uC6C1\uB2C8\uB2E4(\uC4F4 \uB0B4\uC6A9\uC744 \uB36E\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4)"):null,$.add_label_key!==void 0?O("\uB77C\uBCA8",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.add_label_key",form:d,options:w}),()=>S("add_label_key")):null,$.assign_manager_account_seq!==void 0?O("\uCC45\uC784\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("assign_manager")},children:$.assign_manager_name||`\uACC4\uC815 #${$.assign_manager_account_seq}`}),()=>S("assign_manager")):null,$.add_receiver_account_seq!==void 0?O("\uCC38\uC870\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("add_receiver")},children:$.add_receiver_name||`\uACC4\uC815 #${$.add_receiver_account_seq}`}),()=>S("add_receiver")):null,$.notify_account_seq!==void 0?O("\uC54C\uB9BC",Zo(Mb,{children:[le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("notify")},sx:{flexShrink:0},children:$.notify_name||`\uACC4\uC815 #${$.notify_account_seq}`}),le(nl,{size:"medium",fullWidth:!0,placeholder:"\uC54C\uB9BC \uBB38\uAD6C(\uBE44\uC6B0\uBA74 \uAE30\uBCF8 \uBB38\uAD6C)",value:$.notify_message??"",onChange:F=>D("notify_message",F.target.value)})]}),()=>S("notify")):null,Object.keys($).length===0?le(St,{sx:{fontSize:13.5,color:"#9a9a97"},children:'"+ \uB3D9\uC791 \uCD94\uAC00" \uB85C \uD560 \uC77C\uC744 \uD558\uB098 \uC774\uC0C1 \uACE8\uB77C \uC8FC\uC138\uC694.'}):null,le(_b,{transitionDuration:0,anchorEl:A,open:!!A,onClose:()=>q(null),children:te.map(F=>le(wb,{dense:!0,onClick:()=>ce(F.key),sx:{fontSize:14},children:F.label},F.key))}),le(_b,{transitionDuration:0,anchorEl:C,open:!!C,onClose:()=>k(null),children:ue.map(F=>le(wb,{dense:!0,onClick:()=>j(F.key),sx:{fontSize:14},children:F.label},F.key))})]});return Zo(Mb,{children:[le(Eb,{open:f.isOpen,onClose:f.close,maxWidth:"sm",title:"\uC790\uB3D9\uD654 \uADDC\uCE59",locale:"ko",titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-rule-manage",tabs:{visible:!1},contentPaddingX:0,contentTopPadding:0,contentBottomPadding:0,sectionContentPaddingTop:0,sections:[{id:"rules",title:"",showTitle:!1,children:Zo(St,{sx:{display:"flex",flexDirection:"column",px:2.5,py:2},children:[t.length===0?Zo(St,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[le(EM,{sx:{fontSize:48,color:"#d9d9d6"}}),le(St,{sx:{fontSize:15},children:"\uB4F1\uB85D\uB41C \uADDC\uCE59\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):null,t.map(F=>Zo(St,{sx:{display:"flex",alignItems:"center",gap:2,py:1,"&:not(:last-of-type)":{borderBottom:"1px solid #ececea"},opacity:F.enabled?1:.5},children:[le(Db,{title:F.enabled?"\uC0AC\uC6A9 \uC911":"\uAEBC\uC9D0",arrow:!0,disableInteractive:!0,children:le(wM,{size:"small",inputProps:{"aria-label":`${F.name} \uADDC\uCE59 \uC0AC\uC6A9`},checked:F.enabled,onChange:(W,V)=>u.toggleRule(F.seq,V)})}),Zo(St,{sx:{flex:1,minWidth:0},children:[le(St,{sx:{fontSize:16,fontWeight:600,color:"#37352f"},children:F.name}),(()=>{let W=PM(F,o,n);return Zo(St,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:.5,fontSize:15,color:"#6f6f6c"},children:[le(St,{component:"span",children:W.left}),le(DM,{sx:{fontSize:18,color:"#9a9a97",flexShrink:0}}),le(St,{component:"span",children:W.right})]})})()]}),le(Gu,{size:"small","aria-label":`${F.name} \uADDC\uCE59 \uC218\uC815`,onClick:()=>u.openEdit(F),children:le(MM,{sx:{fontSize:18}})}),le(Gu,{size:"small","aria-label":`${F.name} \uADDC\uCE59 \uC0AD\uC81C`,onClick:()=>u.removeRule(F.seq),children:le(Gt,{sx:{fontSize:18}})})]},F.seq))]})}],actions:{showCancelButton:!1,left:le(Tn,{startIcon:le(Ku,{}),onClick:u.openCreate,sx:{color:"#2563eb"},children:"\uC0C8 \uADDC\uCE59"}),right:le(Tn,{variant:"contained",onClick:f.close,children:"\uB2EB\uAE30"})}}),le(Eb,{open:g.isOpen,onClose:g.close,maxWidth:"sm",title:x?"\uADDC\uCE59 \uC218\uC815":"\uC0C8 \uADDC\uCE59",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-rule-form",tabs:{visible:!1},sectionContentPaddingTop:0,sections:[{id:"rule-form",title:"",showTitle:!1,children:oe()}],actions:{showCancelButton:!0,right:le(Tn,{variant:"contained",onClick:()=>{d.submit()},disabled:T,children:x?"\uC218\uC815":"\uADDC\uCE59 \uCD94\uAC00"})}})]})}import{useEffect as FM,useRef as Fb,useState as $M}from"react";import{Box as ft,Button as Ui,IconButton as rl,Tooltip as il}from"@mui/material";import $b from"@mui/icons-material/Add";import HM from"@mui/icons-material/EditOutlined";import WM from"@mui/icons-material/ContentCopyOutlined";import VM from"@mui/icons-material/DragIndicator";import UM from"@mui/icons-material/Close";import GM from"@mui/icons-material/PlaylistAddCheckOutlined";import{DndContext as KM,PointerSensor as YM,closestCenter as jM,useSensor as XM,useSensors as QM}from"@dnd-kit/core";import{restrictToParentElement as ZM,restrictToVerticalAxis as JM}from"@dnd-kit/modifiers";import{SortableContext as eP,useSortable as tP,verticalListSortingStrategy as oP}from"@dnd-kit/sortable";import{CSS as nP}from"@dnd-kit/utilities";import{FormDialog as Hb}from"@ehfuse/mui-form-dialog";import{ClearTextField as Xu,LabelSelect as Gb,NumberField as Wb}from"@ehfuse/mui-form-controls";import rP from"@ehfuse/overlay-scrollbar";import{useEffect as zM,useRef as Pb}from"react";import{useGlobalForm as AM,useModal as LM}from"@ehfuse/forma";import{ConfirmDialog as NM,ErrorAlert as Ob}from"@ehfuse/alerts";var qb=0;function zb(){return qb+=1,`ti${qb}`}function ju(){return{editSeq:0,name:"",description:"",group_seq:0,itemIds:[],items:{}}}function Ab(){return{title:"",start_offset_days:0,due_offset_days:0,priority:"medium"}}function Nb(e){let t=Pb(e);t.current=e;let o=AM({formId:we("taskbox-template-form"),initialValues:ju(),onValidate:m=>m.name.trim()?Lb(m).length===0?(Ob({message:"\uC5C5\uBB34 \uD56D\uBAA9\uC744 \uD55C \uC904 \uC774\uC0C1 \uB123\uC73C\uC138\uC694."}),!1):!0:(Ob({message:"\uD15C\uD50C\uB9BF \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."}),!1),onSubmit:async m=>{let c={name:m.name.trim(),description:m.description,group_seq:m.group_seq,items:Lb(m)},p=m.editSeq>0?await t.current.onUpdate(m.editSeq,c):await t.current.onCreate(c);return p&&(n.form.close(),o.setFormValues(ju())),p}}),n={list:Xo({modalId:we("taskbox-template-manage"),open:e.open,onClose:()=>t.current.onClose()}),form:LM({modalId:we("taskbox-template-edit")})},r=Pb(n.form);r.current=n.form,zM(()=>{if(e.open)return;let m=window.setTimeout(()=>{r.current.isOpen&&r.current.close(),o.setFormValues(ju())},500);return()=>window.clearTimeout(m)},[e.open]);let i=(m,c)=>{let p=c.items.map(()=>zb());o.setFormValues({editSeq:m,name:c.name,description:c.description??"",group_seq:c.group_seq??0,itemIds:p,items:Object.fromEntries(c.items.map((d,u)=>[p[u],{...d}]))}),n.form.open()},a=(m,c)=>({name:c,description:m.description??"",group_seq:m.group_seq??0,items:m.items.map(p=>({...p}))}),l=(m,c)=>{let p=o.getFormValue(`items.${m}`);o.setFormValue(`items.${m}`,{...p??Ab(),...c})};return{form:o,modals:n,actions:{openCreate:()=>i(0,{name:"",description:"",group_seq:0,items:[]}),openEdit:m=>i(m.seq,a(m,m.name)),openDuplicate:m=>i(0,a(m,`${m.name} \uC0AC\uBCF8`)),closeForm:()=>n.form.close(),setItem:l,addItem:()=>{let m=zb();o.setFormValue(`items.${m}`,Ab()),o.setFormValue("itemIds",[...o.getFormValue("itemIds")??[],m])},removeItem:m=>{let c=o.getFormValue("itemIds")??[];o.setFormValue("itemIds",c.filter(p=>p!==m))},moveItem:(m,c)=>{let p=[...o.getFormValue("itemIds")??[]],d=p.indexOf(m),u=p.indexOf(c);if(d<0||u<0||d===u)return;let[f]=p.splice(d,1);p.splice(u,0,f),o.setFormValue("itemIds",p)},pickItemManager:async m=>{let c=t.current.onPickAccount;if(!c)return;let p=o.getFormValue(`items.${m}`),d=await c(p?.manager_account_seq??0,"\uCC45\uC784\uC790");d&&l(m,{manager_account_seq:d.accountSeq,manager_name:d.name})},clearItemManager:m=>l(m,{manager_account_seq:0,manager_name:""}),removeTemplate:async m=>{await NM({title:"\uD15C\uD50C\uB9BF \uC0AD\uC81C",message:`"${m.name}" \uD15C\uD50C\uB9BF\uC744 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&t.current.onRemove(m.seq)},runTemplate:m=>t.current.onRun?.(m)}}}function Lb(e){return(e.itemIds??[]).map(t=>e.items?.[t]).filter(t=>!!t&&String(t.title??"").trim().length>0)}import{Fragment as cP,jsx as be,jsxs as Jo}from"react/jsx-runtime";var iP=[{value:"high",label:"\uB192\uC74C"},{value:"medium",label:"\uC911\uAC04"},{value:"low",label:"\uB0AE\uC74C"}],Kb="\uC5C5\uBB34 \uC81C\uBAA9",Qu=2,lc={flex:1,minWidth:0},Vb=56,Yb=20,aP=`${Yb+Qu*8}px`;function lP({id:e,children:t}){let{attributes:o,listeners:n,setNodeRef:r,transform:i,transition:a,isDragging:l}=tP({id:e});return be(ft,{ref:r,sx:{transform:nP.Transform.toString(i),transition:a,...l?{opacity:.6,position:"relative",zIndex:1}:{}},children:t({handleProps:{...o,...n},dragging:l})})}function Ub(e){return e===null?void 0:Math.trunc(Number(e))}function sP({id:e,index:t,isLast:o,form:n,actions:r,canPickAccount:i,handleProps:a}){let l=n.useValue(`items.${e}`)??{};return Jo(ft,{sx:{borderBottom:o?"none":"1px solid #f2f2f0",px:Qu,py:2,gap:2,display:"flex",flexDirection:"column"},children:[Jo(ft,{sx:{display:"flex",alignItems:"center",gap:Qu},children:[be(ft,{...a,"aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uC21C\uC11C \uC774\uB3D9`,sx:{display:"inline-flex",alignItems:"center",flexShrink:0,color:"#c9c8c5",cursor:"grab","&:active":{cursor:"grabbing"},touchAction:"none",userSelect:"none"},children:be(VM,{sx:{fontSize:Yb}})}),be(Xu,{size:"medium",fullWidth:!0,placeholder:Kb,slotProps:{htmlInput:{"data-template-title":t}},name:`items.${e}.title`,form:n})]}),Jo(ft,{sx:{display:"flex",alignItems:"center",gap:2,pl:aP},children:[be(ft,{sx:lc,children:be(Wb,{size:"medium",fullWidth:!0,label:"\uC2DC\uC791 D+",thousandSeparator:!1,align:"right",suffix:"\uC77C",value:l.start_offset_days??null,onValueChange:s=>r.setItem(e,{start_offset_days:Ub(s)})})}),be(ft,{sx:lc,children:be(Wb,{size:"medium",fullWidth:!0,label:"\uB9C8\uAC10 D+",thousandSeparator:!1,align:"right",suffix:"\uC77C",value:l.due_offset_days??null,onValueChange:s=>r.setItem(e,{due_offset_days:Ub(s)})})}),be(ft,{sx:lc,children:be(Gb,{size:"medium",fullWidth:!0,label:"\uC911\uC694\uB3C4",value:l.priority??"medium",options:iP,onChange:s=>r.setItem(e,{priority:s.target.value})})}),i?Jo(ft,{sx:{...lc,position:"relative"},children:[be(Ui,{variant:"outlined",fullWidth:!0,onClick:()=>{r.pickItemManager(e)},sx:{height:Vb,display:"block",textAlign:"left",textTransform:"none",fontSize:16,fontWeight:400,lineHeight:`${Vb-2}px`,py:0,px:1.75,pr:l.manager_account_seq?4.5:1.75,borderColor:"#c4c4c4",color:l.manager_name?"#37352f":"#9a9a97",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&:hover":{borderColor:"#37352f",bgcolor:"transparent"}},children:l.manager_name||"\uCC45\uC784\uC790"}),l.manager_account_seq?be(il,{title:"\uCC45\uC784\uC790 \uBE44\uC6B0\uAE30",arrow:!0,disableInteractive:!0,children:be(rl,{size:"small","aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uCC45\uC784\uC790 \uBE44\uC6B0\uAE30`,onClick:s=>{s.stopPropagation(),r.clearItemManager(e)},sx:{position:"absolute",right:6,top:"50%",transform:"translateY(-50%)"},children:be(UM,{sx:{fontSize:18}})})}):null]}):null,be(il,{title:"\uD56D\uBAA9 \uC0AD\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uC0AD\uC81C`,onClick:()=>r.removeItem(e),children:be(Gt,{sx:{fontSize:18}})})})]})]})}function aZ({open:e,templates:t,customTabs:o,onPickAccount:n,onClose:r,onCreate:i,onUpdate:a,onRemove:l,onRun:s}){let m=Nb({open:e,templates:t,customTabs:o,onPickAccount:n,onClose:r,onCreate:i,onUpdate:a,onRemove:l,onRun:s}),{form:c,actions:p}=m,d=m.modals.list,u=m.modals.form,f=c.isSubmitting,g=Number(c.useValue("editSeq")??0),v=c.useValue("itemIds")??[],[D,b]=$M(0),S=Fb(null),h=Fb(null),E=()=>{let x=h.current?.getScrollContainer()??null;if(x){x.scrollTop=x.scrollHeight;return}let B=S.current?.querySelectorAll("*")??[];for(let w of Array.from(B))if(w.scrollHeight>w.clientHeight+1){w.scrollTop=w.scrollHeight;return}},y=()=>{let x=S.current;if(!x)return null;let B=x.querySelectorAll("input[data-template-title]"),w=B.length?B:x.querySelectorAll(`input[placeholder="${Kb}"]`);return w.length?w[w.length-1]:null};FM(()=>{if(D===0)return;let x=0,B=0,w=()=>{E();let N=y();N&&document.activeElement!==N&&N.focus(),x+=1,!(N&&document.activeElement===N)&&x<8&&(B=window.setTimeout(w,50))},_=window.requestAnimationFrame(w);return()=>{window.cancelAnimationFrame(_),window.clearTimeout(B)}},[D]);let T=o.filter(x=>!x.archived).map(x=>({value:String(hn(x.key)),label:x.label})),I=Number(c.useValue("group_seq")??0),A=QM(XM(YM,{activationConstraint:{distance:5}})),q=x=>{let B=String(x.active?.id??""),w=String(x.over?.id??"");!B||!w||B===w||p.moveItem(B,w)},C=be(ft,{children:t.length===0?Jo(ft,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[be(GM,{sx:{fontSize:48,color:"#d9d9d6"}}),be(ft,{sx:{fontSize:13.5},children:"\uB4F1\uB85D\uB41C \uD15C\uD50C\uB9BF\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):t.map(x=>Jo(ft,{sx:{display:"flex",alignItems:"center",gap:2.5,py:1.75,"&:not(:last-of-type)::after":{content:'""',display:"block",my:1.75,borderBottom:"1px solid #f0efed"}},children:[Jo(ft,{sx:{flex:1,minWidth:0},children:[be(ft,{sx:{fontSize:18,fontWeight:600,color:"#37352f"},children:x.name}),Jo(ft,{sx:{fontSize:14,color:"#787774",mt:.25},children:["\uC5C5\uBB34 ",x.items.length,"\uAC74",x.description?` \xB7 ${x.description}`:""]})]}),s?be(Ui,{size:"medium",variant:"outlined",onClick:()=>p.runTemplate(x),sx:{flexShrink:0},children:"\uC2E4\uD589"}):null,be(il,{title:"\uC218\uC815",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uC218\uC815`,onClick:()=>p.openEdit(x),children:be(HM,{sx:{fontSize:19}})})}),be(il,{title:"\uBCF5\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uBCF5\uC81C`,onClick:()=>p.openDuplicate(x),children:be(WM,{sx:{fontSize:18}})})}),be(il,{title:"\uC0AD\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uC0AD\uC81C`,onClick:()=>{p.removeTemplate(x)},children:be(Gt,{sx:{fontSize:18}})})})]},x.seq))}),k=Jo(ft,{sx:{display:"flex",flexDirection:"column",gap:3},children:[be(Xu,{size:"medium",label:"\uD15C\uD50C\uB9BF \uC774\uB984",placeholder:"\uC608: \uC2E0\uADDC \uC785\uC0AC\uC790 \uC628\uBCF4\uB529",fullWidth:!0,name:"name",form:c}),Jo(ft,{sx:{display:"grid",gridTemplateColumns:T.length>0?"1fr 1fr":"1fr",gap:2},children:[be(Xu,{size:"medium",label:"\uC124\uBA85",placeholder:"\uBAA9\uB85D\uC5D0\uC11C \uBB34\uC5C7\uC778\uC9C0 \uC54C\uC544\uBCFC \uD55C \uC904(\uC120\uD0DD)",fullWidth:!0,name:"description",form:c}),T.length>0?be(Gb,{size:"medium",fullWidth:!0,label:"\uB9CC\uB4E4 \uACF3(\uD504\uB85C\uC81D\uD2B8)",value:String(I),options:[{value:"0",label:"\uAE30\uBCF8 \uC5C5\uBB34\uD568"},...T],onChange:x=>c.setFormValue("group_seq",Number(x.target.value)||0)}):null]}),Jo(ft,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[be(ft,{sx:{fontSize:18,fontWeight:600,color:"#37352f"},children:"\uC5C5\uBB34 \uD56D\uBAA9"}),be(ft,{sx:{fontSize:14,color:"#37352f"},children:"\uB0A0\uC9DC\uB294 \uC2E4\uD589\uD560 \uB54C \uACE0\uB974\uB294 \uAE30\uC900\uC77C\uC5D0\uC11C \uACC4\uC0B0\uB429\uB2C8\uB2E4."})]}),v.length===0?be(ft,{sx:{fontSize:14,color:"#9a9a97",py:2},children:'\uC544\uC9C1 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. "\uD56D\uBAA9 \uCD94\uAC00" \uB85C \uC808\uCC28\uB97C \uC21C\uC11C\uB300\uB85C \uC801\uC73C\uC138\uC694.'}):be(ft,{ref:S,sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:be(rP,{ref:h,style:{maxHeight:"min(560px, 52vh)"},thumb:{width:6},children:be(KM,{sensors:A,collisionDetection:jM,modifiers:[JM,ZM],onDragEnd:q,children:be(eP,{items:v,strategy:oP,children:v.map((x,B)=>be(lP,{id:x,children:({handleProps:w})=>be(sP,{id:x,index:B,isLast:B===v.length-1,form:c,actions:p,canPickAccount:!!n,handleProps:w})},x))})})})})]});return Jo(cP,{children:[be(Hb,{open:d.isOpen,onClose:d.close,maxWidth:"md",title:"\uC5C5\uBB34 \uD15C\uD50C\uB9BF",locale:"ko",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-template",tabs:{visible:!1},actions:{showCancelButton:!1,left:be(Ui,{startIcon:be($b,{sx:{fontSize:18}}),onClick:p.openCreate,children:"\uC0C8 \uD15C\uD50C\uB9BF"}),right:be(Ui,{variant:"contained",onClick:d.close,children:"\uB2EB\uAE30"})},sectionContentPaddingTop:0,sections:[{id:"templates",title:"",showTitle:!1,children:C}]}),be(Hb,{open:u.isOpen,onClose:u.close,maxWidth:"md",title:g>0?"\uD15C\uD50C\uB9BF \uC218\uC815":"\uC0C8 \uD15C\uD50C\uB9BF",locale:"ko",backdropClick:!1,fontScale:{enabled:!0},fontScaleKey:"taskbox-task-template-form",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},tabs:{visible:!1},actions:{showCancelButton:!0,left:be(Ui,{startIcon:be($b,{sx:{fontSize:18}}),onClick:()=>{p.addItem(),b(x=>x+1)},children:"\uD56D\uBAA9 \uCD94\uAC00"}),right:be(Ui,{variant:"contained",disabled:f,onClick:()=>{c.submit()},children:"\uC800\uC7A5"})},sectionContentPaddingTop:0,sections:[{id:"template-form",title:"",showTitle:!1,children:k}]})]})}import{Box as mo,Button as uP}from"@mui/material";import{FormDialog as dP}from"@ehfuse/mui-form-dialog";import{DateTextField as pP}from"@ehfuse/mui-form-controls";import fP from"@ehfuse/overlay-scrollbar";import{useRef as Zu}from"react";import{useGlobalForm as mP}from"@ehfuse/forma";function jb(e){let t=Zu(e);t.current=e;let o=Zu(e.template);e.template&&(o.current=e.template);let n=e.template??o.current,r=Zu(n);r.current=n;let i=mP({formId:we("taskbox-template-run-form"),initialValues:{baseDate:e.todayStr},onValidate:s=>t.current.running||!r.current?!1:fs(r.current,s.baseDate).length>0,onSubmit:s=>r.current?(t.current.onRun(fs(r.current,s.baseDate),s.baseDate),!0):!1}),a={run:Xo({modalId:we("taskbox-template-run"),open:e.open,onClose:()=>t.current.onClose(),onOpen:()=>i.setFormValues({baseDate:t.current.todayStr})})},l=s=>n?fs(n,s):[];return{form:i,modals:a,template:n,running:!!e.running,planTasks:l}}import{jsx as So,jsxs as al}from"react/jsx-runtime";function yZ(e){let t=jb(e),{form:o,running:n}=t,r=t.modals.run,i=t.template,a=String(o.useValue("baseDate")??""),l=t.planTasks(a);return So(dP,{open:r.isOpen,onClose:r.close,maxWidth:"md",title:i?`${i.name} \uC2E4\uD589`:"\uD15C\uD50C\uB9BF \uC2E4\uD589",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-template-run",tabs:{visible:!1},sectionContentPaddingTop:0,actions:{showCancelButton:!0,right:So(uP,{variant:"contained",disabled:n||l.length===0,onClick:()=>{o.submit()},children:n?"\uB9CC\uB4DC\uB294 \uC911\u2026":`\uC5C5\uBB34 ${l.length}\uAC74 \uB9CC\uB4E4\uAE30`})},sections:[{id:"template-run",title:"",showTitle:!1,children:al(mo,{sx:{display:"flex",flexDirection:"column",gap:2},children:[al(mo,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[So(mo,{sx:{width:72,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uAE30\uC900\uC77C"}),So(pP,{size:"medium",fullWidth:!0,name:"baseDate",form:o})]}),So(mo,{sx:{fontSize:14.5,color:"#37352f"},children:"\uC544\uB798 \uC5C5\uBB34\uAC00 \uD55C\uAEBC\uBC88\uC5D0 \uB9CC\uB4E4\uC5B4\uC9D1\uB2C8\uB2E4. \uB0A0\uC9DC\uB294 \uAE30\uC900\uC77C\uC5D0\uC11C \uACC4\uC0B0\uB41C \uAC12\uC785\uB2C8\uB2E4."}),al(mo,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:[al(mo,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,bgcolor:"#fafaf9",borderBottom:"1px solid #e6e6e3",fontSize:13.5,fontWeight:600,color:"#37352f"},children:[So(mo,{sx:{flex:1,minWidth:0},children:"\uC5C5\uBB34"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center"},children:"\uC2DC\uC791"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center"},children:"\uB9C8\uAC10"}),So(mo,{sx:{width:96,flexShrink:0,textAlign:"center"},children:"\uCC45\uC784\uC790"})]}),So(fP,{style:{maxHeight:520},thumb:{width:6},children:l.length===0?So(mo,{sx:{p:2,fontSize:14,color:"#9a9a97"},children:"\uB9CC\uB4E4 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):l.map((s,m)=>al(mo,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1.25,borderBottom:m===l.length-1?"none":"1px solid #f2f2f0",fontSize:16,fontWeight:500,color:"#111111"},children:[So(mo,{sx:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.title}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.start_date?"#37352f":"#9a9a97"},children:im(s.start_date)||"-"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.due_date?"#37352f":"#9a9a97"},children:im(s.due_date)||"-"}),So(mo,{sx:{width:96,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.manager_name?"#37352f":"#9a9a97",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.manager_name||"-"})]},m))})]})]})}]})}var gP={urgent:"\uAE34\uAE09",high:"\uB192\uC74C",normal:"\uC911\uAC04",low:"\uB0AE\uC74C"};function xP(e){return e.length===0?"":e.length<=2?e.join(", "):`${e[0]} \uC678 ${e.length-1}\uBA85`}function sc(e){let t=String(e??"").trim().slice(0,10);return/^\d{4}-\d{2}-\d{2}$/.test(t)?`${t.slice(2,4)}.${t.slice(5,7)}.${t.slice(8,10)}`:"-"}function Gi(e){let t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}`}function Ju(e,t,o){let r=String(e.due_date??"").slice(11,16).trim()||String(e.estimated_time??"").trim(),i=sc(e.due_date),a=String(e.start_date??"").slice(11,16).trim(),l=sc(e.start_date),s=(e.receiver_names??[]).filter(Boolean).map(c=>String(c).trim()),m=(e.checklist??[]).length?`${(e.checklist??[]).filter(c=>c.checked).length}/${(e.checklist??[]).length}`:"";return{seq:Number(e.seq??0),title:String(e.title??"").trim(),statusName:Mt(e).name,projectLabel:e.tab_key?t.get(String(e.tab_key))??"":"",managerName:String(e.manager_name??"").trim(),receiverNames:xP(s),receiverNamesFull:s.join(", "),startDate:l!=="-"&&a?`${l} ${a}`:l,dueDate:i!=="-"&&r?`${i} ${r}`:i,priorityName:gP[String(e.priority??"")]??"",checklist:m,checklistItems:(e.checklist??[]).map(c=>{let p=c.task_seq&&o?o(Number(c.task_seq)):null,d=sc(p?.due_date),u=String(p?.due_date??"").slice(11,16).trim();return{label:String(c.label??"").trim(),checked:!!c.checked,managerName:String(p?.manager_name??"").trim(),dueDate:d!=="-"?u?`${d} ${u}`:d:""}}),note:String(e.note??"").trim(),completed:!!e.completed}}function Fe(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function bP(e,t){if(e===" ")return t*.3;let o=e.codePointAt(0)??0,n=o>=4352&&o<=4607||o>=12288&&o<=40959||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65280&&o<=65519;return t*(n?1:.55)}function cc(e,t){let o=0;for(let n of String(e??""))o+=bP(n,t);return o}function Ki(e,t){let o=String(e??"").trim();if(!o)return["-"];let n=[],r="";for(let i of o){if(i===`
|
|
18
|
+
${u}`.trim()).then(()=>{a.setValue("copied",!0),window.setTimeout(()=>a.setValue("copied",!1),1500)})};return{modals:i,ui:a,taskSeq:e.taskSeq,isStored:l,selectTarget:s,openDialog:m,copySummary:c,copyResult:p}}import{jsx as st,jsxs as Ka}from"react/jsx-runtime";var Og=[{code:"en",label:"\uC601\uC5B4"},{code:"ja",label:"\uC77C\uBCF8\uC5B4"},{code:"zh",label:"\uC911\uAD6D\uC5B4(\uAC04\uCCB4)"},{code:"zh-TW",label:"\uC911\uAD6D\uC5B4(\uBC88\uCCB4)"},{code:"vi",label:"\uBCA0\uD2B8\uB0A8\uC5B4"},{code:"th",label:"\uD0DC\uAD6D\uC5B4"},{code:"ko",label:"\uD55C\uAD6D\uC5B4"}];function qg({controller:e,title:t,html:o}){let n=e.modals.translate,{ui:r}=e,i=String(r.useValue("target")??"");r.useValue("doneTargets");let a=r.useValue("result"),l=!!r.useValue("loading"),s=String(r.useValue("error")??""),m=!!r.useValue("copied"),c=!!r.useValue("summaryCopied"),[p,d]=kw(null),u=(g,v)=>{if(g!==i){if(g===""||e.isStored(g)){e.selectTarget(g);return}d({code:g,anchor:v})}};hw(()=>{n.isOpen&&d(null)},[n.isOpen,e.taskSeq]);let f=Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[st(ho,{sx:{display:"flex",flexWrap:"wrap",gap:.75},children:[{code:"",label:"\uC6D0\uBB38"},...Og].map(g=>st(Tw,{label:g.label,clickable:!0,icon:g.code&&e.isStored(g.code)?st(gu,{sx:{fontSize:16}}):void 0,onClick:v=>u(g.code,v.currentTarget),color:i===g.code?"primary":"default",variant:i===g.code?"filled":"outlined",sx:{fontSize:14,height:30}},g.code||"__source__"))}),st(Cw,{open:!!p,anchorEl:p?.anchor??null,title:`${Og.find(g=>g.code===p?.code)?.label??""}\uB85C AI \uBC88\uC5ED\uC744 \uC2DC\uC791\uD560\uAE4C\uC694?`,confirmText:"\uC2DC\uC791",cancelText:"\uCDE8\uC18C",placement:"bottom-start",onCancel:()=>d(null),onConfirm:()=>{p&&e.selectTarget(p.code),d(null)}}),i?l?st(ho,{sx:{minHeight:200,display:"flex",alignItems:"center",justifyContent:"center"},children:st(Bi,{})}):s?st(ho,{sx:{fontSize:15,color:"#c62828",py:2},children:s}):a?Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[a.summary?Ka(ho,{sx:{position:"relative",display:"flex",alignItems:"center",gap:2,px:1.5,pr:5,py:1.25,bgcolor:"#eef4ff",border:"1px solid #c7d7fe",borderRadius:1},children:[st(Sw,{title:"\uC694\uC57D \uBCF5\uC0AC",arrow:!0,children:st(yw,{size:"small","aria-label":"\uC694\uC57D \uBCF5\uC0AC",onClick:e.copySummary,sx:{position:"absolute",top:4,right:4,color:"#64748b"},children:c?st(gu,{sx:{fontSize:18,color:"#2f9e5b"}}):st(Pg,{sx:{fontSize:18}})})}),st(vw,{sx:{fontSize:30,color:"#2563eb",flexShrink:0,mx:1.5}}),Ka(ho,{sx:{flex:1,minWidth:0},children:[st(ho,{sx:{fontSize:16,fontWeight:600,color:"#1e3a8a"},children:"AI \uBC88\uC5ED (Gemini) \xB7 \uC6D0\uBB38\uACFC \uB2E4\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4"}),st(ho,{sx:{fontSize:15,color:"#111",mt:.25,lineHeight:1.5,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a.summary})]})]}):null,st(ho,{sx:{fontSize:18,fontWeight:700,color:"#111",wordBreak:"break-word"},children:a.title}),a.html?st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",wordBreak:"break-word","& > p:first-of-type":{mt:0},"& > p:last-of-type":{mb:0},"& a[href]":{color:"#2563eb",textDecoration:"underline"},"& img":{maxWidth:"100%"}},dangerouslySetInnerHTML:{__html:a.html}}):st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",whiteSpace:"pre-wrap"},children:a.text})]}):null:Ka(ho,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[st(ho,{sx:{fontSize:18,fontWeight:700,color:"#111",wordBreak:"break-word"},children:t}),st(ho,{sx:{fontSize:16,lineHeight:1.6,color:"#37352f",wordBreak:"break-word","& > p:first-of-type":{mt:0},"& > p:last-of-type":{mb:0},"& a[href]":{color:"#2563eb",textDecoration:"underline"},"& img":{maxWidth:"100%"}},dangerouslySetInnerHTML:{__html:o||"<p></p>"}})]})]});return st(Bw,{open:n.isOpen,onClose:n.close,width:760,title:"\uB0B4\uC6A9 \uBC88\uC5ED",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-content-translate",maxContentHeight:"80vh",sectionContentPaddingTop:0,sections:[{id:"translate",showTitle:!1,children:f}],actions:{showCancelButton:!1,left:i&&a?st(Mg,{variant:"outlined",color:"inherit",startIcon:m?st(gu,{sx:{fontSize:18,color:"#2f9e5b"}}):st(Pg,{sx:{fontSize:18}}),onClick:e.copyResult,sx:{minWidth:80,color:"#37352f",borderColor:"#d9d9d6"},children:"\uBCF5\uC0AC"}):void 0,right:st(Mg,{variant:"contained",onClick:n.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{ConfirmActionPopper as eD}from"@ehfuse/mui-confirm-action";import{DatePicker as tD}from"@ehfuse/mui-datetime-picker";import{useState as Iw}from"react";import{TextField as _w}from"@ehfuse/mui-form-controls";import{jsx as ww}from"react/jsx-runtime";function zg({value:e,onCommit:t,onDraftChange:o,readOnly:n=!1}){let[r,i]=Iw(null);return ww(_w,{value:r??e,placeholder:n?"":"\uBE44\uACE0 \uC785\uB825",fullWidth:!0,size:"medium",slotProps:{input:{readOnly:n}},onChange:a=>{i(a.target.value),o?.(a.target.value)},onBlur:()=>{r!==null&&r.trim()!==e&&t(r),i(null)},onKeyDown:a=>{a.key==="Enter"&&a.target.blur(),a.key==="Escape"&&i(null)},sx:{mt:1}})}import{useMemo as hu,useState as Dw}from"react";import{Box as ao,Button as Ng,IconButton as Ew}from"@mui/material";import Rw from"@mui/icons-material/AccountTreeOutlined";import Mw from"@mui/icons-material/LinkOutlined";import Pw from"@mui/icons-material/Close";import Ow from"@mui/icons-material/RedoOutlined";function si(e){return e.relations??[]}function Q8(e,t,o){return si(e).some(n=>n.type===o&&n.task_seq===t.seq)||si(t).some(n=>n.type===o&&n.task_seq===e.seq)}function Ag(e){return`${e.created_time??""}|${String(e.seq).padStart(12,"0")}`}function xu(e,t){let o=new Map(t.map(f=>[f.seq,f]));o.set(e.seq,e);let n=new Map,r=(f,g)=>{n.has(f)||n.set(f,new Set),n.has(g)||n.set(g,new Set),n.get(f).add(g),n.get(g).add(f)};for(let f of o.values())for(let g of si(f))g.type==="follow_up"&&o.has(g.task_seq)&&r(f.seq,g.task_seq);let i=new Set([e.seq]),a=[e.seq];for(;a.length>0;){let f=a.shift();for(let g of n.get(f)??[])i.has(g)||(i.add(g),a.push(g))}let l=[...i].map(f=>o.get(f)).filter(f=>!!f).sort((f,g)=>Ag(f).localeCompare(Ag(g))),s=new Set;for(let f of si(e))f.type==="related"&&s.add(f.task_seq);for(let f of o.values())f.seq!==e.seq&&si(f).some(g=>g.type==="related"&&g.task_seq===e.seq)&&s.add(f.seq);let m=[...s].map(f=>o.get(f)).filter(f=>f!==void 0&&f.seq!==e.seq),c=[...o.values()].filter(f=>f.seq!==e.seq&&si(f).some(g=>g.type==="duplicate_of"&&g.task_seq===e.seq)),p=si(e).find(f=>f.type==="duplicate_of")?.task_seq,d=p?o.get(p)??null:null,u=[...o.values()].filter(f=>f.seq!==e.seq&&(f.checklist??[]).some(g=>Number(g.task_seq??0)===e.seq));return{lineage:l,related:m,duplicates:c,duplicateOf:d,parents:u}}function bu(e,t){let o=xu(e,t);return(o.lineage.length>=2?o.lineage.length-1:0)+o.related.length+o.duplicates.length+(o.duplicateOf?1:0)+o.parents.length}function Lg(e,t){return bu(e,t)>0}import{ConfirmActionPopper as qw}from"@ehfuse/mui-confirm-action";import{Fragment as zw,jsx as dt,jsxs as bn}from"react/jsx-runtime";function Ns({item:e,caption:t,onOpen:o,onUnlink:n}){let r=e.is_notice||e.is_event?ze(e.icon||(e.is_notice?gt:Rt)):null;return bn(ao,{sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.5,borderRadius:1,"&:hover":{bgcolor:"#f7f7f5"},"&:hover .taskbox-relation-unlink":{opacity:1}},children:[t?dt(ao,{component:"span",sx:{flexShrink:0,px:.6,py:.1,borderRadius:.75,fontSize:11.5,fontWeight:500,color:"#8a6d1d",bgcolor:"#faf1d7"},children:t}):null,r?dt(r,{sx:{fontSize:16,flexShrink:0,color:e.icon_color||"#1e3a8a"}}):null,bn(ao,{component:"span",onClick:o,sx:{flex:1,minWidth:0,fontSize:14,color:e.completed?"#9a9a97":"#37352f",textDecoration:e.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...o?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[e.ticket_no?`${e.ticket_no} `:"",e.title]}),dt($e,{option:Mt(e),small:!0}),n?dt(Ew,{className:"taskbox-relation-unlink",size:"small","aria-label":"\uC5F0\uACB0 \uD574\uC81C",onClick:n,sx:{opacity:0,transition:"opacity 0.15s",color:"#9a9a97"},children:dt(Pw,{sx:{fontSize:15}})}):null]})}function Fg({task:e,tasks:t,readOnly:o=!1,onOpenTask:n,onLink:r,onUnlink:i,onCreateFollowUp:a}){let l=Aa({onSubmit:(g,v)=>r?.(e.seq,g,v)}),[s,m]=Dw(null),c=hu(()=>xu(e,t),[e,t]),p=c.lineage.length>=2,d=hu(()=>bu(e,t),[e,t]),u=hu(()=>{let g=new Set;for(let v of c.lineage)g.add(v.seq);for(let v of c.related)g.add(v.seq);for(let v of c.duplicates)g.add(v.seq);for(let v of c.parents)g.add(v.seq);return c.duplicateOf&&g.add(c.duplicateOf.seq),[...g]},[c]),f=(g,v,D)=>{m({anchorEl:g,targetSeq:v,type:D})};return bn(jo,{icon:dt(Rw,{sx:{fontSize:19,display:"block"}}),title:bn(zw,{children:["\uAD00\uB828 \uC5C5\uBB34",d>0?dt(ao,{component:"span",sx:{fontSize:12.5,color:"#9a9a97"},children:d}):null]}),titleExtra:o?null:bn(ao,{sx:{ml:"auto",display:"flex",alignItems:"center",gap:.5},children:[a?dt(Ng,{size:"small",color:"inherit",startIcon:dt(Ow,{sx:{fontSize:16}}),onClick:()=>a(e.seq),sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uD6C4\uC18D \uC5C5\uBB34"}):null,r?dt(Ng,{size:"small",color:"inherit",startIcon:dt(Mw,{sx:{fontSize:16}}),onClick:l.openDialog,sx:{minWidth:0,px:1,fontSize:12.5,color:"#787774"},children:"\uC5F0\uACB0"}):null]}),children:[bn(ao,{sx:{display:"flex",flexDirection:"column",mt:.5,pl:3.25},children:[p?dt(ao,{sx:{mb:c.related.length||c.duplicates.length||c.duplicateOf?1:0},children:c.lineage.map((g,v)=>{let D=g.seq===e.seq,b=v===c.lineage.length-1;return bn(ao,{sx:{display:"flex",gap:1},children:[bn(ao,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:14,flexShrink:0,pt:1.1},children:[dt(ao,{sx:{width:D?9:7,height:D?9:7,borderRadius:"50%",bgcolor:D?"#2f80ed":g.completed?"#9a9a97":"#c9c8c5",flexShrink:0}}),b?null:dt(ao,{sx:{width:"2px",flex:1,bgcolor:"#e6e6e3"}})]}),bn(ao,{sx:{flex:1,minWidth:0,pb:b?0:.5},children:[bn(ao,{sx:{display:"flex",alignItems:"center",gap:.75},children:[bn(ao,{component:"span",onClick:!D&&n?()=>n(g.seq):void 0,sx:{minWidth:0,fontSize:14,fontWeight:D?600:400,color:D?"#2f80ed":g.completed?"#9a9a97":"#37352f",textDecoration:g.completed?"line-through":"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...!D&&n?{cursor:"pointer","&:hover":{color:"#2f80ed"}}:{}},children:[g.ticket_no?`${g.ticket_no} `:"",g.title]}),dt($e,{option:Mt(g),small:!0})]}),dt(ao,{sx:{fontSize:12,color:"#9a9a97"},children:g.completed&&g.completed_time?`${g.completed_time} \uC644\uB8CC`:g.created_time??""})]})]},g.seq)})}):null,c.parents.map(g=>dt(Ns,{item:g,caption:"\uC0C1\uC704 \uC5C5\uBB34",onOpen:n?()=>n(g.seq):void 0},`parent-${g.seq}`)),c.duplicateOf?dt(Ns,{item:c.duplicateOf,caption:"\uC6D0\uBCF8",onOpen:n?()=>n(c.duplicateOf.seq):void 0,onUnlink:!o&&i?g=>f(g.currentTarget,c.duplicateOf.seq,"duplicate_of"):void 0}):null,c.duplicates.map(g=>dt(Ns,{item:g,caption:"\uC911\uBCF5",onOpen:n?()=>n(g.seq):void 0,onUnlink:!o&&i?v=>f(v.currentTarget,g.seq,"duplicate_of"):void 0},`dup-${g.seq}`)),c.related.map(g=>dt(Ns,{item:g,onOpen:n?()=>n(g.seq):void 0,onUnlink:!o&&i?v=>f(v.currentTarget,g.seq,"related"):void 0},`rel-${g.seq}`)),d===0?dt(ao,{sx:{px:1.25,py:.75,fontSize:13.5,color:"#9a9a97"},children:"\uC5F0\uACB0\uB41C \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):null]}),r?dt(Is,{controller:l,task:e,tasks:t,excludeSeqs:u}):null,dt(qw,{open:!!s,anchorEl:s?.anchorEl??null,title:"\uC774 \uC5C5\uBB34\uC640\uC758 \uC5F0\uACB0\uC744 \uD574\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uD574\uC81C",onCancel:()=>m(null),onConfirm:()=>{s&&i?.(e.seq,s.targetSeq,s.type),m(null)}})]})}import{Fragment as ko,jsx as L,jsxs as Ze}from"react/jsx-runtime";function Or({label:e="\uBE44\uC5B4 \uC788\uC74C"}){return L(tt,{component:"span",sx:{color:"#9a9a97"},children:e})}function Kg({task:e,customTabs:t,statusOptions:o,avatarSrcByName:n,onChangeStatus:r,onChangeLabels:i,onAddLabelOption:a,onChangeProject:l,onAddProject:s,onChangeDate:m,onChangeReminder:c,onMemberEdit:p,onChangePriority:d,onChangeVisibility:u,onChangeRepeat:f,departments:g=[],onChangeEventTime:v,onChangeEventPlace:D,onChangeEventAddress:b,onChangeNote:S,onChangeNoteDraft:h,onChangeContent:E,contentTemplates:y,onSaveContentTemplate:T,onRemoveContentTemplate:I,contentLoading:A=!1,onAddChecklistItem:q,onToggleChecklistItem:C,onRemoveChecklistItem:k,onUpdateChecklistItem:x,onReorderChecklist:B,onConvertChecklistToTask:w,onOpenChecklistTask:_,onLinkChecklistTask:N,resolveChecklistTask:M,relatedTasksPool:$,onOpenRelatedTask:Y,onLinkRelatedTask:te,onUnlinkRelatedTask:ce,onCreateFollowUpTask:ue,onAddAttachments:j,onRemoveAttachment:O,onPreview:oe,onDownload:F,onUpdateComment:W,onRemoveComment:V,onToggleCommentReaction:U,currentUserName:de="",myAccountSeq:re=0,headerless:Te=!1,noticeAdmin:K=!1,hideProject:ne=!1,hideLabel:he=!1,showTitle:Se=!1,onChangeTitle:_e,onToggleCompleted:Le,onChangeIcon:ct,onChangeIconColor:Ge,employees:Pe=[],onAckConfirm:Ne,onRequestConfirm:G,onChangeBugField:ae,sprints:We=[],sprintProject:Ft=!1,hideSprint:$o=!1,onChangeSprint:$t,onChangeStoryPoints:ie,onChangeResolution:Qe,onClaimTask:Ho,onVerifyBug:Co}){let[Ht,Hn]=Ao(null),Bo=Aw(!1),[wt,Q]=Ao(null),[z,Oe]=Ao(null),[Wt,Ve]=Ao(null),[H,X]=Ao(!1),fe={[gn]:H?{maxHeight:120,opacity:1,overflow:"hidden",transition:"max-height 0.25s ease, opacity 0.2s ease"}:{minHeight:0,maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none",transition:"max-height 0.25s ease, opacity 0.2s ease"}},[De,rt]=Ao(null),[it,zt]=Ao(null),[Dt,Vt]=Ao(null),[to,Et]=Ao(null),[Wn,tn]=Ao(null),[fr,gr]=Ao(null),[ui,di]=Ao(null),Ee=!!e.is_notice,at=!!e.is_event,Wo=!!e.is_bug,ea=!!Ho&&Nl(e,re),{onReturnTask:pi,onReviewDone:fl,editPolicy:Ke,translateContent:Wr,contentTranslate:on}=me(),ta=Te&&!!fl&&!!pi&&Qt(e,re),[Vr,xr]=Ao(null),Mo=!!(Wr&&on),br=fu({taskSeq:e.seq,translatedTargets:e.translated_targets??[]}),fc=!!Ho&&Fl(e,re),oa=!!Co&&Wo&&!!e.completed&&re>0&&(e.author_account_seq??0)===re&&!(e.acks??[]).some(P=>P.account_seq===re),nn=!Cn(e,re),po=Sr(e,re,Ke),fo=!e.is_event&&(e.is_notice?re>0&&(e.author_account_seq??0)===re:(e.author_account_seq??0)===re||(e.manager_account_seq??0)===re),hr=e.is_notice||e.is_event?ze(e.icon||(e.is_notice?gt:Rt)):null,Ur=Ee?!Ll(e,re):nn,kr=ea||fc?Ze(Oo,{onClick:P=>di(P.currentTarget),children:[L(Qw,{sx:{fontSize:16,mr:.5}}),"\uAC00\uC838\uAC00\uAE30"]}):null,Vn=Ee?Os(e,Pe):"",Ut=Ee?ag(e,Pe,re):null,Xt=Ee?null:_r(e,re),gl=Eg(e.content??""),na=Rg(e.seq,!!(Xt?.canConfirm&&Ne),gl,()=>Ne?.(e.seq)),gc=Math.max(1,Math.ceil((1-na)*gl/1e3)),xc=!!(Xt&&Xt.total>0||Ee&&Ut),xl=(e.origin_license_seq??0)>0,bl=!Ee&&!xl,ra=Ze(ko,{children:[L(Be,{icon:L(Yw,{sx:{fontSize:17}}),label:"\uC791\uC131\uC790",sx:[qn(9),fe??null,...at?[]:[ht(1)]],children:e.created_by?Ze(ko,{children:[L(go,{names:[e.created_by],size:20,avatarSrcByName:n}),e.created_by]}):L(Or,{})}),L(Be,{icon:L(Wg,{sx:{fontSize:17}}),label:"\uC791\uC131\uC77C\uC2DC",sx:[qn(11),fe??null,...at?[]:[ht(2)]],children:e.created_time?Po(e.created_time):L(Or,{})})]});return Ze(ko,{children:[Se?Ze(tt,{sx:{px:2,pt:2,pb:.5,display:"flex",alignItems:"flex-start",gap:1},children:[fo?L(Lw,{checked:e.completed,icon:L(Uw,{sx:{fontSize:22,color:"#9a9a97",opacity:.45}}),checkedIcon:L(yu,{sx:{fontSize:22,color:"#2f80ed"}}),onChange:(P,At)=>{z||Oe({anchorEl:P.currentTarget,nextCompleted:At})},sx:{p:0,mt:.25}}):null,hr?at&&!nn?L($g,{onClick:P=>Q(P.currentTarget),sx:{display:"flex",p:.25,mt:.1,borderRadius:1,color:e.icon_color||"#1e3a8a","&:hover":{bgcolor:"#f2f2f0"}},children:L(hr,{sx:{fontSize:20}})}):L(tt,{sx:{display:"flex",p:0,mt:.25,color:e.icon_color||(Ee?"#e5484d":"#1e3a8a")},children:L(hr,{sx:{fontSize:20}})}):null,L(tt,{sx:{flex:1,minWidth:0},children:Ht!==null?L(tt,{component:"div",contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,ref:P=>{if(!P||P.dataset.focused)return;P.dataset.focused="1",P.focus();let At=document.createRange();At.selectNodeContents(P),At.collapse(!1);let yn=window.getSelection();yn?.removeAllRanges(),yn?.addRange(At)},onBlur:P=>{let At=(P.currentTarget.textContent??"").replace(/\n/g," ").trim();!Bo.current&&At&&At!==e.title&&_e(e.seq,At),Bo.current=!1,Hn(null)},onKeyDown:P=>{P.key==="Enter"&&(P.preventDefault(),P.target.blur()),P.key==="Escape"&&(Bo.current=!0,P.target.blur())},onPaste:P=>{P.preventDefault();let At=P.clipboardData.getData("text/plain").replace(/\n/g," ");document.execCommand("insertText",!1,At)},sx:{outline:"none",fontSize:19,fontWeight:600,color:"#37352f",lineHeight:"26px",cursor:"text",textDecoration:e.completed?"line-through":"none",userSelect:"text",wordBreak:"break-word"},children:Ht}):L(tt,{onClick:po?void 0:()=>Hn(e.title),sx:{fontSize:19,fontWeight:600,color:"#37352f",lineHeight:"26px",cursor:po?"default":"text",textDecoration:e.completed?"line-through":"none",userSelect:"text",wordBreak:"break-word"},children:e.title})}),L(_o,{open:!!z,anchorEl:z?.anchorEl??null,nextCompleted:z?.nextCompleted??!1,returnMode:!!pi&&Qt(e,re),onCancel:()=>Oe(null),onConfirm:P=>{z&&(P&&pi?pi(e,P):Le(e.seq,z.nextCompleted)),Oe(null)}})]}):null,Ze(tt,{sx:{py:1.5,display:"flex",flexDirection:"column",gap:0,[gn]:{pb:0,"& > :last-child":{mb:0}}},children:[L(bs,{hideProject:ne,pinColumns:!0,projectColumn:!at&&!he?2:"full",values:{tabKey:e.tab_key??"",managerName:e.manager_name,receiverNames:e.receiver_names,startDate:e.start_date,dueDate:e.due_date,reminders:vn(e),priority:e.priority,eventTime:e.event_time??"",eventPlace:e.event_place??"",eventAddress:e.event_address??""},customTabs:t,avatarSrcByName:Hl(e,n),hideDueDate:!at&&!!e.repeat_rule,notice:Ee,event:at,readOnly:nn,coreLocked:po,targetSummary:Vn,onChangeProject:P=>l(e.seq,P),onAddProject:s,onChangeStartDate:P=>m(e.seq,"start_date",P),onChangeDueDate:P=>m(e.seq,"due_date",P),onChangeReminder:P=>c(e.seq,P),onChangePriority:P=>d(e.seq,P),onChangeEventTime:P=>v?.(e.seq,P),onChangeEventPlace:P=>D?.(e.seq,P),onChangeEventAddress:P=>b?.(e.seq,P),onMemberEdit:P=>p(e,P,null),narrowCollapsedSx:fe,reminderLocked:e.completed,managerAction:kr,supportOrigin:(e.origin_license_seq??0)>0?{licenseName:e.origin_license_name??"",authorName:e.origin_author_name||e.author_name||e.created_by||"",contactPhone:e.origin_contact_phone??"",contactEmail:e.origin_contact_email??"",supportType:Yl(e.support_type??"")}:void 0,leading:Ze(ko,{children:[oa||kr&&(Ee||at)?Ze(tt,{sx:{gridColumn:"1 / -1",display:"flex",justifyContent:"flex-start",gap:2,px:2,py:1.5},children:[Ee||at?kr:null,oa?Ze(ko,{children:[L(ci,{variant:"contained",size:"large",onClick:()=>Co?.(e.seq,!0),sx:{bgcolor:"#2f80ed"},children:"\uAC80\uC99D\uC644\uB8CC"}),L(ci,{variant:"outlined",size:"large",color:"error",onClick:()=>Co?.(e.seq,!1),children:"\uC7AC\uC624\uD508"})]}):null]}):null,Wo&&e.ticket_no?L(Be,{icon:L($w,{sx:{fontSize:17}}),label:"\uD2F0\uCF13",sx:ht(1),children:L(tt,{component:"span",sx:{fontVariantNumeric:"tabular-nums"},children:e.ticket_no})}):null,at?null:L(tt,{sx:Wo&&e.ticket_no||bl||xc?ht(Wo&&e.ticket_no?2:1):{gridColumn:"1 / -1"},children:L(Be,{icon:L(Gw,{sx:{fontSize:17}}),label:"\uC0C1\uD0DC",onClick:nn||e.completed?void 0:P=>rt(P),children:L($e,{option:Mt(e)})})}),ta?Ze(Be,{icon:L(Hw,{sx:{fontSize:17}}),label:"\uAC80\uC218",sx:{gridColumn:"1 / -1"},children:[L(Oo,{onClick:P=>Oe({anchorEl:P.currentTarget,nextCompleted:!1}),children:"\uB418\uB3CC\uB9AC\uAE30"}),L(ci,{size:"small",variant:"contained",disableElevation:!0,onClick:P=>{P.stopPropagation(),xr(P.currentTarget)},sx:{ml:1,...Cr},children:"\uAC80\uC218\uC644\uB8CC"}),L(Br,{anchorEl:Vr,onCancel:()=>xr(null),onConfirm:()=>{fl?.(e),xr(null)}})]}):null,bl?(()=>{let P=ln(e),At=P==="all"?L(Ug,{sx:{fontSize:17,color:"#2f80ed"}}):P==="group"?L(Gg,{sx:{fontSize:17,color:"#d9730d"}}):L(Vg,{sx:{fontSize:17}}),yn=P==="all"?"\uC804\uCCB4\uACF5\uAC1C":P==="group"?`\uBD80\uC11C\uACF5\uAC1C \xB7 ${g.find(Gr=>Gr.seq===(e.visibility_group_seq??0))?.name??"\uBD80\uC11C"}`:"\uBE44\uACF5\uAC1C";return L(tt,{sx:at?void 0:ht(Wo?1:2),children:L(Be,{icon:At,label:"\uACF5\uAC1C",onClick:po||!u?void 0:Gr=>zt(Gr),children:yn})})})():null,!Wo&&!xl?L(tt,{sx:at?void 0:ht(1),children:L(Be,{icon:L(Zw,{sx:{fontSize:17,...e.repeat_rule?{color:"#2f80ed"}:{}}}),label:"\uBC18\uBCF5",onClick:po||!f?void 0:P=>Vt(P),children:e.repeat_rule?Bl(e.repeat_rule):L(Or,{label:"\uC5C6\uC74C"})})}):null,!Wo&&e.repeat_rule?L(tt,{sx:at?void 0:ht(2),children:L(Be,{icon:L(Jw,{sx:{fontSize:17}}),label:"\uBC18\uBCF5 \uC885\uB8CC",onClick:po||!f?void 0:P=>Et(P),children:e.repeat_until?`${e.repeat_until}\uAE4C\uC9C0`:L(Or,{})})}):null,Xt&&Xt.total>0?L(tt,{sx:at?void 0:ht(2),children:L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uD655\uC778",children:Xt.canConfirm?Ze(tt,{sx:{display:"inline-flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[L(ci,{size:"small",variant:"contained",onClick:()=>Ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",backgroundImage:`linear-gradient(to right, #1a5fc4 ${na*100}%, transparent ${na*100}%)`,boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}),Ze(tt,{component:"span",sx:{fontSize:14,color:"text.secondary",whiteSpace:"nowrap"},children:[gc,"\uCD08 \uB4A4 \uC790\uB3D9 \uD655\uC778"]})]}):Ze(ci,{size:"small",variant:"outlined",color:"inherit",startIcon:Xt.myTime?L(yu,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:P=>Ve({anchorEl:P.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:[Xt.count," / ",Xt.total]})})}):null,Ee&&Ut?L(tt,{sx:ht(2),children:L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uD655\uC778",children:L(tt,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,minWidth:0},children:Ut.canAck?L(ci,{size:"small",variant:"contained",onClick:()=>Ne?.(e.seq),sx:{py:.1,px:1.25,minWidth:0,color:"#fff",bgcolor:"#2f80ed",boxShadow:"none","&:hover":{bgcolor:"#1e6fd9",boxShadow:"none"}},children:"\uD655\uC778"}):L(ci,{size:"small",variant:"outlined",color:"inherit",startIcon:Ut.acked?L(yu,{sx:{fontSize:"16px !important",color:"#2f80ed"}}):null,onClick:P=>Ve({anchorEl:P.currentTarget,open:!0}),sx:{py:.1,px:1.25,minWidth:0,fontSize:13,color:"text.primary",borderColor:"#d5d8dc",bgcolor:"#fff",whiteSpace:"nowrap"},children:Ut.total>0&&Ut.count>=Ut.total?"\uC644\uB8CC":Ze(ko,{children:[Ut.count,L(tt,{component:"span",sx:{mx:.4},children:"/"}),Ut.total]})})})})}):null,Ft&&!$o&&!at&&!Ee?Ze(ko,{children:[L(Be,{icon:L(Ww,{sx:{fontSize:17}}),label:"\uBAA9\uD45C",onClick:po?void 0:P=>tn(P),sx:ht(1),children:(e.sprint_seq??0)>0?We.find(P=>P.seq===e.sprint_seq)?.name??"\uC0AD\uC81C\uB41C \uC2A4\uD504\uB9B0\uD2B8":L(Or,{label:"\uBBF8\uBC30\uC815"})}),L(Be,{icon:L(Vw,{sx:{fontSize:17}}),label:"\uD3EC\uC778\uD2B8",sx:ht(2),children:L(tr,{value:(e.story_points??0)>0?String(e.story_points):"",placeholder:"\uBBF8\uCD94\uC815",readOnly:po,onCommit:P=>ie?.(e.seq,Number(P.replace(/[^0-9.]/g,""))||0)})})]}):null,at||he?null:L(tt,{sx:[ne?{gridColumn:"1 / -1"}:ht(1),fe??null],children:L(Be,{icon:L(Kw,{sx:{fontSize:17}}),label:"\uB77C\uBCA8",onClick:nn?void 0:P=>gr(P),children:(e.label_keys??[]).length>0?L(yr,{labelKeys:e.label_keys??[],labelOptions:o}):L(Or,{})})})]}),afterProject:at?null:ra,trailing:Ze(ko,{children:[Wo?L(hs,{values:{repro:e.bug_repro??"",device:e.bug_device??"",where:e.bug_where??"",version:e.bug_version??"",resolution:e.resolution??""},readOnly:po,showResolution:!!e.completed,onChangeRepro:P=>ae?.(e.seq,"bug_repro",P),onChangeDevice:P=>ae?.(e.seq,"bug_device",P),onChangeWhere:P=>ae?.(e.seq,"bug_where",P),onChangeVersion:P=>ae?.(e.seq,"bug_version",P),onChangeResolution:P=>Qe?.(e.seq,P)}):null,at?ra:null,e.completed?Ze(ko,{children:[L(Be,{icon:L(Su,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC790",sx:[qn(10),fe??null,...at?[]:[ht(1)]],children:e.completed_by?Ze(ko,{children:[L(go,{names:[e.completed_by],size:20,avatarSrcByName:n}),e.completed_by]}):L(Or,{})}),L(Be,{icon:L(Wg,{sx:{fontSize:17}}),label:"\uC644\uB8CC\uC77C\uC2DC",sx:[qn(12),fe??null,...at?[]:[ht(2)]],children:e.completed_time?Po(e.completed_time):L(Or,{})})]}):null]})}),Ze(tt,{sx:{display:"none",[gn]:{display:"block",mt:1.5,mb:0}},children:[L(mi,{sx:{borderColor:"#e6e6e3"}}),L($g,{onClick:()=>X(P=>!P),sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:.5,pt:1.25,pb:1.25,fontSize:13.5,bgcolor:"#f4f4f2",color:"#37352f","&:active":{opacity:.6}},children:H?Ze(ko,{children:["\uC811\uAE30 ",L(Nw,{sx:{fontSize:18}})]}):Ze(ko,{children:["\uC815\uBCF4 \uB354\uBCF4\uAE30 ",L(Fw,{sx:{fontSize:18}})]})})]}),Ze(tt,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3",[gn]:{mt:0,mb:1.25}}}),L(jo,{icon:L(jw,{sx:{fontSize:18,display:"block"}}),title:"\uB0B4\uC6A9",titleExtra:L(Bs,{content:e.content??"",templates:y??[],onApply:P=>E?.(e.seq,P),onSave:T,onRemove:I,readOnly:po||!y}),children:L(tt,{sx:{userSelect:"text"},children:A?L(tt,{sx:{minHeight:180,display:"flex",alignItems:"center",justifyContent:"center"},children:L(Bi,{})}):L(ys,{syncKey:e.seq,value:e.content??"",readOnly:po,viewFirst:!0,onTranslate:Mo?br.openDialog:void 0,onChange:P=>E(e.seq,P)})})}),e.is_bug?null:Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(jo,{icon:L(Xw,{sx:{fontSize:18,display:"block"}}),title:"\uBE44\uACE0",children:L(tt,{sx:{userSelect:"text"},children:L(zg,{value:e.note,readOnly:Ur,onCommit:P=>S(e.seq,P),onDraftChange:h?P=>h(e.seq,P):void 0})})})]}),at?null:Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(_s,{taskSeq:e.seq,checklist:e.checklist??[],removeLocked:Ur,onAdd:q,onToggle:C,confirmOnToggle:!0,onRemove:k,onUpdate:x,onReorder:B,onConvertToTask:w,onOpenLinkedTask:_,resolveLinkedTask:M,myAccountSeq:re,linkCandidates:$,linkBaseTask:e,onLinkExistingTask:N})]}),$&&!at&&!Ee&&(!nn||Lg(e,$))?Ze(ko,{children:[L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Fg,{task:e,tasks:$,readOnly:nn,onOpenTask:Y,onLink:te,onUnlink:ce,onCreateFollowUp:ue})]}):null,L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Rs,{taskSeq:e.seq,attachments:e.attachments??[],removeLocked:Ee?Ur:po,onAdd:j,onRemove:O,onPreview:oe?(P,At)=>oe({...P,taskSeq:e.seq},At?.map(yn=>({...yn,taskSeq:e.seq}))):void 0,onDownload:F?P=>F({...P,taskSeq:e.seq}):void 0})]}),L(mi,{sx:{my:1.5,borderColor:"#e6e6e3"}}),L(Bg,{taskSeq:e.seq,comments:e.comments??[],currentUserName:de,myAccountSeq:re,avatarSrcByName:n,onUpdate:W,onRemove:V,onToggleReaction:U,onPreview:oe?(P,At)=>oe({...P,taskSeq:e.seq},At?.map(yn=>({...yn,taskSeq:e.seq}))):void 0,onDownload:F?P=>F({...P,taskSeq:e.seq}):void 0})]}),Mo?L(qg,{controller:br,title:e.title,html:e.content??""}):null,L(hi,{anchorEl:De,value:e.status,options:Ee?fa:Wo?Yr:ga,onSelect:P=>r(e.seq,P),onClose:()=>rt(null)}),L(ku,{transitionDuration:0,anchorEl:Dt,open:!!Dt,onClose:()=>Vt(null),children:[{value:"",label:"\uC5C6\uC74C"},...ua].map(P=>L(Tu,{selected:(e.repeat_rule??"")===P.value,onClick:()=>{Vt(null),Hc(e,P.value,f)},sx:{fontSize:14,minWidth:140},children:P.label},P.value||"none"))}),L(tD,{anchorEl:to,open:!!to,onClose:()=>Et(null),selectedDate:e.repeat_until?new Date(`${e.repeat_until}T00:00:00`):new Date,onDateChange:P=>{Et(null),Wc(e,P,f)}}),L(ku,{transitionDuration:0,anchorEl:it,open:!!it,onClose:()=>zt(null),children:[{key:"involved",label:"\uBE44\uACF5\uAC1C",icon:L(Vg,{sx:{fontSize:17,color:"#57564f"}}),selected:ln(e)==="involved",onPick:()=>u?.(e.seq,"involved",0)},{key:"all",label:"\uC804\uCCB4\uACF5\uAC1C",icon:L(Ug,{sx:{fontSize:17,color:"#2f80ed"}}),selected:ln(e)==="all",onPick:()=>u?.(e.seq,"all",0)},...g.map(P=>({key:`group-${P.seq}`,label:`\uBD80\uC11C\uACF5\uAC1C \xB7 ${P.name}`,icon:L(Gg,{sx:{fontSize:17,color:"#d9730d"}}),selected:ln(e)==="group"&&(e.visibility_group_seq??0)===P.seq,onPick:()=>u?.(e.seq,"group",P.seq)}))].map(P=>Ze(Tu,{selected:P.selected,onClick:()=>{P.onPick(),zt(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[P.icon,P.label,P.selected?L(Hg,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},P.key))}),L(ku,{transitionDuration:0,anchorEl:Wn,open:!!Wn,onClose:()=>tn(null),children:[{seq:0,label:"\uBBF8\uBC30\uC815"},...We.filter(P=>`custom-${P.group_seq}`===String(e.tab_key??"")).map(P=>({seq:P.seq,label:Ko(P)}))].map(P=>Ze(Tu,{onClick:()=>{$t?.(e.seq,P.seq),tn(null)},sx:{fontSize:14,minWidth:170,gap:1},children:[P.label,(e.sprint_seq??0)===P.seq?L(Hg,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},P.seq))}),L(ts,{anchorEl:Wt?.anchorEl??null,open:!!Wt?.open,acks:e.acks??[],total:Ut?.total??Xt?.total??0,pendingNames:Ut?.pendingNames??Xt?.pendingNames??[],avatarSrcByName:n,onRequestConfirm:G&&(Ut?Ut.count<Ut.total:Xt&&Xt.count<Xt.total)?()=>{G(e.seq),Ve(P=>P?{...P,open:!1}:null)}:void 0,onClose:()=>Ve(P=>P?{...P,open:!1}:null)}),L(Ps,{anchorEl:fr,selectedKeys:e.label_keys??[],labelOptions:o,onToggle:P=>i(e.seq,Ml(e.label_keys??[],P)),onAddLabel:a,onClose:()=>gr(null)}),L(Ir,{anchorEl:wt,value:e.icon??"",color:e.icon_color??"",onSelect:P=>{ct(e.seq,P),Q(null)},onSelectColor:Ge?P=>Ge(e.seq,P):void 0,onClose:()=>Q(null)}),L(eD,{open:!!ui,anchorEl:ui,title:ea?"\uC774 \uC5C5\uBB34\uB97C \uAC00\uC838\uC640 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC5C5\uBB34\uC758 \uCC45\uC784\uC790\uB97C \uB9E1\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uAC00\uC838\uAC00\uAE30",onCancel:()=>di(null),onConfirm:()=>{Ho?.(e.seq),di(null)}})]})}import{ConfirmActionPopper as fD}from"@ehfuse/mui-confirm-action";import{Fragment as gD,jsx as ot,jsxs as $i}from"react/jsx-runtime";function GU(){let e=new Date,t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}`}function KU({open:e,task:t,onClose:o,onAddComment:n,onSaveFields:r,presentation:i="auto",myAccountSeq:a=0,onToggleCompleted:l,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c,activityItems:p,activityLoading:d,onLoadActivity:u,onPrint:f,onDelete:g,canDelete:v,...D}){let b=Ue(),{form:S,baseTask:h,task:E,hasPendingChanges:y,stagedBodyProps:T,changeTitle:I,changeIcon:A,changeIconColor:q}=Vc({open:e,task:t,isMobile:b,bodyProps:D,onSaveFields:r,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c}),C=Ua({taskSeq:E?.seq??0,items:p,loading:d,onLoad:u}),[k,x]=Yg(null),[B,w]=Yg(null),{editPolicy:_,shareText:N}=me(),M=!!g&&(v??(h?!jr(h,a,_,!(a>0&&(h.author_account_seq??0)===a)):!1)),$=nD(null);if(oD(()=>{$.current?.scrollTo({top:0})},[t?.seq]),!h||!E)return null;let Y=E,te=b||i==="dialog",ce=ot(Kg,{...T,headerless:te,task:Y,myAccountSeq:a,onChangeTitle:I,onToggleCompleted:l,onChangeIcon:A,onChangeIconColor:q,showTitle:b||i==="dialog"}),ue=ot(vg,{onSubmit:(j,O)=>n(Y.seq,j,O)},Y.seq);return te?$i(gD,{children:[ot(pD,{open:e,onClose:o,backdropClick:!y,locale:"ko",collapsibleTitle:!0,fontScale:{enabled:!0,default:1.1,min:.6},title:Y.is_notice?"\uACF5\uC9C0\uC0AC\uD56D":Y.is_event?"\uC77C\uC815":Y.is_bug?"\uC624\uB958":"\uC5C5\uBB34",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1},custom:[...b?[{raw:!0,icon:ot(rD,{variant:"contained",size:"small",disableElevation:!0,disabled:!y,onClick:y?()=>{S.submit()}:void 0,sx:{ml:1.5,height:32,minWidth:64,px:1.75,py:0,borderRadius:1,fontSize:14,fontWeight:600,bgcolor:"#2f80ed","&:hover":{bgcolor:"#2f80ed"},"&.Mui-disabled":{bgcolor:"#f2f2f0",color:"#c9c8c5"}},children:"\uC800\uC7A5\uD558\uAE30"})}]:[],{raw:!0,icon:ot(aD,{size:"small","aria-label":"\uB354\uBCF4\uAE30",onClick:j=>x(j.currentTarget),children:ot(sD,{sx:{color:"#6b7280"}})})}]},fullScreen:b,maxWidth:b?void 0:"md",width:b?void 0:720,mobilePresentation:b?"slide":void 0,tabs:{visible:!1},contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,contentBottomPadding:0,scrollPastLastSection:!1,overlayScrollbar:{enabled:!0,contentStyle:{minWidth:0}},actions:{visible:!0,showCancelButton:!1,left:ue},sx:{DialogContent:{borderBottom:"none"}},dialogActionSx:{padding:"0 !important","@media (max-width:1023.95px)":{padding:"0 !important"},borderTop:"1px solid #37352f","& .left-actions":{flex:1,width:"100%",minWidth:0,"& > *":{flex:1,minWidth:0}},"& .right-actions":{display:"none"}},sections:[{id:"task-detail",title:"",showTitle:!1,children:ot(Fs,{sx:{userSelect:"none",width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:ce})}]},h.seq),$i(lD,{open:!!k,anchorEl:k,onClose:()=>x(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{zIndex:1500},children:[u?$i(vu,{onClick:()=>{x(null),C.openDialog()},children:[ot(Cu,{children:ot(uD,{fontSize:"small"})}),ot(Bu,{children:"\uD65C\uB3D9"})]}):null,$i(vu,{onClick:()=>{x(null),Ai(Y,!0,N)},children:[ot(Cu,{children:ot(mD,{fontSize:"small"})}),ot(Bu,{children:"\uACF5\uC720\uD558\uAE30"})]}),M?$i(vu,{onClick:j=>{let O=k??j.currentTarget;x(null),w(O)},sx:{color:"#e5484d"},children:[ot(Cu,{children:ot(cD,{fontSize:"small",sx:{color:"#e5484d"}})}),ot(Bu,{children:"\uC0AD\uC81C"})]}):null]}),ot(fD,{open:!!B,anchorEl:B,title:"\uC774 \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C",onCancel:()=>w(null),onConfirm:()=>{w(null),g?.(Y)}}),ot(Ls,{controller:C})]}):ot(iD,{anchor:"right",open:e,onClose:o,"aria-label":"\uC5C5\uBB34 \uC0C1\uC138",disableAutoFocus:!0,disableEnforceFocus:!0,sx:{zIndex:j=>j.zIndex.modal},slotProps:{paper:{sx:{width:720,maxWidth:"100vw"}}},children:$i(Fs,{sx:{display:"flex",flexDirection:"column",height:"100%",userSelect:"none"},children:[ot(Dg,{task:Y,myAccountSeq:a,onToggleCompleted:l,onChangeTitle:s,onChangeIcon:m,onChangeIconColor:c,onClose:o,activityItems:p,activityLoading:d,onLoadActivity:u,onPrint:f,onDelete:g,canDelete:v}),ot(jg,{sx:{borderColor:"#e6e6e3"}}),ot(Fs,{sx:{flex:1,minHeight:0},children:ot(dD,{ref:$,style:{height:"100%"},contentStyle:{minWidth:0},thumb:{width:6},children:ce})}),ot(jg,{sx:{borderColor:"#37352f"}}),ot(Fs,{sx:{flexShrink:0},children:ue})]})})}import{Box as To,Button as Du,IconButton as ex}from"@mui/material";import{FormDialog as tx}from"@ehfuse/mui-form-dialog";import _D from"@mui/icons-material/Add";import wD from"@mui/icons-material/DirectionsRunOutlined";import DD from"@mui/icons-material/EditOutlined";import{ClearTextField as ox,DateTextField as nx,LabelSelect as rx}from"@ehfuse/mui-form-controls";import{Box as ar,Button as bD,FormControlLabel as Iu,Radio as _u,RadioGroup as hD}from"@mui/material";import{FormDialog as kD}from"@ehfuse/mui-form-dialog";import{LabelSelect as TD}from"@ehfuse/mui-form-controls";import yD from"@ehfuse/overlay-scrollbar";import{useGlobalForm as xD}from"@ehfuse/forma";function Xg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}){let a=n.filter(c=>c.seq!==t?.seq&&c.group_seq===(t?.group_seq??0)&&c.status!=="closed"),l=o.length>0,s=xD({formId:we("taskbox-sprint-close-form"),initialValues:{mode:"backlog",moveToSeq:"0"},onValidate:c=>!(l&&c.mode==="move"&&!(Number(c.moveToSeq)>0)),onSubmit:c=>(i({mode:l?c.mode:"keep",moveToSprintSeq:c.mode==="move"&&Number(c.moveToSeq)||0,taskSeqs:o.map(p=>p.seq)}),!0)}),m={form:Zt({modalIdPrefix:"taskbox-sprint-close-dialog",open:e,onClose:r,onOpen:()=>s.setFormValues({mode:a.length>0?"move":"backlog",moveToSeq:String(a[0]?.seq??0)})})};return{form:s,modals:m,candidates:a,hasRemaining:l}}import{Fragment as SD,jsx as lo,jsxs as Hi}from"react/jsx-runtime";function Qg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}){let{form:a,modals:l,candidates:s,hasRemaining:m}=Xg({open:e,sprint:t,remainingTasks:o,sprints:n,onClose:r,onConfirm:i}),c=a.useFormValue("mode")??"backlog",p=Number(a.useFormValue("moveToSeq"))||0;return lo(kD,{open:l.form.isOpen,onClose:l.form.close,maxWidth:"sm",title:"\uBAA9\uD45C \uB9C8\uAC10",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-close",tabs:{visible:!1},actions:{showCancelButton:!0,right:lo(bD,{variant:"contained",onClick:()=>{a.submit()},disabled:m&&c==="move"&&!(p>0),children:"\uB9C8\uAC10"})},sections:[{id:"sprint-close",title:"",showTitle:!1,children:Hi(ar,{sx:{display:"flex",flexDirection:"column",gap:2},children:[Hi(ar,{sx:{fontSize:18,color:"#37352f"},children:[lo(ar,{component:"span",sx:{fontWeight:600},children:t?.name??""})," \uBAA9\uD45C\uB97C \uB9C8\uAC10\uD569\uB2C8\uB2E4."]}),m?Hi(SD,{children:[Hi(ar,{sx:{fontSize:15,color:"#6f6f6c"},children:["\uB05D\uB098\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uAC00"," ",o.length,"\uAC74 \uC788\uC2B5\uB2C8\uB2E4. \uC5B4\uB5BB\uAC8C \uD560\uAE4C\uC694?"]}),lo(ar,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:lo(yD,{style:{maxHeight:220},thumb:{width:6},children:o.map(d=>Hi(ar,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,borderBottom:"1px solid #f2f2f0","&:last-of-type":{borderBottom:"none"}},children:[lo(ar,{sx:{flex:1,minWidth:0,fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.title}),lo($e,{option:Mt(d)})]},d.seq))})}),Hi(hD,{value:c,onChange:(d,u)=>a.setFormValue("mode",u),children:[s.length>0?lo(Iu,{value:"move",control:lo(_u,{size:"small"}),label:"\uB2E4\uC74C \uBAA9\uD45C\uB85C \uC774\uC6D4",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}}):null,c==="move"&&s.length>0?lo(ar,{sx:{pl:4,pb:1},children:lo(TD,{form:a,name:"moveToSeq",size:"small",label:"",fullWidth:!0,options:s.map(d=>({value:String(d.seq),label:d.name}))})}):null,lo(Iu,{value:"backlog",control:lo(_u,{size:"small"}),label:"\uBBF8\uBC30\uC815(\uBC31\uB85C\uADF8)\uC73C\uB85C \uBE7C\uAE30",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}}),lo(Iu,{value:"keep",control:lo(_u,{size:"small"}),label:"\uC774 \uBAA9\uD45C\uC5D0 \uADF8\uB300\uB85C \uB450\uAE30",sx:{"& .MuiFormControlLabel-label":{fontSize:16}}})]})]}):lo(ar,{sx:{fontSize:15,color:"#6f6f6c"},children:"\uB0A8\uC740 \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774\uB300\uB85C \uB9C8\uAC10\uD558\uBA74 \uBAA9\uD45C\uAC00 \uC885\uB8CC\uB429\uB2C8\uB2E4."})]})}]})}var wu="custom-";function CD(e){return e.startsWith(wu)}function sG(e){return e>0?`${wu}${e}`:""}function hn(e){if(!CD(e))return 0;let t=Number(e.slice(wu.length));return Number.isInteger(t)&&t>0?t:0}import{useState as BD}from"react";import{useGlobalForm as vD,useModal as ID}from"@ehfuse/forma";import{ErrorAlert as Zg}from"@ehfuse/alerts";var $s={editingSeq:0,name:"",goal:"",start_date:"",end_date:""};function Jg({open:e,customTabs:t,onClose:o,onCreate:n,onUpdate:r,onChangeStatus:i,tasks:a=[],onCloseSprint:l,onRemove:s}){let m=t.filter(S=>S.useSprints&&!S.archived),[c,p]=BD(null),d=c?a.filter(S=>(S.sprint_seq??0)===c.seq&&!S.completed):[],u=vD({formId:we("taskbox-sprint-form"),initialValues:{groupKey:"",...$s},onValidate:S=>hn(S.groupKey)?String(S.name??"").trim()?!0:(Zg("\uBAA9\uD45C \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."),!1):(Zg("\uBAA9\uD45C\uB97C \uB9CC\uB4E4 \uD504\uB85C\uC81D\uD2B8\uB97C \uC120\uD0DD\uD558\uC138\uC694."),!1),onSubmit:async S=>{let h={name:String(S.name).trim(),goal:String(S.goal??"").trim(),start_date:S.start_date??"",end_date:S.end_date??""};if(S.editingSeq>0)return r(S.editingSeq,h),f.form.close(),!0;let E=await n({group_seq:hn(S.groupKey),...h});return E&&f.form.close(),E}}),f={manage:Zt({modalIdPrefix:"taskbox-sprint-manage-dialog",open:e,onClose:o,onOpen:()=>u.setFormValues({groupKey:m.length===1?m[0].key:"",...$s})}),form:ID({modalId:we("taskbox-sprint-form-dialog"),onClose:()=>u.setFormValues($s)})};return{form:u,modals:f,sprintTabs:m,closingSprint:c,remainingTasks:d,openCreateForm:()=>{u.setFormValues($s),f.form.open()},openEditForm:S=>{u.setFormValues({editingSeq:S.seq,groupKey:`custom-${S.group_seq}`,name:S.name,goal:S.goal,start_date:S.start_date,end_date:S.end_date}),f.form.open()},changeStatus:(S,h)=>{if(h==="closed"&&l){p(S);return}i(S.seq,h)},cancelCloseSprint:()=>p(null),confirmCloseSprint:S=>{c&&l?.(c.seq,S),p(null)},removeSprint:s}}import{Fragment as ax,jsx as Je,jsxs as qr}from"react/jsx-runtime";var ED=[{value:"planning",label:"\uACC4\uD68D\uC911"},{value:"active",label:"\uC9C4\uD589\uC911"},{value:"closed",label:"\uC885\uB8CC"}];function ix(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?e.slice(5).replace("-","."):"-"}function IG({open:e,customTabs:t,sprints:o,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,tasks:l=[],onCloseSprint:s,onRemove:m}){let c=Jg({open:e,customTabs:t,onClose:n,onCreate:r,onUpdate:i,onChangeStatus:a,tasks:l,onCloseSprint:s,onRemove:m}),{form:p,modals:d,sprintTabs:u,closingSprint:f,remainingTasks:g}=c,v=Number(p.useFormValue("editingSeq"))||0,D=p.isSubmitting,b=new Map(t.map(h=>[hn(h.key),h.label])),S=Je(To,{children:u.length===0?Je(To,{sx:{py:2,fontSize:14,color:"#787774"},children:'\uBAA9\uD45C\uB97C \uC0AC\uC6A9\uD558\uB294 \uD504\uB85C\uC81D\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8 \uC218\uC815\uC5D0\uC11C "\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8) \uC0AC\uC6A9"\uC744 \uBA3C\uC800 \uCF1C\uC138\uC694.'}):Je(ax,{children:Je(To,{children:o.length===0?qr(To,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[Je(wD,{sx:{fontSize:48,color:"#d9d9d6"}}),Je(To,{sx:{fontSize:13.5},children:"\uB4F1\uB85D\uB41C \uBAA9\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):o.map(h=>qr(To,{sx:{display:"flex",flexDirection:"column",gap:1,"&:not(:last-of-type)::after":{content:'""',display:"block",my:1.75,borderBottom:"1px solid #f0efed"}},children:[qr(To,{sx:{minWidth:0},children:[qr(To,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Je(To,{component:"span",sx:{fontSize:18,fontWeight:600,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:h.name}),Je(To,{component:"span",sx:{flexShrink:0,px:1,py:.25,borderRadius:.75,bgcolor:"#f1f5f9",color:"#64748b",fontSize:13,fontWeight:500},children:b.get(h.group_seq)??"\uC0AD\uC81C\uB41C \uD504\uB85C\uC81D\uD2B8"}),qr(To,{component:"span",sx:{flexShrink:0,fontSize:14,color:"#57564f"},children:[ix(h.start_date)," ~"," ",ix(h.end_date)]})]}),h.goal?Je(To,{sx:{mt:.5,fontSize:14,color:"#787774",lineHeight:1.5},children:h.goal}):null]}),qr(To,{sx:{display:"flex",alignItems:"center",gap:.5},children:[Je(rx,{label:"\uC0C1\uD0DC",showLabel:!1,size:"small",value:h.status,options:ED.map(E=>({value:E.value,label:E.label})),onChange:E=>c.changeStatus(h,String(E.target.value)),sx:{width:104,flexShrink:0}}),Je(ex,{"aria-label":"\uBAA9\uD45C \uC218\uC815",onClick:()=>c.openEditForm(h),sx:{color:"#9a9a97","&:hover":{color:"#2563eb"}},children:Je(DD,{sx:{fontSize:18}})}),Je(ex,{"aria-label":"\uBAA9\uD45C \uC0AD\uC81C",onClick:()=>c.removeSprint(h.seq),sx:{color:"#9a9a97","&:hover":{color:"#e5484d"}},children:Je(Gt,{style:{width:16,height:16}})})]})]},h.seq))})})});return qr(ax,{children:[Je(tx,{open:d.manage.isOpen,onClose:d.manage.close,maxWidth:"sm",title:"\uBAA9\uD45C \uAD00\uB9AC",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-manage",sections:[{id:"sprint-manage",showTitle:!1,children:S}],sectionContentPaddingTop:0,actions:{showCancelButton:!0,left:u.length>0?Je(Du,{startIcon:Je(_D,{}),onClick:c.openCreateForm,sx:{color:"#2563eb"},children:"\uC0C8 \uBAA9\uD45C"}):void 0,right:Je(Du,{variant:"contained",onClick:d.manage.close,children:"\uD655\uC778"})}}),Je(Qg,{open:f!==null,sprint:f,remainingTasks:g,sprints:o,onClose:c.cancelCloseSprint,onConfirm:c.confirmCloseSprint}),Je(tx,{open:d.form.isOpen,onClose:d.form.close,maxWidth:"sm",title:v>0?"\uBAA9\uD45C \uC218\uC815":"\uC0C8 \uBAA9\uD45C",locale:"ko",backdropClick:!1,tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-form",sections:[{id:"sprint-form",title:"",showTitle:!1,children:Je(To,{sx:{pt:1},children:qr(To,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:2.5,mt:1},children:[Je(rx,{form:p,name:"groupKey",label:"\uD504\uB85C\uC81D\uD2B8",size:"medium",options:u.map(h=>({value:h.key,label:h.label})),disabled:v>0}),Je(ox,{form:p,name:"name",label:"\uBAA9\uD45C \uC774\uB984",size:"medium",placeholder:"\uC608: 8\uC6D4 2\uC8FC\uCC28"}),Je(nx,{form:p,name:"start_date",size:"medium",label:"\uC2DC\uC791\uC77C"}),Je(nx,{form:p,name:"end_date",size:"medium",label:"\uC885\uB8CC\uC77C"}),Je(ox,{form:p,name:"goal",label:"\uC124\uBA85",size:"medium",placeholder:"\uC120\uD0DD \uC785\uB825",sx:{gridColumn:"1 / -1"}})]})})}],actions:{showCancelButton:!0,right:Je(Du,{variant:"contained",onClick:()=>{p.submit()},disabled:D,children:v>0?"\uC218\uC815":"\uBAA9\uD45C \uB9CC\uB4E4\uAE30"})}})]})}import{Box as Tt,Button as Ws,FormControlLabel as sx,Switch as cx}from"@mui/material";import{FormDialog as zD}from"@ehfuse/mui-form-dialog";import AD from"@mui/icons-material/LinkOutlined";import LD from"@mui/icons-material/LinkOffOutlined";import ND from"@mui/icons-material/SyncOutlined";import FD from"@mui/icons-material/ArrowForward";import{useRef as qD}from"react";import{useCallback as RD,useEffect as MD,useRef as Ya}from"react";import{useModal as PD}from"@ehfuse/forma";var Hs=[];function OD(){let e=Hs;if(Hs=[],e.length!==0){if(e.length===1){e[0].close();return}for(let t of e)window.dispatchEvent(new CustomEvent(`modal:close:${t.modalId}`));window.addEventListener("popstate",t=>t.stopImmediatePropagation(),{capture:!0,once:!0}),window.history.go(-e.length)}}function Xo({modalId:e,open:t,onClose:o,onOpen:n}){let r=Ya(n);r.current=n;let i=Ya(o);i.current=o;let a=Ya(t);a.current=t;let l=Ya(!1),s=PD({modalId:e,onClose:()=>{l.current=!1,a.current&&i.current()}}),m=Ya(s);m.current=s;let c=RD(()=>{l.current||!m.current.isOpen||(l.current=!0,m.current.close())},[]);return MD(()=>{if(t){r.current?.(),m.current.open();return}!m.current.isOpen||l.current||(l.current=!0,Hs.push({modalId:m.current.modalId,close:()=>m.current.close()}),Hs.length===1&&queueMicrotask(OD))},[t]),{...s,close:c}}function lx(e){let t=qD(e);t.current=e;let o={link:Xo({modalId:we("taskbox-calendar-link"),open:e.open,onClose:()=>t.current.onClose()})},{status:n}=e.googleApi,{calendarName:r}=me(),i=n.linked&&n.calendar_name||r||"\uC5C5\uBB34\uD568",a={connect:()=>t.current.googleApi.onConnect(),disconnect:()=>t.current.googleApi.onDisconnect(),toggleExport:l=>t.current.googleApi.onToggleExport(l),toggleImport:l=>t.current.googleApi.onToggleImport(l),resync:()=>t.current.googleApi.onResync?.()};return{modals:o,status:n,busy:!!e.googleApi.busy,canResync:!!e.googleApi.onResync,calendarName:i,actions:a}}import{Fragment as HD,jsx as je,jsxs as jt}from"react/jsx-runtime";function mx({from:e,to:t}){return jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[e,je(FD,{sx:{fontSize:16,color:"#787774"}}),t]})}function $D({size:e=28}){return jt(Tt,{component:"svg",viewBox:"0 0 48 48","aria-hidden":!0,sx:{width:e,height:e,flexShrink:0,mx:1},children:[je("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),je("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),je("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),je("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}function VG(e){let t=lx(e),{status:o,busy:n,calendarName:r,actions:i}=t,a=t.modals.link,l=jt(Tt,{sx:{display:"flex",flexDirection:"column",gap:"24px"},children:[jt(Tt,{sx:{bgcolor:"#f2f6fa",borderRadius:1,px:1.5,py:1.25,fontSize:15,lineHeight:1.8,color:"#37352f",display:"flex",flexDirection:"column",gap:.25,"& > div":{display:"flex",gap:1},"& > div::before":{content:'"\u2022"',flexShrink:0}},children:[je(Tt,{children:jt(Tt,{component:"span",children:[je("b",{children:"\uB0B4\uBCF4\uB0B4\uAE30"}),"\uB294 \uB0B4 \uC5C5\uBB34\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758"," ",jt("b",{children:['"',r,'"']})," \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uD569\uB2C8\uB2E4."]})}),je(Tt,{children:jt(Tt,{component:"span",children:[je("b",{children:"\uAC00\uC838\uC624\uAE30"}),"\uB294 \uAD6C\uAE00 \uAE30\uBCF8 \uCE98\uB9B0\uB354 \uC77C\uC815\uC744 \uC5C5\uBB34\uD568\uC5D0 \uBCF4\uC5EC\uC8FC\uACE0, \uC5C5\uBB34\uD568\uC5D0\uC11C \uADF8 \uC77C\uC815\uC744 \uACE0\uCE58\uAC70\uB098 \uC9C0\uC6B8 \uC218 \uC788\uC2B5\uB2C8\uB2E4."]})}),je(Tt,{children:jt(Tt,{component:"span",children:['"',r,'" \uCE98\uB9B0\uB354 \uC77C\uC815\uC740 \uC5C5\uBB34\uD568\uC5D0\uC11C \uC218\uC815\uD574\uC57C \uD569\uB2C8\uB2E4.']})})]}),o.configured?jt(Tt,{sx:{border:"1px solid #e6e6e3",borderRadius:1,pl:2,pr:3,py:1.75,display:"flex",flexDirection:"column",gap:1.25},children:[jt(Tt,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[je($D,{}),jt(Tt,{sx:{flex:1,minWidth:0},children:[je(Tt,{sx:{fontSize:18,color:"#111",fontWeight:700},children:"\uAD6C\uAE00 \uACC4\uC815 \uC5F0\uACB0"}),je(Tt,{sx:{fontSize:15,color:"#111",mt:.5,lineHeight:1.6},children:o.linked?jt(HD,{children:[jt(Tt,{component:"span",sx:{display:"block",fontWeight:600},children:[o.google_email||"\uAD6C\uAE00 \uACC4\uC815"," ","\uC5D0 \uC5F0\uACB0\uB428"]}),jt(Tt,{component:"span",sx:{display:"block"},children:['\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 "',r,'" \uCE98\uB9B0\uB354\uAC00 \uB9CC\uB4E4\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.']})]}):`\uAD6C\uAE00 \uACC4\uC815\uC744 \uC5F0\uACB0\uD558\uBA74 \uB0B4 \uC5C5\uBB34\uAC00 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC758 "${r}" \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uB429\uB2C8\uB2E4.`}),o.last_error?jt(Tt,{sx:{fontSize:13,color:"#c62828",mt:.5},children:["\uCD5C\uADFC \uC624\uB958: ",o.last_error]}):null]}),o.linked?je(Ws,{size:"small",variant:"outlined",color:"inherit",disabled:n,startIcon:je(LD,{sx:{fontSize:18}}),onClick:i.disconnect,sx:{flexShrink:0,whiteSpace:"nowrap",ml:2},children:"\uC5F0\uACB0 \uD574\uC81C"}):je(Ws,{size:"small",variant:"contained",disableElevation:!0,disabled:n,startIcon:je(AD,{sx:{fontSize:18}}),onClick:i.connect,sx:{flexShrink:0,whiteSpace:"nowrap",bgcolor:"#2563eb",ml:2},children:"\uC5F0\uACB0\uD558\uAE30"})]}),o.linked?jt(Tt,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",pl:4.5},children:[je(sx,{control:je(cx,{size:"small",checked:o.export_enabled,disabled:n,onChange:(s,m)=>i.toggleExport(m)}),label:jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:["\uB0B4\uBCF4\uB0B4\uAE30 (",je(mx,{from:"\uC5C5\uBB34\uD568",to:"\uAD6C\uAE00"}),")"]}),sx:{m:0,"& .MuiFormControlLabel-label":{fontSize:14,color:"#37352f"}}}),je(sx,{control:je(cx,{size:"small",checked:o.import_enabled,disabled:n,onChange:(s,m)=>i.toggleImport(m)}),label:jt(Tt,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:["\uAC00\uC838\uC624\uAE30 (",je(mx,{from:"\uAD6C\uAE00",to:"\uC5C5\uBB34\uD568"}),")"]}),sx:{m:0,"& .MuiFormControlLabel-label":{fontSize:14,color:"#37352f"}}}),t.canResync?je(Ws,{size:"small",color:"inherit",disabled:n||!o.export_enabled,startIcon:je(ND,{sx:{fontSize:18}}),onClick:i.resync,sx:{ml:"auto",whiteSpace:"nowrap"},children:"\uC804\uCCB4 \uB2E4\uC2DC \uB0B4\uBCF4\uB0B4\uAE30"}):null]}):null]}):je(Tt,{sx:{fontSize:14,color:"#8a6d1d",lineHeight:1.7},children:"\uC11C\uBC84\uC5D0 \uAD6C\uAE00 \uC5F0\uB3D9 \uC124\uC815(\uD074\uB77C\uC774\uC5B8\uD2B8 ID/\uBE44\uBC00\uBC88\uD638)\uC774 \uC5C6\uC5B4 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uAD00\uB9AC\uC790\uC5D0\uAC8C \uBB38\uC758\uD558\uC138\uC694."})]});return je(zD,{open:a.isOpen,onClose:a.close,width:680,title:"\uCE98\uB9B0\uB354 \uC5F0\uB3D9",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-calendar-link",sectionContentPaddingTop:0,sections:[{id:"calendar-link",showTitle:!1,children:l}],actions:{showCancelButton:!1,right:je(Ws,{variant:"contained",onClick:a.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{useState as Us}from"react";import GD from"@mui/icons-material/OpenInNewOutlined";import{Box as zr,Button as Eu,ButtonBase as KD,FormControlLabel as YD,Switch as jD}from"@mui/material";import{FormDialog as XD}from"@ehfuse/mui-form-dialog";import{ClearTextField as Ru}from"@ehfuse/mui-form-controls";import{DatePicker as fx,TimePicker as gx}from"@ehfuse/mui-datetime-picker";import xx from"@mui/icons-material/CalendarMonthOutlined";import bx from"@mui/icons-material/AccessTimeOutlined";import{useEffect as WD,useRef as Vs}from"react";import{useGlobalForm as VD}from"@ehfuse/forma";import{ErrorAlert as ux}from"@ehfuse/alerts";var UD={title:"",allDay:!0,startDate:"",endDate:"",startTime:"09:00",endTime:"10:00",location:"",description:""};function dx(e,t){let[o,n]=e.split(":").map(Number),r=((o*60+n+t)%1440+1440)%1440,i=a=>String(a).padStart(2,"0");return`${i(Math.floor(r/60))}:${i(r%60)}`}function px(e){let t=Vs(e);t.current=e;let o=Vs(null);e.event&&(o.current=e.event);let n=e.event??o.current,r=n?.editable===!1,i=Vs(r);i.current=r;let a=Vs(!!e.onDelete);e.open&&(a.current=!!e.onDelete);let l=VD({formId:we("taskbox-google-event-form"),initialValues:UD,onValidate:c=>t.current.busy||i.current?!1:c.title.trim()?c.startDate?!0:(ux("\uC2DC\uC791\uC77C\uC744 \uC120\uD0DD\uD558\uC138\uC694."),!1):(ux("\uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),!1),onSubmit:c=>{let p=c.endDate&&c.endDate>=c.startDate?c.endDate:c.startDate;return t.current.onSave({title:c.title.trim(),start_date:c.startDate,end_date:p,time:c.allDay?"":c.startTime,end_time:c.allDay?"":c.endTime,location:c.location.trim(),description:c.description.trim()}),!0}}),s={event:Xo({modalId:we("taskbox-google-event"),open:e.open,onClose:()=>t.current.onClose()})};WD(()=>{let c=e.event;if(!e.open||!c)return;let p=!!c.time;l.setFormValues({title:c.title==="(\uC81C\uBAA9 \uC5C6\uC74C)"?"":c.title,allDay:!p,startDate:c.start_date,endDate:c.end_date||c.start_date,startTime:p?c.time:"09:00",endTime:p?c.end_time||dx(c.time,60):"10:00",location:c.location??"",description:c.description??""})},[e.open,e.event]);let m={changeStartDate:c=>{let p=String(l.getFormValue("endDate")??"");l.setFormValue("startDate",c),(!p||p<c)&&l.setFormValue("endDate",c)},changeEndDate:c=>l.setFormValue("endDate",c),changeStartTime:c=>{let p=l.getFormValues();l.setFormValue("startTime",c),p.startDate===p.endDate&&p.endTime<=c&&l.setFormValue("endTime",dx(c,60))},changeEndTime:c=>l.setFormValue("endTime",c),changeAllDay:c=>l.setFormValue("allDay",c),remove:()=>t.current.onDelete?.()};return{form:l,modals:s,event:n,readOnly:r,busy:!!e.busy,canDelete:a.current,actions:m}}import{jsx as nt,jsxs as Wi}from"react/jsx-runtime";function hx(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e||"\uB0A0\uC9DC \uC120\uD0DD";let[t,o,n]=e.split("-").map(Number),r=["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"][new Date(t,o-1,n).getDay()];return`${t}.${String(o).padStart(2,"0")}.${String(n).padStart(2,"0")} (${r})`}function Mu(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(`${e}T00:00:00`):new Date}function kx(e){let t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function Tx(e){let t=/^(\d{2}):(\d{2})$/.exec(e);return t?{hour:t[1],minute:t[2]}:{hour:"09",minute:"00"}}function QD(e){switch(e){case"fromGmail":return"Gmail \uC5D0\uC11C \uC790\uB3D9 \uB4F1\uB85D\uB41C \uC77C\uC815(\uD56D\uACF5\uAD8C\xB7\uC608\uC57D \uB4F1)";case"birthday":return"\uC0DD\uC77C \uC77C\uC815";case"outOfOffice":return"\uBD80\uC7AC\uC911 \uC77C\uC815";case"focusTime":return"\uC9D1\uC911 \uC2DC\uAC04 \uC77C\uC815";case"workingLocation":return"\uADFC\uBB34 \uC704\uCE58 \uC77C\uC815";default:return"\uC774 \uC885\uB958\uC758 \uC77C\uC815"}}function ZD(e){let[t,o,n]=e.split("-").map(Number);window.open(`https://calendar.google.com/calendar/r/day/${t}/${o}/${n}`,"_blank")}function Gs({icon:e,label:t,placeholder:o,disabled:n,onClick:r}){return Wi(KD,{disabled:n,onClick:i=>r(i.currentTarget),sx:{display:"flex",alignItems:"center",gap:.75,px:1.25,py:.9,borderRadius:1,border:"1px solid #d9d9d6",bgcolor:n?"#f7f7f5":"#fff",color:t?"#37352f":"#9b9a97",fontSize:15,fontWeight:500,minWidth:0,whiteSpace:"nowrap","&:hover":{bgcolor:"#f7f7f5"},"&.Mui-disabled":{color:"#b9b8b4"}},children:[e,t||o]})}function cK(e){let t=Ue(),o=px(e),{form:n,event:r,readOnly:i,busy:a,actions:l}=o,s=o.modals.event,m=!!n.useValue("allDay"),c=String(n.useValue("startDate")??""),p=String(n.useValue("endDate")??""),d=String(n.useValue("startTime")??""),u=String(n.useValue("endTime")??""),[f,g]=Us(null),[v,D]=Us(null),[b,S]=Us(null),[h,E]=Us(null),y=r?Wi(zr,{sx:{display:"flex",flexDirection:"column",gap:2.25,pt:.5},children:[nt(zr,{sx:{bgcolor:i?"#fff4e5":"#f2f6fa",borderRadius:1,px:1.5,py:1,fontSize:14.5,lineHeight:1.7,color:"#37352f"},children:i?`${QD(r.event_type)}\uC740 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C\uB9CC \uC218\uC815\xB7\uC0AD\uC81C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`:`${r.calendar||"\uAD6C\uAE00 \uCE98\uB9B0\uB354"} \uC758 \uC77C\uC815\uC785\uB2C8\uB2E4. \uC800\uC7A5\uD558\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uBC14\uB85C \uBC18\uC601\uB429\uB2C8\uB2E4.${r.recurring?" \uBC18\uBCF5 \uC77C\uC815\uC774\uB77C \uC774 \uD68C\uCC28\uB9CC \uBC14\uB01D\uB2C8\uB2E4.":""}`}),nt(Ru,{label:"\uC81C\uBAA9",name:"title",form:n,disabled:i,onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),n.submit())},fullWidth:!0,autoFocus:!t&&!i}),nt(YD,{control:nt(jD,{checked:m,disabled:i,onChange:(T,I)=>l.changeAllDay(I),size:"small"}),label:"\uC885\uC77C",sx:{ml:0,"& .MuiFormControlLabel-label":{fontSize:15,color:"#37352f"}}}),Wi(zr,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[Wi(zr,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[nt(zr,{sx:{width:44,fontSize:14.5,color:"#57564f",flexShrink:0},children:"\uC2DC\uC791"}),nt(Gs,{icon:nt(xx,{sx:{fontSize:18,color:"#787774"}}),label:hx(c),placeholder:"\uB0A0\uC9DC \uC120\uD0DD",disabled:i,onClick:g}),m?null:nt(Gs,{icon:nt(bx,{sx:{fontSize:18,color:"#787774"}}),label:d,placeholder:"\uC2DC\uAC01",disabled:i,onClick:S})]}),Wi(zr,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[nt(zr,{sx:{width:44,fontSize:14.5,color:"#57564f",flexShrink:0},children:"\uC885\uB8CC"}),nt(Gs,{icon:nt(xx,{sx:{fontSize:18,color:"#787774"}}),label:hx(p),placeholder:"\uB0A0\uC9DC \uC120\uD0DD",disabled:i,onClick:D}),m?null:nt(Gs,{icon:nt(bx,{sx:{fontSize:18,color:"#787774"}}),label:u,placeholder:"\uC2DC\uAC01",disabled:i,onClick:E})]})]}),nt(Ru,{label:"\uC7A5\uC18C",name:"location",form:n,disabled:i,fullWidth:!0}),nt(Ru,{label:"\uC124\uBA85",name:"description",form:n,disabled:i,fullWidth:!0,multiline:!0,minRows:3,maxRows:8}),nt(fx,{anchorEl:f,open:!!f,onClose:()=>g(null),selectedDate:Mu(c),onDateChange:T=>{l.changeStartDate(kx(T)),g(null)},centered:t,locale:"ko"}),nt(fx,{anchorEl:v,open:!!v,onClose:()=>D(null),selectedDate:Mu(p||c),minDate:c?Mu(c):void 0,onDateChange:T=>{l.changeEndDate(kx(T)),D(null)},centered:t,locale:"ko"}),nt(gx,{anchorEl:b,open:!!b,onClose:()=>S(null),value:Tx(d),format:"HH:mm",minuteStep:5,autoApply:!0,centered:t,locale:"ko",onChange:(T,I)=>{l.changeStartTime(`${T}:${I}`),S(null)}}),nt(gx,{anchorEl:h,open:!!h,onClose:()=>E(null),value:Tx(u),format:"HH:mm",minuteStep:5,autoApply:!0,centered:t,locale:"ko",onChange:(T,I)=>{l.changeEndTime(`${T}:${I}`),E(null)}})]}):null;return nt(XD,{open:s.isOpen,onClose:s.close,width:520,title:"\uAD6C\uAE00 \uC77C\uC815",locale:"ko",tabs:{visible:!1},titleIcons:{delete:{visible:!i&&o.canDelete,confirmConfig:{title:r?.recurring?"\uC774 \uD68C\uCC28\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?":"\uC774 \uC77C\uC815\uC744 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",confirmText:"\uC0AD\uC81C"}}},onDelete:l.remove,fontScale:{enabled:!0},fontScaleKey:"taskbox-google-event",sectionContentPaddingTop:0,sections:[{id:"google-event",showTitle:!1,children:y}],actions:{showCancelButton:!i,right:i?Wi(zr,{sx:{display:"flex",gap:"1rem",alignItems:"center"},children:[nt(Eu,{variant:"outlined",startIcon:nt(GD,{}),onClick:()=>r&&ZD(r.start_date),children:"\uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC5F4\uAE30"}),nt(Eu,{variant:"contained",onClick:s.close,sx:{minWidth:72},children:"\uB2EB\uAE30"})]}):nt(Eu,{variant:"contained",onClick:()=>{n.submit()},disabled:a,children:"\uC800\uC7A5"})}})}import{useMemo as Cx,useState as nE}from"react";import{Box as ja,Button as rE,Typography as iE}from"@mui/material";import{FormDialog as aE}from"@ehfuse/mui-form-dialog";import{SearchTextField as lE}from"@ehfuse/mui-form-controls";import{TreeView as sE}from"@ehfuse/tree-view";import{useMemo as JD,useRef as yx}from"react";import{useFormaState as eE,useGlobalForm as tE}from"@ehfuse/forma";function oE(e){let t=[],o=n=>{for(let r of n.employees??[])t.push(r);for(let r of n.groups??[])o(r)};for(let n of e)o(n);return t}function Sx(e){let t=yx(e);t.current=e;let o=JD(()=>oE(e.groups),[e.groups]),n=yx(o);n.current=o;let r=eE({openCount:0}),i=tE({formId:we("taskbox-employee-select-form"),initialValues:{selectedSeqs:[]},onSubmit:s=>{let m=n.current.filter(c=>s.selectedSeqs.includes(c.seq));return t.current.onConfirm(t.current.multiple?m:m.slice(0,1)),t.current.onClose(),!0}}),a={select:Xo({modalId:we("taskbox-employee-select"),open:e.open,onClose:()=>t.current.onClose(),onOpen:()=>{i.setFormValues({selectedSeqs:t.current.selectedSeqs}),r.setValue("openCount",Number(r.getValue("openCount")??0)+1)}})};return{form:i,modals:a,ui:r,allEmployees:o,changeSelection:s=>i.setFormValue("selectedSeqs",s)}}import{Fragment as pE,jsx as kn,jsxs as fE}from"react/jsx-runtime";function Bx(e){return`${e.name}#${e.seq}`}function cE(e){return Number(e.slice(e.lastIndexOf("#")+1))||0}function mE(e,t){return t?[e.name,e.department,e.role_name,e.work_position].filter(Boolean).some(o=>String(o).toLowerCase().includes(t)):!0}function uE(e){let t=[[e.name,e.role_name].filter(Boolean).join(" "),e.department].filter(Boolean).join(" / ");return{id:`emp:${e.seq}`,label:Bx(e),renderLabel:kn(ja,{component:"span",sx:{display:"inline-flex",alignItems:"baseline",gap:.75},children:kn(ja,{component:"span",sx:{fontWeight:400,color:"text.primary"},children:t})})}}function vx(e,t){let o=(e.groups??[]).map(r=>vx(r,t)).filter(r=>r!==null),n=(e.employees??[]).filter(r=>mE(r,t)).map(uE);return o.length===0&&n.length===0?null:{id:`group:${e.key}`,label:e.name,children:[...o,...n]}}function dE({groups:e,allEmployees:t,initialSelectedSeqs:o,multiple:n,isMobile:r,onSelectionChange:i}){let[a,l]=nE(""),s=Cx(()=>e.map(c=>vx(c,a.trim().toLowerCase())).filter(c=>c!==null),[e,a]),m=Cx(()=>t.filter(c=>o.includes(c.seq)).map(Bx),[]);return fE(pE,{children:[kn(ja,{sx:{px:1.5,py:1,borderBottom:"1px solid #cccccc",flexShrink:0},children:kn(lE,{size:"small",fullWidth:!0,placeholder:"\uC774\uB984, \uBD80\uC11C \uAC80\uC0C9",onSearch:l,onClear:()=>l(""),sx:{"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{px:0}}})}),kn(ja,{sx:r?{display:"flex",flexDirection:"column"}:{flex:1,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:kn(sE,{items:s,checkbox:!0,multiSelect:n,selectionMode:"child",showSearch:!1,defaultExpanded:!0,initialSelections:m,onChange:c=>i(c.map(cE).filter(p=>p>0)),styles:{border:"none",borderRadius:"0"}})})]})}function BK({open:e,title:t="\uC9C1\uC6D0 \uC120\uD0DD",hint:o="",groups:n,multiple:r=!1,selectedSeqs:i,confirmText:a="\uD655\uC778",onConfirm:l,onClose:s}){let m=Ue(),c=i??[],p=Sx({open:e,groups:n,multiple:r,selectedSeqs:c,onConfirm:l,onClose:s}),{form:d,allEmployees:u}=p,f=p.modals.select,g=d.useValue("selectedSeqs")??[],v=Number(p.ui.useValue("openCount")??0);return kn(aE,{open:f.isOpen,onClose:f.close,title:`${t}${r&&g.length>0?` (${g.length}\uBA85)`:""}`,locale:"ko",fullScreen:m,mobilePresentation:m?"slide":"dialog",draggable:!0,width:"600px",tabs:{visible:!1},titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},scrollPastLastSection:!1,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-employee-select",sections:[{id:"employee-select",title:"\uC9C1\uC6D0 \uC120\uD0DD",showTitle:!1,children:kn(ja,{sx:{...m?{}:{height:560},display:"flex",flexDirection:"column",border:"1px solid #cccccc",borderRadius:1,...m?{}:{overflow:"hidden"},userSelect:"none"},children:kn(dE,{groups:n,allEmployees:u,initialSelectedSeqs:c,multiple:r,isMobile:m,onSelectionChange:p.changeSelection},v)})}],dialogActionSx:{"@media (max-width:1023.95px)":{gap:"0.75rem !important","& .left-actions":{flex:1,minWidth:0},"& .right-actions":{flex:1}}},actions:{visible:!0,showCancelButton:!1,left:o?kn(iE,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line",lineHeight:1.35},children:o}):void 0,right:kn(rE,{variant:"contained",onClick:()=>{d.submit()},children:a})}})}import{useMemo as XE}from"react";import{Box as sr,Button as Gx}from"@mui/material";import{FormDialog as QE}from"@ehfuse/mui-form-dialog";import{LabelSelect as zu}from"@ehfuse/mui-form-controls";import ZE from"@mui/icons-material/SpeedOutlined";import{Box as Ro,Button as hE}from"@mui/material";import{FormDialog as kE}from"@ehfuse/mui-form-dialog";import{LabelSelect as TE,NumberField as yE}from"@ehfuse/mui-form-controls";import SE from"@ehfuse/overlay-scrollbar";import{useEffect as gE,useRef as xE}from"react";import{useGlobalForm as bE}from"@ehfuse/forma";function Ix(e){return`byAccount.a${e}`}function Xa(e){return Math.max(0,Math.floor(Number(e)||0))}function Pu(e){return{basis:e.basis,default_capacity:e.default_capacity,byAccount:Object.fromEntries(Object.entries(e.by_account??{}).map(([t,o])=>[`a${t}`,o]))}}function _x({open:e,capacity:t,onClose:o,onSave:n}){let r=bE({formId:we("taskbox-workload-capacity-form"),initialValues:Pu(t??Kr),onSubmit:async l=>{let s={};for(let[m,c]of Object.entries(l.byAccount??{})){let p=Xa(c),d=Number(m.slice(1));d>0&&p>0&&(s[d]=p)}return await n({...t??Kr,basis:l.basis,default_capacity:Xa(l.default_capacity),by_account:s}),!0}}),i={form:Zt({modalIdPrefix:"taskbox-workload-capacity-dialog",open:e,onClose:o,onOpen:()=>r.setFormValues(Pu(t??Kr))})},a=xE(!0);return gE(()=>{if(a.current){a.current=!1;return}e&&r.setFormValues(Pu(t??Kr))},[t]),{form:r,modals:i}}import{jsx as so,jsxs as Qa}from"react/jsx-runtime";var CE=[{value:"count",label:"\uBBF8\uC644\uB8CC \uAC74\uC218"},{value:"points",label:"\uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8"}];function wx({form:e,name:t,unit:o,size:n,clearWhenZero:r}){let i=Xa(e.useFormValue(t));return so(yE,{size:n,fullWidth:!0,min:0,max:999,thousandSeparator:!1,align:"right",suffix:o,clearWhenZero:r,value:i,onValueChange:a=>e.setFormValue(t,Xa(a))})}function Dx({open:e,capacity:t,employees:o,onClose:n,onSave:r}){let{form:i,modals:a}=_x({open:e,capacity:t,onClose:n,onSave:r}),l=i.useFormValue("basis")==="points"?"SP":"\uAC74";return so(kE,{open:a.form.isOpen,onClose:a.form.close,maxWidth:"sm",title:"\uC778\uC6D0 \uC6A9\uB7C9",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-workload-capacity",tabs:{visible:!1},actions:{showCancelButton:!0,right:so(hE,{variant:"contained",onClick:()=>{i.submit()},children:"\uC800\uC7A5"})},sectionContentPaddingTop:0,sections:[{id:"capacity",title:"",showTitle:!1,children:Qa(Ro,{sx:{display:"flex",flexDirection:"column",gap:2},children:[so(Ro,{sx:{fontSize:15,color:"#37352f"},children:"\uD55C \uC0AC\uB78C\uC774 \uB3D9\uC2DC\uC5D0 \uC548\uC744 \uC218 \uC788\uB294 \uC591\uC744 \uC815\uD569\uB2C8\uB2E4. \uC774 \uAC12\uC744 \uB118\uAE30\uBA74 \uC6CC\uD06C\uB85C\uB4DC \uCC28\uD2B8\uC5D0\uC11C \uBD89\uAC8C \uD45C\uC2DC\uB429\uB2C8\uB2E4. 0 \uC73C\uB85C \uB450\uBA74 \uC6A9\uB7C9\uC744 \uC4F0\uC9C0 \uC54A\uACE0 \uD300 \uD3C9\uADE0\uC744 \uAE30\uC900\uC73C\uB85C \uBD05\uB2C8\uB2E4."}),Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[so(Ro,{sx:{width:104,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uC138\uB294 \uB2E8\uC704"}),so(TE,{form:i,name:"basis",size:"medium",fullWidth:!0,label:"",options:CE})]}),Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[so(Ro,{sx:{width:104,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uAE30\uBCF8 \uC6A9\uB7C9"}),so(wx,{form:i,name:"default_capacity",size:"medium",unit:l})]}),so(Ro,{sx:{pl:"119px",mt:-1.25,fontSize:13.5,color:"#37352f"},children:`\uC804\uC6D0 \uACF5\uD1B5 \uAE30\uC900(${l}) \xB7 0 = \uC6A9\uB7C9 \uC548 \uC500`}),so(Ro,{sx:{fontSize:16,fontWeight:700,color:"#37352f"},children:"\uC0AC\uB78C\uBCC4 \uC608\uC678"}),o.length===0?so(Ro,{sx:{fontSize:15,color:"#787774"},children:"\uC9C1\uC6D0 \uBAA9\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uAE30\uBCF8 \uC6A9\uB7C9\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4."}):so(Ro,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:so(SE,{style:{maxHeight:260},thumb:{width:6},children:o.filter(s=>Number(s.account_seq)>0).map(s=>Qa(Ro,{sx:{display:"flex",alignItems:"center",gap:1.5,px:2,py:1,borderBottom:"1px solid #f2f2f0","&:last-of-type":{borderBottom:"none"}},children:[Qa(Ro,{sx:{flex:1,minWidth:0,fontSize:16,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[s.name,s.department?so(Ro,{component:"span",sx:{ml:1,fontSize:14,color:"#787774"},children:s.department}):null]}),so(Ro,{sx:{width:132,flexShrink:0},children:so(wx,{form:i,name:Ix(Number(s.account_seq)),size:"small",unit:l,clearWhenZero:!0})})]},s.account_seq))})})]})}]})}import{lazy as BE,Suspense as vE}from"react";import{Box as IE}from"@mui/material";import{jsx as Ks}from"react/jsx-runtime";function _E({height:e}){return Ks(IE,{sx:typeof e=="number"?{height:e,minHeight:120}:{position:"absolute",inset:0}})}function Za(e,t){let o=BE(e);return function(r){return Ks(vE,{fallback:Ks(_E,{height:r.height??t}),children:Ks(o,{...r})})}}var Ex=Za(()=>import("./chunks/SprintVelocityChart-DMENH7QX.js").then(e=>({default:e.SprintVelocityChart})),200),Rx=Za(()=>import("./chunks/SprintBurndownChart-4GZ5RXBN.js").then(e=>({default:e.SprintBurndownChart})),200),Mx=Za(()=>import("./chunks/CumulativeFlowChart-BDDP3H2H.js").then(e=>({default:e.CumulativeFlowChart})),220),Px=Za(()=>import("./chunks/LeadTimeDistributionChart-45ETE64V.js").then(e=>({default:e.LeadTimeDistributionChart})),200),Ox=Za(()=>import("./chunks/WorkloadChart-PKXYKQYH.js").then(e=>({default:e.WorkloadChart})),200);import{Box as LE,Button as NE}from"@mui/material";import{FormDialog as FE}from"@ehfuse/mui-form-dialog";import{useState as wE}from"react";import{Box as qt,Button as DE,Menu as EE,MenuItem as RE}from"@mui/material";import ME from"@mui/icons-material/PersonOutlineOutlined";import PE from"@ehfuse/overlay-scrollbar";import{jsx as eo,jsxs as lr}from"react/jsx-runtime";var qx=56,zx=68,Ax=96;function OE(e){let t=String(e.due_date??"").slice(0,10);return t?t.slice(5).replace("-","/"):"-"}function Lx(e,t){let o=String(e.due_date??"").slice(0,10);return!!o&&o<t}function Nx({tasks:e,row:t,todayStr:o,employees:n,rows:r,height:i=200,hideSummary:a=!1,onChangeManager:l,onOpenTask:s}){let[m,c]=wE(null),p=kl(e,t.accountSeq),d=u=>r.find(f=>f.accountSeq===u)?.total??0;return lr(qt,{sx:{display:"flex",flexDirection:"column",minHeight:0,height:i},children:[a?null:lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:.5,pb:.75,fontSize:14,color:"#37352f"},children:[eo(qt,{component:"span",sx:{fontWeight:700},children:t.name}),lr(qt,{component:"span",children:["\uBBF8\uC644\uB8CC ",p.length,"\uAC74"]}),t.capacity>0?lr(qt,{component:"span",sx:{color:t.load>t.capacity?"#e5484d":"#787774"},children:["\xB7 \uC6A9\uB7C9 ",t.capacity," \uC911 ",t.load]}):null]}),lr(qt,{sx:{flex:1,minHeight:0,display:"flex",flexDirection:"column",border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:[lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,flexShrink:0,bgcolor:"#fafaf9",borderBottom:"1px solid #e6e6e3",fontSize:13.5,fontWeight:600,color:"#37352f"},children:[eo(qt,{sx:{width:qx,flexShrink:0},children:"\uB9C8\uAC10"}),eo(qt,{sx:{flex:1,minWidth:0},children:"\uC5C5\uBB34"}),eo(qt,{sx:{width:zx,flexShrink:0,textAlign:"center"},children:"\uC911\uC694\uB3C4"}),l?eo(qt,{sx:{width:Ax,flexShrink:0,textAlign:"center"},children:"\uCC45\uC784\uC790"}):null]}),eo(qt,{sx:{flex:1,minHeight:0},children:eo(PE,{style:{height:"100%"},thumb:{width:6},children:p.length===0?eo(qt,{sx:{p:2,fontSize:14,color:"#9a9a97"},children:"\uBBF8\uC644\uB8CC \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."}):p.map(u=>lr(qt,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1.5,borderBottom:"1px solid #f2f2f0"},children:[eo(qt,{sx:{width:qx,flexShrink:0,fontSize:13.5,color:Lx(u,o)?"#e5484d":"#787774",fontWeight:Lx(u,o)?700:400},children:OE(u)}),eo(qt,{onClick:s?()=>s(u.seq):void 0,sx:{flex:1,minWidth:0,fontSize:14.5,color:"#37352f",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...s?{cursor:"pointer","&:hover":{textDecoration:"underline"}}:{}},children:u.title}),eo(qt,{sx:{width:zx,flexShrink:0,display:"flex",justifyContent:"center"},children:eo(oo,{priority:u.priority})}),l?eo(qt,{sx:{width:Ax,flexShrink:0,display:"flex",justifyContent:"center"},children:eo(DE,{size:"small",variant:"outlined",startIcon:eo(ME,{sx:{fontSize:17}}),onClick:f=>c({el:f.currentTarget,taskSeq:u.seq}),children:"\uC62E\uAE30\uAE30"})}):null]},u.seq))})})]}),eo(EE,{anchorEl:m?.el??null,open:!!m,onClose:()=>c(null),transitionDuration:0,children:n.filter(u=>Number(u.account_seq)>0&&Number(u.account_seq)!==t.accountSeq).map(u=>lr(RE,{onClick:()=>{m&&l&&l(m.taskSeq,Number(u.account_seq),u.name),c(null)},sx:{fontSize:14,minWidth:200},children:[eo(qt,{sx:{flex:1},children:u.name}),lr(qt,{component:"span",sx:{ml:2,fontSize:13,color:"#787774"},children:[d(Number(u.account_seq)),"\uAC74"]})]},u.account_seq))})]})}import{useEffect as qE,useRef as zE,useState as AE}from"react";function Fx({open:e,row:t,onClose:o,onOpenTask:n}){let[r,i]=AE(t);qE(()=>{t&&i(t)},[t]);let a=zE(0),l={dialog:Zt({modalIdPrefix:"taskbox-workload-person-dialog",open:e,onClose:()=>{o();let m=a.current;a.current=0,m>0&&n?.(m)}})};return{modals:l,shown:t??r,openTask:n?m=>{if(!l.dialog.isOpen){n(m);return}a.current=m,l.dialog.close()}:void 0}}import{jsx as Ys}from"react/jsx-runtime";function $x({open:e,row:t,rows:o,tasks:n,todayStr:r,employees:i,onClose:a,onChangeManager:l,onOpenTask:s}){let{modals:m,shown:c,openTask:p}=Fx({open:e,row:t,onClose:a,onOpenTask:s}),d=c?kl(n,c.accountSeq).length:0;return Ys(FE,{open:m.dialog.isOpen,onClose:m.dialog.close,maxWidth:"sm",title:c?`${c.name} \uC5C5\uBB34 (${d})`:"\uC5C5\uBB34",locale:"ko",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-workload-person",tabs:{visible:!1},actions:{showCancelButton:!1,right:Ys(NE,{variant:"contained",onClick:m.dialog.close,children:"\uB2EB\uAE30"})},sections:[{id:"person-tasks",title:"",showTitle:!1,children:Ys(LE,{sx:{minHeight:0},children:c?Ys(Nx,{tasks:n,row:c,rows:o,todayStr:r,employees:i,height:"min(420px, 52vh)",hideSummary:!0,onChangeManager:l,onOpenTask:p}):null})}]})}import{useMemo as $E}from"react";import{Box as Lo,Tooltip as HE}from"@mui/material";import{OverlayScrollbar as WE}from"@ehfuse/overlay-scrollbar";import{jsx as yo,jsxs as Xs}from"react/jsx-runtime";var Hx="#e5484d",VE="#2f80ed",UE="#9a9a97",Ou=30,GE=96,js=56;function qu({count:e,max:t,color:o,title:n}){let r=e>0&&t>0?.18+e/t*.72:0;return yo(HE,{title:n,arrow:!0,disableInteractive:!0,placement:"top",children:yo(Lo,{sx:{display:"flex",alignItems:"center",justifyContent:"center",borderRight:"1px solid #ececea",borderBottom:"1px solid #ececea",bgcolor:r>0?`${o}${Math.round(r*255).toString(16).padStart(2,"0")}`:"transparent",color:r>.55?"#fff":"#37352f",fontSize:12.5,fontWeight:e>0?700:400,fontVariantNumeric:"tabular-nums"},children:e>0?e:""})})}function Wx({tasks:e,todayStr:t,weeks:o=6,height:n=200}){let r=$E(()=>cd(e,{todayStr:t,weeks:o}),[e,t,o]);if(r.rows.length===0)return yo(Lo,{sx:aa(n),children:yo(hl,{text:"\uB2F4\uB2F9\uC790\uAC00 \uC9C0\uC815\uB41C \uBBF8\uC644\uB8CC \uC5C5\uBB34\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",height:n})});let i=`${GE}px ${js}px repeat(${r.weeks.length}, minmax(${js}px, 1fr)) ${js}px ${js}px`,a={height:Ou,display:"flex",alignItems:"center",justifyContent:"center",borderRight:"1px solid #ececea",borderBottom:"1px solid #dcdad6",fontSize:12,fontWeight:700,color:"#37352f",bgcolor:"#f8f8f7",whiteSpace:"nowrap"};return yo(Lo,{sx:aa(n),children:yo(WE,{style:{height:"100%"},thumb:{width:8},children:Xs(Lo,{sx:{display:"grid",gridTemplateColumns:i,minWidth:"fit-content",height:"100%",gridTemplateRows:`${Ou}px repeat(${r.rows.length}, minmax(${Ou}px, 1fr))`},children:[yo(Lo,{sx:{...a,justifyContent:"flex-start",pl:1},children:"\uB2F4\uB2F9\uC790"}),yo(Lo,{sx:{...a,color:Hx},children:"\uC9C0\uC5F0"}),r.weeks.map(l=>yo(Lo,{sx:{...a,...l.isCurrent?{borderBottom:"2px solid #2f80ed"}:{}},children:l.label},l.start)),yo(Lo,{sx:a,children:"\uB9C8\uAC10\uC5C6\uC74C"}),yo(Lo,{sx:a,children:"\uD569\uACC4"}),r.rows.map(l=>Xs(Lo,{sx:{display:"contents"},children:[yo(Lo,{sx:{display:"flex",alignItems:"center",pl:1,borderRight:"1px solid #ececea",borderBottom:"1px solid #ececea",fontSize:13,color:l.accountSeq>0?"#37352f":"#9a9a97",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.name}),yo(qu,{count:l.overdue,max:r.maxCell,color:Hx,title:`${l.name} \xB7 \uC9C0\uC5F0 ${l.overdue}\uAC74`}),l.byWeek.map((s,m)=>yo(qu,{count:s,max:r.maxCell,color:VE,title:`${l.name} \xB7 ${r.weeks[m].label} \uC8FC \uB9C8\uAC10 ${s}\uAC74`},r.weeks[m].start)),yo(qu,{count:l.noDue,max:r.maxCell,color:UE,title:`${l.name} \xB7 \uB9C8\uAC10 \uBBF8\uC815 ${l.noDue}\uAC74`}),Xs(Lo,{sx:{display:"flex",alignItems:"center",justifyContent:"center",borderBottom:"1px solid #ececea",fontSize:12.5,fontWeight:700,color:"#37352f",fontVariantNumeric:"tabular-nums"},children:[l.total,l.beyond>0?Xs(Lo,{component:"span",sx:{ml:.25,fontSize:10.5,color:"#9a9a97"},children:["(+",l.beyond,")"]}):null]})]},l.accountSeq))]})})})}import{useMemo as KE,useRef as YE,useState as Vx}from"react";import{useGlobalForm as jE}from"@ehfuse/forma";function Ux({open:e,sprints:t,tasks:o,todayStr:n,initialSprintSeq:r,capacity:i,onSaveCapacity:a,onOpenTask:l,onClose:s}){let m=jE({formId:we("taskbox-sprint-charts-form"),initialValues:{sprintSeq:"",flowDays:"30",workloadMode:"distribution"}}),[c,p]=Vx(0),[d,u]=Vx(!1),f=YE(0),g={charts:Zt({modalIdPrefix:"taskbox-sprint-charts-dialog",open:e,onClose:()=>{s();let h=f.current;f.current=0,h>0&&l?.(h)},onOpen:()=>{let h=t.find(y=>y.status==="active")??t[0],E=t.find(y=>y.seq===r)??h;m.setFormValue("sprintSeq",E?.seq?String(E.seq):"")}})},v=KE(()=>sd(o,{todayStr:n,capacity:i}),[o,n,i]),D=v.find(h=>h.accountSeq===c)??null;return{form:m,modals:g,workloadRows:v,pickedAccountSeq:c,pickedRow:D,pickPerson:p,closePersonTasks:()=>p(0),capacityOpen:d,openCapacity:()=>u(!0),closeCapacity:()=>u(!1),saveCapacity:a?async h=>{await a(h),u(!1)}:void 0,openTask:l?h=>{if(!g.charts.isOpen){l(h);return}f.current=h,g.charts.close()}:void 0}}import{Fragment as Kx,jsx as pt,jsxs as Qs}from"react/jsx-runtime";var Yx="min(560px, 62vh)",JE=`calc(${Yx} - 4px)`,eR=[{value:"30",label:"\uCD5C\uADFC 30\uC77C"},{value:"60",label:"\uCD5C\uADFC 60\uC77C"},{value:"90",label:"\uCD5C\uADFC 90\uC77C"}];function LY({open:e,sprints:t,tasks:o,todayStr:n,showSprintCharts:r,capacity:i=Kr,capacityEmployees:a=[],onSaveCapacity:l,onChangeTaskManager:s,onOpenTask:m,initialSprintSeq:c=0,onClose:p}){let d=Ux({open:e,sprints:t,tasks:o,todayStr:n,initialSprintSeq:c,capacity:i,onSaveCapacity:l,onOpenTask:m,onClose:p}),{form:u,modals:f,workloadRows:g,pickedAccountSeq:v,pickedRow:D}=d,b=Number(u.useFormValue("sprintSeq"))||0,S=Number(u.useFormValue("flowDays"))||30,h=u.useFormValue("workloadMode")==="timeline"?"timeline":"distribution",E=XE(()=>t.find(k=>k.seq===b)??null,[t,b]),y={height:JE,boxSizing:"border-box",px:3,py:2.5,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden"},T=pt(zu,{form:u,name:"sprintSeq",label:"\uBAA9\uD45C",showLabel:!1,showEmptyOption:!1,options:t.map(k=>({value:String(k.seq),label:Ko(k)})),sx:{width:280,flexShrink:0}}),A=Qs(Kx,{children:[pt(zu,{form:u,name:"workloadMode",label:"\uBCF4\uAE30",showLabel:!1,showEmptyOption:!1,options:[{value:"distribution",label:"\uC9C0\uAE08 \uBD80\uD558(\uC9C0\uC5F0\xB7\uC784\uBC15\xB7\uC5EC\uC720)"},{value:"timeline",label:"\uC8FC\uBCC4 \uB9C8\uAC10 \uBC00\uC9D1"}],sx:{width:280,flexShrink:0}}),l?pt(Gx,{size:"small",variant:"outlined",startIcon:pt(ZE,{sx:{fontSize:18}}),onClick:d.openCapacity,sx:{flexShrink:0},children:"\uC6A9\uB7C9"}):null]}),q=r??t.length>0,C=pt(zu,{form:u,name:"flowDays",label:"\uAE30\uAC04",showLabel:!1,showEmptyOption:!1,options:eR,sx:{width:280,flexShrink:0}});return Qs(Kx,{children:[pt(QE,{open:f.charts.isOpen,onClose:f.charts.close,maxWidth:"md",title:"\uC5C5\uBB34 \uCC28\uD2B8",locale:"ko",contentTopPadding:0,contentPaddingX:0,sectionsPaddingTop:0,sectionContentPaddingTop:0,sectionTitleGap:0,fixedHeight:Yx,contentBottomPadding:0,scrollPastLastSection:!1,tabs:{visible:!0,switchContent:!0,fullWidth:!0},titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-sprint-charts",sections:[...q?[{id:"velocity",tabTitle:"\uBCA8\uB85C\uC2DC\uD2F0",showTitle:!1,children:pt(sr,{sx:y,children:pt(Ex,{sprints:t,tasks:o,height:"100%"})})},{id:"burndown",tabTitle:"\uBC88\uB2E4\uC6B4",showTitle:!1,children:pt(sr,{sx:y,children:E?pt(Rx,{sprint:E,tasks:o,todayStr:n,height:"100%",headerLeft:T}):Qs(sr,{sx:aa("100%"),children:[pt(sr,{sx:hc,children:T}),pt(hl,{text:"\uBC88\uB2E4\uC6B4\uC744 \uBCFC \uBAA9\uD45C\uB97C \uC120\uD0DD\uD558\uC138\uC694.",height:"100%"})]})})},{id:"cumulative-flow",tabTitle:"\uB204\uC801\uD750\uB984\uB3C4",showTitle:!1,children:pt(sr,{sx:y,children:pt(Mx,{tasks:o,todayStr:n,days:S,height:"100%",headerLeft:C})})}]:[],{id:"workload",tabTitle:"\uC6CC\uD06C\uB85C\uB4DC",showTitle:!1,children:pt(sr,{sx:y,children:h==="timeline"?Qs(sr,{sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[pt(sr,{sx:hc,children:A}),pt(Wx,{tasks:o,todayStr:n,height:"100%"})]}):pt(Ox,{tasks:o,todayStr:n,height:"100%",capacity:i,headerLeft:A,selectedAccountSeq:v,onSelectPerson:s?d.pickPerson:void 0})})},{id:"lead-time",tabTitle:"\uB9AC\uB4DC\uD0C0\uC784",showTitle:!1,children:pt(sr,{sx:y,children:pt(Px,{tasks:o,todayStr:n,days:S,height:"100%",headerLeft:C})})}],actions:{showCancelButton:!1,right:pt(Gx,{variant:"contained",onClick:f.charts.close,children:"\uB2EB\uAE30"})}}),pt($x,{open:v>0,row:D,rows:g,tasks:o,todayStr:n,employees:a,onClose:d.closePersonTasks,onChangeManager:s,onOpenTask:d.openTask}),d.saveCapacity?pt(Dx,{open:d.capacityOpen,capacity:i,employees:a,onClose:d.closeCapacity,onSave:d.saveCapacity}):null]})}import{Checkbox as tR,Divider as oR,Menu as nR,MenuItem as Au}from"@mui/material";import{jsx as Ja,jsxs as jx}from"react/jsx-runtime";function WY({anchorEl:e,candidates:t,selectedNames:o,avatarSrcByName:n,onToggle:r,onClear:i,onClose:a}){return jx(nR,{anchorEl:e,open:!!e,onClose:a,transitionDuration:0,children:[t.length===0?Ja(Au,{disabled:!0,sx:{fontSize:14},children:"\uBAA9\uB85D\uC5D0 \uC9C0\uC815\uB41C \uC0AC\uB78C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):t.map(l=>{let s=o.includes(l.name);return jx(Au,{onClick:()=>r(l),sx:{fontSize:14,minWidth:170,gap:1},children:[Ja(tR,{size:"small",checked:s,sx:{p:0}}),Ja(go,{names:[l.name],size:20,avatarSrcByName:n}),l.name]},`${l.accountSeq}-${l.name}`)}),Ja(oR,{}),Ja(Au,{disabled:o.length===0,onClick:i,sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{useState as rR}from"react";import{ButtonBase as iR,Menu as aR,MenuItem as lR}from"@mui/material";import sR from"@mui/icons-material/KeyboardArrowDown";import cR from"@mui/icons-material/Check";import{Fragment as mR,jsx as Lu,jsxs as Nu}from"react/jsx-runtime";function QY({value:e,onChange:t,options:o}){let[n,r]=rR(null),i=o??Zc,a=Zc.find(l=>l.value===e)?.label??"";return Nu(mR,{children:[Nu(iR,{onClick:l=>r(l.currentTarget),sx:{display:"flex",alignItems:"center",gap:.5,px:1,py:.5,borderRadius:1,fontSize:13.5,color:"#37352f","&:hover":{bgcolor:"#f2f2f0"}},children:[a,Lu(sR,{sx:{fontSize:17,color:"#9a9a97"}})]}),Lu(aR,{transitionDuration:0,anchorEl:n,open:!!n,onClose:()=>r(null),children:i.map(l=>Nu(lR,{selected:l.value===e,onClick:()=>{t(l.value),r(null)},sx:{fontSize:14,minWidth:140,justifyContent:"space-between",gap:1},children:[l.label,l.value===e?Lu(cR,{sx:{fontSize:16,color:"#2f80ed"}}):null]},l.value))})]})}import{Box as Zs,ButtonBase as uR}from"@mui/material";import{DateTextField as Xx}from"@ehfuse/mui-form-controls";import{jsx as el,jsxs as Qx}from"react/jsx-runtime";var dR=[{label:"1\uAC1C\uC6D4",months:1},{label:"3\uAC1C\uC6D4",months:3},{label:"6\uAC1C\uC6D4",months:6},{label:"1\uB144",months:12},{label:"\uC804\uCCB4",months:0}];function Zx({fromDate:e,toDate:t,onChange:o}){let n=i=>{if(i<=0){o("","");return}o(ia(bc(i)),ia(new Date))},r=i=>i<=0?!e&&!t:!e||!t?!1:e===ia(bc(i))&&t===ia(new Date);return Qx(Zs,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[el(Zs,{sx:{display:"flex",alignItems:"center",gap:1.5},children:dR.map(i=>{let a=r(i.months);return el(uR,{onClick:()=>n(i.months),sx:{px:1.25,py:.85,borderRadius:1,fontSize:13,fontWeight:a?500:400,border:"1px solid",borderColor:a?"#2f80ed":"#dedddb",color:a?"#2f80ed":"#37352f",bgcolor:a?"#eef6ff":"transparent","&:hover":{bgcolor:a?"#eef6ff":"#f7f7f5"}},children:i.label},i.label)})}),Qx(Zs,{sx:{display:"flex",alignItems:"center",gap:.5},children:[el(Xx,{value:e,size:"small",placeholder:"\uC2DC\uC791\uC77C",onChange:i=>o(i.target.value,t),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}}),el(Zs,{component:"span",sx:{fontSize:13,color:"#9a9a97"},children:"~"}),el(Xx,{value:t,size:"small",placeholder:"\uC885\uB8CC\uC77C",onChange:i=>o(e,i.target.value),sx:{width:140,"& .MuiInputBase-input":{fontSize:13}}})]})]})}import{Popover as pR}from"@mui/material";import{jsx as Jx}from"react/jsx-runtime";function lj({anchorEl:e,fromDate:t,toDate:o,onChange:n,onClose:r}){return Jx(pR,{transitionDuration:0,anchorEl:e,open:!!e,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{p:1.5}}},children:Jx(Zx,{fromDate:t,toDate:o,onChange:n})})}import{Box as fR,ButtonBase as gR,Tab as xR,Tabs as bR}from"@mui/material";import hR from"@mui/icons-material/Checklist";import kR from"@mui/icons-material/Face";import TR from"@mui/icons-material/Publish";import yR from"@mui/icons-material/NotificationsOutlined";import SR from"@mui/icons-material/BugReportOutlined";import CR from"@mui/icons-material/SupportAgentOutlined";import BR from"@mui/icons-material/DescriptionOutlined";import vR from"@mui/icons-material/Inventory2Outlined";import{jsx as Qo}from"react/jsx-runtime";function eb(e,t){return t>0?`${e} (${t})`:e}var yj=[{id:"my",label:"\uC804\uCCB4",icon:Qo(hR,{sx:{fontSize:18}})},{id:"mine",label:"\uB0B4 \uC5C5\uBB34",icon:Qo(kR,{sx:{fontSize:18}})},{id:"sent",label:"\uBCF4\uB0B8 \uC5C5\uBB34",icon:Qo(TR,{sx:{fontSize:18}})},{id:"support",label:"\uACE0\uAC1D\uC13C\uD130",icon:Qo(CR,{sx:{fontSize:18}})},{id:"bug",label:"\uC624\uB958",icon:Qo(SR,{sx:{fontSize:18}})},{id:"notice",label:"\uACF5\uC9C0\uC0AC\uD56D",icon:Qo(yR,{sx:{fontSize:18}})},{id:"archive",label:"\uBCF4\uAD00\uD568",icon:Qo(vR,{sx:{fontSize:18}}),hideCount:!0},{id:"report",label:"\uBCF4\uACE0\uC11C",icon:Qo(BR,{sx:{fontSize:18}}),hideCount:!0}];function IR(e){return{minHeight:46,minWidth:75,bgcolor:e.bg,color:e.color,borderRadius:"8px 8px 0 0",padding:"10px 18px",textTransform:"none",fontSize:14,fontWeight:500,border:`1px solid ${e.borderColor}`,borderBottom:"none","&:hover":{bgcolor:e.hoverBg},"&.Mui-selected":{bgcolor:e.selectedBg,color:e.selectedColor,border:`1px solid ${e.selectedBg}`,borderBottom:"none","&:hover":{bgcolor:e.selectedBg}},...e.sx}}function Sj({items:e,activeTab:t,counts:o,onChange:n,compact:r=!1}){let i=xe(),a=IR(i.tabs),l=e;return r?Qo(fR,{sx:{display:"flex",flexWrap:"wrap",gap:1.25},children:l.map(s=>{let m=t===s.id;return Qo(gR,{onClick:()=>n(s.id),sx:{px:1.5,py:.75,borderRadius:1,fontSize:Ct(13.5),fontWeight:500,whiteSpace:"nowrap",border:"1px solid",bgcolor:m?i.tabs.selectedBg:i.tabs.bg,color:m?i.tabs.selectedColor:i.tabs.color,borderColor:m?i.tabs.selectedBg:i.tabs.borderColor},children:eb(s.label,s.hideCount?0:o[s.id]??0)},s.id)})}):Qo(bR,{value:t,onChange:(s,m)=>n(m),sx:{minHeight:46,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"12px",minHeight:46}},children:l.map(s=>Qo(xR,{value:s.id,label:eb(s.label,s.hideCount?0:o[s.id]??0),icon:s.icon,iconPosition:"start",sx:a},s.id))})}import{useEffect as _R,useMemo as wR,useState as Fu}from"react";import{Divider as Js,ListItemIcon as co,Menu as $u,MenuItem as Nt}from"@mui/material";import DR from"@mui/icons-material/OpenInNewOutlined";import ER from"@mui/icons-material/RestoreFromTrashOutlined";import RR from"@mui/icons-material/Check";import MR from"@mui/icons-material/CheckCircleOutlined";import PR from"@mui/icons-material/RadioButtonUnchecked";import OR from"@mui/icons-material/SendOutlined";import qR from"@mui/icons-material/EventOutlined";import zR from"@mui/icons-material/PersonOutlineOutlined";import AR from"@mui/icons-material/ViewKanbanOutlined";import LR from"@mui/icons-material/ContentCopyOutlined";import NR from"@mui/icons-material/PrintOutlined";import FR from"@mui/icons-material/NextPlanOutlined";import $R from"@mui/icons-material/ContentPasteOutlined";import HR from"@mui/icons-material/ShareOutlined";import WR from"@mui/icons-material/DirectionsRunOutlined";import tb from"@mui/icons-material/ChevronRight";import VR from"@mui/icons-material/ArchiveOutlined";import UR from"@mui/icons-material/UnarchiveOutlined";import{ConfirmDialog as ob}from"@ehfuse/alerts";import{Fragment as nb,jsx as ke,jsxs as _t}from"react/jsx-runtime";function nX({target:e,onClose:t,customTabs:o,sprints:n=[],myAccountSeq:r=0,onOpenDetail:i,onToggleCompleted:a,onRequestConfirm:l,onChangeDueDate:s,onChangeReminder:m,onMemberEdit:c,onMoveProject:p,onDuplicate:d,onPrint:u,onCreateFollowUp:f,onShare:g,onAssignSprint:v,onArchiveToggle:D,onDelete:b,onRestore:S,onPurge:h}){let E=Ue(),y=Sn(),[T,I]=Fu(null),[A,q]=Fu(null),[C,k]=Fu(null);_R(()=>{e||(I(null),q(null),k(null))},[e]);let x=e?.task??null,B=!!x?.is_notice,w=!!x?.is_event,_=x?!Cn(x,r):!1,{editPolicy:N,shareText:M}=me(),$=x?Sr(x,r,N):!1,Y=x?jr(x,r,N,_):!1,te=x?jr(x,r,N,!1):!1,ce=!!x?.deleted,ue=(()=>{if(!x||x.completed)return!0;let W=_r(x,r);return W.total===0||W.count>=W.total})(),j=wR(()=>new Set(o.filter(W=>W.useSprints).map(W=>W.key)),[o]),O=async(W="one")=>{let V=x;if(t(),!V)return;await ob({title:"\uC5C5\uBB34 \uC0AD\uC81C",message:W==="series"?`"${V.title}" \uC758 \uC774 \uD68C\uCC28\uC640 \uC774\uD6C4 \uBC18\uBCF5 \uD68C\uCC28\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`:`"${V.title}" \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC73C\uB85C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&b?.(V.seq,W)},oe=async()=>{let W=x;if(t(),!W)return;await ob({title:"\uC601\uAD6C \uC0AD\uC81C",message:`"${W.title}" \uC5C5\uBB34\uB97C \uC601\uAD6C\uD788 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C? \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`})&&h?.(W.seq)},F=()=>{x&&D(x.seq,!x.archived),t()};return _t(nb,{children:[_t($u,{open:!!e,onClose:t,transitionDuration:0,anchorReference:E?"none":"anchorPosition",anchorPosition:!E&&e?{top:e.position.top,left:e.position.left}:void 0,slotProps:{paper:{sx:{minWidth:190,...E?{position:"fixed",top:"50%",left:"50%",translate:"-50% -50%",maxHeight:"70vh"}:{}}},list:E?{sx:{"& .MuiMenuItem-root":{py:1,minHeight:0}}}:void 0},children:[_t(Nt,{onClick:()=>{x&&i(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(DR,{sx:{fontSize:19}})}),"\uC0C1\uC138 \uC5F4\uAE30"]}),ce?ke(Js,{}):null,ce&&S?_t(Nt,{disabled:te,onClick:()=>{x&&S(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(ER,{sx:{fontSize:19}})}),"\uBCF5\uC6D0"]}):null,ce&&h?_t(Nt,{disabled:te,onClick:()=>{oe()},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC601\uAD6C \uC0AD\uC81C"]}):null,ce?null:_t(nb,{children:[_t(Nt,{disabled:B?(x?.author_account_seq??0)!==r:(x?.author_account_seq??0)!==r&&(x?.manager_account_seq??0)!==r,onClick:()=>{x&&a(x.seq,!x.completed),t()},sx:{fontSize:14},children:[ke(co,{children:x?.completed?ke(PR,{sx:{fontSize:19}}):ke(MR,{sx:{fontSize:19}})}),x?.completed?"\uC644\uB8CC \uD574\uC81C":"\uC644\uB8CC \uCC98\uB9AC"]}),!B&&l?_t(Nt,{disabled:ue,onClick:()=>{x&&l(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(OR,{sx:{fontSize:19}})}),"\uD655\uC778 \uC694\uCCAD"]}):null,w?null:ke(Js,{}),w?null:_t(Nt,{disabled:$,onClick:W=>{x&&I({anchorEl:W.currentTarget,task:x})},sx:{fontSize:14},children:[ke(co,{children:ke(qR,{sx:{fontSize:19}})}),"\uB9C8\uAC10\uC608\uC815 \uBCC0\uACBD"]}),!B&&!w&&c?_t(Nt,{disabled:N==="coreAuthorManager"?$:!1,onClick:()=>{x&&c(x,"manager"),t()},sx:{fontSize:14},children:[ke(co,{children:ke(zR,{sx:{fontSize:19}})}),"\uCC45\uC784\uC790 \uBCC0\uACBD"]}):null,w?null:_t(Nt,{disabled:$,onClick:W=>{x&&q({anchorEl:W.currentTarget,task:x})},sx:{fontSize:14},children:[ke(co,{children:ke(AR,{sx:{fontSize:19}})}),"\uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9",ke(tb,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}),ke(Js,{}),d?_t(Nt,{disabled:_,onClick:()=>{x&&d(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(LR,{sx:{fontSize:19}})}),"\uBCF5\uC81C"]}):null,u?_t(Nt,{onClick:()=>{x&&u(x),t()},sx:{fontSize:14},children:[ke(co,{children:ke(NR,{sx:{fontSize:19}})}),"\uC778\uC1C4"]}):null,f&&x&&!x.is_event&&!x.is_notice?_t(Nt,{onClick:()=>{x&&f(x.seq),t()},sx:{fontSize:14},children:[ke(co,{children:ke(FR,{sx:{fontSize:19}})}),"\uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30"]}):null,_t(Nt,{onClick:()=>{x&&(g?g(x):Ai(x,E,M)),t()},sx:{fontSize:14},children:[ke(co,{children:E?ke(HR,{sx:{fontSize:19}}):ke($R,{sx:{fontSize:19}})}),E?"\uACF5\uC720":"\uB0B4\uC6A9 \uBCF5\uC0AC"]}),x&&!x.is_notice&&!x.is_event&&j.has(String(x.tab_key??""))&&v?_t(Nt,{onClick:W=>k(W.currentTarget),sx:{fontSize:14},children:[ke(co,{children:ke(WR,{sx:{fontSize:19}})}),"\uBAA9\uD45C\uC5D0 \uB123\uAE30",ke(tb,{sx:{fontSize:18,ml:"auto",color:"#9a9a97"}})]}):null,_t(Nt,{onClick:F,disabled:_||!x?.archived&&!(x&&Dl(x)),sx:{fontSize:14},children:[ke(co,{children:x?.archived?ke(UR,{sx:{fontSize:19}}):ke(VR,{sx:{fontSize:19}})}),x?.archived?"\uBCF4\uAD00 \uD574\uC81C":"\uBCF4\uAD00"]}),b?ke(Js,{}):null,b?_t(Nt,{disabled:Y,onClick:()=>{O("one")},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),(x?.repeat_group_key??0)>0?"\uC0AD\uC81C (\uC774 \uD68C\uCC28\uB9CC)":"\uC0AD\uC81C"]}):null,b&&(x?.repeat_group_key??0)>0?_t(Nt,{disabled:Y,onClick:()=>{O("series")},sx:{fontSize:14,color:"#e5484d"},children:[ke(co,{children:ke(Gt,{sx:{fontSize:19,color:"#e5484d"}})}),"\uC0AD\uC81C (\uC774\uD6C4 \uBC18\uBCF5 \uC804\uCCB4)"]}):null]})]}),ke(Go,{anchorEl:T?.anchorEl??null,open:!!T,date:T?.task.due_date??"",reminders:vn(T?.task),hideReminder:!!T?.task.completed,centered:E,onClose:()=>{I(null),t()},onDateChange:W=>{T&&s(T.task.seq,W)},onReminderChange:W=>{T&&m?.(T.task.seq,W)}}),_t($u,{transitionDuration:0,anchorEl:A?.anchorEl??null,open:!!A,onClose:()=>{q(null),t()},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...y,children:[ke(Nt,{selected:!A?.task.tab_key,onClick:()=>{A&&p(A.task.seq,""),q(null),t()},sx:{fontSize:14,minWidth:170},children:"\uC5C6\uC74C"}),o.filter(W=>!W.archived).map(W=>ke(Nt,{selected:A?.task.tab_key===W.key,onClick:()=>{A&&p(A.task.seq,W.key),q(null),t()},sx:{fontSize:14,minWidth:170},children:W.label},W.key))]}),ke($u,{transitionDuration:0,anchorEl:C,open:!!C,onClose:()=>k(null),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:[{seq:0,label:"\uBC31\uB85C\uADF8 (\uBBF8\uBC30\uC815)"},...n.filter(W=>`custom-${W.group_seq}`===String(x?.tab_key??"")).map(W=>({seq:W.seq,label:Ko(W)}))].map(W=>_t(Nt,{onClick:()=>{x&&v?.(x.seq,W.seq),k(null),t()},sx:{fontSize:14,minWidth:160,gap:1},children:[W.label,(x?.sprint_seq??0)===W.seq?ke(RR,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},W.seq))})]})}import{Checkbox as GR,Divider as KR,Menu as YR,MenuItem as rb}from"@mui/material";import{jsx as ec,jsxs as ib}from"react/jsx-runtime";function sX({anchorEl:e,labelOptions:t,selectedKeys:o,onToggle:n,onClear:r,onClose:i}){return ib(YR,{transitionDuration:0,anchorEl:e,open:!!e,onClose:i,children:[t.map(a=>{let l=o.includes(a.key);return ib(rb,{onClick:()=>n(a.key),sx:{fontSize:14,minWidth:190,gap:1},children:[ec(GR,{size:"small",checked:l,sx:{p:0}}),ec($e,{option:a})]},a.key)}),ec(KR,{}),ec(rb,{disabled:o.length===0,onClick:()=>{r(),i()},sx:{fontSize:14,color:"#787774"},children:"\uD544\uD130 \uD574\uC81C"})]})}import{Divider as jR,Menu as XR,MenuItem as ab}from"@mui/material";import QR from"@mui/icons-material/Check";import ZR from"@mui/icons-material/SettingsOutlined";import{jsx as Hu,jsxs as Wu}from"react/jsx-runtime";function gX(e){let{anchorEl:t,sprints:o,value:n,onSelect:r,onManage:i,onClose:a}=e;return Wu(XR,{transitionDuration:0,anchorEl:t,open:!!t,onClose:a,children:[[{seq:0,label:"\uC804\uCCB4"},{seq:-1,label:"\uBBF8\uBC30\uC815 \uC5C5\uBB34"},...o.map(l=>({seq:l.seq,label:Ko(l)}))].map(l=>Wu(ab,{onClick:()=>{r(l.seq),a()},sx:{fontSize:14,minWidth:180,gap:1},children:[l.label,n===l.seq?Hu(QR,{sx:{fontSize:16,color:"#2f80ed",ml:"auto"}}):null]},l.seq)),Hu(jR,{}),Wu(ab,{onClick:()=>{a(),i()},sx:{fontSize:14,gap:1},children:[Hu(ZR,{sx:{fontSize:18,color:"#787774"}}),"\uBAA9\uD45C \uAD00\uB9AC\u2026"]})]})}var JR={my:"tasks",mine:"tasks",sent:"tasks",notice:"notice",support:"support",bug:"bug",archive:"archive",done:"done",report:"report"};function eM(e){return JR[e]??"tasks"}var sb={list:"\uBAA9\uB85D",card:"\uD504\uB85C\uC81D\uD2B8",kanban:"\uC0C1\uD0DC",sprint:"\uBAA9\uD45C",calendar:"\uC8FC\uAC04",month:"\uC6D4\uAC04",agenda:"\uC544\uC820\uB2E4",timeline:"\uD0C0\uC784\uB77C\uC778"},lb=["list","calendar","month","card","kanban","sprint","timeline"],tM=["list","kanban"],oM=["list","card"];function hX(e){let t=eM(e);switch(t){case"notice":return{kind:t,viewOptions:[],showCreate:!0,createLabel:"\uACF5\uC9C0\uC0AC\uD56D \uB4F1\uB85D",showGroupBy:!1,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!0,columns:{notice:!0}};case"bug":return{kind:t,viewOptions:lb,showCreate:!0,createLabel:"\uC624\uB958 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{bug:!0}};case"support":return{kind:t,viewOptions:tM,showCreate:!1,createLabel:"",showGroupBy:!0,showSprintFilter:!1,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:{support:!0,showProject:!1}};case"archive":return{kind:t,viewOptions:oM,showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"done":return{kind:t,viewOptions:["list"],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{showActions:!1}};case"report":return{kind:t,viewOptions:[],showCreate:!1,createLabel:"",showGroupBy:!1,showSprintFilter:!1,showDateRange:!0,showHideCompleted:!1,forceFlatList:!0,columns:{}};default:return{kind:t,viewOptions:lb,showCreate:!0,createLabel:"\uC5C5\uBB34 \uB4F1\uB85D",showGroupBy:!0,showSprintFilter:!0,showDateRange:!1,showHideCompleted:!0,forceFlatList:!1,columns:e==="mine"?{showRequest:!1,confirmMode:"action"}:e==="sent"?{confirmMode:"time"}:{}}}}import{useMemo as nM}from"react";import{useKeyboardState as rM}from"@ehfuse/keyboard-state";var cb=[{key:"g l",view:"list"},{key:"g b",view:"card"},{key:"g k",view:"kanban"},{key:"g s",view:"sprint"},{key:"g c",view:"calendar"},{key:"g m",view:"month"},{key:"g t",view:"timeline"}];function CX(e,t={}){let{enabled:o=!0,views:n}=t,{onCreateTask:r,onFocusSearch:i,onToggleHelp:a,onChangeView:l,onRefresh:s,onEscape:m}=e,c=n?n.join(","):"",p=nM(()=>{let d=[];if(r&&d.push({key:"n",callback:r,options:{preventDefault:!0}}),i&&d.push({key:"/",callback:i,options:{preventDefault:!0}}),s&&d.push({key:"r",callback:s,options:{preventDefault:!0}}),a&&d.push({key:"shift+?",callback:a,options:{preventDefault:!0}}),m&&d.push({key:"escape",callback:m,options:{allowInEditable:!0}}),l)for(let u of mb(c?c.split(","):void 0))d.push({key:u.key,callback:()=>l(u.view),options:{preventDefault:!0}});return d},[r,i,a,l,s,m,c]);rM(o?p:[])}function mb(e){if(!e)return cb;let t=new Set(e);return cb.filter(o=>t.has(o.view))}function tl(e){return[{keys:"N",description:"\uC0C8 \uC5C5\uBB34 \uB4F1\uB85D"},{keys:"/",description:"\uAC80\uC0C9"},{keys:"R",description:"\uBAA9\uB85D \uC0C8\uB85C\uACE0\uCE68"},...mb(e).map(t=>({keys:t.key.split(" ").map(o=>o.toUpperCase()).join(" \u2192 "),description:`${sb[t.view]} \uBCF4\uAE30`})),{keys:"?",description:"\uB2E8\uCD95\uD0A4 \uB3C4\uC6C0\uB9D0"},{keys:"Esc",description:"\uB2EB\uAE30"}]}var BX=tl();import{Box as ol,Button as aM}from"@mui/material";import lM from"@mui/icons-material/ArrowRightAlt";import{FormDialog as sM}from"@ehfuse/mui-form-dialog";import{useState as iM}from"react";var ub={id:"concept",tabTitle:"\uAC1C\uB150",intro:"\uC5C5\uBB34\uD568\uC740 '\uB204\uAC00 \uBB34\uC5C7\uC744 \uC5B8\uC81C\uAE4C\uC9C0 \uD558\uB294\uC9C0'\uB97C \uD55C \uACF3\uC5D0 \uBAA8\uC73C\uB294 \uB3C4\uAD6C\uC785\uB2C8\uB2E4. \uBA54\uC2E0\uC800\uC5D0 \uD769\uC5B4\uC9C4 \uC9C0\uC2DC\uC640 \uC5D1\uC140\uC5D0 \uC801\uC5B4 \uB454 \uB9C8\uAC10\uC77C \uB300\uC2E0, \uC5C5\uBB34\uB97C \uBCF4\uB0B8 \uC0AC\uB78C\uACFC \uBC1B\uC740 \uC0AC\uB78C\uC774 \uAC19\uC740 \uD654\uBA74\uC744 \uBD05\uB2C8\uB2E4.",topics:[{title:"\uC138 \uAC78\uC74C\uC774\uBA74 \uB05D",lead:"\uC5C5\uBB34 \uD558\uB098\uC758 \uC0DD\uC560\uB294 \uC774 \uC138 \uAC78\uC74C\uC785\uB2C8\uB2E4. \uB098\uBA38\uC9C0 \uAE30\uB2A5\uC740 \uC804\uBD80 \uC774 \uD750\uB984\uC744 \uB3D5\uB294 \uAC83\uC774\uB77C, \uC774\uAC83\uB9CC \uC54C\uBA74 \uCCAB\uB0A0\uBD80\uD130 \uC501\uB2C8\uB2E4.",steps:[{title:"\uB4F1\uB85D",desc:"\uC81C\uBAA9 \xB7 \uCC45\uC784\uC790 \xB7 \uB9C8\uAC10\uC608\uC815\uB9CC \uC801\uC5B4 \uBCF4\uB0C5\uB2C8\uB2E4."},{title:"\uD655\uC778",desc:"\uBC1B\uC740 \uC0AC\uB78C\uC774 \uD655\uC778\uD558\uACE0 \uCC98\uB9AC\uD55C \uB4A4 \uC644\uB8CC\uD569\uB2C8\uB2E4."},{title:"\uBCF4\uAD00",desc:"\uB05D\uB09C \uC5C5\uBB34\uB294 \uBCF4\uAD00\uD568\uC5D0 \uB0A8\uC544 \uC5B8\uC81C\uB4E0 \uB2E4\uC2DC \uCC3E\uC2B5\uB2C8\uB2E4."}]},{title:"\uC5C5\uBB34\uB97C \uB458\uB7EC\uC2FC \uC138 \uC0AC\uB78C",lead:"\uC5C5\uBB34\uB9C8\uB2E4 \uBCF4\uB0B8 \uC0AC\uB78C \uD558\uB098, \uBC1B\uC740 \uC0AC\uB78C \uD558\uB098, \uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC138 \uC5ED\uD560\uC774 \uBAA8\uB450 '\uAD00\uC5EC\uC790'\uC774\uACE0, \uACF5\uAC1C \uBC94\uC704\uAC00 **\uBE44\uACF5\uAC1C**\uC5EC\uB3C4 \uC11C\uB85C\uC5D0\uAC8C \uBCF4\uC785\uB2C8\uB2E4. \uB204\uAC00 \uBB34\uC5C7\uC744 \uB204\uB97C \uC218 \uC788\uB294\uC9C0\uB294 **\uC5ED\uD560** \uD0ED\uC5D0 \uBAA8\uC544 \uB450\uC5C8\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uC5C5\uBB34\uB97C \uBCF4\uB0B8 \uC0AC\uB78C. \uC5C5\uBB34\uC758 \uC8FC\uC778\uC785\uB2C8\uB2E4."},{term:"\uCC45\uC784\uC790",desc:"\uC5C5\uBB34\uB97C \uBC1B\uC544 \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C(\uD55C \uBA85)."},{term:"\uCC38\uC870\uC790",desc:"\uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4(\uC5EC\uB7EC \uBA85)."}]},{title:"\uBC1B\uC740 \uC5C5\uBB34\uC640 \uBCF4\uB0B8 \uC5C5\uBB34",lead:"\uD0ED\uC740 '\uB0B4\uAC00 \uBC1B\uC740 \uAC83'\uACFC '\uB0B4\uAC00 \uBCF4\uB0B8 \uAC83'\uC744 \uAC00\uB974\uB294 \uCD95\uC785\uB2C8\uB2E4. \uB0A8\uC774 \uC2DC\uD0A8 \uC77C\uACFC \uB0B4\uAC00 \uC2DC\uD0A8 \uC77C\uC774 \uC11E\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",items:[{term:"\uB0B4 \uC5C5\uBB34",desc:"\uB0B4\uAC00 \uCC45\uC784\uC790\uC774\uAC70\uB098 \uCC38\uC870\uC790\uC778 \uC5C5\uBB34 \u2014 \uBC1B\uC740 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uBCF4\uB0B8 \uC5C5\uBB34",desc:"\uB0B4\uAC00 \uB4F1\uB85D\uD574 \uB2E4\uB978 \uC0AC\uB78C\uC5D0\uAC8C \uB9E1\uAE34 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uC804\uCCB4",desc:"\uB0B4\uAC00 \uBCFC \uC218 \uC788\uB294 \uBAA8\uB4E0 \uC5C5\uBB34. \uB0B4 \uC5C5\uBB34\xB7\uCC45\uC784\uC790\uBCC4\xB7\uC77C\uC815 \uADF8\uB8F9\uC73C\uB85C \uB098\uB258\uC5B4 \uBCF4\uC785\uB2C8\uB2E4."},{term:"\uACF5\uC9C0\uC0AC\uD56D",desc:"\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815 \uB300\uC0C1\uC790\uC5D0\uAC8C \uC54C\uB9AC\uB294 \uAE00. \uB300\uC0C1\uC790\uB294 \uD655\uC778 \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4."},{term:"\uBCF4\uAD00\uD568",desc:'\uB05D\uB098\uC11C \uBCF4\uAD00\uB41C \uC5C5\uBB34\xB7\uC77C\uC815\uACFC \uD734\uC9C0\uD1B5. "\uC5C5\uBB34 \xB7 \uC77C\uC815 \u25BE" \uBA54\uB274\uB85C \uAD6C\uBD84\uC744 \uBC14\uAFD4 \uBD05\uB2C8\uB2E4.'}]},{title:"\uD655\uC778 \xB7 \uC644\uB8CC \xB7 \uAC80\uC218",subtitle:"\uC138 \uAC00\uC9C0 \uB2E4\uB978 \uB9D0",lead:"\uB2E4\uC2DC \uBB3B\uC9C0 \uC54A\uC544\uB3C4 \uB418\uB294 \uC774\uC720\uAC00 \uC5EC\uAE30 \uC788\uC2B5\uB2C8\uB2E4. \uC77D\uC5C8\uB294\uC9C0, \uB05D\uB0AC\uB294\uC9C0, \uAC80\uC218\uD588\uB294\uC9C0\uAC00 \uAC01\uAC01 \uD45C\uC2DC\uB85C \uB0A8\uC2B5\uB2C8\uB2E4.",items:[{term:"\uD655\uC778",desc:'"\uC77D\uC5C8\uB2E4". \uBC1B\uC740 \uC0AC\uB78C\uC774 **\uD655\uC778** \uBC84\uD2BC\uC744 \uB20C\uB7EC \uB0A8\uAE41\uB2C8\uB2E4. \uC544\uC9C1 \uD655\uC778\uD558\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uB294 \uBAA9\uB85D \uB9E8 \uC704 **\uBBF8\uD655\uC778** \uC601\uC5ED\uC5D0 \uBAA8\uC785\uB2C8\uB2E4.'},{term:"\uC644\uB8CC",desc:'"\uB05D\uB0AC\uB2E4". \uCC45\uC784\uC790\uB098 \uC791\uC131\uC790\uAC00 \uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB97C \uB204\uB985\uB2C8\uB2E4.'},{term:"\uAC80\uC218\uC644\uB8CC",desc:'"\uBD24\uB2E4, \uAD1C\uCC2E\uB2E4". \uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC791\uC131\uC790\uC5D0\uAC8C **\uAC80\uC218 \uB300\uAE30**\uB85C \uB0A8\uACE0, \uC791\uC131\uC790\uAC00 **\uAC80\uC218\uC644\uB8CC**\uB85C \uB0B4\uB9AC\uAC70\uB098 \uBBF8\uD761\uD558\uBA74 \uC0AC\uC720\uB97C \uC801\uC5B4 **\uB418\uB3CC\uB9BD\uB2C8\uB2E4**.'}]},{title:"\uB450 \uAC1C\uC758 \uB0A0\uC9DC",lead:"\uC5C5\uBB34\uC5D0\uB294 \uC2DC\uC791\uC77C\uC2DC\uC640 \uB9C8\uAC10\uC608\uC815 \uB450 \uB0A0\uC9DC\uAC00 \uC788\uACE0, \uC54C\uB9BC\uACFC \uCE98\uB9B0\uB354\uB294 \uC804\uBD80 \uC774 \uB458\uC744 \uAE30\uC900\uC73C\uB85C \uC6C0\uC9C1\uC785\uB2C8\uB2E4.",items:[{term:"\uC2DC\uC791\uC77C\uC2DC",desc:"\uC77C\uC744 \uC2DC\uC791\uD560 \uC2DC\uC810. \uCC45\uC784\uC790 \uC54C\uB9BC\uC740 \uC774\uB54C\uBD80\uD130 \uAC11\uB2C8\uB2E4. \uBE44\uC6CC \uB450\uBA74 \uBC14\uB85C \uC2DC\uC791\uC73C\uB85C \uBD05\uB2C8\uB2E4."},{term:"\uB9C8\uAC10\uC608\uC815",desc:"\uB05D\uB0B4\uAE30\uB85C \uD55C \uC2DC\uC810. \uC0AC\uC804\xB7\uB2F9\uC77C\xB7\uC9C0\uC5F0 \uC54C\uB9BC\uC758 \uAE30\uC900\uC774\uACE0, \uCE98\uB9B0\uB354\xB7\uD0C0\uC784\uB77C\uC778\uC5D0 \uB193\uC774\uB294 \uB0A0\uC9DC\uC785\uB2C8\uB2E4. \uC9C0\uB09C \uB9C8\uAC10\uB9CC \uBE68\uAC04\uC0C9\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4."}]}]};var db={id:"roles",tabTitle:"\uC5ED\uD560",intro:"\uC5C5\uBB34\uB9C8\uB2E4 \uBCF4\uB0B8 \uC0AC\uB78C(\uC791\uC131\uC790) \uD558\uB098, \uBC1B\uC544 \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C(\uCC45\uC784\uC790) \uD558\uB098, \uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4(\uCC38\uC870\uC790)\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC14B \uB2E4 '\uAD00\uC5EC\uC790'\uB77C\uC11C \uACF5\uAC1C \uBC94\uC704\uAC00 **\uBE44\uACF5\uAC1C**\uC5EC\uB3C4 \uC11C\uB85C\uC5D0\uAC8C \uBCF4\uC785\uB2C8\uB2E4. \uB204\uAC00 \uBB34\uC5C7\uC744 \uB204\uB97C \uC218 \uC788\uB294\uC9C0\uAC00 \uC774 \uD0ED\uC758 \uB0B4\uC6A9\uC785\uB2C8\uB2E4.",topics:[{title:"\uC791\uC131\uC790",subtitle:"\uC5C5\uBB34\uC758 \uC8FC\uC778",lead:"\uC5C5\uBB34\uB97C \uB4F1\uB85D\uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uB0B4\uC6A9\uC744 \uC815\uD558\uACE0 \uACB0\uACFC\uB97C \uAC80\uC218\uD558\uB294 \uC790\uB9AC\uB77C, \uC5C5\uBB34\uB97C \uC5C6\uC568 \uC218 \uC788\uB294 \uC720\uC77C\uD55C \uC5ED\uD560\uC785\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uBB34\uC5C7\uC744 \uC5B8\uC81C\uAE4C\uC9C0 \uD560\uC9C0 \uC801\uC5B4 \uCC45\uC784\uC790\uC5D0\uAC8C \uBCF4\uB0C5\uB2C8\uB2E4. \uB05D\uB09C \uB4A4 \uACB0\uACFC\uB97C \uBCF4\uACE0 **\uAC80\uC218\uC644\uB8CC**\uB85C \uB0B4\uB9AC\uAC70\uB098, \uBBF8\uD761\uD558\uBA74 \uC0AC\uC720\uB97C \uC801\uC5B4 **\uB418\uB3CC\uB9BD\uB2C8\uB2E4**."},{term:"\uC218\uC815",desc:"\uC81C\uBAA9\xB7\uB9C8\uAC10\uC608\uC815\xB7\uCC45\uC784\uC790\xB7\uCC38\uC870\uC790\xB7\uB0B4\uC6A9 \uC804\uBD80 \uACE0\uCE69\uB2C8\uB2E4. \uBC14\uAFBC \uB0B4\uC6A9\uC740 \uC7A0\uC2DC \uBAA8\uC544 \uD55C \uAC74\uC758 \uC218\uC815 \uC54C\uB9BC\uC73C\uB85C \uAC11\uB2C8\uB2E4."},{term:"\uC644\uB8CC",desc:"\uC9C1\uC811 \uC644\uB8CC \uCCB4\uD06C\uB97C \uB204\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uBCF8\uC778\uC774 \uC644\uB8CC\uD558\uBA74 \uAC80\uC218 \uB2E8\uACC4\uAC00 \uC5C6\uC5B4 \uADF8\uB300\uB85C \uB05D\uC785\uB2C8\uB2E4."},{term:"\uB418\uB3CC\uB9AC\uAE30",desc:"\uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB97C **\uAC80\uC218 \uB300\uAE30\uC778 \uB3D9\uC548\uB9CC** \uC0AC\uC720\uC640 \uD568\uAED8 \uB418\uB3CC\uB9BD\uB2C8\uB2E4. \uC0AC\uC720\uB294 \uB313\uAE00\uB85C \uB0A8\uACE0 \uC644\uB8CC\uD55C \uC0AC\uB78C\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uC791\uC131\uC790 \uBCF8\uC778\uB9CC \uC0AD\uC81C\uD569\uB2C8\uB2E4(\uAD00\uB9AC\uC790 \uAD8C\uD55C\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB985\uB2C8\uB2E4). \uC0AD\uC81C\uD55C \uC5C5\uBB34\uB294 \uBCF4\uAD00\uD568\uC758 \uD734\uC9C0\uD1B5\uC5D0 \uB0A8\uC2B5\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:"\uD655\uC778 \uB300\uC0C1\uC5D0\uC11C **\uBE60\uC9D1\uB2C8\uB2E4** \u2014 \uB0B4\uAC00 \uC4F4 \uAE00\uC744 \uB0B4\uAC00 \uC77D\uC5C8\uB2E4\uACE0 \uB0A8\uAE38 \uC77C\uC740 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."}]},{title:"\uCC45\uC784\uC790",subtitle:"\uBC1B\uC544\uC11C \uCC98\uB9AC\uD558\uB294 \uC0AC\uB78C",lead:"\uC5C5\uBB34\uB97C \uC2E4\uC81C\uB85C \uCC98\uB9AC\uD558\uB294 \uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uC5C5\uBB34\uB97C \uBC1B\uC73C\uBA74 \uC2DC\uC791\uC77C\uC2DC\uBD80\uD130 \uC54C\uB9BC\uC774 \uC624\uACE0, \uBAA9\uB85D\uC5D0\uC11C\uB294 '\uB0B4 \uC5C5\uBB34'\uB85C \uBAA8\uC785\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uB0B4\uC6A9\uC744 \uD655\uC778\uD558\uACE0 \uCC98\uB9AC\uD55C \uB4A4 \uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB97C \uB204\uB985\uB2C8\uB2E4. \uC644\uB8CC\uD558\uBA74 \uC791\uC131\uC790\uC5D0\uAC8C **\uAC80\uC218 \uB300\uAE30**\uB85C \uB118\uC5B4\uAC11\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:'**\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C "\uC77D\uC5C8\uB2E4"\uB97C \uB0A8\uAE41\uB2C8\uB2E4. \uCC45\uC784\uC790\uAC00 \uD655\uC778\uD558\uBA74 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4.'},{term:"\uC218\uC815",desc:"\uACE0\uCE60 \uC218 \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uC9C4\uD589\uD558\uB2E4 \uBCF4\uBA74 \uB9C8\uAC10\uC608\uC815\xB7\uB0B4\uC6A9\uC774 \uB2EC\uB77C\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uC0C1\uD0DC\xB7\uBE44\uACE0\xB7\uD560\uC77C\uB3C4 \uBAA9\uB85D\uC5D0\uC11C \uBC14\uB85C \uACE0\uCE69\uB2C8\uB2E4."},{term:"\uD560\uC77C\uB85C \uB098\uB204\uAE30",desc:"\uD070 \uC5C5\uBB34\uB294 \uD560\uC77C(\uCCB4\uD06C\uB9AC\uC2A4\uD2B8)\uB85C \uCABC\uAC1C\uACE0, \uD544\uC694\uD558\uBA74 \uD560\uC77C\uC744 \uBCC4\uB3C4 \uC5C5\uBB34\uB85C \uC2B9\uACA9\uD574 \uB2E4\uB978 \uC0AC\uB78C\uC5D0\uAC8C \uB9E1\uAE41\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB0A8\uC774 \uB9E1\uAE34 \uC77C\uC744 \uBC1B\uC740 \uCABD\uC774 \uC5C6\uC568 \uC218\uB294 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4 \u2014 \uB418\uB3CC\uB9B4 \uC77C\uC774\uBA74 \uB313\uAE00\uB85C \uC54C\uB9BD\uB2C8\uB2E4."},{term:"\uD55C \uBA85\uBFD0",desc:"\uCC45\uC784\uC790\uB294 \uD55C \uC0AC\uB78C\uC785\uB2C8\uB2E4. \uC5EC\uB7FF\uC774 \uB098\uB220\uC57C \uD558\uB294 \uC77C\uC740 \uD560\uC77C\uB85C \uCABC\uAC1C\uAC70\uB098 \uC5C5\uBB34\uB97C \uB098\uB220 \uB4F1\uB85D\uD569\uB2C8\uB2E4."}]},{title:"\uCC38\uC870\uC790",subtitle:"\uD568\uAED8 \uC54C\uC544\uC57C \uD560 \uC0AC\uB78C\uB4E4",lead:"\uC9C1\uC811 \uCC98\uB9AC\uD558\uC9C0\uB294 \uC54A\uC9C0\uB9CC \uB0B4\uC6A9\uC744 \uC54C\uC544\uC57C \uD558\uB294 \uC0AC\uB78C\uB4E4\uC785\uB2C8\uB2E4. \uC5EC\uB7EC \uBA85\uC744 \uB458 \uC218 \uC788\uACE0, \uC77D\uC5C8\uB2E4\uB294 \uD45C\uC2DC\uB9CC \uB0A8\uAE41\uB2C8\uB2E4.",items:[{term:"\uD558\uB294 \uC77C",desc:"\uB0B4\uC6A9\uC744 \uC77D\uACE0 \uD544\uC694\uD558\uBA74 \uB313\uAE00\uB85C \uC758\uACAC\uC744 \uB2F5\uB2C8\uB2E4. **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4."},{term:"\uD655\uC778",desc:"\uD655\uC778 \uB300\uC0C1\uC785\uB2C8\uB2E4. \uCC38\uC870\uC790\uC758 \uD655\uC778\uC740 \uC54C\uB9BC\uC744 \uB9CC\uB4E4\uC9C0 \uC54A\uACE0 \uD655\uC778 \uD604\uD669(n/m)\uC5D0\uB9CC \uBC18\uC601\uB429\uB2C8\uB2E4 \u2014 \uC0AC\uB78C\uC774 \uB9CE\uC544 \uC54C\uB9BC\uC774 \uC2DC\uB044\uB7EC\uC6CC\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uC218\uC815",desc:"\uC0C1\uD0DC\xB7\uB77C\uBCA8\xB7\uBE44\uACE0\xB7\uD560\uC77C\xB7\uCCA8\uBD80\xB7\uB313\uAE00 \uAC19\uC740 **\uC9C4\uD589 \uD56D\uBAA9**\uC740 \uCC38\uC870\uC790\uB3C4 \uC501\uB2C8\uB2E4. \uC81C\uBAA9\xB7\uB0B4\uC6A9\xB7\uC77C\uC815\xB7\uCC45\uC784\uC790\xB7\uACF5\uAC1C\uBC94\uC704 \uAC19\uC740 **\uC57D\uC18D**\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB77C \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB9CC \uACE0\uCE60 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uAE30\uBCF8\uC740 \uCC38\uC870\uC790\uB3C4 \uAC00\uB2A5). \uC644\uB8CC \uCCB4\uD06C\uB294 \uC5B8\uC81C\uB098 \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB9CC."},{term:"\uC644\uB8CC \xB7 \uC0AD\uC81C",desc:"\uB458 \uB2E4 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uCC38\uC870\uB294 '\uBCF4\uB294 \uC790\uB9AC'\uC785\uB2C8\uB2E4."},{term:"\uB9C8\uAC10 \uC54C\uB9BC",desc:"\uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB9C8\uAC10 \uACC4\uC5F4 \uC54C\uB9BC\uC740 \uCC45\uC784\uC790\xB7\uC791\uC131\uC790\uC5D0\uAC8C\uB9CC \uAC11\uB2C8\uB2E4(\uCC38\uC870\uC790\uAE4C\uC9C0 \uBCF4\uB0B4\uBA74 \uC18C\uC74C\uC774 \uB429\uB2C8\uB2E4)."}]},{title:"\uAD8C\uD55C \uD55C\uB208\uC5D0",lead:"\uAC19\uC740 \uC5C5\uBB34\uB97C \uBCF4\uACE0 \uC788\uC5B4\uB3C4 \uB204\uB97C \uC218 \uC788\uB294 \uBC84\uD2BC\uC774 \uB2E4\uB985\uB2C8\uB2E4. \uBC84\uD2BC\uC774 \uC548 \uBCF4\uC774\uBA74 \uAD8C\uD55C\uC774 \uC5C6\uB294 \uAC83\uC785\uB2C8\uB2E4(\uC7A0\uAE34 \uCC44\uB85C \uBCF4\uC774\uC9C0 \uC54A\uACE0 \uC544\uC608 \uC228\uC2B5\uB2C8\uB2E4).",items:[{term:"\uC218\uC815",desc:"\uC9C4\uD589 \uD56D\uBAA9(\uC0C1\uD0DC\xB7\uB77C\uBCA8\xB7\uBE44\uACE0\xB7\uD560\uC77C \uB4F1)\uC740 \uAD00\uC5EC\uC790 \uC804\uC6D0. **\uC57D\uC18D**(\uC81C\uBAA9\xB7\uB0B4\uC6A9\xB7\uC77C\uC815\xB7\uBC30\uC815\xB7\uACF5\uAC1C\uBC94\uC704)\uC740 \uC870\uC9C1 \uC124\uC815\uC5D0 \uB530\uB77C \uC791\uC131\uC790\xB7\uCC45\uC784\uC790\uB85C \uC81C\uD55C\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uAD00\uC5EC\uC790\uAC00 \uC544\uB2C8\uBA74 \uC5F4\uB78C\uB9CC \uB429\uB2C8\uB2E4."},{term:"\uC644\uB8CC \xB7 \uC644\uB8CC \uD574\uC81C",desc:"\uC791\uC131\uC790 \xB7 \uCC45\uC784\uC790."},{term:"\uAC80\uC218\uC644\uB8CC \xB7 \uB418\uB3CC\uB9AC\uAE30",desc:"\uC791\uC131\uC790\uB9CC. \uB0A8\uC774 \uC644\uB8CC\uD55C \uC5C5\uBB34\uAC00 \uAC80\uC218 \uB300\uAE30\uC77C \uB54C\uB9CC \uB098\uC635\uB2C8\uB2E4."},{term:"\uC0AD\uC81C",desc:"\uC791\uC131\uC790\uB9CC."},{term:"\uD655\uC778",desc:"\uCC45\uC784\uC790 \xB7 \uCC38\uC870\uC790 \u2014 \uC791\uC131\uC790\uB294 \uC81C\uC678."},{term:"\uB313\uAE00",desc:"\uBCFC \uC218 \uC788\uB294 \uC0AC\uB78C \uB204\uAD6C\uB098."}]},{title:"\uACF5\uC9C0\uC0AC\uD56D\uC740 \uADDC\uCE59\uC774 \uB2E4\uB985\uB2C8\uB2E4",lead:"\uACF5\uC9C0\uB294 '\uB9E1\uAE30\uB294 \uC77C'\uC774 \uC544\uB2C8\uB77C '\uC54C\uB9AC\uB294 \uAE00'\uC774\uB77C \uCC45\uC784\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uB300\uC0C1\uC790\uAC00 \uACE7 \uC77D\uC5B4\uC57C \uD560 \uC0AC\uB78C\uB4E4\uC785\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uACF5\uC9C0\uB97C \uC62C\uB9B0 \uC0AC\uB78C. \uC218\uC815\xB7\uAC8C\uC2DC\uC885\uB8CC\xB7\uC0AD\uC81C\uB97C \uD63C\uC790 \uB9E1\uC2B5\uB2C8\uB2E4(\uAD00\uB9AC\uC790\uB3C4 \uB0A8\uC758 \uACF5\uC9C0\uB294 \uACE0\uCE58\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4)."},{term:"\uB300\uC0C1\uC790",desc:"\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815\uD55C \uC0AC\uB78C\uB4E4. **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE30\uACE0, \uC791\uC131\uC790\uB294 \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C \uB204\uAC00 \uC548 \uC77D\uC5C8\uB294\uC9C0 \uBD05\uB2C8\uB2E4."},{term:"\uD655\uC778 \uC54C\uB9BC",desc:"\uB300\uC0C1\uC790\uAC00 \uD655\uC778\uD574\uB3C4 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC804 \uC9C1\uC6D0 \uACF5\uC9C0\uB77C\uBA74 \uC54C\uB9BC\uC774 \uC0AC\uB78C \uC218\uB9CC\uD07C \uC3DF\uC544\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uBC18\uBCF5 \uACF5\uC9C0",desc:"\uB9E4\uC8FC \uC548\uC804\uAD50\uC721\uCC98\uB7FC \uB418\uD480\uC774\uD558\uB294 \uC548\uB0B4\uB294 **\uBC18\uBCF5**\uC744 \uAC78 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD68C\uCC28\uB9C8\uB2E4 \uC0C8 \uACF5\uC9C0\uAC00 \uB418\uC5B4 \uB300\uC0C1\uC790\uAC00 \uADF8\uB54C\uADF8\uB54C \uB2E4\uC2DC \uD655\uC778\uD558\uACE0, \uBAA9\uB85D\uC5D0\uB294 **\uC9C0\uAE08 \uAC8C\uC2DC\uD560 \uD68C\uCC28 1\uAC74\uB9CC** \uBCF4\uC785\uB2C8\uB2E4. \uB2E4\uC74C \uD68C\uCC28\uB294 **\uAC8C\uC2DC\uC77C\uC2DC**\uAC00 \uB418\uBA74 \uC2A4\uC2A4\uB85C \uC62C\uB77C\uC624\uBA74\uC11C \uB300\uC0C1\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4(\uADF8 \uC804\uAE4C\uC9C0\uB294 \uAC8C\uC2DC\uC608\uC815)."}]},{title:"\uACE0\uAC1D\uC13C\uD130 \uC5C5\uBB34\uB294 \uC791\uC131\uC790\uAC00 \uC678\uBD80\uC785\uB2C8\uB2E4",feature:"support",lead:"\uAC00\uB9F9\uC810\xB7\uD648\uD398\uC774\uC9C0\uC5D0\uC11C \uB4E4\uC5B4\uC628 \uBB38\uC758\uB294 \uC791\uC131\uC790\uAC00 \uC6B0\uB9AC \uC9C1\uC6D0\uC774 \uC544\uB2C8\uB77C, \uAD00\uC5EC\uC790 \uADDC\uCE59\uC744 \uADF8\uB300\uB85C \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC791\uC131\uC790",desc:"\uBB38\uC758\uB97C \uB0A8\uAE34 \uACE0\uAC1D(\uC9C1\uC6D0 \uBA85\uBD80\uC5D0 \uC5C6\uB294 \uC678\uBD80 \uACC4\uC815). \uC6B0\uB9AC \uCABD \uAD00\uC5EC\uC790 \uD310\uC815\uC5D0\uC11C\uB294 \uBE60\uC9D1\uB2C8\uB2E4."},{term:"\uC218\uC815",desc:"\uC5F4\uB78C\uD560 \uC218 \uC788\uB294 \uC9C1\uC6D0 \uB204\uAD6C\uB098 \uACE0\uCE69\uB2C8\uB2E4 \u2014 \uAD00\uC5EC\uC790\uAC00 \uC5C6\uC5B4 \uC544\uBB34\uB3C4 \uC190\uB300\uC9C0 \uBABB\uD558\uBA74 \uB2F5\uBCC0\uC744 \uB2EC \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4."},{term:"\uCC45\uC784\uC790",desc:"**\uAC00\uC838\uAC00\uAE30**\uB85C \uC815\uD574\uC9D1\uB2C8\uB2E4. \uBA3C\uC800 \uC7A1\uC740 \uC0AC\uB78C\uC774 \uB2F5\uBCC0\uC744 \uB9E1\uC2B5\uB2C8\uB2E4."},{term:"\uB2F5\uBCC0",desc:"\uC9C1\uC6D0\uC774 \uB2E8 \uB313\uAE00\uC774 \uACE7 \uB2F5\uBCC0\uC785\uB2C8\uB2E4. \uACE0\uAC1D\uC5D0\uAC8C\uB294 \uB2F5\uBCC0 \uC54C\uB9BC\uB9CC \uAC00\uACE0, \uC5C5\uBB34\uD568\uC758 \uB2E4\uB978 \uC54C\uB9BC\uC740 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uD655\uC778 \xB7 \uAC80\uC218",desc:"\uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uACE0\uAC1D\uC774 \uD655\uC778 \uBC84\uD2BC\uC744 \uB204\uB97C \uD654\uBA74\uC774 \uC5C6\uC5B4 \uD655\uC778\xB7\uAC80\uC218 \uC6CC\uD06C\uD50C\uB85C\uB97C \uD0DC\uC6B0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]}]};var pb={id:"basics",tabTitle:"\uAE30\uBCF8 \uC0AC\uC6A9",intro:"\uB9E4\uC77C \uC4F0\uB294 \uC870\uC791\uB9CC \uBAA8\uC558\uC2B5\uB2C8\uB2E4. \uAC1C\uB150 \uD0ED\uC758 \uC138 \uAC78\uC74C \uC21C\uC11C \uADF8\uB300\uB85C\uC785\uB2C8\uB2E4.",topics:[{title:"1. \uB4F1\uB85D\uD558\uAE30",lines:["**\uC0C8\uB85C \uB9CC\uB4E4\uAE30** \uBC84\uD2BC(\uB2E8\uCD95\uD0A4 **N**) \u203A \uC81C\uBAA9 \xB7 \uCC45\uC784\uC790 \xB7 \uB9C8\uAC10\uC608\uC815\uC744 \uC801\uACE0 \uC800\uC7A5\uD569\uB2C8\uB2E4. \uB0B4\uC6A9\xB7\uCC38\uC870\uC790\xB7\uC2DC\uC791\uC77C\uC2DC\xB7\uC911\uC694\uB3C4\uB294 \uD544\uC694\uD560 \uB54C\uB9CC \uCC44\uC6C1\uB2C8\uB2E4.","**\uACF5\uAC1C \uBC94\uC704** : \uBE44\uACF5\uAC1C(\uAD00\uC5EC\uC790\uB9CC) / \uBD80\uC11C\uACF5\uAC1C / \uC804\uCCB4\uACF5\uAC1C. \uCC45\uC784\uC790\uAC00 \uC5C6\uB294 \uACF5\uAC1C \uC5C5\uBB34\uB294 \uC5F4\uB78C\uC790\uAC00 **\uAC00\uC838\uAC00\uAE30**\uB85C \uB9E1\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","**\uBC18\uBCF5** \uC5C5\uBB34\uB294 \uB9E4\uC77C\xB7\uB9E4\uC8FC\xB7\uB9E4\uC6D4 \uD68C\uCC28\uB85C \uB9CC\uB4E4\uC5B4\uC9C0\uACE0, **\uC77C\uC815**\uC740 \uC2DC\uAC01\uC774 \uC788\uB294 \uD589\uC0AC\uB77C \uC644\uB8CC \uB300\uC2E0 \uCE98\uB9B0\uB354\uC5D0 \uB193\uC785\uB2C8\uB2E4."]},{title:"2. \uD560\uC77C \uB098\uB204\uAE30",subtitle:"\uD63C\uC790 \uD558\uAE30 \uD070 \uC5C5\uBB34\uB77C\uBA74",lead:"\uC5C5\uBB34 \uD558\uB098\uB97C \uC798\uAC8C \uCABC\uAC1C \uC9C4\uD589\uC744 \uB208\uC5D0 \uBCF4\uC774\uAC8C \uD558\uACE0, \uD544\uC694\uD558\uBA74 \uC870\uAC01\uC744 \uD300\uC6D0\uC5D0\uAC8C \uB098\uB220 \uB9E1\uAE41\uB2C8\uB2E4. \uCABC\uAC24 \uC77C\uC774 \uC544\uB2C8\uBA74 \uAC74\uB108\uB6F0\uC5B4\uB3C4 \uB429\uB2C8\uB2E4.",lines:["\uC0C1\uC138\uC758 **\uD560\uC77C**\uC5D0 \uD56D\uBAA9\uC744 \uC801\uACE0 **Enter** \uB610\uB294 \uC624\uB978\uCABD **[+]** \uB85C \uCD94\uAC00\uD569\uB2C8\uB2E4. \uCD94\uAC00\uC640 \uCCB4\uD06C\uB294 **\uB204\uAD6C\uB098** \uD560 \uC218 \uC788\uACE0(\uD568\uAED8 \uC4F0\uB294 \uCE78), \uD56D\uBAA9 \uC0AD\uC81C\uB9CC \uC218\uC815 \uAD8C\uD55C\uC774 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.",'\uC9C4\uD589\uC740 \uBAA9\uB85D\xB7\uCE74\uB4DC\uC5D0 **"1/3"** \uCC98\uB7FC \uBCF4\uC5EC\uC11C, \uBB3B\uC9C0 \uC54A\uC544\uB3C4 \uC5B4\uB514\uAE4C\uC9C0 \uB410\uB294\uC9C0 \uB4DC\uB7EC\uB0A9\uB2C8\uB2E4. \uB370\uC2A4\uD06C\uD1B1\uC5D0\uC11C\uB294 \uD578\uB4E4\uB85C \uB04C\uC5B4 \uC21C\uC11C\uB97C \uBC14\uAFC9\uB2C8\uB2E4.',"\uD56D\uBAA9\uC5D0 \uB9C8\uC6B0\uC2A4\uB97C \uC62C\uB824 **\uC5C5\uBB34\uB85C \uB9CC\uB4E4\uAE30**\uB97C \uB204\uB974\uBA74 \uADF8 \uD56D\uBAA9\uC774 **\uBCC4\uB3C4 \uC5C5\uBB34**\uAC00 \uB429\uB2C8\uB2E4 \u2014 \uCC45\uC784\uC790\uC640 \uB9C8\uAC10\uC608\uC815\uC744 \uB530\uB85C \uC815\uD574 \uB098\uB220 \uB9E1\uAE38 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","\uC774\uBBF8 \uC788\uB294 \uC5C5\uBB34\uB97C \uD560\uC77C\uC5D0 **\uBD99\uC77C** \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4(\uC785\uB825\uCE78 \uC67C\uCABD \uB9C1\uD06C \uBC84\uD2BC).","\uC5F0\uACB0\uB41C \uD56D\uBAA9\uC758 \uCCB4\uD06C\uB294 \uACE7 **\uADF8 \uC5C5\uBB34\uC758 \uC644\uB8CC**\uC785\uB2C8\uB2E4. \uADF8\uB798\uC11C \uCCB4\uD06C\uB3C4 \uADF8 \uC5C5\uBB34\uC758 \uC644\uB8CC \uAD8C\uD55C\uC774 \uC788\uB294 \uC0AC\uB78C(\uC791\uC131\uC790\xB7\uCC45\uC784\uC790)\uB9CC \uB204\uB97C \uC218 \uC788\uACE0, \uD300\uC6D0\uC774 \uC790\uAE30 \uC5C5\uBB34\uB97C \uB05D\uB0B4\uBA74 \uC774\uCABD \uD560\uC77C\uB3C4 \uC800\uC808\uB85C \uCCB4\uD06C\uB429\uB2C8\uB2E4.","\uC5F0\uACB0 \uC5C5\uBB34\uB97C \uD734\uC9C0\uD1B5\uC5D0 \uBCF4\uB0B4\uBA74 \uD560\uC77C\uC5D0\uC11C\uB3C4 \uD568\uAED8 \uBE60\uC9D1\uB2C8\uB2E4."]},{title:"3. \uC5F4\uC5B4 \uBCF4\uACE0 \uB300\uD654\uD558\uAE30",lines:["\uD589\uC744 \uB204\uB974\uBA74 \uC624\uB978\uCABD\uC5D0 \uC0C1\uC138\uAC00 \uC5F4\uB9BD\uB2C8\uB2E4(\uBAA8\uBC14\uC77C\uC740 \uC804\uCCB4 \uD654\uBA74). \uC81C\uBAA9\uACFC \uC18D\uC131\uC740 \uADF8 \uC790\uB9AC\uC5D0\uC11C \uB20C\uB7EC \uACE0\uCE69\uB2C8\uB2E4.","\uC5C5\uBB34 \uB300\uD654\uB294 **\uB313\uAE00**\uB85C \uD569\uB2C8\uB2E4. \uD30C\uC77C\uC744 \uBD99\uC774\uACE0, **\uD655\uC778(\u2713)\xB7\uC88B\uC544\uC694** \uBC18\uC751\uC73C\uB85C \uC77D\uC5C8\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4. \uB313\uAE00\uC740 \uC791\uC131\uC790\uC640 \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC00\uC11C \uB2F5\uAE00 \uD750\uB984\uC774 \uB04A\uAE30\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","**\uD65C\uB3D9** \uC544\uC774\uCF58\uC5D0\uC11C \uB4F1\uB85D\xB7\uC218\uC815\xB7\uD655\uC778\xB7\uC644\uB8CC \uC774\uB825\uC744 \uBD05\uB2C8\uB2E4. \uBAA8\uBC14\uC77C \uC0C1\uC138\uB294 **\u22EE** \uC5D0 \uD65C\uB3D9\xB7\uACF5\uC720\xB7\uC0AD\uC81C\uAC00 \uC788\uACE0, \uACE0\uCE5C \uB0B4\uC6A9\uC740 **\uC800\uC7A5\uD558\uAE30**\uB85C \uD55C \uBC88\uC5D0 \uBCF4\uB0C5\uB2C8\uB2E4."]},{title:"4. \uD655\uC778\uD558\uAE30",lines:["\uBC1B\uC740 \uC5C5\uBB34\uB294 **\uD655\uC778** \uBC84\uD2BC\uC73C\uB85C \uC77D\uC74C\uC744 \uB0A8\uAE41\uB2C8\uB2E4. \uD655\uC778 \uC804 \uC5C5\uBB34\uB294 \uBAA9\uB85D \uB9E8 \uC704 **\uBBF8\uD655\uC778** \uC601\uC5ED(\uBAA8\uBC14\uC77C\uC740 \uBBF8\uD655\uC778 \uADF8\uB8F9)\uC5D0 \uBAA8\uC5EC \uC788\uC2B5\uB2C8\uB2E4.","\uD655\uC778 \uC5F4\uC758 **n/m** \uC744 \uB204\uB974\uBA74 \uB204\uAC00 \uD655\uC778\uD588\uB294\uC9C0 \uBCF4\uC774\uACE0, \uC791\uC131\uC790\uB294 \uBBF8\uD655\uC778\uC790\uC5D0\uAC8C **\uD655\uC778 \uC694\uCCAD**\uC744 \uB2E4\uC2DC \uBCF4\uB0BC \uC218 \uC788\uC2B5\uB2C8\uB2E4."]},{title:"5. \uC9C4\uD589\uD558\uACE0 \uC644\uB8CC\uD558\uAE30",lines:["\uC0C1\uD0DC \uCE69\uC744 \uB204\uB974\uBA74 \uC2DC\uC791\uC804 \u203A \uC9C4\uD589\uC911 \u203A \uBCF4\uB958\uB97C \uACE0\uB985\uB2C8\uB2E4.","\uC644\uB8CC \uCCB4\uD06C(\u25CB)\uB294 **\uC791\uC131\uC790\uC640 \uCC45\uC784\uC790\uB9CC** \uB204\uB97C \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB9C8\uAC10\uC608\uC815\uC774 \uBE44\uC5B4 \uC788\uC73C\uBA74 \uC644\uB8CC \uC2DC\uAC01\uC73C\uB85C \uCC44\uC6CC\uC9D1\uB2C8\uB2E4."]},{title:"6. \uAC80\uC218\uD558\uAE30",subtitle:"\uAC80\uC218\uC644\uB8CC \xB7 \uB418\uB3CC\uB9AC\uAE30",lines:["\uCC45\uC784\uC790\uAC00 \uC644\uB8CC\uD558\uBA74 \uC791\uC131\uC790\uC758 \uBAA9\uB85D \uB9E8 \uC704\uC5D0 **\uAC80\uC218 \uB300\uAE30**\uB85C \uB0A8\uC2B5\uB2C8\uB2E4(\uC644\uB8CC \uC228\uAE30\uAE30\uC640 \uBB34\uAD00, \uBAA8\uBC14\uC77C\uC740 \uBBF8\uD655\uC778 \uADF8\uB8F9).","\uACB0\uACFC\uAC00 \uAD1C\uCC2E\uC73C\uBA74 **\uAC80\uC218\uC644\uB8CC** \uBC84\uD2BC\uC73C\uB85C \uB0B4\uB9BD\uB2C8\uB2E4. \uBBF8\uD761\uD558\uBA74 \uC644\uB8CC \uCCB4\uD06C\uB97C \uD574\uC81C(\uC0C1\uC138\uC758 **\uB418\uB3CC\uB9AC\uAE30**)\uD558\uBA70 \uC0AC\uC720\uB97C \uC801\uC2B5\uB2C8\uB2E4 \u2014 \uC0AC\uC720\uB294 \uB313\uAE00\uB85C \uB0A8\uACE0, \uC0C1\uD0DC\uB294 \uC9C4\uD589\uC911\uC73C\uB85C \uB3CC\uC544\uAC00\uACE0, \uC644\uB8CC\uD55C \uC0AC\uB78C\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uAC11\uB2C8\uB2E4.","**\uB418\uB3CC\uB9AC\uAE30\uB294 \uAC80\uC218 \uC804\uC5D0\uB9CC** \uB098\uC635\uB2C8\uB2E4 \u2014 \uAC80\uC218\uC644\uB8CC\uB97C \uB204\uB978 \uB4A4\uC5D0\uB294 \uC0AC\uC720 \uC5C6\uC774 \uB0B4\uB9AC\uB294 **\uC644\uB8CC \uD574\uC81C**\uB85C \uBC14\uB01D\uB2C8\uB2E4.","\uBCF8\uC778\uC774 \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uAC80\uC218 \uB300\uC0C1\uC774 \uC544\uB2C8\uB77C \uCC98\uC74C\uBD80\uD130 **\uC644\uB8CC \uD574\uC81C**\uC785\uB2C8\uB2E4."]},{title:"7. \uBCF4\uAD00\uD558\uAE30 \xB7 \uC0AD\uC81C\uD558\uAE30",lines:["\uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC124\uC815 \uAE30\uAC04(\uAE30\uBCF8 7\uC77C) \uB4A4 \uC0C8\uBCBD\uC5D0 \uC790\uB3D9\uC73C\uB85C **\uBCF4\uAD00\uD568**\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4. \uC6B0\uD074\uB9AD \u203A **\uBCF4\uAD00**\uC73C\uB85C \uBC14\uB85C \uBCF4\uB0B4\uACE0, \uBCF4\uAD00\uD568\uC758 **\uBCF4\uAD00 \uD574\uC81C**\uB85C \uB418\uB3CC\uB9BD\uB2C8\uB2E4.","\uC0AD\uC81C\uB294 \uC791\uC131\uC790\uB9CC \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uC0C1\uC138\uC758 \uD734\uC9C0\uD1B5 \uC544\uC774\uCF58). \uC9C0\uC6B4 \uC5C5\uBB34\uB294 **\uD734\uC9C0\uD1B5**\uC5D0\uC11C \uB418\uC0B4\uB9B4 \uC218 \uC788\uACE0, \uC124\uC815 \uAE30\uAC04(\uAE30\uBCF8 90\uC77C) \uB4A4 \uC601\uAD6C \uC0AD\uC81C\uB429\uB2C8\uB2E4.",'\uBC18\uBCF5 \uC5C5\uBB34\uB294 \uC644\uB8CC\xB7\uC0AD\uC81C\uD560 \uB54C "\uC774 \uD68C\uCC28\uB9CC / \uC774\uD6C4 \uC804\uCCB4"\uB97C \uACE0\uB985\uB2C8\uB2E4.']}]};var fb={id:"notify",tabTitle:"\uC54C\uB9BC",intro:"\uC54C\uB9BC\uC740 \uBCA8(\uC5C5\uBB34\uD568 \uC548)\uACFC \uC571 \uD478\uC2DC \uB450 \uAC08\uB798\uB85C \uAC11\uB2C8\uB2E4. \uC544\uB798 \uD45C\uC758 '\uBC1B\uB294 \uC0AC\uB78C'\uC5D0 \uC5C6\uC73C\uBA74 \uADF8 \uC77C\uC774 \uC77C\uC5B4\uB098\uB3C4 \uC54C\uB9BC\uC774 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC54C\uB9BC\uC744 \uC904\uC774\uB294 \uCABD\uC73C\uB85C \uC815\uD55C \uADDC\uCE59\uC774 \uB9CE\uC544, \uAD00\uC5EC\uC790\uB77C\uACE0 \uC804\uBD80 \uBC1B\uB294 \uAC83\uC740 \uC544\uB2D9\uB2C8\uB2E4.",topics:[{title:"\uC5C5\uBB34\uB97C \uB9E1\uACE0 \uBC1B\uC744 \uB54C",items:[{term:"\uCC45\uC784\uC790\uB85C \uC9C0\uC815",desc:"\uC0C8 **\uCC45\uC784\uC790**\uC5D0\uAC8C. \uCC45\uC784\uC790\uB97C \uBC14\uAFB8\uBA74 \uC0C8 \uCC45\uC784\uC790\uB9CC \uBC1B\uC2B5\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790\uB85C \uCD94\uAC00",desc:"\uC0C8\uB85C \uCD94\uAC00\uB41C **\uCC38\uC870\uC790**\uC5D0\uAC8C\uB9CC. \uC6D0\uB798 \uC788\uB358 \uCC38\uC870\uC790\uB294 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC2DC\uC791\uC77C\uC2DC \uB3C4\uB2EC",desc:"**\uCC45\uC784\uC790**\uC5D0\uAC8C. \uC2DC\uC791\uC77C\uC2DC\uAC00 \uB418\uBA74 \uC790\uB3D9\uC73C\uB85C \uAC11\uB2C8\uB2E4."},{term:"\uC77C\uC815 \uCD08\uB300",desc:"\uC77C\uC815\uC758 **\uCC38\uC11D\uC790**\uC5D0\uAC8C."}]},{title:"\uD655\uC778 \xB7 \uC644\uB8CC \xB7 \uAC80\uC218",items:[{term:"\uCC45\uC784\uC790\uAC00 \uD655\uC778",desc:"**\uC791\uC131\uC790**\uC5D0\uAC8C. \uBC1B\uC740 \uC0AC\uB78C\uC774 \uC77D\uC5C8\uB2E4\uB294 \uC2E0\uD638\uC785\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790\uAC00 \uD655\uC778",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uCC38\uC870\uC790\uAC00 \uC5EC\uB7EC \uBA85\uC774\uB77C \uC0AC\uB78C \uC218\uB9CC\uD07C \uC54C\uB9BC\uC774 \uC3DF\uC544\uC9C0\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C\uB9CC \uBD05\uB2C8\uB2E4."},{term:"\uD655\uC778 \uC694\uCCAD(\uB9AC\uB9C8\uC778\uB4DC)",desc:"\uC544\uC9C1 **\uD655\uC778\uD558\uC9C0 \uC54A\uC740 \uB300\uC0C1\uC790**\uC5D0\uAC8C\uB9CC. \uC774\uBBF8 \uD655\uC778\uD55C \uC0AC\uB78C\uC740 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC644\uB8CC \uCC98\uB9AC",desc:"**\uC791\uC131\uC790 + \uCC38\uC870\uC790**\uC5D0\uAC8C. \uC644\uB8CC\uB97C \uB204\uB978 \uC0AC\uB78C \uBCF8\uC778\uC740 \uC81C\uC678\uB429\uB2C8\uB2E4."},{term:"\uAC80\uC218\uC644\uB8CC",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uC2B9\uC778\uC774 \uC544\uB2C8\uB77C \uC791\uC131\uC790 \uD654\uBA74\uC758 \uD45C\uC2DC\uB97C \uB0B4\uB9AC\uB294 \uAC83\uC77C \uBFD0\uC785\uB2C8\uB2E4."},{term:"\uB418\uB3CC\uB9AC\uAE30",desc:"**\uC644\uB8CC\uB97C \uCC98\uB9AC\uD55C \uC0AC\uB78C**(\uBCF4\uD1B5 \uCC45\uC784\uC790)\uC5D0\uAC8C. \uC0AC\uC720\uAC00 \uD568\uAED8 \uC804\uB2EC\uB418\uACE0 \uB313\uAE00\uB85C\uB3C4 \uB0A8\uC2B5\uB2C8\uB2E4."}]},{title:"\uB9C8\uAC10 \uAD00\uB828",lead:"\uB9C8\uAC10 \uACC4\uC5F4\uC740 \uC804\uBD80 \uCC45\uC784\uC790\uC640 \uC791\uC131\uC790\uC5D0\uAC8C\uB9CC \uAC11\uB2C8\uB2E4. \uCC38\uC870\uC790\uB294 \uB9C8\uAC10 \uC54C\uB9BC\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uCC38\uC870\uAE4C\uC9C0 \uBCF4\uB0B4\uBA74 \uC54C\uB9BC\uC774 \uC18C\uC74C\uC774 \uB429\uB2C8\uB2E4.",items:[{term:"\uB9C8\uAC10 \uC0AC\uC804\uC54C\uB9BC",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uC5C5\uBB34\uB9C8\uB2E4 \uACE0\uB978 \uC2DC\uC810(\uC608: 1\uC77C \uC804)\uC5D0 \uAC11\uB2C8\uB2E4."},{term:"\uB9C8\uAC10 \uB2F9\uC77C",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uB9C8\uAC10 \uACBD\uACFC(\uC9C0\uC5F0)",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uB9C8\uAC10\uC774 \uC9C0\uB0AC\uB294\uB370 \uC644\uB8CC\uB418\uC9C0 \uC54A\uC740 \uC5C5\uBB34\uC785\uB2C8\uB2E4."},{term:"\uCC38\uC870\uC790",desc:"\uC704 \uC14B \uBAA8\uB450 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uB313\uAE00 \xB7 \uBC18\uC751",lead:"\uB313\uAE00 \uC54C\uB9BC\uC740 \uAD00\uC5EC\uC790 \uC804\uC6D0\uC5D0\uAC8C \uBCF4\uB0B4\uB2E4\uAC00 \uC54C\uB9BC \uD3ED\uC8FC\uB85C \uC904\uC600\uC2B5\uB2C8\uB2E4. \uC9C0\uAE08\uC740 '\uB300\uD654\uC5D0 \uC9C1\uC811 \uC5BD\uD78C \uC0AC\uB78C'\uB9CC \uBC1B\uC2B5\uB2C8\uB2E4.",items:[{term:"\uC77C\uBC18 \uB313\uAE00",desc:"\uC5C5\uBB34 **\uC791\uC131\uC790 + \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uC791\uC131\uC790\uAC00 \uC790\uAE30 \uC5C5\uBB34\uC5D0 \uB313\uAE00",desc:"**\uCC45\uC784\uC790 + \uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C."},{term:"\uCC45\uC784\uC790 \uC5C6\uB294 \uC5C5\uBB34\uC758 \uB313\uAE00",desc:"\uC704\uC5D0 \uB354\uD574 **\uCC38\uC870\uC790 \uC804\uC6D0**\uC5D0\uAC8C. \uB204\uAC00 \uB9E1\uC744\uC9C0 \uC815\uD558\uB294 \uB300\uD654\uB77C \uCC38\uC870\uC790\uB4E4\uC774 \uC54C\uC544\uC57C \uD558\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. \uCC45\uC784\uC790\uAC00 \uC815\uD574\uC9C0\uBA74 \uB2E4\uC2DC \uBE60\uC9D1\uB2C8\uB2E4."},{term:"\uB313\uAE00 \uC88B\uC544\uC694 \xB7 \uD655\uC778",desc:"\uADF8 **\uB313\uAE00\uC744 \uC4F4 \uC0AC\uB78C**\uC5D0\uAC8C\uB9CC."},{term:"\uACF5\uC9C0 \uB313\uAE00",desc:"**\uC9C1\uC804 \uB313\uAE00 \uC791\uC131\uC790**\uC5D0\uAC8C\uB9CC \u2014 \uB300\uC0C1\uC790\uAC00 \uC804 \uC9C1\uC6D0\uC774\uB77C \uD655\uC7A5 \uADDC\uCE59\uC744 \uC801\uC6A9\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uB0B4\uC6A9\uC774 \uBC14\uB014 \uB54C",lead:"\uC218\uC815 \uC54C\uB9BC\uC740 \uACE7\uBC14\uB85C \uBCF4\uB0B4\uC9C0 \uC54A\uACE0, \uD3B8\uC9D1\uC774 \uB05D\uB098 \uC870\uC6A9\uD574\uC9C4 \uB4A4 \uD55C \uAC74\uC73C\uB85C \uBAA8\uC544 \uBCF4\uB0C5\uB2C8\uB2E4 \u2014 \uACE0\uCE58\uB294 \uB3C4\uC911\uC5D0 \uC54C\uB9BC\uC774 \uC5EC\uB7EC \uBC88 \uAC00\uC9C0 \uC54A\uAC8C \uD558\uB824\uB294 \uAC83\uC785\uB2C8\uB2E4.",items:[{term:"\uC77C\uBC18 \uC5C5\uBB34 \uC218\uC815",desc:"**\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uB204\uAC00 \uACE0\uCCE4\uB4E0 \uB098\uBA38\uC9C0 \uD55C\uCABD\uC774 \uBC1B\uC2B5\uB2C8\uB2E4(\uACE0\uCE5C \uC0AC\uB78C \uBCF8\uC778\uC740 \uC81C\uC678). \uCC38\uC870\uC790\uB294 \uC81C\uC678\uB429\uB2C8\uB2E4."},{term:"\uACF5\uC9C0 \uC218\uC815",desc:"**\uC791\uC131\uC790 + \uB300\uC0C1\uC790**\uC5D0\uAC8C."},{term:"\uD569\uC0B0 \uBC1C\uC1A1",desc:"\uC5EC\uB7EC \uD544\uB4DC\uB97C \uC5F0\uB2EC\uC544 \uACE0\uCCD0\uB3C4 \uD55C \uAC74\uC73C\uB85C \uBB36\uC5EC \uAC11\uB2C8\uB2E4. \uBB34\uC5C7\uC774 \uC5B4\uB5BB\uAC8C \uBC14\uB00C\uC5C8\uB294\uC9C0 \uC694\uC57D\uC774 \uB2F4\uAE41\uB2C8\uB2E4."},{term:"\uC54C\uB9BC\uC774 \uC548 \uAC00\uB294 \uBCC0\uACBD",desc:"\uC644\uB8CC \xB7 \uBCF4\uAD00 \xB7 \uC815\uB82C \uC21C\uC11C \xB7 \uCC45\uC784\uC790/\uCC38\uC870\uC790 \uBCC0\uACBD \u2014 \uAC01\uAC01 \uC804\uC6A9 \uC54C\uB9BC\uC774 \uB530\uB85C \uC788\uC5B4 \uC218\uC815 \uC54C\uB9BC\uC73C\uB85C\uB294 \uC138\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uD560\uC77C(\uCCB4\uD06C\uB9AC\uC2A4\uD2B8) \uBCC0\uACBD",desc:"\uC218\uC815 \uC54C\uB9BC\uACFC \uAC19\uC740 **\uCC45\uC784\uC790 + \uC791\uC131\uC790**\uC5D0\uAC8C. \uBB34\uC5C7\uC744 \uCD94\uAC00\xB7\uC0AD\uC81C\xB7\uC218\uC815\uD588\uB294\uC9C0 \uAD6C\uCCB4\uC801\uC73C\uB85C \uB2F4\uAE41\uB2C8\uB2E4. \uCCB4\uD06C\uB9CC \uCF1C\uACE0 \uB044\uAC70\uB098 \uC21C\uC11C\uB9CC \uBC14\uAFB8\uBA74 \uC54C\uB9BC\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}]},{title:"\uACF5\uC9C0\uC0AC\uD56D",items:[{term:"\uACF5\uC9C0 \uB4F1\uB85D",desc:"**\uB300\uC0C1\uC790 \uC804\uC6D0**\uC5D0\uAC8C(\uC804 \uC9C1\uC6D0 \uB610\uB294 \uC9C0\uC815\uD55C \uC0AC\uB78C\uB4E4)."},{term:"\uB300\uC0C1\uC790 \uCD94\uAC00",desc:"\uC0C8\uB85C \uCD94\uAC00\uB41C **\uB300\uC0C1\uC790**\uC5D0\uAC8C\uB9CC."},{term:"\uB300\uC0C1\uC790\uAC00 \uD655\uC778",desc:"\uC544\uBB34\uC5D0\uAC8C\uB3C4 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC791\uC131\uC790\uB294 \uD655\uC778 \uD604\uD669(n/m)\uC73C\uB85C \uBD05\uB2C8\uB2E4."}]},{title:"\uC54C\uC544 \uB450\uBA74 \uC88B\uC740 \uAC83",items:[{term:"\uB0B4 \uD589\uB3D9\uC740 \uC81C\uC678",desc:"\uB0B4\uAC00 \uB204\uB978 \uC77C\uB85C\uB294 \uB098\uC5D0\uAC8C \uC54C\uB9BC\uC774 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB0B4\uAC00 \uC644\uB8CC\uD588\uC73C\uBA74 \uB098\uB294 \uC644\uB8CC \uC54C\uB9BC\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},{term:"\uC2DC\uC791 \uC804\uC5D0\uB294 \uBCA8\uB9CC",desc:"\uC2DC\uC791\uC77C\uC2DC\uAC00 \uC544\uC9C1 \uC548 \uB41C \uC5C5\uBB34\uC758 \uCC45\uC784\uC790 \uB300\uC0C1 \uC54C\uB9BC\uC740 \uBCA8\uC5D0\uB9CC \uC313\uC774\uACE0 \uC571 \uD478\uC2DC\uB294 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC2DC\uC791\uC77C\uC2DC\uBD80\uD130 \uD478\uC2DC\uAC00 \uC624\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4(\uC77C\uC815\xB7\uACF5\uC9C0\uB294 \uC608\uC678 \uC5C6\uC774 \uBC14\uB85C)."},{term:"\uC885\uB958\uBCC4\uB85C \uB044\uAE30",desc:"**\uB0B4 \uC815\uBCF4 \u203A \uC54C\uB9BC \uC124\uC815**\uC5D0\uC11C \uC885\uB958\uBCC4\uB85C \uC218\uC2E0\uC744 \uB055\uB2C8\uB2E4. \uB048 \uC885\uB958\uB294 \uBCA8\xB7\uD478\uC2DC \uBAA8\uB450 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 \uB2E4\uB9CC \uD655\uC778 \uC694\uCCAD\uC740 \uB04C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},{term:"\uC54C\uB9BC\uD1A1\uC740 \uC5C6\uC74C",desc:"\uC5C5\uBB34\uD568 \uC54C\uB9BC\uC740 \uBCA8\uACFC \uC571 \uD478\uC2DC\uBFD0\uC785\uB2C8\uB2E4 \u2014 \uBB38\uC790\xB7\uC54C\uB9BC\uD1A1\uC73C\uB85C\uB294 \uAC00\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}]}]};var gb={id:"more",tabTitle:"\uB354 \uC54C\uC544\uBCF4\uAE30",intro:"\uC775\uC219\uD574\uC9C4 \uB4A4\uC5D0 \uC4F0\uBA74 \uC88B\uC740 \uAE30\uB2A5\uB4E4\uC785\uB2C8\uB2E4. \uC5C5\uBB34\uD568 \uC124\uC815\uC5D0\uC11C \uB048 \uAE30\uB2A5\uC740 \uC5EC\uAE30\uC5D0\uB3C4 \uBCF4\uC774\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",topics:[{title:"\uBCF4\uAE30 \uBC14\uAFB8\uAE30",lead:"\uAC19\uC740 \uC5C5\uBB34\uB97C \uBAA9\uB85D \xB7 \uD504\uB85C\uC81D\uD2B8 \xB7 \uC0C1\uD0DC \xB7 \uC8FC\uAC04 \xB7 \uC6D4\uAC04\uC73C\uB85C \uB2E4\uB974\uAC8C \uBD05\uB2C8\uB2E4. \uD5E4\uB354 \uC624\uB978\uCABD \uBC84\uD2BC\uC73C\uB85C \uBC14\uAFB8\uACE0 \uD0ED\uB9C8\uB2E4 \uB530\uB85C \uAE30\uC5B5\uB429\uB2C8\uB2E4(\uB2E8\uCD95\uD0A4 **G** \uB2E4\uC74C \uAE00\uC790\uD0A4).",lines:["**\uBAA9\uB85D** : \uC5F4 \uC81C\uBAA9\uC744 \uB204\uB974\uBA74 \uC815\uB82C(\uC81C\uBAA9\xB7\uB0A0\uC9DC) \uB610\uB294 \uD544\uD130(\uC0C1\uD0DC\xB7\uD655\uC778\xB7\uCC45\uC784\uC790\xB7\uD504\uB85C\uC81D\uD2B8\xB7\uC911\uC694\uB3C4)\uAC00 \uC5F4\uB9BD\uB2C8\uB2E4. **\uADF8\uB8F9** \uBA54\uB274\uB85C \uBB36\uB294 \uAE30\uC900\uC744 \uBC14\uAFB8\uACE0, \uADF8\uB8F9 \uBA38\uB9AC\uC904 **+** \uB85C \uADF8 \uADF8\uB8F9\uC5D0 \uBC14\uB85C \uB4F1\uB85D\uD569\uB2C8\uB2E4.","**\uD504\uB85C\uC81D\uD2B8 \xB7 \uC0C1\uD0DC \xB7 \uBAA9\uD45C** \uBCF4\uAE30\uB294 \uCE74\uB4DC\uB97C \uCEEC\uB7FC\uC5D0 \uC138\uC6C1\uB2C8\uB2E4 \u2014 \uC81C\uBAA9 \uC55E **\u22EE\u22EE \uD578\uB4E4**\uB85C \uB04C\uC5B4 \uB2E4\uB978 \uCEEC\uB7FC\uC73C\uB85C \uC62E\uAE30\uACE0, \uCEEC\uB7FC **\u22EE** \uBA54\uB274\uC5D0 \uB4F1\uB85D\xB7\uC218\uC815\xB7\uBCF4\uAD00\xB7\uC0AD\uC81C\uAC00 \uC788\uC2B5\uB2C8\uB2E4.","**\uC8FC\uAC04\xB7\uC6D4\uAC04** : \uB9C8\uAC10\uC608\uC815(\uC77C\uC815\uC740 \uC77C\uC2DC) \uAE30\uC900\uC73C\uB85C \uB193\uC774\uACE0, \uCE74\uB4DC\uB97C \uB2E4\uB978 \uB0A0\uB85C \uB04C\uBA74 \uB0A0\uC9DC\uAC00 \uBC14\uB01D\uB2C8\uB2E4. \uBE48 \uCE78\uC5D0 \uC62C\uB9AC\uBA74 \uADF8 \uB0A0\uC9DC\uB85C \uBC14\uB85C \uB4F1\uB85D\uD569\uB2C8\uB2E4. \uBC14\uAE65 \uCE98\uB9B0\uB354\uC640 \uC8FC\uACE0\uBC1B\uB294 \uBC29\uBC95\uC740 **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9** \uD0ED\uC5D0 \uC788\uC2B5\uB2C8\uB2E4."]},{title:"\uD0C0\uC784\uB77C\uC778",feature:"timeline",lines:["\uC2DC\uC791\uC77C\uC2DC~\uB9C8\uAC10\uC608\uC815\uC744 \uB9C9\uB300\uB85C \uBCF4\uC5EC \uAE30\uAC04 \uACB9\uCE68\uC744 \uBD05\uB2C8\uB2E4. \uC5C5\uBB34 \uC544\uB798 \uD560\uC77C \uC904\uC774 \uD3BC\uCCD0\uC9C0\uACE0, \uC67C\uCABD \uC5C5\uBB34\uBA85 \uC904\uC758 \uD578\uB4E4\uB85C \uC21C\uC11C\uB97C \uBC14\uAFC9\uB2C8\uB2E4."]},{title:"\uCC28\uD2B8",feature:"charts",lines:["**\uCC28\uD2B8** \uBC84\uD2BC\uC5D0\uC11C \uC6CC\uD06C\uB85C\uB4DC(\uC778\uC6D0\uBCC4 \uBD80\uD558)\xB7\uB204\uC801\uD750\uB984\uB3C4\xB7\uB9AC\uB4DC\uD0C0\uC784\uC744, \uBAA9\uD45C\uB97C \uC4F0\uBA74 \uBCA8\uB85C\uC2DC\uD2F0\xB7\uBC88\uB2E4\uC6B4\uC744 \uBD05\uB2C8\uB2E4. \uC778\uC6D0 \uC6A9\uB7C9\uC740 \uCC28\uD2B8 \uC548 \uC124\uC815 \uC544\uC774\uCF58\uC5D0\uC11C \uC815\uD569\uB2C8\uB2E4."]},{title:"\uAC80\uC0C9\uACFC \uD544\uD130",lines:["\uAC80\uC0C9\uCE78(\uB2E8\uCD95\uD0A4 **/**)\uC740 \uC81C\uBAA9\xB7\uBE44\uACE0\uB97C \uCC3E\uC2B5\uB2C8\uB2E4. \uBAA8\uBC14\uC77C\uC740 \uAC80\uC0C9 \uD654\uBA74\uC5D0\uC11C \uC0C1\uD0DC\xB7\uB77C\uBCA8 \uCE69\uC73C\uB85C \uD568\uAED8 \uAC70\uB985\uB2C8\uB2E4.","**\uD544\uD130 \xB7 \uCC45\uC784\uC790 \xB7 \uD504\uB85C\uC81D\uD2B8 \xB7 \uC911\uC694\uB3C4** \uBC84\uD2BC\uC740 \uCCB4\uD06C \uBA54\uB274\uAC00 \uC5F4\uB9AC\uACE0 \uAC78\uB9B0 \uAC1C\uC218\uAC00 \uBC84\uD2BC\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uC644\uB8CC\xB7\uBCF4\uAD00\uD568 \uD0ED\uC740 **\uAE30\uAC04** \uBC84\uD2BC\uC73C\uB85C \uC644\uB8CC\uC77C \uBC94\uC704\uB97C \uC815\uD569\uB2C8\uB2E4."]},{title:"\uB77C\uBCA8",feature:"label",lines:["**\uB77C\uBCA8** \uBC84\uD2BC\uC73C\uB85C \uAC70\uB974\uACE0, \uC0C1\uC138\uC758 \uB77C\uBCA8 \uD589\uC5D0\uC11C \uBD99\uC785\uB2C8\uB2E4. \uB77C\uBCA8 \uC0AC\uC804\uC740 \uC5C5\uBB34\uD568 \uC124\uC815\uC5D0\uC11C \uAD00\uB9AC\uD569\uB2C8\uB2E4."]},{title:"\uD5E4\uB354 \uC2A4\uC704\uCE58",lines:["**\uC644\uB8CC \uC228\uAE30\uAE30** : \uB05D\uB09C \uC5C5\uBB34\uB97C \uBAA8\uB4E0 \uBCF4\uAE30(\uD560\uC77C \uD3EC\uD568)\uC5D0\uC11C \uAC10\uCDA5\uB2C8\uB2E4.","**\uBAA8\uB4E0 \uC9C1\uC6D0** : (\uD5C8\uC6A9 \uACC4\uC815) \uAD00\uC5EC \uC5EC\uBD80\uC640 \uC0C1\uAD00\uC5C6\uC774 \uC804 \uC9C1\uC6D0\uC758 \uC5C5\uBB34\uB97C \uBD05\uB2C8\uB2E4. **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC77C\uC815** : \uAC00\uC838\uC628 \uC77C\uC815\uC744 \uCE98\uB9B0\uB354\uC5D0 \uD568\uAED8 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4(**\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9** \uD0ED \uCC38\uACE0).","\uD654\uBA74\uC774 \uC881\uC73C\uBA74 \uC2A4\uC704\uCE58\uB4E4\uC740 \uC624\uB978\uCABD **\u22EE \uBA54\uB274** \uC548\uC73C\uB85C \uB4E4\uC5B4\uAC11\uB2C8\uB2E4."]},{title:"\uAD00\uB828 \uC5C5\uBB34",lines:["\uC0C1\uC138\uC758 **\uAD00\uB828 \uC5C5\uBB34**\uC5D0\uC11C \uD6C4\uC18D \uC5C5\uBB34 \uB9CC\uB4E4\uAE30, \uAD00\uB828\xB7\uC911\uBCF5 \uC5C5\uBB34 \uC5F0\uACB0\uC744 \uD569\uB2C8\uB2E4. \uC6B0\uD074\uB9AD \uBA54\uB274\uC5D0\uC11C \uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9\xB7\uBAA9\uD45C\uC5D0 \uB123\uAE30\xB7\uBCF4\uAD00\xB7\uC0AD\uC81C\uB97C \uBC14\uB85C \uC2E4\uD589\uD569\uB2C8\uB2E4."]},{title:"\uD504\uB85C\uC81D\uD2B8",feature:"project",lines:["\uC5C5\uBB34\uB97C \uBB36\uB294 \uB2E8\uC704\uC785\uB2C8\uB2E4. **\uD504\uB85C\uC81D\uD2B8** \uBCF4\uAE30 \uB9E8 \uB05D \uC810\uC120 \uCE78\uC774\uB098 \uCEEC\uB7FC \u22EE \u203A \uC218\uC815\uC5D0\uC11C \uC774\uB984\xB7\uC544\uC774\uCF58\uC744 \uC815\uD558\uACE0, \uC5C5\uBB34\uB294 \uC0C1\uC138 \uC18D\uC131\uC774\uB098 \uC6B0\uD074\uB9AD \u203A \uD504\uB85C\uC81D\uD2B8 \uC774\uB3D9\uC73C\uB85C \uC62E\uAE41\uB2C8\uB2E4.","\uBCF4\uAD00\uC740 \uC18C\uC18D \uC5C5\uBB34\uAC00 \uBAA8\uB450 \uC644\uB8CC\uB41C \uB4A4\uC5D0\uB9CC \uB429\uB2C8\uB2E4. \uC0AD\uC81C\uD558\uBA74 \uD504\uB85C\uC81D\uD2B8\uB9CC \uC5C6\uC5B4\uC9C0\uACE0 \uC18C\uC18D \uC5C5\uBB34\uB294 \uAE30\uBCF8 \uC5C5\uBB34\uD568\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4."]},{title:"\uBAA9\uD45C(\uC2A4\uD504\uB9B0\uD2B8)",feature:"sprint",lines:["\uD504\uB85C\uC81D\uD2B8 \uC124\uC815\uC5D0\uC11C **\uBAA9\uD45C \uC0AC\uC6A9**\uC744 \uCF1C\uBA74 \uAE30\uAC04\uC774 \uC788\uB294 \uBAA9\uD45C\uB97C \uB9CC\uB4E4\uACE0 \uC5C5\uBB34\uB97C \uBC30\uC815\uD569\uB2C8\uB2E4(**\uBAA9\uD45C** \uBCF4\uAE30\uC5D0\uC11C \uCE74\uB4DC \uB04C\uAE30, \uC6B0\uD074\uB9AD \u203A \uBAA9\uD45C\uC5D0 \uB123\uAE30).","\uBAA9\uD45C \uC885\uB8CC \uC2DC \uB0A8\uC740 \uC5C5\uBB34\uB97C \uB2E4\uC74C \uBAA9\uD45C\uB85C \uB118\uAE38\uC9C0, \uBBF8\uBC30\uC815\uC73C\uB85C \uBE84\uC9C0 \uACE0\uB985\uB2C8\uB2E4. \uC2A4\uD1A0\uB9AC \uD3EC\uC778\uD2B8\uB294 \uC0C1\uC138 \uC18D\uC131\uC5D0\uC11C \uC801\uC2B5\uB2C8\uB2E4."]},{title:"\uC5C5\uBB34 \uD15C\uD50C\uB9BF \xB7 \uC790\uB3D9\uD654 \uADDC\uCE59 \xB7 \uBCF8\uBB38 \uC591\uC2DD",lines:["\u22EE \u203A **\uC5C5\uBB34 \uD15C\uD50C\uB9BF**\uC73C\uB85C \uC815\uD615 \uC808\uCC28(\uD560\uC77C \uD3EC\uD568)\uB97C \uD55C \uBC88\uC5D0 \uB9CC\uB4E4\uACE0, **\uC790\uB3D9\uD654 \uADDC\uCE59**\uC73C\uB85C \uB4F1\uB85D \uC2DC \uC870\uAC74\uBD80 \uBC30\uC815 \uB4F1\uC744 \uB9E1\uAE41\uB2C8\uB2E4.","**\uBCF8\uBB38 \uC591\uC2DD**(\uB0B4\uC6A9 \uC81C\uBAA9\uC758 \u22EE)\uC740 \uC790\uC8FC \uC4F0\uB294 \uBCF8\uBB38\uC744 \uC800\uC7A5\uD574 \uB450\uACE0 \uBD88\uB7EC\uC635\uB2C8\uB2E4."]},{title:"\uC624\uB958 \uD0ED",feature:"bug",lines:["\uD504\uB85C\uADF8\uB7A8 \uC624\uB958 \uC811\uC218 \uC804\uC6A9 \uD0ED\uC785\uB2C8\uB2E4. \uD2F0\uCF13\uBC88\uD638\uAC00 \uBD99\uACE0 \uC811\uC218 \u203A \uCC98\uB9AC \u203A \uC885\uB8CC\uB85C \uAD00\uB9AC\uD569\uB2C8\uB2E4.",'\uAC1C\uBC1C\uC0AC \uC804\uC6A9\uC774\uBA70, \uACE0\uAC1D\uC774 \uC811\uC218\uD55C \uC624\uB958 \uC81C\uBCF4\uB294 \uACE0\uAC1D\uC13C\uD130 \uD0ED\uC5D0 "\uC624\uB958" \uC885\uB958\uB85C \uC313\uC785\uB2C8\uB2E4.']},{title:"\uACE0\uAC1D\uC13C\uD130 \uD0ED",feature:"support",lines:["\uACE0\uAC1D\uC774 \uB0A8\uAE34 \uBB38\uC758\xB7\uAC74\uC758\xB7\uC624\uB958 \uC81C\uBCF4\uC640 \uD648\uD398\uC774\uC9C0 \uC0C1\uB2F4\uC2E0\uCCAD\uC774 \uC5C5\uBB34\uB85C \uC313\uC785\uB2C8\uB2E4.",'**\uAC00\uC838\uAC00\uAE30**\uB85C \uCC45\uC784\uC790\uAC00 \uB418\uACE0, \uB313\uAE00\uC774 \uACE7 \uB2F5\uBCC0\uC785\uB2C8\uB2E4(\uC791\uC131\uC790\uC5D0\uAC8C\uB294 \uB2F5\uBCC0 \uC54C\uB9BC\uB9CC \uAC11\uB2C8\uB2E4). \uC644\uB8CC 7\uC77C \uB4A4 \uBCF4\uAD00\uD568\uC758 "\uACE0\uAC1D\uC13C\uD130" \uAD6C\uBD84\uC73C\uB85C \uC62E\uACA8\uC9D1\uB2C8\uB2E4.']},{title:"\uBCF4\uACE0\uC11C",feature:"report",lines:["**\uBCF4\uACE0\uC11C** \uD0ED\uC5D0\uC11C \uC5C5\uBB34 \uBCF4\uACE0\uC11C\uB97C \uC791\uC131\uD574 \uC804\uC790\uACB0\uC7AC\uB85C \uC0C1\uC2E0\uD569\uB2C8\uB2E4."]}]};var xb={id:"calendar",tabTitle:"\uC678\uBD80 \uCE98\uB9B0\uB354 \uC5F0\uB3D9",intro:"\uC5C5\uBB34\uD568\uC744 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC640 \uC787\uC2B5\uB2C8\uB2E4. \uC8FC\uAC04\xB7\uC6D4\uAC04 \uBCF4\uAE30 \uB610\uB294 \uD5E4\uB354 \u22EE \u203A **\uCE98\uB9B0\uB354 \uC5F0\uB3D9**\uC5D0\uC11C \uAD6C\uAE00 \uACC4\uC815\uC744 \uC5F0\uACB0\uD558\uBA74 \uC5C5\uBB34 \uBCC0\uACBD\uC774 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 **\uBC14\uB85C** \uBC18\uC601\uB429\uB2C8\uB2E4.",topics:[{title:"\uB450 \uBC29\uD5A5",lead:"\uC5F0\uB3D9\uC740 \uBC29\uD5A5\uC774 \uB458\uC774\uACE0 \uB530\uB85C \uCF1C\uACE0 \uB055\uB2C8\uB2E4.",items:[{term:"\uB0B4\uBCF4\uB0B4\uAE30 (\uC5C5\uBB34\uD568 \u2192 \uAD6C\uAE00)",desc:"\uB0B4\uAC00 \uAD00\uC5EC\uD55C \uC5C5\uBB34(\uB9C8\uAC10\uC608\uC815 \uB610\uB294 \uC2DC\uC791\uC77C\uC2DC\uAC00 \uC788\uB294 \uAC83)\uB97C \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 \uC0C8\uB85C \uB9CC\uB4E0 **\uC804\uC6A9 \uCE98\uB9B0\uB354**(\uC774\uB984\uC740 \uC5F0\uB3D9 \uD654\uBA74\uC5D0 \uD45C\uC2DC \u2014 \uC608: \uCF54\uB4DC\uB9C8\uCF13)\uC5D0 \uB123\uC2B5\uB2C8\uB2E4. \uB4F1\uB85D\xB7\uC218\uC815\xB7\uC644\uB8CC\xB7\uC0AD\uC81C\uAC00 \uC989\uC2DC \uBC18\uC601\uB418\uACE0, \uC644\uB8CC\uD55C \uC5C5\uBB34\uB294 \uC81C\uBAA9 \uC55E\uC5D0 \u2713 \uAC00 \uBD99\uC2B5\uB2C8\uB2E4."},{term:"\uAC00\uC838\uC624\uAE30 (\uAD6C\uAE00 \u2192 \uC5C5\uBB34\uD568)",desc:"\uAD6C\uAE00 **\uAE30\uBCF8 \uCE98\uB9B0\uB354**\uC758 \uC77C\uC815\uC744 \uC5C5\uBB34\uD568 \uC8FC\uAC04\xB7\uC6D4\uAC04 \uBCF4\uAE30\uC5D0 \uACB9\uCCD0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4. \uC77D\uAE30 \uC804\uC6A9\uC774\uB77C \uC5C5\uBB34\uB85C \uBC14\uB00C\uC9C0\uB3C4, \uC6D0\uBCF8\uC774 \uACE0\uCCD0\uC9C0\uC9C0\uB3C4 \uC54A\uC2B5\uB2C8\uB2E4."}]},{title:"\uC5F0\uACB0\uD558\uAE30",lines:["**\uCE98\uB9B0\uB354 \uC5F0\uB3D9** \u203A **\uAD6C\uAE00 \uACC4\uC815 \uC5F0\uACB0** \uBC84\uD2BC \u2192 \uAD6C\uAE00 \uB3D9\uC758 \uD654\uBA74\uC5D0\uC11C \uD5C8\uC6A9 \u2192 \uC5C5\uBB34\uD568\uC73C\uB85C \uB3CC\uC544\uC635\uB2C8\uB2E4(\uC5F0\uACB0 \uC644\uB8CC \uC54C\uB9BC).","\uC5F0\uACB0 \uC9C1\uD6C4 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0 **\uC804\uC6A9 \uCE98\uB9B0\uB354**\uAC00 \uB9CC\uB4E4\uC5B4\uC9C0\uACE0 \uB0B4 \uC5C5\uBB34\uAC00 \uCC44\uC6CC\uC9D1\uB2C8\uB2E4(\uAC74\uC218\uAC00 \uB9CE\uC73C\uBA74 \uC7A0\uC2DC \uAC78\uB9BD\uB2C8\uB2E4).","\uAC00\uC838\uC624\uAE30\uB97C \uCF1C\uBA74 \uD5E4\uB354\uC758 **\uC678\uBD80 \uCE98\uB9B0\uB354 \uC77C\uC815** \uC2A4\uC704\uCE58\uB85C \uAD6C\uAE00 \uC77C\uC815 \uD45C\uC2DC\uB97C \uD55C \uBC88\uC5D0 \uCF1C\uACE0 \uB055\uB2C8\uB2E4(\uD654\uBA74\uC774 \uC881\uC73C\uBA74 \u22EE \uBA54\uB274 \uC548).",'\uAD6C\uAE00\uC774 "\uD655\uC778\uB418\uC9C0 \uC54A\uC740 \uC571" \uACBD\uACE0\uB97C \uBCF4\uC5EC\uC8FC\uBA74 **\uACE0\uAE09 \u203A \uACC4\uC18D**\uC73C\uB85C \uC9C4\uD589\uD569\uB2C8\uB2E4.']},{title:"\uC54C\uC544 \uB458 \uC810",lines:["\uC804\uC6A9 \uCE98\uB9B0\uB354 \uC548\uC758 \uC77C\uC815\uC740 \uC5C5\uBB34\uD568\uC774 \uAD00\uB9AC\uD569\uB2C8\uB2E4 \u2014 \uAD6C\uAE00\uC5D0\uC11C \uACE0\uCCD0\uB3C4 \uB2E4\uC74C \uBCC0\uACBD \uB54C \uC5C5\uBB34\uD568 \uB0B4\uC6A9\uC73C\uB85C \uB418\uB3CC\uC544\uAC11\uB2C8\uB2E4. \uC5C5\uBB34\uB294 \uC5C5\uBB34\uD568\uC5D0\uC11C \uACE0\uCE58\uC138\uC694.","\uD45C\uC2DC\uAC00 \uC5B4\uAE0B\uB09C \uAC83 \uAC19\uC73C\uBA74 **\uC804\uCCB4 \uB2E4\uC2DC \uB0B4\uBCF4\uB0B4\uAE30**\uB85C \uADF8 \uCE98\uB9B0\uB354\uB97C \uB0B4 \uC5C5\uBB34 \uAE30\uC900\uC73C\uB85C \uB2E4\uC2DC \uCC44\uC6C1\uB2C8\uB2E4.","**\uC5F0\uACB0 \uD574\uC81C**\uD558\uBA74 \uAD8C\uD55C\uC740 \uB04A\uAE30\uC9C0\uB9CC \uAD6C\uAE00 \uCABD \uC804\uC6A9 \uCE98\uB9B0\uB354\uB294 \uB0A8\uC2B5\uB2C8\uB2E4. \uD544\uC694\uD558\uBA74 \uAD6C\uAE00 \uCE98\uB9B0\uB354\uC5D0\uC11C \uC9C0\uC6B0\uC138\uC694.","\uD55C \uC0AC\uB78C\uC774 \uC5EC\uB7EC \uAE30\uAE30\uC5D0\uC11C \uC368\uB3C4 \uC5F0\uACB0\uC740 \uACC4\uC815\uB2F9 \uD55C \uBC88\uC774\uBA74 \uB429\uB2C8\uB2E4. \uC560\uD50C\xB7\uB124\uC774\uBC84 \uCE98\uB9B0\uB354 \uC5F0\uB3D9\uC740 \uC81C\uACF5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."]}]};var bb={id:"shortcuts",tabTitle:"\uB2E8\uCD95\uD0A4",topics:[]};var tc=[ub,db,pb,fb,gb,xb,bb];function hb({open:e,onClose:t}){return{modals:{dialog:Zt({modalIdPrefix:"taskbox-shortcut-help-dialog",open:e,onClose:t})}}}function kb({open:e,onClose:t,features:o,initialTab:n}){let[r,i]=iM(0);return{modals:{dialog:Zt({modalIdPrefix:"taskbox-manual-dialog",open:e,onClose:t,onOpen:()=>{let s=tc.filter(m=>!m.feature||o[m.feature]!==!1).findIndex(m=>m.id===n);i(Math.max(0,s))}})},activeTabIndex:r,setActiveTabIndex:i}}import{jsx as Ar,jsxs as Tb}from"react/jsx-runtime";function cM({keys:e}){return Ar(ol,{sx:{display:"flex",alignItems:"center",gap:.5,justifyContent:"flex-end"},children:e.split(" \u2192 ").map((t,o)=>Tb(ol,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o>0?Ar(lM,{sx:{fontSize:18,color:"#9a9a97"}}):null,Ar(ol,{component:"span",sx:{minWidth:32,height:32,px:.75,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13.5,fontWeight:700,color:"#37352f",bgcolor:"#f4f4f2",border:"1px solid #e0dfdb",borderRadius:1,fontVariantNumeric:"tabular-nums"},children:t})]},`${t}-${o}`))})}function XX({open:e,onClose:t,views:o}){let{modals:n}=hb({open:e,onClose:t}),r=tl(o);return Ar(sM,{open:n.dialog.isOpen,onClose:n.dialog.close,maxWidth:"xs",title:"\uB2E8\uCD95\uD0A4",locale:"ko",titleIcons:{delete:{visible:!1}},tabs:{visible:!1},sectionContentPaddingTop:0,sections:[{id:"shortcuts",showTitle:!1,children:Ar(ol,{sx:{display:"grid",gridTemplateColumns:"auto 1fr",columnGap:2,rowGap:1.25,alignItems:"center",fontSize:14,color:"#37352f"},children:r.map(i=>Tb(ol,{sx:{display:"contents"},children:[Ar(cM,{keys:i.keys}),Ar("span",{children:i.description})]},i.keys))})}],actions:{showCancelButton:!1,right:Ar(aM,{variant:"contained",onClick:n.dialog.close,children:"\uB2EB\uAE30"})}})}import{Fragment as Vu}from"react";import{Box as yt,Button as mM}from"@mui/material";import uM from"@mui/icons-material/ArrowRightAlt";import dM from"@mui/icons-material/ChevronRightRounded";import pM from"@mui/icons-material/ArrowForward";import{FormDialog as fM}from"@ehfuse/mui-form-dialog";import{Fragment as SM,jsx as Xe,jsxs as cr}from"react/jsx-runtime";function oc(e){return e.split(/(\*\*[^*]+\*\*|\s*(?:→|->)\s*)/g).filter(o=>o.length>0).map((o,n)=>o.startsWith("**")&&o.endsWith("**")?Xe(yt,{component:"strong",sx:{fontWeight:700},children:o.slice(2,-2)},n):/^\s*(?:→|->)\s*$/.test(o)?Xe(pM,{sx:{fontSize:"1em",verticalAlign:"-0.15em",mx:.5,color:"text.secondary"}},n):Xe(Vu,{children:o},n))}function gM({keys:e}){let t=xe();return Xe(yt,{sx:{display:"flex",alignItems:"center",gap:.5,justifyContent:"flex-end"},children:e.split(" \u2192 ").map((o,n)=>cr(yt,{sx:{display:"flex",alignItems:"center",gap:.5},children:[n>0?Xe(uM,{sx:{fontSize:20,color:t.colors.textMuted}}):null,Xe(yt,{component:"span",sx:{minWidth:36,height:36,px:1,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:15,fontWeight:600,color:t.colors.textPrimary,bgcolor:t.colors.surfaceSubtle,border:`1px solid ${t.colors.border}`,borderRadius:1,fontVariantNumeric:"tabular-nums"},children:o})]},`${o}-${n}`))})}function xM({steps:e}){let t=xe();return Xe(yt,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, minmax(0, 1fr))"},gap:{xs:1,sm:2},mt:1.5},children:e.map((o,n)=>cr(yt,{sx:{position:"relative",minWidth:0,px:1.75,py:2.5,borderRadius:2,bgcolor:t.colors.surfaceSubtle,border:`1px solid ${t.colors.border}`,"&::before":{content:'""',position:"absolute",top:-1,left:12,right:12,height:3,borderRadius:"0 0 3px 3px",bgcolor:t.colors.accent,opacity:.85},"&::after":n<e.length-1?{content:'""',display:{xs:"none",sm:"block"},position:"absolute",top:"50%",right:-12,width:8,height:8,mt:"-4px",borderTop:`2px solid ${t.colors.borderStrong}`,borderRight:`2px solid ${t.colors.borderStrong}`,transform:"rotate(45deg)"}:void 0},children:[cr(yt,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0},children:[Xe(yt,{sx:{flexShrink:0,width:26,height:26,borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:500,lineHeight:1,bgcolor:t.colors.accent,color:t.colors.accentContrast,fontVariantNumeric:"tabular-nums"},children:n+1}),Xe(yt,{sx:{minWidth:0,fontSize:20,fontWeight:500,color:t.colors.textStrong,lineHeight:1.3,letterSpacing:"-0.01em"},children:o.title})]}),Xe(yt,{sx:{mt:1.5,fontSize:15,lineHeight:1.5,color:t.colors.textPrimary,wordBreak:"keep-all"},children:o.desc})]},o.title))})}var Sb="70vh",bM=24,hM=44,yb=`calc((${Sb} - ${bM*2+hM}px) / var(--mfd-font-scale, 1))`,kM=148;function TM({items:e}){let t=xe();return Xe(yt,{sx:{mt:1.5,display:"grid",gridTemplateColumns:{xs:"1fr",sm:`${kM}px minmax(0, 1fr)`},fontSize:15,lineHeight:1.6,color:t.colors.textPrimary,border:`1px solid ${t.colors.border}`,borderRadius:1.5,overflow:"hidden","& > *":{px:1.5,py:1.35,borderTop:`1px solid ${t.colors.border}`},"& > *:nth-of-type(even)":{borderLeft:{sm:`1px solid ${t.colors.border}`}},"& > *:nth-of-type(1)":{borderTop:0},"& > *:nth-of-type(2)":{borderTop:{xs:`1px solid ${t.colors.border}`,sm:0}}},children:e.map(o=>cr(Vu,{children:[Xe(yt,{sx:{fontWeight:500,color:t.colors.textStrong,wordBreak:"keep-all",bgcolor:t.colors.surfaceSubtle,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},children:o.term}),Xe(yt,{sx:{wordBreak:"keep-all"},children:oc(o.desc)})]},o.term))})}function yM({topic:e}){let t=xe();return cr(yt,{component:"section",sx:{py:{xs:3,sm:4},borderBottom:`1px solid ${t.colors.border}`,"&:last-of-type":{pb:0,borderBottom:0}},children:[cr(yt,{component:"h3",sx:{m:0,mb:1.75,fontSize:24,fontWeight:500,letterSpacing:"-0.01em",lineHeight:1.3,color:t.colors.textStrong,wordBreak:"keep-all",display:"flex",alignItems:"center",flexWrap:"wrap"},children:[e.title,e.subtitle?cr(SM,{children:[Xe(dM,{sx:{fontSize:22,color:t.colors.textMuted,mx:1,flexShrink:0}}),Xe(yt,{component:"span",sx:{fontSize:18,fontWeight:400,color:t.colors.textPrimary},children:e.subtitle})]}):null]}),e.lead?Xe(yt,{sx:{fontSize:15.5,lineHeight:1.65,color:t.colors.textPrimary,wordBreak:"keep-all"},children:oc(e.lead)}):null,e.steps?.length?Xe(xM,{steps:e.steps}):null,e.items?.length?Xe(TM,{items:e.items}):null,e.lines?.length?Xe(yt,{component:"ul",sx:{m:0,mt:e.lead||e.steps||e.items?1.25:0,pl:2.5,display:"flex",flexDirection:"column",gap:.5,fontSize:15,lineHeight:1.6,color:t.colors.textPrimary,wordBreak:"keep-all"},children:e.lines.map((o,n)=>Xe("li",{children:oc(o)},n))}):null]})}function cQ({open:e,onClose:t,views:o,features:n={},initialTab:r}){let i=xe(),{modals:a,activeTabIndex:l,setActiveTabIndex:s}=kb({open:e,onClose:t,features:n,initialTab:r}),m=d=>!d||n[d]!==!1,c=tl(o),p=tc.filter(d=>m(d.feature)).map(d=>({id:d.id,tabTitle:d.tabTitle,showTitle:!1,children:d.id==="shortcuts"?Xe(yt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:yb,maxHeight:yb,px:.5},children:Xe(yt,{sx:{display:"grid",gridTemplateColumns:"auto auto",columnGap:2.5,rowGap:1.75,alignItems:"center",fontSize:17,fontWeight:500,color:i.colors.textPrimary},children:c.map(u=>cr(Vu,{children:[Xe(gM,{keys:u.keys}),Xe("span",{children:u.description})]},u.keys))})}):cr(yt,{sx:{display:"flex",flexDirection:"column",px:.5},children:[d.intro?Xe(yt,{sx:{p:2,borderRadius:2,bgcolor:i.colors.accentSoft,color:i.colors.textStrong,fontSize:15.5,lineHeight:1.65,wordBreak:"keep-all"},children:oc(d.intro)}):null,d.topics.filter(u=>m(u.feature)).map(u=>Xe(yM,{topic:u},u.title))]})}));return Xe(fM,{open:a.dialog.isOpen,onClose:a.dialog.close,maxWidth:"md",title:"\uC5C5\uBB34\uD568 \uC124\uBA85\uC11C",locale:"ko",titleIcons:{delete:{visible:!1}},tabs:{visible:!0,switchContent:!0},activeTabValue:l,onTabChange:s,fixedHeight:"70vh",maxContentHeight:Sb,sectionContentPaddingTop:0,fontScale:{enabled:!0},fontScaleKey:"taskbox-manual",sections:p,actions:{showCancelButton:!1,right:Xe(mM,{variant:"contained",onClick:a.dialog.close,sx:{minWidth:80},children:"\uB2EB\uAE30"})}})}import{useEffect as IM,useRef as _M,useState as Ib}from"react";import{Box as St,Button as Tn,IconButton as Gu,Menu as _b,MenuItem as wb,Switch as wM,Tooltip as Db}from"@mui/material";import{FormDialog as Eb}from"@ehfuse/mui-form-dialog";import Ku from"@mui/icons-material/Add";import DM from"@mui/icons-material/ArrowRightAlt";import EM from"@mui/icons-material/BoltOutlined";import RM from"@mui/icons-material/Close";import MM from"@mui/icons-material/EditOutlined";import{ClearTextField as nl,LabelSelect as No}from"@ehfuse/mui-form-controls";import{useEffect as CM,useRef as Cb}from"react";import{useGlobalForm as BM,useModal as vM}from"@ehfuse/forma";import{ErrorAlert as Bb}from"@ehfuse/alerts";var Vi=[{value:"due_date",label:"\uB9C8\uAC10\uC608\uC815"},{value:"start_date",label:"\uC2DC\uC791\uC77C\uC2DC"},{value:"priority",label:"\uC911\uC694\uB3C4"},{value:"manager_account_seq",label:"\uCC45\uC784\uC790"},{value:"receiver_account_seqs",label:"\uCC38\uC870\uC790"},{value:"label_keys",label:"\uB77C\uBCA8"},{value:"group_seq",label:"\uD504\uB85C\uC81D\uD2B8"},{value:"sprint_seq",label:"\uBAA9\uD45C"},{value:"content",label:"\uB0B4\uC6A9"},{value:"note",label:"\uBE44\uACE0"}];function nc(){return{editSeq:0,name:"",trigger:"created",enabled:!0,sort_no:0,condition:{},action:{}}}function Uu(e){return e.filter(t=>!t.archived).map(t=>({value:String(hn(t.key)),label:t.label}))}function rc(e){return e.map(t=>({value:t.key,label:t.name}))}function vb(e){let t=Cb(e);t.current=e;let o=BM({formId:we("taskbox-rule-form"),initialValues:nc(),onValidate:y=>y.name.trim()?Object.keys(y.action??{}).length===0?(Bb({message:"\uB3D9\uC791\uC744 \uD558\uB098 \uC774\uC0C1 \uCD94\uAC00\uD558\uC138\uC694."}),!1):!0:(Bb({message:"\uADDC\uCE59 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."}),!1),onSubmit:async y=>{let{editSeq:T,...I}=y,A=T>0?I.sort_no:t.current.rules.reduce((C,k)=>Math.max(C,k.sort_no),0)+1,q=T>0?await t.current.onUpdate(T,{...I,sort_no:A}):await t.current.onCreate({...I,sort_no:A});return q&&n.form.close(),q}}),n={list:Xo({modalId:we("taskbox-rule-manage"),open:e.open,onClose:()=>t.current.onClose()}),form:vM({modalId:we("taskbox-rule-edit"),onClose:()=>o.setFormValues(nc())})},r=Cb(n.form);r.current=n.form,CM(()=>{if(e.open)return;let y=window.setTimeout(()=>{r.current.isOpen&&r.current.close(),o.setFormValues(nc())},500);return()=>window.clearTimeout(y)},[e.open]);let i=()=>({...o.getFormValue("condition")??{}}),a=()=>({...o.getFormValue("action")??{}}),l=(y,T)=>{let I=i();T===""||T===void 0||T===null?delete I[y]:I[y]=T,o.setFormValue("condition",I)},s=(y,T)=>{let I=a();T===""||T===void 0||T===null?delete I[y]:I[y]=T,o.setFormValue("action",I)},m=()=>{o.setFormValues(nc()),n.form.open()},c=y=>{o.setFormValues({editSeq:y.seq,name:y.name,trigger:y.trigger,enabled:y.enabled,sort_no:y.sort_no,condition:{...y.condition,...y.trigger==="field_changed"&&y.condition.changed_field===void 0?{changed_field:Vi[0]?.value??""}:{}},action:{...y.action}}),n.form.open()},p=y=>{let T=i();y!=="status_changed"&&(delete T.from_status,delete T.to_status),y!=="overdue"&&delete T.overdue_days,y!=="field_changed"&&delete T.changed_field,y!=="commented"&&(delete T.comment_contains,delete T.comment_by_others),y==="field_changed"&&T.changed_field===void 0&&(T.changed_field=Vi[0]?.value??""),o.setFormValues({trigger:y,condition:T})},d=async y=>{let T=t.current.onPickAccount;if(!T)return;let I=i(),A=y==="manager_account"?I.manager_account_seq??0:I.receiver_account_seq??0,q=await T(A,y==="manager_account"?"\uCC45\uC784\uC790":"\uCC38\uC870\uC790");if(!q)return;let C=i();y==="manager_account"?(C.manager_account_seq=q.accountSeq,C.manager_name=q.name):(C.receiver_account_seq=q.accountSeq,C.receiver_name=q.name),o.setFormValue("condition",C)},u=y=>{let T=Uu(t.current.customTabs),I=rc(t.current.statusOptions);y==="group_seq"?l("group_seq",Number(T[0]?.value)||0):y==="kind"?l("is_bug",!0):y==="priority"?l("priority","high"):y==="label_key"?l("label_key",I[0]?.value??""):y==="title_contains"?o.setFormValue("condition",{...i(),title_contains:""}):y==="manager_empty"?l("manager_empty",!0):y==="manager_account"||y==="receiver_account"?d(y):y==="from_status"?l("from_status",Io[0]?.key??""):y==="to_status"?l("to_status",Io[0]?.key??""):y==="changed_field"?l("changed_field",Vi[0]?.value??""):y==="comment_contains"?o.setFormValue("condition",{...i(),comment_contains:""}):y==="comment_by_others"?l("comment_by_others",!0):y==="overdue_days"&&l("overdue_days",1)},f=y=>{if(y==="kind"){l("is_bug",""),l("is_event","");return}if(y==="manager_account"){l("manager_account_seq",""),l("manager_name","");return}if(y==="receiver_account"){l("receiver_account_seq",""),l("receiver_name","");return}l(y,"")},g=y=>{l("is_bug",y?!0:""),l("is_event",y?"":!0)},v=async y=>{let T=t.current.onPickAccount;if(!T)return;let I=a(),A=y==="assign_manager"?I.assign_manager_account_seq??0:y==="add_receiver"?I.add_receiver_account_seq??0:I.notify_account_seq??0,q=await T(A,y==="assign_manager"?"\uCC45\uC784\uC790":y==="add_receiver"?"\uCC38\uC870\uC790":"\uC54C\uB9BC \uBC1B\uC744 \uC0AC\uB78C");if(!q)return;let C=a();y==="assign_manager"?(C.assign_manager_account_seq=q.accountSeq,C.assign_manager_name=q.name):y==="add_receiver"?(C.add_receiver_account_seq=q.accountSeq,C.add_receiver_name=q.name):(C.notify_account_seq=q.accountSeq,C.notify_name=q.name),o.setFormValue("action",C)};return{form:o,modals:n,actions:{openCreate:m,openEdit:c,changeTrigger:p,setCondition:l,setAction:s,addCondition:u,removeCondition:f,changeKind:g,pickConditionAccount:d,addAction:y=>{let T=rc(t.current.statusOptions);if(y==="set_status")s("set_status",Io[0]?.key??"");else if(y==="set_priority")s("set_priority","high");else if(y==="add_label_key")s("add_label_key",T[0]?.value??"");else if(y==="apply_content_template"){let I=t.current.contentTemplates[0];o.setFormValue("action",{...a(),apply_content_template_seq:I?.seq??0,apply_content_template_name:I?.name??""})}else v(y)},removeAction:y=>{y==="assign_manager"?(s("assign_manager_account_seq",""),s("assign_manager_name","")):y==="add_receiver"?(s("add_receiver_account_seq",""),s("add_receiver_name","")):y==="apply_content_template"?(s("apply_content_template_seq",""),s("apply_content_template_name","")):y==="notify"?(s("notify_account_seq",""),s("notify_name",""),s("notify_message","")):s(y,"")},pickAccountFor:v,selectContentTemplate:y=>{let T=t.current.contentTemplates.find(I=>String(I.seq)===String(y));o.setFormValue("action",{...a(),apply_content_template_seq:T?.seq??0,apply_content_template_name:T?.name??""})},toggleRule:(y,T)=>t.current.onToggle(y,T),removeRule:y=>t.current.onRemove(y)}}}import{Fragment as Mb,jsx as le,jsxs as Zo}from"react/jsx-runtime";var Yu=[{value:"created",label:"\uC5C5\uBB34 \uB4F1\uB85D \uC2DC",hint:"\uC0C8 \uC5C5\uBB34\uAC00 \uB9CC\uB4E4\uC5B4\uC9C4 \uC9C1\uD6C4 \uD55C \uBC88 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"status_changed",label:"\uC0C1\uD0DC \uBCC0\uACBD \uC2DC",hint:"\uC0C1\uD0DC\uAC00 \uC2E4\uC81C\uB85C \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"commented",label:"\uB313\uAE00\uC774 \uB2EC\uB838\uC744 \uB54C",hint:"\uB313\uAE00\uC774 \uC0C8\uB85C \uB2EC\uB9AC\uAC70\uB098 \uC218\uC815\uB41C \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uD68C\uC2E0\uC744 \uBC1B\uC740 \uC790\uB9AC)."},{value:"manager_assigned",label:"\uCC45\uC784\uC790\uAC00 \uC9C0\uC815\uB410\uC744 \uB54C",hint:"\uCC45\uC784\uC790\uAC00 \uC0C8\uB85C \uC9C0\uC815\uB418\uAC70\uB098 \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4."},{value:"attachment_added",label:"\uCCA8\uBD80\uAC00 \uC62C\uB77C\uC654\uC744 \uB54C",hint:"\uC5C5\uBB34\uC5D0 \uD30C\uC77C\uC774 \uCCA8\uBD80\uB41C \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uC99D\uBE59 \uC811\uC218 \uC790\uB9AC)."},{value:"field_changed",label:"\uD544\uB4DC\uAC00 \uBC14\uB00C\uC5C8\uC744 \uB54C",hint:"\uC9C0\uC815\uD55C \uD544\uB4DC\uAC00 \uC2E4\uC81C\uB85C \uBC14\uB010 \uC9C1\uD6C4 \uC2E4\uD589\uD569\uB2C8\uB2E4(\uD544\uB4DC\uB97C \uC548 \uACE0\uB974\uBA74 \uC544\uBB34 \uC218\uC815\uC5D0\uB098 \uC2E4\uD589)."},{value:"overdue",label:"\uB9C8\uAC10 \uACBD\uACFC \uC2DC",hint:"\uB9C8\uAC10\uC774 \uC9C0\uB09C \uBBF8\uC644\uB8CC \uC5C5\uBB34\uB97C \uB9E4\uC77C \uC810\uAC80\uD574 \uC2E4\uD589\uD569\uB2C8\uB2E4."}],ac=[{value:"high",label:"\uB192\uC74C"},{value:"medium",label:"\uC911\uAC04"},{value:"low",label:"\uB0AE\uC74C"}];function ic(e){return Io.find(t=>t.key===e)?.name??e}function PM(e,t,o){let{condition:n,action:r}=e,i=[];if(n.group_seq){let s=t.find(m=>hn(m.key)===n.group_seq);i.push(`\uD504\uB85C\uC81D\uD2B8=${s?.label??`#${n.group_seq}`}`)}n.is_bug===!0&&i.push("\uC624\uB958\uB9CC"),n.is_event===!0&&i.push("\uC77C\uC815\uB9CC"),n.priority&&i.push(`\uC911\uC694\uB3C4=${ac.find(s=>s.value===n.priority)?.label}`),n.label_key&&i.push(`\uB77C\uBCA8=${o.find(s=>s.key===n.label_key)?.name??n.label_key}`),n.title_contains&&i.push(`\uC81C\uBAA9\uC5D0 "${n.title_contains}" \uD3EC\uD568`),n.status&&i.push(`\uC0C1\uD0DC=${ic(n.status)}`),n.from_status&&i.push(`${ic(n.from_status)}\uC5D0\uC11C`),n.to_status&&i.push(`${ic(n.to_status)}\uB85C`),n.manager_empty===!0&&i.push("\uCC45\uC784\uC790 \uC5C6\uC74C"),n.manager_empty===!1&&i.push("\uCC45\uC784\uC790 \uC788\uC74C"),n.manager_account_seq&&i.push(`\uCC45\uC784\uC790=${n.manager_name||`\uACC4\uC815 #${n.manager_account_seq}`}`),n.receiver_account_seq&&i.push(`\uCC38\uC870\uC790\uC5D0 ${n.receiver_name||`\uACC4\uC815 #${n.receiver_account_seq}`}`),n.changed_field&&i.push(`${Vi.find(s=>s.value===n.changed_field)?.label??n.changed_field} \uBCC0\uACBD`),n.comment_contains&&i.push(`\uB313\uAE00\uC5D0 "${n.comment_contains}" \uD3EC\uD568`),n.comment_by_others===!0&&i.push("\uB0A8\uC774 \uC4F4 \uB313\uAE00"),typeof n.overdue_days=="number"&&i.push(`${n.overdue_days}\uC77C \uACBD\uACFC`);let a=[];r.set_status&&a.push(`\uC0C1\uD0DC=${ic(r.set_status)}`),r.set_priority&&a.push(`\uC911\uC694\uB3C4=${ac.find(s=>s.value===r.set_priority)?.label}`),r.assign_manager_account_seq&&a.push(`\uCC45\uC784\uC790=${r.assign_manager_name||"\uC9C0\uC815"}`),r.add_receiver_account_seq&&a.push(`\uCC38\uC870\uC790 + ${r.add_receiver_name||"\uC9C0\uC815"}`),r.add_label_key&&a.push(`\uB77C\uBCA8 + ${o.find(s=>s.key===r.add_label_key)?.name??r.add_label_key}`),r.apply_content_template_seq&&a.push(`\uBCF8\uBB38 \uC591\uC2DD=${r.apply_content_template_name||"\uC9C0\uC815"}`),r.notify_account_seq&&a.push("\uC54C\uB9BC \uBC1C\uC1A1");let l=Yu.find(s=>s.value===e.trigger)?.label??e.trigger;return{left:i.length>0?`${l} \xB7 ${i.join(", ")}`:l,right:a.join(", ")||"\uB3D9\uC791 \uC5C6\uC74C"}}var Rb={fontSize:16,fontWeight:700,color:"#37352f"},OM={display:"flex",alignItems:"center",gap:1},qM={width:104,flexShrink:0,fontSize:16,color:"#37352f"};function PQ({open:e,rules:t,customTabs:o,statusOptions:n,contentTemplates:r=[],onPickAccount:i,onClose:a,onCreate:l,onUpdate:s,onToggle:m,onRemove:c}){let p=vb({open:e,rules:t,customTabs:o,statusOptions:n,contentTemplates:r,onPickAccount:i,onClose:a,onCreate:l,onUpdate:s,onToggle:m,onRemove:c}),{form:d,actions:u}=p,f=p.modals.list,g=p.modals.form,{setCondition:v,setAction:D,removeCondition:b,removeAction:S,pickConditionAccount:h,pickAccountFor:E,changeTrigger:y}=u,T=d.isSubmitting,I=_M(null),[A,q]=Ib(null),[C,k]=Ib(null);IM(()=>{if(!g.isOpen)return;let F=window.setTimeout(()=>I.current?.focus(),120);return()=>window.clearTimeout(F)},[g.isOpen]);let x=Number(d.useValue("editSeq")??0)>0,B=d.useValue("trigger")??"created",w=rc(n),_=Io.map(F=>({value:F.key,label:F.name})),N=Uu(o),M=d.useValue("condition")??{},$=d.useValue("action")??{},Y=M.is_bug!==void 0||M.is_event!==void 0,te=[...M.group_seq===void 0&&N.length>0?[{key:"group_seq",label:"\uD504\uB85C\uC81D\uD2B8\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...Y?[]:[{key:"kind",label:"\uC885\uB958\uAC00 \uC624\uB958/\uC77C\uC815\uC778 \uACBD\uC6B0"}],...M.priority===void 0?[{key:"priority",label:"\uC911\uC694\uB3C4\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...M.label_key===void 0&&w.length>0?[{key:"label_key",label:"\uB77C\uBCA8\uC774 \uBD99\uC5B4 \uC788\uB294 \uACBD\uC6B0"}]:[],...M.title_contains===void 0?[{key:"title_contains",label:"\uC81C\uBAA9\uC5D0 ~ \uB2E8\uC5B4\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...M.manager_empty===void 0?[{key:"manager_empty",label:"\uCC45\uC784\uC790\uAC00 \uC5C6\uB294/\uC788\uB294 \uACBD\uC6B0"}]:[],...i&&M.manager_account_seq===void 0?[{key:"manager_account",label:"\uCC45\uC784\uC790\uAC00 ~\uC778 \uACBD\uC6B0"}]:[],...i&&M.receiver_account_seq===void 0?[{key:"receiver_account",label:"\uCC38\uC870\uC790\uC5D0 ~\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...B==="status_changed"&&M.from_status===void 0?[{key:"from_status",label:"\uC774 \uC0C1\uD0DC\uC5D0\uC11C \uBC14\uB010 \uACBD\uC6B0"}]:[],...B==="status_changed"&&M.to_status===void 0?[{key:"to_status",label:"\uC774 \uC0C1\uD0DC\uB85C \uBC14\uB010 \uACBD\uC6B0"}]:[],...B==="field_changed"&&M.changed_field===void 0?[{key:"changed_field",label:"~ \uD544\uB4DC\uAC00 \uBCC0\uACBD\uB41C \uACBD\uC6B0"}]:[],...B==="commented"&&M.comment_contains===void 0?[{key:"comment_contains",label:"\uB313\uAE00\uC5D0 ~ \uB2E8\uC5B4\uAC00 \uD3EC\uD568\uB41C \uACBD\uC6B0"}]:[],...B==="commented"&&M.comment_by_others===void 0?[{key:"comment_by_others",label:"\uCC45\uC784\uC790\uAC00 \uC544\uB2CC \uC0AC\uB78C\uC774 \uC4F4 \uACBD\uC6B0"}]:[],...B==="overdue"&&M.overdue_days===void 0?[{key:"overdue_days",label:"\uB9C8\uAC10 \uD6C4 \uBA70\uCE60 \uC9C0\uB09C \uACBD\uC6B0"}]:[]],ce=F=>{q(null),u.addCondition(F)},ue=[...$.set_status===void 0?[{key:"set_status",label:"\uC0C1\uD0DC \uBC14\uAFB8\uAE30"}]:[],...$.set_priority===void 0?[{key:"set_priority",label:"\uC911\uC694\uB3C4 \uBC14\uAFB8\uAE30"}]:[],...$.add_label_key===void 0&&w.length>0?[{key:"add_label_key",label:"\uB77C\uBCA8 \uBD99\uC774\uAE30"}]:[],...i&&$.assign_manager_account_seq===void 0?[{key:"assign_manager",label:"\uCC45\uC784\uC790 \uC9C0\uC815\uD558\uAE30"}]:[],...i&&$.add_receiver_account_seq===void 0?[{key:"add_receiver",label:"\uCC38\uC870\uC790 \uCD94\uAC00\uD558\uAE30"}]:[],...r.length>0&&$.apply_content_template_seq===void 0?[{key:"apply_content_template",label:"\uBCF8\uBB38 \uC591\uC2DD \uCC44\uC6B0\uAE30"}]:[],...i&&$.notify_account_seq===void 0?[{key:"notify",label:"\uC54C\uB9BC \uBCF4\uB0B4\uAE30"}]:[]],j=F=>{k(null),u.addAction(F)},O=(F,W,V,U)=>Zo(St,{sx:OM,children:[le(St,{sx:qM,children:F}),Zo(St,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:U?"column":"row",alignItems:U?"stretch":"center",gap:U?.5:1},children:[W,U?le(St,{sx:{fontSize:13.5,color:"#37352f"},children:U}):null]}),le(Db,{title:"\uC774 \uC904 \uBE7C\uAE30",arrow:!0,disableInteractive:!0,children:le(Gu,{size:"small","aria-label":`${F} \uC904 \uBE7C\uAE30`,onClick:V,children:le(RM,{sx:{fontSize:16}})})})]}),oe=()=>Zo(St,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[le(nl,{size:"medium",label:"\uADDC\uCE59 \uC774\uB984",inputRef:I,placeholder:"\uC608: \uC811\uC218 \uC624\uB958 \uC790\uB3D9 \uBC30\uC815",name:"name",form:d}),le(St,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:Yu.map(F=>{let W=B===F.value;return le(Tn,{disableElevation:!0,variant:W?"contained":"outlined",color:W?"primary":"inherit",onClick:()=>y(F.value),sx:{borderRadius:99,px:1.75,...W?{}:{color:"#57564f",borderColor:"#d9d9d6"}},children:F.label},F.value)})}),le(St,{sx:{fontSize:13,color:"#787774",mt:-.5},children:Yu.find(F=>F.value===B)?.hint}),Zo(St,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[le(St,{sx:Rb,children:"\uC5B4\uB5A4 \uC5C5\uBB34\uC77C \uB54C"}),te.length>0?le(Tn,{size:"small",startIcon:le(Ku,{sx:{fontSize:16}}),onClick:F=>q(F.currentTarget),sx:{color:"#2563eb",minWidth:0},children:"\uC870\uAC74 \uCD94\uAC00"}):null]}),M.group_seq!==void 0?O("\uD504\uB85C\uC81D\uD2B8",le(No,{size:"medium",fullWidth:!0,label:"",value:String(M.group_seq),options:N,onChange:F=>v("group_seq",Number(F.target.value)||"")}),()=>b("group_seq")):null,Y?O("\uC885\uB958",le(No,{size:"medium",fullWidth:!0,label:"",value:M.is_bug?"bug":"event",options:[{value:"bug",label:"\uC624\uB958\uB9CC"},{value:"event",label:"\uC77C\uC815\uB9CC"}],onChange:F=>{let W=F.target.value==="bug";v("is_bug",W?!0:""),v("is_event",W?"":!0)}}),()=>b("kind")):null,M.priority!==void 0?O("\uC911\uC694\uB3C4",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.priority",form:d,options:ac}),()=>b("priority")):null,M.label_key!==void 0?O("\uB77C\uBCA8",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.label_key",form:d,options:w}),()=>b("label_key")):null,M.title_contains!==void 0?O("\uC81C\uBAA9",le(nl,{size:"medium",fullWidth:!0,placeholder:"\uD3EC\uD568\uD560 \uB0B1\uB9D0 (\uC608: \uAE34\uAE09)",name:"condition.title_contains",form:d}),()=>b("title_contains")):null,M.manager_empty!==void 0?O("\uCC45\uC784\uC790",le(No,{size:"medium",fullWidth:!0,label:"",value:M.manager_empty?"empty":"assigned",options:[{value:"empty",label:"\uC5C6\uC74C"},{value:"assigned",label:"\uC788\uC74C"}],onChange:F=>v("manager_empty",F.target.value==="empty")}),()=>b("manager_empty")):null,M.manager_account_seq!==void 0?O("\uCC45\uC784\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{h("manager_account")},children:M.manager_name||`\uACC4\uC815 #${M.manager_account_seq}`}),()=>b("manager_account")):null,M.receiver_account_seq!==void 0?O("\uCC38\uC870\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{h("receiver_account")},children:M.receiver_name||`\uACC4\uC815 #${M.receiver_account_seq}`}),()=>b("receiver_account")):null,M.from_status!==void 0?O("\uC774 \uC0C1\uD0DC\uC5D0\uC11C",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.from_status",form:d,options:_}),()=>b("from_status")):null,M.to_status!==void 0?O("\uC774 \uC0C1\uD0DC\uB85C",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.to_status",form:d,options:_}),()=>b("to_status")):null,M.changed_field!==void 0?O("\uBCC0\uACBD \uD544\uB4DC",le(No,{size:"medium",fullWidth:!0,label:"",name:"condition.changed_field",form:d,options:Vi}),()=>b("changed_field")):null,M.comment_contains!==void 0?O("\uB313\uAE00 \uB0B1\uB9D0",le(nl,{size:"medium",fullWidth:!0,placeholder:"\uD3EC\uD568\uD560 \uB0B1\uB9D0 (\uC608: \uD68C\uC2E0)",name:"condition.comment_contains",form:d}),()=>b("comment_contains")):null,M.comment_by_others!==void 0?O("\uB313\uAE00 \uC791\uC131\uC790",le(No,{size:"medium",fullWidth:!0,label:"",value:M.comment_by_others?"others":"any",options:[{value:"others",label:"\uCC45\uC784\uC790\uAC00 \uC544\uB2CC \uC0AC\uB78C"},{value:"any",label:"\uB204\uAD6C\uB4E0"}],onChange:F=>v("comment_by_others",F.target.value==="others")}),()=>b("comment_by_others")):null,M.overdue_days!==void 0?O("\uACBD\uACFC\uC77C",le(nl,{size:"medium",fullWidth:!0,type:"number",value:String(M.overdue_days),onChange:F=>v("overdue_days",Math.max(0,Number(F.target.value)||0)),label:"\uB9C8\uAC10 \uD6C4 \uC9C0\uB09C \uC77C\uC218(\uC774\uC0C1)"}),()=>b("overdue_days")):null,Object.keys(M).length===0?le(St,{sx:{fontSize:13.5,color:"#9a9a97"},children:"\uC870\uAC74\uC774 \uC5C6\uC73C\uBA74 \uBAA8\uB4E0 \uC5C5\uBB34\uC5D0 \uC2E4\uD589\uB429\uB2C8\uB2E4."}):null,Zo(St,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[le(St,{sx:Rb,children:"\uBB34\uC5C7\uC744 \uD560\uAE4C\uC694"}),ue.length>0?le(Tn,{size:"small",startIcon:le(Ku,{sx:{fontSize:16}}),onClick:F=>k(F.currentTarget),sx:{color:"#2563eb",minWidth:0},children:"\uB3D9\uC791 \uCD94\uAC00"}):null]}),$.set_status!==void 0?O("\uC0C1\uD0DC",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.set_status",form:d,options:_}),()=>S("set_status")):null,$.set_priority!==void 0?O("\uC911\uC694\uB3C4",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.set_priority",form:d,options:ac}),()=>S("set_priority")):null,$.apply_content_template_seq!==void 0?O("\uBCF8\uBB38 \uC591\uC2DD",le(No,{size:"medium",fullWidth:!0,label:"",value:String($.apply_content_template_seq),options:r.map(F=>({value:String(F.seq),label:F.name})),onChange:F=>u.selectContentTemplate(String(F.target.value))}),()=>S("apply_content_template"),"\uBCF8\uBB38\uC774 \uBE44\uC5B4 \uC788\uC744 \uB54C\uB9CC \uCC44\uC6C1\uB2C8\uB2E4(\uC4F4 \uB0B4\uC6A9\uC744 \uB36E\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4)"):null,$.add_label_key!==void 0?O("\uB77C\uBCA8",le(No,{size:"medium",fullWidth:!0,label:"",name:"action.add_label_key",form:d,options:w}),()=>S("add_label_key")):null,$.assign_manager_account_seq!==void 0?O("\uCC45\uC784\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("assign_manager")},children:$.assign_manager_name||`\uACC4\uC815 #${$.assign_manager_account_seq}`}),()=>S("assign_manager")):null,$.add_receiver_account_seq!==void 0?O("\uCC38\uC870\uC790",le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("add_receiver")},children:$.add_receiver_name||`\uACC4\uC815 #${$.add_receiver_account_seq}`}),()=>S("add_receiver")):null,$.notify_account_seq!==void 0?O("\uC54C\uB9BC",Zo(Mb,{children:[le(Tn,{size:"medium",variant:"outlined",color:"inherit",onClick:()=>{E("notify")},sx:{flexShrink:0},children:$.notify_name||`\uACC4\uC815 #${$.notify_account_seq}`}),le(nl,{size:"medium",fullWidth:!0,placeholder:"\uC54C\uB9BC \uBB38\uAD6C(\uBE44\uC6B0\uBA74 \uAE30\uBCF8 \uBB38\uAD6C)",value:$.notify_message??"",onChange:F=>D("notify_message",F.target.value)})]}),()=>S("notify")):null,Object.keys($).length===0?le(St,{sx:{fontSize:13.5,color:"#9a9a97"},children:'"+ \uB3D9\uC791 \uCD94\uAC00" \uB85C \uD560 \uC77C\uC744 \uD558\uB098 \uC774\uC0C1 \uACE8\uB77C \uC8FC\uC138\uC694.'}):null,le(_b,{transitionDuration:0,anchorEl:A,open:!!A,onClose:()=>q(null),children:te.map(F=>le(wb,{dense:!0,onClick:()=>ce(F.key),sx:{fontSize:14},children:F.label},F.key))}),le(_b,{transitionDuration:0,anchorEl:C,open:!!C,onClose:()=>k(null),children:ue.map(F=>le(wb,{dense:!0,onClick:()=>j(F.key),sx:{fontSize:14},children:F.label},F.key))})]});return Zo(Mb,{children:[le(Eb,{open:f.isOpen,onClose:f.close,maxWidth:"sm",title:"\uC790\uB3D9\uD654 \uADDC\uCE59",locale:"ko",titleIcons:{delete:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-rule-manage",tabs:{visible:!1},contentPaddingX:0,contentTopPadding:0,contentBottomPadding:0,sectionContentPaddingTop:0,sections:[{id:"rules",title:"",showTitle:!1,children:Zo(St,{sx:{display:"flex",flexDirection:"column",px:2.5,py:2},children:[t.length===0?Zo(St,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[le(EM,{sx:{fontSize:48,color:"#d9d9d6"}}),le(St,{sx:{fontSize:15},children:"\uB4F1\uB85D\uB41C \uADDC\uCE59\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):null,t.map(F=>Zo(St,{sx:{display:"flex",alignItems:"center",gap:2,py:1,"&:not(:last-of-type)":{borderBottom:"1px solid #ececea"},opacity:F.enabled?1:.5},children:[le(Db,{title:F.enabled?"\uC0AC\uC6A9 \uC911":"\uAEBC\uC9D0",arrow:!0,disableInteractive:!0,children:le(wM,{size:"small",inputProps:{"aria-label":`${F.name} \uADDC\uCE59 \uC0AC\uC6A9`},checked:F.enabled,onChange:(W,V)=>u.toggleRule(F.seq,V)})}),Zo(St,{sx:{flex:1,minWidth:0},children:[le(St,{sx:{fontSize:16,fontWeight:600,color:"#37352f"},children:F.name}),(()=>{let W=PM(F,o,n);return Zo(St,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:.5,fontSize:15,color:"#6f6f6c"},children:[le(St,{component:"span",children:W.left}),le(DM,{sx:{fontSize:18,color:"#9a9a97",flexShrink:0}}),le(St,{component:"span",children:W.right})]})})()]}),le(Gu,{size:"small","aria-label":`${F.name} \uADDC\uCE59 \uC218\uC815`,onClick:()=>u.openEdit(F),children:le(MM,{sx:{fontSize:18}})}),le(Gu,{size:"small","aria-label":`${F.name} \uADDC\uCE59 \uC0AD\uC81C`,onClick:()=>u.removeRule(F.seq),children:le(Gt,{sx:{fontSize:18}})})]},F.seq))]})}],actions:{showCancelButton:!1,left:le(Tn,{startIcon:le(Ku,{}),onClick:u.openCreate,sx:{color:"#2563eb"},children:"\uC0C8 \uADDC\uCE59"}),right:le(Tn,{variant:"contained",onClick:f.close,children:"\uB2EB\uAE30"})}}),le(Eb,{open:g.isOpen,onClose:g.close,maxWidth:"sm",title:x?"\uADDC\uCE59 \uC218\uC815":"\uC0C8 \uADDC\uCE59",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-rule-form",tabs:{visible:!1},sectionContentPaddingTop:0,sections:[{id:"rule-form",title:"",showTitle:!1,children:oe()}],actions:{showCancelButton:!0,right:le(Tn,{variant:"contained",onClick:()=>{d.submit()},disabled:T,children:x?"\uC218\uC815":"\uADDC\uCE59 \uCD94\uAC00"})}})]})}import{useEffect as FM,useRef as Fb,useState as $M}from"react";import{Box as ft,Button as Ui,IconButton as rl,Tooltip as il}from"@mui/material";import $b from"@mui/icons-material/Add";import HM from"@mui/icons-material/EditOutlined";import WM from"@mui/icons-material/ContentCopyOutlined";import VM from"@mui/icons-material/DragIndicator";import UM from"@mui/icons-material/Close";import GM from"@mui/icons-material/PlaylistAddCheckOutlined";import{DndContext as KM,PointerSensor as YM,closestCenter as jM,useSensor as XM,useSensors as QM}from"@dnd-kit/core";import{restrictToParentElement as ZM,restrictToVerticalAxis as JM}from"@dnd-kit/modifiers";import{SortableContext as eP,useSortable as tP,verticalListSortingStrategy as oP}from"@dnd-kit/sortable";import{CSS as nP}from"@dnd-kit/utilities";import{FormDialog as Hb}from"@ehfuse/mui-form-dialog";import{ClearTextField as Xu,LabelSelect as Gb,NumberField as Wb}from"@ehfuse/mui-form-controls";import rP from"@ehfuse/overlay-scrollbar";import{useEffect as zM,useRef as Pb}from"react";import{useGlobalForm as AM,useModal as LM}from"@ehfuse/forma";import{ConfirmDialog as NM,ErrorAlert as Ob}from"@ehfuse/alerts";var qb=0;function zb(){return qb+=1,`ti${qb}`}function ju(){return{editSeq:0,name:"",description:"",group_seq:0,itemIds:[],items:{}}}function Ab(){return{title:"",start_offset_days:0,due_offset_days:0,priority:"medium"}}function Nb(e){let t=Pb(e);t.current=e;let o=AM({formId:we("taskbox-template-form"),initialValues:ju(),onValidate:m=>m.name.trim()?Lb(m).length===0?(Ob({message:"\uC5C5\uBB34 \uD56D\uBAA9\uC744 \uD55C \uC904 \uC774\uC0C1 \uB123\uC73C\uC138\uC694."}),!1):!0:(Ob({message:"\uD15C\uD50C\uB9BF \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694."}),!1),onSubmit:async m=>{let c={name:m.name.trim(),description:m.description,group_seq:m.group_seq,items:Lb(m)},p=m.editSeq>0?await t.current.onUpdate(m.editSeq,c):await t.current.onCreate(c);return p&&(n.form.close(),o.setFormValues(ju())),p}}),n={list:Xo({modalId:we("taskbox-template-manage"),open:e.open,onClose:()=>t.current.onClose()}),form:LM({modalId:we("taskbox-template-edit")})},r=Pb(n.form);r.current=n.form,zM(()=>{if(e.open)return;let m=window.setTimeout(()=>{r.current.isOpen&&r.current.close(),o.setFormValues(ju())},500);return()=>window.clearTimeout(m)},[e.open]);let i=(m,c)=>{let p=c.items.map(()=>zb());o.setFormValues({editSeq:m,name:c.name,description:c.description??"",group_seq:c.group_seq??0,itemIds:p,items:Object.fromEntries(c.items.map((d,u)=>[p[u],{...d}]))}),n.form.open()},a=(m,c)=>({name:c,description:m.description??"",group_seq:m.group_seq??0,items:m.items.map(p=>({...p}))}),l=(m,c)=>{let p=o.getFormValue(`items.${m}`);o.setFormValue(`items.${m}`,{...p??Ab(),...c})};return{form:o,modals:n,actions:{openCreate:()=>i(0,{name:"",description:"",group_seq:0,items:[]}),openEdit:m=>i(m.seq,a(m,m.name)),openDuplicate:m=>i(0,a(m,`${m.name} \uC0AC\uBCF8`)),closeForm:()=>n.form.close(),setItem:l,addItem:()=>{let m=zb();o.setFormValue(`items.${m}`,Ab()),o.setFormValue("itemIds",[...o.getFormValue("itemIds")??[],m])},removeItem:m=>{let c=o.getFormValue("itemIds")??[];o.setFormValue("itemIds",c.filter(p=>p!==m))},moveItem:(m,c)=>{let p=[...o.getFormValue("itemIds")??[]],d=p.indexOf(m),u=p.indexOf(c);if(d<0||u<0||d===u)return;let[f]=p.splice(d,1);p.splice(u,0,f),o.setFormValue("itemIds",p)},pickItemManager:async m=>{let c=t.current.onPickAccount;if(!c)return;let p=o.getFormValue(`items.${m}`),d=await c(p?.manager_account_seq??0,"\uCC45\uC784\uC790");d&&l(m,{manager_account_seq:d.accountSeq,manager_name:d.name})},clearItemManager:m=>l(m,{manager_account_seq:0,manager_name:""}),removeTemplate:async m=>{await NM({title:"\uD15C\uD50C\uB9BF \uC0AD\uC81C",message:`"${m.name}" \uD15C\uD50C\uB9BF\uC744 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`})&&t.current.onRemove(m.seq)},runTemplate:m=>t.current.onRun?.(m)}}}function Lb(e){return(e.itemIds??[]).map(t=>e.items?.[t]).filter(t=>!!t&&String(t.title??"").trim().length>0)}import{Fragment as cP,jsx as be,jsxs as Jo}from"react/jsx-runtime";var iP=[{value:"high",label:"\uB192\uC74C"},{value:"medium",label:"\uC911\uAC04"},{value:"low",label:"\uB0AE\uC74C"}],Kb="\uC5C5\uBB34 \uC81C\uBAA9",Qu=2,lc={flex:1,minWidth:0},Vb=56,Yb=20,aP=`${Yb+Qu*8}px`;function lP({id:e,children:t}){let{attributes:o,listeners:n,setNodeRef:r,transform:i,transition:a,isDragging:l}=tP({id:e});return be(ft,{ref:r,sx:{transform:nP.Transform.toString(i),transition:a,...l?{opacity:.6,position:"relative",zIndex:1}:{}},children:t({handleProps:{...o,...n},dragging:l})})}function Ub(e){return e===null?void 0:Math.trunc(Number(e))}function sP({id:e,index:t,isLast:o,form:n,actions:r,canPickAccount:i,handleProps:a}){let l=n.useValue(`items.${e}`)??{};return Jo(ft,{sx:{borderBottom:o?"none":"1px solid #f2f2f0",px:Qu,py:2,gap:2,display:"flex",flexDirection:"column"},children:[Jo(ft,{sx:{display:"flex",alignItems:"center",gap:Qu},children:[be(ft,{...a,"aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uC21C\uC11C \uC774\uB3D9`,sx:{display:"inline-flex",alignItems:"center",flexShrink:0,color:"#c9c8c5",cursor:"grab","&:active":{cursor:"grabbing"},touchAction:"none",userSelect:"none"},children:be(VM,{sx:{fontSize:Yb}})}),be(Xu,{size:"medium",fullWidth:!0,placeholder:Kb,slotProps:{htmlInput:{"data-template-title":t}},name:`items.${e}.title`,form:n})]}),Jo(ft,{sx:{display:"flex",alignItems:"center",gap:2,pl:aP},children:[be(ft,{sx:lc,children:be(Wb,{size:"medium",fullWidth:!0,label:"\uC2DC\uC791 D+",thousandSeparator:!1,align:"right",suffix:"\uC77C",value:l.start_offset_days??null,onValueChange:s=>r.setItem(e,{start_offset_days:Ub(s)})})}),be(ft,{sx:lc,children:be(Wb,{size:"medium",fullWidth:!0,label:"\uB9C8\uAC10 D+",thousandSeparator:!1,align:"right",suffix:"\uC77C",value:l.due_offset_days??null,onValueChange:s=>r.setItem(e,{due_offset_days:Ub(s)})})}),be(ft,{sx:lc,children:be(Gb,{size:"medium",fullWidth:!0,label:"\uC911\uC694\uB3C4",value:l.priority??"medium",options:iP,onChange:s=>r.setItem(e,{priority:s.target.value})})}),i?Jo(ft,{sx:{...lc,position:"relative"},children:[be(Ui,{variant:"outlined",fullWidth:!0,onClick:()=>{r.pickItemManager(e)},sx:{height:Vb,display:"block",textAlign:"left",textTransform:"none",fontSize:16,fontWeight:400,lineHeight:`${Vb-2}px`,py:0,px:1.75,pr:l.manager_account_seq?4.5:1.75,borderColor:"#c4c4c4",color:l.manager_name?"#37352f":"#9a9a97",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&:hover":{borderColor:"#37352f",bgcolor:"transparent"}},children:l.manager_name||"\uCC45\uC784\uC790"}),l.manager_account_seq?be(il,{title:"\uCC45\uC784\uC790 \uBE44\uC6B0\uAE30",arrow:!0,disableInteractive:!0,children:be(rl,{size:"small","aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uCC45\uC784\uC790 \uBE44\uC6B0\uAE30`,onClick:s=>{s.stopPropagation(),r.clearItemManager(e)},sx:{position:"absolute",right:6,top:"50%",transform:"translateY(-50%)"},children:be(UM,{sx:{fontSize:18}})})}):null]}):null,be(il,{title:"\uD56D\uBAA9 \uC0AD\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${t+1}\uBC88 \uD56D\uBAA9 \uC0AD\uC81C`,onClick:()=>r.removeItem(e),children:be(Gt,{sx:{fontSize:18}})})})]})]})}function aZ({open:e,templates:t,customTabs:o,onPickAccount:n,onClose:r,onCreate:i,onUpdate:a,onRemove:l,onRun:s}){let m=Nb({open:e,templates:t,customTabs:o,onPickAccount:n,onClose:r,onCreate:i,onUpdate:a,onRemove:l,onRun:s}),{form:c,actions:p}=m,d=m.modals.list,u=m.modals.form,f=c.isSubmitting,g=Number(c.useValue("editSeq")??0),v=c.useValue("itemIds")??[],[D,b]=$M(0),S=Fb(null),h=Fb(null),E=()=>{let x=h.current?.getScrollContainer()??null;if(x){x.scrollTop=x.scrollHeight;return}let B=S.current?.querySelectorAll("*")??[];for(let w of Array.from(B))if(w.scrollHeight>w.clientHeight+1){w.scrollTop=w.scrollHeight;return}},y=()=>{let x=S.current;if(!x)return null;let B=x.querySelectorAll("input[data-template-title]"),w=B.length?B:x.querySelectorAll(`input[placeholder="${Kb}"]`);return w.length?w[w.length-1]:null};FM(()=>{if(D===0)return;let x=0,B=0,w=()=>{E();let N=y();N&&document.activeElement!==N&&N.focus(),x+=1,!(N&&document.activeElement===N)&&x<8&&(B=window.setTimeout(w,50))},_=window.requestAnimationFrame(w);return()=>{window.cancelAnimationFrame(_),window.clearTimeout(B)}},[D]);let T=o.filter(x=>!x.archived).map(x=>({value:String(hn(x.key)),label:x.label})),I=Number(c.useValue("group_seq")??0),A=QM(XM(YM,{activationConstraint:{distance:5}})),q=x=>{let B=String(x.active?.id??""),w=String(x.over?.id??"");!B||!w||B===w||p.moveItem(B,w)},C=be(ft,{children:t.length===0?Jo(ft,{sx:{py:4,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:"#9a9a97"},children:[be(GM,{sx:{fontSize:48,color:"#d9d9d6"}}),be(ft,{sx:{fontSize:13.5},children:"\uB4F1\uB85D\uB41C \uD15C\uD50C\uB9BF\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."})]}):t.map(x=>Jo(ft,{sx:{display:"flex",alignItems:"center",gap:2.5,py:1.75,"&:not(:last-of-type)::after":{content:'""',display:"block",my:1.75,borderBottom:"1px solid #f0efed"}},children:[Jo(ft,{sx:{flex:1,minWidth:0},children:[be(ft,{sx:{fontSize:18,fontWeight:600,color:"#37352f"},children:x.name}),Jo(ft,{sx:{fontSize:14,color:"#787774",mt:.25},children:["\uC5C5\uBB34 ",x.items.length,"\uAC74",x.description?` \xB7 ${x.description}`:""]})]}),s?be(Ui,{size:"medium",variant:"outlined",onClick:()=>p.runTemplate(x),sx:{flexShrink:0},children:"\uC2E4\uD589"}):null,be(il,{title:"\uC218\uC815",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uC218\uC815`,onClick:()=>p.openEdit(x),children:be(HM,{sx:{fontSize:19}})})}),be(il,{title:"\uBCF5\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uBCF5\uC81C`,onClick:()=>p.openDuplicate(x),children:be(WM,{sx:{fontSize:18}})})}),be(il,{title:"\uC0AD\uC81C",arrow:!0,disableInteractive:!0,children:be(rl,{size:"medium","aria-label":`${x.name} \uD15C\uD50C\uB9BF \uC0AD\uC81C`,onClick:()=>{p.removeTemplate(x)},children:be(Gt,{sx:{fontSize:18}})})})]},x.seq))}),k=Jo(ft,{sx:{display:"flex",flexDirection:"column",gap:3},children:[be(Xu,{size:"medium",label:"\uD15C\uD50C\uB9BF \uC774\uB984",placeholder:"\uC608: \uC2E0\uADDC \uC785\uC0AC\uC790 \uC628\uBCF4\uB529",fullWidth:!0,name:"name",form:c}),Jo(ft,{sx:{display:"grid",gridTemplateColumns:T.length>0?"1fr 1fr":"1fr",gap:2},children:[be(Xu,{size:"medium",label:"\uC124\uBA85",placeholder:"\uBAA9\uB85D\uC5D0\uC11C \uBB34\uC5C7\uC778\uC9C0 \uC54C\uC544\uBCFC \uD55C \uC904(\uC120\uD0DD)",fullWidth:!0,name:"description",form:c}),T.length>0?be(Gb,{size:"medium",fullWidth:!0,label:"\uB9CC\uB4E4 \uACF3(\uD504\uB85C\uC81D\uD2B8)",value:String(I),options:[{value:"0",label:"\uAE30\uBCF8 \uC5C5\uBB34\uD568"},...T],onChange:x=>c.setFormValue("group_seq",Number(x.target.value)||0)}):null]}),Jo(ft,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[be(ft,{sx:{fontSize:18,fontWeight:600,color:"#37352f"},children:"\uC5C5\uBB34 \uD56D\uBAA9"}),be(ft,{sx:{fontSize:14,color:"#37352f"},children:"\uB0A0\uC9DC\uB294 \uC2E4\uD589\uD560 \uB54C \uACE0\uB974\uB294 \uAE30\uC900\uC77C\uC5D0\uC11C \uACC4\uC0B0\uB429\uB2C8\uB2E4."})]}),v.length===0?be(ft,{sx:{fontSize:14,color:"#9a9a97",py:2},children:'\uC544\uC9C1 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. "\uD56D\uBAA9 \uCD94\uAC00" \uB85C \uC808\uCC28\uB97C \uC21C\uC11C\uB300\uB85C \uC801\uC73C\uC138\uC694.'}):be(ft,{ref:S,sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:be(rP,{ref:h,style:{maxHeight:"min(560px, 52vh)"},thumb:{width:6},children:be(KM,{sensors:A,collisionDetection:jM,modifiers:[JM,ZM],onDragEnd:q,children:be(eP,{items:v,strategy:oP,children:v.map((x,B)=>be(lP,{id:x,children:({handleProps:w})=>be(sP,{id:x,index:B,isLast:B===v.length-1,form:c,actions:p,canPickAccount:!!n,handleProps:w})},x))})})})})]});return Jo(cP,{children:[be(Hb,{open:d.isOpen,onClose:d.close,maxWidth:"md",title:"\uC5C5\uBB34 \uD15C\uD50C\uB9BF",locale:"ko",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-task-template",tabs:{visible:!1},actions:{showCancelButton:!1,left:be(Ui,{startIcon:be($b,{sx:{fontSize:18}}),onClick:p.openCreate,children:"\uC0C8 \uD15C\uD50C\uB9BF"}),right:be(Ui,{variant:"contained",onClick:d.close,children:"\uB2EB\uAE30"})},sectionContentPaddingTop:0,sections:[{id:"templates",title:"",showTitle:!1,children:C}]}),be(Hb,{open:u.isOpen,onClose:u.close,maxWidth:"md",title:g>0?"\uD15C\uD50C\uB9BF \uC218\uC815":"\uC0C8 \uD15C\uD50C\uB9BF",locale:"ko",backdropClick:!1,fontScale:{enabled:!0},fontScaleKey:"taskbox-task-template-form",titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},tabs:{visible:!1},actions:{showCancelButton:!0,left:be(Ui,{startIcon:be($b,{sx:{fontSize:18}}),onClick:()=>{p.addItem(),b(x=>x+1)},children:"\uD56D\uBAA9 \uCD94\uAC00"}),right:be(Ui,{variant:"contained",disabled:f,onClick:()=>{c.submit()},children:"\uC800\uC7A5"})},sectionContentPaddingTop:0,sections:[{id:"template-form",title:"",showTitle:!1,children:k}]})]})}import{Box as mo,Button as uP}from"@mui/material";import{FormDialog as dP}from"@ehfuse/mui-form-dialog";import{DateTextField as pP}from"@ehfuse/mui-form-controls";import fP from"@ehfuse/overlay-scrollbar";import{useRef as Zu}from"react";import{useGlobalForm as mP}from"@ehfuse/forma";function jb(e){let t=Zu(e);t.current=e;let o=Zu(e.template);e.template&&(o.current=e.template);let n=e.template??o.current,r=Zu(n);r.current=n;let i=mP({formId:we("taskbox-template-run-form"),initialValues:{baseDate:e.todayStr},onValidate:s=>t.current.running||!r.current?!1:fs(r.current,s.baseDate).length>0,onSubmit:s=>r.current?(t.current.onRun(fs(r.current,s.baseDate),s.baseDate),!0):!1}),a={run:Xo({modalId:we("taskbox-template-run"),open:e.open,onClose:()=>t.current.onClose(),onOpen:()=>i.setFormValues({baseDate:t.current.todayStr})})},l=s=>n?fs(n,s):[];return{form:i,modals:a,template:n,running:!!e.running,planTasks:l}}import{jsx as So,jsxs as al}from"react/jsx-runtime";function yZ(e){let t=jb(e),{form:o,running:n}=t,r=t.modals.run,i=t.template,a=String(o.useValue("baseDate")??""),l=t.planTasks(a);return So(dP,{open:r.isOpen,onClose:r.close,maxWidth:"md",title:i?`${i.name} \uC2E4\uD589`:"\uD15C\uD50C\uB9BF \uC2E4\uD589",locale:"ko",backdropClick:!1,titleIcons:{delete:{visible:!1},print:{visible:!1},share:{visible:!1}},fontScale:{enabled:!0},fontScaleKey:"taskbox-template-run",tabs:{visible:!1},sectionContentPaddingTop:0,actions:{showCancelButton:!0,right:So(uP,{variant:"contained",disabled:n||l.length===0,onClick:()=>{o.submit()},children:n?"\uB9CC\uB4DC\uB294 \uC911\u2026":`\uC5C5\uBB34 ${l.length}\uAC74 \uB9CC\uB4E4\uAE30`})},sections:[{id:"template-run",title:"",showTitle:!1,children:al(mo,{sx:{display:"flex",flexDirection:"column",gap:2},children:[al(mo,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[So(mo,{sx:{width:72,flexShrink:0,fontSize:16,color:"#37352f"},children:"\uAE30\uC900\uC77C"}),So(pP,{size:"medium",fullWidth:!0,name:"baseDate",form:o})]}),So(mo,{sx:{fontSize:14.5,color:"#37352f"},children:"\uC544\uB798 \uC5C5\uBB34\uAC00 \uD55C\uAEBC\uBC88\uC5D0 \uB9CC\uB4E4\uC5B4\uC9D1\uB2C8\uB2E4. \uB0A0\uC9DC\uB294 \uAE30\uC900\uC77C\uC5D0\uC11C \uACC4\uC0B0\uB41C \uAC12\uC785\uB2C8\uB2E4."}),al(mo,{sx:{border:"1px solid #e6e6e3",borderRadius:1,overflow:"hidden"},children:[al(mo,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1,bgcolor:"#fafaf9",borderBottom:"1px solid #e6e6e3",fontSize:13.5,fontWeight:600,color:"#37352f"},children:[So(mo,{sx:{flex:1,minWidth:0},children:"\uC5C5\uBB34"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center"},children:"\uC2DC\uC791"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center"},children:"\uB9C8\uAC10"}),So(mo,{sx:{width:96,flexShrink:0,textAlign:"center"},children:"\uCC45\uC784\uC790"})]}),So(fP,{style:{maxHeight:520},thumb:{width:6},children:l.length===0?So(mo,{sx:{p:2,fontSize:14,color:"#9a9a97"},children:"\uB9CC\uB4E4 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}):l.map((s,m)=>al(mo,{sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:1.25,borderBottom:m===l.length-1?"none":"1px solid #f2f2f0",fontSize:16,fontWeight:500,color:"#111111"},children:[So(mo,{sx:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.title}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.start_date?"#37352f":"#9a9a97"},children:im(s.start_date)||"-"}),So(mo,{sx:{width:88,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.due_date?"#37352f":"#9a9a97"},children:im(s.due_date)||"-"}),So(mo,{sx:{width:96,flexShrink:0,textAlign:"center",fontSize:13.5,color:s.manager_name?"#37352f":"#9a9a97",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.manager_name||"-"})]},m))})]})]})}]})}var gP={urgent:"\uAE34\uAE09",high:"\uB192\uC74C",normal:"\uC911\uAC04",low:"\uB0AE\uC74C"};function xP(e){return e.length===0?"":e.length<=2?e.join(", "):`${e[0]} \uC678 ${e.length-1}\uBA85`}function sc(e){let t=String(e??"").trim().slice(0,10);return/^\d{4}-\d{2}-\d{2}$/.test(t)?`${t.slice(2,4)}.${t.slice(5,7)}.${t.slice(8,10)}`:"-"}function Gi(e){let t=o=>String(o).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}`}function Ju(e,t,o){let r=String(e.due_date??"").slice(11,16).trim()||String(e.estimated_time??"").trim(),i=sc(e.due_date),a=String(e.start_date??"").slice(11,16).trim(),l=sc(e.start_date),s=(e.receiver_names??[]).filter(Boolean).map(c=>String(c).trim()),m=(e.checklist??[]).length?`${(e.checklist??[]).filter(c=>c.checked).length}/${(e.checklist??[]).length}`:"";return{seq:Number(e.seq??0),title:String(e.title??"").trim(),statusName:Mt(e).name,projectLabel:e.tab_key?t.get(String(e.tab_key))??"":"",managerName:String(e.manager_name??"").trim(),receiverNames:xP(s),receiverNamesFull:s.join(", "),startDate:l!=="-"&&a?`${l} ${a}`:l,dueDate:i!=="-"&&r?`${i} ${r}`:i,priorityName:gP[String(e.priority??"")]??"",checklist:m,checklistItems:(e.checklist??[]).map(c=>{let p=c.task_seq&&o?o(Number(c.task_seq)):null,d=sc(p?.due_date),u=String(p?.due_date??"").slice(11,16).trim();return{label:String(c.label??"").trim(),checked:!!c.checked,managerName:String(p?.manager_name??"").trim(),dueDate:d!=="-"?u?`${d} ${u}`:d:""}}),note:String(e.note??"").trim(),completed:!!e.completed}}function Fe(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function bP(e,t){if(e===" ")return t*.3;let o=e.codePointAt(0)??0,n=o>=4352&&o<=4607||o>=12288&&o<=40959||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65280&&o<=65519;return t*(n?1:.55)}function cc(e,t){let o=0;for(let n of String(e??""))o+=bP(n,t);return o}function Ki(e,t){let o=String(e??"").trim();if(!o)return["-"];let n=[],r="";for(let i of o){if(i===`
|
|
19
19
|
`){r&&n.push(r),r="";continue}let a=`${r}${i}`;if(a.length>t&&r){n.push(r),r=i;continue}r=a}return r&&n.push(r),n.length>0?n:["-"]}function Nn(e,t,o){let n=String(e??"").replace(/\s+/g," ").trim();if(!n)return"";if(cc(n,o)<=t)return n;let r=cc("\u2026",o),i="",a=0;for(let l of n){let s=cc(l,o);if(a+s+r>t)break;i+=l,a+=s}return`${i}\u2026`}var sl=595.28,cl=841.89,ml=841.89,ul=595.28,uo=28,en=96,Fo=44,hP="'Malgun Gothic','\uB9D1\uC740 \uACE0\uB515','Apple SD Gothic Neo','Noto Sans KR',sans-serif",kP="'Batang','\uBC14\uD0D5','AppleMyungjo','Noto Serif KR',serif",ll="#cbd5e1",TP=[`text { font-family: ${hP}; fill: #000000; }`,`.doc-title { font-family: ${kP}; font-size: 20px; font-weight: 700; }`,".doc-sub { font-size: 10.5px; fill: #333333; }",".doc-meta { font-size: 9.5px; fill: #333333; }",".th { font-size: 9.5px; font-weight: 700; fill: #000000; }",`.td { font-size: 9px; }
|
|
20
20
|
.ck{font-size:9px;fill:#475569;}
|
|
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: ${ll}; stroke-width: 0.5; }`,`.group { fill: #f8fafc; stroke: ${ll}; stroke-width: 0.5; }`,`.frame { fill: none; stroke: ${ll}; stroke-width: 0.5; }`,`.hline { stroke: ${ll}; stroke-width: 0.5; }`,`.vline { stroke: ${ll}; 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 mr(e,t,o){let n=o-uo;return[`<text x="${uo}" y="46" class="doc-title">${Fe(e.documentTitle)}</text>`,`<text x="${uo}" y="66" class="doc-sub">${Fe(e.subtitle)}</text>`,`<text x="${n}" y="42" class="doc-meta" text-anchor="end">${Fe(e.facilityName)}</text>`,`<text x="${n}" y="58" class="doc-meta" text-anchor="end">\uCD9C\uB825 ${Fe(Gi(e.printedAt))}${e.printedBy?` \xB7 ${Fe(e.printedBy)}`:""}</text>`,t?`<text x="${n}" y="74" class="doc-meta" text-anchor="end">${Fe(t)}</text>`:""].join("")}function ur(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>${TP}</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 td=ml,Xb=ul,Fn=uo,dl=td-uo,Yi=22,Fr=20,ji=22,dr=18,Lr=5,Qb=en,Zb=Fo,ed=Xb-46,pr=[{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"}],Nr=pr.reduce((e,t,o)=>(e.push(o===0?Fn:e[o-1]+pr[o-1].width),e),[]);function yP(e){let t=[],o=[],n=Qb+Yi,r=0,i=(a,l)=>{t.push(o),o=[],n=Zb+Yi,a&&(o.push({kind:"group",label:a,count:l,continued:!0}),n+=ji)};for(let a of e){a.label&&(n+ji+Fr>ed&&i("",0),o.push({kind:"group",label:a.label,count:a.rows.length,continued:!1}),n+=ji);for(let l of a.rows){n+Fr>ed&&i(a.label,a.rows.length),r+=1,o.push({kind:"row",completed:l.completed,values:pr.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+=Fr;for(let s of l.checklistItems)s.label&&(n+dr>ed&&i(a.label,a.rows.length),o.push({kind:"check",label:s.label,checked:s.checked,managerName:s.managerName,dueDate:s.dueDate}),n+=dr)}}return t.push(o),t.filter((a,l)=>l===0||a.length>0)}function SP(e,t){let o=[],n=[],r=(a,l,s)=>{Nr.slice(1).forEach((m,c)=>{let p=c+1;s(p)||n.push(`<line x1="${m}" y1="${a}" x2="${m}" y2="${a+l}" class="vline" />`)})};o.push(`<rect x="${Fn}" y="${t}" width="${dl-Fn}" height="${Yi}" class="head" />`),pr.forEach((a,l)=>{let s=Nr[l],m=a.align==="middle"?s+a.width/2:s+Lr;o.push(`<text x="${m}" y="${t+Yi-7}" class="th" text-anchor="${a.align}">${Fe(a.label)}</text>`)}),r(t,Yi,()=>!1);let i=t+Yi;for(let a of e){if(a.kind==="group"){o.push(`<rect x="${Fn}" y="${i}" width="${dl-Fn}" height="${ji}" class="group" />`,`<text x="${Fn+Lr}" y="${i+ji-7}" class="gt">${Fe(`${a.continued?`${a.label} (\uC774\uC5B4\uC11C)`:a.label} (${a.count})`)}</text>`),i+=ji;continue}if(a.kind==="check"){let l=Nr[1]+Lr+10,s=Nr[4]-Nr[1],m=a.checked?"ck done":"ck";o.push(`<text x="${l}" y="${i+dr-5}" class="${m}">${Fe(`${a.checked?"\u2713":"\u25CB"} ${Nn(a.label,s-Lr*2-22,9)}`)}</text>`),a.dueDate&&o.push(`<text x="${Nr[4]+pr[4].width/2}" y="${i+dr-5}" class="${m}" text-anchor="middle">${Fe(Nn(a.dueDate,pr[4].width-Lr*2,9))}</text>`),a.managerName&&o.push(`<text x="${Nr[5]+pr[5].width/2}" y="${i+dr-5}" class="${m}" text-anchor="middle">${Fe(Nn(a.managerName,pr[5].width-Lr*2,9))}</text>`),o.push(`<line x1="${Fn}" y1="${i+dr}" x2="${dl}" y2="${i+dr}" class="hline" />`),r(i,dr,c=>c>=2&&c<=3),i+=dr;continue}pr.forEach((l,s)=>{let m=Nr[s],c=l.align==="middle"?m+l.width/2:m+Lr;o.push(`<text x="${c}" y="${i+Fr-6}" class="${a.completed?"td done":"td"}" text-anchor="${l.align}">${Fe(Nn(a.values[s]??"",l.width-Lr*2,9))}</text>`)}),o.push(`<line x1="${Fn}" y1="${i+Fr}" x2="${dl}" y2="${i+Fr}" class="hline" />`),r(i,Fr,()=>!1),i+=Fr}return o.push(...n),o.push(`<rect x="${Fn}" y="${t}" width="${dl-Fn}" height="${i-t}" class="frame" />`),o.join("")}async function CP(e,t){let o=yP(t),n=t.reduce((r,i)=>r+i.rows.length,0);return o.map((r,i)=>{let a=i===0?Qb:Zb,l=[i===0?mr(e,`\uC804\uCCB4 ${n}\uAC74`,td):"",SP(r,a)].join("");return ur({width:td,height:Xb,body:l,pageIndex:i,pageCount:o.length})})}var nd=sl,Jb=cl,$n=uo,mc=nd-uo,BP=Jb-46,eh=22,vP=68,IP=(mc-$n)/2,_P=14,od=58;function Xi(e){switch(e.kind){case"title":return 34;case"props":return Math.ceil(e.pairs.length/2)*eh+10;case"section":return 26;default:return _P}}function wP(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(`
|