(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[0],{10:function(e,t,a){"use strict";var n=a(7);t.a=new class{constructor(){this.containsCharsOnly=(e,t)=>{for(let a=0;athis.containsCharsOnly(e,"0123456789"),this.getLastWeek=()=>{const e=new Date;return e.setDate(e.getDate()-7),e},this.getDateString=(e,t)=>{"Date"!==e.constructor.name&&(e=new Date(e)),void 0!==t&&""!==t.trim()||(t="yyyy-mm-dd");const a=e.getMonth()+1>9?"".concat(e.getMonth()+1):"0".concat(e.getMonth()+1),n=e.getDate()>9?"".concat(e.getDate()):"0".concat(e.getDate());return t.replace("yyyy",e.getFullYear()).replace("mm",a).replace("dd",n)},this.getDateTimeString=e=>{if("Date"!==e.constructor.name){const t=e.replace("T"," ").replace("Z","").split(" ");let a=t[0].split("/");a.length<=1&&(a=t[0].split("-"));const n=t[1].split(":");e=new Date(a[0],Number(a[1])-1,a[2],n[0],n[1],n[2])}const t=e.getHours()>9?"".concat(e.getHours()):"0".concat(e.getHours()),a=e.getMinutes()>9?"".concat(e.getMinutes()):"0".concat(e.getMinutes()),n=e.getSeconds()>9?"".concat(e.getSeconds()):"0".concat(e.getSeconds());return"".concat(this.getDateString(e)," ").concat(t,":").concat(a,":").concat(n)},this.pathToName=e=>void 0!==e&&""!==e?e.substring(e.lastIndexOf("/")+1):"",this.checkName=e=>""!==e.trim()&&!/[\\/:*?\\"<>|]/.test(e.trim()),this.changeAccessibleFolder=e=>0===(e=(e=e.replace("/COODOC/users/","")).substring(e.indexOf("/"))).indexOf("/Organization")?e.replace("/Organization","/\uc870\uc9c1\ud3f4\ub354"):0===e.indexOf("/Collect")?e.replace("/Collect","/\uc218\uc9d1\ud3f4\ub354"):0===e.indexOf("/Private")?e.replace("/Private","/\uac1c\uc778\ud3f4\ub354"):0===e.indexOf("/Shared")?e.replace("/Shared","/\uacf5\uc720\ud3f4\ub354"):e,this.findFolderType=e=>{switch(e){case n.K:return"Unknown";case n.F:return"\uc870\uc9c1\ud3f4\ub354";case n.I:return"\uacf5\uc720\ud3f4\ub354";case n.H:return"\uac1c\uc778\ud3f4\ub354";case n.E:return"\uc218\uc9d1\ud3f4\ub354";case n.J:return"\ud734\uc9c0\ud1b5";default:return"\ud3f4\ub354"}},this.getJSONFromURLParameter=e=>{const t={};return e?((e=e.substring(1)).split("&").forEach((e=>{const a=e.split("=");t[a[0]]=decodeURIComponent(a[1])})),t):t},this.loadFileArray=(e,t,a,n)=>new Promise(((s,c)=>{e.onload=e=>s(e.target.result),e.onerror=e=>{"error"===e.type&&console.error("failed to load file")},e.readAsArrayBuffer(t.slice(a,n))})),this.cidrToRange=e=>{const[t,a]=e.split("/"),n=parseInt(a,10),s=2**(32-n),c=this.ipToLong(t)&~(s-1),l=c+s-1;return 32===n?this.longToIp(c):"".concat(this.longToIp(c),"~").concat(this.longToIp(l))},this.calculateHostRange=e=>{if(!e.includes("/"))return{result:!1,code:1};const[t,a]=e.split("/");if(!this.isValidIp(t))return{result:!1,code:1};const n=parseInt(a,10);if(n<0||n>32)return{result:!1,code:2};const s=4294967295<<32-n>>>0,c=this.ipToLong(t)&s,l=c|~s>>>0,r=32===n?c:c+1,i=n>=31?l:l-1;return r>i?{result:!1,code:2}:{result:!0,msg:"\uc811\uc18d \uac00\ub2a5\ud55c IP: ".concat(this.longToIp(r)," ~ ").concat(this.longToIp(i)," (\ucd1d ").concat(i-r+1,"\uac1c)")}},this.ipToLong=e=>e.split(".").reduce(((e,t)=>(e<<8)+parseInt(t,10)),0)>>>0,this.longToIp=e=>[e>>>24&255,e>>>16&255,e>>>8&255,255&e].join("."),this.isValidIp=e=>{const t=e.split(".");return 4===t.length&&t.every((e=>{const t=Number(e);return""!==e&&!Number.isNaN(t)&&t>=0&&t<=255}))},this.xmlToJson=e=>{const t=(new DOMParser).parseFromString(e,"text/xml").documentElement;return{[t.tagName]:function e(t){const a={};if(t.attributes&&t.attributes.length>0)for(const s of t.attributes)a[s.name]=s.value;let n="";for(const s of t.childNodes){if(s.nodeType===Node.ELEMENT_NODE){const t=e(s);a[s.tagName]?(Array.isArray(a[s.tagName])||(a[s.tagName]=[a[s.tagName]]),a[s.tagName].push(t)):a[s.tagName]=[t]}if(s.nodeType===Node.TEXT_NODE){const e=s.nodeValue.trim();e&&(n+=e)}}return n&&(a.text=n),a}(t)}},this.jsonToXml=(e,t)=>{let a="";const n=[],s=[];for(const c in e)Array.isArray(e[c])?e[c].forEach((e=>{s.push(this.jsonToXml(e,c))})):n.push("".concat(c,'="').concat(e[c],'"'));return t?s.length>0?(a+="<".concat(t).concat(n.length?" ".concat(n.join(" ")):"",">"),a+=s.join(""),a+="")):a+="<".concat(t).concat(n.length?" ".concat(n.join(" ")):""," />"):a+=s.join(""),a},this.isValidDate=e=>{if(!/^(0?[1-9]|1[0-2])\/(0?[1-9]|[12]\d|3[01])\/(\d{4})$/.test(e))return!1;const[t,a,n]=e.split("/").map(Number),s=new Date(n,t-1,a);return s.getFullYear()===n&&s.getMonth()===t-1&&s.getDate()===a}}getDateStringToLocalDate(e,t){if(!e||0===e.length)return"";const a=e.replace("T"," ").replace("Z","").split(" ");if(1===a.length)return a[0];let n=a[0].split("/");n.length<=1&&(n=a[0].split("-"));const s=a[1].split(":"),c=new Date(Date.UTC(n[0],Number(n[1])-1,n[2],s[0],s[1],s[2])),l=c.getHours()>9?"".concat(c.getHours()):"0".concat(c.getHours()),r=c.getMinutes()>9?"".concat(c.getMinutes()):"0".concat(c.getMinutes()),i=c.getSeconds()>9?"".concat(c.getSeconds()):"0".concat(c.getSeconds());return t?this.getDateString(c,t):"".concat(this.getDateString(c,t)," ").concat(l,":").concat(r,":").concat(i)}getDateStringToDate(e){if(!e||0===e.length)return"";const t=e.split(" ");let a=t[0].split("/");a.length<=1&&(a=t[0].split("-"));const n=t[1]?t[1].split(":"):["00","00","00"];return new Date(Date.UTC(a[0],Number(a[1])-1,a[2],n[0],n[1],n[2]))}getDate(e){if(!e||0===e)return new Date;const t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)}getStringToDate(e){const t=e.split("-");return new Date(t[0],Number(t[1])-1,t[2])}getDateDifference(e,t){const a=t.getTime()-e.getTime();return parseInt(a/864e5,10)}isAfter(e,t){return e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()>=t.getTime()}getDateDifferenceByNow(e){if(!e||0===e.length)return 0;const t=e.replace("T"," ").replace("Z","").split(" ");let a=t[0].split("/");a.length<=1&&(a=t[0].split("-"));const n=t[1].split(":"),s=new Date(Date.UTC(a[0],Number(a[1])-1,a[2],n[0],n[1],n[2])),c=new Date;return s.getTime()-c.getTime()}getSecToTime(e){parseInt(e/3600,10);const t=parseInt(e/3600,10)<10?"0".concat(parseInt(e/3600,10)):parseInt(e/3600,10),a=parseInt(e%3600/60,10)<10?"0".concat(parseInt(e%3600/60,10)):parseInt(e%3600/60,10),n=Math.floor(e%60)<10?"0".concat(Math.floor(e%60)):Math.floor(e%60);return"".concat(t,":").concat(a,":").concat(n)}splitLastDelimiterString(e,t){return void 0===e||0===e.length?"":(t||(t="/"),(e=e.replace(/\\/g,"/")).substring(e.lastIndexOf(t)+1))}splitSecond2LastDelimiterString(e,t){return void 0===e||0===e.length?"":(t||(t="/"),e=e.replace(/\\/g,"/"),this.splitLastDelimiterString(this.splitPreDelimiter(e,t),t))}splitPreDelimiter(e,t){return void 0===e||0===e.length?"":(t||(t="/"),(e=e.replace(/\\/g,"/")).substring(0,e.lastIndexOf(t)))}splitPreSecond2LastDelimiterString(e,t){return void 0===e||0===e.length?"":(t||(t="/"),(e=e.replace(/\\/g,"/")).substring(e.lastIndexOf(t,e.lastIndexOf(t)-1)+1))}shortenPath(e){const t=e.split("/");if(t.length<4)return e;let a=t[1];return a+="/".concat(t[2]),t.length>4&&(a+="/..."),a+="/".concat(t[t.length-1]),a}changeByteToString(e){return void 0===e?"-":e>1099511627776?"".concat((e/1099511627776).toFixed(2)," TB"):e>1073741824?"".concat((e/1073741824).toFixed(2)," GB"):e>1048576?"".concat((e/1048576).toFixed(2)," MB"):e>1024?"".concat((e/1024).toFixed(2)," KB"):"".concat(e.toFixed(0)," B")}addComma(e){if(e<1e3){let t="";return e.toString().indexOf(".")>-1&&(t=e.substring(e.toString().indexOf(".")),e=Math.floor(e)),e+t}e=Math.floor(e);const t=(e+="").length;let a=e.length%3,n=e.substring(0,a);for(;asetTimeout(t,e)))}getLocalStorage(e){const t=localStorage.getItem(e);if("string"!==typeof t)return{};try{const e=JSON.parse(t);return null!==e&&"object"===typeof e?e:{}}catch(a){return{}}}setLocalStorage(e,t){localStorage.setItem(e,JSON.stringify(t))}isDocument(e){const t=e.slice(e.lastIndexOf(".")).toLowerCase();return[".doc",".docx",".xls",".xlsx",".ppt",".pptx",".txt","pdf"].includes(t)}isValidJSON(e){if("string"!==typeof e)return!1;try{const t=JSON.parse(e);return null!==t&&"object"===typeof t}catch(t){return!1}}infoLog(e){const t=new Date,a=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),c=String(t.getHours()).padStart(2,"0"),l=String(t.getMinutes()).padStart(2,"0"),r=String(t.getSeconds()).padStart(2,"0"),i=String(t.getMilliseconds()).padStart(3,"0");"".concat(a,"-").concat(n,"-").concat(s," ").concat(c,":").concat(l,":").concat(r,".").concat(i)}}},104:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return u}));var n=a(2),s=a(28),c=a(1),l=a.n(c);var r=function(e,t){const[a,l]=Object(c.useState)(e),r=Object(c.useCallback)((e=>{e.persist(),l((t=>s.a.setIn(Object(n.a)({},t),e.target.name,"checkbox"===e.target.type?e.target.checked:e.target.value)))}),[]),i=Object(c.useCallback)((()=>{s.a.isEqual(e,a)||l(e)}),[a,e]),o=Object(c.useCallback)(((e,t)=>{l((a=>s.a.setIn(a,e,t)))}),[]),d=Object(c.useCallback)((e=>{e&&e.preventDefault(),t&&t()}),[t]);return{form:a,handleChange:r,handleSubmit:d,resetForm:i,setForm:l,setInForm:o}};var i=function(e,t,a){return Object(c.useRef)(s.a.debounce(e,t,a)).current};var o=function(e,t){const a=Object(c.useRef)(e);Object(c.useEffect)((()=>{a.current=e}),[e]),Object(c.useEffect)((()=>{let n;return t&&e&&"function"===typeof e&&(n=setTimeout(a.current,t||0)),()=>{n&&clearTimeout(n)}}),[e,t])};var d=a(256),b=a.n(d);function j(e){const t=l.a.useRef();return b()(e,t.current)||(t.current=e),t.current}var u=function(e,t){l.a.useEffect(e,j(t))}},106:function(e,t,a){"use strict";a.d(t,"c",(function(){return u})),a.d(t,"i",(function(){return O})),a.d(t,"s",(function(){return p})),a.d(t,"a",(function(){return h})),a.d(t,"j",(function(){return m})),a.d(t,"z",(function(){return _})),a.d(t,"p",(function(){return f})),a.d(t,"G",(function(){return g})),a.d(t,"F",(function(){return E})),a.d(t,"l",(function(){return x})),a.d(t,"e",(function(){return N})),a.d(t,"L",(function(){return T})),a.d(t,"h",(function(){return R})),a.d(t,"d",(function(){return C})),a.d(t,"B",(function(){return A})),a.d(t,"t",(function(){return L})),a.d(t,"D",(function(){return w})),a.d(t,"r",(function(){return I})),a.d(t,"y",(function(){return P})),a.d(t,"v",(function(){return D})),a.d(t,"M",(function(){return M})),a.d(t,"A",(function(){return k})),a.d(t,"J",(function(){return G})),a.d(t,"w",(function(){return U})),a.d(t,"x",(function(){return W})),a.d(t,"C",(function(){return H})),a.d(t,"u",(function(){return z})),a.d(t,"f",(function(){return B})),a.d(t,"b",(function(){return K})),a.d(t,"m",(function(){return Y})),a.d(t,"k",(function(){return V})),a.d(t,"n",(function(){return X})),a.d(t,"o",(function(){return q})),a.d(t,"q",(function(){return Q})),a.d(t,"E",(function(){return ae})),a.d(t,"H",(function(){return re})),a.d(t,"I",(function(){return ie})),a.d(t,"K",(function(){return oe}));var n=a(2),s=a(199),c=a.n(s),l=a(27),r=a(6),i=a(11),o=a(10),d=a(7),b=a(15),j=a(34);const u=Object(l.b)("wc/file/checkStructFolder",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=[];return n().docbase.wc.file.dashboardObj.private.fid>0&&s.push({accessible:!1,name:n().docbase.wc.file.dashboardObj.private.path.replace("/",""),purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.H}),n().docbase.wc.file.dashboardObj.collect.fid>0&&s.push({accessible:!1,name:n().docbase.wc.file.dashboardObj.collect.path.replace("/",""),purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.E}),n().docbase.wc.file.dashboardObj.organizations.length>0&&s.push({accessible:!1,name:"\uc870\uc9c1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.F}),n().docbase.wc.file.dashboardObj.shareds.length>0&&s.push({accessible:!1,name:"\uacf5\uc720",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.I}),s})),O=Object(l.b)("wc/file/fileList",(async(e,t)=>{let{targetFile:a,isDirect:n}=e,{dispatch:s,getState:c}=t;if(!a.name)return s(Q()),!1;const l=n?"/".concat(a.name):"".concat("/"===c().docbase.wc.file.curPath?"":c().docbase.wc.file.curPath,"/").concat(a.name),i=await r.a.sendPost("/wcapi/fileList",{path:l});return i.result?(s(ee({fileInfo:a,isFirst:n})),s($({files:i.files,curPath:l})),!0):("\uacf5\uc720"!==l&&"Shared"!==l?s(Q()):(s(ee({fileInfo:a,isFirst:n})),s($({files:[],curPath:l}))),!1)})),p=Object(l.b)("wc/file/orgFileList",(async(e,t)=>{var a;let{targetObj:s,isDirect:c}=e,{dispatch:l,getState:r}=t;const i=Object(n.a)({},s),{organizations:b}=r().docbase.wc.file.dashboardObj,j=i.org_type===d.cb,u=i.org_type===d.bb,O=null===(a=i.path)||void 0===a?void 0:a.includes("/\uc870\uc9c1/\ud611\uc5c5\ud3f4\ub354");let p=d.ab;u?p=d.bb:j&&(p=O?d.Z:d.cb),i.path="/\uc870\uc9c1",i.org_type=p;const h=b.reduce(((e,t)=>{let a=!1;var s,c;t.org_type===d.cb?(p===d.cb&&null!==(s=t.path)&&void 0!==s&&s.includes("/\uc870\uc9c1/\ud30c\ud2b8\ub108\ud3f4\ub354")||p===d.Z&&null!==(c=t.path)&&void 0!==c&&c.includes("/\uc870\uc9c1/\ud611\uc5c5\ud3f4\ub354"))&&(a=!0):a=t.org_type===p;return a&&e.push(Object(n.a)(Object(n.a)({},t),{},{name:o.a.splitLastDelimiterString(t.path),accessible:!1,archived:!1,folder_type:d.F,last_modified:"",piid_file:!1,purge_trash_file:!1,secure_document:!1,size:0,trash_file:!1,type:1,path:"/\uc870\uc9c1"})),e}),[]);console.log(h),l(ee({fileInfo:i,isFirst:c})),l($({files:h,curPath:i.path}))})),h=Object(l.b)("wc/file/fileList",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=o.a.splitPreDelimiter(n().docbase.wc.file.curPath);if(""===s)return a(Q()),a(ne({isInitial:!0})),!1;const c=await r.a.sendPost("/wcapi/fileList",{path:s});return c.result?(a($({files:c.files,curPath:s})),a(ne({isInitial:!1})),!0):(a(Q()),a(ne({isInitial:!0})),!1)})),m=Object(l.b)("wc/file/fileList",(async(e,t)=>{let{targetPath:a,isRefresh:n}=e,{dispatch:s,getState:c}=t;if(""===a||"/"===a)return s(Q()),!1;const l=await r.a.sendPost("/wcapi/fileList",{path:a});return l.result?(s($({files:l.files,curPath:a})),n||s(te({reqPath:a})),!0):(s(Q()),!1)})),_=Object(l.b)("wc/file/refreshFileList",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=await r.a.sendPost("/wcapi/fileList",{path:n().docbase.wc.file.curPath});return s.result?(a($({files:s.files,curPath:n().docbase.wc.file.curPath})),!0):(a(Q()),!1)})),f=Object(l.b)("wc/file/revisionFiles",(async e=>{let{targetPath:t}=e;const a=await r.a.sendPost("/wcapi/revisionFiles",{path:t});return a.result?a.revisions:[]})),g=Object(l.b)("wc/file/secureDocumentInfo",(async e=>{let{targetPath:t}=e;const a=await Object(b.c)(),n=await r.a.sendPost("/wcapi/secureDocumentInfo",{path:t,token:a.token});return n.result?n:{}})),E=Object(l.b)("wc/file/searchFile",(async e=>{var t;let{targetPath:a,searchVal:n,excludeVal:s,findOption:c,exts:l}=e;const i=await r.a.sendPost("/wcapi/searchFile",{base_path:a,search_string:n,exclude_string:s,find_option:c,exts:l});return i.result?null===(t=i.files)||void 0===t?void 0:t.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))):[]})),x=Object(l.b)("wc/file/findDeleteFiles",(async e=>{let{targetPath:t,searchVal:a,userName:n,userID:s,startDate:c,endDate:l}=e;const i=await r.a.sendPost("/wcapi/searchTrashFile",{path:t,text:a,user_name:n,user_id:s,start_date:c,end_date:l});return i.result?i.files:[]})),N=(e,t)=>new Promise(((a,n)=>{r.a.sendPost("/wcapi/createFolder",{path:"".concat(e,"/").concat(t)}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),S=1048576,T=Object(l.b)("wc/file/upFile",(async(e,t)=>{let{targetPath:a,file:n}=e,{dispatch:s,getState:c}=t;n.size/1048576>300?await(async(e,t,a,n)=>{if((await r.a.sendPost("/wcapi/createFile",{path:e,size:t.size})).result){n(se());const s=new FileReader;let c;if(t.size{n(se()),r.a.sendPostMultipartForm("/wcapi/uploadFile",{path:e},[t],["file"],(e=>{e.data.result&&n(m({targetPath:a,isRefresh:!0})),n(le())}))},R=async(e,t,a)=>{if(a&&a.enable)for(let n=0;n{const s=a.prefix.replace("##FILE_NAME##",encodeURIComponent(o.a.splitLastDelimiterString(t[n].name))).replace("##FILE_URL##",e),c=document.createElement("a");c.target="_blank",c.href=s,c.click()})).catch((e=>{console.error(e)})),await o.a.sleep(100);else if(window.isSecureContext)for(let n=0;n{Object(b.d)(((t,a)=>{const n=document.createElement("a");n.href="/wcapi/downloadFile?token=".concat(a,"&path=").concat(encodeURIComponent(e),"&mimetype=application/octet-stream"),n.download=o.a.pathToName(e),n.click()}))},C=e=>new Promise(((t,a)=>{Object(b.d)(((n,s)=>{r.a.sendPost("/wcapi/createInstantDownloadURL",{path:e,token:s}).then((e=>{e.result?t(e.url):(r.a.printError(e),a())}))}))})),A=(e,t)=>new Promise(((a,n)=>{let s="/wcapi/removeFile";1===t&&(s="/wcapi/removeFolder"),r.a.sendPost(s,{path:e}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),L=(e,t,a,n)=>new Promise(((s,c)=>{1===n?r.a.sendPost("/wcapi/copyFile",{source_path:a,dest_path:"".concat(e,"/").concat(t)}).then((e=>{e.result?s(e):(r.a.printError(e),c(e))})):2===n?r.a.sendPost("/wcapi/moveFile",{source_path:a,dest_path:"".concat(e,"/").concat(t)}).then((e=>{e.result?s(e):(r.a.printError(e),c(e))})):c()})),w=(e,t)=>new Promise(((a,n)=>{r.a.sendPost("/wcapi/moveFile",{source_path:e,dest_path:"".concat(o.a.splitPreDelimiter(e),"/").concat(t)}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),I=(e,t)=>new Promise(((a,n)=>{r.a.sendPost("/wcapi/moveFile",{source_path:e,dest_path:t}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),P=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/recoveryTrashFile",{path:e}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))})),D=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/purgeTrashFile",{path:e}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))})),M=(e,t,a)=>new Promise(((n,s)=>{Object(b.d)(((c,l)=>{let i="";a.forEach(((e,t)=>{i+=0===t?e.user_id:",".concat(e.user_id)})),r.a.sendPost("/wcapi/updateSecureDocument",{path:e,access_level:t,access_users:i,token:l}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))}))}))})),k=e=>new Promise(((t,a)=>{Object(b.d)(((n,s)=>{r.a.sendPost("/wcapi/releaseSecureDocument",{path:e,token:s}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))}))})),G=(e,t,a)=>new Promise(((n,s)=>{Object(b.d)(((c,l)=>{let i="";a.forEach(((e,t)=>{i+=0===t?e.user_id:",".concat(e.user_id)})),r.a.sendPost("/wcapi/setSecureDocument",{path:e,access_level:t,access_users:i,token:l}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))}))}))})),U=(e,t,a)=>new Promise(((n,s)=>{F(e,t,a)?n({result:!0}):s()})),F=async(e,t,a)=>{const n=c.a.createWriteStream(o.a.splitLastDelimiterString(e),{size:a});if(aa?a-l:S,token:s.token}),window.writer.write(new Uint8Array(i.a.decryptAES(s.aesKey,c.data,"hex","arrayBuffer",c.data_size))),l+=c.data_size,await o.a.sleep(50)}while(lnew Promise(((a,n)=>{r.a.sendPost("/wcapi/recoveryByRevision",{path:e,tag:t}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),H=(e,t)=>new Promise(((a,n)=>{r.a.sendPost("/wcapi/removeRevision",{path:e,tag:t}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),z=e=>new Promise(((t,a)=>{Object(b.d)(((n,s)=>{r.a.sendPost("/wcapi/prepareCreateWeblink",{files:{files:e},token:s}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))}))})),B=(e,t,a,n,s)=>new Promise(((c,l)=>{Object(b.d)(((o,d)=>{const b=n.split("-");r.a.sendPost("/wcapi/createWeblink",{req:{id:e,confirm:!0,password:i.a.encryptAES(o,t,"utf8","hex"),download_limits:""===a?0:Number(a),expire_year:Number(b[0]),expire_month:Number(b[1]),expire_day:Number(b[2]),auto_update:!1,reason:s||""},token:d}).then((e=>{e.result?c(e):(r.a.printError(e),l(e))}))}))})),K=e=>new Promise(((t,a)=>{Object(b.d)(((n,s)=>{r.a.sendPost("/wcapi/createWeblink",{req:{id:e,confirm:!1,password:""},token:s}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))}))})),Y=(e,t,a)=>new Promise(((n,s)=>{Object(b.d)(((n,c)=>{r.a.sendPost("/api/getArchiveCopy",{toid:e,seq:t,archive_id:a,token:c}).then((e=>{e.result?y(e.target_path):(r.a.printError(e),s(e))}))}))})),V=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/fileList",{path:e}).then((e=>{e.result?t(e.files):(r.a.printError(e),a(e))}))})),X=Object(l.b)("wc/file/getClientDashboard",(async(e,t)=>{let{dispatch:a,getState:s}=t;const c=await r.a.sendPost("/api/clientDashboard",{}),l=await Object(j.j)();if(c.result){var i;const e=Object(n.a)({},c.values);return e.session.local_account=null===(i=l[e.session.user_id])||void 0===i?void 0:i.local_account,e}return{collect:{},organization_folders:[],organizations:[],private:{},session:{orgs_manage:0,privilege:0,user_id:"",user_name:""},shareds:[]}})),q=async e=>{const t=await r.a.sendPost("/api/folderUsers",{fid:e});return t.result?t.users:[]},J=[{accessible:!1,name:"\uc870\uc9c1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.F},{accessible:!1,name:"\uacf5\uc720",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.I},{accessible:!1,name:"\uac1c\uc778",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.H},{accessible:!1,name:"\uc218\uc9d1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.E}],Z=Object(l.d)({name:"wc/file",initialState:{structFolders:[],isSettingPage:!1,curPath:"/",curPathInfo:{},navigator:[],curFileList:J,pasteTargets:[],pasteTargetPath:"",pasteTargetType:0,searchFileList:[],revisionFileList:[],secureDocInfo:{},uploadInfo:{uploading:!1,percent:0},dashboardObj:{collect:{},organization_folders:[],organizations:[],private:{},session:{orgs_manage:0,privilege:0,user_id:"",user_name:""},shareds:[]}},reducers:{initFileList:(e,t)=>{e.curFileList=J,e.curPath="/",e.navigator=[],e.isSettingPage=!1},setFileList:(e,t)=>{e.curFileList=t.payload.files,e.curPath=t.payload.curPath},setCurPathInfo:(e,t)=>{e.curPathInfo=t.payload.fileInfo,t.payload.isFirst?e.navigator=[t.payload.fileInfo]:e.navigator=[...e.navigator,t.payload.fileInfo]},setCurPathInfoByPath:(e,t)=>{let a="";const n=[];e.navigator.forEach((s=>{a+="/".concat(s.name),0===t.payload.reqPath.indexOf(a)&&(e.curPathInfo=s,n.push(s))})),e.navigator=n},setBackSpace:(e,t)=>{const a=[];t.payload.isInitial||e.navigator.forEach(((t,n)=>{n{e.uploadInfo={uploading:!0,percent:0}},uploadingFile:(e,t)=>{e.uploadInfo.percent=t.payload.percent},finishUpload:(e,t)=>{e.uploadInfo={uploading:!1,percent:0}},setCopyPath:(e,t)=>{e.pasteTargets=t.payload.targets},setCutPath:(e,t)=>{e.pasteTargets=t.payload.targets},resetSearchList:(e,t)=>{e.searchFileList=[]},setSettingPage:(e,t)=>{e.isSettingPage=t.payload.isSettingPage}},extraReducers:{[E.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[x.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[f.fulfilled]:(e,t)=>{e.revisionFileList=t.payload},[g.fulfilled]:(e,t)=>{e.secureDocInfo=t.payload},[u.fulfilled]:(e,t)=>{e.structFolders=t.payload},[X.fulfilled]:(e,t)=>{e.dashboardObj=t.payload}}}),{initFileList:Q,setFileList:$,setCurPathInfo:ee,setCurPathInfoByPath:te,resetSearchList:ae,setBackSpace:ne,startUpload:se,uploadingFile:ce,finishUpload:le,setCopyPath:re,setCutPath:ie,setSettingPage:oe}=Z.actions;t.g=Z.reducer},11:function(e,t,a){"use strict";(function(e){var n=a(355),s=a.n(n),c=a(73),l=a.n(c);t.a=new class{encryptAES(t,a,n,s){let c=t;e.isBuffer(t)||(c=l.a.utils.hex.toBytes(t));let r=[];r="hex"===n?l.a.utils.hex.toBytes(a):"arrayBuffer"===n?new Uint8Array(a):l.a.utils.utf8.toBytes(a);const i=new l.a.ModeOfOperation.ecb(c);let o;if(r.length%16===0)o=i.encrypt(r);else{const t=r.length%16>0?Math.floor(r.length/16+1):r.length/16,a=e.alloc(16*t);e.from(r).copy(a,0,0,r.length),o=i.encrypt(a)}let d="";return d="utf8"===s?l.a.utils.utf8.fromBytes(o):l.a.utils.hex.fromBytes(o),d}decryptAES(t,a,n,s,c){let r=t;e.isBuffer(t)||(r=l.a.utils.hex.toBytes(t));const i=new l.a.ModeOfOperation.ecb(r);let o=[];o="hex"===n?l.a.utils.hex.toBytes(a):l.a.utils.utf8.toBytes(a);const d=i.decrypt(o);if("arrayBuffer"===s)return c?d.slice(0,c):d;let b="";b="utf8"===s?l.a.utils.utf8.fromBytes(d):l.a.utils.hex.fromBytes(d);let j="";for(let e=0;e{const e=await c.a.sendPost("/api/getEmergencyMode",{});return e.result?{mode:e.mode,back_hours:e.back_hours,date:e.date,process_type:e.process_type,status:e.status}:(c.a.printError(e),{mode:0,back_hours:0,date:"2021-02-05",process_type:1,status:0})})),u=Object(s.b)("setting/recoveryAvailableDays",(async()=>{const e=await c.a.sendPost("/api/recoveryAvailableDays",{});return e.result?e.days:[]})),O={init:!1,language:"korean",weblink_service_support:!0,weblink_service_address:"",weblink_service_port:"",strong_password:!1,collector_support:!0,collect_transfer_size:1048576,collect_interval_transfer:1e3,collect_drive_cdrom:!1,collect_drive_fixed:!0,collect_drive_ramdisk:!1,collect_drive_remote:!1,collect_drive_removable:!1,collect_drive_fixed_hotplug:!1,collect_sync_remove_support:!0,collect_inclusive_pattern_support:!1,collect_exclusive_extension_support:!1,collect_config:[],server_side_encryption:!1,keep_days_backup_data:0,default_volume_label:"",private_folder_size:0,collect_folder_size:0,organization_folder_size:0,shared_folder_size:0,two_factor_authentication:!1,support_default_smb_port:!1,restrict_file_size:0,restrict_file_exts:"",pii_detect_enable:!1,pii_ocr:!1,pii_detect_access_control:!1,async_ocr:!1,dup_detect_enable:!1,access_control:!1,saving_control:!1,dataleak_control:!1,partially_applied:!1,approving_timeout:60,service_type:"ENT",connect_server_address:"",force_map_mount_drive:"Y",map_mount_drive:"Y",verysilent_setup:!1,silent_setup:!0,disable_connect_button_webadmin:!0,auto_start:!1,desktop_web_support:!0,mobile_web_support:!0,integrated_with_AD:!1,OSR_support:!1,no_shell_menu:!1,disable_two_factor_authentication:!1,allow_admin_access_users_folders:!1,force_setup_perform:!1,lock_volume_label:!1,restrict_file_exts_remove_at_batch:!1,support_ransomware_detection:!0,support_secure_document:!0,min_smb_protocol:"SMB3",smb_encryption:!1,sync_solution_integrated:!1,sync_solution:"",sync_solution_consumer_folder_accessible:!1,no_tray_icon_menu:!1,support_oplocks:!0,private_folder_support:!0,preserve_last_revision:!0,preserve_last_revision_without_original:!1,max_days_preserve_last_revision_without_original:10,keep_days_in_trash:0,disable_save_password:!1,menu_support_type:1,support_macos_dlp:!1,support_windows_dlp:!1,weblink_restrict_exts:"",weblink_restrict_file_size:0,weblink_restrict_total_size:0,forced_use_password:!1,max_downloads:0,default_expire_days:7,max_expire_days:0,escalate_privileges_org_admin:!1,use_ip_range:!1,mandatory_apps_enabled:!1},p=Object(s.b)("setting/getSysConfigure",(async()=>{const e=await c.a.sendPost("/api/getSysConfigure",{});return e.result?e:(c.a.printError(e),O)})),h=Object(s.b)("setting/setSysConfigure",(async(e,t)=>{let{setConf:a,succMsg:s}=e,{dispatch:l,getState:r}=t;const o=await Object(i.c)();"collector_support"in a||(a.collector_support=r().docbase.admin.setting.sysConfigure.collector_support);const b=Object(n.a)(Object(n.a)({},a),{},{token:o.token});await c.a.sendPost("/api/setSysConfigure",b),l(Object(d.d)({message:s}))})),m=Object(s.b)("setting/searchSecureDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await c.a.sendPost("/api/secureDocuments",{rows_per_page:s().docbase.admin.setting.secureDocObj.rowsPerPage});return l.result?(n(_({page:a})),{total_rows:l.total_rows,total_pages:l.total_pages}):{total_rows:0,total_pages:0}})),_=Object(s.b)("setting/getSecureDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await c.a.sendPost("/api/secureDocumentsPage",{page:a});return l.result?{docs:l.docs,page:a}:{docs:[],page:1}})),f=Object(s.b)("setting/getAlienConnection",(async()=>{const e=await c.a.sendPost("/api/getAlienConnection",{});return e.result?{enabled:e.enabled,name:e.name}:{enabled:!1,name:""}})),g=Object(s.b)("setting/getSeedKey",(async()=>{const e=await c.a.sendPost("/api/getSeedKey",{});return e.result?{seedKey:e.seed_key}:{seedKey:""}})),E=Object(s.b)("setting/searchPiiDocs",(async(e,t)=>{let{page:a,startDate:n,endDate:s,searchName:l}=e,{dispatch:r,getState:i}=t;const o=await c.a.sendPost("/api/piiDocuments",{rows_per_page:i().docbase.admin.setting.piiDocObj.rowsPerPage,start_date:n,end_date:s,search_name:l});return o.result?(r(x({page:a})),{total_rows:o.total_rows,total_pages:o.total_pages}):{total_rows:0,total_pages:0}})),x=Object(s.b)("setting/piiDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(i.c)(),r=await c.a.sendPost("/api/piiDocumentsPage",{page:a,token:l.token});return r.result?{docs:r.docs,page:a}:{docs:[],page:1}})),N=Object(s.b)("setting/ransomHistory",(async(e,t)=>{let{page:a,status:n,day:s,user:l,path:r,clientAddress:i,infectedFilePath:o}=e,{dispatch:d,getState:b}=t;const j=await c.a.sendPost("/api/ransomHistory",{rows_per_page:b().docbase.admin.setting.ransomObj.rowsPerPage,duration:s,duration_type:1,status:n,user:l,path:r,client_address:i,infected_file_path:o});return j.result?(d(S({page:a})),{total_rows:j.total_rows,total_pages:j.total_pages}):{total_rows:0,total_pages:0}})),S=Object(s.b)("setting/getRansomHistory",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(i.c)(),r=await c.a.sendPost("/api/ransomHistoryPage",{page:a,token:l.token});return r.result?{events:r.events,page:a}:{event:[],page:1}})),T=Object(s.b)("setting/searchDupDocs",(async(e,t)=>{let{page:a,path:s}=e,{dispatch:l,getState:r}=t;const i=await c.a.sendPost("/api/dupDocuments",{rows_per_page:r().docbase.admin.setting.dupDocObj.rowsPerPage,path:s});if(i.result){if(l(v({page:a})),""===s){await l(Object(b.C)());const e=await L(i.total_pages);return Object(n.a)({total_rows:i.total_rows,total_pages:i.total_pages},e)}return{total_rows:i.total_rows,total_pages:i.total_pages,totalSize:-1,oriSize:-1}}return{total_rows:0,total_pages:0,totalSize:-1,oriSize:-1}})),v=Object(s.b)("setting/dupDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await c.a.sendPost("/api/dupDocumentsPage",{page:a});return l.result?{docs:l.docs,page:a}:{docs:[],page:1}})),R=Object(s.b)("setting/searchSecureFolders",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await c.a.sendPost("/api/secureDocumentFolders",{rows_per_page:s().docbase.admin.setting.secureDocObj.rowsPerPage});return l.result?(n(y({page:a})),{total_rows:l.total_rows,total_pages:l.total_pages}):{total_rows:0,total_pages:0}})),y=Object(s.b)("setting/getSecureFolders",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await c.a.sendPost("/api/secureDocumentFoldersPage",{page:a});return l.result?{doc_folders:l.doc_folders,page:a}:{doc_folders:[],page:1}})),C=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/getPIIScheme",{token:n}).then((n=>{n.result?e(l.a.decryptAES(a,n.scheme,"hex","utf8")):(c.a.printError(n),t(n))}))}))})),A=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/setPIIScheme",{token:s,scheme:l.a.encryptAES(n,e,"utf8","hex")}).then((e=>{e.result?t(e.result):(c.a.printError(e),a(e))}))}))})),L=async e=>{let t=0,a=0,n="",s={};for(let l=1;l<=e;l++)if(s=await c.a.sendPost("/api/dupDocumentsPage",{page:l}),s.result){console.log("page length: ".concat(s.docs.length));for(let e=0;e0&&(a+=s.docs[e].file_size,n=s.docs[e].file_hash)}return{totalSize:t,oriSize:a}},w=async(e,t)=>{const a=[];for(let n=1;n<=e;n++){const e={page:n,token:(await Object(i.c)()).token};0!==t&&(e.fid=t);const s=await c.a.sendPost("/api/piiDocumentsPage",e);s.result&&s.docs.forEach((e=>{e.registered_at=r.a.getDateStringToLocalDate(e.registered_at),e.disposition_at=r.a.getDateStringToLocalDate(e.disposition_at),a.push(e)}))}return a},I=async(e,t,a,n,s,l)=>{const r=await c.a.sendPost("/api/piiDocuments",{rows_per_page:s,start_date:t,end_date:a,search_name:n,path:l,fid:e});return r.result?{total_rows:r.total_rows,total_pages:r.total_pages}:{total_rows:0,total_pages:0}},P=async(e,t)=>{const a=await Object(i.c)(),n=await c.a.sendPost("/api/piiDocumentsPage",{fid:t,page:e,token:a.token});return n.result?{docs:n.docs,page:e}:{docs:[],page:1}},D=async e=>(await c.a.sendPost("/api/insFPOD",{fpods:e})).result,M=(e,t,a)=>new Promise(((n,s)=>{c.a.sendPost("/api/startEmergencyMode",{mode:e,back_hours:t,date:a}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))}))})),k=()=>new Promise(((e,t)=>{c.a.sendPost("/api/finishEmergencyMode",{}).then((a=>{a.result?e(a):(c.a.printError(a),t(a))}))})),G=(e,t,a)=>new Promise(((n,s)=>{c.a.sendPost("/api/restoreBackup",{mode:e,back_hours:t,date:a}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))}))})),U=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/factoryReset",{token:n}).then((a=>{a.result?e(a):(c.a.printError(a),t(a))}))}))})),F=(e,t,a)=>new Promise(((s,l)=>{Object(i.d)(((r,i)=>{c.a.sendPost("/api/updateSecureDocumentEx",Object(n.a)(Object(n.a)({},e),{},{[t]:a,token:i})).then((e=>{e.result?s(e):(c.a.printError(e),l(e))}))}))})),W=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/releaseSecureDocumentEx",{doc_id:e,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),H=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPostMultipartForm("/api/updateSystem",{token:s},[e],["update_file"],(e=>e.data.result?t(e.data):(c.a.printError(e.data),a(e.data))))}))})),z=(e,t,a,n,s)=>new Promise(((l,r)=>{c.a.sendPost("/api/setUserCollectPolicy",{user_id:e,enabled:t,full_scan:a,remove_source:n,full_scan_restart:s}).then((e=>{e.result?l(e):(c.a.printError(e),r(e))}))})),B=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/getUsersWithCollectInfo",{token:n}).then((n=>{if(n.result){const t={};n.users.forEach((e=>{e.user_id=l.a.decryptAES(a,e.user_id,"hex","utf8"),e.name=l.a.decryptAES(a,e.user_name,"hex","utf8"),t[e.user_id]=e})),e({obj:t,list:n.users})}else c.a.printError(n),t(n)}))}))})),K=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{const r=e.map((e=>({user_id:l.a.encryptAES(n,e.userID,"utf8","hex"),enabled:e.enabled,full_scan:e.fullScan,remove_source:e.removeSource,full_scan_restart:!!e.hasOwnProperty("full_scan_restart")&&e.full_scan_restart})));c.a.sendPost("/api/setUsersWithCollectInfo",{users:r,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),Y=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/foldersPermissions",{token:s}).then((n=>{if(n.result){const a={};n.folders.forEach((t=>{e?o.F===t.folder_type&&(a[t.fid]=t.permissions):a[t.fid]=t.permissions})),t(a)}else c.a.printError(n),a(n)}))}))})),V=Object(s.b)("setting/getWhiteProcessList",(async()=>{const e=await c.a.sendPost("/api/whiteProcessList",{});return e.result?e.processes:(c.a.printError(e),[])})),X=e=>new Promise(((t,a)=>{c.a.sendPost("/api/unregisterWhiteProcess",{name:e}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))})),q=Object(s.b)("setting/getWhiteURLList",(async()=>{const e=await Object(i.c)(),t=await c.a.sendPost("/api/getRegisteredURLs",{token:e.token});return t.result?t.urls.map((t=>(t.url=l.a.decryptAES(e.aesKey,t.url,"hex","utf8"),t))):(c.a.printError(t),[])})),J=(e,t,a)=>new Promise(((n,s)=>{Object(i.d)(((r,i)=>{c.a.sendPost("/api/registerWhiteURL",{name:e,set_type:t,url:l.a.encryptAES(r,a,"utf8","hex"),token:i}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))}))}))})),Z=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/unregisterWhiteURL",{name:e,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),Q=(e,t)=>new Promise(((a,n)=>{c.a.sendPost("/api/approveRegisterWhiteProcess",{id:e,approve:t}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))})),$=(e,t,a)=>new Promise(((n,s)=>{Object(i.d)(((r,i)=>{c.a.sendPost("/api/createIPRangeGroup",{name:l.a.encryptAES(r,e,"utf8","hex"),description:l.a.encryptAES(r,t,"utf8","hex"),ips:l.a.encryptAES(r,a,"utf8","hex"),token:i}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))}))}))})),ee=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/removeIPRangeGroup",{id:e,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),te=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/getIPRangeGroups",{token:n}).then((n=>{n.result?e(n.groups.map((e=>(e.name=l.a.decryptAES(a,e.name,"hex","utf8"),e.description=l.a.decryptAES(a,e.description,"hex","utf8"),e.ips=l.a.decryptAES(a,e.ips,"hex","utf8"),e.users=l.a.decryptAES(a,e.users,"hex","utf8"),e)))):(c.a.printError(n),t(n))}))}))})),ae=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,r)=>{c.a.sendPost("/api/addUserToIPRange",{ip_range_id:e,user_id:l.a.encryptAES(s,t,"utf8","hex"),token:r}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),ne=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,r)=>{c.a.sendPost("/api/removeUserFromIPRange",{ip_range_id:e,user_id:l.a.encryptAES(s,t,"utf8","hex"),token:r}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),se=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/getMandatoryApps",{token:n}).then((n=>{n.result?e(n.apps.map((e=>{var t,n,s;return e.id=e.mandatory_app_id,e.name=l.a.decryptAES(a,e.name,"hex","utf8"),e.windows_program_name=null!==(t=e.windows_program_name)&&void 0!==t&&t.trim()?l.a.decryptAES(a,e.windows_program_name,"hex","utf8"):"",e.macos_program_name=null!==(n=e.macos_program_name)&&void 0!==n&&n.trim()?l.a.decryptAES(a,e.macos_program_name,"hex","utf8"):"",e.description=null!==(s=e.description)&&void 0!==s&&s.trim()?l.a.decryptAES(a,e.description,"hex","utf8"):"",e}))):(c.a.printError(n),t(n))}))}))})),ce=(e,t,a,n)=>new Promise(((s,r)=>{Object(i.d)(((i,o)=>{const d={name:l.a.encryptAES(i,e,"utf8","hex"),token:o};t&&(d.windows_program_name=l.a.encryptAES(i,t,"utf8","hex")),a&&(d.macos_program_name=l.a.encryptAES(i,a,"utf8","hex")),n&&(d.description=l.a.encryptAES(i,n,"utf8","hex")),c.a.sendPost("/api/setMandatoryApp",d).then((e=>{e.result?s(e):(c.a.printError(e),r(e))}))}))})),le=(e,t,a,n,s)=>new Promise(((r,o)=>{Object(i.d)(((i,d)=>{const b={mandatory_app_id:e,name:l.a.encryptAES(i,t,"utf8","hex"),token:d};a&&(b.windows_program_name=l.a.encryptAES(i,a,"utf8","hex")),n&&(b.macos_program_name=l.a.encryptAES(i,n,"utf8","hex")),s&&(b.description=l.a.encryptAES(i,s,"utf8","hex")),c.a.sendPost("/api/updateMandatoryApp",b).then((e=>{e.result?r(e):(c.a.printError(e),o(e))}))}))})),re=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/removeMandatoryApp",{mandatory_app_id:e,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),ie=e=>new Promise(((t,a)=>{Object(i.d)(((s,r)=>{c.a.sendPost("/api/getMandatoryAppCheckMethods",{mandatory_app_id:e,token:r}).then((e=>{if(e.result){var r,i;const a=[];null===(r=e.windows_methods)||void 0===r||r.forEach((e=>{a.push(Object(n.a)(Object(n.a)({},e),{},{signing_id:""!==e.signing_id?l.a.decryptAES(s,e.signing_id,"hex","utf8"):"",hash:""!==e.hash?l.a.decryptAES(s,e.hash,"hex","utf8"):"",min_version:""!==e.min_version?l.a.decryptAES(s,e.min_version,"hex","utf8"):"",type:1}))})),null===(i=e.macos_methods)||void 0===i||i.forEach((e=>{a.push(Object(n.a)(Object(n.a)({},e),{},{signing_id:""!==e.signing_id?l.a.decryptAES(s,e.signing_id,"hex","utf8"):"",hash:""!==e.hash?l.a.decryptAES(s,e.hash,"hex","utf8"):"",min_version:""!==e.min_version?l.a.decryptAES(s,e.min_version,"hex","utf8"):"",type:2}))})),t(a)}else c.a.printError(e),a(e)}))}))})),oe=(e,t,a,n,s)=>new Promise(((r,o)=>{Object(i.d)(((i,d)=>{const b={mandatory_app_id:e,os_type:t,token:d};a&&(b.signing_id=l.a.encryptAES(i,a,"utf8","hex")),n&&(b.hash=l.a.encryptAES(i,n,"utf8","hex")),s&&(b.min_version=l.a.encryptAES(i,s,"utf8","hex")),c.a.sendPost("/api/addMandatoryAppCheckMethod",b).then((e=>{e.result?r(e):(c.a.printError(e),o(e))}))}))})),de=(e,t,a,n,s)=>new Promise(((r,o)=>{Object(i.d)(((i,d)=>{const b={check_id:e,os_type:t,token:d};a&&(b.signing_id=l.a.encryptAES(i,a,"utf8","hex")),n&&(b.hash=l.a.encryptAES(i,n,"utf8","hex")),s&&(b.min_version=l.a.encryptAES(i,s,"utf8","hex")),c.a.sendPost("/api/updateMandatoryAppCheckMethod",b).then((e=>{e.result?r(e):(c.a.printError(e),o(e))}))}))})),be=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/removeMandatoryAppCheckMethod",{check_id:e,os_type:t,token:l}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),je=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/piiUsers",{pid:e,token:s}).then((e=>{e.result?t(null===e||void 0===e?void 0:e.users.map((t=>(t.user_id=l.a.decryptAES(n,t.user_id,"hex","utf8"),t.user_name=l.a.decryptAES(n,t.user_name,"hex","utf8"),t.reason=l.a.decryptAES(n,t.reason,"hex","utf8"),e)))):(c.a.printError(e),a(e))}))}))})),ue=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/piiReportFPODUsers",{pid:e,token:s}).then((e=>{e.result?t(null===e||void 0===e?void 0:e.users.map((e=>(e.user_id=l.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=l.a.decryptAES(n,e.user_name,"hex","utf8"),e)))):(c.a.printError(e),a(e))}))}))})),Oe=(e,t,a,n,s,l,r)=>new Promise(((o,d)=>{Object(i.d)(((i,b)=>{const j={pid:e,exclude:t,token:b};a&&a>0&&(j.expire_mins=a),n&&n>0&&(j.expire_hours=n),s&&s>0&&(j.expire_days=s),l&&l>0&&(j.expire_months=l),r&&""!==r&&(j.expire_date=r),c.a.sendPost("/api/piiExclude",j).then((e=>{e.result?o(e.result):(c.a.printError(e),d(e))}))}))})),pe=async(e,t)=>{const a=await Object(i.c)();return await c.a.sendPost("/wcapi/registerMobileDeviceToken",{device_type:e,device_token:l.a.encryptAES(a.aesKey,t,"utf8","hex"),token:a.token})},he=Object(s.d)({name:"setting",initialState:{showBackdrop:!1,restoreObj:{mode:0,back_hours:0,date:"2021-02-05",days:[]},sysConfigure:O,getSysConf:!1,alienConObj:{enabled:!1,name:""},secureDocObj:{selectedDocObj:{doc_id:-1,users:[],path:"",level:1e4},rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,docs:[]},secureFolderObj:{selectedFolderObj:{doc_folder_id:-1,users:[],path:"",level:1e4},rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,docFolders:[]},dashboardObj:{total:{},types:{others:{size:0},organizes:{size:0},privates:{size:0},shareds:{size:0},collects:{size:0}},organizes:[],shareds:[],privates:[],collects:[]},piiDocObj:{selectedDocObj:{path:"",pii:[]},rowsPerPage:100,currentPage:1,totalRows:0,totalPages:0,docs:[]},dupDocObj:{selectedDocObj:{path:"",pii:[]},rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,docs:[],totalSize:0,oriSize:0},ransomObj:{selectedEvent:{},rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,events:[]},whiteProcessList:[],whiteURLList:[],seedKey:""},reducers:{onClickDoc:(e,t)=>{e.secureDocObj.selectedDocObj.doc_id===t.payload.docObj.doc_id?e.secureDocObj.selectedDocObj={doc_id:-1,users:[],path:"",level:1e4}:e.secureDocObj.selectedDocObj=t.payload.docObj},onClickDocEx:(e,t)=>{e.secureDocObj.selectedDocObj=t.payload.docObj},onClickSecFolder:(e,t)=>{e.secureFolderObj.selectedFolderObj.doc_folder_id===t.payload.folderObj.doc_folder_id?e.secureFolderObj.selectedFolderObj={doc_folder_id:-1,users:[],path:"",level:1e4}:e.secureFolderObj.selectedFolderObj=t.payload.folderObj},changeRowsPerPage:(e,t)=>{e.secureDocObj.rowsPerPage=t.payload.value},changePiiRowsPerPage:(e,t)=>{e.piiDocObj.rowsPerPage=t.payload.value},changeDupRowsPerPage:(e,t)=>{e.dupDocObj.rowsPerPage=t.payload.value},setShowBackdrop:(e,t)=>{e.showBackdrop=t.payload.show}},extraReducers:{[j.fulfilled]:(e,t)=>{e.restoreObj.mode=t.payload.mode,e.restoreObj.back_hours=t.payload.back_hours?t.payload.back_hours:"0",e.restoreObj.date=t.payload.date?t.payload.date:"-",e.restoreObj.process_type=t.payload.process_type,e.restoreObj.status=t.payload.status?t.payload.status:0},[u.fulfilled]:(e,t)=>{e.restoreObj.days=t.payload.reverse()},[p.fulfilled]:(e,t)=>{e.sysConfigure.init=!0,e.sysConfigure.language=t.payload.language,e.sysConfigure.weblink_service_support=t.payload.weblink_service_support,e.sysConfigure.weblink_service_address=t.payload.weblink_service_address,e.sysConfigure.weblink_service_port=t.payload.weblink_service_port,e.sysConfigure.strong_password=t.payload.strong_password,e.sysConfigure.collector_support=t.payload.collector_support,e.sysConfigure.collect_transfer_size=t.payload.collect_transfer_size,e.sysConfigure.collect_interval_transfer=t.payload.collect_interval_transfer,e.sysConfigure.collect_drive_cdrom=t.payload.collect_drive_cdrom,e.sysConfigure.collect_drive_fixed=t.payload.collect_drive_fixed,e.sysConfigure.collect_drive_ramdisk=t.payload.collect_drive_ramdisk,e.sysConfigure.collect_drive_remote=t.payload.collect_drive_remote,e.sysConfigure.collect_drive_removable=t.payload.collect_drive_removable,e.sysConfigure.collect_drive_fixed_hotplug=t.payload.collect_drive_fixed_hotplug,e.sysConfigure.collect_sync_remove_support=t.payload.collect_sync_remove_support,e.sysConfigure.collect_inclusive_pattern_support=t.payload.collect_inclusive_pattern_support,e.sysConfigure.collect_exclusive_extension_support=t.payload.collect_exclusive_extension_support,e.sysConfigure.collect_config=t.payload.collect_config,e.sysConfigure.server_side_encryption=t.payload.server_side_encryption,e.sysConfigure.keep_days_backup_data=t.payload.keep_days_backup_data,e.sysConfigure.default_volume_label=t.payload.default_volume_label,e.sysConfigure.private_folder_size=t.payload.private_folder_size,e.sysConfigure.collect_folder_size=t.payload.collect_folder_size,e.sysConfigure.organization_folder_size=t.payload.organization_folder_size,e.sysConfigure.shared_folder_size=t.payload.shared_folder_size,e.sysConfigure.two_factor_authentication=t.payload.two_factor_authentication,e.sysConfigure.support_default_smb_port=t.payload.support_default_smb_port,e.sysConfigure.restrict_file_size=t.payload.restrict_file_size,e.sysConfigure.pii_detect_enable=t.payload.pii_detect_enable,e.sysConfigure.pii_detect_access_control=t.payload.pii_detect_access_control,e.sysConfigure.pii_ocr=t.payload.pii_ocr,e.sysConfigure.dup_detect_enable=t.payload.dup_detect_enable,e.sysConfigure.access_control=t.payload.access_control,e.sysConfigure.saving_control=t.payload.saving_control,e.sysConfigure.dataleak_control=t.payload.dataleak_control,e.sysConfigure.partially_applied=t.payload.partially_applied,e.sysConfigure.connect_server_address=t.payload.connect_server_address,e.sysConfigure.force_map_mount_drive=t.payload.force_map_mount_drive,e.sysConfigure.map_mount_drive=t.payload.map_mount_drive,e.sysConfigure.verysilent_setup=t.payload.verysilent_setup,e.sysConfigure.silent_setup=t.payload.silent_setup,e.sysConfigure.disable_connect_button_webadmin=t.payload.disable_connect_button_webadmin,e.sysConfigure.auto_start=t.payload.auto_start,e.sysConfigure.desktop_web_support=t.payload.desktop_web_support,e.sysConfigure.mobile_web_support=t.payload.mobile_web_support,e.sysConfigure.integrated_with_AD=t.payload.integrated_with_AD,e.sysConfigure.OSR_support=t.payload.OSR_support,e.sysConfigure.no_shell_menu=t.payload.no_shell_menu,e.sysConfigure.no_tray_icon_menu=t.payload.no_tray_icon_menu,e.sysConfigure.disable_two_factor_authentication=t.payload.disable_two_factor_authentication,e.sysConfigure.allow_admin_access_users_folders=t.payload.allow_admin_access_users_folder,e.sysConfigure.force_setup_perform=t.payload.force_setup_perform,e.sysConfigure.lock_volume_label=t.payload.lock_volume_label,e.sysConfigure.restrict_file_exts_remove_at_batch=t.payload.restrict_file_exts_remove_at_batch,e.sysConfigure.support_ransomware_detection=t.payload.support_ransomware_detection,e.sysConfigure.support_secure_document=t.payload.support_secure_document,e.sysConfigure.min_smb_protocol=t.payload.min_smb_protocol,e.sysConfigure.smb_encryption=t.payload.smb_encryption,e.sysConfigure.sync_solution_integrated=t.payload.sync_solution_integrated,e.sysConfigure.sync_solution=t.payload.sync_solution,e.sysConfigure.sync_solution_consumer_folder_accessible=t.payload.sync_solution_consumer_folder_accessible,e.sysConfigure.support_oplocks=t.payload.support_oplocks,e.sysConfigure.private_folder_support=t.payload.private_folder_support,e.sysConfigure.preserve_last_revision=t.payload.preserve_last_revision,e.sysConfigure.preserve_last_revision_without_original=t.payload.preserve_last_revision_without_original,e.sysConfigure.max_days_preserve_last_revision_without_original=t.payload.max_days_preserve_last_revision_without_original,e.sysConfigure.keep_days_in_trash=t.payload.keep_days_in_trash,e.sysConfigure.disable_save_password=t.payload.disable_save_password,e.sysConfigure.menu_support_type=t.payload.menu_support_type,e.sysConfigure.async_ocr=t.payload.async_ocr,e.sysConfigure.support_macos_dlp=t.payload.support_macos_dlp,e.sysConfigure.support_windows_dlp=t.payload.support_windows_dlp,e.sysConfigure.weblink_restrict_exts=t.payload.weblink_restrict_exts,e.sysConfigure.weblink_restrict_file_size=t.payload.weblink_restrict_file_size,e.sysConfigure.weblink_restrict_total_size=t.payload.weblink_restrict_total_size,e.sysConfigure.weblink_forced_use_password=t.payload.weblink_forced_use_password,e.sysConfigure.weblink_max_downloads=t.payload.weblink_max_downloads,e.sysConfigure.weblink_default_expire_days=t.payload.weblink_default_expire_days,e.sysConfigure.weblink_max_expire_days=t.payload.weblink_max_expire_days,e.sysConfigure.escalate_privileges_org_admin=t.payload.escalate_privileges_org_admin,e.sysConfigure.use_ip_range=t.payload.use_ip_range,e.sysConfigure.mandatory_apps_enabled=t.payload.mandatory_apps_enabled;let a="";t.payload.restrict_file_exts.forEach(((e,t)=>{a+=0===t?e:",".concat(e)})),e.sysConfigure.restrict_file_exts=a,e.sysConfigure.service_type=t.payload.service_type,e.getSysConf=!0},[m.fulfilled]:(e,t)=>{e.secureDocObj.total_pages=t.payload.total_pages,e.secureDocObj.totalRows=t.payload.total_rows},[_.fulfilled]:(e,t)=>{e.secureDocObj.docs=t.payload.docs.map((e=>Object(n.a)(Object(n.a)({},e),{},{path:r.a.changeAccessibleFolder(e.path)}))),e.secureDocObj.currentPage=t.payload.page},[R.fulfilled]:(e,t)=>{e.secureFolderObj.total_pages=t.payload.total_pages,e.secureFolderObj.totalRows=t.payload.total_rows},[y.fulfilled]:(e,t)=>{e.secureFolderObj.docFolders=t.payload.doc_folders,e.secureFolderObj.currentPage=t.payload.page},[f.fulfilled]:(e,t)=>{e.alienConObj.enabled=t.payload.enabled,e.alienConObj.name=t.payload.name},[g.fulfilled]:(e,t)=>{e.seedKey=t.payload.seedKey},[E.fulfilled]:(e,t)=>{e.piiDocObj.totalPages=t.payload.total_pages,e.piiDocObj.totalRows=t.payload.total_rows},[x.fulfilled]:(e,t)=>{e.piiDocObj.docs=t.payload.docs.map((e=>Object(n.a)(Object(n.a)({},e),{},{registered_at:r.a.getDateStringToLocalDate(e.registered_at),disposition_at:e.disposition_at?r.a.getDateStringToLocalDate(e.disposition_at):"-"}))),e.piiDocObj.currentPage=t.payload.page},[T.fulfilled]:(e,t)=>{e.dupDocObj.total_pages=t.payload.total_pages,e.dupDocObj.totalRows=t.payload.total_rows,t.payload.totalSize>-1&&t.payload.oriSize>-1&&(e.dupDocObj.totalSize=t.payload.totalSize,e.dupDocObj.oriSize=t.payload.oriSize)},[v.fulfilled]:(e,t)=>{e.dupDocObj.docs=t.payload.docs,e.dupDocObj.currentPage=t.payload.page},[V.fulfilled]:(e,t)=>{e.whiteProcessList=t.payload},[N.fulfilled]:(e,t)=>{e.ransomObj.total_pages=t.payload.total_pages,e.ransomObj.totalRows=t.payload.total_rows},[S.fulfilled]:(e,t)=>{e.ransomObj.events=t.payload.events,e.ransomObj.currentPage=t.payload.page},[q.fulfilled]:(e,t)=>{e.whiteURLList=t.payload}}}),{onClickDoc:me,onClickDocEx:_e,changeRowsPerPage:fe,changePiiRowsPerPage:ge,changeDupRowsPerPage:Ee,setShowBackdrop:xe,onClickSecFolder:Ne}=he.actions;t.h=he.reducer},15:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var n=a(11),s=a(6);const c=e=>{const t=n.a.createECDH();s.a.sendPost("/api/exchangePublicKey",{public_key:t.getPublicKey("hex")}).then((a=>{if(a.result){const s=n.a.computeSecretKey(t,a.public_key);e(s,n.a.encryptAES(s,n.a.decryptAES(n.a.computeSecretKey(t,a.public_key),a.token,"hex","utf8").replace(":remove-this",""),"utf8","hex"))}else s.a.printError(a)})).catch((e=>console.error(e)))},l=async()=>{const e=n.a.createECDH(),t=await s.a.sendPost("/api/exchangePublicKey",{public_key:e.getPublicKey("hex")});if(!t.result)return s.a.printError(t),{};const a=n.a.computeSecretKey(e,t.public_key);return{aesKey:a,token:n.a.encryptAES(a,n.a.decryptAES(a,t.token,"hex","utf8").replace(":remove-this",""),"utf8","hex")}},r=async e=>await s.a.sendPost("/api/getWeblinkInfo",{id:e}),i=async e=>await s.a.sendPost("/api/generateWeblinkEmailOTP",{id:e})},21:function(e,t,a){"use strict";var n,s=a(98),c=a(3),l=a(1),r=a(142),i=a(504),o=a.n(i),d=a(505),b=a.n(d),j=a(506),u=a.n(j),O=a(507),p=a.n(O),h=a(508),m=a.n(h),_=a(509),f=a.n(_),g=a(510),E=a.n(g),x=a(511),N=a.n(x),S=a(512),T=a.n(S),v=a(513),R=a.n(v),y=a(514),C=a.n(y),A=a(515),L=a.n(A),w=a(516),I=a.n(w),P=a(517),D=a.n(P),M=a(518),k=a.n(M),G=a(519),U=a.n(G),F=a(520),W=a.n(F),H=a(521),z=a.n(H),B=a(522),K=a.n(B),Y=a(523),V=a.n(Y),X=a(524),q=a.n(X),J=a(525),Z=a.n(J),Q=a(526),$=a.n(Q),ee=(a(779),a(780),a(781),a(280)),te=a.n(ee),ae=a(277);const ne=["title","titleId"];function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const e=await Object(i.c)(),t=await c.a.sendPost("/api/organizationFolders",{token:e.token}),a=await Object(i.c)(),n=await c.a.sendPost("/api/sharedFolderList",{token:a.token}),s=await Object(i.c)(),l=await c.a.sendPost("/api/orgSharedFolderList",{token:s.token});return{folderObj:{orgs:t.folders,shareds:n.folders,orgshareds:l.folders}}})),u=Object(s.b)("folder/getAllOrgFolderList",(async()=>{const e=await Object(i.c)(),t=await c.a.sendPost("/api/organizationFolders",{token:e.token});if(!t.result)return{folders:[]};let a=null;return"/qv"===window.location.pathname&&(a=await Y()),{folders:t.folders,codeObj:a}})),O=Object(s.b)("folder/getOrgFolderList",(async(e,t)=>{let{parentFid:a}=e,{dispatch:n,getState:s}=t;const l=await Object(i.c)();return{folders:(await c.a.sendPost("/api/organizationFolderList",{parent_fid:a,token:l.token})).folders}})),p=Object(s.b)("folder/updOrgsObj",(async e=>{let{parentFid:t}=e;const a=await Object(i.c)();return{folders:(await c.a.sendPost("/api/organizationFolders",{parent_fid:t,token:a.token})).folders}})),h=Object(s.b)("folder/selectedOrgFolderID",(async(e,t)=>{let{fid:a,original:n}=e,{dispatch:s,getState:r}=t;if(a<=0)return{permissions:[],selectedOrgID:0,capacity:0,parentPerms:{}};const o=await Object(i.c)();let d={};d=n?await c.a.sendPost("/api/folderPermissionList",{fid:a,token:o.token}):await c.a.sendPost("/api/getReadableFolderPermissions",{fid:a,token:o.token});const b=await c.a.sendPost("/api/getFolderMaxSize",{fid:a}),j=l.a.splitPreDelimiter(r().docbase.admin.folder.orgsObj[a].fid_path).split("/"),u={[a]:d.permissions};for(let l=0;l{let{dispatch:a,getState:n}=t;return n().docbase.admin.account.users.length<=0&&await a(Object(b.h)()),await a(u()),{}})),_=Object(s.b)("folder/getSharedFolderList",(async()=>{const e=await Object(i.c)(),t=await c.a.sendPost("/api/sharedFolderList",{token:e.token}),a=await Object(i.c)(),n=await c.a.sendPost("/api/orgSharedFolderList",{token:a.token});return{folderObj:{shareds:t.folders,orgshareds:n.folders}}})),f=Object(s.b)("folder/readableFolderPermissionObjects",(async()=>(await c.a.sendPost("/api/readableFolderPermissionObjects",{})).objects)),g=Object(s.b)("folder/selectedSharedFolderID",(async(e,t)=>{let{fid:a}=e,{dispatch:n,getState:s}=t;if(a<=0)return{permissions:[],selectedSharedID:0,capacity:0};const l=await Object(i.c)(),r=await c.a.sendPost("/api/getReadableFolderPermissions",{fid:a,token:l.token}),o=await c.a.sendPost("/api/getFolderMaxSize",{fid:a});return{permissions:r.permissions,selectedSharedID:a,capacity:o.size}})),E=(e,t,a,n)=>new Promise(((n,s)=>{Object(i.d)(((l,r)=>{c.a.sendPost("/api/createOrganizationFolder",{name:e,parent_fid:t||"0",org_type:a,token:r}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))})).finally((()=>{}))}))})),x=(e,t)=>new Promise(((a,n)=>{(!e||e<=0)&&n(new Error("\uc0ad\uc81c\ud560 \uc870\uc9c1\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694.")),t(Object(d.ab)({show:!0})),Object(i.d)(((s,l)=>{c.a.sendPost("/api/removeOrganizationFolder",{fid:e,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))})).finally((()=>{t(Object(d.ab)({show:!1}))}))}))})),N=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/renameOrganizationFolder",{fid:e,name:t,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))}))}))})),S=(e,t,a)=>(t(Object(d.ab)({show:!0})),new Promise(((n,s)=>{Object(i.d)(((l,r)=>{const i={name:e,token:r};a&&""!==a&&(i.expire_at=a),c.a.sendPost("/api/createSharedFolder",i).then((e=>{e.result?n(e):(c.a.printError(e),s(e))})).finally((()=>{t(Object(d.ab)({show:!1}))}))}))}))),T=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/updateSharedFolder",{fid:e,expire_at:t,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))}))}))})),v=(e,t)=>new Promise(((a,n)=>{e||n(new Error("\uc0ad\uc81c\ud560 \ud3f4\ub354\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694.")),t(Object(d.ab)({show:!0})),Object(i.d)(((s,l)=>{c.a.sendPost("/api/removeSharedFolder",{fid:e,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))})).finally((()=>{t(Object(d.ab)({show:!1}))}))}))})),R=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/renameSharedFolder",{fid:e,name:t,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))}))}))})),y=(e,t,a,n,s,l,o)=>new Promise(((d,b)=>{Object(i.d)(((i,j)=>{c.a.sendPost("/api/setFolderPermission",{fid:e,user_id:t,file_permission:a,trash_permission:n,manage_type:s,manage_priority:l,file_delete_permission:o,securedoc_permission:r.fb,token:j}).then((e=>{e.result?d(e.result):(c.a.printError(e),b(e))}))}))})),C=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/releaseFolderPermission",{fid:e,user_id:t,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))}))}))})),A=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/setReadableFolderPermissions",{fid:e,permissions:t,token:l}).then((e=>{e&&e.result?a(e.result):(c.a.printError(e),n(e||new Error("error")))})).catch((e=>{console.log(e)}))}))})),L=(e,t)=>(t(Object(d.ab)({show:!0})),new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/removeOrgSharedFolder",{fid:e,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))})).finally((()=>{t(Object(d.ab)({show:!1}))}))}))}))),w=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/organizationFolders",{token:n}).then((a=>{if(a.result){const t={},n=a.folders.sort(((e,t)=>e.disp_path>t.disp_path?1:e.disp_path===t.disp_path?0:-1)).map((e=>{e.real_path=e.path,e.path=e.disp_path.substring(e.disp_path.substring(1).indexOf("/")+1),e.name=e.name.replace("[_ORG_].","");const a=e.fid_path.split("/").filter(Boolean).map((e=>Number.parseInt(e,10)));let n=t;for(let t=0;te.fid===s));l||(l={fid:s,name:"",children:[]},n.children.push(l)),c&&(l.name=e.name||e.disp_path.split("/").pop(),l.allow_takeout=e.allow_takeout,l.disp_path=e.disp_path,delete l.children),n=l}return e}));e({orgs:n,orgChildren:t})}else c.a.printError(a),t(a)}))}))})),I=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/sharedFolderList",{token:n}).then((a=>{if(a.result){const t=a.folders.sort(((e,t)=>e.path>t.path?1:e.path===t.path?0:-1));e({shareds:t})}else c.a.printError(a),t(a)}))}))})),P=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/moveOrganizationData",{source_fid:e,target_fid:t,token:l}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),D=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/transferOrganizationFolder",{source_path:e,dest_path:t,token:l}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),M=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/folderPermissionList",{fid:e,token:s}).then((e=>{e.result?t(e.permissions):(c.a.printError(e),a(e))}))}))})),k=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/getReadableFolderPermissions",{fid:e,token:s}).then((e=>{e.result?t(e.permissions):(c.a.printError(e),a(e))}))}))})),G=e=>new Promise(((e,t)=>{c.a.sendPost("/api/readableFolderPermissionObjects",{}).then((a=>{a.result?e(a.objects):(c.a.printError(a),t(a))}))})),U=(e,t)=>new Promise(((a,n)=>{c.a.sendPost("/api/setFolderMaxSize",{path:e,size:t}).then((e=>{e.result?a():(c.a.printError(e),n(e))}))})),F=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/updateOrganizationFolder",{fid:e,allow_takeout:t,token:l}).then((e=>{e.result?a():(c.a.printError(e),n(e))}))}))})),W=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/folderProperties",{fid:e,token:s}).then((e=>{if(e.result){const a={};Object.keys(e.properties).forEach((t=>{a[o.a.decryptAES(n,t,"hex","utf8")]=o.a.decryptAES(n,e.properties[t],"hex","utf8")})),t(a)}else c.a.printError(e),a(e)}))}))})),H=(e,t,a)=>new Promise(((n,s)=>{Object(i.d)(((l,r)=>{c.a.sendPost("/api/addFolderProperty",{fid:e,name:o.a.encryptAES(l,t,"utf8","hex"),value:o.a.encryptAES(l,a,"utf8","hex"),token:r}).then((e=>{e.result?n(e.result):(c.a.printError(e),s(e))}))}))})),z=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,l)=>{c.a.sendPost("/api/removeFolderProperty",{fid:e,name:o.a.encryptAES(s,t,"utf8","hex"),token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),1===e.error&&a(!0),n(e))}))}))})),B=async e=>{try{const t=await Object(i.c)(),a=await c.a.sendPost("/api/organizationFolderList",{parent_fid:e,token:t.token});return a.result?a.folders:[]}catch(t){return[]}},K=Object(s.b)("folder/wormholeAccessCodesEx",(async()=>({codeObj:await Y()}))),Y=async()=>{const e=await Object(i.c)(),t=await c.a.sendPost("/api/wormholeAccessCodes",{token:e.token});if(!t.result)return{};const a={};return t.codes.forEach((t=>{a[t.base_folder_id]={code:o.a.decryptAES(e.aesKey,t.code,"hex","utf8"),path:o.a.decryptAES(e.aesKey,t.path,"hex","utf8"),sub_path:o.a.decryptAES(e.aesKey,t.sub_path,"hex","utf8")}})),a},V=async(e,t,a)=>{const n=await Object(i.c)();return(await c.a.sendPost("/api/registerWormholeAccessCode",{token:n.token,base_fid:t,code:o.a.encryptAES(n.aesKey,e,"utf8","hex"),sub_path:o.a.encryptAES(n.aesKey,a,"utf8","hex")})).result},X=async e=>{const t=await Object(i.c)();return(await c.a.sendPost("/api/releaseWormholeAccessCode",{token:t.token,code:o.a.encryptAES(t.aesKey,e,"utf8","hex")})).result},q=Object(s.d)({name:"folder",initialState:{folders:[],foldersObj:{},orgFolders:[],orgsObj:{},orgPerms:[],parentPerms:{},selectedOrgID:-1,loadingSelected:!1,orgsChildren:{children:[]},sharedFolders:[],sharedsObj:{},sharedPerms:[],readablePermObjs:[],selectedSharedID:0,searchTextShared:"",capacity:0,sharedCapacity:0,codeObj:{}},reducers:{initOrgSearchText:{reducer:(e,t)=>{e.searchTextOrg="",e.selectedOrgID=0}},setSharedSearchText:{reducer:(e,t)=>{e.searchTextShared=t.payload},prepare:e=>({payload:e.target.value||""})}},extraReducers:{[j.fulfilled]:(e,t)=>{const a={},n=[];t.payload.folderObj&&(t.payload.folderObj.orgs&&t.payload.folderObj.orgs.length>0&&t.payload.folderObj.orgs.forEach(((e,t)=>{e.real_path=e.path,e.path=e.disp_path?e.disp_path:e.path,e.name=e.name.replace("[_ORG_].",""),e.folder_type=r.F,a[e.fid]=e,n.push(e)})),t.payload.folderObj.shareds&&t.payload.folderObj.shareds.length>0&&t.payload.folderObj.shareds.forEach((e=>{e.folder_type=r.I,a[e.fid]=e,n.push(e)})),t.payload.folderObj.orgshareds&&t.payload.folderObj.orgshareds.length>0&&t.payload.folderObj.orgshareds.forEach((e=>{e.path=e.disp_path?e.disp_path:e.path,e.folder_type=r.G,a[e.fid]=e,n.push(e)})),e.folders=n,e.foldersObj=a)},[u.fulfilled]:(e,t)=>{const a={},s={};t.payload.folders&&(e.orgFolders=t.payload.folders.sort(((e,t)=>e.disp_path>t.disp_path?1:e.disp_path===t.disp_path?0:-1)).map((e=>{e.real_path=e.path,e.path=e.disp_path.substring(e.disp_path.substring(1).indexOf("/")+1),e.name=e.name.replace("[_ORG_].",""),a[e.fid]=e;const t=e.fid_path.split("/").filter(Boolean).map((e=>Number.parseInt(e,10)));let n=s;for(let a=0;ae.fid===s));l||(l={fid:s,name:"",children:[]},n.children.push(l)),c&&(l.name=e.name||e.disp_path.split("/").pop(),l.allow_takeout=e.allow_takeout,l.disp_path=e.disp_path,l.org_type=e.org_type,delete l.children),n=l}return e})),e.orgsObj=Object(n.a)(Object(n.a)({},e.orgsObj),a),e.orgsChildren=s,t.payload.codeObj&&(e.codeObj=t.payload.codeObj))},[K.fulfilled]:(e,t)=>{e.codeObj=t.payload.codeObj},[O.fulfilled]:(e,t)=>{const a={};t.payload.folders&&(t.payload.folders.forEach((e=>{e.real_path=e.path,e.path=e.disp_path.substring(e.disp_path.substring(1).indexOf("/")+1),e.name=e.name.replace("[_ORG_].",""),a[e.fid]=e})),e.orgsObj=Object(n.a)(Object(n.a)({},e.orgsObj),a),e.orgFolders=t.payload.folders.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1)))},[p.fulfilled]:(e,t)=>{const a={};t.payload.folders.forEach((e=>{e.real_path=e.path,e.path=e.disp_path.substring(e.disp_path.substring(1).indexOf("/")+1),e.name=e.name.replace("[_ORG_].",""),a[e.fid]=e})),e.orgsObj=Object(n.a)(Object(n.a)({},e.orgsObj),a)},[h.fulfilled]:(e,t)=>{e.orgPerms=t.payload.permissions?t.payload.permissions.sort(((e,t)=>e.user_name>t.user_name?1:e.user_name===t.user_name?0:-1)):[],e.selectedOrgID=t.payload.selectedOrgID,e.capacity=t.payload.capacity,e.parentPerms=Object(n.a)(Object(n.a)({},e.parentPerms),t.payload.parentPerms)},[_.fulfilled]:(e,t)=>{const a={},n=[];t.payload.folderObj.shareds.forEach((e=>{e.real_path=e.path,e.path=e.path.substring(e.path.substring(1).indexOf("/")+1),a[e.fid]=e,e.folder_type=r.I,n.push(e)})),t.payload.folderObj.orgshareds.forEach((e=>{e.real_path=e.path,e.path=e.path.substring(e.path.substring(1).indexOf("/")+1),a[e.fid]=e,e.folder_type=r.G,n.push(e)})),e.sharedsObj=a,e.sharedFolders=n.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1))},[g.fulfilled]:(e,t)=>{e.sharedPerms=t.payload.permissions.sort(((e,t)=>e.obj_type===t.obj_type?e.name>t.name?1:e.user_name===t.user_name?0:-1:e.obj_typet.obj_type?-1:0)),e.selectedSharedID=t.payload.selectedSharedID,e.sharedCapacity=t.payload.capacity},[f.fulfilled]:(e,t)=>{e.readablePermObjs=t.payload.sort(((e,t)=>e.obj_type===t.obj_type?e.name>t.name?1:e.name===t.name?0:-1:e.obj_typet.obj_type?-1:0))}}}),{setSharedSearchText:J,initOrgSearchText:Z}=q.actions;t.d=q.reducer},24:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return l}));var n=a(27);const s=Object(n.d)({name:"dialog",initialState:{state:!1,options:{children:"Hi"}},reducers:{openDialog:(e,t)=>{e.state=!0,e.options=t.payload},closeDialog:(e,t)=>{e.state=!1}}}),{openDialog:c,closeDialog:l}=s.actions;t.b=s.reducer},25:function(e,t,a){"use strict";a.d(t,"C",(function(){return o})),a.d(t,"w",(function(){return d})),a.d(t,"ab",(function(){return b})),a.d(t,"g",(function(){return j})),a.d(t,"j",(function(){return u})),a.d(t,"k",(function(){return O})),a.d(t,"E",(function(){return p})),a.d(t,"F",(function(){return h})),a.d(t,"A",(function(){return m})),a.d(t,"y",(function(){return _})),a.d(t,"G",(function(){return f})),a.d(t,"I",(function(){return g})),a.d(t,"x",(function(){return E})),a.d(t,"H",(function(){return x})),a.d(t,"J",(function(){return N})),a.d(t,"a",(function(){return S})),a.d(t,"T",(function(){return T})),a.d(t,"z",(function(){return v})),a.d(t,"Y",(function(){return R})),a.d(t,"U",(function(){return y})),a.d(t,"L",(function(){return C})),a.d(t,"l",(function(){return A})),a.d(t,"Z",(function(){return L})),a.d(t,"B",(function(){return w})),a.d(t,"K",(function(){return I})),a.d(t,"i",(function(){return P})),a.d(t,"W",(function(){return D})),a.d(t,"m",(function(){return M})),a.d(t,"X",(function(){return k})),a.d(t,"d",(function(){return G})),a.d(t,"e",(function(){return U})),a.d(t,"p",(function(){return F})),a.d(t,"q",(function(){return W})),a.d(t,"n",(function(){return H})),a.d(t,"o",(function(){return z})),a.d(t,"M",(function(){return B})),a.d(t,"N",(function(){return K})),a.d(t,"D",(function(){return Y})),a.d(t,"O",(function(){return V})),a.d(t,"P",(function(){return X})),a.d(t,"S",(function(){return q})),a.d(t,"Q",(function(){return J})),a.d(t,"R",(function(){return Z})),a.d(t,"V",(function(){return Q})),a.d(t,"h",(function(){return $})),a.d(t,"u",(function(){return ee})),a.d(t,"v",(function(){return te})),a.d(t,"r",(function(){return ae})),a.d(t,"s",(function(){return ne})),a.d(t,"t",(function(){return se})),a.d(t,"b",(function(){return le})),a.d(t,"c",(function(){return ie})),a.d(t,"bb",(function(){return oe}));var n=a(2),s=a(27),c=a(6),l=a(11),r=(a(9),a(15)),i=a(7);const o=Object(s.b)("system/getStorageDashboard",(async()=>{const e=await c.a.sendPost("/api/storageDashboard",{});return e.result?{dashBoardObj:e.values[0]}:{total:{},types:{},organizes:[],shareds:[],privates:[],collects:[]}})),d=Object(s.b)("system/getHoldFiles",(async(e,t)=>{let{userID:a}=e,{_:n,getState:s}=t;const l=await Object(r.c)(),i=await c.a.sendPost("/api/holdFiles",{user_id:a,token:l.token});if(i.result){if(""===a){const e=[];return i.users.forEach((t=>{t.files.forEach((a=>{a.user_id=t.user_id,a.user_name=t.user_name,e.push(a)}))})),{files:e}}return{files:i.files.map((e=>(e.user_id=a,e.user_name=s().docbase.admin.account.usersObj[a].name,e)))}}return{files:[]}})),b=Object(s.b)("system/statisticValues",(async()=>{const e=await c.a.sendPost("/api/statisticValues",{});return e.result?{average_read_bytes:e.average_read_bytes,average_write_bytes:e.average_write_bytes,average_created_files:e.average_created_files,average_renamed_files:e.average_renamed_files,average_removed_files:e.average_removed_files,average_updated_files:e.average_updated_files,average_created_directories:e.average_created_directories,average_removed_directories:e.average_removed_directories,average_webapi_calls:e.average_webapi_calls,connected_clients:e.connected_clients}:{average_read_bytes:0,average_write_bytes:0,average_created_files:0,average_renamed_files:0,average_removed_files:0,average_updated_files:0,average_created_directories:0,average_removed_directories:0,average_webapi_calls:0,connected_clients:0}})),j=Object(s.b)("system/getAccessLog",(async(e,t)=>{let{startID:a,date:n,days:s,path:l,operator:r,accessType:i,isToday:o}=e,{dispatch:d,_:b}=t;const j=await c.a.sendPost("/api/fileAccessLogs",{start_id:a&&a>0?a:0,date:n,days:s,path:l,operator:r,access_types:i});return j.result?0!==a&&0===j.last_id?{logs:[],id:a,startID:a,isToday:o}:{logs:j.logs,id:j.last_id+1,startID:a,isToday:o}:{logs:[],id:0,startID:a,isToday:o}})),u=Object(s.b)("system/getAuditLog",(async(e,t)=>{let{page:a,auditType:n,startDate:s,endDate:l,object:i,user:o}=e,{dispatch:d,getState:b}=t;const j=await Object(r.c)(),u=await c.a.sendPost("/api/getAuditLog",{rows_per_page:b().docbase.admin.system.auditLogObj.rowsPerPage,audit_type:n,start_date:s,end_date:l,user:o,path:i,token:j.token});return u.result?(d(O({page:a})),{total_rows:u.total_rows,total_pages:u.total_pages}):{total_rows:0,total_pages:0}})),O=Object(s.b)("system/getAuditLogPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(r.c)(),i=await c.a.sendPost("/api/getAuditLogPage",{page:a,token:l.token});return i.result?{logs:i.logs,page:a,aes:l.aesKey}:{logs:[],page:1,aes:""}})),p=Object(s.b)("system/getWeblinks",(async(e,t)=>{let{page:a,startDate:n,endDate:s,user:l}=e,{dispatch:i,getState:o}=t;const d=await Object(r.c)(),b=await c.a.sendPost("/api/getWeblinks",{rows_per_page:o().docbase.admin.system.weblinkLogObj.rowsPerPage,start_registered_at:n,end_registered_at:s,user:l,token:d.token});return b.result?(i(h({page:a})),{total_rows:b.total_rows,total_pages:b.total_pages}):{total_rows:0,total_pages:0}})),h=Object(s.b)("system/getWeblinksPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(r.c)(),i=await c.a.sendPost("/api/getWeblinksPage",{page:a,token:l.token});return i.result?{logs:i.weblinks,page:a,aes:l.aesKey}:{logs:[],page:1,aes:""}})),m=Object(s.b)("system/getOsrInfo",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=await Object(r.c)(),l=await c.a.sendPost("/api/OSR",{token:s.token});return l.result?l.remains:{new_organizations:[],remove_organizations:[],remove_users:[],error:!0,exists:l.error===i.gb}})),_=Object(s.b)("system/getLegacyIntegrateMethod",(async()=>{const e=await Object(r.c)();return(await c.a.sendPost("/wcapi/getLegacyIntegrateMethod",{name:"web:change_download_url",token:e.token})).method})),f=Object(s.b)("system/inquiryTakeouts",(async(e,t)=>{let{days:a,requester:n,approver:s,inquiryType:l,status:r,page:i}=e,{dispatch:o,getState:d}=t;const b=await c.a.sendPost("/api/inquiryTakeouts",{rows_per_page:d().docbase.admin.system.takeoutsObj.rowsPerPage,duration:a,duration_type:a>0?1:4,requester:n,approver:s,inquiry_type:l,status:r});return b.result?(o(g({page:i})),{total_rows:b.total_rows,total_pages:b.total_pages}):{total_rows:0,total_pages:0}})),g=Object(s.b)("system/inquiryTakeoutsPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(r.c)(),i=await c.a.sendPost("/api/inquiryTakeoutsPage",{page:a,token:l.token});return i.result?{takeouts:i.takeouts,page:a,aes:l.aesKey}:{takeouts:[],page:1,aes:""}})),E=async e=>{const t=[];for(let a=1;a<=e;a++){const e=await Object(r.c)(),n=await c.a.sendPost("/api/inquiryTakeoutsPage",{page:a,token:e.token});if(n.result){let a="";n.takeouts.forEach((n=>{n.requester=l.a.decryptAES(e.aesKey,n.requester,"hex","utf8"),n.approver=l.a.decryptAES(e.aesKey,n.approver,"hex","utf8"),a=l.a.decryptAES(e.aesKey,n.requester_name,"hex","utf8"),n.requester_name="Unknown"===a?"-":a,a=l.a.decryptAES(e.aesKey,n.approver_name,"hex","utf8"),n.approver_name="Unknown"===a?"-":a,n.requested_at=l.a.decryptAES(e.aesKey,n.requested_at,"hex","utf8"),n.approved_at=l.a.decryptAES(e.aesKey,n.approved_at,"hex","utf8"),n.reason_requested=l.a.decryptAES(e.aesKey,n.reason_requested,"hex","utf8"),n.reason_rejected=l.a.decryptAES(e.aesKey,n.reason_rejected,"hex","utf8"),t.push(n)}))}}return t},x=(e,t,a,n,s)=>new Promise(((l,r)=>{c.a.sendPost("/api/inquiryTakeouts",{rows_per_page:1e4,duration:e,duration_type:e>0?1:4,requester:t,approver:a,inquiry_type:n,status:s}).then((e=>{l(e)}))})),N=()=>new Promise(((e,t)=>{Object(r.d)(((t,a)=>{c.a.sendPost("/api/inquiryTakeoutsPage",{page:1,token:a}).then((a=>{const n=[];if(a.result){let e="";a.takeouts.forEach((a=>{a.requester=l.a.decryptAES(t,a.requester,"hex","utf8"),a.approver=l.a.decryptAES(t,a.approver,"hex","utf8"),e=l.a.decryptAES(t,a.requester_name,"hex","utf8"),a.requester_name="Unknown"===e?"-":e,e=l.a.decryptAES(t,a.approver_name,"hex","utf8"),a.approver_name="Unknown"===e?"-":e,a.requested_at=l.a.decryptAES(t,a.requested_at,"hex","utf8"),a.approved_at=l.a.decryptAES(t,a.approved_at,"hex","utf8"),a.reason_requested=l.a.decryptAES(t,a.reason_requested,"hex","utf8"),a.reason_rejected=l.a.decryptAES(t,a.reason_rejected,"hex","utf8"),n.push(a)}))}e({takeouts:n,aes:t})}))}))})),S=(e,t,a)=>new Promise(((n,s)=>{Object(r.d)(((s,l)=>{c.a.sendPost("/api/approveTakeoutRequest",{toid:e,approve:t,reason:a,token:l}).then((e=>{n(e)}))}))})),T=(e,t,a,n)=>new Promise(((s,l)=>{Object(r.d)(((r,i)=>{const o=Object.keys(t),d=[],b=[],j=[];Object.keys(a).forEach((e=>{let n=!1;for(let a=0;a{let n=!1;for(let s=0;s{n[e].handover_user_id&&""!==n[e].handover_user_id&&("#DELETE#"===n[e].handover_user_id?j.push({user_id:e}):j.push({user_id:e,handover_user_id:n[e].handover_user_id}))}));const u={new_organizations:b,move_organizations:o.map((e=>({id:e,old_path:t[e].path}))),remove_organizations:d,remove_users:j};c.a.sendPost("/api/OSRProcess",{process:u,token:i}).then((e=>{e.result?s(e):(c.a.printError(e),l(e))}))}))})),v=()=>new Promise(((e,t)=>{c.a.sendPost("/api/getOSROrgs",{}).then((a=>{a.result?e(a.ids):(c.a.printError(a),t(a))}))})),R=e=>new Promise(((t,a)=>{c.a.sendPost("/api/setOSROrgs",{ids:e}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))})),y=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/releaseUserHoldFiles",{user_id:e,etd:30,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),C=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/naturalizeFiles",{path:e,token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),A=async e=>{const t=[];for(let a=1;a<=e;a++){const e=await Object(r.c)(),n=await c.a.sendPost("/api/getAuditLogPage",{page:a,token:e.token});n.result&&n.logs.forEach((a=>{a.extra=l.a.decryptAES(e.aesKey,a.extra,"hex","utf8"),a.new_object=l.a.decryptAES(e.aesKey,a.new_object,"hex","utf8"),a.old_object=l.a.decryptAES(e.aesKey,a.old_object,"hex","utf8"),a.opreator=l.a.decryptAES(e.aesKey,a.opreator,"hex","utf8"),t.push(a)}))}return t},L=(e,t,a)=>new Promise(((n,s)=>{Object(r.d)(((l,r)=>{c.a.sendPost("/api/setRecommendUpdateNewClient",{user_id:e,fid:t,recommend_type:a,token:r}).then((e=>{e.result?n(e):(c.a.printError(e),s(e))}))}))})),w=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((s,l)=>{c.a.sendPost("/api/getRecommendUpdateNewClient",{user_id:e,fid:t,token:l}).then((e=>{e.result?a(e.users):(c.a.printError(e),n(e))}))}))})),I=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/clientsInfo",{user_id:e,token:s}).then((e=>{e.result?t(e.clients):(c.a.printError(e),a(e))}))}))})),P=()=>new Promise(((e,t)=>{c.a.sendPost("/api/getApprovalTakeoutManageTypes",{}).then((a=>{a.result?e(a.folders):(c.a.printError(a),t(a))}))})),D=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/setApprovalTakeoutManageTypes",{folders:e}).then((e=>{e.result?t(e.result):(c.a.printError(e),a(e))}))}))})),M=e=>new Promise(((t,a)=>{c.a.sendPost("/api/getAutoApprovalSettingsForFolder",{fid:e}).then((e=>{e.result?t(e.users):(c.a.printError(e),a(e))}))})),k=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((s,l)=>{c.a.sendPost("/api/setAutoApprovalSettingsForFolder",{fid:e,users:t,token:l}).then((e=>{e.result?a(e.result):(c.a.printError(e),n(e))}))}))})),G=(e,t,a,n)=>new Promise(((s,l)=>{Object(r.d)(((r,i)=>{c.a.sendPost("/api/collectLogs",{user_id:e,start_date:t,end_date:a,omit_server_log:n}).then((e=>{e.result?s(e):(c.a.printError(e),l(e))}))}))})),U=()=>new Promise(((e,t)=>{Object(r.d)(((a,n)=>{c.a.sendPost("/api/collectLogsStatus",{}).then((a=>{a.result?e(a):(c.a.printError(a),t(a))}))}))})),F=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/getCollectedLogs",{conditions:e}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),W=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/getCollectedLogsPage",{page:e}).then((e=>{e.result?t(e.logs):(c.a.printError(e),a(e))}))}))})),H=(e,t,a,n)=>new Promise(((s,l)=>{c.a.sendPost("/api/clientRunningLogs",{user_id:e,start_time:t,end_time:a,rows_per_page:n}).then((e=>{e.result?s(e):(c.a.printError(e),l(e))}))})),z=e=>new Promise(((t,a)=>{c.a.sendPost("/api/clientRunningLogsPage",{page:e}).then((e=>{e.result?t(e.logs):(c.a.printError(e),a(e))}))})),B=Object(s.b)("system/offlineDriveTakeoutFiles",(async(e,t)=>{let{page:a,day:n,userID:s}=e,{dispatch:l,getState:i}=t;const o=await Object(r.c)(),d=await c.a.sendPost("/api/offlineDriveTakeoutFiles",{rows_per_page:i().docbase.admin.system.offlineTakeoutsObj.rowsPerPage,duration:n,duration_type:4,user_id:s,token:o.token});return d.result?(l(K({page:a})),{total_rows:d.total_rows,total_pages:d.total_pages}):{total_rows:0,total_pages:0}})),K=Object(s.b)("system/offlineDriveTakeoutFilesPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const l=await Object(r.c)(),i=await c.a.sendPost("/api/offlineDriveTakeoutFilesPage",{page:a,token:l.token});return i.result?{takeouts:i.takeouts,page:a,aes:l.aesKey}:{takeouts:[],page:1,aes:""}})),Y=async()=>{const e=await c.a.sendPost("/api/storageDashboard",{});return e.result?e.values[0]:{total:{},types:{},organizes:[],shareds:[],privates:[],collects:[]}},V=async()=>{const e=await c.a.sendPost("/api/pluginListXML",{});return e.result?e.xmls:[]},X=async e=>{const t=await Object(r.c)(),a=await c.a.sendPost("/api/pluginReadXML",{path:l.a.encryptAES(t.aesKey,e,"utf8","hex"),token:t.token});return a.result&&a.xml&&l.a.decryptAES(t.aesKey,a.xml,"hex","utf8")||""},q=async(e,t)=>{const a=await Object(r.c)();return(await c.a.sendPost("/api/pluginWriteXML",{path:l.a.encryptAES(a.aesKey,e,"utf8","hex"),xml:l.a.encryptAES(a.aesKey,t,"utf8","hex"),token:a.token})).result},J=async e=>{const t=await Object(r.c)(),a=await c.a.sendPost("/api/pluginRun",{command_id:l.a.encryptAES(t.aesKey,e,"utf8","hex"),token:t.token});return a.result?a.run_id:-1},Z=async e=>{const t=await c.a.sendPost("/api/pluginRunInfo",{run_id:e});return t.result?t.info:{running:!1,err:"",std_out:"",std_err:"",exit_code:-1}},Q=async(e,t,a)=>(await c.a.sendPost("/api/sendUrgentMessage",{title:e,message:t,users:a})).result,$=async(e,t,a,n,s,l,r)=>{const i=await c.a.sendPost("/api/fileAccessLogs",{start_id:e&&e>0?e:0,date:t,days:a,path:n,operator:s,access_types:l});return i.result?0!==e&&0===i.last_id?{logs:[],id:e,startID:e,isToday:r}:{logs:i.logs,id:i.last_id+1,startID:e,isToday:r}:{logs:[],id:0,startID:e,isToday:r}},ee=async(e,t)=>{const a=await Object(r.c)(),n=await c.a.sendPost("/api/getFPODs",{rows_per_page:100,start_date:e,end_date:t,token:a.token});return n.result?{total_rows:n.total_rows,total_pages:n.total_pages}:{total_rows:0,total_pages:0}},te=async e=>{const t=await Object(r.c)(),a=await c.a.sendPost("/api/getFPODsPage",{page:e,token:t.token});return a.result?a.files.map((e=>(e.path=l.a.decryptAES(t.aesKey,e.path,"hex","utf8").replaceAll("[_ORG_].",""),e.registered_by=l.a.decryptAES(t.aesKey,e.registered_by,"hex","utf8"),e.registered_username=l.a.decryptAES(t.aesKey,e.registered_username,"hex","utf8"),e))):[]},ae=async(e,t,a,n)=>{const s=await Object(r.c)(),l=await c.a.sendPost("/api/getFOIs",{rows_per_page:100,start_date:e,end_date:t,size:""===a?0:Number(a),exts:n,token:s.token});return l.result?{total_rows:l.total_rows,total_pages:l.total_pages}:{total_rows:0,total_pages:0}},ne=async e=>{const t=await Object(r.c)(),a=await c.a.sendPost("/api/getFOIsPage",{page:e,token:t.token});return a.result?a.files.map((e=>(e.path=l.a.decryptAES(t.aesKey,e.path,"hex","utf8"),e))):[]},se=async e=>{const t=[];for(let a=1;a<=e;a++){const e=await Object(r.c)(),n=await c.a.sendPost("/api/getFOIsPage",{page:a,token:e.token});n.result&&n.files.forEach((a=>{a.path=l.a.decryptAES(e.aesKey,a.path,"hex","utf8"),t.push(a)}))}return t},ce=Object(s.d)({name:"system",initialState:{dashboardObj:{total:{},types:{others:{size:0},organizes:{size:0},privates:{size:0},shareds:{size:0},collects:{size:0}},organizes:[],shareds:[],privates:[],collects:[]},averageInfo:{time:new Date,readBytes:0,writeBytes:0,average_created_files:0,average_renamed_files:0,average_removed_files:0,average_updated_files:0,average_created_directories:0,average_removed_directories:0,average_webapi_calls:0,connected_clients:0},todayLogs:[],todayLogID:0,osrObj:{new_organizations:[],remove_organizations:[],remove_users:[],error:!0,exists:!1},auditLogObj:{rowsPerPage:100,currentPage:1,totalRows:0,totalPages:0,logs:[]},weblinkLogObj:{rowsPerPage:100,currentPage:1,totalRows:0,totalPages:0,logs:[]},accessLogObj:{rowsPerPage:100,currentPage:1,totalRows:0,totalPages:0,logs:[]},legacyObj:{},takeoutsObj:{key:"",rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,takeouts:[]},offlineTakeoutsObj:{rowsPerPage:100,currentPage:1,totalRows:0,total_pages:0,takeouts:[]},holdFiles:[]},reducers:{changeAuditLogRowsPerPage:(e,t)=>{e.auditLogObj.rowsPerPage=t.payload.value},changeTakeoutsRowsPerPage:(e,t)=>{e.takeoutsObj.rowsPerPage=t.payload.value},changeOfflineTakeoutsRowsPerPage:(e,t)=>{e.offlineTakeoutsObj.rowsPerPage=t.payload.value},updateTakeout:(e,t)=>{const{toid:a,approve:n,reason:s}=t.payload,c=e.takeoutsObj.takeouts.find((e=>e.toid===a));c&&(c.status=n,c.reason_rejected=s)}},extraReducers:{[o.fulfilled]:(e,t)=>{e.dashboardObj=t.payload.dashBoardObj},[b.fulfilled]:(e,t)=>{e.averageInfo.time=new Date,e.averageInfo.readBytes=t.payload.average_read_bytes,e.averageInfo.writeBytes=t.payload.average_write_bytes,e.averageInfo.average_created_files=10*t.payload.average_created_files,e.averageInfo.average_renamed_files=10*t.payload.average_renamed_files,e.averageInfo.average_removed_files=10*t.payload.average_removed_files,e.averageInfo.average_updated_files=10*t.payload.average_updated_files,e.averageInfo.average_created_directories=10*t.payload.average_created_directories,e.averageInfo.average_removed_directories=10*t.payload.average_removed_directories,e.averageInfo.average_webapi_calls=t.payload.average_webapi_calls,e.averageInfo.connected_clients=t.payload.connected_clients},[j.fulfilled]:(e,t)=>{t.payload.isToday?(e.todayLogs=t.payload.logs,e.todayLogID=t.payload.id):e.accessLogObj.logs=t.payload.logs},[u.fulfilled]:(e,t)=>{e.auditLogObj.totalRows=t.payload.total_rows,e.auditLogObj.totalPages=t.payload.total_pages},[O.fulfilled]:(e,t)=>{e.auditLogObj.logs=t.payload.logs.map((e=>(e.extra=l.a.decryptAES(t.payload.aes,e.extra,"hex","utf8"),e.new_object=l.a.decryptAES(t.payload.aes,e.new_object,"hex","utf8"),e.old_object=l.a.decryptAES(t.payload.aes,e.old_object,"hex","utf8"),e.opreator=l.a.decryptAES(t.payload.aes,e.opreator,"hex","utf8"),e))),e.auditLogObj.currentPage=t.payload.page},[p.fulfilled]:(e,t)=>{e.weblinkLogObj.totalRows=t.payload.total_rows,e.weblinkLogObj.totalPages=t.payload.total_pages},[h.fulfilled]:(e,t)=>{e.weblinkLogObj.logs=t.payload.logs.map((e=>(e.created_by=l.a.decryptAES(t.payload.aes,e.created_by,"hex","utf8"),e.creator=l.a.decryptAES(t.payload.aes,e.creator,"hex","utf8"),e.email_otp_address=e.email_otp_address?l.a.decryptAES(t.payload.aes,e.email_otp_address,"hex","utf8"):"",e.files=e.files.map((e=>l.a.decryptAES(t.payload.aes,e,"hex","utf8"))),e))),e.weblinkLogObj.currentPage=t.payload.page},[m.fulfilled]:(e,t)=>{e.osrObj=Object(n.a)(Object(n.a)({},t.payload),{},{new_organizations:[...t.payload.new_organizations].sort(((e,t)=>e.path.localeCompare(t.path))),remove_organizations:[...t.payload.remove_organizations].sort(((e,t)=>e.path.localeCompare(t.path))),remove_users:[...t.payload.remove_users].sort(((e,t)=>e.name.localeCompare(t.name)))})},[_.fulfilled]:(e,t)=>{e.legacyObj=t.payload},[f.fulfilled]:(e,t)=>{e.takeoutsObj.totalRows=t.payload.total_rows,e.takeoutsObj.totalPages=t.payload.total_pages},[g.fulfilled]:(e,t)=>{e.takeoutsObj.key=t.payload.aes;let a="";e.takeoutsObj.takeouts=t.payload.takeouts.map((e=>(e.requester=l.a.decryptAES(t.payload.aes,e.requester,"hex","utf8"),e.approver=l.a.decryptAES(t.payload.aes,e.approver,"hex","utf8"),a=l.a.decryptAES(t.payload.aes,e.requester_name,"hex","utf8"),e.requester_name="Unknown"===a?"-":a,a=l.a.decryptAES(t.payload.aes,e.approver_name,"hex","utf8"),e.approver_name="Unknown"===a?"-":a,e.requested_at=l.a.decryptAES(t.payload.aes,e.requested_at,"hex","utf8"),e.approved_at=l.a.decryptAES(t.payload.aes,e.approved_at,"hex","utf8"),e.reason_requested=l.a.decryptAES(t.payload.aes,e.reason_requested,"hex","utf8"),e.reason_rejected=l.a.decryptAES(t.payload.aes,e.reason_rejected,"hex","utf8"),e))),e.takeoutsObj.currentPage=t.payload.page},[B.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.totalRows=t.payload.total_rows,e.offlineTakeoutsObj.totalPages=t.payload.total_pages},[K.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.takeouts=t.payload.takeouts.map((e=>(e.user_id=l.a.decryptAES(t.payload.aes,e.user_id,"hex","utf8"),e.user_name=l.a.decryptAES(t.payload.aes,e.user_name,"hex","utf8"),e.copied_at=l.a.decryptAES(t.payload.aes,e.copied_at,"hex","utf8"),e.path=l.a.decryptAES(t.payload.aes,e.path,"hex","utf8"),e))),e.offlineTakeoutsObj.currentPage=t.payload.page},[d.fulfilled]:(e,t)=>{e.holdFiles=t.payload.files}}}),{changeAuditLogRowsPerPage:le,changeTakeoutsRowsPerPage:re,changeOfflineTakeoutsRowsPerPage:ie,updateTakeout:oe}=ce.actions;t.f=ce.reducer},258:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return l}));const n={},s=(e,t)=>(n[e]||(n[e]=[]),n[e].push(t),()=>{n[e]=n[e].filter((e=>e!==t))}),c=e=>{try{const{eventID:t,eventData:a}=JSON.parse(e.data),s=n[t];s&&s.forEach((e=>{e(a)}))}catch(t){console.error("RN WebView message error:",t)}},l=()=>{window.ReactNativeWebView&&(document.addEventListener("message",c),window.addEventListener("message",c))}},26:function(e,t,a){"use strict";a.d(t,"a",(function(){return E}));var n=a(98),s=a(3),c=a(184),l=a.n(c),r=a(501),i=(a(637),a(1)),o=a.n(i),d=a(8),b=a(2),j=a(12),u=a(67),O=a(0);const p=["forwardRef"];var h=e=>{class t extends o.a.Component{render(){const t=this.props,{forwardRef:a}=t,n=Object(j.a)(t,p);return Object(O.jsx)(e,Object(b.a)(Object(b.a)({},n),{},{ref:a}))}}const a=Object(u.h)(t,{withRef:!0});return o.a.forwardRef(((e,t)=>Object(O.jsx)(a,Object(b.a)(Object(b.a)({},e),{},{forwardRef:t}))))};const m=new l.a(window.navigator.userAgent).mobile(),_={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(_);const f=Object(n.a)((e=>({root:{}}))),g=o.a.forwardRef(((e,t)=>{t=t||Object(i.createRef)();const a=Object(i.useRef)(null),n=Object(i.useRef)(new Map),c=f(),{customScrollbars:l}=e,o=Object(i.useCallback)((()=>{Object.keys(_).forEach((a=>{const s=e[_[a]];if(s){const e=()=>s(t.current);n.current.set(a,e),t.current.addEventListener(a,e,!1)}}))}),[t]),d=Object(i.useCallback)((()=>{n.current.forEach(((e,a)=>{t.current&&t.current.removeEventListener(a,e,!1)})),n.current.clear()}),[t]),b=Object(i.useCallback)((()=>{d(),a.current&&(a.current.destroy(),a.current=null)}),[d]),j=Object(i.useCallback)((()=>{m||!t||a.current||(a.current=new r.a(t.current,e.option),o())}),[o,e.option,t]);Object(i.useEffect)((()=>{a.current&&a.current.update()})),Object(i.useEffect)((()=>{l?j():b()}),[j,l,b]);const u=Object(i.useCallback)((()=>{t&&t.current&&(t.current.scrollTop=0)}),[t]);return Object(i.useEffect)((()=>{e.scrollToTopOnChildChange&&u()}),[u,e.children,e.scrollToTopOnChildChange]),Object(i.useEffect)((()=>e.history.listen((()=>{e.scrollToTopOnRouteChange&&u()}))),[u,e.history,e.scrollToTopOnRouteChange]),Object(i.useEffect)((()=>()=>{b()}),[b]),Object(O.jsx)("div",{id:e.id,className:Object(s.a)(c.root,e.className),style:e.customScrollbars&&(e.enable,1)&&!m?{position:"relative",overflow:"hidden"}:{},ref:t,children:e.children})}));g.defaultProps={className:"",enable:!0,scrollToTopOnChildChange:!1,scrollToTopOnRouteChange:!1,option:{wheelPropagation:!0},ref:void 0,onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0};var E=Object(d.a)((function(e){let{fuse:t}=e;return{customScrollbars:t.settings.current.customScrollbars}}),null,null,{forwardRef:!0})(h(g))},277:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n,s,c=a(1);const l=["title","titleId"];function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.setWith(s.clone(e),t,a,s.clone)});var c=s},29:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));a(1);var n=a(8),s=a(172),c=a(98),l=a(288),r=a(226),i=a(366),o=a(99),d=a(24),b=a(0);const j=Object(c.a)({title:{color:"#000000",padding:20,textAlign:"center","& .MuiTypography-h6":{fontSize:16}},content:{color:"#404040",fontSize:14,padding:"0px 20px",textAlign:"center",whiteSpace:"pre-line"},actions:{padding:20,"& button":{width:"100%"}}});function u(e){const t=j(),a=Object(n.b)(),{t:c}=Object(s.a)("docbase");return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(l.a,{className:t.title,children:e.title}),Object(b.jsx)(r.a,{className:t.content,children:e.content}),Object(b.jsxs)(i.a,{className:t.actions,children:[Object(b.jsx)(o.a,{className:"default",onClick:()=>a(Object(d.a)()),children:c("NO")}),Object(b.jsx)(o.a,{variant:"contained",onClick:()=>{a(Object(d.a)()),e.fnHandleOK()},color:"secondary",autoFocus:!0,children:c("YES")})]})]})}},290:function(e,t,a){"use strict";var n=a(98),s=a(3),c=(a(1),a(10)),l=a.p+"static/media/wc_avi.a4942d22.svg",r=a.p+"static/media/wc_doc.aeb99c37.svg",i=a.p+"static/media/wc_etc.efb63a96.svg",o=a.p+"static/media/wc_jpg.129355e3.svg",d=a.p+"static/media/wc_pdf.3d8c1ba2.svg",b=a.p+"static/media/wc_png.44c2f868.svg",j=a.p+"static/media/wc_ppt.b4ebc366.svg",u=a.p+"static/media/wc_psd.0da4950b.svg",O=a.p+"static/media/wc_txt.409f4f70.svg",p=a.p+"static/media/wc_xls.ddabf3da.svg",h=a.p+"static/media/wc_zip.09f0e070.svg",m=a.p+"static/media/wc_lock.4f1d239e.svg",_=a.p+"static/media/wc_unlock.43afbf64.svg",f=a(0);const g=Object(n.a)({fileIcon:{width:16,height:16,margin:"0 auto","&.huge":{width:64,height:64},"&.large":{width:35,height:35}},fileListIcon:{width:"35px",height:"35px",margin:"0 auto"}});t.a=function(e){const t=g(),a=c.a.splitLastDelimiterString(e.targetName,".").toLowerCase();let n;if(e.secureDocInfo&&e.secureDocInfo.isSecureDoc)n=e.secureDocInfo.accessible?Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:_,alt:"file-icon"}):Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:m,alt:"file-icon"});else switch(a){case"avi":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:l,alt:"file-icon"});break;case"doc":case"docx":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:r,alt:"file-icon"});break;case"jpg":case"jpeg":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:o,alt:"file-icon"});break;case"pdf":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:d,alt:"file-icon"});break;case"png":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:b,alt:"file-icon"});break;case"ppt":case"pptx":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:j,alt:"file-icon"});break;case"psd":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:u,alt:"file-icon"});break;case"txt":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:O,alt:"file-icon"});break;case"xls":case"xlsx":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:p,alt:"file-icon"});break;case"zip":n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:h,alt:"file-icon"});break;default:n=Object(f.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:i,alt:"file-icon"})}return Object(f.jsx)("div",{className:e.className,children:n})}},31:function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var n=a(26),s=a(98),c=a(3),l=a(1),r=a.n(l),i=a(8),o=a(59),d=a(944),b=a(50),j=a(0);var u=function(e){const t=Object(o.a)(),a=Object(i.c)(Object(b.c)(t.palette.primary.main));return Object(j.jsx)("div",{className:e.classes.header,children:e.header&&Object(j.jsx)(d.a,{theme:a,children:e.header})})},O=a(2),p=a(117),h=a(971),m=a(972);var _=function(e){const t=Object(o.a)(),a=Object(i.c)(Object(b.c)(t.palette.primary.main)),{classes:s}=e;return Object(j.jsxs)(n.a,{enable:e.innerScroll,children:[e.header&&Object(j.jsx)(d.a,{theme:a,children:Object(j.jsx)("div",{className:Object(c.a)(s.sidebarHeader,e.variant,e.sidebarInner&&s.sidebarHeaderInnerSidebar),children:e.header})}),e.content&&Object(j.jsx)("div",{className:s.sidebarContent,children:e.content})]})};function f(e,t){const[a,n]=Object(l.useState)(!1),{classes:s}=e;Object(l.useImperativeHandle)(t,(()=>({toggleSidebar:r})));const r=()=>{n(!a)};return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)(h.a,{lgUp:"permanent"===e.variant,children:Object(j.jsx)(m.a,{variant:"temporary",anchor:e.position,open:a,onOpen:e=>{},onClose:e=>r(),disableSwipeToOpen:!0,classes:{root:Object(c.a)(s.sidebarWrapper,e.variant),paper:Object(c.a)(s.sidebar,e.variant,"left"===e.position?s.leftSidebar:s.rightSidebar)},ModalProps:{keepMounted:!0},container:e.rootRef.current,BackdropProps:{classes:{root:s.backdrop}},style:{position:"absolute"},children:Object(j.jsx)(_,Object(O.a)({},e))})}),"permanent"===e.variant&&Object(j.jsx)(h.a,{mdDown:!0,children:Object(j.jsx)(p.a,{variant:"permanent",className:Object(c.a)(s.sidebarWrapper,e.variant),open:a,classes:{paper:Object(c.a)(s.sidebar,e.variant,"left"===e.position?s.leftSidebar:s.rightSidebar)},children:Object(j.jsx)(_,Object(O.a)({},e))})})]})}var g=r.a.forwardRef(f);const E=window.innerWidth<774?"100%":774,x=Object(s.a)((e=>({root:{display:"flex",flexDirection:"column",minHeight:"100%",position:"relative",flex:"1 0 auto",height:"auto",backgroundColor:e.palette.background.default},innerScroll:{flex:"1 1 auto",height:"100%"},wrapper:{display:"flex",flexDirection:"row",flex:"1 1 auto",zIndex:2,maxWidth:"100%",minWidth:0,height:"100%",backgroundColor:e.palette.background.default,overflowX:"auto",padding:"0 30px","&.userpage":{padding:0}},header:{display:"flex",background:"#ffffff",color:"#222222",margin:"0px 0px 30px",borderRadius:"6px","&.userpage-header-mobile":{margin:0,"&>div":{flexDirection:"column","&>div":{width:"100%","&.header-context-bar":{display:"flex",justifyContent:"space-between",padding:"5px 10px"}}}},"&.userpage-header":{margin:0},"&.userpage-header>div":{height:"fit-content",padding:0}},topBg:{left:0,right:0,top:0,height:"6.4rem",pointerEvents:"none"},contentWrapper:{display:"flex",flexDirection:"column",flex:"1 1 auto",overflow:"auto","-webkit-overflow-scrolling":"touch",zIndex:9999,minWidth:E},toolbar:{height:64,minHeight:64,display:"flex",alignItems:"center"},content:{flex:"1 0 auto",padding:"0 2px"},sidebarWrapper:{overflow:"hidden",backgroundColor:"transparent",position:"absolute","&.permanent":{[e.breakpoints.up("lg")]:{position:"relative"}}},sidebar:{position:"absolute","&.permanent":{[e.breakpoints.up("lg")]:{backgroundColor:"#f7f7f7",color:"#fff",position:"relative"}},width:E,height:"100%","&.user-leftmenu.permanent":{width:300,background:"#272c36"}},leftSidebar:{[e.breakpoints.up("lg")]:{borderRight:"1px solid ".concat(e.palette.divider),borderLeft:0}},rightSidebar:{[e.breakpoints.up("lg")]:{borderRight:0}},sidebarHeader:{height:90,minHeight:90,backgroundColor:e.palette.primary.dark,color:e.palette.primary.contrastText},sidebarHeaderInnerSidebar:{backgroundColor:"transparent",color:"inherit",height:"auto",minHeight:"auto"},sidebarContent:{padding:"0 2px"},backdrop:{position:"absolute"}}))),N=r.a.forwardRef(((e,t)=>{const a=Object(l.useRef)(null),s=Object(l.useRef)(null),i=Object(l.useRef)(null),o=x(e);return r.a.useImperativeHandle(t,(()=>({rootRef:i,toggleLeftSidebar:()=>{a.current.toggleSidebar()},toggleRightSidebar:()=>{s.current.toggleSidebar()}}))),Object(j.jsx)("div",{className:Object(c.a)(o.root,e.innerScroll&&o.innerScroll),ref:i,children:Object(j.jsxs)("div",{className:"flex flex-auto flex-col container z-10 h-full",children:[e.header&&e.sidebarInner&&Object(j.jsx)(u,{header:e.header,classes:o}),Object(j.jsxs)("div",{className:Object(c.a)(o.wrapper,e.className),children:[(e.leftSidebarHeader||e.leftSidebarContent)&&Object(j.jsx)(g,{position:"left",header:e.leftSidebarHeader,content:e.leftSidebarContent,variant:e.leftSidebarVariant||"permanent",innerScroll:e.innerScroll,sidebarInner:e.sidebarInner,classes:o,ref:a,rootRef:i}),Object(j.jsxs)(n.a,{className:o.contentWrapper,enable:e.innerScroll&&!e.sidebarInner,children:[e.header&&!e.sidebarInner&&Object(j.jsx)(u,{header:e.header,classes:o}),e.contentToolbar&&Object(j.jsx)("div",{className:o.toolbar,children:e.contentToolbar}),e.content&&Object(j.jsx)("div",{className:o.content,children:e.content})]}),(e.rightSidebarHeader||e.rightSidebarContent)&&Object(j.jsx)(g,{position:"right",header:e.rightSidebarHeader,content:e.rightSidebarContent,variant:e.rightSidebarVariant||"permanent",innerScroll:e.innerScroll,sidebarInner:e.sidebarInner,classes:o,ref:s,rootRef:i})]})]})})}));N.defaultProps={};var S=r.a.memo(N)},32:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(104),s=a(939),c=a(112),l=a(1),r=a(0);function i(e){const[t,a]=Object(l.useState)(!e.delay);return Object(n.d)((()=>{a(!0)}),e.delay),t?Object(r.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-12 ".concat(e.className||""),children:[Object(r.jsx)(c.a,{className:"text-20 mb-16",color:"textSecondary",children:e.msg&&""!==e.msg?e.msg:"Loading..."}),Object(r.jsx)(s.a,{className:"w-xs max-w-full",color:"secondary"})]}):null}i.defaultProps={delay:!1};var o=i},34:function(e,t,a){"use strict";a.d(t,"h",(function(){return o})),a.d(t,"b",(function(){return b})),a.d(t,"k",(function(){return j})),a.d(t,"p",(function(){return u})),a.d(t,"q",(function(){return O})),a.d(t,"m",(function(){return p})),a.d(t,"e",(function(){return h})),a.d(t,"n",(function(){return m})),a.d(t,"d",(function(){return _})),a.d(t,"j",(function(){return f})),a.d(t,"a",(function(){return g})),a.d(t,"c",(function(){return E})),a.d(t,"l",(function(){return x})),a.d(t,"o",(function(){return N})),a.d(t,"g",(function(){return S})),a.d(t,"i",(function(){return T}));var n=a(2),s=a(27),c=a(6),l=a(11),r=a(15),i=a(7);const o=Object(s.b)("account/getUserList",(async(e,t)=>{let{dispatch:a}=t;const n=await Object(r.c)(),s=await c.a.sendPost("/api/userList",{token:n.token},(()=>a(o())));return s.result?{users:s.users,aes:n.aesKey}:(c.a.printError(s),[])})),d=Object(s.b)("account/selectedUserID",(async(e,t)=>{let{userID:a}=e,{dispatch:n,getState:s}=t;if(""===a)return{permissions:[],selectedID:a};const l=await Object(r.c)(),o=await c.a.sendPost("/api/userPermissionList",{user_id:a,token:l.token}),d={privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};if(o.permissions.length>0)for(let r=0;rnew Promise(((O,p)=>{Object(r.d)(((r,h)=>{const m={user_id:l.a.encryptAES(r,e,"utf8","hex"),password:l.a.encryptAES(r,t,"utf8","hex"),name:a,privilege:n,access_level:s,email:i||"",local_account:JSON.parse(o),no_sync_osr:!1,allow_multiple_logins:d||0,expire_at:b,token:h};j&&(m.dataleak_control=j),u&&(m.special_ip_range=l.a.encryptAES(r,u,"utf8","hex")),c.a.sendPost("/api/addUser",m).then((e=>{e.result?O(e):(c.a.printError(e),p(e))}))}))})),j=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((s,r)=>{c.a.sendPost("/api/removeUser",{user_id:l.a.encryptAES(s,e,"utf8","hex"),handover_user_id:t?l.a.encryptAES(s,t,"utf8","hex"):"",token:r}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),u=(e,t,a)=>new Promise(((s,i)=>{Object(r.d)(((r,o)=>{const d=Object(n.a)(Object(n.a)({},e),{},{[t]:a,token:o});""===e.special_ip_range?delete d.special_ip_range:d.special_ip_range=l.a.encryptAES(r,e.special_ip_range,"utf8","hex"),d.user_id=l.a.encryptAES(r,e.user_id,"utf8","hex"),c.a.sendPost("/api/updateUser",d).then((e=>{e.result?s(e):(c.a.printError(e),i(e))}))}))})),O=e=>new Promise(((t,a)=>{Object(r.d)(((s,r)=>{const i=Object(n.a)(Object(n.a)({},e),{},{token:r});i.user_id=l.a.encryptAES(s,e.user_id,"utf8","hex"),""===e.special_ip_range?delete i.special_ip_range:i.special_ip_range=l.a.encryptAES(s,e.special_ip_range,"utf8","hex"),c.a.sendPost("/api/updateUser",i).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),p=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((s,r)=>{c.a.sendPost("/api/resetPassword",{user_id:l.a.encryptAES(s,e,"utf8","hex"),password:l.a.encryptAES(s,t,"utf8","hex"),token:r}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),h=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/createPaperPassword",{user_id:l.a.encryptAES(n,e,"utf8","hex"),token:s}).then((e=>{e.result?(e.passwords=l.a.decryptAES(n,e.passwords,"hex","utf8"),t(e)):(c.a.printError(e),a(e))}))}))})),m=e=>new Promise(((t,a)=>{Object(r.d)(((n,s)=>{c.a.sendPost("/api/resetTOTP",{user_id:l.a.encryptAES(n,e,"utf8","hex"),token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),_=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((s,r)=>{c.a.sendPost("/api/changePassword",{current_password:l.a.encryptAES(s,e,"utf8","hex"),new_password:l.a.encryptAES(s,t,"utf8","hex"),token:r}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),f=()=>new Promise(((e,t)=>{Object(r.d)(((a,s)=>{c.a.sendPost("/api/userList",{token:s}).then((s=>{if(s.result){const t={};s.users.forEach((e=>{const s=l.a.decryptAES(a,e.user_id,"hex","utf8");t[s]=Object(n.a)(Object(n.a)({},e),{},{user_id:s,id:s,name:l.a.decryptAES(a,e.name,"hex","utf8")})})),e(t)}else t(s)}))}))})),g=()=>new Promise(((e,t)=>{Object(r.d)(((a,s)=>{c.a.sendPost("/api/activeOfflineDrives",{token:s}).then((s=>{s.result?e(Object(n.a)(Object(n.a)({},s),{},{aes:a})):t(s)}))}))})),E=(e,t,a)=>new Promise(((n,s)=>{Object(r.d)(((r,i)=>{c.a.sendPost("/api/approveOfflineDrive",{token:i,offline_drive_id:e,approve:t,reason:2===t&&""!==a?l.a.encryptAES(r,a,"utf8","hex"):""}).then((e=>{e.result?n(e):s(e)}))}))})),x=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((a,n)=>{fetch("/api/requestExtensionOfflineDrive?token=".concat(n,"&offline_drive_id=").concat(e,"&expire_at=").concat(t),{method:"GET"}).then((e=>e.blob())).then((e=>{const t=window.URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download="extension.token",document.body.appendChild(a),a.click(),setTimeout((e=>{window.URL.revokeObjectURL(t)}),6e4),a.remove()})).catch((e=>{console.error("err: ",e)}))}))})),N=async e=>{var t;if(""===e)return{privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};const a=await Object(r.c)(),n=await c.a.sendPost("/api/userPermissionList",{user_id:e,token:a.token}),s={privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};if((null===n||void 0===n||null===(t=n.permissions)||void 0===t?void 0:t.length)>0)for(let l=0;l{if(""===e)return{private:{},collector:{}};const t=await Object(r.c)(),a=await c.a.sendPost("/api/userPermissionList",{user_id:e,token:t.token}),n={private:{},collector:{}};return a.permissions.forEach((e=>{e.folder_type===i.H&&(n.private=e),e.folder_type===i.E&&(n.collector=e)})),n},T=async e=>{if(""===e)return{private:{},collector:{}};const t=await Object(r.c)(),a=await c.a.sendPost("/api/userPermissionList",{user_id:e,token:t.token});return a.result?a.permissions:[]},v=Object(s.d)({name:"account",initialState:{users:[],usersObj:{},userPerms:[],selectedID:"",privateSize:0,privatePath:"",collectorSize:0,collectorPath:"",licences:0},reducers:{},extraReducers:{[o.fulfilled]:(e,t)=>{const a={};if(t.payload.users){let n=0;const s=t.payload.users.map(((e,s)=>(e.user_id=l.a.decryptAES(t.payload.aes,e.user_id,"hex","utf8"),e.name=l.a.decryptAES(t.payload.aes,e.name,"hex","utf8"),e.email=l.a.decryptAES(t.payload.aes,e.email,"hex","utf8"),e.id=e.user_id,a[e.user_id]=e,n+=0===e.allow_multiple_logins?1:e.allow_multiple_logins,e)));e.users=s,e.usersObj=a,e.licences=n-1}else e.licences=0},[d.fulfilled]:(e,t)=>{e.userPerms=t.payload.permissions,e.selectedID=t.payload.selectedID,e.privateSize=t.payload.privateSize,e.privatePath=t.payload.privatePath,e.collectorSize=t.payload.collectorSize,e.collectorPath=t.payload.collectorPath}}});t.f=v.reducer},345:function(e,t,a){"use strict";var n=a(98),s=a(3),c=(a(1),a(142)),l=a(349),r=a.p+"static/media/private_folder.beb692c2.ico",i=a.p+"static/media/collect_folder.fdfe1525.ico",o=a.p+"static/media/shared_folder.07ff8a64.ico",d=a.p+"static/media/partnership_folder.65617885.ico",b=a.p+"static/media/project_folder.cd798192.ico",j=a.p+"static/media/default_folder.dfe7aeb4.ico",u=a(0);const O=Object(n.a)({root:{display:"inline-block",verticalAlign:"middle","&.small":{width:"16px",height:"16px",fontSize:"16px"}},fileIcon:{width:"20px",height:"20px",fontSize:"20px",margin:"0 auto","&.small":{width:"16px",height:"16px",fontSize:"16px"},"&.big":{width:"24px",height:"24px",fontSize:"24px"},"&.large":{width:"32px",height:"32px",fontSize:"32px"},"&.huge":{width:"64px",height:"64px",fontSize:"64px"},"&.folder:before":{content:"'folder'",color:"#000000"}},fileListIcon:{width:"35px",height:"35px",margin:"0 auto"}});t.a=function(e){let{type:t,className:a}=e;const n=O();let p;switch(t){case"folder":p=Object(u.jsx)("img",{src:j,alt:"private folder",className:Object(s.a)(n.fileIcon,a)});break;case"private":p=Object(u.jsx)("img",{src:r,alt:"private folder",className:Object(s.a)(n.fileIcon,a)});break;case"collect":p=Object(u.jsx)("img",{src:i,alt:"collect folder",className:Object(s.a)(n.fileIcon,a)});break;case"org":p=Object(u.jsx)("img",{src:l.a,alt:"org folder",className:Object(s.a)(n.fileIcon,a)});break;case"shared":p=Object(u.jsx)("img",{src:o,alt:"shared folder",className:Object(s.a)(n.fileIcon,a)});break;case"project":p=Object(u.jsx)("img",{src:b,alt:"project folder",className:Object(s.a)(n.fileIcon,a)});break;case"partnership":p=Object(u.jsx)("img",{src:d,alt:"partnership folder",className:Object(s.a)(n.fileIcon,a)});break;default:p=Object(u.jsx)(c.a,{className:Object(s.a)(n.fileIcon,a),children:t})}return Object(u.jsx)("div",{className:Object(s.a)(n.root,a),children:p})}},349:function(e,t,a){"use strict";t.a=a.p+"static/media/org_folder.ea9fe724.ico"},35:function(e,t,a){"use strict";var n,s,c=a(98),l=a(3),r=a(1),i=a(142),o=a(277);const d=["title","titleId"];function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:673,background:"#f2f3f5",borderRadius:18,"&>div":{padding:20}},"& .modal-body>.content":{borderRadius:18}},contentWrapper:{height:250},title:{background:"#334155",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},contnet:{"& .title":{marginRight:10,cursor:"default"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:15,"& button":{width:"auto",marginLeft:10,padding:"5px 20px",borderRadius:"8px",background:"#ffffff",fontSize:"12px",color:"#64748b",border:"1px solid #e2e8f0"},"&>button:active, &>button:hover":{background:"#1663ff",color:"#ffffff",borderColor:"#1663ff",fontWeight:600,"& .user-add>svg, & .add>svg, & .settings-1>svg":{color:"#ffffff!important"}}}})));function S(e){const t=Object(p.b)(),a=N(),{t:n}=Object(l.a)("docbase"),s=c.a.useRef(null),{sysConfigure:r}=Object(p.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[i,S]=c.a.useState(""),[T,v]=c.a.useState(""),[R,y]=c.a.useState("");return c.a.useEffect((()=>{v(""),y("")}),[e.open]),c.a.useEffect((()=>{e.curPassword&&""!==e.curPassword&&(S(e.curPassword),e.open&&s.current.focus())}),[e.curPassword]),Object(g.jsx)("div",{children:Object(g.jsxs)(o.a,{className:Object(f.a)(a.root,E?"mobile":""),open:e.open,TransitionComponent:x,keepMounted:!0,fullWidth:!0,maxWidth:"xs",onClose:e.fnHandleClose,children:[Object(g.jsx)(d.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("CHANGE_PASSWORD")})}),Object(g.jsx)(b.a,{className:Object(f.a)(a.contnet,"modal-body user-page"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("CURRENT_PASSWORD")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(j.a,{className:"",type:"password",name:"cur-password",value:i,onChange:e=>S(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("NEW_PASSWORD")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(j.a,{className:"",type:"password",name:"new-password",value:T,onChange:e=>v(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:s})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("NEW_PASSWORD")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(j.a,{className:"",type:"password",name:"conf-password",value:R,onChange:e=>y(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:s})})]}),r.strong_password?Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("p",{className:"hint",children:"1. 8\uc790\ub9ac \uc774\uc0c1 16\uc790\ub9ac \uc774\ud558\ub85c \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4"}),Object(g.jsx)("p",{className:"hint",children:"2. \ucd5c\uc18c \ud558\ub098 \uc774\uc0c1\uc758 \ub300\ubb38\uc790, \uc18c\ubb38\uc790, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\ub97c \ud3ec\ud568\ud574\uc57c \ud569\ub2c8\ub2e4"}),Object(g.jsx)("p",{className:"hint",children:"3. 3\uc790\ub9ac \uc774\uc0c1 \uc5f0\uc18d\uc801\uc778 \ubb38\uc790\ub098 \uc22b\uc790\ub97c \ud3ec\ud568\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4(\uc608: '123', 'abc')"}),Object(g.jsx)("p",{className:"hint",children:"4. \uc544\uc774\ub514\uc640 \ub3d9\uc77c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4"})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(u.a,{onClick:e.fnHandleClose,variant:"contained",className:"","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(u.a,{variant:"contained",color:"secondary",className:"",disabled:!T&&T.length<=0||!R&&R.length<=0,type:"button",onClick:a=>{T!==R?t(Object(m.c)({message:n("CHANGE_PASSWORD_ERROR_MESSAGE_1")})):r.strong_password&&T.length<8||T.length>16?t(Object(m.c)({message:n(" 8\uc790\ub9ac \uc774\uc0c1 16\uc790\ub9ac \uc774\ud558\ub85c \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4")})):Object(_.d)(i,T).then((t=>{localStorage.setItem("auth",h.a.encryptAESCTR(T)),e.fnHandleComplete()})).catch((e=>{let a="";e.error===O.ob?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_2"):e.error===O.sb?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_3"):e.error===O.nb&&(a=e.message),t(Object(m.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}},484:function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));a(1);var n=a(98),s=a(286),c=a(288),l=a(226),r=a(366),i=a(99),o=a(172),d=a(0);const b=Object(n.a)({title:{color:"#000000",fontSize:22,padding:30,textAlign:"center"},content:{color:"#404040",fontSize:16,padding:"1px 30px",textAlign:"center"},actions:{padding:30,"& button":{width:"100%",height:56},"& button:first-child":{marginRight:8}}});function j(e){const t=b(),{t:a}=Object(o.a)("docbase");return Object(d.jsx)("div",{children:Object(d.jsxs)(s.a,{open:e.open,onClose:t=>e.fnHandleClose(),"aria-labelledby":"form-dialog-title",children:[e.title&&Object(d.jsx)(c.a,{id:"confirm-msg",children:e.title}),Object(d.jsx)(l.a,{className:t.content,children:e.content}),Object(d.jsxs)(r.a,{style:{paddingBottom:20},children:[Object(d.jsx)(i.a,{onClick:t=>e.fnHandleCancel(),variant:"contained",className:"w-224 mx-auto","aria-label":"cancel",disabled:e.disabledCancel,type:"button",children:e.cancel}),Object(d.jsx)(i.a,{onClick:t=>e.fnHandleOK(),variant:"contained",className:"w-224 mx-auto",type:"button","aria-label":"ok",children:e.ok})]})]})})}},488:function(e,t,a){"use strict";t.a=a.p+"static/media/header_profile.78c8b41d.svg"},489:function(e,t,a){"use strict";t.a=a.p+"static/media/header_logout.5427545f.svg"},490:function(e,t,a){"use strict";var n=a(2),s=a(548),c=a(549),l=a(550),r=a(155),i=a(142),o=a(362),d=a(365),b=a(156),j=a(1),u=a.n(j),O=a(8),p=a(172),h=a(0);t.a=function(e){const{t:t}=Object(p.a)("docbase"),a=Object(O.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),j=[{id:"path",align:"left",className:"search-cell",disablePadding:!1,label:t("DOCUMENT"),isSearch:!0,sort:!1},{id:"pii_name",align:"left",className:"left",disablePadding:!1,label:t("PII_NAME"),isSearch:!1,sort:!1},{id:"pii_element",align:"left",className:"left",disablePadding:!1,label:t("PII_ELEMENT"),isSearch:!1,sort:!1},{id:"fpod_requested",align:"center",className:"center",disablePadding:!1,label:t("\uc624\ud0d0\uc694\uccad"),isSearch:!1,sort:!1},{id:"pii_registered_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("REGIST_DATE"),isSearch:!1,sort:!1}],[m,_]=u.a.useState({path:{show:""!==e.searchObj.searchName,value:e.searchObj.searchName}}),f=e=>{e.preventDefault()},g=window.location.host.indexOf("10.240")>=0||window.location.host.indexOf("172.20")>=0||window.location.host.indexOf("folder")>=0;return Object(h.jsx)(s.a,{children:Object(h.jsx)(c.a,{children:j.map((t=>a.pii_detect_access_control||g||"fpod_requested"!==t.id?Object(h.jsx)(l.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:m[t.id]&&m[t.id].show?Object(h.jsxs)(r.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(h.jsx)(i.a,{color:"action",children:"search"}),Object(h.jsx)(o.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:m[t.id].value,endAdornment:Object(h.jsx)(d.a,{position:"end",children:Object(h.jsx)(b.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>_(Object(n.a)(Object(n.a)({},m),{},{[t.id]:{show:!1,value:""}})),onMouseDown:f,edge:"end",children:Object(h.jsx)(i.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{_(Object(n.a)(Object(n.a)({},m),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(m.path.value))}})]}):Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(h.jsx)(i.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{_(Object(n.a)(Object(n.a)({},m),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(h.jsx)(h.Fragment,{})]})},t.id):""),this)})})}},491:function(e,t,a){"use strict";var n=a(2),s=a(548),c=a(549),l=a(550),r=a(155),i=a(142),o=a(362),d=a(365),b=a(156),j=a(1),u=a.n(j),O=a(98),p=a(3),h=a(172),m=a(0);const _=Object(O.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:600},"& .search-cell":{"& .MuiPaper-root":{borderRadius:7,background:"#fff"}}}})));t.a=function(e){const{t:t}=Object(h.a)("docbase"),a=_(),j=[{id:"type",align:"left",className:"left type",disablePadding:!1,label:t("DIVISION"),isSearch:!1,sort:!1},{id:"old_object",align:"left",className:" left new_obj search-cell",disablePadding:!1,label:t("EXISTING_FILE"),isSearch:!!e.isFileSearch,sort:!1},{id:"new_object",align:"left",className:"left new_obj search-cell",disablePadding:!1,label:t("NEW_FILE"),isSearch:!!e.isFileSearch,sort:!1},{id:"operator",align:"left",className:"user-id search-cell",disablePadding:!1,label:t("USER"),isSearch:!0,sort:!1},{id:"date",align:"center",className:"table_col_date",disablePadding:!1,label:t("DATE"),isSearch:!1,sort:!1}],[O,f]=u.a.useState({old_object:{show:""!==e.searchObj.path,value:e.searchObj.path},new_object:{show:""!==e.searchObj.destPath,value:e.searchObj.destPath},operator:{show:""!==e.searchObj.operator,value:e.searchObj.operator}}),g=e=>{e.preventDefault()};return Object(m.jsx)(s.a,{children:Object(m.jsx)(c.a,{className:a.tr,children:j.map((t=>Object(m.jsx)(l.a,{className:Object(p.a)(t.className,O[t.id]&&O[t.id].show?"show":""),align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:O[t.id]&&O[t.id].show?Object(m.jsxs)(r.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(m.jsx)(i.a,{color:"action",children:"search"}),Object(m.jsx)(o.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:O[t.id].value,endAdornment:Object(m.jsx)(d.a,{position:"end",children:Object(m.jsx)(b.a,{className:"p-5","aria-label":"toggle password visibility",onClick:a=>{switch(f(Object(n.a)(Object(n.a)({},O),{},{[t.id]:{show:!1,value:""}})),t.id){case"old_object":e.fnSearch("",O.operator.value,O.new_object.value);break;case"new_object":e.fnSearch(O.old_object.value,O.operator.value,"");break;case"operator":e.fnSearch(O.old_object.value,"",O.new_object.value)}},onMouseDown:g,edge:"end",children:Object(m.jsx)(i.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{f(Object(n.a)(Object(n.a)({},O),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(O.old_object.value,O.operator.value,O.new_object.value))}})]}):Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(m.jsx)(i.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{f(Object(n.a)(Object(n.a)({},O),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(m.jsx)(m.Fragment,{})]})},t.id)),this)})})}},492:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=a(1),s=a.n(n),c=a(98),l=a(286),r=a(288),i=a(226),o=a(546),d=a(897),b=a(552),j=a(99),u=a(172),O=a(0);const p=Object(c.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604,borderRadius:18}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:40},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));function h(e){const{t:t}=Object(u.a)("docbase"),a=p(),[n,c]=s.a.useState([]);return s.a.useEffect((()=>{const t=""===e.selectedTypes?[]:e.selectedTypes.split(",");c(t.length>0?t.map((e=>""!==e?e:"")):e.accessType.map((e=>e.type.toString())))}),[e.open]),Object(O.jsx)("div",{children:Object(O.jsxs)(l.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(O.jsx)(r.a,{className:a.title,id:"form-dialog-title",children:t("ACCESS_TYPE")}),Object(O.jsx)(i.a,{className:a.body,children:Object(O.jsxs)("div",{className:"content",children:[Object(O.jsx)(o.a,{row:!0,children:e.accessType.map((a=>Object(O.jsx)(d.a,{control:Object(O.jsx)(b.a,{checked:n.indexOf(a.type.toString())>-1,onChange:t=>{if(0===a.type){const t=[];if(-1===n.indexOf("0"))for(let a=0;a=0?t.splice(s,1):t.push(a.type.toString());const l=t.indexOf("0");l>-1?t.splice(l,1):e.accessType.length-1===t.length&&t.push("0"),console.log(t),c(t)}},name:"at_".concat(a.cons)}),label:t(a.cons)})))}),Object(O.jsxs)("div",{className:a.buttonWrapper,children:[Object(O.jsx)(j.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(O.jsx)(j.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:t=>{e.fnHandleOK(n)},children:t("APPLY")})]})]})})]})})}},50:function(e,t,a){"use strict";a.d(t,"b",(function(){return S})),a.d(t,"c",(function(){return y})),a.d(t,"e",(function(){return C})),a.d(t,"f",(function(){return w})),a.d(t,"g",(function(){return I})),a.d(t,"d",(function(){return P})),a.d(t,"h",(function(){return W})),a.d(t,"i",(function(){return H})),a.d(t,"j",(function(){return z}));var n=a(2),s=a(541),c=a(83),l=a(262),r=a(27),i=a(28);var o={50:"#e3e6e8",100:"#bac0c5",200:"#8c969f",300:"#5e6c78",400:"#3c4d5b",500:"#003876",600:"#162838",700:"#122230",800:"#0e1c28",900:"#08111b",A100:"#5b9aff",A200:"#287bff",A400:"#005ef4",A700:"#0054da"};var d={50:"#ecfbff",100:"#d0f4fe",200:"#b0edfd",300:"#90e5fc",400:"#79e0fc",500:"#61dafb",600:"#59d6fa",700:"#4fd0fa",800:"#45cbf9",900:"#33c2f8",A100:"#ffffff",A200:"#ffffff",A400:"#d7f3ff",A700:"#beecff"},b=a(381),j=a(187),u=a(502),O=a.n(u);const p={customScrollbars:!0,animations:!0,direction:"ltr",theme:{main:"default",navbar:"mainThemeDark",toolbar:"mainThemeLight",footer:"mainThemeDark"}};const h={typography:{fontFamily:["S-CoreDream-Medi","Muli","Roboto",'"Helvetica"',"Arial","sans-serif"].join(","),fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,useNextVariants:!0,suppressDeprecationWarnings:!0},overrides:{MuiButton:{root:{textTransform:"none"}},MuiTab:{root:{textTransform:"none"}}}},m={typography:{htmlFontSize:10,body1:{fontSize:"1.4rem"},body2:{fontSize:"1.4rem"}}},_={default:{palette:{type:"light",primary:o,secondary:{light:b.a[400],main:b.a[600],dark:b.a[700]},error:j.a},status:{danger:"orange"}},defaultDark:{palette:{type:"dark",primary:o,secondary:{light:b.a[400],main:b.a[600],dark:b.a[700]},error:j.a},status:{danger:"orange"}}};function f(e){const t=Object(s.a)(e);return{border:function(){return{borderWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,borderStyle:"solid",borderColor:t.palette.divider}},borderLeft:function(){return{borderLeftWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,borderStyle:"solid",borderColor:t.palette.divider}},borderRight:function(){return{borderRightWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,borderStyle:"solid",borderColor:t.palette.divider}},borderTop:function(){return{borderTopWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,borderStyle:"solid",borderColor:t.palette.divider}},borderBottom:function(){return{borderBottomWidth:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,borderStyle:"solid",borderColor:t.palette.divider}}}}function g(e){return{mainThemeDark:i.a.merge({},e,{palette:{type:"dark",background:{paper:"#1E2125",default:"#121212"}}}),mainThemeLight:i.a.merge({},e,{palette:{type:"light",background:{paper:"#FFFFFF",default:"#F7F7F7"}}})}}var E={layout:{style:"layout1",config:{}},customScrollbars:!0,animations:!0,direction:"ltr",theme:{main:"legacy",navbar:"legacy",toolbar:"legacy",footer:"legacy"}};var x={default:{palette:{type:"light",primary:o,secondary:{light:d[100],main:d[500],dark:d[900]},background:{paper:"#FFFFFF",default:"#f6f7f9"},error:j.a},status:{danger:"orange"}},defaultDark:{palette:{type:"dark",primary:{light:"#272c36",main:"#272c36",dark:"#272c36"},secondary:{light:d[100],main:d[500],dark:d[900]},background:{paper:"#1E2125",default:"#121212"},error:j.a},status:{danger:"orange"}},legacy:{palette:{type:"light",primary:{light:"#272c36",main:"#272c36",dark:"#272c36"},secondary:{light:"#00cfe2",main:"#00cfe2",dark:"#00cfe2",contrastText:"#fff"},background:{paper:"#FFFFFF",default:"#F7F7F7"},error:j.a},status:{danger:"orange"}},light1:{palette:{type:"light",primary:{light:"#b3d1d1",main:"#006565",dark:"#003737"},secondary:{light:"#ffecc0",main:"#FFBE2C",dark:"#ff9910",contrastText:"#272727"},background:{paper:"#FFFFFF",default:"#F0F7F7"},error:j.a},status:{danger:"orange"}},light2:{palette:{type:"light",primary:{light:"#fdf3da",main:"#f8d683",dark:"#f3bc53",contrastText:"#252525"},secondary:{light:"#FADCB3",main:"#F3B25F",dark:"#ec9339",contrastText:"#252525"},background:{paper:"#FAFBFD",default:"#FFFFFF"},error:j.a},status:{danger:"orange"}},light3:{palette:{type:"light",primary:{light:"#D9C8CE",main:"#80485B",dark:"#50212F"},secondary:{light:"#FFE3BF",main:"#FFB049",dark:"#FF8619",contrastText:"#252525"},background:{paper:"#FFF0DF",default:"#FAFAFE"},error:j.a},status:{danger:"orange"}},light4:{palette:{type:"light",primary:{light:"#CDCCE8",main:"#5854B1",dark:"#2D2988"},secondary:{light:"#F8EBF2",main:"#E7BDD3",dark:"#D798B7",contrastText:"#1E1F23"},background:{paper:"#FFFFFF",default:"#F6F7FB"},error:j.a},status:{danger:"orange"}},light5:{palette:{type:"light",primary:{light:"#C2C7F1",main:"#3543D0",dark:"#161EB3"},secondary:{light:"#B3F1FE",main:"#00CFFD",dark:"#00B2FC",contrastText:"#1E1F23"},background:{paper:"#FFFFFF",default:"#F7FAFF"},error:j.a},status:{danger:"orange"}},light6:{palette:{type:"light",primary:{light:"#BBE2DA",main:"#1B9E85",dark:"#087055"},secondary:{light:"#FFD0C1",main:"#FF6231",dark:"#FF3413",contrastText:"#FFF"},background:{paper:"#FFFFFF",default:"#F2F8F1"},error:j.a},status:{danger:"orange"}},light7:{palette:{type:"light",primary:{light:"#BFC4E6",main:"#2A3BAB",dark:"#0F1980"},secondary:{light:"#C2ECF0",main:"#33C1CD",dark:"#149EAE",contrastText:"#1E1F23"},background:{paper:"#FFFFFF",default:"#EDF0F6"},error:j.a},status:{danger:"orange"}},light8:{palette:{type:"light",primary:{light:"#D2EFF2",main:"#68C8D5",dark:"#3AA7BA"},secondary:{light:"#FFF2C6",main:"#FED441",dark:"#FDB91C",contrastText:"#1E1F23"},background:{paper:"#FAF6F3",default:"#FFFFFF"},error:j.a},status:{danger:"orange"}},light9:{palette:{type:"light",primary:{light:"#D3C0CD",main:"#6B2C57",dark:"#3C102C"},secondary:{light:"#FDEAC9",main:"#F9B84B",dark:"#F59123",contrastText:"#1E1F23"},background:{paper:"#FFFFFF",default:"#FAFAFE"},error:j.a},status:{danger:"orange"}},light10:{palette:{type:"light",primary:{light:"#C6C9CD",main:"#404B57",dark:"#1C232C"},secondary:{light:"#FEEDC7",main:"#FCC344",dark:"#FAA11F",contrastText:"#1E1F23"},background:{paper:"#FFFFFF",default:"#F5F4F6"},error:j.a},status:{danger:"orange"}},light11:{palette:{type:"light",primary:{light:"#C4C4C4",main:"#3A3A3A",dark:"#181818"},secondary:{light:"#EFEFED",main:"#CBCAC3",dark:"#ACABA1",contrastText:"#1E1F23"},background:{paper:"#EFEEE7",default:"#FAF8F2"},error:{light:"#F7EAEA",main:"#EBCECE",dark:"#E3B9B9"}},status:{danger:"yellow"}},light12:{palette:{type:"light",primary:{light:"#FFFAF6",main:"#FFEDE2",dark:"#FFE0CF"},secondary:{light:"#DBD8F7",main:"#887CE3",dark:"#584CD0",contrastText:"#FFFFFF"},background:{paper:"#FFFFFF",default:"#FCF8F5"},error:j.a},status:{danger:"orange"}},dark1:{palette:{type:"dark",primary:{light:"#C2C2C3",main:"#323338",dark:"#131417"},secondary:{light:"#B8E1D9",main:"#129B7F",dark:"#056D4F",contrastText:"#FFFFFF"},background:{paper:"#262526",default:"#1E1D1E"},error:j.a},status:{danger:"orange"}},dark2:{palette:{type:"dark",primary:{light:"#C9CACE",main:"#4B4F5A",dark:"#23262E"},secondary:{light:"#F8F5F2",main:"#E6DED5",dark:"#D5C8BA",contrastText:"#23262E"},background:{paper:"#31343E",default:"#2A2D35"},error:{light:"#F7EAEA",main:"#EBCECE",dark:"#E3B9B9"}},status:{danger:"orange"}},dark3:{palette:{type:"dark",primary:{light:"#C2C8D2",main:"#354968",dark:"#16213A"},secondary:{light:"#F4CFCA",main:"#D55847",dark:"#C03325",contrastText:"#FFFFFF"},background:{paper:"#23354E",default:"#1B2A3F"},error:j.a},status:{danger:"orange"}},dark4:{palette:{type:"dark",primary:{light:"#CECADF",main:"#5A4E93",dark:"#2E2564"},secondary:{light:"#B3EBD6",main:"#00BC77",dark:"#009747",contrastText:"#FFFFFF"},background:{paper:"#22184B",default:"#180F3D"},error:j.a},status:{danger:"orange"}},dark5:{palette:{type:"dark",primary:{light:"#CCD7E2",main:"#56789D",dark:"#2B486F"},secondary:{light:"#D7D3ED",main:"#796CC4",dark:"#493DA2",contrastText:"#FFFFFF"},background:{paper:"#465261",default:"#232931"},error:j.a},status:{danger:"orange"}},dark6:{palette:{type:"dark",primary:{light:"#FFC7CE",main:"#FF445D",dark:"#FF1F30"},secondary:{light:"#B4E3FB",main:"#05A2F3",dark:"#0175EA",contrastText:"#FFFFFF"},background:{paper:"#2F3438",default:"#25292E"},error:j.a},status:{danger:"orange"}},dark7:{palette:{type:"dark",primary:{light:"FFECC5",main:"#FEBE3E",dark:"#FD991B"},secondary:{light:"#FFC8C7",main:"#FE4644",dark:"#FD201F",contrastText:"#FFFFFF"},background:{paper:"#2A2E32",default:"#212529"},error:j.a},status:{danger:"orange"}},dark8:{palette:{type:"dark",primary:{light:"#BEBFC8",main:"#252949",dark:"#0D0F21"},secondary:{light:"#CBD7FE",main:"#5079FC",dark:"#2749FA",contrastText:"#1A1E22"},background:{paper:"#2D3159",default:"#202441"},error:j.a},status:{danger:"orange"}},dark9:{palette:{type:"dark",primary:{light:"#BCC8CD",main:"#204657",dark:"#0B202C"},secondary:{light:"#B3EBC5",main:"#00BD3E",dark:"#00981B",contrastText:"#FFFFFF"},background:{paper:"#1C1E27",default:"#15171E"},error:j.a},status:{danger:"orange"}},dark10:{palette:{type:"dark",primary:{light:"#C3C2D2",main:"#36336A",dark:"#16143C"},secondary:{light:"#D6CEFC",main:"#765CF5",dark:"#4630EE",contrastText:"#FFFFFF"},background:{paper:"#2D2A5D",default:"#26244E"},error:j.a},status:{danger:"orange"}},dark11:{palette:{type:"dark",primary:{light:"#BFB7BF",main:"#2A0F29",dark:"#0F040F"},secondary:{light:"#D9B9C3",main:"#801737",dark:"#500716",contrastText:"#FFFFFF"},background:{paper:"#200D1F",default:"#2D132C"},error:j.a},status:{danger:"orange"}},dark12:{palette:{type:"dark",primary:{light:"#CCC3C8",main:"#543847",dark:"#291720"},secondary:{light:"#DFB8BD",main:"#BE717A",dark:"#99424A",contrastText:"#1a161c"},background:{paper:"#4D4351",default:"#27141F"},error:j.a},status:{danger:"orange"}}},N=a(218);function S(e,t){const a=i.a.merge({},e,t&&t.layout&&t.layout.style?{layout:{config:N.a[t.layout.style].defaults}}:{},t);return Object.entries(a.theme).forEach((e=>{let[t,n]=e;"mainThemeDark"===n||"mainThemeLight"===n||x[n]||(a.theme[t]="default")})),a}const T=e=>e.fuse.settings.themes,v=e=>e.fuse.settings.current.direction;function R(e,t,a){const n=i.a.merge({},h,e[t],m);return Object(s.a)(i.a.merge({},n,{mixins:f(n),direction:a}))}const y=e=>{return t=e,Object(c.getContrastRatio)(t,"#ffffff")>=3?A:L;var t},C=Object(l.a)([T,v,e=>e.fuse.settings.current.theme.main],((e,t,a)=>R(e,a,t))),A=Object(l.a)([T,v],((e,t,a)=>R(e,"mainThemeDark",t))),L=Object(l.a)([T,v],((e,t,a)=>R(e,"mainThemeLight",t))),w=Object(l.a)([T,v,e=>e.fuse.settings.current.theme.navbar],((e,t,a)=>R(e,a,t))),I=Object(l.a)([T,v,e=>e.fuse.settings.current.theme.toolbar],((e,t,a)=>R(e,a,t))),P=Object(l.a)([T,v,e=>e.fuse.settings.current.theme.footer],((e,t,a)=>R(e,a,t))),D=0!==Object.keys(x).length?x:_,M=function(){const e=E.layout&&E.layout.style?E.layout.style:"layout1",t={style:e,config:N.a[e].defaults};return i.a.merge({},p,{layout:t},E,function(){const e=O.a.parse(window.location.search,{ignoreQueryPrefix:!0});return e&&e.defaultSettings?JSON.parse(e.defaultSettings):{}}())}(),k=Object(n.a)(Object(n.a)({},D),g(D[M.theme.main])),G={initial:M,defaults:i.a.merge({},M),current:i.a.merge({},M),themes:k},U=Object(r.d)({name:"settings",initialState:G,reducers:{setSettings:(e,t)=>{const a=S(e.defaults,t.payload),s=a.theme.main!==e.current.theme.main?Object(n.a)(Object(n.a)({},e.themes),g(D[a.theme.main])):e.themes;return Object(n.a)(Object(n.a)({},e),{},{current:a,themes:s})},setDefaultSettings:(e,t)=>{const a=S(e.defaults,t.payload),s=a.theme.main!==e.defaults.theme.main?Object(n.a)(Object(n.a)({},e.themes),g(D[a.theme.main])):e.themes;return Object(n.a)(Object(n.a)({},e),{},{defaults:i.a.merge({},a),current:i.a.merge({},a),themes:s})},setInitialSettings:(e,t)=>i.a.merge({},G),resetSettings:(e,t)=>{const a=Object(n.a)(Object(n.a)({},e.themes),g(D[e.defaults.theme.main]));return Object(n.a)(Object(n.a)({},e),{},{defaults:i.a.merge({},e.defaults),current:i.a.merge({},e.defaults),themes:a})}}}),{resetSettings:F,setDefaultSettings:W,setInitialSettings:H,setSettings:z}=U.actions;t.a=U.reducer},581:function(e,t,a){},6:function(e,t,a){"use strict";var n=a(87),s=a.n(n),c=a(199),l=a.n(c),r=a(65),i=a(11);const o=window.location.origin+("https:"===window.location.protocol&&""===window.location.port?":443":"");s.a.interceptors.response.use((e=>(200===e.status&&(e.data.result||14!==e.data.error&&15!==e.data.error||console.log(e.data)),e)),(e=>(void 0===e.response&&console.error(e.message),Promise.reject(e)))),t.a=new class{constructor(){this.doLoginFromLocalStorage=()=>new Promise(((e,t)=>{const a=localStorage.getItem("doc_user"),n=i.a.decryptAES(localStorage.getItem("doc_aes"),localStorage.getItem("doc_auth"),"hex","utf8"),s=i.a.decryptAES(localStorage.getItem("doc_aes"),localStorage.getItem("doc_domain"),"hex","utf8");Object(r.e)(a,n,s).then(e).catch(t)})),this.secureDocDownlaod=()=>{}}jsonToParameter(e){let t="",a=0;return Object.keys(e).forEach((n=>{let s="";s="string"===typeof e[n]?e[n]:JSON.stringify(e[n]),t=0===a?"".concat(t+encodeURI(n),"=").concat(encodeURIComponent(s)):"".concat(t,"&").concat(encodeURI(n),"=").concat(encodeURIComponent(s)),a++})),t}jsonToFormData(e,t,a){const n=new FormData;if(t.length!==a.length)return console.log("The lengths of the files and fileParameterNames do not match."),n;Object.keys(e).forEach((t=>{let a="";a="string"===typeof e[t]?e[t]:JSON.stringify(e[t]),n.append(t,a)}));for(let s=0;s2&&void 0!==arguments[2]?arguments[2]:null;return new Promise(((n,c)=>{const l=this.jsonToParameter(t);(()=>{s.a.post(o+e,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0}).then((e=>{const{data:t}=e;!1===t.result&&14===t.error?this.doLoginFromLocalStorage().then((()=>{a&&a()})).catch((e=>{c(e)})):n(t),n(e.data)})).catch((e=>{console.error(e),c(e)})).finally((()=>{}))})()}))}sendGet(e,t){return new Promise(((a,n)=>{const c=this.jsonToParameter(t);s.a.get("".concat(o+e,"?").concat(c),{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0}).then((e=>{a(e.data)})).catch((e=>{console.error(e)})).finally((()=>{}))}))}sendPostRespFileURL(e,t){return new Promise(((a,n)=>{const c=this.jsonToParameter(t);s.a.post(e,c,{headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"arraybuffer"}).then((e=>{const t=new Blob([e.data],{type:e.headers["content-type"]}),n=URL.createObjectURL(t);a(n)})).catch((e=>{n(e)}))}))}sendPostMultipartForm(e,t,a,n,c){const l=this.jsonToFormData(t,a,n);s.a.post(e,l,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>c(e))).catch((e=>{console.error(e)}))}downloadFile(e,t){return new Promise(((a,n)=>{const s=this.jsonToParameter(t);fetch("".concat(e,"?").concat(s)).then((e=>{let t="undefined";if(e.headers.get("content-disposition")){const a=e.headers.get("content-disposition").split(";"),n={};a.forEach(((e,t)=>{const a=e.trim().split("=");n[a[0]]=a[1]?i.a.decodeUTF8(a[1].replaceAll('"',"")):""})),t=n.filename}l.a.createWriteStream(t)}))}))}printError(e){console.error("error code: ".concat(e.error)),console.error("error msg : ".concat(e.message))}}},60:function(e,t,a){"use strict";var n=a(532),s=a(200),c=a(533),l=a.n(c);t.a=new class{constructor(){this.excelDownload=async(e,t,a,c,l)=>{const r=s.b.aoa_to_sheet([t]);a.map((e=>{const t=[];return Object.keys(e).forEach((a=>{t.push(e[a])})),s.b.sheet_add_aoa(r,[t],{origin:-1}),c&&c.length>0&&(r["!cols"]=c),!1}));const i={Sheets:{data:r},SheetNames:["data"]},o=s.c(i,{bookType:"xlsx",type:"array"}),d=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"}),b=3e3-(Date.now()-l);b>0&&await new Promise((e=>setTimeout(e,b))),n.saveAs(d,"".concat(e).concat(".xlsx"))},this.readCsvFile=e=>new Promise(((t,a)=>{l.a.parse(e,{header:!0,skipEmptyLines:!0,dynamicTyping:!0,complete:e=>{e.errors.length>0?a(e.errors):t(e.data)},error:e=>a(e)})})),this.readExcelFile=e=>new Promise(((t,a)=>{const n=new FileReader;n.onload=e=>{const a=new Uint8Array(e.target.result),n=s.a(a,{type:"array"}),c=n.SheetNames[0],l=n.Sheets[c],r=s.b.sheet_to_json(l,{defval:null});t(r)},n.onerror=e=>a(e),n.readAsArrayBuffer(e)}))}}},65:function(e,t,a){"use strict";a.d(t,"e",(function(){return j})),a.d(t,"g",(function(){return u})),a.d(t,"i",(function(){return O})),a.d(t,"c",(function(){return p})),a.d(t,"a",(function(){return h})),a.d(t,"j",(function(){return m})),a.d(t,"h",(function(){return _})),a.d(t,"f",(function(){return f})),a.d(t,"d",(function(){return g})),a.d(t,"k",(function(){return E}));var n=a(27),s=a(6),c=a(11),l=a(15);const r=Object(n.d)({name:"login",initialState:{success:!1},reducers:{loginSuccess:(e,t)=>{e.success=!0},loginError:(e,t)=>{e.success=!1,e.error=t.payload},test:{reducer:(e,t)=>{e.sample="\uc5b4\ub9c8\uc5b4\ub9c8\ud558\uac8c"},prepare:(e,t,a)=>({payload:{t1:t,t2:a}})}},extraReducers:{}}),i={doLogin:(e,t,a)=>new Promise(((n,r)=>{Object(l.d)(((l,i)=>{s.a.sendPost("/api/login",{user_id:c.a.encryptAES(l,e,"utf8","hex"),password:c.a.encryptAES(l,t,"utf8","hex"),client_type:5,pc_id:"web",version:"2.0.0.0",token:i,domain:c.a.encryptAES(l,a,"utf8","hex")||""}).then((i=>{i.result?(s.a.sendPost("/api/loginInfo",{}).then((n=>{n.result&&(localStorage.setItem("doc_name",n.user_name),localStorage.setItem("doc_user",e),localStorage.setItem("doc_auth",c.a.encryptAES(l,t,"utf8","hex")),localStorage.setItem("doc_domain",c.a.encryptAES(l,a,"utf8","hex")),localStorage.setItem("doc_aes",c.a.arrayToHex(l)),localStorage.setItem("login","true"))})),localStorage.setItem("two_auth_flag",i.two_factor_authentication_flag),n(i)):(s.a.printError(i),r(i))}))}))})),getTOTPSecretKey:e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/getTOTPSecretKey",{account_name:e,token:c}).then((e=>{e.result?(e.aes=n,t(e)):(s.a.printError(e),a(e))}))}))})),registerTOTP:(e,t)=>new Promise(((a,n)=>{Object(l.d)(((l,r)=>{s.a.sendPost("/api/registerTOTP",{key:c.a.encryptAES(l,e,"utf8","hex"),value:c.a.encryptAES(l,t,"utf8","hex"),token:r}).then((e=>{e.result?a(e):(s.a.printError(e),n(e))}))}))})),directRegisterTOTP:(e,t)=>new Promise(((a,n)=>{Object(l.d)(((l,r)=>{s.a.sendPost("/api/registerTOTP",{key:c.a.encryptAES(l,e,"utf8","hex"),value:c.a.encryptAES(l,t,"utf8","hex"),password:c.a.encryptAES(l,c.a.decryptAESCTR(localStorage.getItem("auth")),"utf8","hex"),token:r}).then((e=>{e.result?a(e):(s.a.printError(e),n(e))}))}))})),authTOTP:e=>new Promise(((t,a)=>{Object(l.d)(((n,l)=>[s.a.sendPost("/api/totpAuth",{value:c.a.encryptAES(n,e,"utf8","hex"),token:l}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))]))})),requestPaperPassword:()=>new Promise(((e,t)=>{Object(l.d)(((a,n)=>{s.a.sendPost("/wcapi/requestPaperPassword",{token:n}).then((n=>{n.result?e(c.a.decryptAES(a,n.question,"hex","utf8")):(s.a.printError(n),t(n))}))}))})),paperPasswordAuth:e=>new Promise(((t,a)=>{Object(l.d)(((n,l)=>[s.a.sendPost("/wcapi/paperPasswordAuth",{answer:c.a.encryptAES(n,e,"utf8","hex"),token:l}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))]))})),doLogout:()=>new Promise(((e,t)=>{Object(l.d)(((a,n)=>{s.a.sendPost("/api/logoff",{}).then((a=>{a.result?(localStorage.setItem("doc_user",""),localStorage.setItem("two_auth_flag",0),e(a)):("Login first!"===a.message&&e(a),s.a.printError(a),t(a))}))}))})),doIntegratedLogin:()=>new Promise(((e,t)=>{s.a.sendPost("/api/integratedLoginConfirm",{}).then((a=>{a.result?(localStorage.setItem("doc_user","_integratedLoginConfirm"),localStorage.setItem("two_auth_flag",a.two_factor_authentication_flag),localStorage.setItem("login","true"),e(a)):(s.a.printError(a),t(a))}))})),ssoAuth:e=>new Promise(((t,a)=>{Object(l.d)(((n,l)=>{const r="".concat(e,"#@#__sso_integrated__");s.a.sendPost("/wcapi/ssoAuth",{sso_token:c.a.encryptAES(n,r,"utf8","hex"),token:l}).then((e=>{e.result?t({id:c.a.decryptAES(n,e.id,"hex","utf8"),password:c.a.decryptAES(n,e.password,"hex","utf8")}):a(e)}))}))}))},{loginSuccess:o,loginError:d,test:b}=r.actions,{doLogin:j,getTOTPSecretKey:u,registerTOTP:O,directRegisterTOTP:p,authTOTP:h,requestPaperPassword:m,paperPasswordAuth:_,doLogout:f,doIntegratedLogin:g,ssoAuth:E}=i;t.b=r.reducer},667:function(e,t){},669:function(e,t){},680:function(e,t){},682:function(e,t){},7:function(e,t,a){"use strict";a.d(t,"B",(function(){return n})),a.d(t,"C",(function(){return s})),a.d(t,"D",(function(){return c})),a.d(t,"Hb",(function(){return l})),a.d(t,"Ib",(function(){return r})),a.d(t,"A",(function(){return i})),a.d(t,"z",(function(){return o})),a.d(t,"fb",(function(){return d})),a.d(t,"eb",(function(){return b})),a.d(t,"db",(function(){return j})),a.d(t,"K",(function(){return u})),a.d(t,"F",(function(){return O})),a.d(t,"I",(function(){return p})),a.d(t,"H",(function(){return h})),a.d(t,"E",(function(){return m})),a.d(t,"J",(function(){return _})),a.d(t,"G",(function(){return f})),a.d(t,"w",(function(){return g})),a.d(t,"x",(function(){return E})),a.d(t,"y",(function(){return x})),a.d(t,"v",(function(){return N})),a.d(t,"s",(function(){return S})),a.d(t,"u",(function(){return T})),a.d(t,"t",(function(){return v})),a.d(t,"rb",(function(){return R})),a.d(t,"mb",(function(){return y})),a.d(t,"lb",(function(){return C})),a.d(t,"gb",(function(){return A})),a.d(t,"sb",(function(){return L})),a.d(t,"ib",(function(){return w})),a.d(t,"qb",(function(){return I})),a.d(t,"jb",(function(){return P})),a.d(t,"hb",(function(){return D})),a.d(t,"kb",(function(){return M})),a.d(t,"nb",(function(){return k})),a.d(t,"ob",(function(){return G})),a.d(t,"pb",(function(){return U})),a.d(t,"b",(function(){return F})),a.d(t,"f",(function(){return W})),a.d(t,"d",(function(){return H})),a.d(t,"k",(function(){return z})),a.d(t,"c",(function(){return B})),a.d(t,"h",(function(){return K})),a.d(t,"i",(function(){return Y})),a.d(t,"g",(function(){return V})),a.d(t,"e",(function(){return X})),a.d(t,"l",(function(){return q})),a.d(t,"m",(function(){return J})),a.d(t,"n",(function(){return Z})),a.d(t,"a",(function(){return Q})),a.d(t,"j",(function(){return $})),a.d(t,"M",(function(){return ee})),a.d(t,"L",(function(){return te})),a.d(t,"W",(function(){return ae})),a.d(t,"U",(function(){return ne})),a.d(t,"V",(function(){return se})),a.d(t,"R",(function(){return ce})),a.d(t,"O",(function(){return le})),a.d(t,"N",(function(){return re})),a.d(t,"P",(function(){return ie})),a.d(t,"Y",(function(){return oe})),a.d(t,"T",(function(){return de})),a.d(t,"S",(function(){return be})),a.d(t,"X",(function(){return je})),a.d(t,"Q",(function(){return ue})),a.d(t,"Eb",(function(){return Oe})),a.d(t,"Fb",(function(){return pe})),a.d(t,"Gb",(function(){return he})),a.d(t,"xb",(function(){return me})),a.d(t,"Bb",(function(){return _e})),a.d(t,"Cb",(function(){return fe})),a.d(t,"yb",(function(){return ge})),a.d(t,"zb",(function(){return Ee})),a.d(t,"Ab",(function(){return xe})),a.d(t,"Db",(function(){return Ne})),a.d(t,"ub",(function(){return Se})),a.d(t,"tb",(function(){return Te})),a.d(t,"vb",(function(){return ve})),a.d(t,"wb",(function(){return Re})),a.d(t,"r",(function(){return ye})),a.d(t,"q",(function(){return Ce})),a.d(t,"o",(function(){return Ae})),a.d(t,"p",(function(){return Le})),a.d(t,"ab",(function(){return we})),a.d(t,"cb",(function(){return Ie})),a.d(t,"bb",(function(){return Pe})),a.d(t,"Z",(function(){return De})),a.d(t,"Jb",(function(){return Me})),a.d(t,"Lb",(function(){return ke})),a.d(t,"Kb",(function(){return Ge}));const n=0,s=1,c=2,l=0,r=1,i=0,o=1,d=1,b=1,j=2,u=0,O=1,p=2,h=3,m=4,_=5,f=9,g=1,E=2,x=3,N=4,S=0,T=1,v=2,R=3,y=5,C=6,A=7,L=9,w=10,I=17,P=18,D=21,M=22,k=24,G=25,U=31,F=1,W=2,H=3,z=4,B=5,K=6,Y=7,V=8,X=9,q=10,J=11,Z=12,Q=13,$=14,ee=0,te=1,ae=1,ne=2,se=3,ce=4,le=5,re=6,ie=7,oe=8,de=1,be=2,je=3,ue=4,Oe=1,pe=2,he=3,me=0,_e=1,fe=2,ge=100,Ee=110,xe=200,Ne=300,Se=1,Te=2,ve=3,Re=2,ye=1,Ce=2,Ae=3,Le=5,we=1,Ie=2,Pe=3,De=4,Me=1,ke=0,Ge=1},709:function(e,t){},710:function(e,t){},715:function(e,t){},717:function(e,t){},724:function(e,t){},743:function(e,t){},76:function(e,t,a){"use strict";var n=a(2),s=a(1),c=a.n(s),l=a(8),r=(a(9),a(360)),i=a(134),o=a(99),d=a(202),b=a(364),j=a(156),u=a(142),O=a(552),p=a(172),h=a(21),m=a(7),_=a(10),f=a(0);const g={tree:{base:{backgroundColor:"#fff",fontSize:"12px",color:"#000",margin:0,padding:0,listStyle:"none"},node:{base:{position:"relative",padding:0},link:{position:"relative",cursor:"pointer",display:"flex",alignItems:"center",height:"40px",padding:"0 10px",color:"#000",textDecoration:"none",fontSize:"12px"},toggle:{base:{position:"relative",display:"inline-block",verticalAlign:"middle",marginRight:8,height:10,width:10,flexShrink:0},wrapper:{position:"absolute",top:"50%",left:"50%",margin:"-5px 0 0 -5px",height:10,width:10},height:10,width:10,arrow:{fill:"#333",strokeWidth:0}},header:{base:{display:"flex",alignItems:"center",verticalAlign:"middle",color:"#000",width:"100%"},title_wrapper:{borderRadius:"8px",display:"flex",alignItems:"center",padding:"5px 10px",position:"relative"},title:{marginLeft:"5px",fontSize:"12px",fontFamily:"S-CoreDream-Regu"}},subtree:{listStyle:"none",paddingLeft:19,borderLeft:"1px solid #ccc"},loading:{color:"#888"}}}},E=c.a.memo((e=>{let{data:t,onToggle:a,style:n,customDecorators:s}=e;return Object(f.jsx)(r.Treebeard,{data:t,onToggle:a,style:n,decorators:s})})),x={name:"",toggled:!0},N=(e,t,a)=>{if(!e)return e;const s=Object(n.a)({},e);return s.children&&(s.children=s.children.map((e=>N(e,t,a)))),s.fid===t&&(s.toggled=a),s},S=c.a.memo((function(e){const{node:t,style:a,useCheckBox:c,useRemove:l,useApproveLock:r,fid:o,checks:p,setChecks:g,fnOnClickHandler:E,fnCreateFolder:x,fnRemoveFolder:N,fnOnClickAction:S,color:T}=e,v=t.fid===o,[R,y]=Object(s.useState)(t.name||"");let C="org-folder-1";switch(null===t||void 0===t?void 0:t.org_type){case m.cb:C="partner-folder-1";break;case m.bb:C="partnership-folder-1";break;case m.Z:C="collabo-folder-1";break;default:C="org-folder-1"}if(t.editing)return Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)(i.a,{sx:{flexGrow:1,display:"flex",gap:10,marginLeft:5},children:Object(f.jsx)(d.a,{className:"",type:"text",fullWidth:!0,value:R,variant:"outlined",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation()},onChange:e=>{y(e.target.value),e.stopPropagation()},onKeyDown:e=>{"Enter"===e.key&&x(t.parent_fid,R),e.stopPropagation()}})}),Object(f.jsx)(i.a,{sx:{flexGrow:1,display:"flex",gap:1,flexDirection:"row",paddingRight:10},children:Object(f.jsx)(b.a,{title:"\ucd94\uac00",arrow:!0,children:Object(f.jsx)(j.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{x(t.parent_fid,R),e.preventDefault(),e.stopPropagation()},children:Object(f.jsx)(u.a,{color:"primary",fontSize:"default",children:"create_new_folder"})})})})]});let A="",L="",w=T;return void 0!==t.osr_type&&(0===t.osr_type?(L="add",w="#065f46"):1===t.osr_type&&(L="move",w="#92400e",A=Object(f.jsx)("span",{className:"old",children:"\uad6c) ".concat(_.a.splitLastDelimiterString(t.before_path))}))),Object(f.jsxs)(i.a,{style:Object(n.a)(Object(n.a)({},a.base),{},{backgroundColor:v?"#e6f7ff":void 0}),onClick:e=>{e.preventDefault(),e.stopPropagation(),E(t)},children:[c?Object(f.jsx)(O.a,{color:"secondary",size:"small",checked:!(null===p||void 0===p||!p[null===t||void 0===t?void 0:t.fid]),onChange:e=>{e.preventDefault(),e.stopPropagation(),g((e=>e[t.fid]?Object.fromEntries(Object.entries(e).filter((e=>{let[a]=e;return a!==String(t.fid)}))):Object(n.a)(Object(n.a)({},e),{},{[t.fid]:!0})))},onClick:e=>{e.preventDefault(),e.stopPropagation()}}):"",Object(f.jsxs)(i.a,{style:a.title_wrapper,className:L,children:[Object(f.jsx)(h.a,{className:"big",type:C,fill:w||"#202020"}),Object(f.jsxs)(i.a,{style:a.title,className:"title",children:[t.name||"",t.code?Object(f.jsxs)("span",{style:{marginLeft:10},children:["[",t.code,"]"]}):Object(f.jsx)(f.Fragment,{})]}),A]}),l?Object(f.jsx)(i.a,{sx:{position:"absolute",flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",right:10,top:"50%",transform:"translateY(-50%)"},children:Object(f.jsx)(b.a,{title:"\uc0ad\uc81c",arrow:!0,children:Object(f.jsx)(j.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{N(t.fid)},children:Object(f.jsx)(h.a,{type:"delete",className:"",fill:"#575757"})})})}):"",r?Object(f.jsx)(i.a,{sx:{position:"absolute",flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",right:10,top:"50%",transform:"translateY(-50%)"},children:Object(f.jsx)(b.a,{title:0===t.manage_type?"\ud574\uc81c":"\uc7a0\uae08",arrow:!0,children:Object(f.jsx)(j.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{S(t)},children:0===t.manage_type?Object(f.jsx)(u.a,{className:"",children:"lock_open"}):Object(f.jsx)(u.a,{className:"",children:"lock"})})})}):""]})}),((e,t)=>e.node===t.node&&e.fid===t.fid&&e.checks===t.checks));t.a=e=>{let{orgs:t,expandedFids:a,setExpandedFids:c,isPartner:d,isPartnership:b,fid:j,useAdd:u,useRemove:O,useCheckBox:h,useApproveLock:m,useExpand:_,checks:T,setChecks:v,fnIsChangeRow:R,fnOnClickHandler:y,fnCreateFolder:C,fnRemoveFolder:A,fnOnClickAction:L,fnOnClickCreate:w,color:I}=e;const[P,D]=Object(s.useState)(x),[M,k]=Object(s.useState)(null),[G,U]=Object(s.useState)(-1),[F,W]=Object(s.useState)(!1),{t:H}=Object(p.a)("docbase"),z=(Object(l.b)(),e=>{if(!e)return{};const t=Object(n.a)(Object(n.a)({},e),{},{toggled:!!a&&a.has(e.fid)});return e.children&&(t.children=e.children.map(z)),t});Object(s.useEffect)((()=>{U(j),G!==j&&B()}),[j]);const B=()=>{const e=t;if(e){let t;Array.isArray(e)?t=e:e.children&&Array.isArray(e.children)&&(t=e.children),t&&D(t.map(z))}};Object(s.useEffect)((()=>{B()}),[t]);const K=e=>{let t=!0;if("function"===typeof R&&(t=R()),t){const t=G===e.fid?-1:e.fid;U(t),y(t),k(-1===t?null:e)}},Y=Object(s.useCallback)(((e,t)=>{null===c||void 0===c||c((a=>{const n=new Set(a);return t?n.add(e.fid):n.delete(e.fid),n})),D((a=>Array.isArray(a)?a.map((a=>N(a,e.fid,t))):N(a,e.fid,t)))}),[]),V=e=>0!==e.length&&(!!e.editing||!!e.children&&e.children.some(V)),X=Object(n.a)(Object(n.a)({},r.decorators),{},{Header:e=>Object(f.jsx)(S,Object(n.a)(Object(n.a)({},e),{},{useCheckBox:h,useRemove:O,useApproveLock:m,fid:G,checks:T,setChecks:v,fnOnClickHandler:K,fnCreateFolder:C,fnRemoveFolder:A,fnOnClickAction:L,color:I}))});return Object(f.jsxs)("div",{className:"org-tree-root",style:{padding:"0 20px"},children:[Object(f.jsxs)(i.a,{style:{display:"flex",flexDirection:"row"},children:[Object(f.jsx)(i.a,{children:_?Object(f.jsx)(o.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",style:{width:"auto"},onClick:()=>{(e=>{const t=a=>{const s=Object(n.a)(Object(n.a)({},a),{},{toggled:e});return s.children&&(s.children=s.children.map(t)),s};D((e=>Array.isArray(e)?e.map(t):t(e)))})(!F),W(!F)},children:H(F?"COLLAPSE_ALL":"EXPAND_ALL")}):Object(f.jsx)(f.Fragment,{})}),Object(f.jsx)(i.a,{style:{marginLeft:"auto"},children:u?Object(f.jsx)(o.a,{variant:"contained",color:"secondary",type:"button",style:{width:"auto"},onClick:()=>{if("function"===typeof w)return void w(G);if(V(P))return;const e={fid:Date.now(),parent_fid:G&&G>=0?G:0,name:"",toggled:!1,editing:!0,checked:!1},t=a=>{if(a.fid===(null===M||void 0===M?void 0:M.fid)){var s;if(0===((null===(s=a.children)||void 0===s?void 0:s.filter((e=>e.editing)))||[]).length){const t=Object(n.a)({},a);return t.children=[...t.children||[],e],t.toggled=!0,t}}return a.children?Object(n.a)(Object(n.a)({},a),{},{children:a.children.map(t)}):a};D((a=>{if(!M){if(!a||Array.isArray(a)&&0===a.length)return[e];if(0===(Array.isArray(a)?a.filter((e=>e.editing)):[]).length)return Array.isArray(a)?[...a,e]:Object(n.a)(Object(n.a)({},a),{},{children:[...a.children||[],e],toggled:!0})}return Array.isArray(a)?a.map(t):t(a)}))},children:H("NEW_REGISTRATION")}):Object(f.jsx)(f.Fragment,{})})]}),Object(f.jsx)(E,{data:P,onToggle:Y,style:g,customDecorators:X})]})}},86:function(e,t,a){"use strict";a.d(t,"c",(function(){return d})),a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return N}));var n=a(2),s=a(28),c=a(202),l=a(90),r=a(1),i=a.n(r),o=a(0);var d=i.a.memo(Object(l.b)((function(e){const t=s.a.pick(e,["autoComplete","autoFocus","children","className","defaultValue","disabled","FormHelperTextProps","fullWidth","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","variant","color","size"]),{errorMessage:a}=e,l=e.value||"";return Object(o.jsx)(c.a,Object(n.a)(Object(n.a)({},t),{},{onChange:t=>{return a=t,e.setValue(a.currentTarget.value),void(e.onChange&&e.onChange(a));var a},value:l,error:Boolean(!e.isPristine&&e.showRequired||a),helperText:a}))}))),b=a(552),j=a(895),u=a(897),O=a(902);var p=i.a.memo(Object(l.b)((function(e){const t=s.a.pick(e,["checkedIcon","classes","color","disabled","disableRipple","icon","id","indeterminate","indeterminateIcon","inputProps","inputRef","onChange","variant"]),{errorMessage:a,value:c}=e;return Object(o.jsxs)(j.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,children:[Object(o.jsx)(u.a,{control:Object(o.jsx)(b.a,Object(n.a)(Object(n.a)({},t),{},{type:"checkbox",checked:c,onChange:t=>{return a=t,e.setValue(a.target.checked),void(e.onChange&&e.onChange(a));var a}})),label:e.label}),Boolean(a)&&Object(o.jsx)(O.a,{children:a})]})}))),h=a(896),m=a(942);Object(l.b)((function(e){const t=s.a.pick(e,["children","name","onBlur","onChange","onKeyDown","variant","color"]),{errorMessage:a,value:c}=e;return Object(o.jsx)(j.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,children:Object(o.jsxs)(j.a,{component:"fieldset",required:e.required,error:Boolean(a),children:[e.label&&Object(o.jsx)(h.a,{component:"legend",children:e.label}),Object(o.jsx)(m.a,Object(n.a)(Object(n.a)({},t),{},{value:c||null,onChange:(t,a)=>function(t,a){e.setValue(a),e.onChange&&e.onChange(t)}(t,a)})),Boolean(a)&&Object(o.jsx)(O.a,{children:a})]})})}));var _=a(892),f=a(362),g=a(901),E=a(905),x=a(904);var N=i.a.memo(Object(l.b)((function(e){const t=s.a.pick(e,["autoWidth","children","classes","displayEmpty","input","inputProps","MenuProps","multiple","native","onChange","onClose","onOpen","open","renderValue","SelectDisplayProps","value","variant","color"]),{errorMessage:a,value:c}=e;return Object(o.jsxs)(j.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,variant:t.variant,children:[e.label&&Object(o.jsx)(g.a,{htmlFor:e.name,children:e.label}),Object(o.jsx)(x.a,Object(n.a)(Object(n.a)({},t),{},{value:c,onChange:t=>{return a=t,e.setValue(a.target.value),void(e.onChange&&e.onChange(a));var a},input:function(){switch(t.variant){case"outlined":return Object(o.jsx)(E.a,{labelWidth:8*e.label.length,id:e.name});case"filled":return Object(o.jsx)(_.a,{id:e.name});default:return Object(o.jsx)(f.a,{id:e.name})}}()})),Boolean(a)&&Object(o.jsx)(O.a,{children:a})]})}))),S=a(12),T=a(977),v=a(941),R=a(155),y=a(98),C=a(83),A=a(112),L=a(3),w=a(539),I=a(538);const P=["inputRef"],D=Object(y.a)((e=>({root:{"& .fuse-chip-select__input":{color:e.palette.text.primary},"&.standard":{"& $placeholder":{},"& $valueContainer":{paddingTop:4}},"&.filled":{"& $placeholder":{left:12},"& $valueContainer":{paddingTop:24,paddingLeft:12},"& $chip":{border:"1px solid rgba(0, 0, 0, 0.12)"}},"&.outlined":{"& $placeholder":{left:12},"& $valueContainer":{paddingLeft:12,paddingTop:12}}},input:{display:"flex",padding:0,height:"auto",minHeight:56},valueContainer:{display:"flex",flexWrap:"wrap",flex:1,alignItems:"center",paddingBottom:4,paddingTop:12,minHeight:40},chip:{margin:"4px 4px 4px 0"},chipFocused:{backgroundColor:Object(C.emphasize)("light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],.08)},noOptionsMessage:{padding:"".concat(e.spacing(),"px ").concat(e.spacing(2),"px")},singleValue:{fontSize:16},placeholder:{position:"absolute",left:0,fontSize:16,margin:0},paper:{position:"absolute",zIndex:2,marginTop:e.spacing(),left:0,right:0},divider:{height:e.spacing(2)}})));function M(e){let{inputRef:t}=e,a=Object(S.a)(e,P);return Object(o.jsx)("div",Object(n.a)({ref:t},a))}const k={Control:function(e){const t=D();return Object(o.jsx)(c.a,Object(n.a)({fullWidth:!0,className:Object(L.a)(t.root,e.selectProps.textFieldProps.variant),required:e.selectProps.required,error:e.selectProps.error,InputProps:{inputComponent:M,inputProps:Object(n.a)({className:t.input,inputRef:e.innerRef,children:e.children},e.innerProps)}},e.selectProps.textFieldProps))},Menu:function(e){const t=D();return Object(o.jsx)(R.a,Object(n.a)(Object(n.a)({square:!0,className:t.paper},e.innerProps),{},{children:e.children}))},MultiValue:function(e){const t=D();return Object(o.jsx)(T.a,{tabIndex:-1,label:e.children,className:Object(L.a)(t.chip,{[t.chipFocused]:e.isFocused},e.data.class),onDelete:t=>{e.removeProps.onClick(),e.removeProps.onMouseDown(t)}})},NoOptionsMessage:function(e){const t=D();return Object(o.jsx)(A.a,Object(n.a)(Object(n.a)({color:"textSecondary",className:t.noOptionsMessage},e.innerProps),{},{children:e.children}))},Option:function(e){return Object(o.jsx)(v.a,Object(n.a)(Object(n.a)({buttonRef:e.innerRef,selected:e.isFocused,component:"div",style:{fontWeight:e.isSelected?600:400}},e.innerProps),{},{children:e.children}))},Placeholder:function(e){const t=D();return Object(o.jsx)(A.a,Object(n.a)(Object(n.a)({color:"textSecondary",className:t.placeholder},e.innerProps),{},{children:e.children}))},SingleValue:function(e){const t=D();return Object(o.jsx)(A.a,Object(n.a)(Object(n.a)({className:t.singleValue},e.innerProps),{},{children:e.children}))},ValueContainer:function(e){const t=D();return Object(o.jsx)("div",{className:t.valueContainer,children:e.children})}};function G(e){const t=t=>{null===t&&(t=[]),e.onChange&&e.onChange(t)};return"fixed"===e.variant?Object(o.jsx)(w.a,Object(n.a)(Object(n.a)({classNamePrefix:"fuse-chip-select"},e),{},{components:k,onChange:t})):Object(o.jsx)(I.a,Object(n.a)(Object(n.a)({classNamePrefix:"fuse-chip-select"},e),{},{components:k,onChange:t}))}var U=i.a.memo(G);Object(l.b)((function(e){const t=s.a.pick(e,["children","classes","className","defaultValue","disabled","fullWidth","id","label","name","onBlur","onChange","onFocus","placeholder","required","textFieldProps","variant","isMulti","options","errorMessage","color"]),{errorMessage:a,value:c}=e;return Object(o.jsxs)(j.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:Object(L.a)(e.className,"z-10",e.showRequired?"required":"",e.showError?"error":null),variant:t.variant,children:[e.label&&Object(o.jsx)(g.a,{htmlFor:e.name,children:e.label}),Object(o.jsx)(U,Object(n.a)(Object(n.a)({},t),{},{value:c,onChange:(t,a)=>{return n=t,s=a,void(e.multiple?e.setValue(s.map((e=>e.value))):e.setValue(n));var n,s},error:Boolean(!e.isPristine&&e.showRequired||a)})),Boolean(a)&&Object(o.jsx)(O.a,{children:a})]})}))},886:function(e,t,a){"use strict";a.r(t);var n=a(1),s=a.n(n),c=a(45),l=a.n(c),r=(a(579),a(110)),i=a(225);r.a.use(i.e).init({resources:{en:{translation:{"Welcome to React":"Welcome to React and react-i18next"}}},lng:"ko",keySeparator:!1,interpolation:{escapeValue:!1}});var o=r.a,d=(a(581),a(2)),b=a(495),j=a(28),u=a(165);class O{static filterArrayByString(e,t){return""===t?e:(t=t.toLowerCase(),e.filter((e=>this.searchInObj(e,t))))}static searchInObj(e,t){if(!e)return!1;const a=Object.keys(e);for(let n=0;n!("string"!==typeof e||!this.searchInString(e,t))||!("object"!==typeof e||!this.searchInObj(e,t)))),!1}static searchInString(e,t){return e.toLowerCase().includes(t.toLowerCase())}static filterUsersByString(e,t){return""===t?e:(t=t.toLowerCase(),e.filter((e=>this.searchInUsers(e,t))))}static searchInUsers(e,t){return!!e&&!(!this.searchInString(e.user_id,t)&&!this.searchInString(e.name,t))}static filterFoldersByString(e,t){return""===t?e:(t=t.toLowerCase(),e.filter((e=>this.searchInFolders(e,t))))}static searchInFolders(e,t){return!!e&&!!this.searchInString(e.path,t)}static filterFoldersNameByString(e,t){return""===t?e:(t=t.toLowerCase(),e.filter((e=>this.searchInFoldersName(e,t))))}static searchInFoldersName(e,t){return!!e&&!!this.searchInString(e.name,t)}static generateGUID(){function e(){const e=new Uint16Array(1);return window.crypto.getRandomValues(e),e[0].toString(16).padStart(4,"0")}return e()+e()}static toggleInArray(e,t){-1===t.indexOf(e)?t.push(e):t.splice(t.indexOf(e),1)}static handleize(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/\W+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static setRoutes(e,t){let a=[...e.routes];return a=a.map((a=>{let n=e.auth||null===e.auth?e.auth:t||null;n=a.auth||null===a.auth?a.auth:n;const s=j.a.merge({},e.settings,a.settings);return Object(d.a)(Object(d.a)({},a),{},{settings:s,auth:n})})),[...a]}static generateRoutesFromConfigs(e,t){let a=[];return e.forEach((e=>{a=[...a,...this.setRoutes(e,t)]})),a}static findById(e,t){let a,n,s;if(t===e.id)return e;for(a=0;a1&&void 0!==arguments[1]?arguments[1]:[];for(let a=0;a{j.a.isEqual(n,a[s])||(t[s]=j.a.isObject(n)&&j.a.isObject(a[s])?e(n,a[s]):n)}))}(e,t)}static updateNavItem(e,t,a){return e.map((e=>e.id===t?j.a.merge({},e,a):e.children?j.a.merge({},e,{children:this.updateNavItem(e.children,t,a)}):j.a.merge({},e)))}static removeNavItem(e,t){return e.map((e=>e.id===t?null:e.children?j.a.merge({},j.a.omit(e,["children"]),{children:this.removeNavItem(e.children,t)}):j.a.merge({},e))).filter((e=>e))}static prependNavItem(e,t,a){return a?e.map((e=>e.id===a&&e.children?{_item:e,children:[t,...e.children]}:e.children?j.a.merge({},e,{children:this.prependNavItem(e.children,t,a)}):j.a.merge({},e))):[t,...e]}static appendNavItem(e,t,a){return a?e.map((e=>e.id===a&&e.children?{_item:e,children:[...e.children,t]}:e.children?j.a.merge({},e,{children:this.appendNavItem(e.children,t,a)}):j.a.merge({},e))):[...e,t]}static hasPermission(e,t){return null===e||void 0===e||(0===e.length?!t||0===t.length:t&&Array.isArray(t)?e.some((e=>t.indexOf(e)>=0)):e.includes(t))}}O.EventEmitter=class{constructor(){this.events={}}_getEventListByName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=new Set),this.events[e]}on(e,t){this._getEventListByName(e).add(t)}once(e,t){const a=this,n=function(){a.removeListener(e,n);for(var s=arguments.length,c=new Array(s),l=0;l1?t-1:0),n=1;n{let{fuse:t}=e;return t.dialog.state})),n=Object(m.c)((e=>{let{fuse:t}=e;return t.dialog.options}));return Object(g.jsx)(v.a,Object(d.a)({open:a,onClose:e=>t(Object(R.a)()),"aria-labelledby":"fuse-dialog-title",classes:{paper:"rounded-8"}},n))},C=a(191),A=a(190),L=a(382),w=a(142),I=a(156),P=a(938),D=a(891),M=a(98),k=a(112),G=a(3),U=a(9);const F=Object(M.a)((e=>({root:{},success:{backgroundColor:C.a[600],color:"#FFFFFF"},error:{backgroundColor:e.palette.error.dark,color:e.palette.getContrastText(e.palette.error.dark)},info:{backgroundColor:A.a[600],color:"#FFFFFF"},warning:{backgroundColor:L.a[600],color:"#FFFFFF"}}))),W={success:"check_circle",warning:"warning",error:"error_outline",info:"info"};function H(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.message.state})),n=Object(m.c)((e=>{let{fuse:t}=e;return t.message.options})),s=F();return Object(g.jsx)(P.a,Object(d.a)(Object(d.a)({},n),{},{open:a,onClose:(e,a)=>{"clickaway"===a&&"/users"===e.view.location.pathname||t(Object(U.b)())},classes:{root:s.root},ContentProps:{variant:"body2",headlineMapping:{body1:"div",body2:"div"}},children:Object(g.jsx)(D.a,{className:Object(G.a)(s[n.variant]),message:Object(g.jsxs)("div",{className:"flex items-center",children:[W[n.variant]&&Object(g.jsx)(w.a,{color:"inherit",children:W[n.variant]}),Object(g.jsx)(k.a,{className:"mx-8",children:n.message})]}),action:[Object(g.jsx)(I.a,{"aria-label":"Close",color:"inherit",onClick:()=>t(Object(U.b)()),children:Object(g.jsx)(w.a,{children:"close"})},"close")]})}))}var z=s.a.memo(H),B=a(26),K=a(32);function Y(e){return Object(g.jsx)(s.a.Suspense,{fallback:Object(g.jsx)(K.a,Object(d.a)({},e.loadingProps)),children:e.children})}Y.defaultProps={loadingProps:{delay:0}};var V=Y,X=a(218),q=a(895),J=a(897),Z=a(896),Q=a(941),$=a(969),ee=a(942),te=a(904),ae=a(943),ne=a(27),se=(a(395),a(220)),ce=a(50),le=a(87),re=a.n(le),ie=a(274),oe=a.n(ie);var de=new class{constructor(){this.sdk={auth0Manage:null},this.login=()=>this.lock?this.lock.show():(console.warn("Auth0 Service didn't initialize, check your configuration"),!1),this.register=()=>this.lock?this.lock.show({initialScreen:"signUp"}):(console.warn("Auth0 Service didn't initialize, check your configuration"),!1),this.handleAuthentication=()=>!!this.lock&&(this.lock.on("authenticated",this.setSession),this.lock.on("authorization_error",(e=>{console.warn("Error: ".concat(e.error,". Check the console for further details."))})),!0),this.onAuthenticated=e=>!!this.lock&&this.lock.on("authenticated",e),this.setSession=e=>{if(e&&e.accessToken&&e.idToken){const t=JSON.stringify(1e3*e.expiresIn+(new Date).getTime());localStorage.setItem("access_token",e.accessToken),localStorage.setItem("id_token",e.idToken),localStorage.setItem("expires_at",t)}},this.logout=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("id_token"),localStorage.removeItem("expires_at"),localStorage.removeItem("auth0.ssodata")},this.isAuthenticated=()=>{if(!this.lock)return!1;const e=JSON.parse(localStorage.getItem("expires_at"));return(new Date).getTime()new Promise(((e,t)=>{const a=this.getTokenData(),{sub:n}=a;re.a.get("",{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.getAccessToken())}}).then((t=>{e(t.data)})).catch((e=>{console.warn("Cannot retrieve user data",e),t(e)}))})),this.updateUserData=e=>{const t=this.getTokenData(),{sub:a}=t,n=JSON.stringify({user_metadata:e});return re.a.patch("",n,{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.getAccessToken())}})},this.getAccessToken=()=>localStorage.getItem("access_token"),this.getIdToken=()=>window.localStorage.getItem("id_token"),this.getTokenData=()=>{const e=this.getIdToken(),t=oe()(e);return t||null}}init(e){this.handleAuthentication(),e(!0)}},be=a(171);a(661);var je={};var ue=new class{constructor(){this.getUserData=e=>!!be.a.apps.length&&new Promise(((t,a)=>{this.db.ref("users/".concat(e)).once("value").then((e=>{const a=e.val();t(a)}))})),this.updateUserData=e=>!!be.a.apps.length&&this.db.ref("users/".concat(e.uid)).set(e),this.onAuthStateChanged=e=>{this.auth&&this.auth.onAuthStateChanged(e)},this.signOut=()=>{this.auth&&this.auth.signOut()}}init(e){0!==Object.entries(je).length||je.constructor!==Object?be.a.apps.length||(be.a.initializeApp(je),this.db=be.a.database(),this.auth=be.a.auth(),e(!0)):e(!1)}};class Oe extends p.EventEmitter{constructor(){super(...arguments),this.setInterceptors=()=>{re.a.interceptors.response.use((e=>e),(e=>new Promise(((t,a)=>{throw 401===e.response.status&&e.config&&!e.config.__isRetryRequest&&(this.emit("onAutoLogout","Invalid access_token"),this.setSession(null)),e}))))},this.handleAuthentication=()=>{const e=this.getAccessToken();e?this.isAuthTokenValid(e)?(this.setSession(e),this.emit("onAutoLogin",!0)):(this.setSession(null),this.emit("onAutoLogout","access_token expired")):this.emit("onNoAccessToken")},this.createUser=e=>new Promise(((t,a)=>{re.a.post("/api/auth/register",e).then((e=>{e.data.user?(this.setSession(e.data.access_token),t(e.data.user)):a(e.data.error)}))})),this.signInWithEmailAndPassword=(e,t)=>new Promise(((a,n)=>{re.a.get("/api/auth",{data:{email:e,password:t}}).then((e=>{e.data.user?(this.setSession(e.data.access_token),a(e.data.user)):n(e.data.error)}))})),this.signInWithToken=()=>new Promise(((e,t)=>{re.a.get("/api/auth/access-token",{data:{access_token:this.getAccessToken()}}).then((a=>{a.data.user?(this.setSession(a.data.access_token),e(a.data.user)):(this.logout(),t(new Error("Failed to login with token.")))})).catch((e=>{this.logout(),t(new Error("Failed to login with token."))}))})),this.updateUserData=e=>re.a.post("/api/auth/user/update",{user:e}),this.setSession=e=>{e?(localStorage.setItem("jwt_access_token",e),re.a.defaults.headers.common.Authorization="Bearer ".concat(e)):(localStorage.removeItem("jwt_access_token"),delete re.a.defaults.headers.common.Authorization)},this.logout=()=>{this.setSession(null)},this.isAuthTokenValid=e=>{if(!e)return!1;const t=oe()(e),a=Date.now()/1e3;return!(t.expwindow.localStorage.getItem("jwt_access_token")}init(){this.setInterceptors(),this.handleAuthentication()}}var pe=new Oe;const he=e=>async(t,a)=>{se.a.location.state={redirectUrl:e.redirectUrl},t(Ee(e))},me=e=>async(t,a)=>{const n=a().auth.user,s=j.a.merge({},n,{data:{settings:e}});return t(_e(s)),t(he(s))},_e=e=>async(t,a)=>{if(e.role&&0!==e.role.length)switch(e.from){case"firebase":ue.updateUserData(e).then((()=>{t(Object(U.d)({message:"User data saved to firebase"}))})).catch((e=>{t(Object(U.d)({message:e.message}))}));break;case"auth0":de.updateUserData({settings:e.data.settings,shortcuts:e.data.shortcuts}).then((()=>{t(Object(U.d)({message:"User data saved to auth0"}))})).catch((e=>{t(Object(U.d)({message:e.message}))}));break;default:pe.updateUserData(e).then((()=>{t(Object(U.d)({message:"User data saved with api"}))})).catch((e=>{t(Object(U.d)({message:e.message}))}))}},fe={role:[],data:{displayName:"John Doe",photoURL:"assets/images/avatars/Velazquez.jpg",email:"johndoe@withinpixels.com",shortcuts:["calendar","mail","contacts","todo"]}},ge=Object(ne.d)({name:"auth/user",initialState:fe,reducers:{setUser:(e,t)=>t.payload,userLoggedOut:(e,t)=>fe},extraReducers:{}}),{setUser:Ee,userLoggedOut:xe}=ge.actions;var Ne=ge.reducer;const Se=Object(M.a)((e=>({root:{},formControl:{margin:"6px 0",width:"100%","&:last-child":{marginBottom:0}},group:{},formGroupTitle:{position:"absolute",top:-10,left:8,fontWeight:600,padding:"0 4px",backgroundColor:e.palette.background.paper},formGroup:{position:"relative",border:"1px solid ".concat(e.palette.divider),borderRadius:2,padding:"12px 12px 0 12px",margin:"24px 0 16px 0","&:first-of-type":{marginTop:16}}})));function Te(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user})),n=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.themes})),s=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current})),c=Se(e);function l(e){const n=j.a.set(j.a.merge({},s),e.target.name,"checkbox"===e.target.type?e.target.checked:e.target.value);"layout.style"===e.target.name&&e.target.value!==s.layout.style&&(n.layout.config={}),"guest"===a.role?t(Object(ce.h)(n)):t(me(n))}const r=e=>{let{value:t,name:a,handleThemeChange:s}=e;return Object(g.jsx)(te.a,{className:"w-full rounded-8 h-40 overflow-hidden my-8",value:t,onChange:s,name:a,variant:"outlined",style:{backgroundColor:n[t].palette.background.default,color:"light"===n[t].palette.type?"#000000":"#ffffff"},children:Object.entries(n).filter((e=>{let[t,n]=e;return!("theme.main"===a&&("mainThemeDark"===t||"mainThemeLight"===t))})).map((e=>{let[t,a]=e;return Object(g.jsxs)(Q.a,{value:t,className:"m-8 mt-0 rounded-lg",style:{backgroundColor:a.palette.background.default,color:"light"===a.palette.type?"#000000":"#ffffff",border:"1px solid ".concat("light"===a.palette.type?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)")},children:[j.a.startCase(t),Object(g.jsxs)("div",{className:"flex w-full h-8 block absolute bottom-0 left-0 right-0",style:{borderTop:"1px solid ".concat("light"===a.palette.type?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)")},children:[Object(g.jsx)("div",{className:"w-1/4 h-8",style:{backgroundColor:a.palette.primary.main?a.palette.primary.main:a.palette.primary[500]}}),Object(g.jsx)("div",{className:"w-1/4 h-8",style:{backgroundColor:a.palette.secondary.main?a.palette.secondary.main:a.palette.secondary[500]}}),Object(g.jsx)("div",{className:"w-1/4 h-8",style:{backgroundColor:a.palette.error.main?a.palette.error.main:a.palette.error[500]}}),Object(g.jsx)("div",{className:"w-1/4 h-8",style:{backgroundColor:a.palette.background.paper}})]})]},t)}))})},i=()=>Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Style"}),Object(g.jsx)(ee.a,{"aria-label":"Layout Style",name:"layout.style",className:c.group,value:s.layout.style,onChange:e=>l(e),children:Object.entries(X.a).map((e=>{let[t,a]=e;return Object(g.jsx)(J.a,{value:t,control:Object(g.jsx)($.a,{}),label:a.title},t)}))})]}),o=()=>Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Direction"}),Object(g.jsxs)(ee.a,{"aria-label":"Layout Style",name:"direction",className:c.group,value:s.direction,onChange:e=>l(e),row:!0,children:[Object(g.jsx)(J.a,{value:"rtl",control:Object(g.jsx)($.a,{}),label:"RTL"},"rtl"),Object(g.jsx)(J.a,{value:"ltr",control:Object(g.jsx)($.a,{}),label:"LTR"},"ltr")]})]}),d=(e,t)=>Object.entries(e).map((e=>{let[a,n]=e;const r=t?"".concat(t,".").concat(a):a;switch(n.type){case"radio":return Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:n.title}),Object(g.jsx)(ee.a,{"aria-label":n.title,name:"layout.config.".concat(r),className:c.group,value:j.a.get(s.layout.config,r),onChange:e=>l(e),row:n.options.length<4,children:n.options.map((e=>Object(g.jsx)(J.a,{value:e.value,control:Object(g.jsx)($.a,{}),label:e.name},e.value)))})]},r);case"switch":return Object(g.jsx)(q.a,{component:"fieldset",className:c.formControl,children:Object(g.jsx)(J.a,{classes:{},control:Object(g.jsx)(ae.a,{name:"layout.config.".concat(r),checked:j.a.get(s.layout.config,r),onChange:e=>l(e),"aria-label":n.title}),label:Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:n.title})})},r);case"group":return Object(g.jsxs)("div",{className:c.formGroup,children:[Object(g.jsx)(k.a,{className:c.formGroupTitle,color:"textSecondary",children:n.title}),d(n.children,a)]},r);default:return""}}));function b(){const{form:e}=X.a[s.layout.style];return d(e)}return Object(g.jsxs)("div",{className:c.root,children:[Object(g.jsxs)("div",{className:c.formGroup,children:[Object(g.jsx)(k.a,{className:c.formGroupTitle,color:"textSecondary",children:"Layout"}),Object(g.jsx)(i,{}),Object(g.jsx)(b,{}),Object(g.jsx)(k.a,{className:"my-16 text-12 italic",color:"textSecondary",children:"*Not all option combinations are available"})]}),Object(g.jsxs)("div",{className:Object(G.a)(c.formGroup,"pb-16"),children:[Object(g.jsx)(k.a,{className:c.formGroupTitle,color:"textSecondary",children:"Theme"}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Main"}),Object(g.jsx)(r,{value:s.theme.main,name:"theme.main",handleThemeChange:e=>l(e)})]}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Navbar"}),Object(g.jsx)(r,{value:s.theme.navbar,name:"theme.navbar",handleThemeChange:e=>l(e)})]}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Toolbar"}),Object(g.jsx)(r,{value:s.theme.toolbar,name:"theme.toolbar",handleThemeChange:e=>l(e)})]}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Footer"}),Object(g.jsx)(r,{value:s.theme.footer,name:"theme.footer",handleThemeChange:e=>l(e)})]})]}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Custom Scrollbars"}),Object(g.jsx)(ae.a,{checked:s.customScrollbars,onChange:e=>l(e),"aria-label":"Custom Scrollbars",name:"customScrollbars"})]}),Object(g.jsxs)(q.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(Z.a,{component:"legend",className:"text-14",children:"Animations"}),Object(g.jsx)(ae.a,{checked:s.animations,onChange:e=>l(e),"aria-label":"Animations",name:"animations"})]}),Object(g.jsx)(o,{})]})}var ve=s.a.memo(Te),Re=a(187),ye=a(547),Ce=a(59);const Ae=Object(M.a)((e=>({root:{}})));function Le(e){let{theme:t,className:a,id:n,onSelect:s}=e;const c=Object(Ce.a)(),l=t.palette.primary[500]?t.palette.primary[500]:t.palette.primary.main,r=c.palette.getContrastText(l),i=t.palette.secondary[500]?t.palette.secondary[500]:t.palette.secondary.main,o=c.palette.getContrastText(i),d=t.palette.background.default,b=c.palette.getContrastText(t.palette.background.default),j=t.palette.background.paper,u=c.palette.getContrastText(t.palette.background.paper);return Object(g.jsxs)("div",{className:Object(G.a)(a,"mb-8"),children:[Object(g.jsxs)("button",{className:Object(G.a)("w-full text-left rounded-6 relative font-500 shadow hover:shadow-md transition-shadow cursor-pointer overflow-hidden"),style:{backgroundColor:d,color:b},onClick:()=>s(n),type:"button",children:[Object(g.jsxs)("div",{className:"w-full h-56 px-8 pt-8 relative",style:{backgroundColor:l,color:r},children:[Object(g.jsx)("span",{className:"text-12 opacity-75",children:"Header (Primary)"}),Object(g.jsx)("div",{className:"flex items-center justify-center w-20 h-20 rounded-full absolute bottom-0 right-0 -mb-10 shadow text-10 mr-4",style:{backgroundColor:i,color:o},children:Object(g.jsx)("span",{className:"opacity-75",children:"S"})})]}),Object(g.jsx)("div",{className:"pl-8 pr-28 -mt-24 w-full",children:Object(g.jsx)("div",{className:"w-full h-96 rounded-4 relative shadow p-8",style:{backgroundColor:j,color:u},children:Object(g.jsx)("span",{className:"text-12 opacity-75",children:"Paper"})})}),Object(g.jsx)("div",{className:"px-8 py-8 w-full",children:Object(g.jsx)("span",{className:"text-12 opacity-75",children:"Background"})})]}),Object(g.jsx)(k.a,{className:"font-bold w-full text-center mt-12",children:n})]})}function we(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user})),n=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.themes})),s=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current})),c=Ae(e);return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"flex flex-wrap w-full -mx-8",children:Object.entries(n).filter((e=>{let[t,a]=e;return!("mainThemeDark"===t||"mainThemeLight"===t)})).map((e=>{let[n,c]=e;return Object(g.jsx)("div",{className:"w-1/2 p-8",children:Object(g.jsx)(Le,{id:n,theme:c,onSelect:e=>function(e){const n=Object(d.a)(Object(d.a)({},s),{},{theme:{main:e,navbar:e,toolbar:e,footer:e}});"guest"===a.role?t(Object(ce.h)(n)):t(me(n))}(e)})},n)}))})})}var Ie=s.a.memo(we),Pe=a(354);const De=s.a.forwardRef((function(e,t){const a=Object(Ce.a)();return Object(g.jsx)(ye.a,Object(d.a)({direction:"ltr"===a.direction?"left":"right",ref:t},e))})),Me=Object(M.a)((e=>({buttonWrapper:{position:"absolute",right:0,top:160,display:"flex",flexDirection:"column",items:"center",justify:"center",overflow:"hidden",opacity:.9,padding:0,borderTopLeftRadius:6,borderBottomLeftRadius:6,borderBottomRightRadius:0,borderTopRightRadius:0,zIndex:999,color:e.palette.getContrastText(Re.a[500]),backgroundColor:Re.a[500],"&:hover":{backgroundColor:Re.a[500],opacity:1}},button:{minWidth:40,width:40,height:40,margin:0},settingsButton:{"& $buttonIcon":{animation:"$rotating 3s linear infinite"}},schemesButton:{},"@keyframes rotating":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},buttonIcon:{fontSize:20},dialogPaper:{position:"fixed",width:380,maxWidth:"90vw",backgroundColor:e.palette.background.paper,top:0,height:"100%",minHeight:"100%",bottom:0,right:0,margin:0,zIndex:1e3,borderRadius:0}})));function ke(){const e=Me(),t=Object(Ce.a)(),[a,s]=Object(n.useState)(!1),c={onSwipedLeft:()=>a&&"rtl"===t.direction&&i(),onSwipedRight:()=>a&&"ltr"===t.direction&&i()},l=Object(Pe.useSwipeable)(c),r=Object(Pe.useSwipeable)(c),i=()=>{s(!1)};return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(v.a,Object(d.a)(Object(d.a)({TransitionComponent:De,"aria-labelledby":"settings-panel","aria-describedby":"settings",open:"settings"===a,keepMounted:!0,onClose:i,BackdropProps:{invisible:!0},classes:{paper:Object(G.a)(e.dialogPaper,"shadow-lg")}},l),{},{children:Object(g.jsxs)(B.a,{className:"p-16 sm:p-32",children:[Object(g.jsx)(I.a,{className:"fixed top-0 ltr:right-0 rtl:left-0 z-10",onClick:i,children:Object(g.jsx)(w.a,{children:"close"})}),Object(g.jsx)(k.a,{className:"mb-32",variant:"h6",children:"Theme Settings"}),Object(g.jsx)(ve,{})]})})),Object(g.jsx)(v.a,Object(d.a)(Object(d.a)({TransitionComponent:De,"aria-labelledby":"schemes-panel","aria-describedby":"schemes",open:"schemes"===a,keepMounted:!0,onClose:i,BackdropProps:{invisible:!0},classes:{paper:Object(G.a)(e.dialogPaper,"shadow-lg")}},r),{},{children:Object(g.jsxs)(B.a,{className:"p-16 sm:p-32",children:[Object(g.jsx)(I.a,{className:"fixed top-0 ltr:right-0 rtl:left-0 z-10",onClick:i,children:Object(g.jsx)(w.a,{children:"close"})}),Object(g.jsx)(k.a,{className:"mb-32",variant:"h6",children:"Theme Color Schemes"}),Object(g.jsx)(k.a,{className:"mb-24 text-12 italic text-justify",color:"textSecondary",children:"* Selected color scheme will be applied to all theme layout elements (navbar, toolbar, etc.). You can also select a different color scheme for each layout element at theme settings."}),Object(g.jsx)(Ie,{})]})}))]})}var Ge=s.a.memo(ke),Ue=a(945),Fe=a(944),We=a(898);function He(e){const t=Object(m.c)(ce.d);return Object(g.jsx)(Fe.a,{theme:t,children:Object(g.jsx)(Ue.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(We.a,{className:"min-h-48 md:min-h-64 px-8 sm:px-12 py-0 flex items-center overflow-x-auto",children:Object(g.jsx)(k.a,{children:"Footer"})})})})}var ze=s.a.memo(He);function Be(){return Object(g.jsx)(g.Fragment,{})}var Ke=s.a.memo(Be),Ye=a(972),Ve=a(971),Xe=a(900),qe=a(946),Je=a(364);const Ze=Object(ne.d)({name:"navbar",initialState:{foldedOpen:!1,mobileOpen:!1},reducers:{navbarToggleFolded:(e,t)=>{e.foldedOpen=!e.foldedOpen},navbarOpenFolded:(e,t)=>{e.foldedOpen=!0},navbarCloseFolded:(e,t)=>{e.foldedOpen=!1},navbarToggleMobile:(e,t)=>{e.mobileOpen=!e.mobileOpen},navbarOpenMobile:(e,t)=>{e.mobileOpen=!0},navbarCloseMobile:(e,t)=>{e.mobileOpen=!1}}}),{navbarToggleFolded:Qe,navbarOpenFolded:$e,navbarCloseFolded:et,navbarToggleMobile:tt,navbarOpenMobile:at,navbarCloseMobile:nt}=Ze.actions;var st=Ze.reducer;const ct=Object(M.a)((e=>({buttonIcon:{fontSize:18,transition:e.transitions.create(["transform"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.short})},mobileButton:{height:40,position:"absolute",zIndex:99,top:12,width:24,borderRadius:38,padding:8,backgroundColor:e.palette.background.paper,transition:e.transitions.create(["background-color","border-radius","width","min-width","padding"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter}),"&:hover":{width:52,paddingLeft:8,paddingRight:8},"&.left":{borderBottomLeftRadius:0,borderTopLeftRadius:0,paddingLeft:4,left:0},"&.right":{borderBottomRightRadius:0,borderTopRightRadius:0,paddingRight:4,right:0,"& $buttonIcon":{transform:"rotate(-180deg)"}}}})));function lt(e){const t=ct(e),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(m.b)();return Object(g.jsx)(Je.a,{title:"Show Navigation",placement:"left"===a.navbar.position?"right":"left",children:Object(g.jsx)(qe.a,{className:Object(G.a)(t.mobileButton,a.navbar.position,e.className),onClick:e=>n(tt()),disableRipple:!0,children:Object(g.jsx)(w.a,{className:t.buttonIcon,color:"action",children:"menu"})})})}lt.defaultProps={};var rt=lt,it=a(940),ot=a(894),dt=a(948),bt=a(10),jt=a(172),ut=a(65),Ot=a(134),pt=a(262);var ht={DASHBOARD:"Dashboard",MANAGEMENT_GROUP:"Management",USER_MANAGEMENT:"User",ORG_MANAGEMENT:"Organization",SHARED_MANAGEMENT:"Shared",SETTING_GROUP:"Setting",RESTORE_SETTING:"Restore",SERVER_SETTING:"Miscellaneus",ACCESSLOG:"Access logs",GLOBAL_SETTING:"Collector",PRIVATE_SETTING:"Collection for each user",WHITE_PROCESS_MANAGEMENT:"White process",OSR_MANAGEMENT:"Synchronizing with the HR Information System",LOGOUT:"Log off",RANSOM_MANAGEMENT:"Ransomware Detection",TAKEOUT_MANAGEMENT:"Takeout Document",SETUP_INFO:"Client",EXPORT_APPROVAL_MANAGEMENT:"Managing the approver",INSTANT_LOG:"Client log",CLIENT_RUNNING_LOG:"Client execution log",DLP_GROUP:"DLP",DLP_CLIENT_INFO:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8 \uc815\ubcf4",DLP_POLICY_SETTING:"DLP \uce74\ud14c\uace0\ub9ac \uc124\uc815",RELEASE_BLOCKING:"DLP \uc784\uc2dc \uc815\ucc45 \uad00\ub9ac",PRINT_LOG:"DLP \ud504\ub9b0\ud2b8 \ub85c\uadf8",CLIENT_ACCESS_LOG:"DLP \uc784\uc2dc\ud574\uc81c \ub85c\uadf8",DLP_GROUP_SETTING:"DLP \uc815\ucc45 \uc124\uc815",CLIENT_MONITORING_LOG:"DLP \ucc28\ub2e8/\uc720\ucd9c \ub85c\uadf8",CLIENT_ALERT_LOG:"DLP \uacbd\uace0 \ub85c\uadf8",DLP_POLICY_GROUP:"DLP \uc815\ucc45 \uad00\ub9ac",DLP_LOG_GROUP:"DLP \ub85c\uadf8",CLIENT_STORAGE_LOG:"DLP \ub9e4\uccb4 \ub85c\uadf8",OFFLINE_DRIVE_MANAGEMENT:"\uc624\ud504\ub77c\uc778\ub4dc\ub77c\uc774\ube0c \uad00\ub9ac",OFFLINE_TAKEOUT_MANAGEMENT:"\uc624\ud504\ub77c\uc778\ub4dc\ub77c\uc774\ube0c \ubc18\ucd9c \ubb38\uc11c",PARTNER_MANAGEMENT:"\ud30c\ud2b8\ub108",PARTNERSHIP_MANAGEMENT:"\ud611\ub825\uc0ac",QV_MANAGEMENT:"\uc5c5\ubb34\uc2dc\uc2a4\ud15c",COLLABORATION_MANAGEMENT:"\ud611\uc5c5",GROUP_POLICY:"\uc815\ucc45",COLLAPSE_CLIENT:"\ud074\ub77c\uc774\uc5b8\ud2b8",COLLAPSE_FOLDERS:"\ud3f4\ub354\uc815\ucc45",COLLAPSE_COLLECTOR:"\uc218\uc9d1\uc815\ucc45",COLLAPSE_WEBLINK:"\uc6f9\ub9c1\ud06c",ITEM_WEBLINK_MANAGEMENT:"\uc6f9\ub9c1\ud06c \uad00\ub9ac",ITEM_WEBLINK_SETTING:"\uc124\uc815",COLLAPSE_ECM:"\ubb38\uc11c\uc911\uc559\ud654",COLLAPSE_RANSOME:"\ub79c\uc12c\uc6e8\uc5b4",COLLAPSE_ETC:"\uae30\ud0c0",ITEM_RESTRICT:"\uc800\uc7a5\uc81c\ud55c\ud30c\uc77c",ITEM_SERVER_INFO:"\uace0\uac1d\uc815\ubcf4",COLLAPSE_SYSTEM_STATUS:"\uc2dc\uc2a4\ud15c \ud604\ud669",COLLAPSE_DOCUMENT_LOG:"\ubb38\uc11c\ub85c\uadf8",FILE_ACCESS_LOG:"File",AUDIT_LOG:"Audit",HOLD_FILES:"Hold files",DUP_MANAGEMENT:"Duplicated documents",COLLAPSE_SECURITY_MANAGEMENT:"\ubcf4\uc548\uad00\ub9ac",SECUREDOCS_MANAGEMENT:"Secure Document",SECUREFOLDERS_MANAGEMENT:"\ubcf4\uc548\ud3f4\ub354",PII_MANAGEMENT:"Detecting PII(Personal Identifiable Information)",IPRANGE:"IP \uc815\ucc45",MANDATORY_APP:"\ud544\uc218 \uc2e4\ud589\ud504\ub85c\uadf8\ub7a8",PARTNER_COMPANY:"\ud611\ub825\uc0ac",PII_POLICY_MANAGEMENT:"\uac1c\uc778\uc815\ubcf4\uac80\ucd9c \ud328\ud134",COLLAPSE_DRM:"\uc554\ud638\ud654",DRM_EXCLUDED:"\uc608\uc678\ucc98\ub9ac",DRM_NON_ENCRYPT:"\ube44\uc554\ud638\ud654\ud30c\uc77c",FOI_MANAGEMENT:"\uad00\uc2ec\ud30c\uc77c",FOLDER_TRANSFER:"\ud3f4\ub354 \uc774\ub3d9"};var mt={DASHBOARD:"\ub300\uc2dc\ubcf4\ub4dc",MANAGEMENT_GROUP:"\uad00\ub9ac",USER_MANAGEMENT:"\uc0ac\uc6a9\uc790",ORG_MANAGEMENT:"\uc870\uc9c1",SHARED_MANAGEMENT:"\uacf5\uc720",RESTORE_SETTING:"\uc790\ub8cc \ubcf5\uc6d0",SERVER_SETTING:"\uae30\ubcf8",ACCESSLOG:"\uc2e4\uc2dc\uac04 \uc0ac\uc6a9 \ub0b4\uc5ed",GLOBAL_SETTING:"\uc218\uc9d1\uae30",PRIVATE_SETTING:"\ub3d9\uae30\ud654 \uc124\uc815",WHITE_PROCESS_MANAGEMENT:"\ubcf4\uc548 \ud504\ub85c\uc138\uc2a4",OSR_MANAGEMENT:"\uc778\uc0ac \uc5f0\ub3d9",LOGOUT:"\ub85c\uadf8\uc544\uc6c3",RANSOM_MANAGEMENT:"\ub79c\uc12c\uc6e8\uc5b4 \ud0d0\uc9c0",TAKEOUT_MANAGEMENT:"\ubc18\ucd9c \ubb38\uc11c",SETUP_INFO:"\ud074\ub77c\uc774\uc5b8\ud2b8",EXPORT_APPROVAL_MANAGEMENT:"\ubc18\ucd9c \uc2b9\uc778\uc790 \uad00\ub9ac",INSTANT_LOG:"\ud074\ub77c\uc774\uc5b8\ud2b8 \ub85c\uadf8",CLIENT_RUNNING_LOG:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uc2e4\ud589 \ub85c\uadf8",DLP_GROUP:"DLP",DLP_CLIENT_INFO:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8 \uc815\ubcf4",DLP_POLICY_SETTING:"DLP \uce74\ud14c\uace0\ub9ac \uc124\uc815",RELEASE_BLOCKING:"DLP \uc784\uc2dc \uc815\ucc45 \uad00\ub9ac",PRINT_LOG:"DLP \ud504\ub9b0\ud2b8 \ub85c\uadf8",CLIENT_ACCESS_LOG:"DLP \uc784\uc2dc\ud574\uc81c \ub85c\uadf8",DLP_GROUP_SETTING:"DLP \uc815\ucc45 \uc124\uc815",CLIENT_MONITORING_LOG:"DLP \ucc28\ub2e8/\uc720\ucd9c \ub85c\uadf8",CLIENT_ALERT_LOG:"DLP \uacbd\uace0 \ub85c\uadf8",DLP_POLICY_GROUP:"DLP \uc815\ucc45 \uad00\ub9ac",DLP_LOG_GROUP:"DLP \ub85c\uadf8",CLIENT_STORAGE_LOG:"DLP \ub9e4\uccb4 \ub85c\uadf8",OFFLINE_DRIVE_MANAGEMENT:"\uc624\ud504\ub77c\uc778\ub4dc\ub77c\uc774\ube0c \uad00\ub9ac",OFFLINE_TAKEOUT_MANAGEMENT:"\uc624\ud504\ub77c\uc778\ub4dc\ub77c\uc774\ube0c \ubc18\ucd9c \ubb38\uc11c",PARTNER_MANAGEMENT:"\ud30c\ud2b8\ub108",PARTNERSHIP_MANAGEMENT:"\ud611\ub825\uc0ac",QV_MANAGEMENT:"\uc5c5\ubb34\uc2dc\uc2a4\ud15c",COLLABORATION_MANAGEMENT:"\ud611\uc5c5",GROUP_POLICY:"\uc815\ucc45",COLLAPSE_CLIENT:"\ud074\ub77c\uc774\uc5b8\ud2b8",COLLAPSE_FOLDERS:"\ud3f4\ub354",COLLAPSE_COLLECTOR:"\uc218\uc9d1",COLLAPSE_WEBLINK:"\uc6f9\ub9c1\ud06c",ITEM_WEBLINK_MANAGEMENT:"\uc6f9\ub9c1\ud06c \uad00\ub9ac",ITEM_WEBLINK_SETTING:"\uc124\uc815",COLLAPSE_ECM:"\ubb38\uc11c\uc911\uc559\ud654",COLLAPSE_RANSOME:"\ub79c\uc12c\uc6e8\uc5b4",COLLAPSE_ETC:"\uae30\ud0c0",ITEM_RESTRICT:"\uc800\uc7a5\uc81c\ud55c\ud30c\uc77c",ITEM_SERVER_INFO:"\uace0\uac1d\uc815\ubcf4",COLLAPSE_SYSTEM_STATUS:"\uc2dc\uc2a4\ud15c \ud604\ud669",COLLAPSE_DOCUMENT_LOG:"\ubb38\uc11c\ub85c\uadf8",FILE_ACCESS_LOG:"\ud30c\uc77c",AUDIT_LOG:"\uac10\uc0ac",HOLD_FILES:"\uc0ac\uc6a9 \uc911 \ubb38\uc11c",DUP_MANAGEMENT:"\uc911\ubcf5\ubb38\uc11c",COLLAPSE_SECURITY_MANAGEMENT:"\ubcf4\uc548\uad00\ub9ac",SECUREDOCS_MANAGEMENT:"\ubcf4\uc548\ubb38\uc11c",SECUREFOLDERS_MANAGEMENT:"\ubcf4\uc548\ud3f4\ub354",PII_MANAGEMENT:"\uac1c\uc778\uc815\ubcf4\uac80\ucd9c\ubb38\uc11c",IPRANGE:"IP \uc815\ucc45",MANDATORY_APP:"\ud544\uc218 \uc2e4\ud589\ud504\ub85c\uadf8\ub7a8",PARTNER_COMPANY:"\ud611\ub825\uc0ac",PII_POLICY_MANAGEMENT:"\uac1c\uc778\uc815\ubcf4\uac80\ucd9c\ud328\ud134",COLLAPSE_DRM:"\uc554\ud638\ud654",DRM_EXCLUDED:"\uc608\uc678\ucc98\ub9ac",DRM_NON_ENCRYPT:"\ube44\uc554\ud638\ud654\ud30c\uc77c",FOI_MANAGEMENT:"\uad00\uc2ec\ud30c\uc77c",FOLDER_TRANSFER:"\ud3f4\ub354 \uc774\ub3d9"};r.a.addResourceBundle("en","navigation",ht),r.a.addResourceBundle("ko","navigation",mt);var _t=[{id:"policy",title:"GROUP_POLICY",translate:"GROUP_POLICY",type:"group",children:[{id:"client",title:"COLLAPSE_CLIENT",translate:"COLLAPSE_CLIENT",type:"collapse",children:[{id:"user_management",title:"USER_MANAGEMENT",translate:"USER_MANAGEMENT",type:"item",icon:"person",url:"/users"},{id:"osr_management",title:"OSR_MANAGEMENT",translate:"OSR_MANAGEMENT",type:"item",icon:"osr",url:"/osr"},{id:"ip_range",title:"IPRANGE",translate:"IPRANGE",type:"item",icon:"ip-range",url:"/ip_groups"},{id:"mandatory_app",title:"MANDATORY_APP",translate:"MANDATORY_APP",type:"item",icon:"mandatory",url:"/mandatory_apps"}]},{id:"folders",title:"COLLAPSE_FOLDERS",translate:"COLLAPSE_FOLDERS",type:"collapse",children:[{id:"org_management",title:"ORG_MANAGEMENT",translate:"ORG_MANAGEMENT",type:"item",icon:"org-folder",url:"/orgs"},{id:"partner_management",title:"PARTNER_MANAGEMENT",translate:"PARTNER_MANAGEMENT",type:"item",icon:"partner-folder-1",url:"/partner"},{id:"collaboration_management",title:"COLLABORATION_MANAGEMENT",translate:"COLLABORATION_MANAGEMENT",type:"item",icon:"collabo-folder-1",url:"/collabo"},{id:"partnership_management",title:"PARTNERSHIP_MANAGEMENT",translate:"PARTNERSHIP_MANAGEMENT",type:"item",icon:"partnership-folder-1",url:"/partnership"},{id:"qv_management",title:"QV_MANAGEMENT",translate:"QV_MANAGEMENT",type:"item",icon:"partner-folder-1",url:"/qv"},{id:"shared_management",title:"SHARED_MANAGEMENT",translate:"SHARED_MANAGEMENT",type:"item",icon:"shared-folder",url:"/shareds"}]},{id:"collector",title:"COLLAPSE_COLLECTOR",translate:"COLLAPSE_COLLECTOR",type:"collapse",children:[{id:"global_setting",title:"GLOBAL_SETTING",translate:"GLOBAL_SETTING",type:"item",icon:"collect-global",url:"/g_collector"},{id:"private_setting",title:"PRIVATE_SETTING",translate:"PRIVATE_SETTING",type:"item",icon:"collect-private",url:"/p_collector"}]},{id:"ecm",title:"COLLAPSE_ECM",translate:"COLLAPSE_ECM",type:"collapse",children:[{id:"white_process_management",title:"WHITE_PROCESS_MANAGEMENT",translate:"WHITE_PROCESS_MANAGEMENT",type:"item",icon:"fact_check",url:"/whiteProcesses"},{id:"takeout_management",title:"TAKEOUT_MANAGEMENT",translate:"TAKEOUT_MANAGEMENT",type:"item",icon:"history_edu",url:"/takeouts"},{id:"export_approval_management",title:"EXPORT_APPROVAL_MANAGEMENT",translate:"EXPORT_APPROVAL_MANAGEMENT",type:"item",icon:"face",url:"/exportApproval"},{id:"offline_drive_management",title:"OFFLINE_DRIVE_MANAGEMENT",translate:"OFFLINE_DRIVE_MANAGEMENT",type:"item",icon:"local_laundry_service",url:"/offlineDrive"},{id:"offline_takeout_management",title:"OFFLINE_TAKEOUT_MANAGEMENT",translate:"OFFLINE_TAKEOUT_MANAGEMENT",type:"item",icon:"description",url:"/offlineTakeouts"}]},{id:"ransome",title:"COLLAPSE_RANSOME",translate:"COLLAPSE_RANSOME",type:"collapse",children:[{id:"white_process_management",title:"WHITE_PROCESS_MANAGEMENT",translate:"WHITE_PROCESS_MANAGEMENT",type:"item",icon:"fact_check",url:"/secureProcesses"},{id:"ransome_management",title:"RANSOM_MANAGEMENT",translate:"RANSOM_MANAGEMENT",type:"item",icon:"ransom",url:"/ransom"},{id:"restore_setting",title:"RESTORE_SETTING",translate:"RESTORE_SETTING",type:"item",icon:"restore",url:"/restore"}]},{id:"drm",title:"COLLAPSE_DRM",translate:"COLLAPSE_DRM",type:"collapse",children:[{id:"drm_excluded",title:"DRM_EXCLUDED",translate:"DRM_EXCLUDED",type:"item",icon:"org-folder",url:"/drm_excluded"},{id:"drm_non_encrypt",title:"DRM_NON_ENCRYPT",translate:"DRM_NON_ENCRYPT",type:"item",icon:"org-folder",url:"/drm_nonencrypts"}]},{id:"etc",title:"SERVER_SETTING",translate:"SERVER_SETTING",type:"collapse",children:[{id:"server_setting",title:"SERVER_SETTING",translate:"SERVER_SETTING",type:"item",icon:"settings",url:"/settings"}]}]},{id:"management_group",title:"MANAGEMENT_GROUP",translate:"MANAGEMENT_GROUP",type:"group",children:[{id:"system_status",title:"COLLAPSE_SYSTEM_STATUS",translate:"COLLAPSE_SYSTEM_STATUS",type:"collapse",children:[{id:"dashboard",title:"DASHBOARD",translate:"DASHBOARD",type:"item",icon:"assessment",url:"/dashboard"},{id:"accesslog",title:"ACCESSLOG",translate:"ACCESSLOG",type:"item",icon:"realtime",url:"/logs"}]},{id:"document_log",title:"COLLAPSE_DOCUMENT_LOG",translate:"COLLAPSE_DOCUMENT_LOG",type:"collapse",children:[{id:"fileAccessLog",title:"FILE_ACCESS_LOG",translate:"FILE_ACCESS_LOG",type:"item",icon:"log-file",url:"/accessLogs"},{id:"auditLog",title:"AUDIT_LOG",translate:"AUDIT_LOG",type:"item",icon:"log-audit",url:"/auditLogs"},{id:"holdFiles",title:"HOLD_FILES",translate:"HOLD_FILES",type:"item",icon:"hold-file",url:"/holdFiles"},{id:"foi_management",title:"FOI_MANAGEMENT",translate:"FOI_MANAGEMENT",type:"item",icon:"dup",url:"/foi"},{id:"dup_management",title:"DUP_MANAGEMENT",translate:"DUP_MANAGEMENT",type:"item",icon:"dup",url:"/dupDocs"}]},{id:"security_management",title:"COLLAPSE_SECURITY_MANAGEMENT",translate:"COLLAPSE_SECURITY_MANAGEMENT",type:"collapse",children:[{id:"securefolders_management",title:"SECUREFOLDERS_MANAGEMENT",translate:"SECUREFOLDERS_MANAGEMENT",type:"item",icon:"secdoc",url:"/securefolders"},{id:"securedocs_management",title:"SECUREDOCS_MANAGEMENT",translate:"SECUREDOCS_MANAGEMENT",type:"item",icon:"secdoc",url:"/securedocs"},{id:"pii_management",title:"PII_MANAGEMENT",translate:"PII_MANAGEMENT",type:"item",icon:"pii",url:"/piiDocs"},{id:"pii_policy_management",title:"PII_POLICY_MANAGEMENT",translate:"PII_POLICY_MANAGEMENT",type:"item",icon:"pii",url:"/piiPolicy"}]},{id:"etc_management",title:"COLLAPSE_ETC",translate:"COLLAPSE_ETC",type:"collapse",children:[{id:"clientRunningLog",title:"CLIENT_RUNNING_LOG",translate:"CLIENT_RUNNING_LOG",type:"item",icon:"desktop_mac",url:"/clientRunningLog"},{id:"instantLog",title:"INSTANT_LOG",translate:"INSTANT_LOG",type:"item",icon:"assignment-late",url:"/instantLogs"},{id:"folderTransfer",title:"FOLDER_TRANSFER",translate:"FOLDER_TRANSFER",type:"item",icon:"folder_outlined",url:"/folderTransfer"}]}]},{id:"dlp_group",title:"DLP_GROUP",translate:"DLP_GROUP",type:"group",children:[{id:"dlp_policy_group",title:"DLP_POLICY_GROUP",translate:"DLP_POLICY_GROUP",type:"collapse",children:[{id:"dlp_client_info",title:"DLP_CLIENT_INFO",translate:"DLP_CLIENT_INFO",type:"item",icon:"laptop_windows",url:"/dlp_client"},{id:"dlp_policy_setting",title:"DLP_POLICY_SETTING",translate:"DLP_POLICY_SETTING",type:"item",icon:"file-cog-outline",url:"/dlp_policy_setup"},{id:"dlp_group_setting",title:"DLP_GROUP_SETTING",translate:"DLP_GROUP_SETTING",type:"item",icon:"application-cog-outline",url:"/dlp_groups"}]},{id:"dlp_log_group",title:"DLP_LOG_GROUP",translate:"DLP_LOG_GROUP",type:"collapse",children:[{id:"releaseBlockings",title:"RELEASE_BLOCKING",translate:"RELEASE_BLOCKING",type:"item",icon:"clipboard-text-clock-outline",url:"/releaseBlockings"},{id:"printLog",title:"PRINT_LOG",translate:"PRINT_LOG",type:"item",icon:"history_edu",url:"/printLogs"},{id:"clientAccessLog",title:"CLIENT_ACCESS_LOG",translate:"CLIENT_ACCESS_LOG",type:"item",icon:"calendar-text",url:"/clientAccessLogs"},{id:"clientStorageLog",title:"CLIENT_STORAGE_LOG",translate:"CLIENT_STORAGE_LOG",type:"item",icon:"calendar-text",url:"/clientStorageLog"},{id:"clientMonitoringLog",title:"CLIENT_MONITORING_LOG",translate:"CLIENT_MONITORING_LOG",type:"item",icon:"calendar-text",url:"/dlpMonitoringLogs"},{id:"dlpClientAlertLog",title:"CLIENT_ALERT_LOG",translate:"CLIENT_ALERT_LOG",type:"item",icon:"alert-octagon-outline",url:"/dlpClientAlertLog"}]}]}];const ft=localStorage.getItem("showDLP"),gt=Object(ne.c)(),Et=gt.getInitialState(),xt=gt.upsertMany(Object(d.a)(Object(d.a)({},Et),{},{showDLP:null!==ft&&JSON.parse(ft)}),_t),{selectAll:Nt,selectIds:St,selectById:Tt}=gt.getSelectors((e=>e.fuse.navigation)),vt=e=>e.fuse.navigation.showDLP,Rt=Object(pt.a)([Nt,e=>{let{i18n:t}=e;return t.language}],((e,t)=>function e(t){return t.map((t=>(t.translate&&t.title&&(t.title=r.a.t("navigation:".concat(t.translate))),t.children&&(t.children=e(t.children)),t)))}(j.a.merge([],e)))),yt=Object(ne.d)({name:"navigation",initialState:xt,reducers:{setNavigation:gt.setAll,resetNavigation:(e,t)=>xt,setDLPMenu:(e,t)=>{e.showDLP=t.payload,localStorage.setItem("showDLP",JSON.stringify(t.payload))}}}),{setNavigation:Ct,resetNavigation:At,setDLPMenu:Lt}=yt.actions;var wt=yt.reducer;const It=Object(M.a)((e=>({root:{display:"flex","& .logo-icon":{marginRight:18,paddingLeft:22},"& .logo-icon>img":{width:"100%","max-width":"54px",margin:"0 auto"},"& .react-badge, & .logo-text":{"& > p":{color:"#fff"},"& > p:nth-child(1)":{fontFamily:"S-CoreDream-Bold",fontSize:21,paddingTop:5,fontWeight:"bold"},"& > p:nth-child(2)":{fontFamily:"S-CoreDream-Medi",fontSize:14}}},reactBadge:{backgroundColor:"#121212",color:"#61DAFB"}})));var Pt=function(){const e=It(),{t:t}=Object(jt.a)("brand"),a=Object(m.b)(),n=Object(m.c)(vt),{sysConfigure:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));return s.a.useEffect((()=>{c&&(c.support_macos_dlp||c.support_windows_dlp||!c.init||a(Lt(!1)))}),[c]),Object(g.jsxs)("div",{className:Object(G.a)(e.root,"items-center w-full"),children:[Object(g.jsx)("div",{className:"inline logo-icon",children:Object(g.jsx)("img",{className:"",src:"assets/brand/logo_menu_top.svg",alt:"logo"})}),Object(g.jsxs)("div",{className:"inline logo-text",children:[Object(g.jsx)("p",{children:t("PRODUCT_NAME")}),Object(g.jsx)("p",{children:t("PRODUCT_ADMIN")})]}),c.support_macos_dlp||c.support_windows_dlp?Object(g.jsx)(Ot.a,{className:Object(G.a)(n?"is-dlp":"","solution-switcher"),id:"coodocToggle",onClick:()=>{a(Lt(!n))},children:Object(g.jsxs)("div",{className:"switcher-track",children:[Object(g.jsx)("div",{className:"switcher-knob"}),Object(g.jsx)("div",{className:"switcher-label ecm",children:"ECM"}),Object(g.jsx)("div",{className:"switcher-label dlp",children:"DLP"})]})}):null]})},Dt=a(952),Mt=a(17),kt=a.n(Mt),Gt=a(527),Ut=a.n(Gt),Ft=a(33),Wt=a.n(Ft),Ht=a(202),zt=a(365),Bt=a(69);var Kt=s.a.forwardRef(((e,t)=>Object(g.jsx)(Bt.b,Object(d.a)({innerRef:t},e)))),Yt=a(361),Vt=a(155),Xt=a(276),qt=a(947),Jt=a(949);const Zt=Object(M.a)((e=>({root:{padding:"0 7px",fontSize:11,fontWeight:600,height:20,minWidth:20,borderRadius:20,display:"flex",alignItems:"center",backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}})));function Qt(e){const t=Zt(e),{className:a,badge:n}=e;return Object(g.jsx)("div",{className:Object(G.a)(t.root,a,"item-badge"),style:{backgroundColor:n.bg,color:n.fg},children:n.title})}Qt.defaultProps={};var $t=s.a.memo(Qt);const ea={};function ta(e,t){ea[e]=t}function aa(e){const t=ea[e.type];return t?Object(g.jsx)(t,Object(d.a)({},e)):null}const na=Object(M.a)((e=>({root:{"& .list-item-text":{padding:"0 0 0 16px"}},button:{color:e.palette.text.primary,minHeight:48,"&.active, &.active:hover, &.active:focus":{backgroundColor:"".concat(e.palette.secondary.main,"!important"),color:"".concat(e.palette.secondary.contrastText,"!important"),"& .list-item-text-primary":{color:"inherit"},"& .list-item-icon":{color:"inherit"}},"&.open":{backgroundColor:"rgba(0,0,0,.08)"}},popper:{zIndex:999},popperClose:{pointerEvents:"none"}})));function sa(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=na(e),[s,l]=Object(n.useState)(!1),{item:r,nestedLevel:i,dense:o}=e,b=Object(Ce.a)(),j=Object(N.a)((e=>{l(e)}),150);if(!Object(n.useMemo)((()=>p.hasPermission(r.auth,t)),[r.auth,t]))return null;function u(e,t){if(!e.children)return!1;for(let a=0;a{let{ref:n}=t;return Object(g.jsx)("div",{ref:n,children:Object(g.jsxs)(ot.a,{button:!0,className:Object(G.a)("list-item",a.button,s&&"open",u(r,e.location.pathname)&&"active"),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-owns":s?"menu-list-grow":null,"aria-haspopup":"true",component:r.url?Kt:"li",to:r.url,role:"button",children:[r.icon&&Object(g.jsx)(w.a,{color:"action",className:"list-item-icon text-16 flex-shrink-0",children:r.icon}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:r.title,classes:{primary:"text-14"}}),r.badge&&Object(g.jsx)($t,{className:"mx-4",badge:r.badge}),Object(g.jsx)(I.a,{disableRipple:!0,className:"w-16 h-16 ltr:ml-4 rtl:mr-4 p-0",color:"inherit",children:Object(g.jsx)(w.a,{className:"text-16 arrow-icon",children:"ltr"===b.direction?"keyboard_arrow_right":"keyboard_arrow_left"})})]})})}}),c.createPortal(Object(g.jsx)(Jt.a,{placement:"ltr"===b.direction?"right":"left",eventsEnabled:s,positionFixed:!0,children:e=>{let{ref:t,style:n,placement:c,arrowProps:l}=e;return s&&Object(g.jsx)("div",{ref:t,style:Object(d.a)(Object(d.a)({},n),{},{zIndex:999+i+1}),"data-placement":c,className:Object(G.a)(a.popper,{[a.popperClose]:!s}),children:Object(g.jsx)(Yt.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(Vt.a,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:r.children&&Object(g.jsx)("ul",{className:Object(G.a)(a.children,"popper-navigation-list",o&&"dense","px-0"),children:r.children.map((e=>Object(g.jsx)(aa,{type:"horizontal-".concat(e.type),item:e,nestedLevel:i+1,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})})}sa.defaultProps={};var ca=Object(f.h)(s.a.memo(sa));const la=Object(M.a)((e=>({root:{color:e.palette.text.primary,"&.active, &.active:hover, &.active:focus":{backgroundColor:"".concat(e.palette.secondary.main,"!important"),color:"".concat(e.palette.secondary.contrastText,"!important"),"& .list-item-text-primary":{color:"inherit"},"& .list-item-icon":{color:"inherit"}},"& .list-item-text":{padding:"0 0 0 16px"},"&.level-0":{height:44,borderRadius:4,"&:hover":{background:"transparent"}}},children:{},popper:{zIndex:999},popperClose:{pointerEvents:"none"}})));function ra(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=la(e),[s,l]=Object(n.useState)(!1),{item:r,nestedLevel:i,dense:o}=e,b=Object(Ce.a)(),j=Object(N.a)((e=>{l(e)}),150);if(!Object(n.useMemo)((()=>p.hasPermission(r.auth,t)),[r.auth,t]))return null;function u(e,t){if(!e.children)return!1;for(let a=0;a{let{ref:n}=t;return Object(g.jsx)("div",{ref:n,children:Object(g.jsxs)(ot.a,{button:!0,className:Object(G.a)("list-item ",a.root,"relative","level-".concat(i),u(r,e.location.pathname)&&"active"),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-owns":s?"menu-list-grow":null,"aria-haspopup":"true",component:r.url?Kt:"li",to:r.url,role:"button",children:[r.icon&&Object(g.jsx)(w.a,{color:"action",className:"list-item-icon text-16 flex-shrink-0",children:r.icon}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:r.title,classes:{primary:"text-14"}}),i>0&&Object(g.jsx)(I.a,{disableRipple:!0,className:"w-16 h-16 ltr:ml-4 rtl:mr-4 p-0",color:"inherit",children:Object(g.jsx)(w.a,{className:"text-16 arrow-icon",children:"ltr"===b.direction?"keyboard_arrow_right":"keyboard_arrow_left"})})]})})}}),c.createPortal(Object(g.jsx)(Jt.a,{placement:0===i?"ltr"===b.direction?"bottom-start":"bottom-end":"ltr"===b.direction?"right":"left",eventsEnabled:s,positionFixed:!0,children:e=>{let{ref:t,style:n,placement:c,arrowProps:l}=e;return s&&Object(g.jsx)("div",{ref:t,style:Object(d.a)(Object(d.a)({},n),{},{zIndex:999+i}),"data-placement":c,className:Object(G.a)(a.popper,{[a.popperClose]:!s}),children:Object(g.jsx)(Yt.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(Vt.a,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:r.children&&Object(g.jsx)("ul",{className:Object(G.a)(a.children,"popper-navigation-list",o&&"dense","px-0"),children:r.children.map((e=>Object(g.jsx)(aa,{type:"horizontal-".concat(e.type),item:e,nestedLevel:i,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})}ra.defaultProps={};var ia=Object(f.h)(s.a.memo(ra));const oa=Object(M.a)((e=>({root:{minHeight:48,"&.active":{backgroundColor:"".concat(e.palette.secondary.main,"!important"),color:"".concat(e.palette.secondary.contrastText,"!important"),pointerEvents:"none","& .list-item-text-primary":{color:"inherit"},"& .list-item-icon":{color:"inherit"}},"& .list-item-icon":{},"& .list-item-text":{padding:"0 0 0 16px"},color:e.palette.text.primary,textDecoration:"none!important"}})));function da(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=oa(e),{item:s}=e;return Object(n.useMemo)((()=>p.hasPermission(s.auth,t)),[s.auth,t])?Object(g.jsxs)(ot.a,{button:!0,component:Kt,to:s.url,activeClassName:"active",className:Object(G.a)("list-item",a.root),exact:s.exact,children:[s.icon&&Object(g.jsx)(w.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:s.icon}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:s.title,classes:{primary:"text-14 list-item-text-primary"}}),s.badge&&Object(g.jsx)($t,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}da.defaultProps={};var ba=Object(f.h)(s.a.memo(da));const ja=Object(M.a)((e=>({root:{minHeight:48,"&.active":{backgroundColor:"".concat(e.palette.secondary.main,"!important"),color:"".concat(e.palette.secondary.contrastText,"!important"),pointerEvents:"none","& .list-item-text-primary":{color:"inherit"},"& .list-item-icon":{color:"inherit"}},"& .list-item-icon":{},"& .list-item-text":{padding:"0 0 0 16px"},color:e.palette.text.primary,textDecoration:"none!important"}})));function ua(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=ja(e),{item:s}=e;return Object(n.useMemo)((()=>p.hasPermission(s.auth,t)),[s.auth,t])?Object(g.jsxs)(ot.a,{button:!0,component:"a",href:s.url,target:s.target?s.target:"_blank",className:Object(G.a)("list-item",a.root),role:"button",children:[s.icon&&Object(g.jsx)(w.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:s.icon}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:s.title,classes:{primary:"text-14 list-item-text-primary"}}),s.badge&&Object(g.jsx)($t,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}ua.defaultProps={};var Oa=Object(f.h)(s.a.memo(ua)),pa=a(950),ha=a(21);const ma=Object(M.a)((e=>({root:{padding:0,"&.open":{backgroundColor:e.palette.primary.dark}},item:t=>({height:46,width:"100%",paddingLeft:30,paddingRight:20,borderTop:0,borderBottom:0,fontSize:14,color:"#8b95a1",backgroundColor:e.palette.primary.dark,"& .arrow-icon":{color:"#8b95a1"},"& .list-item-text":{marginLeft:"24px"}})})));function _a(e,t){return e&&fa(t,e.pathname)}function fa(e,t){if(!e.children)return!1;for(let a=0;a{let{auth:t}=e;return t.user.role})),[a,s]=Object(n.useState)((()=>_a(e.location,e.item))),{item:c,nestedLevel:l}=e,r=ma({itemPadding:l>0?40+16*l:24}),{sysConfigure:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));Object(n.useEffect)((()=>{_a(e.location,e.item)&&(a||s(!0))}),[e.location,e.item]);return Object(n.useMemo)((()=>p.hasPermission(c.auth,t)),[c.auth,t])?(i.escalate_privileges_org_admin||"drm"!==c.id)&&(i.support_macos_dlp||i.support_windows_dlp||"dlp_policy_group"!==c.id&&"dlp_log_group"!==c.id)?Object(g.jsxs)("ul",{className:Object(G.a)(r.root,a&&"open"),children:[Object(g.jsxs)(ot.a,{button:!0,className:Object(G.a)(r.item,"list-item"),onClick:e=>{s(!a)},component:c.url?Kt:"li",to:c.url,role:"button",children:[c.icon&&Object(g.jsx)(ha.a,{className:"list-item-icon",type:c.icon,fill:"#8b95a1"}),Object(g.jsx)(dt.a,{className:"list-item-text list-subheader-text",primary:c.title}),c.badge&&Object(g.jsx)($t,{className:"mx-4",badge:c.badge}),Object(g.jsx)(I.a,{disableRipple:!0,className:"w-40 h-40 -mx-12 p-0 focus:bg-transparent hover:bg-transparent",onClick:e=>e.preventDefault(),children:Object(g.jsx)(w.a,{className:"text-16 arrow-icon",children:a?"expand_less":"expand_more"})})]}),c.children&&Object(g.jsx)(pa.a,{in:a,className:"collapse-children",children:c.children.map((e=>Object(g.jsx)(aa,{type:"vertical-".concat(e.type),item:e,nestedLevel:l+1},e.id)))})]}):Object(g.jsx)(g.Fragment,{}):null}ga.defaultProps={};var Ea=Object(f.h)(s.a.memo(ga)),xa=a(951);const Na=Object(M.a)((e=>({item:e=>({height:60,width:"100%",paddingLeft:30,"& > .list-subheader-text":{fontSize:16,color:"#8b95a1"}})})));function Sa(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(m.b)(),s=Object(Ce.a)(),c=Object(Xe.a)(s.breakpoints.down("md")),{item:l,nestedLevel:r}=e,i=Na({itemPadding:r>0?40+16*r:24});return Object(n.useMemo)((()=>p.hasPermission(l.auth,t)),[l.auth,t])?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(xa.a,{disableSticky:!0,className:Object(G.a)(i.item,"list-subheader flex items-center",!l.url&&"cursor-default"),onClick:e=>c&&a(nt()),component:l.url?Kt:"li",to:l.url,role:"button",children:Object(g.jsx)("span",{className:"list-subheader-text uppercase",children:l.title})}),l.children&&Object(g.jsx)(g.Fragment,{children:l.children.map((e=>Object(g.jsx)(aa,{type:"vertical-".concat(e.type),item:e,nestedLevel:r},e.id)))})]}):null}Sa.defaultProps={};var Ta=Object(f.h)(s.a.memo(Sa));const va=Object(M.a)((e=>({item:t=>({height:40,width:"100%",paddingRight:40,paddingLeft:50,"&.active":{color:"".concat(e.palette.secondary.main,"!important"),pointerEvents:"none",transition:"border-radius .15s cubic-bezier(0.4,0.0,0.2,1)"},"& .list-item-icon":{lineHeight:1,width:20,height:20},"& .list-item-text":{marginLeft:24,"&>span":{fontSize:13}},color:"#dadbdd",cursor:"pointer",textDecoration:"none!important"})})));function Ra(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(m.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),s=Object(m.b)(),c=Object(Ce.a)(),l=Object(Xe.a)(c.breakpoints.down("md")),{item:r,nestedLevel:i,location:o}=e,d=va({itemPadding:i>0?40+16*i:24}),b=Object(n.useMemo)((()=>p.hasPermission(r.auth,t)),[r.auth,t]),{sysConfigure:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));return b?(j.escalate_privileges_org_admin||"drm"!==r.id&&"partner_management"!==r.id&&"partnership_management"!==r.id&&"collaboration_management"!==r.id&&"qv_management"!==r.id)&&(j.use_ip_range||"ip_range"!==r.id)&&(j.mandatory_apps_enabled||"mandatory_app"!==r.id)&&(j.OSR_support||"osr_management"!==r.id)&&(j.dup_detect_enable||"dup_management"!==r.id)&&(j.dataleak_control||j.access_control||j.saving_control||"takeout_management"!==r.id&&"export_approval_management"!==r.id&&"offline_drive_management"!==r.id&&"offline_takeout_management"!==r.id&&"export_approval_management"!==r.id)&&(a.supportDataleakControl||a.supportAccessControl||a.supportSavingControl||"white_process_management"!==r.id)&&(2!==j.menu_support_type||"white_process_management"!==r.id&&"setup_info"!==r.id&&"holdFiles"!==r.id&&"instantLog"!==r.id&&"clientRunningLog"!==r.id)?Object(g.jsxs)(ot.a,{button:!0,component:Kt,to:r.url,activeClassName:"active",className:Object(G.a)(d.item,"list-item"),onClick:e=>l&&s(nt()),exact:r.exact,children:[Object(g.jsx)(ha.a,{className:"list-item-icon",type:r.icon,fill:o.pathname===r.url?"#00cfe2":"#dadbdd"}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:r.title}),r.badge&&Object(g.jsx)($t,{badge:r.badge})]}):Object(g.jsx)(g.Fragment,{}):null}Ra.defaultProps={};var ya=Object(f.h)(s.a.memo(Ra));const Ca=Object(M.a)((e=>({item:t=>({height:40,width:"calc(100% - 16px)",borderRadius:"0 20px 20px 0",paddingRight:12,paddingLeft:t.itemPadding>80?80:t.itemPadding,"&.active":{backgroundColor:"".concat(e.palette.secondary.main,"!important"),color:"".concat(e.palette.secondary.contrastText,"!important"),pointerEvents:"none",transition:"border-radius .15s cubic-bezier(0.4,0.0,0.2,1)","& .list-item-text-primary":{color:"inherit"},"& .list-item-icon":{color:"inherit"}},"& .list-item-icon":{marginRight:16},"& .list-item-text":{},color:e.palette.text.primary,textDecoration:"none!important"})})));function Aa(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),s=Object(Ce.a)(),c=Object(Xe.a)(s.breakpoints.down("md")),{item:l,nestedLevel:r}=e,i=Ca({itemPadding:r>0?40+16*r:24});return Object(n.useMemo)((()=>p.hasPermission(l.auth,a)),[l.auth,a])?Object(g.jsxs)(ot.a,{button:!0,component:"a",href:l.url,target:l.target?l.target:"_blank",className:Object(G.a)(i.item,"list-item"),onClick:e=>c&&t(nt()),role:"button",children:[l.icon&&Object(g.jsx)(w.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:l.icon}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:l.title,classes:{primary:"text-14 list-item-text-primary"}}),l.badge&&Object(g.jsx)($t,{badge:l.badge})]}):null}Aa.defaultProps={};var La=Object(f.h)(s.a.memo(Aa));ta("vertical-group",Ta),ta("vertical-collapse",Ea),ta("vertical-item",ya),ta("vertical-link",La),ta("horizontal-group",ia),ta("horizontal-collapse",ca),ta("horizontal-item",ba),ta("horizontal-link",Oa),ta("vertical-divider",(()=>Object(g.jsx)(Dt.a,{className:"my-16"}))),ta("horizontal-divider",(()=>Object(g.jsx)(Dt.a,{className:"my-16"})));const wa=Object(M.a)((e=>({navigation:{"& .list-item":{"&:hover":{backgroundColor:"dark"===e.palette.type?"rgba(255, 255, 255, 0.05)":"rgba(0,0,0,.04)"},"&:focus:not(.active)":{backgroundColor:"dark"===e.palette.type?"rgba(255, 255, 255, 0.06)":"rgba(0,0,0,.05)"}}},verticalNavigation:{"&.active-square-list":{"& .list-item, & .active.list-item":{width:"100%",borderRadius:"0"}},"&.dense":{"& .list-item":{paddingTop:0,paddingBottom:0,height:32}}},horizontalNavigation:{"&.active-square-list":{"& .list-item":{borderRadius:"0"}},"& .list-item":{padding:"8px 12px 8px 12px",height:40,minHeight:40,"&.level-0":{height:44,minHeight:44},"& .list-item-text":{padding:"0 0 0 8px"}}},"@global":{".popper-navigation-list":{"& .list-item":{padding:"8px 12px 8px 12px",height:40,minHeight:40,"& .list-item-text":{padding:"0 0 0 8px"}},"&.dense":{"& .list-item":{minHeight:32,height:32,"& .list-item-text":{padding:"0 0 0 8px"}}}}},searchBox:{padding:"0 20px"}})));function Ia(e){const t=wa(e),{searchText:a,setSearchText:n,navigation:s,layout:c,active:l,dense:r,className:i}=e,{t:o}=Object(jt.a)("docbase"),d=Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Ot.a,{className:t.searchBox,children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input start-adornment",value:a,placeholder:o("SEARCH"),InputProps:{startAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(Ut.a,{})}),endAdornment:Object(g.jsx)(zt.a,{position:"end",children:a&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>n(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>n(e.target.value)})})}),Object(g.jsx)(it.a,{className:Object(G.a)("navigation whitespace-nowrap",t.navigation,t.verticalNavigation,"active-".concat(l,"-list"),r&&"dense",i),children:s.map((e=>Object(g.jsx)(aa,{type:"vertical-".concat(e.type),item:e,nestedLevel:0},e.id)))})]}),b=Object(g.jsx)(it.a,{className:Object(G.a)("navigation whitespace-nowrap flex p-0",t.navigation,t.horizontalNavigation,"active-".concat(l,"-list"),r&&"dense",i),children:s.map((e=>Object(g.jsx)(aa,{type:"horizontal-".concat(e.type),item:e,nestedLevel:0,dense:r},e.id)))});return s.length>0?"horizontal"===c?b:d:null}Ia.propTypes={navigation:kt.a.array.isRequired},Ia.defaultProps={layout:"vertical"};var Pa=s.a.memo(Ia);function Da(e){const t=Object(m.c)(Rt),a=Object(m.c)(vt),[n,c]=s.a.useState(""),[l,r]=s.a.useState(t);return s.a.useEffect((()=>{const e=JSON.parse(localStorage.getItem("favorites")||"[]"),s=t.filter((e=>{const t=e.id||"";return a?t.startsWith("dlp"):!t.startsWith("dlp")}));let c=[{id:"favorite",title:"\uc990\uaca8\ucc3e\uae30",translate:"FAVORITE_COLLAPSE",type:"collapse",icon:"favorite",children:e}];c=""!==n?[...c,...Ma(s,n)]:[...c,...s],r(c)}),[n,a]),Object(g.jsx)(Pa,{className:Object(G.a)("navigation",e.className),navigation:l,layout:e.layout,dense:e.dense,active:e.active,searchText:n,setSearchText:c})}const Ma=(e,t)=>{const a=[];function n(e){-1!==e.title.indexOf(t)&&a.push(e),Array.isArray(e.children)&&e.children.forEach((e=>n(e)))}return e.forEach((e=>n(e))),a};Da.defaultProps={layout:"vertical"};var ka=s.a.memo(Da);const Ga=Object(M.a)((e=>({root:{"& ::-webkit-scrollbar-thumb":{boxShadow:"inset 0 0 0 20px ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.24)":"rgba(255, 255, 255, 0.24)")},"& ::-webkit-scrollbar-thumb:active":{boxShadow:"inset 0 0 0 20px ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.37)":"rgba(255, 255, 255, 0.37)")},"& > .h-90":{height:90},backgroundColor:e.palette.primary.dark},content:{overflowX:"hidden",overflowY:"auto","-webkit-overflow-scrolling":"touch",backgroundRepeat:"no-repeat",backgroundSize:"100% 40px, 100% 10px",backgroundAttachment:"local, scroll"}})));function Ua(e){const t=Ga();return Object(g.jsxs)("div",{className:Object(G.a)("flex flex-col overflow-hidden h-full",t.root,e.className),children:[Object(g.jsx)(Ue.a,{color:"primary",position:"static",className:"flex flex-row items-center flex-shrink h-90 shadow-0",children:Object(g.jsx)("div",{className:"flex flex-1",children:Object(g.jsx)(Pt,{})})}),Object(g.jsx)(B.a,{className:Object(G.a)(t.content),option:{suppressScrollX:!0},children:Object(g.jsx)(ka,{layout:"vertical"})})]})}var Fa=s.a.memo(Ua);const Wa=300,Ha=Object(M.a)((e=>({productInfoLi:{"padding-top":0,"padding-bottom":0,color:"#5b6672",lineHeight:20,fontSize:10,paddingLeft:30},productInfoTextDiv:{"margin-top":"0","margin-bottom":"0","&>span":{"font-size":"11px",cursor:"default"}},wrapper:{display:"flex",flexDirection:"column",zIndex:4,[e.breakpoints.up("lg")]:{width:Wa,minWidth:Wa}},wrapperFolded:{[e.breakpoints.up("lg")]:{width:64,minWidth:64}},navbar:{display:"flex",overflow:"hidden",flexDirection:"column",flex:"1 1 auto",width:Wa,minWidth:Wa,height:"100%",zIndex:4,transition:e.transitions.create(["width","min-width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"},left:{left:0},right:{right:0},folded:{position:"absolute",width:64,minWidth:64,top:0,bottom:0},foldedAndOpened:{width:Wa,minWidth:Wa},navbarContent:{flex:"1 1 auto"},foldedAndClosed:{"& $navbarContent":{"& .logo-icon":{width:32,height:32},"& .logo-text":{opacity:0},"& .react-badge":{opacity:0},"& .list-item-text, & .arrow-icon, & .item-badge":{opacity:0},"& .list-subheader .list-subheader-text":{opacity:0},"& .list-subheader:before":{content:'""',display:"block",position:"absolute",minWidth:16,borderTop:"2px solid",opacity:.2},"& .collapse-children":{display:"none"},"& .user":{"& .username, & .email":{opacity:0},"& .avatar":{width:40,height:40,top:32,padding:0}},"& .list-item.active":{marginLeft:12,width:40,padding:12,borderRadius:20,"&.square":{borderRadius:0,marginLeft:0,paddingLeft:24,width:"100%"}}}},naviBottom:{backgroundColor:e.palette.primary.dark,paddingBottom:40},item:e=>({height:60,width:"100%",paddingRight:40,paddingLeft:30,"& .list-item-icon":{marginRight:24,width:20,height:20},color:"#dadbdd",cursor:"pointer",borderTop:"1px solid #353b48",textDecoration:"none!important",marginBottom:17})})));function za(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(m.c)(ce.f),s=Object(m.c)((e=>{let{fuse:t}=e;return t.navbar})),c=Object(m.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),l=Ha(),{t:r}=Object(jt.a)("docbase"),{folded:i}=a.navbar,o=i&&!s.foldedOpen,d=i&&s.foldedOpen,b=Object(Ce.a)(),j=Object(Xe.a)(b.breakpoints.down("md"));return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Fe.a,{theme:n,children:Object(g.jsxs)("div",{id:"fuse-navbar",className:Object(G.a)(l.wrapper,i&&l.wrapperFolded),children:[Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsxs)("div",{className:Object(G.a)(l.navbar,l[a.navbar.position],i&&l.folded,d&&l.foldedAndOpened,o&&l.foldedAndClosed),onMouseEnter:()=>o&&t($e()),onMouseLeave:()=>d&&t(et()),style:{backgroundColor:n.palette.background.default},children:[Object(g.jsx)(Fa,{className:l.navbarContent}),Object(g.jsxs)(it.a,{component:"nav",className:Object(G.a)(l.naviBottom),"aria-label":"secondary mailbox folders",children:[Object(g.jsxs)(ot.a,{button:!0,className:Object(G.a)(l.item,"list-item"),onClick:e=>{Object(ut.f)().then((e=>{window.location.href="/admin"})),j&&t(nt())},children:[Object(g.jsx)(w.a,{className:"list-item-icon flex-shrink-0",children:"exit_to_app"}),Object(g.jsx)(dt.a,{className:"list-item-text",primary:r("LOGOUT")})]}),Object(g.jsx)(ot.a,{className:l.productInfoLi,children:Object(g.jsx)(dt.a,{className:l.productInfoTextDiv,primary:"".concat(r("LICENSES_TITLE"))})}),Object(g.jsx)(ot.a,{className:l.productInfoLi,children:Object(g.jsx)(dt.a,{className:l.productInfoTextDiv,primary:"".concat(r("PRODUCTKEY_STATE"),": ").concat(c.validProductKey?r("VALID"):r("INVALID"))})}),Object(g.jsx)(ot.a,{className:l.productInfoLi,children:Object(g.jsx)(dt.a,{className:l.productInfoTextDiv,primary:"".concat(r("USER_LICENSES"),": ").concat(c.userLicenses)})}),Object(g.jsx)(ot.a,{className:l.productInfoLi,children:Object(g.jsx)(dt.a,{className:l.productInfoTextDiv,primary:"".concat(r("EXPIRE_AT"),": ").concat(bt.a.getDateStringToLocalDate(c.expireAt))})}),Object(g.jsx)(ot.a,{className:l.productInfoLi,children:Object(g.jsx)(dt.a,{className:l.productInfoTextDiv,primary:"".concat(r("MAINTENANCE_AT"),": ").concat(bt.a.getDateStringToLocalDate(c.settledExpireMaintenance?c.expireMaintenanceAt:c.expireAt))})})]})]})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ye.a,{anchor:a.navbar.position,variant:"temporary",open:s.mobileOpen,classes:{paper:l.navbar},onClose:()=>t(nt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)(Fa,{className:l.navbarContent})})})]})}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var Ba=s.a.memo(za),Ka=a(121),Ya=a(6),Va=a(11),Xa=a(15);const qa=Object(ne.b)("setting/getProductKeyInfo",(async()=>{const e=await Ya.a.sendPost("/api/getProductKeyInfo",{});return e.result?{validProductKey:e.valid_product_key,expireAt:e.expire_at,userLicenses:e.user_licenses,supportAccessControl:e.support_access_control,supportDataleakControl:e.support_dataleak_control,supportSavingControl:e.support_saving_control,expireMaintenanceAt:e.expire_maintenance_at,settledExpireMaintenance:e.settled_expire_maintenance}:{validProductKey:!1,expireAt:"2021-01-18 23:55:58",userLicenses:0,supportAccessControl:!1,supportDataleakControl:!1,supportSavingControl:!1,expireMaintenanceAt:"2021-01-18 23:55:58",settledExpireMaintenance:!1}})),Ja=Object(ne.d)({name:"initial",initialState:{administrator_setup:!0,product_registered:!0,productInfo:{validProductKey:!0,expireAt:"2021-01-18 23:55:58",userLicenses:0}},reducers:{initialSetupSuccess:(e,t)=>{e.product_registered=t.payload.product_registered,e.administrator_setup=t.payload.administrator_setup},setAdminSetup:(e,t)=>{e.administrator_setup=t.payload},setProductKey:(e,t)=>{e.product_registed=t.payload}},extraReducers:{[qa.fulfilled]:(e,t)=>{e.productInfo.validProductKey=t.payload.validProductKey,e.productInfo.expireAt=t.payload.expireAt,e.productInfo.userLicenses=t.payload.userLicenses,e.productInfo.supportAccessControl=t.payload.supportAccessControl,e.productInfo.supportDataleakControl=t.payload.supportDataleakControl,e.productInfo.supportSavingControl=t.payload.supportSavingControl,e.productInfo.expireMaintenanceAt=t.payload.expireMaintenanceAt,e.productInfo.settledExpireMaintenance=t.payload.settledExpireMaintenance}}}),{initialSetupSuccess:Za,setAdminSetup:Qa,setProductKey:$a}=Ja.actions;var en=Ja.reducer;var tn=Object(Ka.c)({user:Ne,login:ut.b,initial:en});var an=Object(Ka.c)({navigation:wt,settings:ce.a,navbar:st,message:U.a,dialog:R.b});const nn=Object(ne.d)({name:"i18n",initialState:{language:o.options.lng},reducers:{languageChanged:(e,t)=>{e.language=t.payload}}});var sn=nn.reducer,cn=a(34),ln=a(23),rn=a(14),on=a(25);Object(ne.b)("setting/getAccessLog",(async e=>{let{startID:t}=e;const a=await Ya.a.sendPost("/api/todayFileAccessLogs",{start_id:t&&t>0?t:0});return a.result?0!==t&&0===a.last_id?{logs:[],id:t}:{logs:a.logs,id:a.last_id+1}:{logs:[],id:0}}));var dn=Object(ne.d)({name:"etc",initialState:{},reducers:{},extraReducers:{}}).reducer;var bn=Object(Ka.c)({account:cn.f,folder:ln.d,setting:rn.h,system:on.f,etc:dn}),jn=a(106);var un=Object(Ka.c)({file:jn.g});var On=Object(Ka.c)({admin:bn,wc:un});var pn=e=>(t,a)=>{const n=Object(Ka.c)(Object(d.a)({auth:tn,fuse:an,i18n:sn,docbase:On},e));return"auth/user/userLoggedOut"===a.type&&(t=void 0),n(t,a)};const hn=[];const mn=Object(ne.a)({reducer:pn(),middleware:e=>e({immutableCheck:!1,serializableCheck:{ignoredActions:["dialog/openDialog","dialog/closeDialog","message/showMessage","message/hideMessage"]}}).concat(hn),devTools:!1});mn.asyncReducers={};var _n=mn;var fn=(e,t)=>a=>(((e,t)=>{!mn.asyncReducers[e]&&(mn.asyncReducers[e]=t,mn.replaceReducer(pn(mn.asyncReducers)))})(e,t),e=>Object(g.jsx)(a,Object(d.a)({},e)));const gn=Object(ne.d)({name:"quickPanel/state",initialState:!1,reducers:{toggleQuickPanel:(e,t)=>!e,openQuickPanel:(e,t)=>!0,closeQuickPanel:(e,t)=>!1}}),{toggleQuickPanel:En,openQuickPanel:xn,closeQuickPanel:Nn}=gn.actions;var Sn=gn.reducer;const Tn=Object(ne.b)("quickPanel/data/getData",(async()=>{const e=await re.a.get("/api/quick-panel/data");return await e.data}));var vn=Object(ne.d)({name:"quickPanel/data",initialState:null,reducers:{},extraReducers:{[Tn.fulfilled]:(e,t)=>t.payload}}).reducer;var Rn=Object(Ka.c)({data:vn,state:Sn});const yn=Object(M.a)((e=>({root:{width:280}})));function Cn(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{quickPanel:t}=e;return t.state})),n=yn();return Object(g.jsx)(Ye.a,{classes:{paper:n.root},open:a,anchor:"right",onOpen:e=>{},onClose:e=>t(En()),disableSwipeToOpen:!0,children:Object(g.jsx)(B.a,{children:Object(g.jsx)(k.a,{children:"Quick Panel"})})})}var An=fn("quickPanel",Rn)(s.a.memo(Cn));function Ln(e){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(An,{})})}var wn=s.a.memo(Ln);function In(e){const t=Object(m.b)();return Object(g.jsx)(I.a,{className:e.className,onClick:e=>t(tt()),color:"inherit",disableRipple:!0,children:e.children})}In.defaultProps={children:Object(g.jsx)(w.a,{color:"action",children:"menu"})};var Pn=In;const Dn=Object(M.a)((e=>({root:{},productInfoLi:{"padding-top":0,"padding-bottom":0},productInfoTextDiv:{"margin-top":"0","margin-bottom":"0","&>span":{"font-size":"11px",cursor:"default"}}})));function Mn(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(m.c)(ce.g),n=Object(m.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),s=Dn(e),{t:c}=Object(jt.a)("docbase");return Object(g.jsx)(Fe.a,{theme:a,children:Object(g.jsx)(Ue.a,{id:"fuse-toolbar",className:Object(G.a)(s.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(We.a,{className:"p-0 min-h-48 md:min-h-64",children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{className:"w-40 h-40 p-0 mx-0 sm:mx-8"})}),Object(g.jsx)("div",{className:"flex flex-1"}),Object(g.jsx)("div",{className:"flex items-center px-16",children:Object(g.jsxs)(it.a,{component:"nav","aria-label":"secondary mailbox folders",children:[Object(g.jsx)(ot.a,{className:s.productInfoLi,children:Object(g.jsx)(dt.a,{className:s.productInfoTextDiv,primary:"".concat(c("LICENSES_TITLE"))})}),Object(g.jsx)(ot.a,{className:s.productInfoLi,children:Object(g.jsx)(dt.a,{className:s.productInfoTextDiv,primary:"".concat(c("PRODUCTKEY_STATE"),": ").concat(n.validProductKey?c("VALID"):c("INVALID"))})}),Object(g.jsx)(ot.a,{className:s.productInfoLi,children:Object(g.jsx)(dt.a,{className:s.productInfoTextDiv,primary:"".concat(c("USER_LICENSES"),": ").concat(n.userLicenses)})}),Object(g.jsx)(ot.a,{className:s.productInfoLi,children:Object(g.jsx)(dt.a,{className:s.productInfoTextDiv,primary:"".concat(c("EXPIRE_AT"),": ").concat(bt.a.getDateStringToLocalDate(n.expireAt))})}),Object(g.jsx)(ot.a,{className:s.productInfoLi,children:Object(g.jsx)(dt.a,{className:s.productInfoTextDiv,primary:"".concat(c("MAINTENANCE_AT"),": ").concat(bt.a.getDateStringToLocalDate(n.settledExpireMaintenance?n.expireMaintenanceAt:n.expireAt))})})]})}),t.navbar.display&&"right"===t.navbar.position&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{})})]})})})}var kn=s.a.memo(Mn);let Gn=!1;if(null===sessionStorage.getItem("device")){new T.a(window.navigator.userAgent).mobile()&&(sessionStorage.setItem("device","mobile"),Gn=!0)}else Gn="mobile"===sessionStorage.getItem("device");const Un=Object(M.a)((e=>({root:{position:"relative",display:"flex",flexDirection:"row",width:"100%",height:"100%",overflow:"hidden",backgroundColor:e.palette.background.default,color:e.palette.text.primary,"&.boxed":{maxWidth:1280,margin:"0 auto",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"},"&.scroll-body":{"& $wrapper":{height:"auto",flex:"0 0 auto",overflow:"auto"},"& $contentWrapper":{},"& $content":{}},"&.scroll-content":{"& $wrapper":{},"& $contentWrapper":{},"& $content":{}},"& .navigation":{"& .list-subheader-text, & .list-item-text, & .item-badge, & .arrow-icon":{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeInOut})}}},wrapper:{display:"flex",position:"relative",width:"100%",height:"100%",flex:"1 1 auto"},contentWrapper:{display:"flex",flexDirection:"column",position:"relative",zIndex:3,overflow:"hidden",flex:"1 1 auto"},content:{position:"relative",display:"flex",overflow:"auto",flex:"1 1 auto",flexDirection:"column","-webkit-overflow-scrolling":"touch",zIndex:2,"&>div:first-child":{padding:"0"}}})));function Fn(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(n.useContext)(h),s=Un(e),{routes:c}=a;return"body"===t.scroll?Object(g.jsxs)("div",{id:"fuse-layout",className:Object(G.a)(s.root,t.mode,"scroll-".concat(t.scroll)),children:[t.leftSidePanel.display&&Object(g.jsx)(Ke,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"fixed"===t.toolbar.style&&"above"===t.toolbar.position&&Object(g.jsx)(kn,{}),Object(g.jsxs)(B.a,{className:"overflow-auto",scrollToTopOnRouteChange:!0,children:[t.toolbar.display&&"fixed"!==t.toolbar.style&&"above"===t.toolbar.position&&Object(g.jsx)(kn,{}),Object(g.jsxs)("div",{className:s.wrapper,children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(Ba,{}),Object(g.jsxs)("div",{className:s.contentWrapper,children:[t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(kn,{}),Object(g.jsxs)("div",{className:s.content,children:[Object(g.jsx)(y,{}),Object(g.jsx)(V,{children:Object(_.b)(c)}),e.children]}),t.footer.display&&"below"===t.footer.position&&Object(g.jsx)(ze,{}),Object(g.jsx)(Ge,{})]}),t.navbar.display&&"right"===t.navbar.position&&Object(g.jsx)(Ba,{})]}),t.footer.display&&"fixed"!==t.footer.style&&"above"===t.footer.position&&Object(g.jsx)(ze,{})]}),t.footer.display&&"fixed"===t.footer.style&&"above"===t.footer.position&&Object(g.jsx)(ze,{})]}),t.rightSidePanel.display&&Object(g.jsx)(wn,{}),Object(g.jsx)(z,{})]}):Object(g.jsxs)("div",{id:"fuse-layout",className:Object(G.a)(s.root,t.mode,"scroll-".concat(t.scroll)),children:[t.leftSidePanel.display&&Object(g.jsx)(Ke,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(kn,{}),Object(g.jsxs)("div",{className:s.wrapper,children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(Ba,{}),Object(g.jsxs)("div",{className:s.contentWrapper,children:[t.toolbar.display&&"below"===t.toolbar.position&&"fixed"===t.toolbar.style&&Object(g.jsx)(kn,{}),Object(g.jsxs)(B.a,{className:s.content,scrollToTopOnRouteChange:!0,children:[t.toolbar.display&&"below"===t.toolbar.position&&"fixed"!==t.toolbar.style&&Object(g.jsx)(kn,{}),Object(g.jsx)(y,{}),Object(g.jsx)(V,{children:Object(_.b)(c)}),e.children,t.footer.display&&"below"===t.footer.position&&"fixed"!==t.footer.style&&Object(g.jsx)(ze,{})]}),t.footer.display&&"below"===t.footer.position&&"fixed"===t.footer.style&&Object(g.jsx)(ze,{}),Object(g.jsx)(Ge,{})]}),t.navbar.display&&"right"===t.navbar.position&&Object(g.jsx)(Ba,{})]}),t.footer.display&&"above"===t.footer.position&&Object(g.jsx)(ze,{})]}),t.rightSidePanel.display&&Object(g.jsx)(wn,{}),Object(g.jsx)(z,{})]})}var Wn=s.a.memo(Fn);function Hn(e){const t=Object(m.c)(ce.d);return Object(g.jsx)(Fe.a,{theme:t,children:Object(g.jsx)(Ue.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(We.a,{className:"min-h-48 md:min-h-64 px-8 sm:px-12 py-0 flex items-center overflow-x-auto",children:Object(g.jsx)(k.a,{children:"Footer"})})})})}var zn=s.a.memo(Hn);function Bn(){return Object(g.jsx)(g.Fragment,{})}var Kn=s.a.memo(Bn);function Yn(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current}));return Object(g.jsx)(I.a,{className:e.className,onClick:()=>{t(Object(ce.h)(j.a.set({},"layout.config.navbar.folded",!a.layout.config.navbar.folded)))},color:"inherit",size:"small",children:e.children})}Yn.defaultProps={children:Object(g.jsx)(w.a,{fontSize:"inherit",children:"push_pin"})};var Vn=Yn,Xn=a(976);const qn=Object(M.a)((e=>({root:{"&.user":{"& .username, & .email":{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeInOut})}}},avatar:{width:72,height:72,position:"absolute",top:92,padding:8,background:e.palette.background.default,boxSizing:"content-box",left:"50%",transform:"translateX(-50%)",transition:e.transitions.create("all",{duration:e.transitions.duration.shortest,easing:e.transitions.easing.easeInOut}),"& > img":{borderRadius:"50%"}}})));var Jn=function(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user})),a=qn();return Object(g.jsxs)(Ue.a,{position:"static",color:"primary",classes:{root:a.root},className:"user relative flex flex-col items-center justify-center pt-24 pb-64 mb-32 z-0 shadow-0",children:[Object(g.jsx)(k.a,{className:"username text-16 whitespace-nowrap",color:"inherit",children:t.data.displayName}),Object(g.jsx)(k.a,{className:"email text-13 mt-8 opacity-50 whitespace-nowrap",color:"inherit",children:t.data.email}),Object(g.jsx)(Xn.a,{className:Object(G.a)(a.avatar,"avatar"),alt:"user photo",src:t.data.photoURL&&""!==t.data.photoURL?t.data.photoURL:"assets/images/avatars/profile.jpg"})]})};const Zn=Object(M.a)({content:{overflowX:"hidden",overflowY:"auto","-webkit-overflow-scrolling":"touch",background:"linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 30%), linear-gradient(rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 40%)",backgroundRepeat:"no-repeat",backgroundSize:"100% 40px, 100% 10px",backgroundAttachment:"local, scroll"}});function Qn(e){const t=Zn(e),a=Object(Ce.a)();return Object(g.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[Object(g.jsxs)(Ue.a,{color:"primary",position:"static",className:"flex flex-row items-center flex-shrink h-48 md:h-64 min-h-48 md:min-h-64 px-12 shadow-0",children:[Object(g.jsx)("div",{className:"flex flex-1 mx-8",children:Object(g.jsx)(Pt,{})}),Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)(Vn,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{className:"w-40 h-40 p-0",children:Object(g.jsxs)(w.a,{children:["ltr"===a.direction?"arrow_back":"arrow_forward",'"']})})})]}),Object(g.jsxs)(B.a,{className:Object(G.a)(t.content),children:[Object(g.jsx)(Jn,{}),Object(g.jsx)(ka,{layout:"vertical"})]})]})}var $n=s.a.memo(Qn);function es(){return Object(g.jsxs)("div",{className:"flex flex-auto justify-between items-center w-full h-full container p-0 lg:px-24",children:[Object(g.jsx)("div",{className:"flex flex-shrink-0 items-center px-8",children:Object(g.jsx)(Pt,{})}),Object(g.jsx)(B.a,{className:"flex h-full items-center",children:Object(g.jsx)(ka,{className:"w-full",layout:"horizontal"})})]})}var ts=s.a.memo(es);const as=Object(M.a)((e=>({navbar:{display:"flex",overflow:"hidden",height:64,minHeight:64,alignItems:"center",zIndex:6},navbarMobile:{display:"flex",overflow:"hidden",flexDirection:"column",width:280,minWidth:280,height:"100%",zIndex:4,transition:e.transitions.create(["width","min-width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}})));function ns(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(m.c)(ce.f),s=Object(m.c)((e=>{let{fuse:t}=e;return t.navbar})),c=as(e);return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Fe.a,{theme:n,children:[Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)(Vt.a,{className:Object(G.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(ts,{})})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ye.a,{anchor:"left",variant:"temporary",open:s.mobileOpen,classes:{paper:c.navbarMobile},onClose:()=>t(nt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)($n,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var ss=s.a.memo(ns);function cs(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(An,{})})}var ls=s.a.memo(cs),rs=a(186);a(480);const is={animation:"transition.fadeIn",stagger:50,duration:200,display:null,visibility:"visible",delay:0},os={stagger:50,duration:200,display:null,visibility:"visible",delay:0};function ds(e){return Object(g.jsx)(rs.VelocityTransitionGroup,Object(d.a)(Object(d.a)({},e),{},{enter:Object(d.a)(Object(d.a)({},is),e.enter),leave:Object(d.a)(Object(d.a)({},os),e.leave)}))}ds.defaultProps={enter:is,leave:os,easing:[.4,0,.2,1],runOnMount:!0,enterHideStyle:{opacity:1},enterShowStyle:{opacity:0}};var bs=s.a.memo(ds),js=a(362),us=a(954),Os=a(542);const ps=Object(M.a)({root:{"&.horizontal":{},"&.vertical":{flexDirection:"column"}},item:{textDecoration:"none!important",color:"inherit"},addIcon:{color:L.a[600]}});function hs(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user.data.shortcuts})),s=Object(m.c)(Rt),c=ps(e),l=Object(n.useRef)(null),[r,i]=Object(n.useState)(null),[o,b]=Object(n.useState)(""),[j,u]=Object(n.useState)(null),[O,h]=Object(n.useState)(null),_=a?a.map((e=>p.findById(s,e))):[];function f(e){let n=[...a];n=n.includes(e)?n.filter((t=>e!==t)):[...n,e],t((e=>async(t,a)=>{const{user:n}=a().auth,s=Object(d.a)(Object(d.a)({},n),{},{data:Object(d.a)(Object(d.a)({},n.data),{},{shortcuts:e})});return t(_e(n)),t(he(s))})(n))}function E(e){let{item:t,onToggle:n}=e;return Object(g.jsx)(Bt.a,{to:t.url,className:c.item,role:"button",children:Object(g.jsxs)(Q.a,{children:[Object(g.jsx)(us.a,{className:"min-w-40",children:t.icon?Object(g.jsx)(w.a,{children:t.icon}):Object(g.jsx)("span",{className:"text-20 font-bold uppercase text-center",children:t.title[0]})}),Object(g.jsx)(dt.a,{primary:t.title}),Object(g.jsx)(I.a,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n(t.id)},children:Object(g.jsx)(w.a,{color:"action",children:a.includes(t.id)?"star":"star_border"})})]},t.id)})}return Object(n.useEffect)((()=>{h(p.getFlatNavigation(s))}),[e.location,s]),Object(g.jsxs)("div",{className:Object(G.a)(c.root,e.variant,"flex flex-1","vertical"===e.variant&&"flex-grow-0 flex-shrink",e.className),children:[Object(g.jsxs)(bs,{enter:{animation:"transition.expandIn"},className:Object(G.a)("flex flex-1","vertical"===e.variant&&"flex-col"),children:[_.map((t=>t&&Object(g.jsx)(Bt.a,{to:t.url,className:c.item,role:"button",children:Object(g.jsx)(Je.a,{title:t.title,placement:"horizontal"===e.variant?"bottom":"left",children:Object(g.jsx)(I.a,{className:"w-40 h-40 p-0",children:t.icon?Object(g.jsx)(w.a,{children:t.icon}):Object(g.jsx)("span",{className:"text-20 font-bold uppercase",children:t.title[0]})})})},t.id))),Object(g.jsx)(Je.a,{title:"Click to add/remove shortcut",placement:"horizontal"===e.variant?"bottom":"left",children:Object(g.jsx)(I.a,{className:"w-40 h-40 p-0","aria-owns":r?"add-menu":null,"aria-haspopup":"true",onClick:e=>{i(e.currentTarget)},children:Object(g.jsx)(w.a,{className:c.addIcon,children:"star"})})})]}),Object(g.jsxs)(Os.a,{id:"add-menu",anchorEl:r,open:Boolean(r),onClose:e=>{i(null)},classes:{paper:"mt-48"},onEntered:()=>{l.current.focus()},onExited:()=>{b("")},children:[Object(g.jsx)("div",{className:"p-16 pt-8",children:Object(g.jsx)(js.a,{inputRef:l,value:o,onChange:e=>function(e){const t=e.target.value;b(t),0!==t.length&&O?u(O.filter((e=>e.title.toLowerCase().includes(t.toLowerCase())))):u(null)}(e),placeholder:"Search for an app or page",className:"",fullWidth:!0,inputProps:{"aria-label":"Search"}})}),Object(g.jsx)(Dt.a,{}),0!==o.length&&j&&j.map((e=>Object(g.jsx)(E,{item:e,onToggle:()=>f(e.id)},e.id))),0!==o.length&&0===j.length&&Object(g.jsx)(k.a,{color:"textSecondary",className:"p-16 pb-8",children:"No results.."}),0===o.length&&_.map((e=>e&&Object(g.jsx)(E,{item:e,onToggle:()=>f(e.id)},e.id)))]})]})}hs.defaultProps={variant:"horizontal"};var ms=s.a.memo(hs);const _s=Object(M.a)((e=>({root:{}})));function fs(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(m.c)(ce.g),n=_s(e);return Object(g.jsx)(Fe.a,{theme:a,children:Object(g.jsx)(Ue.a,{id:"fuse-toolbar",className:Object(G.a)(n.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(We.a,{className:"container p-0 lg:px-24 min-h-48 md:min-h-64",children:[t.navbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{className:"w-40 h-40 p-0 mx-0 sm:mx-8"})}),Object(g.jsx)("div",{className:"flex flex-1",children:Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)(ms,{})})}),Object(g.jsx)("div",{className:"flex items-center px-16"})]})})})}var gs=s.a.memo(fs);const Es=Object(M.a)((e=>({root:{position:"relative",display:"flex",flexDirection:"row",width:"100%",height:"100%",overflow:"hidden","&.boxed":{maxWidth:1280,margin:"0 auto",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},"&.container":{"& .container":{maxWidth:1120,width:"100%",margin:"0 auto"},"& .navigation":{}}},content:{display:"flex",overflow:"auto",flex:"1 1 auto",flexDirection:"column",width:"100%","-webkit-overflow-scrolling":"touch",zIndex:4},toolbarWrapper:{display:"flex",position:"relative",zIndex:5},toolbar:{display:"flex",flex:"1 0 auto"},footerWrapper:{position:"relative",zIndex:5},footer:{display:"flex",flex:"1 0 auto"}})));function xs(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Es(e);return Object(g.jsx)(h.Consumer,{children:n=>{let{routes:s}=n;return Object(g.jsxs)("div",{id:"fuse-layout",className:Object(G.a)(a.root,t.mode),children:[t.leftSidePanel.display&&Object(g.jsx)(Kn,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(gs,{}),t.navbar.display&&Object(g.jsx)(ss,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(gs,{}),Object(g.jsxs)(B.a,{className:a.content,scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(y,{}),Object(g.jsxs)("div",{className:"flex flex-auto flex-col relative h-full",children:[Object(g.jsx)(V,{children:Object(_.b)(s)}),e.children,t.footer.display&&"static"===t.footer.style&&Object(g.jsx)(zn,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(zn,{}),Object(g.jsx)(Ge,{})]}),t.rightSidePanel.display&&Object(g.jsx)(ls,{}),Object(g.jsx)(z,{})]})}})}var Ns=s.a.memo(xs);function Ss(e){const t=Object(m.c)(ce.d);return Object(g.jsx)(Fe.a,{theme:t,children:Object(g.jsx)(Ue.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(We.a,{className:"container min-h-48 md:min-h-64 px-8 sm:px-12 lg:px-20 py-0 flex items-center overflow-x-auto",children:Object(g.jsx)(k.a,{children:"Footer"})})})})}var Ts=s.a.memo(Ss);const vs=Object(M.a)((e=>({paper:{display:"flex",width:56},root:{transition:e.transitions.create(["transform","width","min-width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),paddingBottom:64,position:"relative",zIndex:999,"&.left":{"& $buttonWrapper":{left:0,right:"auto"},"& $buttonIcon":{transform:"rotate(0deg)"}},"&.right":{"& $buttonWrapper":{right:0,left:"auto"},"& $buttonIcon":{transform:"rotate(-180deg)"}},"&.closed":{[e.breakpoints.up("lg")]:{width:0},"&.left":{"& $buttonWrapper":{justifyContent:"start"},"& $button":{borderBottomLeftRadius:0,borderTopLeftRadius:0,paddingLeft:4},"& $buttonIcon":{transform:"rotate(-180deg)"}},"&.right":{"& $buttonWrapper":{justifyContent:"flex-end"},"& $button":{borderBottomRightRadius:0,borderTopRightRadius:0,paddingRight:4},"& $buttonIcon":{transform:"rotate(0deg)"}},"& $buttonWrapper":{width:"auto"},"& $button":{backgroundColor:e.palette.background.paper,borderRadius:38,transition:e.transitions.create(["background-color","border-radius","width","min-width","padding"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter}),width:24,"&:hover":{width:52,paddingLeft:8,paddingRight:8}},"& $content":{opacity:0}}},content:{overflow:"hidden",opacity:1,transition:e.transitions.create(["opacity"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.short})},buttonWrapper:{position:"absolute",bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",padding:"12px 0",width:"100%",minWidth:56},button:{padding:8,width:40,height:40},buttonIcon:{transition:e.transitions.create(["transform"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.short})},mobileButton:{height:40,position:"absolute",zIndex:99,bottom:12,width:24,borderRadius:38,padding:8,backgroundColor:e.palette.background.paper,transition:e.transitions.create(["background-color","border-radius","width","min-width","padding"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter}),"&:hover":{width:52,paddingLeft:8,paddingRight:8},"&.left":{borderBottomLeftRadius:0,borderTopLeftRadius:0,paddingLeft:4,left:0},"&.right":{borderBottomRightRadius:0,borderTopRightRadius:0,paddingRight:4,right:0,"& $buttonIcon":{transform:"rotate(-180deg)"}}}})));function Rs(e){const t=vs(e),[a,s]=Object(n.useState)(e.opened),[c,l]=Object(n.useState)(!1);function r(){l(!c)}return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsxs)(Vt.a,{className:Object(G.a)(t.root,t.paper,e.className,a?"opened":"closed",e.position,"shadow-lg"),square:!0,children:[Object(g.jsx)(B.a,{className:Object(G.a)("content",t.content),children:e.children}),Object(g.jsx)("div",{className:t.buttonWrapper,children:Object(g.jsx)(Je.a,{title:"Toggle side panel",placement:(e.position,"right"),children:Object(g.jsx)(I.a,{className:t.button,onClick:e=>{s(!a)},disableRipple:!0,children:Object(g.jsx)(w.a,{className:t.buttonIcon,children:"keyboard_arrow_left"})})})})]})}),Object(g.jsxs)(Ve.a,{lgUp:!0,children:[Object(g.jsx)(Ye.a,{classes:{paper:Object(G.a)(t.paper,e.className)},anchor:e.position,open:c,onOpen:e=>{},onClose:e=>r(),disableSwipeToOpen:!0,children:Object(g.jsx)(B.a,{className:Object(G.a)("content",t.content),children:e.children})}),Object(g.jsx)(Je.a,{title:"Hide side panel",placement:(e.position,"right"),children:Object(g.jsx)(qe.a,{className:Object(G.a)(t.mobileButton,e.position),onClick:e=>r(),disableRipple:!0,children:Object(g.jsx)(w.a,{className:t.buttonIcon,color:"action",children:"keyboard_arrow_right"})})})]})]})}Rs.defaultProps={position:"left",opened:!0};var ys=s.a.memo(Rs);function Cs(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(ys,{children:Object(g.jsx)(ms,{className:"py-16 px-8",variant:"vertical"})})})}var As=s.a.memo(Cs);function Ls(){return Object(g.jsx)("div",{className:"flex flex-auto items-center w-full h-full container px-16 lg:px-24",children:Object(g.jsx)(B.a,{className:"flex h-full items-center",children:Object(g.jsx)(ka,{className:"w-full",layout:"horizontal",dense:!0})})})}var ws=s.a.memo(Ls);const Is=Object(M.a)({content:{overflowX:"hidden",overflowY:"auto","-webkit-overflow-scrolling":"touch",background:"linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 30%), linear-gradient(rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0) 40%)",backgroundRepeat:"no-repeat",backgroundSize:"100% 40px, 100% 10px",backgroundAttachment:"local, scroll"}});function Ps(e){const t=Is(e),a=Object(Ce.a)();return Object(g.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[Object(g.jsxs)(Ue.a,{color:"primary",position:"static",className:"flex flex-row items-center flex-shrink h-48 md:h-64 min-h-48 md:min-h-64 px-12 shadow-0",children:[Object(g.jsx)("div",{className:"flex flex-1 mx-8",children:Object(g.jsx)(Pt,{})}),Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)(Vn,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{className:"w-40 h-40 p-0",children:Object(g.jsxs)(w.a,{children:["ltr"===a.direction?"arrow_back":"arrow_forward",'"']})})})]}),Object(g.jsxs)(B.a,{className:Object(G.a)(t.content),children:[Object(g.jsx)(Jn,{}),Object(g.jsx)(ka,{layout:"vertical"})]})]})}var Ds=s.a.memo(Ps);const Ms=Object(M.a)((e=>({navbar:{display:"flex",overflow:"hidden",height:64,minHeight:64,alignItems:"center",zIndex:6},navbarMobile:{display:"flex",overflow:"hidden",flexDirection:"column",width:280,minWidth:280,height:"100%",zIndex:4,transition:e.transitions.create(["width","min-width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}})));function ks(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(m.c)(ce.f),s=Object(m.c)((e=>{let{fuse:t}=e;return t.navbar})),c=Ms(e);return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Fe.a,{theme:n,children:[Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)(Vt.a,{className:Object(G.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(ws,{})})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ye.a,{anchor:"left",variant:"temporary",open:s.mobileOpen,classes:{paper:c.navbarMobile},onClose:()=>t(nt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)(Ds,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var Gs=s.a.memo(ks);function Us(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(An,{})})}var Fs=s.a.memo(Us),Ws=a(12),Hs=a(890),zs=a(899),Bs=a(358),Ks=a.n(Bs),Ys=a(528),Vs=a.n(Ys),Xs=a(359),qs=a.n(Xs);const Js=["variant","classes","inputRef","ref"];function Zs(e){const{variant:t,classes:a,inputRef:n=()=>{},ref:s}=e,c=Object(Ws.a)(e,Js);return Object(g.jsx)("div",{className:"w-full relative",children:"basic"===t?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Ht.a,Object(d.a)({fullWidth:!0,InputProps:{inputRef:e=>{s(e),n(e)},classes:{input:Object(G.a)(a.input,"py-0 px-16 h-40 md:h-48 ltr:pr-48 rtl:pl-48"),notchedOutline:"rounded-8"}},variant:"outlined"},c)),Object(g.jsx)(w.a,{className:"absolute top-0 ltr:right-0 rtl:left-0 h-40 md:h-48 w-48 p-12 pointer-events-none",color:"action",children:"search"})]}):Object(g.jsx)(Ht.a,Object(d.a)({fullWidth:!0,InputProps:{disableUnderline:!0,inputRef:e=>{s(e),n(e)},classes:{input:Object(G.a)(a.input,"py-0 px-16 h-48 md:h-64")}},variant:"standard"},c))})}function Qs(e,t){let{query:a,isHighlighted:n}=t;const s=Ks()(e.title,a),c=Vs()(e.title,s);return Object(g.jsxs)(Q.a,{selected:n,component:"div",children:[Object(g.jsx)(us.a,{className:"min-w-40",children:e.icon?Object(g.jsx)(w.a,{children:e.icon}):Object(g.jsx)("span",{className:"text-20 w-24 font-bold uppercase text-center",children:e.title[0]})}),Object(g.jsx)(dt.a,{primary:c.map(((e,t)=>e.highlight?Object(g.jsx)("span",{style:{fontWeight:600},children:e.text},String(t)):Object(g.jsx)("strong",{style:{fontWeight:300},children:e.text},String(t))))})]})}function $s(e){return e.title}const ec=Object(M.a)((e=>({root:{},container:{position:"relative"},suggestionsContainerOpen:{position:"absolute",zIndex:1,marginTop:e.spacing(),left:0,right:0},suggestion:{display:"block"},suggestionsList:{margin:0,padding:0,listStyleType:"none"},input:{transition:e.transitions.create(["background-color"],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.short}),"&:focus":{backgroundColor:e.palette.background.paper}}}))),tc={searchText:"",search:!1,navigation:null,suggestions:[],noSuggestions:!1};function ac(e,t){switch(t.type){case"open":return Object(d.a)(Object(d.a)({},e),{},{opened:!0});case"close":return Object(d.a)(Object(d.a)({},e),{},{opened:!1,searchText:""});case"setSearchText":return Object(d.a)(Object(d.a)({},e),{},{searchText:t.value});case"setNavigation":return Object(d.a)(Object(d.a)({},e),{},{navigation:t.value});case"updateSuggestions":{const a=function(e,t){const a=j.a.deburr(e.trim()).toLowerCase(),n=a.length;let s=0;return 0===n?[]:t.filter((e=>{const t=s<10&&Ks()(e.title,a).length>0;return t&&(s+=1),t}))}(t.value,e.navigation),n=!(""===t.value.trim())&&0===a.length;return Object(d.a)(Object(d.a)({},e),{},{suggestions:a,noSuggestions:n})}case"clearSuggestions":return Object(d.a)(Object(d.a)({},e),{},{suggestions:[],noSuggestions:!1});case"decrement":return{count:e.count-1};default:throw new Error}}function nc(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(m.c)(Rt),[s,c]=Object(n.useReducer)(ac,tc),l=ec(e),r=Object(n.useRef)(null),i=Object(n.useRef)(null),o=Object(n.useRef)(null);function b(e){e.stopPropagation(),c({type:"open"}),document.addEventListener("keydown",u,!1)}function j(){c({type:"close"}),document.removeEventListener("keydown",u,!1)}function u(e){27===e.keyCode&&j()}function O(e){c({type:"setSearchText",value:e.target.value})}Object(n.useEffect)((()=>{c({type:"setNavigation",value:p.getFlatNavigation(a).filter((e=>function(e){return p.hasPermission(e.auth,t)}(e)))})}),[t,a]);const h={renderInputComponent:Zs,highlightFirstSuggestion:!0,suggestions:s.suggestions,onSuggestionsFetchRequested:function(e){let{value:t}=e;c({type:"updateSuggestions",value:t})},onSuggestionsClearRequested:function(){c({type:"clearSuggestions"})},onSuggestionSelected:function(t,a){let{suggestion:n}=a;t.preventDefault(),t.stopPropagation(),n.url&&(e.history.push(n.url),j())},getSuggestionValue:$s,renderSuggestion:Qs};switch(e.variant){case"basic":return Object(g.jsx)("div",{className:Object(G.a)("flex items-center w-full",e.className),ref:i,children:Object(g.jsx)(qs.a,Object(d.a)(Object(d.a)({},h),{},{inputProps:{variant:e.variant,classes:l,placeholder:e.placeholder,value:s.searchText,onChange:O,onFocus:b,InputLabelProps:{shrink:!0},autoFocus:!1},theme:{container:"flex flex-1 w-full",suggestionsList:l.suggestionsList,suggestion:l.suggestion},renderSuggestionsContainer:t=>Object(g.jsx)(zs.a,{anchorEl:i.current,open:Boolean(t.children)||s.noSuggestions,popperOptions:{positionFixed:!0},className:"z-9999",children:Object(g.jsx)("div",{ref:r,children:Object(g.jsxs)(Vt.a,Object(d.a)(Object(d.a)({className:"shadow-lg rounded-8 overflow-hidden"},t.containerProps),{},{style:{width:i.current?i.current.clientWidth:null},children:[t.children,s.noSuggestions&&Object(g.jsx)(k.a,{className:"px-16 py-12",children:e.noResults})]}))})})}))});case"full":return Object(g.jsxs)("div",{className:Object(G.a)(l.root,"flex",e.className),children:[Object(g.jsx)(Je.a,{title:"Click to search",placement:"bottom",children:Object(g.jsx)("div",{onClick:b,onKeyDown:b,role:"button",tabIndex:0,ref:o,children:e.trigger})}),s.opened&&Object(g.jsx)(Hs.a,{onClickAway:e=>{return t=e,s.opened&&(!r.current||!r.current.contains(t.target))&&j();var t},children:Object(g.jsx)(Vt.a,{className:"absolute left-0 right-0 top-0 h-full z-9999 shadow-0",square:!0,children:Object(g.jsxs)("div",{className:"flex items-center w-full h-full",ref:i,children:[Object(g.jsx)(qs.a,Object(d.a)(Object(d.a)({},h),{},{inputProps:{classes:l,placeholder:e.placeholder,value:s.searchText,onChange:O,InputLabelProps:{shrink:!0},autoFocus:!0},theme:{container:"flex flex-1 w-full",suggestionsList:l.suggestionsList,suggestion:l.suggestion},renderSuggestionsContainer:t=>Object(g.jsx)(zs.a,{anchorEl:i.current,open:Boolean(t.children)||s.noSuggestions,popperOptions:{positionFixed:!0},className:"z-9999",children:Object(g.jsx)("div",{ref:r,children:Object(g.jsxs)(Vt.a,Object(d.a)(Object(d.a)({className:"shadow-lg",square:!0},t.containerProps),{},{style:{width:i.current?i.current.clientWidth:null},children:[t.children,s.noSuggestions&&Object(g.jsx)(k.a,{className:"px-16 py-12",children:e.noResults})]}))})})})),Object(g.jsx)(I.a,{onClick:e=>j(),className:"mx-8",children:Object(g.jsx)(w.a,{children:"close"})})]})})})]});default:return null}}nc.defaultProps={trigger:Object(g.jsx)(I.a,{className:"w-40 h-40",children:Object(g.jsx)(w.a,{children:"search"})}),variant:"full",placeholder:"Search",noResults:"No results.."};var sc=Object(f.h)(s.a.memo(nc));const cc=Object(M.a)((e=>({root:{}})));function lc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(m.c)(ce.g),n=cc(e);return Object(g.jsx)(Fe.a,{theme:a,children:Object(g.jsx)(Ue.a,{id:"fuse-toolbar",className:Object(G.a)(n.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(We.a,{className:"container p-0 lg:px-24 min-h-48 md:min-h-64",children:[t.navbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Pn,{className:"w-40 h-40 p-0 mx-0 sm:mx-8"})}),Object(g.jsx)(Ve.a,{mdDown:!0,children:Object(g.jsx)("div",{className:Object(G.a)("flex flex-shrink-0 items-center"),children:Object(g.jsx)(Pt,{})})}),Object(g.jsx)("div",{className:"flex flex-1",children:Object(g.jsx)(Ve.a,{xsDown:!0,children:Object(g.jsx)(sc,{className:"mx-16 lg:mx-24",variant:"basic"})})}),Object(g.jsx)("div",{className:"flex items-center px-8 md:px-0",children:Object(g.jsx)(Ve.a,{smUp:!0,children:Object(g.jsx)(sc,{})})})]})})})}var rc=s.a.memo(lc);const ic=Object(M.a)((e=>({root:{position:"relative",display:"flex",flexDirection:"row",width:"100%",height:"100%",overflow:"hidden","&.boxed":{maxWidth:1120,margin:"0 auto",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},"&.container":{"& .container":{maxWidth:1120,width:"100%",margin:"0 auto"},"& .navigation":{}}},content:{display:"flex",overflow:"auto",flex:"1 1 auto",flexDirection:"column",width:"100%","-webkit-overflow-scrolling":"touch",zIndex:4},toolbarWrapper:{display:"flex",position:"relative",zIndex:5},toolbar:{display:"flex",flex:"1 0 auto"},footerWrapper:{position:"relative",zIndex:5},footer:{display:"flex",flex:"1 0 auto"}})));function oc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=ic(e);return Object(g.jsx)(h.Consumer,{children:n=>{let{routes:s}=n;return Object(g.jsxs)("div",{id:"fuse-layout",className:Object(G.a)(a.root,t.mode),children:[t.leftSidePanel.display&&Object(g.jsx)(As,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(rc,{}),t.navbar.display&&Object(g.jsx)(Gs,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(rc,{}),Object(g.jsxs)(B.a,{className:Object(G.a)(a.content),scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(y,{}),Object(g.jsxs)("div",{className:"flex flex-auto flex-col relative h-full",children:[Object(g.jsx)(V,{children:Object(_.b)(s)}),e.children,t.footer.display&&"static"===t.footer.style&&Object(g.jsx)(Ts,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(Ts,{}),Object(g.jsx)(Ge,{})]}),t.rightSidePanel.display&&Object(g.jsx)(Fs,{}),Object(g.jsx)(z,{})]})}})}var dc={layout1:Wn,layout2:Ns,layout3:s.a.memo(oc)},bc=a(281),jc=a(83);const uc=Object(M.a)((e=>({"@global":{'code:not([class*="language-"])':{color:e.palette.secondary.dark,backgroundColor:"light"===e.palette.type?"rgba(255, 255, 255, .9)":"rgba(0, 0, 0, .9)",padding:"2px 3px",borderRadius:2,lineHeight:1.7},"table.simple tbody tr td":{borderColor:e.palette.divider},"table.simple thead tr th":{borderColor:e.palette.divider},"a:not([role=button])":{color:e.palette.secondary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},"a.link, a:not([role=button])[target=_blank]":{background:Object(jc.fade)(e.palette.secondary.main,.2),color:"inherit",borderBottom:"1px solid ".concat(e.palette.divider),textDecoration:"none","&:hover":{background:Object(jc.fade)(e.palette.secondary.main,.3),textDecoration:"none"}},'[class^="border-"]':{borderColor:e.palette.divider},'[class*="border-"]':{borderColor:e.palette.divider},hr:{borderColor:e.palette.divider},"::-webkit-scrollbar-thumb":{boxShadow:"inset 0 0 0 20px ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.24)":"rgba(255, 255, 255, 0.24)")},"::-webkit-scrollbar-thumb:active":{boxShadow:"inset 0 0 0 20px ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.37)":"rgba(255, 255, 255, 0.37)")}},root:{backgroundColor:e.palette.background.default,color:e.palette.text.primary}})));function Oc(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current})),s=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.defaults})),c=Object(n.useContext)(h),{routes:l}=c,r=uc(e),i=Object(f.g)(),{pathname:o}=i,b=Object(_.a)(l,o)[0],u=Object(n.useRef)(null);Object(n.useCallback)((()=>{let e;if(b&&b.route.settings){const t=b.route.settings;e=Object(ce.b)(s,t)}else e=j.a.isEqual(u.current,s)?u.current:j.a.merge({},s);j.a.isEqual(u.current,e)||(u.current=e),e.animations?(document.body.classList.remove("no-animate"),bc.mock=!1):(document.body.classList.add("no-animate"),bc.mock=!0)}),[s,b])(),Object(N.b)((()=>{j.a.isEqual(u.current,a)||t(Object(ce.j)(u.current))}),[t,u.current,a]);const O=Object(n.useMemo)((()=>dc[a.layout.style]),[a.layout.style]);return j.a.isEqual(u.current,a)?Object(g.jsx)(O,Object(d.a)({classes:{root:r.root}},e)):null}var pc=s.a.memo(Oc);const hc="undefined"===typeof window?n.useEffect:n.useLayoutEffect;function mc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.defaults.direction})),a=Object(m.c)(ce.e);return hc((()=>{document.body.dir=t}),[t]),Object(g.jsx)(Fe.a,{theme:a,children:e.children})}var _c=s.a.memo(mc),fc=a(551),gc=a(888),Ec=a(937),xc=a(79),Nc=a(529),Sc=a(530),Tc=a(531),vc=a.n(Tc),Rc=a(254);var yc=a(545),Cc=a(955);const Ac=Object(M.a)((e=>({wrapper:{position:"fixed",top:"20px",left:"50%",transform:"translateX(-50%)",zIndex:9999,display:"none"},bar:{padding:"12px 20px",borderRadius:"6px",color:"#fff",fontSize:"14px",boxShadow:"0 4px 10px rgba(0,0,0,0.2)",animation:"slideDown 0.3s ease"},info:{backgroundColor:"#2f80ed"},success:{backgroundColor:"#27ae60"},warning:{backgroundColor:"#f2994a"},error:{backgroundColor:"#eb5757"}})));let Lc;function wc(e){Lc&&Lc({message:e,type:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",duration:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3})}var Ic=function(e){let{url:t,userID:a}=e;const s=Ac(),c=Object(n.useRef)(null),[l,r]=Object(n.useState)([]),[i,o]=Object(n.useState)(null);return Object(n.useEffect)((()=>{}),[]),Object(n.useEffect)((()=>{let e;if(!i&&l.length>0){const t=l[0];o(t),r((e=>e.slice(1))),e=setTimeout((()=>{o(null)}),t.duration)}return()=>{e&&clearTimeout(e)}}),[l,i]),Object(n.useEffect)((()=>{if(!a)return;const e=new WebSocket(t);return c.current=e,e.onopen=()=>{wc("WebSocket \uc5f0\uacb0\ub428","success"),e.send(JSON.stringify({user_id:a}))},e.onmessage=t=>{try{const a=JSON.parse(t.data);"heartbeat"===(null===a||void 0===a?void 0:a.command)||"report_fpod"===(null===a||void 0===a?void 0:a.command)&&wc("PII \ud0d0\uc9c0 \uc54c\ub9bc: ".concat(null===a||void 0===a?void 0:a.path),"warning",5e3),e.send(JSON.stringify({result:"true"}))}catch(a){console.error("WebSocket \uba54\uc2dc\uc9c0 \ud30c\uc2f1 \uc2e4\ud328",a)}},e.onerror=()=>{wc("WebSocket \uc624\ub958 \ubc1c\uc0dd","error")},e.onclose=()=>{wc("WebSocket \uc5f0\uacb0 \uc885\ub8cc","warning")},()=>{e.close()}}),[t,a]),i?Object(g.jsx)("div",{className:s.wrapper,children:Object(g.jsx)("div",{className:Object(G.a)(s.bar,s[i.type]),children:i.message})}):null},Pc=a(258);let Dc,Mc=0;class kc extends n.Component{constructor(){super(...arguments),this.state={isLoggedIn:!!localStorage.getItem("doc_user")},this.syncLoginState=()=>{this.setState({isLoggedIn:!!localStorage.getItem("doc_user")})}}componentDidMount(){Object(Pc.b)(),window.addEventListener("storage",this.syncLoginState),this.props.initialSetup(),this.props.getProductInfo(),this.props.getSysConfigure(),null!==localStorage.getItem("doc_user")&&""!==localStorage.getItem("doc_user")||"/admin"===window.location.pathname||"/login"===window.location.pathname||"/mv"===window.location.pathname||"/openContentSite"===window.location.pathname||-1!==window.location.pathname.indexOf("/weblink")||(window.location.href=0===window.location.pathname.indexOf("/wc")?"/login":"/admin");const e=new Date;Mc=e.getTime(),window.addEventListener("click",(e=>{const t=new Date;Mc=t.getTime()})),Dc||(Dc=setInterval((()=>{const e=(new Date).getTime()-Mc;this.props.getSysConfigure(),e>36e5&&"/admin"!==window.location.pathname&&"/login"!==window.location.pathname&&Object(ut.f)().then((e=>{window.alert("\uc138\uc158\uc774 \uc885\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \ub85c\uadf8\uc778 \ud574\uc8fc\uc138\uc694"),window.location.href=0===window.location.pathname.indexOf("/wc")?"/login":"/admin"}))}),6e5))}componentWillUnmount(){window.removeEventListener("storage",this.syncLoginState)}render(){var e,t;return Object(g.jsxs)(g.Fragment,{children:[this.state.isLoggedIn&&null!==(e=this.props.sysConfigure)&&void 0!==e&&e.pii_detect_enable&&null!==(t=this.props.sysConfigure)&&void 0!==t&&t.pii_detect_access_control?Object(g.jsx)(Ic,{userID:localStorage.getItem("doc_user"),url:"".concat(("https:"===window.location.protocol?"wss://":"ws://")+window.location.host,"/wspush")}):Object(g.jsx)(g.Fragment,{}),Object(g.jsx)(yc.a,{className:"global-backdrop",open:this.props.showBackdrop,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),this.props.children]})}}var Gc=Object(m.a)((function(e){let{docbase:t}=e;return{showBackdrop:t.admin.setting.showBackdrop,sysConfigure:t.admin.setting.sysConfigure}}),{initialSetup:()=>async e=>{Ya.a.sendPost("/api/initialSetup",{}).then((t=>t.result?e(Za({product_registered:t.product_registered,administrator_setup:t.administrator_setup})):(Ya.a.printError(t),e(Za({product_registered:!0,administrator_setup:!0})))))},getProductInfo:qa,getSysConfigure:rn.B})(kc);const Uc=s.a.forwardRef(((e,t)=>{const a=s.a.cloneElement(e.children,{style:Object(d.a)(Object(d.a)({},e.children.style),{},{visibility:"hidden"})});return Object(g.jsx)(rs.VelocityComponent,Object(d.a)(Object(d.a)({ref:t},e),{},{children:a}))}));Uc.defaultProps={animation:"transition.fadeIn",runOnMount:!0,targetQuerySelector:null,interruptBehavior:"stop",visibility:"visible",duration:300,delay:50,easing:[.4,0,.2,1],display:null,setRef:void 0};var Fc=s.a.memo(Uc),Wc=a(552),Hc=a(99),zc=a(957),Bc=a(958),Kc=a(893);const Yc=[{id:"ko",title:"\ud55c\uad6d\uc5b4",flag:"ko"}],Vc=Object(M.a)((e=>({popover:{background:"#fff",padding:0,"& .lan-title>span":{color:"#222",fontFamily:"S-CoreDream-Regu"}}})));var Xc=function(e){const t=Vc(),a=Object(m.b)(),s=Object(m.c)((e=>{let{i18n:t}=e;return t.language})),c=Yc.find((e=>e.id===s)),[l,r]=Object(n.useState)(null),i=()=>{r(null)};function d(e){var t;a((t=e.id,(e,a)=>{const{direction:n}=a().fuse.settings.defaults,s=o.dir(t);return s!==n&&e(Object(ce.h)({direction:s})),o.changeLanguage(t).then((()=>{e(nn.actions.languageChanged(t))}))})),sessionStorage.setItem("coodoc-language",e.id),i()}return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Hc.a,{className:"",onClick:e=>{r(e.currentTarget)},style:e.style?e.style:{},children:Object(g.jsx)("img",{className:"mx-4 min-w-20",src:"assets/images/flags/".concat(c.flag,".png"),alt:c.title})}),Object(g.jsx)(Kc.a,{open:Boolean(l),anchorEl:l,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},classes:{paper:t.popover},children:Yc.map((e=>Object(g.jsxs)(Q.a,{onClick:()=>d(e),children:[Object(g.jsx)(us.a,{className:"min-w-40",children:Object(g.jsx)("img",{className:"min-w-20",src:"assets/images/flags/".concat(e.flag,".png"),alt:e.title})}),Object(g.jsx)(dt.a,{className:"lan-title",primary:e.title})]},e.id)))})]})},qc=a(7),Jc=a(88),Zc=a.n(Jc),Qc=a(481),$c=(a(865),a(288)),el=a(226),tl=a(956);const al=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),nl=Object(M.a)({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:40},"&>.content>.row":{display:"flex",alignItems:"center",height:40,margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.MuiTypography-root":{color:"#404040"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172},"& .MuiButton-root:first-child":{marginRight:16}}});function sl(e){const t=Object(m.b)(),a=nl(),{t:n}=Object(jt.a)("docbase"),c=s.a.useRef(null),[l,r]=s.a.useState("");return s.a.useEffect((()=>{r("")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{open:e.open,TransitionComponent:al,keepMounted:!0,fullWidth:!0,maxWidth:"xs",onClose:e.fnHandleClose,"aria-labelledby":"docbase_search_form","aria-describedby":"search-for-file-in-folder ",children:[Object(g.jsx)($c.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("PRINT_PASSWORD_AUTH")})}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(tl.a,{id:"alert-dialog-slide-description",className:"",children:n("PRINT_PASSWORD_CONTEXT").replace("%s",e.question)}),Object(g.jsx)("div",{className:"row",children:Object(g.jsx)(Ht.a,{className:"",type:"password",name:"cur-password",placeholder:n("PRINT_PASSWORD"),value:l,onChange:e=>r(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputRef:c})}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"btn-send",type:"button",onClick:a=>{l&&l.length>0&&Object(ut.h)(l).then((t=>{e.fnHandleComplete()})).catch((e=>{let a="";e.error===qc.lb?a=n("PRINT_PASSWORD_ERROR_MESSAGE_1"):e.error===qc.sb&&(a=n("PRINT_PASSWORD_ERROR_MESSAGE_2")),t(Object(U.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}const cl="mobile"===sessionStorage.getItem("device")||window.ReactNativeWebView,ll=Object(M.a)((e=>({root:{position:"relative",backgroundImage:'url("assets/brand/login_bg.png")',backgroundRepeat:"unset",width:"100%!important",height:"100%","&>div":cl?{position:"relative",width:"100%",maxWidth:375,height:"100%",margin:"0 auto",objectFit:"contain","-webkit-backdrop-filter":"blur(50px)",backdropFilter:"blur(50px)",backgroundImage:'url("assets/brand/login_mobile_bg.png")',backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{position:"absolute",left:180,width:480,height:"100%",objectFit:"contain","-webkit-backdrop-filter":"blur(50px)",backdropFilter:"blur(50px)",background:"rgb(255 255 255 / 20%)"},"& .login-logo":{margin:"0 auto"},"& .login-wrapper":{boxShadow:"none",background:"none",display:"flex",justifyContent:"center",height:"100%",position:"relative"},"& .login-wrapper>.login-content":{height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -30%)"},"& .login-wrapper .sub-title":{fontFamily:"ProximaNova-Bold",fontWeight:"bold",fontSize:32,color:"#00cfe2",textAlign:"center",marginTop:52,marginBottom:80},"& .login-wrapper .login-form":{color:"#a2a2ad",width:336,marginBottom:20,"& .MuiInput-root":{color:"#a2a2ad",fontSize:16},"& .MuiInput-underline:before":{borderColor:"rgb(162 162 173 / 80%)"},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderColor:"rgb(162 162 173 / 100%)"},"& .MuiInput-underline:after":{borderBottom:"2px solid rgb(162 162 173 / 100%)"},"& .MuiCheckbox-colorSecondary>.MuiIconButton-label":{background:"initial"},"& .MuiCheckbox-root":{color:"#939393",padding:"0 12px"},"& .MuiTypography-root":{color:"#ffffff"},"& .user-id":{marginBottom:26},"& .passwd":{marginBottom:10},"& .totp":{marginTop:25},"& .submit-btn":{marginTop:96,width:"100%",height:50,fontFamily:"S-CoreDream-Bold",fontSize:16,fontWeight:"bold"}},"& .client-download-wrapper":{display:"flex","&>div:first-child":{width:"100%",marginRight:12,"& .MuiSelect-select":{background:"#ffffff",padding:"15.5px 14px",fontSize:16,color:"#333d4b"},"& .MuiSelect-select:focus":{borderRadius:"inherit"}},"&>div:last-child":{"&>.MuiIconButton-root":{background:"#eceff4",borderRadius:6,width:56,height:50}}},"& .info-wrapper":{boxShadow:"none",background:"none",display:"flex",justifyContent:"center","&>content":{paddingTop:197},"& .info-text":{fontSize:23,color:"#ffffff",textAlign:"center",marginTop:52}},"& .btn-group":{marginTop:96,width:"100%",display:"flex","&>button":{width:"100%",height:50},"&>button:first-child":{marginRight:10}}},mbLoginCardContent:{"padding-bottom":"3.2rem!important"},imgQrcode:{margin:"0 auto"}})));var rl=function(e){let{history:t,location:a}=e;const c=ll(),l=Object(m.b)(),{t:r}=Object(jt.a)(["docbase","brand"]),i=s.a.useRef(null),o=s.a.useRef(null),[d,b]=s.a.useState("-"),[j,u]=s.a.useState(0),[O,p]=s.a.useState(""),[h,_]=s.a.useState(""),[f,E]=s.a.useState(""),[x,S]=s.a.useState(""),[T,v]=s.a.useState(!1),[R,y]=s.a.useState({open:!1,question:""}),C=Object(m.c)((e=>{let{auth:t}=e;return t.initial})),A="/admin"!==a.pathname,{sysConfigure:L}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));Object(n.useEffect)((()=>{const e=Object(Pc.a)(qc.T,(e=>{e.result?Object(ut.e)(Va.a.decryptAESCTR(window.coodocWB.mbRemeID),Va.a.decryptAESCTR(window.coodocWB.mbRemePW),"").then((async e=>{window.coodocWB.isFirst=!1,u(e.two_factor_authentication_flag),sessionStorage.setItem("user_id",window.coodocWB.mbRemeID),sessionStorage.setItem("auth",window.coodocWB.mbRemePW),e.need_password_change?v(!0):H(e.two_factor_authentication_flag)})).catch((e=>{e.error===qc.sb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):e.error===qc.mb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_7")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_2")}))})):(M("userID",""),M("remember",!1),M("password",""),F(!1))}));if(window.ReactNativeWebView&&window.coodocWB.isFirst){let e=!1,t=!1,a="",n="";window.coodocWB.mbRemeID&&""!==window.coodocWB.mbRemeID&&(a=Va.a.decryptAESCTR(window.coodocWB.mbRemeID),M("userID",a),M("remember",!0),e=!0),window.coodocWB.mbRemePW&&""!==window.coodocWB.mbRemePW&&(n=Va.a.decryptAESCTR(window.coodocWB.mbRemePW),M("password",n),F(!0),t=!0),e&&t&&(window.coodocWB.mbBiometrics?window.ReactNativeWebView.postMessage(JSON.stringify({eventID:qc.N,eventData:{}})):Object(ut.e)(a,n,"").then((async e=>{window.coodocWB.isFirst=!1,u(e.two_factor_authentication_flag),e.need_password_change?v(!0):H(e.two_factor_authentication_flag)})).catch((e=>{e.error===qc.sb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):e.error===qc.pb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_8")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_2")}))})))}if("/mv"===a.pathname){new URLSearchParams(a.search);Object(ut.d)().then((async e=>{A&&(u(e.two_factor_authentication_flag),e.need_password_change?v(!0):(sessionStorage.setItem("auth",Va.a.encryptAESCTR(w.password)),H(e.two_factor_authentication_flag),window.ReactNativeWebView&&W()))})).catch((e=>{console.log(e),e.error===qc.sb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_2")}))}))}const n="/login"===window.location.pathname,s="1"===sessionStorage.getItem("skipAutoLogin");if(n&&!s){const e=e=>new Promise((t=>{const a=document.createElement("script");a.src=e,a.onload=t,document.body.appendChild(a)}));(async()=>{await e("/js/jquery.min.js"),await e("/js/forge.min.js"),await e("/js/bandi.lib.common.js"),window.$?console.log("jQuery \ub85c\ub529 \uc131\uacf5!",window.$().jquery):console.log("jQuery \ub85c\ub529 \uc2e4\ud328!"),window.bandiJS.agent.init({isDebug:!0}),window.bandiJS.agent.call({requestType:"alive"}),window.bandiJS.agent.call({requestType:"check_login",isShownLoginForm:"false",withUserInfo:"Y",successCallback:e=>{if(null!==e&&void 0!==e&&e.success){console.log(e);e.dataMap.p_sid;const{userInfo:a}=e.dataMap;Object(ut.k)(null===a||void 0===a?void 0:a.userId).then((e=>{Object(ut.e)(e.id,e.password,"").then((a=>{sessionStorage.setItem("auth",Va.a.encryptAESCTR(e.password)),sessionStorage.setItem("user_id",Va.a.encryptAESCTR(e.id)),t.push("/wc/main")})).catch((e=>{console.log(e),e.error===qc.sb?l(Object(U.c)({message:r("SSO \uc778\uc99d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_2")}))}))}))}},errorCallback(e){console.error(e)}})})()}return()=>{e()}}),[]),Object(n.useEffect)((()=>{}),[l]),Object(n.useEffect)((()=>{C.product_registered?C.administrator_setup||t.push("/register"):t.push("/regProduct")}),[C]),Object(n.useEffect)((()=>{2===j?o.current.focus():1===j&&i.current.focus()}),[j]);const{form:w,handleChange:P,resetForm:D,setInForm:M}=Object(N.c)({userID:A?Zc.a.get("doc_id")&&""!==Zc.a.get("doc_id")?Zc.a.get("doc_id"):"":Zc.a.get("doc_admin_id")&&""!==Zc.a.get("doc_admin_id")?Zc.a.get("doc_admin_id"):"",password:"",remember:A?Zc.a.get("doc_id")&&""!==Zc.a.get("doc_id"):Zc.a.get("doc_admin_id")&&""!==Zc.a.get("doc_admin_id")}),[k,F]=s.a.useState(!1);function W(){var e;null===(e=window.ReactNativeWebView)||void 0===e||e.postMessage(JSON.stringify({eventID:qc.U,eventData:{userID:w.remember?Va.a.encryptAESCTR(w.userID):"",passwd:k?sessionStorage.getItem("auth"):""}}))}function H(e){0===e?t.push("/wc/main"):1===e&&Object(ut.g)(w.userID).then((e=>{E(Va.a.decryptAES(e.aes,e.secret_key,"hex","utf8")),S("data:image/bmp;base64,".concat(btoa(String.fromCharCode.apply(null,Va.a.hexToArray(Va.a.decryptAES(e.aes,e.qrcode,"hex","utf8"))))))})).catch((e=>console.error(e)))}let z=Object(g.jsx)(g.Fragment,{});if(0===j?z=Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"login-form",onSubmit:function(e){return e.preventDefault(),""===w.userID.trim()?(l(Object(U.c)({message:r("USER_ERROR_MESSAGE_3")})),!1):""===w.password.trim()?(l(Object(U.c)({message:r("USER_ERROR_MESSAGE_5")})),!1):(Object(ut.e)(w.userID,w.password,"").then((e=>{w.remember?Zc.a.set(A?"doc_id":"doc_admin_id",w.userID,{expires:365}):Zc.a.remove(A?"doc_id":"doc_admin_id"),A?(u(e.two_factor_authentication_flag),e.need_password_change?v(!0):(sessionStorage.setItem("auth",Va.a.encryptAESCTR(w.password)),H(e.two_factor_authentication_flag),window.ReactNativeWebView&&(W(),sessionStorage.setItem("user_id",Va.a.encryptAESCTR(w.userID))))):1===e.privilege?(t.push("/dashboard"),l(Object(rn.B)())):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_6")}))})).catch((e=>{console.log(e),e.error===qc.sb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_2")}))})),D(),!0)},children:[Object(g.jsx)(Ht.a,{className:"user-id",placeholder:r("ID"),autoFocus:!0,type:"text",name:"userID",value:w.userID,onChange:P,variant:"standard",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off",autoComplete:"off"},size:"small"}),Object(g.jsx)(Ht.a,{className:"passwd",placeholder:r("PASSWORD"),type:"password",name:"password",value:w.password,onChange:P,variant:"standard",required:!0,fullWidth:!0,size:"small"}),Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsxs)(q.a,{className:"inline",style:{lineHeight:"35px"},children:[Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{name:"remember",checked:w.remember,onChange:P}),label:r("REMEMBER_ME")}),window.ReactNativeWebView?Object(g.jsx)(J.a,{className:"ml-0",control:Object(g.jsx)(Wc.a,{name:"remember",disabled:!w.remember,checked:k,onClick:e=>{F(!k)}}),label:r("REMEMBER_PW")}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)(Xc,{style:{marginLeft:"auto",minWidth:"inherit",width:56,padding:0}})]}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"submit-btn","aria-label":"LOG IN",fullWidth:!0,type:"submit",children:r("LOGIN")})]}):1===j?z=Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"login-form",children:[Object(g.jsx)("img",{className:Object(G.a)(c.imgQrcode),width:"200",height:"200",alt:"qrcode",src:x}),Object(g.jsx)(Ht.a,{className:"totp",placeholder:r("TOTP_VALUE"),autoFocus:!0,type:"text",name:"regTotp",value:h,onChange:e=>_(e.target.value),variant:"standard",required:!0,fullWidth:!0,inputProps:{autoComplete:"off"},inputRef:i,size:"small",onKeyDown:e=>{13===e.keyCode&&h.trim().length>0&&6===h.trim().length&&Object(ut.i)(f,h).then((e=>{t.push("/wc/main")})).catch((e=>{e.error===qc.rb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===qc.gb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")}))}))}}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"submit-btn","aria-label":"TOTP Registere",type:"button",onClick:e=>{h.trim().length>0&&6===h.trim().length&&Object(ut.i)(f,h).then((e=>{t.push("/wc/main")})).catch((e=>{e.error===qc.rb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===qc.gb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")}))}))},children:r("REGISTER")})]}):2===j&&(z=Object(g.jsxs)("div",{name:"loginForm",noValidate:!0,className:"login-form",children:[Object(g.jsx)(sl,{open:R.open,question:R.question,fnHandleClose:()=>y({open:!1,question:""}),fnHandleComplete:()=>{w.remember?Zc.a.set("doc_id",w.userID,{expires:365}):Zc.a.remove("doc_id"),t.push("/wc/main")}}),Object(g.jsx)(Ht.a,{className:"",placeholder:r("TOTP_VALUE"),autoFocus:!0,type:"text",name:"totp",value:O,onChange:e=>p(e.target.value),variant:"standard",required:!0,size:"small",fullWidth:!0,inputRef:o,inputProps:{autoComplete:"off"},onKeyDown:e=>{13===e.keyCode&&Object(ut.a)(O).then((e=>{w.remember?Zc.a.set("doc_id",w.userID,{expires:365}):Zc.a.remove("doc_id"),t.push("/wc/main")})).catch((e=>{e.error===qc.rb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===qc.gb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")}))}))}}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"defalut","aria-label":"Paper OTP",type:"button",onClick:e=>{Object(ut.j)().then((e=>{y({open:!0,question:e})})).catch((e=>{e.error===qc.lb?l(Object(U.c)({message:r("PRINT_PASSWORD_ERROR_MESSAGE_1")})):(l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")})),console.error(e))}))},children:r("PRINT_PASSWORD")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"LOG IN",onClick:e=>{Object(ut.a)(O).then((e=>{w.remember?Zc.a.set("doc_id",w.userID,{expires:365}):Zc.a.remove("doc_id"),t.push("/wc/main")})).catch((e=>{e.error===qc.rb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===qc.gb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")}))}))},type:"button",children:r("CONFIRM")})]})]})),cl){if(!L.mobile_web_support)return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"info-wrapper",children:Object(g.jsxs)(Bc.a,{className:"content",children:[Object(g.jsx)("img",{className:"login-logo",src:"assets/brand/logo_login.svg",alt:"logo"}),Object(g.jsx)("p",{className:"info-text",children:r("DESKTOP_WEB_NOT_SUPPORT")})]})})})})})}else if(!L.desktop_web_support&&"/admin"!==a.pathname)return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"info-wrapper",children:Object(g.jsxs)(Bc.a,{className:"content",children:[Object(g.jsx)("img",{className:"login-logo",src:"assets/brand/logo_login.svg",alt:"logo"}),Object(g.jsx)("p",{className:"info-text",children:r("DESKTOP_WEB_NOT_SUPPORT")})]})})})})});return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsxs)(zc.a,{className:"login-wrapper",children:[Object(g.jsx)(Qc.a,{open:T,curPassword:w.password,fnHandleClose:()=>v(!1),fnHandleComplete:()=>{v(!1),H(j),W()}}),Object(g.jsxs)(Bc.a,{className:Object(G.a)(cl?c.mbLoginCardContent:"","login-content"),children:[Object(g.jsx)("img",{className:"login-logo",src:"assets/brand/logo_login.svg",alt:"logo"}),Object(g.jsx)("p",{className:"sub-title",children:A?"":r("brand:PRODUCT_NAME_ADMIN")}),z,cl?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"client-download-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(Ht.a,{select:!0,className:"",value:d,variant:"outlined",size:"small",fullWidth:!0,onChange:e=>b(e.target.value),children:[Object(g.jsx)(Q.a,{value:"-",children:r("DOWNLOAD_CLIENT")}),Object(g.jsx)(Q.a,{value:"online_win x64",children:"Windows x64"}),Object(g.jsx)(Q.a,{value:"online_mac_arm",children:"MAC"}),Object(g.jsx)(Q.a,{value:"online_mac_amd",children:"MAC(Intel)"}),L.support_windows_dlp?Object(g.jsx)(Q.a,{value:"windows_dlp",children:"Win DLP"}):""]})}),Object(g.jsx)("div",{children:Object(g.jsx)(I.a,{variant:"contained",color:"primary",className:"","aria-label":"Client downlaod",fullWidth:!0,type:"button",onClick:e=>{"online_win x86"===d?window.open("api/downloadClient?client_type=1&setup_type=2&setup_image_type=1","_blank"):"online_win x64"===d?window.open("api/downloadClient?client_type=2&setup_type=2&setup_image_type=1","_blank"):"win x86"===d?window.open("api/downloadClient?client_type=1&setup_type=1&setup_image_type=1","_blank"):"win x64"===d?window.open("api/downloadClient?client_type=2&setup_type=1&setup_image_type=1","_blank"):"mac"===d?window.open("api/downloadClient?client_type=3&setup_type=1&setup_image_type=1","_blank"):"online_mac_arm"===d?window.open("api/downloadClient?client_type=7&setup_type=2&setup_image_type=1","_blank"):"online_mac_amd"===d?window.open("api/downloadClient?client_type=6&setup_type=2&setup_image_type=1","_blank"):"windows_dlp"===d?window.open("api/downloadClient?client_type=9&setup_type=1&setup_image_type=1","_blank"):l(Object(U.d)({message:r("DOWNLOAD_ERROR")}))},children:Object(g.jsx)(ha.a,{className:"small",type:"client-download",fill:"#333d4b"})})})]})]})]})})})};var il={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/admin",component:rl},{path:"/login",component:rl},{path:"/mv",component:rl}]};const ol=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(jc.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var dl=function(e){let{history:t}=e;const a=ol(),c=Object(m.b)(),{t:l}=Object(jt.a)("docbase"),r=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),i=Object(m.c)((e=>{let{auth:t}=e;return t.initial})),{form:o,handleChange:d,resetForm:b}=Object(N.c)({userid:"",name:"",password:"",passwordConfirm:"",email:""}),[j,u]=s.a.useState(r?r.language:"korean"),[O,p]=s.a.useState(r?String(r.server_side_encryption):"true");Object(n.useEffect)((()=>{}),[c]),Object(n.useEffect)((()=>{i.administrator_setup&&t.push("/admin")}),[i]),Object(n.useEffect)((()=>{u(r.language),p(String(r.server_side_encryption))}),[r]);const h=e=>{c(Object(rn.bb)({name:e.target.name,value:e.target.value})).then((()=>{c(Object(rn.B)())}))};return Object(g.jsx)("div",{className:Object(G.a)(a.root,"flex flex-col flex-auto flex-shrink-0 items-center justify-center p-32"),children:Object(g.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Bc.a,{className:"flex flex-col items-center justify-center p-32",children:[Object(g.jsx)("img",{className:"w-128",src:"assets/brand/logo.svg",alt:"logo"}),Object(g.jsx)(k.a,{variant:"h6",className:"mt-10 mb-12 font-bold text-20 sm:text-24",color:"primary",children:l("CREATE_ADMIN")}),Object(g.jsxs)("form",{name:"registerForm",noValidate:!0,className:"flex flex-col justify-center w-full",onSubmit:function(e){var a,n,s,r;e.preventDefault(),(a=o.userid,n=o.password,s=o.name,r=o.email,new Promise(((e,t)=>{Object(Xa.d)(((c,l)=>{Ya.a.sendPost("/api/setAdministrator",{administrator_id:Va.a.encryptAES(c,a,"utf8","hex"),password:Va.a.encryptAES(c,n,"utf8","hex"),name:s,email:r||"",token:l}).then((a=>{a.result?e(a):(Ya.a.printError(a),t(a))}))}))}))).then((e=>{if(e.result)c(Qa(!0)),Object(ut.e)(o.userid,o.password,"").then((e=>{t.replace("/dashboard")})).catch((e=>{console.error(e)}));else{let t=l("ADMIN_ERROR_MESSAGE_1");e.error===qc.gb&&(t=l("ADMIN_ERROR_MESSAGE_2")),c(Qa(!1)),c(Object(U.d)({message:t,variant:"error"}))}})).catch((e=>{})),b()},children:[2===r.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Ht.a,{select:!0,className:"mb-16",name:"server_side_encryption",value:O,label:l("SERVER_ENCRYPT"),fullWidth:!0,onChange:e=>h(e),children:[Object(g.jsx)(Q.a,{value:"true",children:l("USE")}),Object(g.jsx)(Q.a,{value:"false",children:l("UNUSED")})]}),Object(g.jsxs)(Ht.a,{name:"language",value:j,label:l("LANGUAGE"),fullWidth:!0,onChange:e=>h(e),children:[Object(g.jsx)(Q.a,{value:"korean",children:"\ud55c\uad6d\uc5b4"}),Object(g.jsx)(Q.a,{value:"english",children:"English"})]})]}),Object(g.jsx)(Ht.a,{className:"mb-16",label:l("ID"),type:"text",name:"userid",value:o.userid,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Ht.a,{className:"mb-16",label:l("NAME"),autoFocus:!0,type:"text",name:"name",value:o.name,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Ht.a,{className:"mb-16",label:l("EMAIL"),type:"email",name:"email",value:o.email,onChange:d,variant:"outlined",fullWidth:!0,size:"small"}),Object(g.jsx)(Ht.a,{className:"mb-16",label:l("PASSWORD"),type:"password",name:"password",value:o.password,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Ht.a,{className:"mb-16",label:l("PASSWORD_CONFIRM"),type:"password",name:"passwordConfirm",value:o.passwordConfirm,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Hc.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"Register",disabled:!(o.userid.trim().length>0&&o.name.trim().length>0&&o.password.length>0&&o.password.length>3&&o.password===o.passwordConfirm),type:"submit",children:l("CREATE")})]})]})})})})})};var bl={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/register",component:dl}]},jl=a(31),ul=a(37),Ol=a.n(ul),pl=a(967),hl=a(60),ml=a(29);const _l=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function fl(e){const{t:t}=Object(jt.a)("docbase"),a=_l(),{usersObj:n}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[c,l]=s.a.useState(""),[r,i]=s.a.useState(""),[o,d]=s.a.useState(""),[b,j]=s.a.useState("");s.a.useEffect((()=>{l(""),i(""),d(""),j("")}),[e.open]);const u="(".concat(Object.keys(e.selectedUsers).map((e=>n[e].name)).join(", "),")");return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",children:t("USER_MENU_1")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(tl.a,{className:"text-1",id:"alert-dialog-slide-description",children:"".concat(u).concat(t("RESET_PASSWORD_TITLE"))}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("RESET_NEW_PASSWORD")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"password",placeholder:t("USER_ERROR_MESSAGE_5"),name:"password",fullWidth:!0,value:c,variant:"outlined",error:""!==o,helperText:o,onChange:e=>l(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("RESET_NEW_PASSWORD_CONFRIM")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"password",placeholder:t("USER_ERROR_MESSAGE_5"),name:"passwordConfirm",fullWidth:!0,value:r,variant:"outlined",error:""!==b,helperText:b,onChange:e=>i(e.target.value),size:"small"})})]}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:t("RESET_PASSWORD_CONTENT")}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>function(){let a="",n="";0===c.length&&(a=t("RESET_PASSWORD_ERROR_MESSAGE_1")),0===r&&(n=t("RESET_PASSWORD_ERROR_MESSAGE_2")),r!==c&&(a=t("RESET_PASSWORD_ERROR_MESSAGE_3"),n=t("RESET_PASSWORD_ERROR_MESSAGE_3")),d(a),j(n),""===a&&""===n&&(e.fnHandleOK(c),l(""),i(""))}(),children:t("CHANGE")})]})]})})]})})}var gl=a(366),El=a(970);const xl=Object(M.a)((e=>({titleWrapper:{"padding-bottom":"0"},actionsWrapper:{padding:"16px 24px 24px"},backdrop:{zIndex:100,color:"#fff"}})));function Nl(e){let{open:t,openBackdrop:a,users:n,selectedMap:c,fnHandleClose:l,fnHandleOK:r}=e;const{t:i}=Object(jt.a)("docbase"),o=xl(),{usersObj:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[j,u]=s.a.useState({});return s.a.useEffect((()=>{const e={};Object.keys(c).forEach((t=>{e[t]=""})),u(e)}),[c]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{open:t,onClose:l,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:o.titleWrapper,id:"alert-dialog-slide-title",children:i("DELETE_CONTENT_USER")}),Object(g.jsxs)(el.a,{className:"overflow-y-hidden",children:[Object(g.jsxs)(tl.a,{id:"alert-dialog-slide-description",children:[i("USER_DELETE_CONTENT_1"),Object(g.jsx)("br",{}),i("USER_DELETE_CONTENT_2")]}),Object.keys(c).map(((e,t)=>{const a=[{user_id:"",label:i("DELETE")},...n.filter((t=>t.user_id!==e))];return Object(g.jsxs)(Ot.a,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,mb:1,children:[Object(g.jsx)(Ot.a,{style:{width:"30%"},children:"".concat(b[e].name,"(").concat(b[e].user_id,")")}),Object(g.jsx)(El.a,{id:"handover-auto-".concat(t),options:a,getOptionLabel:e=>""===e?"":""===e.user_id?i("DELETE"):"".concat(e.name,"(").concat(e.user_id,")"),autoComplete:!0,includeInputInList:!0,value:j[e],onChange:(t,a)=>{a&&u(Object(d.a)(Object(d.a)({},j),{},{[e]:a}))},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{label:i("USER_SELECT"),variant:"outlined"})),fullWidth:!0,size:"small",sx:{maxWidth:300}})]},t)}))]}),Object(g.jsxs)(gl.a,{className:o.actionsWrapper,children:[Object(g.jsx)(Hc.a,{onClick:l,color:"primary",variant:"contained",className:"w-full mx-auto","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"primary",className:"w-full mx-auto",type:"button",onClick:()=>{r(j)},children:i("DELETE")})]}),Object(g.jsx)(yc.a,{className:o.backdrop,open:a,children:Object(g.jsx)(Cc.a,{color:"inherit"})})]})})}var Sl=a(90),Tl=a(86),vl=a(959),Rl=a(40),yl=a(960),Cl=a(548),Al=a(549),Ll=a(550),wl=a(961),Il=a(35);var Pl=e=>{let{folderType:t}=e;const{t:a}=Object(jt.a)("docbase");switch(t){case qc.F:return Object(g.jsx)(Je.a,{title:a("ORG_FOLDER"),arrow:!0,children:Object(g.jsx)(Il.a,{type:"org",className:"small"})});case qc.I:return Object(g.jsx)(Je.a,{title:a("SHARED_FOLDER"),arrow:!0,children:Object(g.jsx)(Il.a,{type:"shared",className:"small"})});case qc.G:return Object(g.jsx)(Je.a,{title:a("ORGSHARED_FOLDER"),arrow:!0,children:Object(g.jsx)(Il.a,{type:"org-shared",className:"small"})});case qc.E:return Object(g.jsx)(Je.a,{title:a("COLLECTOR_FOLDER"),arrow:!0,children:Object(g.jsx)(Il.a,{type:"folder",className:"small"})});case qc.H:return Object(g.jsx)(Je.a,{title:a("PRIVATE_FOLDER"),arrow:!0,children:Object(g.jsx)(Il.a,{type:"folder",className:"small"})});default:return""}};const Dl=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#fff",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:0},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0",flexWrap:"wrap"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{flex:"0 0 160px",cursor:"default",fontSize:13},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginLeft:"5px"},"&>.content>.row>.input-area":{flex:"1",cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",width:"100%",marginTop:2,fontSize:12,cursor:"default"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}},datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:185,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}}})));function Ml(e){const t=Dl(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),c=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),{folders:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),{showBackdrop:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.showBackdrop})),[i,o]=s.a.useState({}),[b,j]=s.a.useState(null),[u,O]=s.a.useState(!1),[p,h]=s.a.useState(""),[_,f]=s.a.useState(null),[E,x]=s.a.useState(l),[N,S]=s.a.useState([]),T=s.a.useRef(null),R=s.a.useRef(!0);s.a.useEffect((()=>{R.current?R.current=!1:e.open||S([])}),[e.open]),s.a.useEffect((()=>{l.length>0&&x(l)}),[l]),s.a.useEffect((()=>{x(l.filter((e=>!N.some((t=>t.fid===e.fid)))))}),[N]);function y(t){const s={};let l=!0;!t.userID||t.userID.trim().length<=0?(s.userID=n("USER_ERROR_MESSAGE_3"),l=!1):/[\\/:*?\\"<>|]/.test(t.userID.trim())&&(s.userID=n("PATTERN_ERROR_MESSAGE"),l=!1),(!t.name||t.name.trim().length<=0)&&(s.name=n("USER_ERROR_MESSAGE_4"),l=!1),!t.password||t.password.length<=0?(s.password=n("USER_ERROR_MESSAGE_5"),l=!1):!t.passwordConfirm||t.passwordConfirm.length<=0?(s.passwordConfirm=n("USER_ERROR_MESSAGE_6"),l=!1):t.password!==t.passwordConfirm?(s.passwordConfirm=n("USER_ERROR_MESSAGE_7"),l=!1):s.passwordConfirm="",c.OSR_support&&"-"===t.local_account&&(a(Object(U.c)({message:n("USER_ERROR_MESSAGE_20")})),l=!1),u&&null===b&&(a(Object(U.c)({message:n("EXPIRE_AT_ERROR_MESSAGE_1")})),l=!1),o(s),l&&!r&&(a(Object(rn.ab)({show:!0})),Object(cn.b)(t.userID,t.password,t.name,2,t.access_level,t.email,t.local_account?t.local_account:"true",t.allow_multiple_logins&&"1"===t.allow_multiple_logins?0:t.allow_multiple_logins,u?bt.a.getDateString(b):"",t.dataleak_control?t.dataleak_control:"false").then((async s=>{N.length>0&&await(async(e,t,s)=>{a(Object(rn.ab)({show:!0}));try{let a={};for(let n=0;n{e.error===qc.gb?a(Object(U.c)({message:n("USER_ERROR_MESSAGE_8")})):e.error===qc.kb?a(Object(U.c)({message:n("USER_ERROR_MESSAGE_10")})):e.error===qc.ib&&a(Object(U.c)({message:n("USER_ERROR_MESSAGE_13")}))})).finally((()=>{a(Object(rn.ab)({show:!1}))})))}function C(e){S((t=>t.some((t=>t.fid===e.fid))?t.filter((t=>t.fid!==e.fid)):[...t,e]))}const A=c.partially_applied&&!e.isDlp,L=2!==c.menu_support_type&&!e.isDlp;return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:t.title,id:"form-dialog-title",children:n("USER_ADD")}),Object(g.jsx)(Sl.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:e=>y(e),validationErrors:i,ref:T,children:Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("ENTER_ID"),type:"text",name:"userID",variant:"outlined",validations:{idCheck:(e,t)=>(t?t.trim().length>30?o({userID:n("USER_ERROR_MESSAGE_9")}):/[\\/:*?\\"<>|]/.test(t.trim())?o({userID:n("PATTERN_ERROR_MESSAGE")}):o({userID:""}):o({userID:""}),!0)},autoFocus:!0,required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("ENTER_NAME"),type:"name",name:"name",variant:"outlined",validations:{check:(e,t)=>!(t&&t.trim().length>30)||n("USER_ERROR_MESSAGE_11")},required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("EMAIL")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("ENTER_EMAIL"),type:"email",name:"email",variant:"outlined",fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("PASSWORD")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("ENTER_PASSWORD"),type:"password",name:"password",variant:"outlined",showError:!0,required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("PASSWORD_CONFIRM")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("ENTER_PASSWORD_CONF"),type:"password",name:"passwordConfirm",variant:"outlined",required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("ACCESS_LEVEL")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Tl.b,{className:"w-full",name:"access_level",label:"",value:"10000",variant:"outlined",size:"small",children:[Object(g.jsx)(Q.a,{value:"10000",children:"-"}),Object(g.jsx)(Q.a,{value:"1",children:"1"}),Object(g.jsx)(Q.a,{value:"2",children:"2"}),Object(g.jsx)(Q.a,{value:"3",children:"3"}),Object(g.jsx)(Q.a,{value:"4",children:"4"}),Object(g.jsx)(Q.a,{value:"5",children:"5"})]})})]}),c.OSR_support?Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("LOCAL_ACCOUNT")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Tl.b,{className:"w-full",name:"local_account",label:"",value:"-",variant:"outlined",size:"small",children:[Object(g.jsx)(Q.a,{value:"-",children:"-"}),Object(g.jsx)(Q.a,{value:"true",children:n("YES")}),Object(g.jsx)(Q.a,{value:"false",children:n("NO")})]})}),Object(g.jsx)("div",{className:"hint",children:n("LOCAL_ACCOUNT_HELP")})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("MULTIPLE_LOGINS")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Tl.b,{className:"w-full",name:"allow_multiple_logins",label:"",value:"0",variant:"outlined",size:"small",children:[Object(g.jsx)(Q.a,{value:0,children:n("UNUSED")}),Object(g.jsx)(Q.a,{value:"2",children:"2"}),Object(g.jsx)(Q.a,{value:"3",children:"3"}),Object(g.jsx)(Q.a,{value:"4",children:"4"}),Object(g.jsx)(Q.a,{value:"5",children:"5"})]})})]}),A?Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("DATALEAK_CONTROL_USER")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Tl.b,{className:"w-full",name:"dataleak_control",label:"",value:"-",variant:"outlined",size:"small",children:[Object(g.jsx)(Q.a,{value:"false",children:n("NO")}),Object(g.jsx)(Q.a,{value:"true",children:n("YES")})]})})]}):Object(g.jsx)(g.Fragment,{}),L?Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("EXPIRE_AT")})}),Object(g.jsxs)("div",{className:"input-area flex",style:{gab:1,alignItems:"center"},children:[Object(g.jsx)(Tl.a,{name:"use-expire",value:u,onChange:e=>O(e.target.checked),style:{"&>.MuiFormControlLabel-root":{marginLeft:"-5px"}}}),Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disabled:!u,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:b,onChange:e=>{isNaN(e.getTime())||null!==b&&b.getTime()===e.getTime()||j(e)},KeyboardButtonProps:{"aria-label":"change date start"}})})]})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:"row",style:{flexDirection:"column",alignItems:"flex-start","&>div":{width:"100%"}},children:[Object(g.jsx)("div",{className:"title",style:{flex:0},children:Object(g.jsx)("span",{children:n("PERM_FOLDER_TITLE")})}),Object(g.jsxs)("div",{className:"input-area",style:{width:"100%"},children:[Object(g.jsxs)("div",{style:{display:"flex",marginBottom:5},children:[Object(g.jsx)(El.a,{id:"autocomplete-permission-search",options:E,getOptionLabel:e=>e.path?e.folder_type===qc.G?e.path.substring(1).replace("".concat("korean"===c.language?"\uc870\uc9c1/":"Organization/"),"[".concat(n("ORGSHARED"),"]")):e.path.substring(1):e.path,noOptionsText:n("PERM_NO_FOLDER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{f(t||null)},inputValue:p,onInputChange:(e,t)=>{h(t)},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{_&&null!==_&&13===e.keyCode&&C(_)}})),fullWidth:!0,size:"small"}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{_&&null!==_&&C(_)},style:{width:"auto",marginLeft:10},children:n("ADD")})})]}),Object(g.jsx)("div",{children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:n("FOLDER_NAME")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",style:{width:40,minWidth:40},children:n("DELETE")})]})}),Object(g.jsx)(wl.a,{children:N&&N.length>0?N.map(((e,t)=>e.folder_type!==qc.E&&e.folder_type!==qc.H?Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Pl,{folderType:e.folder_type}),Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:e.folder_type===qc.G||e.folder_type===qc.F?e.disp_path:e.path,children:Object(g.jsx)("span",{className:"folder-name",children:bt.a.pathToName(e.disp_path)})})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:n("PERM_DELETE"),className:"font-size-initial",arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"release_permission",onClick:t=>S((t=>t.filter((t=>t.fid!==e.fid)))),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}):Object(g.jsx)(g.Fragment,{}))):Object(g.jsx)(g.Fragment,{})})]})})]})]}),Object(g.jsxs)("div",{className:t.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n("ADD")})]})]})})})]})})}var kl=a(968),Gl=a(962),Ul=a(905);const Fl=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#fff",padding:"0px 30px 0px",color:"#353b48",height:"calc(100vh - 375px)","& .type-tabs":{width:"100%",display:"flex",alignItems:"center",padding:0,"& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:30,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}}},datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:180,textAlign:"center",padding:"9.5px 0"},"& input:hover":{borderColor:"#000"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},hint_span:{width:"100%",marginTop:2,fontSize:12,color:"#9f9f9f",cursor:"default"}})));function Wl(e){const t=Fl(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),c=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),{usersObj:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{folders:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[i,o]=s.a.useState(!1),[b,j]=s.a.useState(""),[u,O]=s.a.useState(null),[p,h]=s.a.useState(r||[]),[_,f]=s.a.useState([]),[E,x]=s.a.useState(0),N=s.a.useRef(!0),[S,T]=s.a.useState({user_id:"",name:"",email:"",access_level:1e4,no_sync_osr:!1,local_account:!0,allow_multiple_logins:0,locked:!1,expire_at:null,support_dynamic_security_mode:!1,dataleak_control:!1,allow_takeout_private_folder:!1,allow_takeout:!1,privateSizeUnit:!1,privateMaxSize:0,collectorSizeUnit:!1,collectorMaxSize:0});s.a.useEffect((()=>{(async()=>{let t={user_id:"",name:"",access_level:1e4,email:"",privateSize:0,collectorSize:0,local_account:!1,no_sync_osr:!1,locked:!1,allow_takeout:0,allow_takeout_private_folder:!0,expire_at:null,support_dynamic_security_mode:!1,dataleak_control:!1,privateSizeUnit:!1,privateMaxSize:0,collectorSizeUnit:!1,collectorMaxSize:0,collectorPath:"",privatePath:""};if(e.currentUserID&&""!==e.currentUserID){t=Object(d.a)({},l[e.currentUserID]),t.expire_at&&""!==t.expire_at&&(t.expire_at=bt.a.getDateStringToDate(t.expire_at));const a=await Object(cn.o)(e.currentUserID);a.privateSize&&a.privateSize>=1024?(t.privateMaxSize=Math.floor(a.privateSize/1024),t.privateSizeUnit=!1):(t.privateMaxSize=a.privateSize||0,t.privateSizeUnit=!0),a.collectorSize&&a.collectorSize>=1024?(t.collectorMaxSize=Math.floor(a.collectorSize/1024),t.collectorSizeUnit=!1):(t.collectorMaxSize=a.collectorSize||0,t.collectorSizeUnit=!0),t.privateSize=a.privateSize,t.collectorSize=a.collectorSize,t.privatePath=a.privatePath,t.collectorPath=a.collectorPath,T(t),f(a.permissions)}})()}),[e.currentUserID]),s.a.useEffect((()=>{N.current?N.current=!1:e.open||(h(r),x(0))}),[e.open]),s.a.useEffect((()=>{r.length>0&&h(r.filter((e=>!_.some((t=>t.fid===e.fid)))))}),[r]),s.a.useEffect((()=>{h((e=>e.filter((e=>!(null!==_&&void 0!==_&&_.some((t=>t.fid===e.fid)))))))}),[_]);const y=(e,t)=>{if("expire_at"===e.target.name)console.log(t),isNaN(t.getTime())||null!==S.expire_at&&""!==S.expire_at&&S.expire_at.getTime()===t.getTime()||T(Object(d.a)(Object(d.a)({},S),{},{expire_at:t}));else if("private_capacity_unit"===e.target.name){let e=0;e=S.privateSizeUnit?1024*S.privateMaxSize:S.privateMaxSize<1024?S.privateMaxSize:Math.floor(S.privateMaxSize/1024),T(Object(d.a)(Object(d.a)({},S),{},{privateSizeUnit:!S.privateSizeUnit,privateMaxSize:e}))}else if("collect_capacity_unit"===e.target.name){let e=0;e=S.collectorSizeUnit?1024*S.collectorMaxSize:S.collectorMaxSize<1024?S.collectorMaxSize:Math.floor(S.collectorMaxSize/1024),T(Object(d.a)(Object(d.a)({},S),{},{collectorSizeUnit:!S.collectorSizeUnit,collectorMaxSize:e}))}else T(Object(d.a)(Object(d.a)({},S),{},{[e.target.name]:e.target.value}))},C=async t=>{if(o(!0),"expire_at_release"===t)return Object(cn.p)(l[e.currentUserID],t,"").then((e=>{a(Object(U.d)({message:n("EXPIRE_AT_RELEASE_MESSAGE_2")})),T(Object(d.a)(Object(d.a)({},S),{},{expire_at:null}))})).catch((e=>{a(Object(U.c)({message:n("FAILED")}))})).finally((()=>{o(!1)})),!1;if(""===S.name)return a(Object(U.c)({message:n("USER_ERROR_MESSAGE_4")})),!1;const s=S.privateSizeUnit?S.privateMaxSize:1024*S.privateMaxSize,c=S.collectorSizeUnit?S.collectorMaxSize:1024*S.collectorMaxSize;let r=!1;return S.privateSize!==s&&(Object(ln.E)(S.privatePath,s).then((()=>{a(Object(U.d)({message:n("CHANGE_CAPACITY_MESSAGE_1")}))})).catch((e=>{a(Object(U.c)({message:n("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),r=!0),S.collectorSize!==c&&(Object(ln.E)(S.collectorPath,c).then((()=>{a(Object(U.d)({message:n("CHANGE_CAPACITY_MESSAGE_1")}))})).catch((e=>{a(Object(U.c)({message:n("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),r=!0),e.fnChangeSize(e.currentUserID,1024*s*1024,1024*c*1024),S.expire_at&&""!==S.expire_at&&(S.expire_at=bt.a.getDateString(S.expire_at)),Object(cn.q)(S).then((()=>{a(Object(U.d)({message:n("USER_MESSAGE_2")})),a(Object(cn.h)()),e.fnHandleClose()})).catch((e=>{a(Object(U.c)({message:n("FAILED")}))})).finally((()=>{o(!1)})),!0},A=async t=>{a(Object(rn.ab)({show:!0}));try{if(t.folder_type===qc.F&&t.org_type===qc.ab)await Object(ln.F)(t.fid,S.user_id,qc.D,qc.Hb,qc.M,0,qc.z);else{const e=await Object(ln.n)(t.fid);if(!e.find((e=>e.obj_type===qc.eb&&e.obj_id===S.user_id))){const a={name:"".concat(S.name,"(").concat(S.user_id,")"),obj_id:S.user_id,obj_type:qc.eb,file_permission:qc.D,trash_permission:qc.Hb,manage_type:qc.M,manage_priority:0,file_delete_permission:qc.z,securedoc_permission:qc.fb};await Object(ln.G)(t.fid,[...e,a])}}a(Object(U.d)({message:n("PERM_MESSAGE_1")}));const s=await Object(cn.i)(S.user_id);f(s),e.fnChangeFolderPerm()}catch(s){s.error===qc.gb&&a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_4")})),console.error(s)}finally{a(Object(rn.ab)({show:!1}))}},L=async(e,t,s,c,l,r,i,o)=>{a(Object(rn.ab)({show:!0}));try{if(r===qc.F||r===qc.I||r===qc.G||r===qc.H||r===qc.E){if(i===qc.ab||r===qc.H||r===qc.E){await Object(ln.F)(e,S.user_id,t,s,c,l,o);const a=await Object(cn.i)(S.user_id);f(a)}else{const a=(await Object(ln.n)(e)).map((e=>e.obj_type===qc.eb&&e.obj_id===S.user_id?Object(d.a)(Object(d.a)({},e),{},{file_permission:t,trash_permission:s,manage_type:c,manage_priority:l,file_delete_permission:o,securedoc_permission:qc.fb}):e));await Object(ln.G)(e,a)}a(Object(U.d)({message:n("PERM_MESSAGE_1")}));const b=await Object(cn.i)(S.user_id);f(b)}else a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_1")}))}catch(b){console.error(b)}finally{a(Object(rn.ab)({show:!1}))}},w=async(t,s,c)=>{a(Object(rn.ab)({show:!0}));try{if(s===qc.H||s===qc.E)return void a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_5")}));if(s===qc.F&&c===qc.ab){await Object(ln.u)(t,S.user_id);const a=await Object(cn.i)(S.user_id);f(a),e.fnChangeFolderPerm()}else{const s=await Object(ln.n)(t),c=[];let l=!1;if(s.forEach((e=>{e.obj_type===qc.eb&&e.obj_id===S.user_id?l=!0:c.push(e)})),l){await Object(ln.G)(t,c);const s=await Object(cn.i)(S.user_id);f(s),a(Object(U.d)({message:n("PERM_MESSAGE_2")})),e.fnChangeFolderPerm()}else a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_6")}))}}catch(l){console.error(l),l.error===qc.gb&&a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_2")}))}finally{a(Object(rn.ab)({show:!1}))}},P=e=>{if(e.manage_type!==qc.L)return Object(g.jsx)(Je.a,{title:n("MANAGE_TYPE_NONE"),placement:"left",arrow:!0,children:Object(g.jsx)(I.a,{className:"perm-icon-btn",onClick:e=>{},children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})})});let a="";return a=0===e.manage_priority?n("ORG_MANAGER"):"".concat(n("ORG_SUB_MANAGER"),"-").concat(e.manage_priority),Object(g.jsx)("div",{className:t.manage_type,children:Object(g.jsx)(I.a,{children:Object(g.jsx)(Je.a,{arrow:!0,placement:"left",title:a,children:Object(g.jsxs)(Ht.a,{select:!0,className:Object(G.a)(t.manage_priority,"manage-priority-selecte"),name:"manage_type",value:e.manage_priority>9?9:e.manage_priority,onChange:t=>L(e.fid,e.file_permission,e.trash_permission,-1===t.target.value?qc.M:e.manage_type,t.target.value,e.folder_type,e.org_type,e.file_delete_permission),SelectProps:{MenuProps:{classes:{paper:t.menuPaper}}},fullWidth:!0,children:[Object(g.jsx)(Q.a,{className:"justify-center",value:-1,children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:0,children:Object(g.jsx)(ha.a,{className:"",type:"manager-0",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:1,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:2,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-2",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:3,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-3",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:4,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-4",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:5,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-5",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:6,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-6",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:7,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-7",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:8,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-8",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:9,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-9",fill:"#202020"})})]})})})})},D=c.dataleak_control&&!e.isDlp,M=c.partially_applied&&!e.isDlp;return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(yc.a,{className:t.backdrop,open:i,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)($c.a,{className:t.title,id:"form-dialog-title",children:S.user_id}),Object(g.jsxs)(el.a,{className:t.body,children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:E,onChange:(e,t)=>{x(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:n("USER_INFO")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:n("PERM_INFO")})]})}),0===E?Object(g.jsxs)("div",{children:[Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("NAME")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:S.name,onChange:e=>y(e)})})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("EMAIL")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"email",fullWidth:!0,value:S.email,onChange:e=>y(e)})})]}),e.isDlp?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("ACCESS_LEVEL")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"access_level",variant:"outlined",name:"access_level",className:"w-full",value:S.access_level,onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:1e4,children:"-"}),Object(g.jsx)(Q.a,{value:1,children:"1"}),Object(g.jsx)(Q.a,{value:2,children:"2"}),Object(g.jsx)(Q.a,{value:3,children:"3"}),Object(g.jsx)(Q.a,{value:4,children:"4"}),Object(g.jsx)(Q.a,{value:5,children:"5"})]})})]}),c.OSR_support?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("NO_SYNC_OSR")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"no_sync_osr",name:"no_sync_osr",variant:"outlined",className:"w-full",value:S.no_sync_osr.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("NO_SYNC_OSR")}),Object(g.jsx)(Q.a,{value:"false",children:n("SYNC_OSR")})]})})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("LOCAL_ACCOUNT")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"local_account",name:"local_account",variant:"outlined",className:"w-full",value:S.local_account.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("MANUAL")}),Object(g.jsx)(Q.a,{value:"false",children:n("AUTO")})]})})]})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("MULTIPLE_LOGINS")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"allow_multiple_logins",name:"allow_multiple_logins",variant:"outlined",className:"w-full",value:S.allow_multiple_logins,onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:0,children:n("UNUSED")}),Object(g.jsx)(Q.a,{value:2,children:"2"}),Object(g.jsx)(Q.a,{value:3,children:"3"}),Object(g.jsx)(Q.a,{value:4,children:"4"}),Object(g.jsx)(Q.a,{value:5,children:"5"}),Object(g.jsx)(Q.a,{value:10,children:"10"}),Object(g.jsx)(Q.a,{value:20,children:"20"}),Object(g.jsx)(Q.a,{value:30,children:"30"}),Object(g.jsx)(Q.a,{value:50,children:"50"}),Object(g.jsx)(Q.a,{value:100,children:"100"})]})})]}),2===c.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("USER_LOCK")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"locked",name:"locked",variant:"outlined",className:"w-full",value:S.locked.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("LOCK")}),Object(g.jsx)(Q.a,{value:"false",children:n("UNLOCK")})]})})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("EXPIRE_AT")})}),Object(g.jsxs)("div",{className:"inputField",children:[Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"expire_at",name:"expire_at",maxDate:new Date("2999-12-31"),value:S.expire_at,onChange:e=>{e&&!isNaN(e.getTime())?y({target:{name:"expire_at"}},e):y({target:{name:"expire_at"}},S.expire_at)},KeyboardButtonProps:{"aria-label":"change date start"}})}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("EXPIRE_AT_RELEASE"),content:n("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{C("expire_at_release")}})}))},children:n("RELEASE")})]})]}),e.isDlp?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("DYNAMIC_SECURITY_MODE")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"support_dynamic_security_mode",name:"support_dynamic_security_mode",variant:"outlined",className:"w-full",value:S.support_dynamic_security_mode.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("USE")}),Object(g.jsx)(Q.a,{value:"false",children:n("UNUSED")})]})}),Object(g.jsx)("div",{className:t.hint_span,children:n("USER_DYNAMIC_SECURITY_MODE_HELP_TEXT")})]})]}),M?Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("DATALEAK_CONTROL_USE")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"dataleak_control",name:"dataleak_control",variant:"outlined",className:"w-full",value:S.dataleak_control.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("USE")}),Object(g.jsx)(Q.a,{value:"false",children:n("UNUSED")})]})})]}):Object(g.jsx)(g.Fragment,{}),D?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("ALLOW_TAKEOUT_PRIVATE_FOLDER")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"allow_takeout_private_folder",name:"allow_takeout_private_folder",variant:"outlined",className:"w-full",value:S.allow_takeout_private_folder,onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("PERMIT")}),Object(g.jsx)(Q.a,{value:"false",children:n("UNAVAILABLE")})]})})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("ALLOW_TAKEOUT_FOLDER")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(te.a,{id:"allow_takeout",name:"allow_takeout",variant:"outlined",className:"w-full",value:S.allow_takeout.toString(),onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:1,children:n("PERMIT")}),Object(g.jsx)(Q.a,{value:0,children:n("UNAVAILABLE")}),Object(g.jsx)(Q.a,{value:2,children:n("FOLLOWS_FOLDER_MASTER_POLICIES")})]})})]})]}):Object(g.jsx)(g.Fragment,{}),e.isDlp?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("PRIVATE_MAX_CAPACITY")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Ul.a,{type:"number",name:"privateMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"private_capacity_unit",name:"private_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:S.privateSizeUnit,onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:S.privateMaxSize,onChange:e=>y(e)})}),Object(g.jsx)("div",{className:t.hint_span,children:n("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("COLLECT_MAX_CAPACITY")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Ul.a,{type:"number",name:"collectorMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsxs)(te.a,{id:"collect_capacity_unit",name:"collect_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:S.collectorSizeUnit,onChange:e=>y(e),children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:S.collectorMaxSize,onChange:e=>y(e)})}),Object(g.jsx)("div",{className:t.hint_span,children:n("FOLDER_SIZE_HELP_TEXT")})]})]})]}):Object(g.jsx)("div",{children:Object(g.jsxs)("div",{className:"row",style:{flexDirection:"column",alignItems:"flex-start","&>div":{width:"100%"}},children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("PERM_FOLDER_TITLE")})}),Object(g.jsxs)("div",{className:"input-area",children:[Object(g.jsxs)("div",{style:{display:"flex",marginBottom:5},children:[Object(g.jsx)(El.a,{id:"autocomplete-permission-search",options:p,getOptionLabel:e=>e.path?e.folder_type===qc.G?e.path.substring(1).replace("".concat("korean"===c.language?"\uc870\uc9c1/":"Organization/"),"[".concat(n("ORGSHARED"),"]")):e.path.substring(1):e.path,noOptionsText:n("PERM_NO_FOLDER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{O(t||null)},inputValue:b,onInputChange:(e,t)=>{j(t)},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{u&&null!==u&&13===e.keyCode&&A(u)}})),fullWidth:!0,size:"small"}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{A(u)},style:{width:"auto",marginLeft:10},children:n("ADD")})})]}),Object(g.jsx)("div",{children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:n("FOLDER_NAME")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:n("MANAGE_PRIORITY")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:n("PERM_FILE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:n("PERM_TRASH")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:n("PERM_FILE_DELETE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:n("PERM_DELETE")})]})}),Object(g.jsx)(wl.a,{children:_&&_.length>0?_.map(((e,t)=>e.file_permission===qc.B?Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Pl,{folderType:e.folder_type}),Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:e.folder_type===qc.G||e.folder_type===qc.F?e.disp_path:e.path,children:Object(g.jsx)("span",{className:"folder-name",children:e.folder_type===qc.E||e.folder_type===qc.H?bt.a.findFolderType(e.folder_type):bt.a.pathToName(e.disp_path)})})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center"}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.B?n("PERM_NONE"):n("PERM_NOT_NONE"),children:Object(g.jsx)(I.a,{onClick:t=>w(e.fid,e.folder_type,e.org_type),children:e.file_permission===qc.B?Object(g.jsx)(Il.a,{type:"visibility_off",className:""}):Object(g.jsx)(Il.a,{type:"visibility",className:""})})})})]}):Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Pl,{folderType:e.folder_type}),Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:e.folder_type===qc.G||e.folder_type===qc.F?e.disp_path:e.path,children:Object(g.jsx)("span",{className:"folder-name",children:e.folder_type===qc.E||e.folder_type===qc.H?bt.a.findFolderType(e.folder_type):bt.a.pathToName(e.disp_path)})})]})}),Object(g.jsx)(Ll.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:P(e)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{className:"font-size-initial",arrow:!0,title:e.file_permission===qc.C?n("PERM_READ"):n("PERM_READ_WRITE"),children:Object(g.jsx)(I.a,{onClick:t=>L(e.fid,e.file_permission===qc.C?qc.D:qc.C,e.trash_permission,e.manage_type,e.manage_priority,e.folder_type,e.org_type,e.file_delete_permission),children:e.file_permission===qc.C?Object(g.jsx)(Il.a,{type:"readonly",className:""}):Object(g.jsx)(Il.a,{type:"write",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{className:"font-size-initial",arrow:!0,title:e.trash_permission===qc.Hb?n("PERM_TRASH_IMPOSSIBLE"):n("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>L(e.fid,e.file_permission,e.trash_permission===qc.Hb?qc.Ib:qc.Hb,e.manage_type,e.manage_priority,e.folder_type,e.org_type,e.file_delete_permission),children:e.trash_permission===qc.Hb?Object(g.jsx)(Il.a,{type:"trash-delete",className:""}):Object(g.jsx)(Il.a,{type:"trash",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_delete_permission===qc.z?n("PERM_FILE_DELETE_POSSIBLE"):n("PERM_FILE_DELETE_IMPOSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>L(e.fid,e.file_permission,e.trash_permission,e.manage_type,e.manage_priority,e.folder_type,e.org_type,e.file_delete_permission===qc.z?qc.A:qc.z),children:e.file_delete_permission===qc.z?Object(g.jsx)(Il.a,{type:"file-delete-allow",className:""}):Object(g.jsx)(Il.a,{type:"file-delete",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:n("PERM_DELETE"),className:"font-size-initial",arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"release_permission",onClick:t=>w(e.fid,e.folder_type,e.org_type),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})})]}),Object(g.jsx)(gl.a,{style:{padding:0},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",onClick:()=>C("all"),children:n("CHANGE")})]})})]})})}const Hl=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function zl(e){let{open:t,fnHandleClose:a,users:n}=e;const{t:c}=Object(jt.a)("docbase"),l=Hl(),r=Object(m.b)(),[i,o]=s.a.useState(""),[d,b]=s.a.useState("");s.a.useEffect((()=>{o(""),b("")}),[t]);return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:l.root,open:t,onClose:a,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:l.title,id:"form-dialog-title",children:c("\uba54\uc138\uc9c0 \uc804\uc1a1")}),Object(g.jsx)(el.a,{className:l.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("\uc81c\ubaa9")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"msg",fullWidth:!0,value:d,variant:"outlined",onChange:e=>b(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("\ub0b4\uc6a9")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"msg",fullWidth:!0,value:i,variant:"outlined",onChange:e=>o(e.target.value),size:"small",multiline:!0,rows:6})})]}),Object(g.jsx)("div",{className:"row",children:(()=>{const e=n.length;return 0===e?c("\uc804\uccb4 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uba54\uc138\uc9c0\ub97c \uc804\uc1a1\ud569\ub2c8\ub2e4"):e<5?"".concat(n.join(", ")).concat(c("\uc5d0\uac8c \uc804\uc1a1\ud569\ub2c8\ub2e4")):"".concat(n[0]," ").concat(c("\uc678")," ").concat(e-1).concat(c("\uba85\uc5d0\uac8c \uc804\uc1a1\ud569\ub2c8\ub2e4"))})()}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>(async()=>{try{const e=await Object(on.V)(d,i,n);r(e?Object(U.d)({message:c("\uba54\uc138\uc9c0 \uc804\uc1a1 \uc694\uccad \uc131\uacf5")}):Object(U.d)({message:c("\uba54\uc138\uc9c0 \uc804\uc1a1 \uc694\uccad \uc2e4\ud328")}))}catch(e){console.error(e)}finally{a()}})(),children:c("\uc804\uc1a1")})]})]})})]})})}var Bl=a(978);var Kl=e=>{let{isUpdatable:t,id:a,className:n,align:s,name:c,value:l,items:r,onChange:i}=e;const{t:o}=Object(jt.a)("docbase");return t?Object(g.jsx)(Ll.a,{className:Object(G.a)(n,"customCell"),align:s,component:"td",scope:"row",children:Object(g.jsx)(te.a,{id:a,name:c,variant:"standard",className:"w-full",value:l,onChange:e=>i(e),children:r.map((e=>Object(g.jsx)(Q.a,{value:e.value,children:o(e.title)})))})}):Object(g.jsx)(Ll.a,{id:a,className:Object(G.a)(n,"customCell"),align:s,component:"td",scope:"row",children:l})},Yl=s.a.memo((e=>{let{customCols:t,data:a,order:n,handleRequestSort:c,selectedMap:l,popUserModify:r,selectUser:i,changedSize:o,handleChange:b,selectAll:j}=e;const{sysConfigure:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{users:O}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{t:p}=Object(jt.a)("docbase"),h=Object.keys(l),[_,f]=s.a.useState(null);return s.a.useEffect((()=>{_||(async()=>{const e=await Object(on.D)(),t={};e.privates.forEach((e=>{const a=Object.keys(e);t[a[0]]={private:e[a[0]].capacity}})),e.collects.forEach((e=>{const a=Object.keys(e);t[a[0]]=Object(d.a)(Object(d.a)({},t[a[0]]),{},{collect:e[a[0]].capacity})})),f(t)})()}),[_]),s.a.useEffect((()=>{if(_&&""!==o.id){const e=_[o.id];e.private===o.privateSize&&e.collect===o.collectSize||f(Object(d.a)(Object(d.a)({},_),{},{[o.id]:{private:o.privateSize,collect:o.collectSize}}))}}),[o]),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:t.map((e=>u.OSR_support||"no_sync_osr"!==e.id&&"local_account"!==e.id?2===u.menu_support_type&&"allow_multiple_logins"===e.id?"":"check_id"===e.id?Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:h.length>0&&h.lengthj(),onClick:e=>j()})}):Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:n.id===e.id&&n.direction,children:e.sort?Object(g.jsx)(Bl.a,{active:n.id===e.id,direction:n.direction,onClick:t=>c(t,e.id),children:p(e.labelKey)}):p(e.labelKey)},e.id):""),void 0)})}),Object(g.jsx)(wl.a,{children:a.map((e=>{const a=e.user_id in l;return Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,children:t.map((t=>"check_id"===t.id?Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>i(e.user_id)})}):"user_id"===t.id?Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)("span",{className:"tableLink",onClick:t=>{t.stopPropagation(),r(e.user_id)},children:e.user_id})}):"private_capacity"===t.id||"collector_capacity"===t.id?Object(g.jsx)(Ll.a,{id:t.id,name:t.name,className:t.className,align:t.align,children:Object(g.jsx)("span",{className:"",children:(()=>{const a=null===_||void 0===_?void 0:_[e.user_id];if(!a)return"0 MByte";const n=e=>e?e>=1073741824?"".concat(Math.floor(e/1024/1024/1024)," GByte"):"".concat(e," MByte"):"0 MByte";return"yang"===e.user_id&&console.log(a),"private_capacity"===t.id?n(a.private):"collector_capacity"===t.id?n(a.collect):"0 MByte"})()})}):"version"===t.id?Object(g.jsxs)(Ll.a,{id:t.id,name:t.name,className:t.className,align:t.align,children:[Object(g.jsx)("span",{children:e[t.id]}),""!==e[t.id]&&0===e.recommend_type?Object(g.jsx)("span",{className:"badge",children:p("LOCK")}):""]}):"orgs"===t.id?Object(g.jsx)(Ll.a,{id:t.id,name:t.name,className:t.className,align:t.align,children:e[t.id].map(((a,n)=>0===e[t.id].length?"":Object(g.jsx)(Je.a,{title:a.disp_path,arrow:!0,interactive:!0,placement:"bottom",children:Object(g.jsx)("span",{children:0===n?bt.a.splitLastDelimiterString(a.disp_path):" | ".concat(bt.a.splitLastDelimiterString(a.disp_path))})})))}):Object(g.jsx)(Kl,{id:t.id,name:t.name,className:t.className,align:t.align,isUpdatable:t.isUpdatable,value:e[t.id],onChange:t=>{b(t,e.user_id)},items:t.items})))},e.user_id)}))})]})}));const Vl=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!0},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"version",align:"left",className:"left",disablePadding:!1,labelKey:"CLIENT_INFO_VERSION",sort:!0,isUpdatable:!1,default:!1},{id:"mac_address",align:"center",className:"center",disablePadding:!1,labelKey:"MAC_ADDRESS",sort:!0,isUpdatable:!1,default:!1},{id:"ip_address",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_IP",sort:!0,isUpdatable:!1,default:!1},{id:"installed_at",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_INSTALL_AT",sort:!0,isUpdatable:!1,default:!1},{id:"last_logged_at",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_LAST_LOGIN_AT",sort:!0,isUpdatable:!1,default:!1},{id:"local_account",name:"local_account",align:"center",className:"",disablePadding:!1,labelKey:"LOCAL_ACCOUNT",sort:!0,isUpdatable:!0,items:[{value:!0,title:"MANUAL"},{value:!1,title:"AUTO"}],default:!1}],Xl=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"no_sync_osr",name:"no_sync_osr",align:"center",className:"",disablePadding:!1,labelKey:"NO_SYNC_OSR",sort:!0,isUpdatable:!0,items:[{value:!0,title:"NO_SYNC_OSR"},{value:!1,title:"SYNC_OSR"}],default:!1},{id:"access_level",name:"access_level",align:"center",className:"",disablePadding:!1,labelKey:"ACCESS_LEVEL",sort:!0,isUpdatable:!0,items:[{value:1e4,title:"-"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"},{value:4,title:"4"},{value:5,title:"5"}],default:!1},{id:"locked",name:"locked",align:"center",className:"",disablePadding:!1,labelKey:"USER_LOCK",sort:!0,isUpdatable:!0,items:[{value:!0,title:"LOCK"},{value:!1,title:"UNLOCK"}],default:!1},{id:"expire_at",align:"center",className:"center",disablePadding:!1,labelKey:"EXPIRE_AT",sort:!0,isUpdatable:!1,default:!1}],ql=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"support_dynamic_security_mode",name:"support_dynamic_security_mode",align:"center",className:"",disablePadding:!1,labelKey:"DYNAMIC_SECURITY_MODE",sort:!0,isUpdatable:!0,items:[{value:!0,title:"USE"},{value:!1,title:"UNUSED"}],default:!1},{id:"allow_multiple_logins",name:"allow_multiple_logins",align:"center",className:"",disablePadding:!1,labelKey:"MULTIPLE_LOGINS",sort:!0,isUpdatable:!0,items:[{value:0,title:"UNUSED"},{value:2,title:"2"},{value:3,title:"3"},{value:4,title:"4"},{value:5,title:"5"}],default:!1},{id:"private_capacity",name:"private_capacity",align:"center",className:"",disablePadding:!1,labelKey:"PRIVATE_MAX_CAPACITY",sort:!0,isUpdatable:!0,items:[{value:!0,title:"LOCK"},{value:!1,title:"UNLOCK"}],default:!1},{id:"collector_capacity",name:"collector_capacity",align:"center",className:"",disablePadding:!1,labelKey:"COLLECT_MAX_CAPACITY",sort:!0,isUpdatable:!1,default:!1}],Jl=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"dataleak_control",name:"dataleak_control",align:"center",className:"",disablePadding:!1,labelKey:"DATALEAK_CONTROL_USE",sort:!0,isUpdatable:!0,items:[{value:!0,title:"USE"},{value:!1,title:"UNUSED"}],default:!1},{id:"allow_takeout_private_folder",name:"allow_takeout_private_folder",align:"center",className:"",disablePadding:!1,labelKey:"ALLOW_TAKEOUT_PRIVATE_FOLDER",sort:!0,isUpdatable:!0,items:[{value:!0,title:"PERMIT"},{value:!1,title:"UNAVAILABLE"}],default:!1},{id:"allow_takeout",name:"allow_takeout",align:"center",className:"",disablePadding:!1,labelKey:"ALLOW_TAKEOUT_FOLDER",sort:!0,isUpdatable:!0,items:[{value:1,title:"PERMIT"},{value:0,title:"UNAVAILABLE"},{value:2,title:"FOLLOWS_FOLDER_MASTER_POLICIES"}],default:!1}],Zl=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#fff",padding:"24px 30px 0px",color:"#353b48"},subTitle:{color:"#000000",cursor:"default",marginLeft:"-7px",fontSize:16,marginTop:10,"&:first-child":{marginTop:0}}})));function Ql(e){let{open:t,fnHandleClose:a,openBackdrop:n,pickedCol:s,fnSelectedCol:c,fnSetColumn:l}=e;const r=Zl(),{t:i}=Object(jt.a)("docbase"),{sysConfigure:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:r.root,open:t,onClose:a,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(yc.a,{className:r.backdrop,open:n,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)($c.a,{className:r.title,id:"form-dialog-title",children:i("USER_DEFINED")}),Object(g.jsxs)(el.a,{className:r.body,children:[Object(g.jsx)("div",{className:r.subTitle,children:i("DEFAULT")}),Object(g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:Vl.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)})))}),Object(g.jsx)("div",{className:r.subTitle,children:i("INTEGRATION_STATUS")}),Object(g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:Xl.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)})))}),Object(g.jsx)("div",{className:r.subTitle,children:i("SECURITY")}),Object(g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:ql.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)})))}),Object(g.jsx)("div",{className:r.subTitle,children:i("SETTING_CENTRALIZED_DOC")}),Object(g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:Jl.map((e=>"check_id"===e.id?"":o.partially_applied||"dataleak_control"!==e.id?e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)}):""))})]}),Object(g.jsx)(gl.a,{style:{padding:0,marginTop:10},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Hc.a,{onClick:a,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",onClick:()=>l(),children:i("SAVE")})]})})]})})}var $l=a(484),er=a(22),tr=a(963),ar=a(76);const nr=["children","classes","onClose"],sr=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,nr);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),cr=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:673,background:"#f2f3f5","&>div":{padding:30}}},contentWrapper:{height:400,background:"#fff"},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},head:{paddingBottom:"0px !important","& .search-wrapper":{background:"#ffffff",borderRadius:6,padding:"15px 30px",display:"flex","& .input-item":{width:415},"&>button":{marginLeft:10}}},body:{paddingTop:"10px !important","& .result-list":{fontSize:14,boxShadow:"none",marginTop:"-3px","& .cell-check":{width:60},"& .MuiTableBody-root":{background:"#ffffff"},"& .cell-name":{"&>div":{display:"flex",alignItems:"center"},"&>.etc":{position:"absolute",right:0,top:2}},"& .MuiIconButton-label":{width:10,height:10},"& .obj-name>span":{marginLeft:12}}}})));function lr(e){const t=cr(),a=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),{orgsChildren:l,orgFolders:r,orgsObj:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,d]=s.a.useState(""),[b,j]=s.a.useState({}),[u,O]=s.a.useState({});function p(){const e=Array.isArray(null===l||void 0===l?void 0:l.children)?l.children.filter((e=>e.org_type===qc.ab)):[];j(e)}s.a.useEffect((()=>{e.open?l.children&&0===l.children.length&&a(Object(ln.f)()):(d(""),p(),O({}))}),[e.open]),s.a.useEffect((()=>{h("")}),[l]),s.a.useEffect((()=>(h(o),()=>{h.cancel()})),[o]);const h=Object(n.useCallback)(Object(ul.debounce)((e=>{const t=[],a={};e.length>0?(r.forEach((n=>{n.name.toLowerCase().includes(e.toLowerCase())&&(t.push(n),a[n.fid]=!1)})),j({children:t})):p()}),1e3));return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(sr,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("\uc870\uc9c1 \uc120\ud0dd")}),Object(g.jsx)(gl.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:c("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:o,variant:"outlined",size:"small",InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:o&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>d(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>d(e.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{const t={};Object.keys(u).forEach((e=>{var a;u[e]&&(t[e]={name:null===(a=i[e])||void 0===a?void 0:a.name})})),e.fnselectedOrg(t),console.log(t)},children:c("SELECTED")})]})}),Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsx)("div",{children:Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsx)(ar.a,{className:"full",useExpand:!0,useCheckBox:!0,checks:u,setChecks:O,orgs:b})})})})})]})})}const rr=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{position:"relative",height:"calc(100vh - 340px)",overflow:"auto",borderRadius:6},icon:{width:20,height:20},confirmModal:{display:"flex",flexDirection:"column",gap:10,margin:"16px 0","& .user-item":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:12},"& .user-left":{width:"40%",wordBreak:"break-word"},"& .user-right":{width:"40%",wordBreak:"break-word"},"& .arrow":{width:"20%",textAlign:"center",fontSize:14,color:"#888"}}})));function ir(){const e=rr(),t=Object(m.b)(),a=Object(n.useRef)(),{t:s}=Object(jt.a)("docbase"),{users:c,usersObj:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[i,o]=Object(n.useState)(!1),[b,j]=Object(n.useState)(!1),[u,O]=Object(n.useState)(!1),[p,h]=Object(n.useState)({id:"",privateSize:0,collectSize:0}),[_,f]=Object(n.useState)(!0),[E,x]=Object(n.useState)(!1),[N,S]=Object(n.useState)(Vl),[T,v]=Object(n.useState)([]),[y,C]=Object(n.useState)([]),[A,L]=Object(n.useState)({id:"user_id",direction:"desc"}),[w,P]=Object(n.useState)(""),[D,M]=Object(n.useState)(0),[k,F]=Object(n.useState)({}),[W,H]=Object(n.useState)({}),[z,B]=Object(n.useState)({}),[Y,V]=Object(n.useState)({client:0,versionLock:0,lock:0}),[X,q]=Object(n.useState)(20),[J,Z]=Object(n.useState)(0),[$,ee]=Object(n.useState)(void 0),[ae,ne]=Object(n.useState)({}),[se,ce]=Object(n.useState)(""),[le,re]=Object(n.useState)({}),[ie,oe]=Object(n.useState)(!1),[de,be]=Object(n.useState)(!1),[je,ue]=Object(n.useState)(!1),[Oe,pe]=Object(n.useState)(!1),[he,me]=Object(n.useState)(!1),[_e,fe]=Object(n.useState)({});Object(n.useEffect)((()=>(B(bt.a.getLocalStorage("user_col")),t(Object(cn.h)()).then((()=>{t(Object(ln.e)())})),()=>{fe({})})),[t]),Object(n.useEffect)((()=>{P("")}),[D]);const ge=Object(n.useRef)(w);Object(n.useEffect)((()=>{c.length>0?xe(w,!1):f(!1),ne({}),Z(0)}),[w,D,A,l,_e]),Object(n.useEffect)((()=>{v(y.slice(X*J,X*(J+1)))}),[J,X,y]),Object(n.useEffect)((()=>{const e=Vl.filter((e=>e.default));Object.keys(z).forEach((t=>{(r.partially_applied||"dataleak_control"!==t)&&e.push(z[t])})),S(e)}),[r.partially_applied,z]);const Ee=async(e,t,a)=>{f(!0);const n=ge.current!==e;let r={},i={};if(n)r=Object(d.a)({},k),i=Object(d.a)({},W);else{const e=await Object(on.K)("");r=e.reduce(((e,t)=>(t.last_logged_in_user_id&&"2.7.4.10"!==t.installed_version&&(!e[t.last_logged_in_user_id]||new Date(t.last_logged_at)>new Date(e[t.last_logged_in_user_id].last_logged_at))&&(e[t.last_logged_in_user_id]=t),e)),{});(await Object(on.B)("",0)).forEach((e=>{i[e.user_id]=e.recommend_type})),F(r),H(i)}let o={};!$||t?(o=await Object(rn.k)(!0),ee(Object(d.a)({},o))):o=Object(d.a)({},$);const b=Object.keys(o);let j=0,u=0,O=0;const p=[],h=[],m=new Set,_=Object.keys(a);if(_.length>0)for(const s of _){const e=(await Object(jn.o)(s)).filter((e=>e.direct_permission)).map((e=>l[e.user_id]));for(const t of e)m.has(t.user_id)||(m.add(t.user_id),h.push(t))}else h.push(...c);h.forEach((t=>{if(!t)return;const a=r[t.user_id],n=Object(d.a)(Object(d.a)({},t),a);if(n.client_info=s("NOT_INSTALLED"),a){let e="win64";1===a.client_type?e="win32":3===a.client_type&&(e="mac");const t=bt.a.getDateStringToLocalDate(a.installed_at);n.client_info=s("INSTALL"),n.installed_version=a.installed_version.split(".").map((e=>e.padStart(5,"0"))).join(""),n.version="".concat(a.installed_version,"(").concat(e,")"),n.installed_at=t.indexOf("2020-01-01")>=0?"-":t,n.last_logged_at=bt.a.getDateStringToLocalDate(a.last_logged_at),j++}const c=[];let l="";b.forEach((e=>{o[e]&&o[e].length>0&&o[e].forEach((e=>{e.user_id===n.user_id&&e.folder_type===qc.F&&e.org_type===qc.ab&&e.file_permission!==qc.B&&(l+="".concat(bt.a.splitLastDelimiterString(e.disp_path)," | "),c.push(e))}))})),n.orgs=c,n.recommend_type=i[n.user_id],n.locked&&O++,0===n.recommend_type&&u++,""!==e&&-1===n.name.indexOf(e)&&-1===n.user_id.indexOf(e)&&-1===l.indexOf(e)||(1!==D||a)&&(2===D&&a||3===D&&1===n.recommend_type||4===D&&0===n.recommend_type||(5!==D||n.locked)&&(6===D&&n.locked||p.push(n)))}));const g=[...p].sort(((e,t)=>{const{id:a,direction:n}=A;let s=a;"version"===a&&(s="installed_version");const c=e[s]?e[s]:"",l=t[s]?t[s]:"";let r=0;return r="version"===a?Number(c||0)-Number(l||0):String(c).localeCompare(String(l)),"desc"===n&&(r*=-1),r}));V({client:j,versionLock:u,lock:O}),C(g),f(!1),ge.current!==e&&(ge.current=e)};const xe=Object(n.useCallback)(Object(ul.debounce)(((e,t)=>{Ee(e,t,_e)}),500),[c,D,A,$,_e]);function Ne(e){let a="",n="";return 0===Object.keys(ae).length?(t(Object(U.c)({message:s("UPDATE_NEW_CLIENT_MESSAGE_5")})),!1):(0===e?(a=s("UPDATE_NEW_CLIENT_LOCK"),n=s("UPDATE_NEW_CLIENT_MESSAGE_1").replace("%d",Object.keys(ae).length)):1===e?(a=s("UPDATE_NEW_CLIENT_LOCK"),n=s("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",Object.keys(ae).length)):2===e?(a=s("USER_LOCK"),n=s("USER_LOCK_MESSGE_1")):3===e&&(a=s("USER_LOCK"),n=s("USER_LOCK_MESSGE_2")),t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a,content:n,fnHandleOK:()=>{0===e||1===e?async function(e){f(!0);const t=Object.keys(ae);for(let a=0;a{if(console.log("prevData:",t),!Array.isArray(t))return console.error("prevData is not array:",t),t;const a=t.map((t=>n.has(t.user_id)?t:Object(d.a)(Object(d.a)({},t),{},{locked:e})));return console.log("nextData:",a),a})),f(!1)}(2===e)}})})),!0)}const Se=Object.keys(ae).length;return Object(g.jsxs)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Ml,{open:b,fnHandleClose:()=>{j(!1)}})," ",Object(g.jsx)(Wl,{open:u,currentUserID:se,fnChangeSize:(e,t,a)=>{h({id:e,privateSize:t,collectSize:a})},fnHandleClose:e=>{ce(""),O(!1)},fnChangeFolderPerm:e=>{xe(w,!0)}}),Object(g.jsx)(Nl,{users:c,selectedMap:ae,open:i,openBackdrop:E,fnHandleClose:()=>o(!1),fnHandleOK:e=>{re(e),ue(!0)}}),Object(g.jsx)(fl,{selectedUsers:ae,open:ie,fnHandleClose:()=>oe(!1),fnHandleOK:e=>{(async()=>{let a=!1;for(const t of Object.keys(ae))try{(await Object(cn.m)(t,e)).result||(a=!0)}catch(n){a=!0}a?t(Object(U.c)({message:s("USER_ERROR_MESSAGE_16")})):(t(Object(U.d)({message:s("USER_MESSAGE_7")})),oe(!1))})()}}),Object(g.jsx)(Ql,{open:de,pickedCol:z,fnSelectedCol:e=>{const t=Object(d.a)({},z);e.id in t?delete t[e.id]:t[e.id]=e,B(t)},fnHandleClose:()=>be(!1),fnSetColumn:()=>{console.log(z),bt.a.setLocalStorage("user_col",z),be(!1)}}),Object(g.jsx)($l.a,{open:je,title:s("AUDIT_TYPE_REMOVE_USER"),content:Object(g.jsxs)(Ot.a,{className:e.confirmModal,children:[s("USER_DELETE_CONTENT_3"),Object.keys(le).map((e=>Object(g.jsxs)(Ot.a,{className:"user-item",children:[Object(g.jsx)(Ot.a,{className:"user-left",children:"".concat(l[e].name,"(").concat(l[e].user_id,")")}),Object(g.jsxs)(Ot.a,{className:"arrow",children:[" ",s("\u226b")," "]}),Object(g.jsx)(Ot.a,{className:"user-right",children:le[e].id?"".concat(le[e].name,"(").concat(le[e].id,")"):s("DELETE")})]})))]}),ok:s("DELETE"),disabledCancel:!1,cancel:s("CANCEL"),fnHandleOK:()=>{!async function(){x(!0);let e=!1;const a=Object.keys(le);for(const c of a)try{await Object(cn.k)(c,le[c].id)}catch(n){e=!0,n.error===qc.qb?"can't remove the user in the samba"===n.message&&(t(Object(U.c)({message:"".concat(s("USER_ERROR_MESSAGE_19"),": ").concat(c)})),x(!1)):(t(Object(U.c)({message:s("USER_ERROR_MESSAGE_2")})),x(!1))}e||(re({}),ne({}),t(Object(U.d)({message:s("USER_MESSAGE_9")})),t(Object(cn.h)()),x(!1),ue(!1),o(!1))}()},fnHandleCancel:()=>{ue(!1)},fnHandleClose:()=>{ue(!1)}}),Object(g.jsx)(zl,{open:Oe,users:Object.keys(ae),fnHandleClose:()=>{pe(!1)}}),Object(g.jsx)(lr,{open:he,fnHandleClose:()=>me(!1),fnselectedOrg:e=>{fe(e),me(!1)}}),Object(g.jsx)(Vt.a,{style:{marginBottom:10},children:Object(g.jsxs)("div",{className:"searchWrapper",children:[Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:s("SEARCH")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:w,placeholder:s("SEARCH_ID_NAME"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:w&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>P(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>P(e.target.value)})})}),Object(g.jsxs)("div",{className:"searchValue",children:[Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{me(!0)},style:{width:"max-content",marginRight:5},children:s("SELECT_ORG")})}),Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(te.a,{variant:"outlined",value:D,onChange:e=>M(e.target.value),children:[Object(g.jsx)(Q.a,{value:0,children:s("ALL")}),Object(g.jsx)(Q.a,{value:1,children:"".concat(s("INSTALL"),"(").concat(Y.client,")")}),Object(g.jsx)(Q.a,{value:2,children:"".concat(s("NOT_INSTALLED"),"(").concat(c.length-Y.client,")")}),Object(g.jsx)(Q.a,{value:3,children:"".concat(s("VERSION_LOCK"),"(").concat(Y.versionLock,")")}),Object(g.jsx)(Q.a,{value:4,children:"".concat(s("VERSION_UNLOCK"),"(").concat(c.length-Y.versionLock,")")}),Object(g.jsx)(Q.a,{value:5,children:"".concat(s("USER_LOCK"),"(").concat(Y.lock,")")}),Object(g.jsx)(Q.a,{value:6,children:"".concat(s("USER_UNLOCK"),"(").concat(c.length-Y.lock,")")})]})})]}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsxs)("div",{className:"inputItem",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{be(!0)},style:{width:"auto",marginRight:5},children:s("USER_DEFINED")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{pe(!0)},style:{width:"auto",marginRight:5},children:s("USER_MESSAGE_SEND")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",color:"secondary",type:"button",onClick:()=>{j(!0)},style:{width:"auto",marginRight:5},children:s("NEW_REGISTRATION")}),Object(g.jsx)(Je.a,{title:s("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{f(!0),(async()=>{const e=Date.now(),t=[];N.forEach((e=>{"check_id"!==e.id&&t.push(s(e.labelKey))}));const a=[];for(const s of y){const e={};for(const t of N)if("version"===t.id)e.version="".concat(s.version||"");else if("orgs"===t.id){let t="";s.orgs.forEach(((e,a)=>{t+=0===a?bt.a.splitLastDelimiterString(e.disp_path):" | ".concat(bt.a.splitLastDelimiterString(e.disp_path))})),e.orgs=t}else"check_id"!==t.id&&(e[t.id]=s[t.id]);a.push(e)}const n=s("USER_LIST");await hl.a.excelDownload("".concat(n),t,a,null,e),f(!1)})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:s("ROW_PER_PAGE")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto",minWidth:150},children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(te.a,{value:X,size:"small",variant:"outlined",className:"dropdown",onChange:e=>q(e.target.value),children:[Object(g.jsx)(Q.a,{value:10,children:"10\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:20,children:"20\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:50,children:"50\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:100,children:"100\uac74 \ubcf4\uae30"})]})})})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",style:{marginTop:20},children:[Object(g.jsxs)("div",{className:"info",children:[Object.keys(_e).length>0?Object(g.jsxs)("span",{className:"org-filter-info",children:[Object(g.jsx)(ha.a,{className:"small",type:"filter",fill:"#0b6e7c"}),s("SELECTED_ORG"),"(",Object.values(_e).map((e=>e.name)).join(", "),")",Object(g.jsx)(Je.a,{title:s("RELEASE_ORG"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"reset-org",onClick:()=>{fe({})},children:Object(g.jsx)(ha.a,{className:"small",type:"close",fill:"#0b6e7c"})},"reset-org")})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("span",{children:[s("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:null===y||void 0===y?void 0:y.length}),s("CNT")]}),Se>0?Object(g.jsxs)("span",{children:["(",s("SELECTED")," ",Object(g.jsx)("span",{className:"count",children:Se}),s("CNT"),")"]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)("div",{className:"btnGroup",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{0===Se?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):o(!0)},children:s("DELETE")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Se?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):oe(!0)},size:"small",children:s("USER_MENU_1")}),2===r.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Se?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):Se>1?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_21")})):Object(cn.e)(Object.keys(ae)[0]).then((e=>{!function(e){const t=JSON.parse(e.passwords),a=Object.keys(t),n=document.createElement("table"),s=document.createElement("tr");n.style.border="1px solid #000000",n.style.width="100%",n.style.borderCollapse="collapse",n.style.textAlign="center",n.style.webkitPrintColorAdjust="exact",s.style.border="1px solid #000000",n.appendChild(s);for(let l=0;l<11;l++){const e=document.createElement("td");l>0&&(e.innerText="".concat(l-1)),e.style.backgroundColor="#333333",e.style.color="#ffffff",e.style.border="1px solid #000000",s.appendChild(e)}a.forEach(((e,a)=>{const s=document.createElement("tr"),c=document.createElement("td");c.innerText=e,c.style.border="1px solid #000000",c.style.backgroundColor="#333333",c.style.color="#ffffff",s.appendChild(c),t[e].forEach((e=>{const t=document.createElement("td");t.innerText=e<10?"0".concat(e):e,t.style.border="1px solid #000000",s.appendChild(t)})),n.appendChild(s)}));const c=window.open("","print_window","width=1090, height=550, top=200, left=200, toolbars=no, scrollbars=no, status=no, resizable= no");c.addEventListener("afterprint",(e=>{c.close()})),c.document.body.appendChild(n),c.document.close(),c.focus(),c.print()}(e)})).catch((e=>{t(Object(U.c)({message:s("USER_ERROR_MESSAGE_17")}))}))},size:"small",children:s("USER_MENU_2")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{t(0===Se?Object(U.d)({message:s("USER_ERROR_MESSAGE_12")}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:s("USER_TOTP_TITLE"),content:s("USER_TOTP_CONTENT"),fnHandleOK:()=>{(async()=>{const e=Object.keys(ae),a=[];await e.reduce((async(e,t)=>{await e;try{await Object(cn.n)(t)}catch(n){a.push(t)}}),Promise.resolve()),a.length>0?(console.warn("TOTP reset failed for IDs:",a.map((e=>e.id))),t(Object(U.c)({message:s("USER_ERROR_MESSAGE_18")}))):t(Object(U.d)({message:s("USER_MESSAGE_8")}))})()}})}))},size:"small",children:s("USER_MENU_3")})]}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ne(2),children:s("USER_LOCK")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ne(3),children:s("USER_UNLOCK")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ne(0),children:s("UPDATE_NEW_CLIENT_LOCK")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ne(1),children:s("UPDATE_NEW_CLIENT_UNLOCK")})]})]})]})}),Object(g.jsx)(Vt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:_?Object(g.jsx)(Ot.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(K.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("div",{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Yl,{customCols:N,data:T,order:A,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";A.id===t&&"desc"===A.direction&&(n="asc"),L({direction:n,id:a})})(0,t),selectedMap:ae,popUserModify:e=>(e=>{se!==e&&(ce(e),O(!0))})(e),changedSize:p,selectUser:e=>{const t=Object(d.a)({},ae);e in t?delete t[e]:t[e]="",console.log(t),ne(t)},selectAll:()=>{if(Object.keys(ae).length>0)ne({});else{const e={};y.forEach((t=>{e[t.user_id]=""})),ne(e)}},handleChange:(e,a)=>{Object(cn.p)(l[a],e.target.name,e.target.value).then((n=>{C((t=>t.map((t=>t.user_id===a?Object(d.a)(Object(d.a)({},t),{},{[e.target.name]:e.target.value}):t)))),t(Object(U.d)({message:s("USER_MESSAGE_2")}))})).catch((e=>{t(Object(U.c)({message:s("FAILED")}))}))}})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(y.length/X),color:"primary",onChange:(e,t)=>{Z(t-1)}})]})})]})}var or=s.a.memo(ir),dr=a(280),br=a.n(dr),jr=a(540),ur=a.n(jr),Or=a(488),pr=a.p+"static/media/header_home.f5aaf448.svg",hr=a(489);const mr=Object(M.a)((e=>({root:{padding:"0px 32px",color:"#222222"},naviWrapper:{display:"inline-block","& span":{cursor:"default",marginRight:10}},navigationPath:{display:"inline-block",fontSize:18,color:"#222222","&>span":{cursor:"default"},"&>button":{"min-width":"auto"}},icon:{width:32,height:32},adminInfo:{marginRight:30,fontSize:14,"&>span":{marginRight:20,cursor:"default"},"$>span:last-child":{marginRight:0}},profileWrapper:{marginRight:15},mr20:{marginRight:20},item:e=>({height:60,width:"100%",paddingLeft:30,paddingRight:20,borderTop:"1px solid #353b48",borderBottom:"1px solid #353b48",fontSize:16,color:"#8b95a1",backgroundColor:"#fff","& .arrow-icon":{color:"#8b95a1"}})})));var _r=function(e){const t=mr(),a=Object(m.c)(Rt),[n,c]=s.a.useState(""),[l,r]=s.a.useState([]),[i,o]=s.a.useState({});s.a.useEffect((()=>{let e=!1;a&&a.length>0&&a.forEach((t=>{!e&&t.children&&t.children.forEach((a=>{var n;if(!e)return a.url===window.location.pathname?(c("".concat(t.title,">>").concat(a.title)),e=!0,void o(a)):void(null===(n=a.children)||void 0===n||n.forEach((n=>{n.url===window.location.pathname&&(c("".concat(t.title,">>").concat(a.title,">>").concat(n.title)),o(n),e=!0)})))}))}))}),[window.location.pathname]),s.a.useEffect((()=>{r(JSON.parse(localStorage.getItem("favorites")||"[]"))}),[]);const b=n.split(">>"),j=e=>{let t=!1;return l.forEach((a=>{t||a.url===e&&(t=!0)})),t};return Object(g.jsxs)("div",{className:Object(G.a)("sm:flex sm:flex-1 w-full items-center justify-between",t.root),children:[Object(g.jsxs)("div",{className:"flex items-center",children:[b.map(((e,a)=>Object(g.jsxs)("div",{className:t.naviWrapper,children:[Object(g.jsx)("div",{className:t.navigationPath,children:Object(g.jsx)("span",{children:"".concat(e)})}),b.length>a+1?Object(g.jsx)("span",{children:"> "}):""]}))),Object(g.jsx)("div",{style:{marginLeft:"-10px"},children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{(()=>{let e=[];if(j(i.url))e=l.filter((e=>e.url!==i.url));else{const t=Object(d.a)({},i);"children"in t&&delete t.children,e=[...l,t]}localStorage.setItem("favorites",JSON.stringify(e)),r(e)})()},children:j(i.url)?Object(g.jsx)(br.a,{style:{color:"#fbc02d"}}):Object(g.jsx)(ur.a,{style:{color:"#aaa"}})},"download")})]}),Object(g.jsxs)("div",{className:"flex flex-1 items-center justify-end px-12",children:[Object(g.jsx)("div",{className:t.profileWrapper,children:Object(g.jsx)("img",{className:t.icon,src:Or.a,alt:"header-profile-icon"})}),Object(g.jsxs)("div",{className:t.adminInfo,children:[Object(g.jsx)("span",{children:localStorage.getItem("doc_name")}),Object(g.jsx)("span",{children:"|"}),Object(g.jsx)("span",{children:bt.a.getDateString(new Date)})]}),Object(g.jsx)(I.a,{children:Object(g.jsx)(Bt.a,{to:"/dashboard",children:Object(g.jsx)("img",{className:t.icon,src:pr,alt:"header-home-icon"})})}),Object(g.jsx)(Xc,{style:{minWidth:"inherit",width:56,height:56,padding:12}}),Object(g.jsx)(I.a,{className:"cursor-pointer",onClick:e=>{Object(ut.f)().then((e=>{window.location.href="/admin"}))},children:Object(g.jsx)("img",{className:t.icon,src:hr.a,alt:"header-logout-icon"})})]})]})};var fr={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/users",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(or,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const gr=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Er(e){let{open:t,fnHandleClose:a,fnHandleOk:n}=e;const{t:c}=Object(jt.a)("docbase"),l=gr(),r=Object(m.b)(),[i,o]=s.a.useState(""),[d,b]=s.a.useState(""),[j,u]=s.a.useState(""),[O,p]=s.a.useState(""),[h,_]=s.a.useState(""),[f,E]=s.a.useState("");return s.a.useEffect((()=>{o(""),b("")}),[t]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:l.root,open:t,onClose:a,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:l.title,id:"form-dialog-title",children:c("PARTNERSHIP_ADD")}),Object(g.jsx)(el.a,{className:l.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("PARTNERSHIP_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:i,variant:"outlined",onChange:e=>o(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("BUSINESS_NUMBER")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"businessNumber",fullWidth:!0,value:d,variant:"outlined",onChange:e=>b(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("CEO")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"ceo",fullWidth:!0,value:j,variant:"outlined",onChange:e=>u(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("PARTNERSHIP_EMAIL")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"email",fullWidth:!0,value:h,variant:"outlined",onChange:e=>_(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("PHONE")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"phone",fullWidth:!0,value:O,variant:"outlined",onChange:e=>p(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("FAX")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"fax",fullWidth:!0,value:f,variant:"outlined",onChange:e=>E(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>0===i.trim().length?(r(Object(U.c)({message:c("\ud611\ub825\uc0ac\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.")})),!1):i.trim().length>30?(r(Object(U.c)({message:c("FOLDER_ERROR_MESSAGE_3")})),!1):/[\\/:*?\\"<>|]/.test(i.trim())?(r(Object(U.c)({message:c("PATTERN_ERROR_MESSAGE")})),!1):(n(i,{business_number:d,ceo:j,phone:O,email:h,fax:f}),!0),children:c("REGISTER")})]})]})})]})})}const xr=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Nr(e){let{open:t,parentCode:a,fnHandleClose:n,fnHandleOk:c}=e;const{t:l}=Object(jt.a)("docbase"),r=xr(),i=Object(m.b)(),[o,d]=s.a.useState(""),[b,j]=s.a.useState(""),[u,O]=s.a.useState("");return s.a.useEffect((()=>{if(d(""),O(""),t&&""!==a){const e=crypto.getRandomValues(new Uint32Array(1))[0],t=String(e%1e5).padStart(5,"0");j("".concat(a,"-NHF").concat(t))}else j("")}),[t]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:r.root,open:t,onClose:n,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:r.title,id:"form-dialog-title",children:l("\uc5c5\ubb34\uc2dc\uc2a4\ud15c \ucd94\uac00")}),Object(g.jsx)(el.a,{className:r.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("\uc5c5\ubb34\uba85")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("\ucf54\ub4dc")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:b,variant:"outlined",onChange:e=>j(e.target.value),size:"small",inputProps:{readOnly:""!==a}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("\ud558\uc704\uacbd\ub85c")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:u,variant:"outlined",onChange:e=>O(e.target.value),size:"small",inputProps:{readOnly:""!==a}})})]}),Object(g.jsxs)("div",{className:r.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>0===o.trim().length?(i(Object(U.c)({message:l("\uc5c5\ubb34\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.")})),!1):0===b.trim().length?(i(Object(U.c)({message:l("\ucf54\ub4dc\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694.")})),!1):(c(o,b,u),!0),children:l("REGISTER")})]})]})})]})})}const Sr=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 180px)","&>.insert-form":{padding:"0 0 10px 20px"}},icon:{width:20,height:20}})));let Tr=!0;var vr=function(e){let{fnToggleRightSidebar:t}=e;const{pathname:a}=Object(f.g)(),c="/orgs"===a,l="/partner"===a||"/qv"===a,r="/qv"===a,i="/partnership"===a,o=Sr(),b=Object(m.b)(),j=s.a.useRef(),{t:u}=Object(jt.a)("docbase"),{orgsObj:O,orgFolders:p,selectedOrgID:h,orgsChildren:_,codeObj:E}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[x,N]=Object(n.useState)(""),[S,T]=Object(n.useState)([]),[v,y]=Object(n.useState)(!0),[C,A]=Object(n.useState)(new Set),[L,w]=Object(n.useState)({fid:0,show:!1}),[P,D]=Object(n.useState)({fid:0,show:!1,baseFid:-1});Object(n.useEffect)((()=>{bt.a.infoLog("orgTable selectedID end")}),[h]),Object(n.useEffect)((()=>{let e=[];var t;"object"===typeof _?e=null!==(t=null===_||void 0===_?void 0:_.children)&&void 0!==t?t:[]:Array.isArray(_)&&(e=_);return p.length>0?M(x):y(!1),()=>{M.cancel()}}),[x,_,E]);const M=Object(n.useCallback)(Object(ul.debounce)((e=>{try{let t=qc.ab;if(l?t=qc.cb:i&&(t=qc.bb),e.length>0){const a=[];p.forEach((n=>{if(t===n.org_type&&n.name.toLowerCase().includes(e.toLowerCase())){const e={fid:n.fid,name:n.name||n.disp_path.split("/").pop(),disp_path:n.disp_path,allow_takeout:n.allow_takeout,org_type:n.org_type};r&&(e.code=E[n.fid].code),a.push(e)}})),r&&Object.keys(E).forEach((t=>{E[t].code.indexOf(e)>=0&&a.push({fid:t,name:O[t].name||O[t].disp_path.split("/").pop(),disp_path:O[t].disp_path,allow_takeout:O[t].allow_takeout,org_type:O[t].org_type,code:E[t].code})})),T(a),y(!1)}else!async function(){if(r){var e;let t={};console.log(E),t=0===Object.keys(E).length?await Object(ln.L)():E;const a=W(null===_||void 0===_?void 0:_.children,"\uc5c5\ubb34\uc2dc\uc2a4\ud15c\ud3f4\ub354",t);D(Object(d.a)(Object(d.a)({},P),{},{baseFid:null===a||void 0===a||null===(e=a[0])||void 0===e?void 0:e.fid})),T(a)}else{let e=qc.ab;l?e=qc.cb:i&&(e=qc.bb);const t=Array.isArray(null===_||void 0===_?void 0:_.children)?_.children.filter((t=>void 0===t.org_type||t.org_type===e)):[];T(t)}y(!1)}()}catch(t){console.error(t)}finally{y(!1)}}),500),[p]);Object(n.useEffect)((()=>(Tr=!1,b(Object(ln.p)()),()=>{Tr=!0,b(Object(ln.C)({fid:-1,original:c})).then((()=>{b(Object(ln.q)())}))})),[b]);const k=async(e,t)=>{if(!t||t.trim().length<=0)return b(Object(U.c)({message:u("FOLDER_ERROR_MESSAGE_1")})),-1;if(t.trim().length>30)return b(Object(U.c)({message:u("FOLDER_ERROR_MESSAGE_3")})),-1;if(/[\\/:*?\\"<>|]/.test(t.trim()))return b(Object(U.c)({message:u("PATTERN_ERROR_MESSAGE")})),-1;let a=-1;try{b(Object(rn.ab)({show:!0}));let n=qc.ab;l?n=qc.cb:i&&(n=qc.bb);const s=await Object(ln.b)(t,e,n,b);i||r||(b(Object(U.d)({message:u("FOLDER_ADD")})),b(Object(ln.f)()),b(Object(rn.ab)({show:!1}))),a=s.fid}catch(n){console.error(n),n.error===qc.gb&&b(Object(U.c)({message:u("FOLDER_ERROR_MESSAGE_2")}))}finally{y(!1),b(Object(rn.ab)({show:!1}))}return a},F=e=>{var t;b(Object(R.c)({children:Object(g.jsx)(ml.a,{title:u("DELETE_FOLDER_TITLE"),content:"'".concat(null===(t=O[e])||void 0===t?void 0:t.name,"'").concat(u("DELETE_CONTENT_FOLDER")),fnHandleOK:()=>{var t;t=e,b(Object(rn.ab)({show:!0})),Object(ln.x)(t,b).then((e=>{b(Object(U.d)({message:u("ORG_MESSAGE_1")})),b(Object(ln.f)()).then((()=>y(!1)))})).catch((e=>{b(Object(U.c)({message:u("ORG_ERROR_MESSAGE_1")}))}))}})}))},W=(e,t,a)=>{let n=[];if(Array.isArray(e))for(let s=0;s{var a;const n=Object(d.a)({},e);return void 0!==(null===(a=t[e.fid])||void 0===a?void 0:a.code)&&(n.code=t[e.fid].code),Array.isArray(e.children)&&(n.children=e.children.map((e=>H(e,t)))),n};return v?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(o.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Er,{open:L.show,fnHandleClose:e=>w(Object(d.a)(Object(d.a)({},L),{},{show:!1})),fnHandleOk:(e,t)=>(async(e,t)=>{const a=await k(L.fid,e);let n=!1;try{if(a>-1){const e=Object.keys(t);for(let s=0;sD(Object(d.a)(Object(d.a)({},P),{},{show:!1})),fnHandleOk:(e,t,a)=>(async(e,t,a)=>{var n,s;const c=null===(n=W(null===_||void 0===_?void 0:_.children,"\uc5c5\ubb34\uc2dc\uc2a4\ud15c\ud3f4\ub354",{}))||void 0===n||null===(s=n[0])||void 0===s?void 0:s.fid,l=await k(P.fid&&0!==P.fid?P.fid:c,e);let r=!0;try{l>-1&&(r=await Object(ln.t)(t,l,a),b(r?Object(U.d)({message:u("FOLDER_ADD")}):Object(U.c)({message:u("\ud3f4\ub354 \ucd94\uac00 \uc2e4\ud328")}))),b(Object(ln.f)())}catch(i){console.error(i)}finally{b(Object(rn.ab)({show:!1})),D(Object(d.a)(Object(d.a)({},P),{},{show:!1}))}})(e,t,a)}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:x,placeholder:u("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:x&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>N(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>N(e.target.value)})})}),Object(g.jsx)("div",{className:"total-cnt-info"})]}),Object(g.jsx)("div",{className:Object(G.a)(o.contentWrapper,"flex-grow overflow-x-hidden flex flex-col"),ref:j,children:Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,Object(d.a)(Object(d.a)({className:"",orgs:S,expandedFids:C,setExpandedFids:A,isPartner:l,isPartnership:i,useAdd:!0,useRemove:!0,useExpand:!0,fnCreateFolder:(e,t)=>k(e,t)},i||r?{fnOnClickCreate:e=>{var t,a;r?D({fid:e,show:!0,code:null!==(t=null===(a=E[e])||void 0===a?void 0:a.code)&&void 0!==t?t:""}):w({fid:0===S.length?0:S[0].fid,show:!0})}}:{}),{},{fnRemoveFolder:e=>F(e),fnOnClickHandler:e=>function(e){h!==e&&(b(Object(ln.C)({fid:e,original:c})),t())}(e)}))})})]})]})},Rr=a(964);const yr=["children","classes","onClose"],Cr=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,yr);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Ar=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:673,background:"#f2f3f5","&>div":{padding:30}}},contentWrapper:{height:415,background:"#fff"},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},head:{paddingBottom:"0px !important","& .search-wrapper":{background:"#ffffff",borderRadius:6,padding:"15px 30px",display:"flex","& .input-item":{width:273},"&>button":{marginLeft:10}}},body:{paddingTop:"10px !important","& .type-tabs":{width:"100%",display:"flex",alignItems:"center","& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:50,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}},"& .result-list":{fontSize:14,boxShadow:"none",marginTop:"-3px","& .cell-check":{width:60},"& .MuiTableBody-root":{background:"#ffffff"},"& .cell-name":{"&>div":{display:"flex",alignItems:"center"},"&>.etc":{position:"absolute",right:0,top:2}},"& .MuiIconButton-label":{width:10,height:10},"& .obj-name>span":{marginLeft:12}}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));let Lr=!1;function wr(e){const t=Ar(),a=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),{users:l,usersObj:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{readablePermObjs:o,sharedPerms:b,orgsChildren:j,orgFolders:u,orgPerms:O}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[p,h]=s.a.useState(""),[_,f]=s.a.useState([]),[E,x]=s.a.useState(0),[N,S]=s.a.useState(100),[T,R]=s.a.useState([]),[y,C]=s.a.useState({}),[A,L]=s.a.useState({}),[w,I]=s.a.useState(!1),[P,D]=s.a.useState(0),[M,k]=s.a.useState({}),[F,W]=s.a.useState({direction:"asc"});function H(){const e=Array.isArray(null===j||void 0===j?void 0:j.children)?j.children.filter((e=>e.org_type===qc.ab||e.org_type===qc.bb)):[];C(e)}s.a.useEffect((()=>{e.open?("0"===e.type&&e.original?j.children&&0===j.children.length&&a(Object(ln.f)()):a(Object(ln.s)()),e.searchVal&&""!==e.searchVal?h(e.searchVal):z("")):(h(""),R([]),L({}),H())}),[e.open]),s.a.useEffect((()=>{h(""),z(""),I(!1)}),[l,P]),s.a.useEffect((()=>{R(_.slice(N*E,N*(E+1)))}),[E,N,_]),s.a.useEffect((()=>{H()}),[j]),s.a.useEffect((()=>(z(p),()=>{z.cancel()})),[p]),s.a.useEffect((()=>{e.searchVal&&""!==e.searchVal?D(1):D(0)}),[e.searchVal]),s.a.useEffect((()=>{z(p)}),[o]);const z=Object(n.useCallback)(Object(ul.debounce)((t=>{const a=[],n={};if("0"===e.type&&e.original)0===P?t.length>0?(u.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),C({children:a})):H():l.forEach((s=>{e.permsObj[s.user_id]||(""===t||s.name.indexOf(t)>=0||s.user_id.indexOf(t)>=0)&&(a.push({id:s.user_id,name:"".concat(s.name,"(").concat(s.user_id,")"),path:""}),n[s.user_id]=!1)}));else if(0===P){const s={};o.forEach((a=>{e.permsObj[a.obj_id]||2!==a.obj_type||(""===t||a.name.indexOf(t)>=0)&&(s[a.obj_id]=a)})),k(s),""!==t?(u.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),C({children:a})):H()}else{const s={};o.forEach((c=>{e.permsObj[c.obj_id]||1!==c.obj_type||(n[c.obj_id]=!1,(""===t||c.name.indexOf(t)>=0)&&(a.push({id:c.obj_id,name:c.name,path:""}),s[c.obj_id]=c))})),k(s)}L(n),f(a),x(0)}),1e3));function B(){const e={};if(T.forEach((t=>{e[t.id]=!w})),I(!w),L(e),0===P){const e=Object(d.a)({},j),t=[];Object.keys(j).forEach((a=>{if(j[a]){const t=j[a].children.map((e=>{const t=Object(d.a)({},e);return t.checked=!w,t}));e[a]={children:t}}t.push(Number(a))})),C(e)}else a(Object(U.d)({message:c("\uc870\uc9c1\ud3f4\ub354\ub294 \ubaa8\ub450\uccb4\ud06c\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4")}))}return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Cr,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(gl.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:c("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:p,variant:"outlined",size:"small",onChange:e=>h(e.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>B(),children:c("CHECK_ALL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!Lr){Lr=!0;const n=Object.keys(A);if(n.length>0){let s=!0;try{if(a(Object(rn.ab)({show:!0})),"0"===e.type&&e.original)if(0===P){const t=await Object(rn.k)();for(let a=0;a{A[e]&&t.push(Object(d.a)(Object(d.a)({},M[e]),{},{file_permission:qc.D,trash_permission:qc.Hb,manage_type:qc.M,manage_priority:100,file_delete_permission:qc.z,securedoc_permission:qc.fb}))})),await Object(ln.G)(e.fid,t)}}catch(t){s=!1}s?(e.fnSetPermComplete(),L({})):a(Object(U.c)({message:c("PERM_ERROR_MESSAGE_1")})),a(Object(rn.ab)({show:!1}))}Lr=!1}}(),children:c("ADD")})]})}),Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:P,onChange:(e,t)=>{D(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:c("USER")})]})}),Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:0===P?Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,{className:"full",useCheckBox:!0,useExpand:!0,orgs:y,checks:A,setChecks:L,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsx)(Ir,{data:T,totalData:_,rowsPerPage:N,setCurrentPage:e=>x(e),allCheck:w,checkedList:A,sysConfigure:i,sortObj:F,setSortObj:e=>W(e),handleCheckAllBox:()=>B(),handleCheckBox:e=>{return t=e,I(!1),void L(Object(d.a)(Object(d.a)({},A),{},{[t]:!A[t]}));var t},handleUserSyncOsr:(e,t)=>{e.stopPropagation(),Object(cn.p)(r[t],"no_sync_osr",!0).then((e=>{a(Object(U.d)({message:c("USER_MESSAGE_10")})),a(Object(cn.h)())}))},t:c})})})]})})]})})}const Ir=s.a.memo((e=>{let{data:t,totalData:a,rowsPerPage:n,setCurrentPage:s,allCheck:c,checkedList:l,sortObj:r,sysConfigure:i,handleCheckAllBox:o,setSortObj:d,handleCheckBox:b,handleUserSyncOsr:u,t:O}=e;return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"cell-check",align:"center",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:!c&&Object.values(l).filter((e=>e)).length>0,checked:c,onChange:e=>o()})}),Object(g.jsx)(Ll.a,{padding:"none",className:"left",align:"left",children:Object(g.jsx)(Bl.a,{active:!0,direction:r.direction,onClick:e=>{d({direction:"asc"===r.direction?"desc":"asc"})},children:O("USER")})})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(t,[e=>e.name],[r.direction]).map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>b(e.id),children:[Object(g.jsx)(Ll.a,{className:"",padding:"none",align:"center",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:l[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{b(e.id)}})}),Object(g.jsxs)(Ll.a,{className:"left cell-name",component:"td",scope:"row",children:[Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(Il.a,{type:"person",className:"small"}),Object(g.jsx)("span",{children:e.name})]}),i.OSR_support?e.local_account||e.no_sync_osr?Object(g.jsx)("div",{className:"etc",children:Object(g.jsx)(Hc.a,{color:"inherit",size:"small",onClick:e=>{},disabled:!0,children:O("NO_SYNC_TARGET")})}):Object(g.jsx)("div",{className:"etc",children:Object(g.jsx)(Hc.a,{style:{color:"#666"},color:"inherit",size:"small",onClick:t=>u(t,e.id),children:O("NO_SYNC_OSR")})}):""]})]},e.id)))})]}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(a.length/n),color:"primary",onChange:(e,t)=>{s(t-1)}})]})}),((e,t)=>j.a.isEqual(e.data,t.data)&&j.a.isEqual(e.checkedList,t.checkedList)&&e.allCheck===t.allCheck&&j.a.isEqual(e.sortObj,t.sortObj))),Pr=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),Dr=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%"}},contentWrapper:{height:555},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6},"&>.content>div":{width:"100%"},"& .search-form":{padding:12}},tableOrg:{"& .MuiTableRow-root.Mui-selected":{borderColor:"rgba(0, 207, 226, 0.3)"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:12,paddingBottom:12,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Mr(e){const t=Object(m.b)(),a=Dr(),{t:n}=Object(jt.a)("docbase"),{sysConfigure:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{orgFolders:l,selectedOrgID:r,orgsChildren:i,orgsObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[d,b]=s.a.useState({fid:-1,path:""}),[j,u]=s.a.useState(""),[O,p]=s.a.useState({});s.a.useEffect((()=>{e.open&&h(""),u(""),b({fid:-1,path:""})}),[e.open]),s.a.useEffect((()=>(l.length>0&&h(j),()=>{h.cancel()})),[j]);const h=s.a.useCallback(Object(ul.debounce)((e=>{try{if(e.length>0){const t=[];l.forEach((a=>{a.name.toLowerCase().includes(e.toLowerCase())&&t.push({fid:a.fid,name:a.name||a.disp_path.split("/").pop(),disp_path:a.disp_path,allow_takeout:a.allow_takeout})})),p(t)}else{let e;Array.isArray(i)?e=i:i.children&&Array.isArray(i.children)&&(e=i.children);e=[{allow_takeout:!0,disp_path:"/\uc870\uc9c1/\ucd5c\uc0c1\uc704",fid:0,name:"\ucd5c\uc0c1\uc704",org_type:1},...e],p(e)}}catch(t){console.error(t)}}),500),[l]),_=bt.a.splitLastDelimiterString(e.targetPath),f="".concat("korean"===c.language?"/\uc870\uc9c1":"/Organization");return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,TransitionComponent:Pr,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsxs)($c.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:[n("TRANSFER_ORG"),"[",_,"]"]}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(zc.a,{children:[Object(g.jsx)("div",{className:"search-form",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",name:"org-name-text",value:j,placeholder:n("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(e.target.value)})}),Object(g.jsx)(B.a,{className:Object(G.a)(a.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsx)("div",{className:"flex flex-col",children:Object(g.jsx)(ar.a,{className:"full",fid:d.fid,orgs:O,useExpand:!0,fnOnClickHandler:e=>{b(0===e?{fid:e,path:f}:{fid:e,path:o[e].disp_path})}})})})]})}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"action",type:"button",onClick:a=>{if(d.fid<0)return void t(Object(U.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_1")}));const s="".concat(f).concat(e.targetPath),c="".concat(d.path,"/").concat(_);c!==s?0!==c.indexOf(s)?t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("TRANSFER_ORG"),content:n("TRANSFER_ORG_MESSAGE_1"),fnHandleOK:()=>{t(Object(rn.ab)({show:!0})),Object(ln.I)("".concat(f).concat(e.targetPath),"".concat(d.path,"/").concat(_)).then((a=>{t(Object(ln.f)()).then((()=>{t(Object(U.d)({message:n("TRANSFER_ORG_MESSAGE_2")})),e.fnResetList(),e.fnHandleClose()}))})).catch((e=>t(Object(U.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_2")})))).finally((()=>{t(Object(rn.ab)({show:!1}))}))}})})):t(Object(U.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_4")})):t(Object(U.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_3")}))},children:n("MOVE")})]})]})})]})})}const kr=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),Gr=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%"}},contentWrapper:{height:555},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{borderRadius:6},"&>.content>div":{display:"flex",alignItems:"center"},"&>.content>div>div":{flex:"1 1 auto"},"&>.content>div>.btn":{margin:"0 20px",flex:"0 1 auto"},"&>.content>div>div>.MuiButton-root":{color:"#333d4b",minWidth:40,padding:0,width:40,background:"#eceff4",border:"1px solid #d9dee5"},"& .search-form":{padding:12}},tableOrg:{"& .MuiTableRow-root.Mui-selected":{borderColor:"rgba(0, 207, 226, 0.3)"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:12,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Ur(e){const t=Object(m.b)(),a=Gr(),{t:n}=Object(jt.a)("docbase"),{selectedOrgID:c,orgsObj:l,orgFolders:r,orgsChildren:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,b]=s.a.useState({sourceID:0,targetID:0,sourcePath:"",targetPath:""}),[j,u]=s.a.useState({sourceOrgs:{},targetOrgs:{}}),[O,p]=s.a.useState({sourceText:"",targetText:""}),h=s.a.useRef(O);s.a.useEffect((()=>{e.open?(f(3),c>0&&b(Object(d.a)(Object(d.a)({},o),{},{sourceID:c,sourcePath:l[c].disp_path}))):h.current={sourceText:"",targetText:""}}),[e.open]),s.a.useEffect((()=>(h.current.sourceText!==O.sourceText&&_(O.sourceText,0),h.current.targetText!==O.targetText&&_(O.targetText,1),h.current=O,()=>{_.cancel()})),[O]);const _=s.a.useCallback(Object(ul.debounce)(((e,t)=>{try{if(e.length>0){const a={0:{children:r.filter((a=>{if(0===t){if(a.name.toLowerCase().includes(e.toLowerCase()))return!0}else if(a.fid!==c&&a.name.toLowerCase().includes(e.toLowerCase()))return!0;return!1}))}};u(0===t?Object(d.a)(Object(d.a)({},j),{},{sourceOrgs:a}):Object(d.a)(Object(d.a)({},j),{},{targetOrgs:a}))}else f(t)}catch(a){console.error(a)}}),500),[r,j]);async function f(e){const t=[],a=[];null===i||void 0===i||i.children.forEach((e=>{e.org_type===qc.ab&&(e.fid===c?t.push(Object(d.a)(Object(d.a)({},e),{},{selected:!0})):(t.push(e),a.push(e)))}));const n={children:t},s={children:a};0===e?(u(Object(d.a)(Object(d.a)({},j),{},{sourceOrgs:n})),p(Object(d.a)(Object(d.a)({},O),{},{sourceText:""})),b(Object(d.a)(Object(d.a)({},o),{},{sourceID:0,sourcePath:""}))):1===e?(u(Object(d.a)(Object(d.a)({},j),{},{targetOrgs:s})),p(Object(d.a)(Object(d.a)({},O),{},{targetText:""})),b(Object(d.a)(Object(d.a)({},o),{},{targetID:0,targetPath:""}))):(u({sourceOrgs:n,targetOrgs:s}),p({sourceText:"",targetText:""}),b({sourceID:0,targetID:0,sourcePath:"",targetPath:""}))}function E(){if(!(o.sourceID<=0||o.targetID<=0))if(o.sourceID===o.targetID)t(Object(U.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_1")}));else{if(0===o.targetPath.indexOf(o.sourcePath))return void t(Object(U.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_4")}));t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("MOVE_ORG_DATA_TITLE"),content:n("MOVE_ORG_DATA_MESSAGE_1"),fnHandleOK:()=>{Object(ln.r)(o.sourceID,o.targetID).then((e=>{t(Object(U.d)({message:n("MOVE_ORG_DATA_MESSAGE_2")}))})).catch((e=>{t(Object(U.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_2")}))}))}})}))}}const x=e=>Object(g.jsxs)(zc.a,{children:[Object(g.jsx)("div",{className:"search-form",children:0===e?Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:O.sourceText,placeholder:n("SOURCE_ORG_NAME"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:O.sourceText&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{sourceText:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{sourceText:e.target.value}))}):Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:O.targetText,placeholder:n("TARGET_ORG_NAME"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:O.targetText&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{targetText:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{targetText:e.target.value}))})}),Object(g.jsx)(B.a,{className:Object(G.a)(a.contentWrapper,"flex-grow overflow-x-auto"),children:0===e?Object(g.jsx)("div",{className:"flex flex-col",children:Object(g.jsx)(ar.a,{className:"full",useExpand:!0,fid:c,orgs:j.sourceOrgs,fnOnClickHandler:e=>{b(Object(d.a)(Object(d.a)({},o),{},{sourceID:e,sourcePath:l[e].disp_path}))}})}):Object(g.jsx)("div",{className:"flex flex-col",children:Object(g.jsx)(ar.a,{className:"full",useExpand:!0,orgs:j.targetOrgs,fnOnClickHandler:e=>{b(Object(d.a)(Object(d.a)({},o),{},{targetID:e,targetPath:l[e].disp_path}))}})})})]});return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,TransitionComponent:kr,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("MOVE_ORG_DATA_TITLE")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{children:x(0)}),Object(g.jsx)("div",{className:"btn",children:Object(g.jsx)(Hc.a,{variant:"outlined",size:"small",className:a.button,onClick:e=>{E()},disabled:o.sourceID<=0||o.targetID<=0,"aria-label":"move selected right",children:">"})}),Object(g.jsx)("div",{children:x(1)})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"action",type:"button",onClick:e=>{E()},children:n("TRANSFER")})]})]})})]})})}const Fr=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px",borderRadius:8,"& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0",borderRadius:8},paperPermHeader:{padding:0,display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140},"&>.info>span":{fontSize:14,color:"#1e40af",cursor:"default"},"& .input-item":{width:200}},paperPermContent:{padding:0,marginTop:20,height:"calc(100vh - 530px)",overflowY:"auto"},infoFiled:{"&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},manage_type:{display:"inline-flex",flex:"0 0 auto"},manage_priority:{width:"auto",height:"24px","& .MuiSelect-root":{"padding-right":"0","padding-bottom":"4px"},"& .MuiSelect-icon":{display:"none"}},select:{width:"100%"},hint_span:{"padding-left":"10px","font-size":"1rem",color:"#9f9f9f"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:30,"& button":{marginRight:10}},h_29:{height:"29px"},menuPaper:{height:150}})));var Wr=function(e){const{pathname:t}=Object(f.g)(),a="/orgs"===t,n="/qv"===t,c="/partnership"===t,l=Fr(),r=Object(m.b)(),i=s.a.useRef(),{t:o}=Object(jt.a)("docbase"),{sysConfigure:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{orgPerms:j,orgsObj:u,selectedOrgID:O,capacity:p,parentPerms:h,codeObj:_}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[E,x]=s.a.useState(!1),[N,S]=s.a.useState(!1),[T,v]=s.a.useState(!1),[y,C]=s.a.useState({}),[A,L]=s.a.useState(""),[P,D]=s.a.useState(0),[M,F]=s.a.useState(p),[W,H]=s.a.useState(!0),[z,B]=s.a.useState(!0),[K,Y]=s.a.useState(""),[V,X]=s.a.useState(""),[q,J]=s.a.useState(""),[Z,$]=s.a.useState(""),[ee,ae]=s.a.useState(""),[ne,se]=s.a.useState(""),[ce,le]=s.a.useState(""),[re,ie]=s.a.useState(""),[oe,de]=s.a.useState(""),[be,je]=s.a.useState(""),[ue,Oe]=s.a.useState({code:"",subPath:"",fixCode:""}),[pe,he]=s.a.useState([]),[me,_e]=s.a.useState(""),[fe,ge]=s.a.useState({id:"user_name",direction:"asc"}),[Ee,xe]=s.a.useState(""),Ne=s.a.useRef(!0);s.a.useEffect((async()=>{if(Ne.current)Ne.current=!1;else{bt.a.infoLog("detail selectedID start");try{var e;if(O&&O>0){if(L(u[O].name),p&&p>=1024?(D(Math.floor(p/1024)),H(!1)):(D(p||0),H(!0)),F(p),B(u[O].allow_takeout),c){var t,a,s,l,r,i,o,d,b,j;const e=await Object(ln.j)(O);X(null!==(t=null===e||void 0===e?void 0:e.business_number)&&void 0!==t?t:""),Y(null!==(a=null===e||void 0===e?void 0:e.business_number)&&void 0!==a?a:""),$(null!==(s=null===e||void 0===e?void 0:e.ceo)&&void 0!==s?s:""),J(null!==(l=null===e||void 0===e?void 0:e.ceo)&&void 0!==l?l:""),ie(null!==(r=null===e||void 0===e?void 0:e.email)&&void 0!==r?r:""),le(null!==(i=null===e||void 0===e?void 0:e.email)&&void 0!==i?i:""),se(null!==(o=null===e||void 0===e?void 0:e.phone)&&void 0!==o?o:""),ae(null!==(d=null===e||void 0===e?void 0:e.phone)&&void 0!==d?d:""),je(null!==(b=null===e||void 0===e?void 0:e.fax)&&void 0!==b?b:""),de(null!==(j=null===e||void 0===e?void 0:e.fax)&&void 0!==j?j:"")}if(n){const e=_[O];Oe(e?{code:null===e||void 0===e?void 0:e.code,subPath:null===e||void 0===e?void 0:e.sub_path,fixCode:null===e||void 0===e?void 0:e.code}:{code:"",subPath:"",fixCode:""})}}else L(""),D(0),H(!0),B(!0),X(""),Y(""),$(""),J(""),ie(""),le(""),se(""),ae(""),je(""),de(""),_e("");xe(null===(e=u[O])||void 0===e?void 0:e.real_path),bt.a.infoLog("detail selectedID end")}catch(h){console.error(h)}}}),[O]),s.a.useEffect((()=>{if(n&&O>0){const e=_[O];Oe({code:null===e||void 0===e?void 0:e.code,subPath:null===e||void 0===e?void 0:e.sub_path,fixCode:null===e||void 0===e?void 0:e.code})}}),[_]),s.a.useEffect((()=>{bt.a.infoLog("detail orgs Obj useeffect start")}),[u]),s.a.useEffect((()=>{Se(me)}),[j,me]);const Se=s.a.useCallback(Object(ul.debounce)((e=>{const t={},n=[];if(j.forEach((e=>{t[e.user_id]=!0,n.push(Object(d.a)(Object(d.a)({},e),{},{isParent:!1}))})),u[O]){bt.a.splitPreDelimiter(u[O].fid_path).split("/").reverse().forEach((e=>{""!==e&&h[e]&&h[e].forEach((e=>{const a=e.user_id||e.obj_id;t[a]||(n.push(Object(d.a)(Object(d.a)({},e),{},{manage_type:qc.M,manage_priority:0,isParent:!0})),t[a]=!0)}))}))}if(C(t),a){let t=[];t=""===e?n:n.filter((t=>t.user_name.indexOf(e)>=0)),he(t.sort(((e,t)=>e.isParent!==t.isParent?(!0===e.isParent)-(!0===t.isParent):e.manage_type!==t.manage_type?t.manage_type-e.manage_type:e.manage_priority!==t.manage_priority?e.manage_priority-t.manage_priority:e.file_permission!==t.file_permission?t.file_permission-e.file_permission:e.user_name>t.user_name?1:e.user_name===t.user_name?0:-1)))}else{let t=[];t=""===e?n:n.filter((t=>t.name.indexOf(e)>=0)),he(t.sort(((e,t)=>e.isParent!==t.isParent?(!0===e.isParent)-(!0===t.isParent):e.obj_type!==t.obj_type?t.obj_type-e.obj_type:e.manage_type!==t.manage_type?t.manage_type-e.manage_type:e.manage_priority!==t.manage_priority?e.manage_priority-t.manage_priority:e.file_permission!==t.file_permission?t.file_permission-e.file_permission:e.name-t.name)))}}),500),[j]);function Te(e,t,n,s,c,l,i){if(r(Object(rn.ab)({show:!0})),a)Object(ln.F)(e,t.user_id,n,s,c,-1===l?0:l,i).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(ln.C)({fid:O,original:a}))})).catch((e=>{e.error===qc.gb&&("the manage priority is not unique"===e.message?r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_4")})):r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_1")})))})).finally((()=>{r(Object(rn.ab)({show:!1}))}));else{if(j.some((e=>c===qc.L&&e.manage_type===qc.L&&e.manage_priority===l&&e.obj_id!==t.obj_id)))return r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_4")})),void r(Object(rn.ab)({show:!1}));const i=[];j.forEach((e=>{e.obj_type===t.obj_type&&e.obj_id===t.obj_id?i.push(Object(d.a)(Object(d.a)({},e),{},{file_permission:n,trash_permission:s,manage_type:c,manage_priority:l,file_delete_permission:qc.z,securedoc_permission:qc.fb})):i.push(e)})),Object(ln.G)(e,i).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(ln.C)({fid:O,original:a}))})).catch((e=>{e.error===qc.gb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_1")}))})).finally((()=>{r(Object(rn.ab)({show:!1}))}))}}function ve(e,t){if(r(Object(rn.ab)({show:!0})),a)Object(ln.u)(e,t.user_id).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_2")})),r(Object(ln.C)({fid:O,original:a}))})).catch((e=>{e.error===qc.gb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{r(Object(rn.ab)({show:!1}))}));else{const n=[];j.forEach((e=>{(e.obj_type!==t.obj_type||e.obj_type===t.obj_type&&e.obj_id!==t.obj_id)&&n.push(e)})),Object(ln.G)(e,n).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_2")})),r(Object(ln.C)({fid:O,original:a}))})).catch((e=>{e.error===qc.gb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{r(Object(rn.ab)({show:!1}))}))}}const Re=e=>{if(!a&&e.obj_type===qc.db)return Object(g.jsx)(g.Fragment,{});if(e.manage_type!==qc.L)return Object(g.jsx)(Je.a,{title:o("MANAGE_TYPE_NONE"),placement:"left",arrow:!0,children:Object(g.jsx)(I.a,{className:"perm-icon-btn",onClick:t=>{if(j.filter((e=>e.manage_type===qc.L)).length>10)return void r(Object(U.c)({message:"\ubd80\uc11c\uc2b9\uc778\uc790\ub294 10\uba85\uae4c\uc9c0\ub9cc \uc9c0\uc815 \uac00\ub2a5\ud569\ub2c8\ub2e4"}));let a=0;const n=new Set(j.filter((e=>e.manage_type===qc.L)).map((e=>e.manage_priority)).filter((e=>e>=0&&e<100)));for(let e=0;e<10;e++)if(!n.has(e)){a=e;break}Te(O,e,e.file_permission,e.trash_permission,e.manage_type!==qc.L?qc.L:qc.M,a,e.file_delete_permission)},children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})})});let t="";return t=0===e.manage_priority?o("\uc870\uc9c1\uad00\ub9ac\uc790"):"".concat(o("\ud558\uc704\uc870\uc9c1\uad00\ub9ac\uc790"),"-").concat(e.manage_priority),Object(g.jsx)("div",{className:l.manage_type,children:Object(g.jsx)(I.a,{children:Object(g.jsx)(Je.a,{arrow:!0,placement:"left",title:t,children:Object(g.jsxs)(Ht.a,{select:!0,className:Object(G.a)(l.manage_priority,"manage-priority-selecte"),name:"manage_type",value:e.manage_priority>9?9:e.manage_priority,onChange:t=>Te(O,e,e.file_permission,e.trash_permission,-1===t.target.value?qc.M:e.manage_type,-1===t.target.value?0:t.target.value,e.file_delete_permission),SelectProps:{MenuProps:{classes:{paper:l.menuPaper}}},fullWidth:!0,children:[Object(g.jsx)(Q.a,{className:"justify-center",value:-1,children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:0,children:Object(g.jsx)(ha.a,{className:"",type:"manager-0",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:1,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:2,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-2",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:3,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-3",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:4,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-4",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:5,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-5",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:6,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-6",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:7,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-7",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:8,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-8",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:9,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-9",fill:"#202020"})})]})})})})};return Object(g.jsxs)("div",{className:"",ref:i,children:[Object(g.jsx)(wr,{open:T,type:"0",original:a,permsObj:y,fid:O,searchVal:me,fnHandleClose:()=>v(!1),fnSetPermComplete:()=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(ln.C)({fid:O,original:a}))}}),Object(g.jsx)(Ur,{open:E,fnHandleClose:()=>{x(!1)}}),Object(g.jsx)(Mr,{open:N,targetPath:O<=0?"":u[O].path,fnResetList:()=>{r(Object(ln.k)({parentFid:O}))},fnHandleClose:()=>S(!1)}),Object(g.jsxs)(zc.a,{className:l.cardInfo,children:[Object(g.jsxs)(Rr.a,{disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsxs)(k.a,{className:Object(G.a)(l.cardDetailInfo,"noto-bold"),variant:"h6",children:[Object(g.jsx)("span",{children:o("DETAIL_INFO")}),Object(g.jsx)("span",{children:O<=0?"":"[".concat(u[O].name,"]")})]})]}),Object(g.jsxs)(Bc.a,{className:l.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("FOLDER_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,"folder-name"),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:A,onChange:e=>L(e.target.value)})}),Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{O<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):u[O].name!==A?r(Object(R.c)({children:Object(g.jsx)(ml.a,{title:o("NAME_CHANGE"),content:o("ORG_CHANGE_MESSAGE"),fnHandleOK:()=>{r(Object(rn.ab)({show:!0})),Object(ln.A)(O,A).then((e=>{r(Object(ln.k)({parentFid:O})),r(Object(ln.f)()),r(Object(U.d)({message:o("USER_MESSAGE_17")}))})).catch((e=>{r(Object(U.c)({message:o("FOLDER_ERROR_MESSAGE_2")}))})).finally((()=>{r(Object(rn.ab)({show:!1}))}))}})})):r(Object(U.d)({message:o("EXTERNAL_ERROR_MESSAGE_6")}))},children:o("CHANGE")})})]}),b.dataleak_control?Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("ALLOW_TAKEOUT_FOLDER")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsxs)(te.a,{id:"allow_takeout",variant:"outlined",className:Object(G.a)(l.select,""),value:z,onChange:e=>{Object(ln.J)(O,e.target.value).then((()=>{B(e.target.value),r(Object(ln.k)({parentFid:O})),r(Object(U.d)({message:o("SAVED")}))})).catch((e=>{r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}))},children:[Object(g.jsx)(Q.a,{value:"true",children:o("PERMIT")}),Object(g.jsx)(Q.a,{value:"false",children:o("UNAVAILABLE")})]})})]})}):Object(g.jsx)(g.Fragment,{}),n?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("\ucf54\ub4dc")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,"folder-name"),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"code",fullWidth:!0,value:ue.code,onChange:e=>Oe(Object(d.a)(Object(d.a)({},ue),{},{code:e.target.value}))})}),Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{O<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):ue.fixCode!==ue.code?r(Object(R.c)({children:Object(g.jsx)(ml.a,{title:o("\ucf54\ub4dc \ubcc0\uacbd"),content:o("\ucf54\ub4dc\ub97c \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{(async()=>{r(Object(rn.ab)({show:!0}));try{await Object(ln.v)(ue.fixCode)&&(await Object(ln.t)(ue.code,O,ue.subPath)?(r(Object(U.d)({message:o("SECUREDOC_DIALOG_MESSAGE_3")})),r(Object(ln.M)())):r(Object(U.c)({message:o("\ubcc0\uacbd\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4")})))}catch(e){console.error(e)}finally{r(Object(rn.ab)({show:!1}))}})()}})})):r(Object(U.d)({message:o("EXTERNAL_ERROR_MESSAGE_6")}))},children:o("CHANGE")})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("\ud558\uc704\uacbd\ub85c")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"sup_path",fullWidth:!0,value:ue.subPath,onChange:e=>Oe(Object(d.a)(Object(d.a)({},ue),{},{subPath:e.target.value}))})})]})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsxs)("div",{className:l.filedTitle,children:[Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("MAX_CAPACITY")}),Object(g.jsx)("span",{className:l.hint_span,children:o("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(js.a,{type:"number",name:"capacity",disableUnderline:!0,className:l.customInput,endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(l.selectTextAlignRight,""),value:W,onChange:e=>{let t=0;t=W?1024*P:P<1024?P:Math.floor(P/1024),Object(ln.E)(u[O].disp_path,t).then((()=>{H(!W),r(Object(U.d)({message:o("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{r(Object(U.c)({message:o("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))}))},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:P,onChange:e=>D(e.target.value),onBlur:e=>{e.preventDefault();const t=W?P:1024*P;return t<0?(r(Object(U.c)({message:o("NUMBER_ERROR_MESSAGE")})),M&&M>=1024?(D(Math.floor(M/1024)),H(!1)):(D(M||0),H(!0)),!1):(M!==t&&Object(ln.E)(u[O].disp_path,t).then((()=>{F(t),r(Object(U.d)({message:o("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{r(Object(U.c)({message:o("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),!0)}})})]}),c?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("BUSINESS_NUMBER")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"business_number",fullWidth:!0,value:V,onChange:e=>X(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(K!==e.target.value)try{if(await Object(ln.w)(O,"business_number")){await Object(ln.a)(O,"business_number",e.target.value)&&(Y(e.target.value),r(Object(U.d)({message:o("SAVED")})))}}catch(t){r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}})()}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("CEO")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"ceo",fullWidth:!0,value:Z,onChange:e=>$(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(q!==e.target.value)try{if(await Object(ln.w)(O,"ceo")){await Object(ln.a)(O,"ceo",e.target.value)&&(J(e.target.value),r(Object(U.d)({message:o("SAVED")})))}}catch(t){r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}})()}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("PARTNERSHIP_EMAIL")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"email",fullWidth:!0,value:re,onChange:e=>ie(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(ce!==e.target.value)try{if(await Object(ln.w)(O,"email")){await Object(ln.a)(O,"email",e.target.value)&&(le(e.target.value),r(Object(U.d)({message:o("SAVED")})))}}catch(t){r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}})()}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("PHONE")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"phone",fullWidth:!0,value:ne,onChange:e=>se(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(ee!==e.target.value)try{if(await Object(ln.w)(O,"phone")){await Object(ln.a)(O,"phone",e.target.value)&&(ae(e.target.value),r(Object(U.d)({message:o("SAVED")})))}}catch(t){r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}})()}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:l.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:o("FAX")})}),Object(g.jsx)("div",{className:Object(G.a)(l.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"fax",fullWidth:!0,value:be,onChange:e=>je(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(oe!==e.target.value)try{if(await Object(ln.w)(O,"fax")){await Object(ln.a)(O,"fax",e.target.value)&&(Y(e.target.value),r(Object(U.d)({message:o("SAVED")})))}}catch(t){r(Object(U.c)({message:o("SETTING_UPDATE_ERROR_MESSAGE_3")}))}})()}})})]})]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)(Rr.a,{className:Object(G.a)(l.buttonGroup,"block"),children:Object(g.jsxs)("div",{className:"w-full flex",children:[Object(g.jsxs)("div",{className:Object(G.a)("inline-block align-middle"),children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{O<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):S(!0)},children:o("MOVE")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:e=>{O<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):x(!0)},children:o("MOVE_ORG_DATA_TITLE")})]}),Object(g.jsxs)("div",{className:Object(G.a)(l.h_29,"inline-block align-middle ml-5 w-100"),style:{display:"none"},children:[Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:Ee,onChange:e=>xe(e.target.value)}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{Ee.length>0&&Object(on.L)(Ee).then((()=>{r(Object(U.d)({message:o("SEARCH_INDEXING_MESSAGE_1")}))}))},children:o("SEARCH_INDEXING")})]})]})})]}),Object(g.jsxs)(zc.a,{className:l.paperPerm,children:[Object(g.jsxs)(Bc.a,{className:l.paperPermHeader,children:[Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsx)("div",{className:"input-item mr-5",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:me,placeholder:o("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:me&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>r(_e("")),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>_e(e.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{O<=0?r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_3")})):v(!0)},children:o("PERM_FOLDER_TITLE")})]}),Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:["(",o("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:pe.length}),o("CNT"),")"]})})]}),Object(g.jsx)(Bc.a,{className:l.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:o("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:o("MANAGE_PRIORITY")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_FILE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_TRASH")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_FILE_DELETE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_DELETE")})]})}),Object(g.jsx)(wl.a,{children:pe&&pe.length>0?pe.map(((e,t)=>e.file_permission===qc.B?Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(ha.a,{className:"big",type:"user-1",fill:"#202020"}),Object(g.jsx)("span",{className:"folder-name",children:e.user_name})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center"}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.B?o("PERM_NONE"):o("PERM_NOT_NONE"),children:Object(g.jsx)(I.a,{onClick:t=>ve(O,e),children:e.file_permission===qc.B?Object(g.jsx)(Il.a,{type:"visibility_off",className:""}):Object(g.jsx)(Il.a,{type:"visibility",className:""})})})})]}):e.isParent?Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(ha.a,{className:"big",type:"user-1",fill:"#202020"}),Object(g.jsx)("span",{className:"folder-name",children:a?e.user_name:e.name})]})}),Object(g.jsx)(Ll.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:Re(e)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.C?o("PERM_READ"):o("PERM_READ_WRITE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission===qc.C?qc.D:qc.C,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.file_permission===qc.C?Object(g.jsx)(Il.a,{type:"readonly",className:""}):Object(g.jsx)(Il.a,{type:"write",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===qc.Hb?o("PERM_TRASH_IMPOSSIBLE"):o("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission,e.trash_permission===qc.Hb?qc.Ib:qc.Hb,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.trash_permission===qc.Hb?Object(g.jsx)(Il.a,{type:"trash-delete",className:""}):Object(g.jsx)(Il.a,{type:"trash",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_delete_permission===qc.z?o("PERM_FILE_DELETE_POSSIBLE"):o("PERM_FILE_DELETE_IMPOSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission===qc.z?qc.A:qc.z),children:e.file_delete_permission===qc.z?Object(g.jsx)(Il.a,{type:"file-delete-allow",className:""}):Object(g.jsx)(Il.a,{type:"file-delete",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.B?o("PERM_NONE"):o("PERM_NOT_NONE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission===qc.B?qc.D:qc.B,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.file_permission===qc.B?Object(g.jsx)(Il.a,{type:"visibility_off",className:""}):Object(g.jsx)(Il.a,{type:"visibility",className:""})})})})]}):Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(ha.a,{className:"big",type:"user-1",fill:"#202020"}),Object(g.jsx)("span",{className:"folder-name",children:a?e.user_name:e.name})]})}),Object(g.jsx)(Ll.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:Re(e)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.C?o("PERM_READ"):o("PERM_READ_WRITE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission===qc.C?qc.D:qc.C,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.file_permission===qc.C?Object(g.jsx)(Il.a,{type:"readonly",className:""}):Object(g.jsx)(Il.a,{type:"write",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===qc.Hb?o("PERM_TRASH_IMPOSSIBLE"):o("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission,e.trash_permission===qc.Hb?qc.Ib:qc.Hb,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.trash_permission===qc.Hb?Object(g.jsx)(Il.a,{type:"trash-delete",className:""}):Object(g.jsx)(Il.a,{type:"trash",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_delete_permission===qc.z?o("PERM_FILE_DELETE_POSSIBLE"):o("PERM_FILE_DELETE_IMPOSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>Te(O,e,e.file_permission,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission===qc.z?qc.A:qc.z),children:e.file_delete_permission===qc.z?Object(g.jsx)(Il.a,{type:"file-delete-allow",className:""}):Object(g.jsx)(Il.a,{type:"file-delete",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:o("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"releasePerm",onClick:t=>ve(O,e),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Hr=function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(vr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Wr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};const zr=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 220px)","&>.insert-form":{padding:"0 0 10px 20px"}},icon:{width:20,height:20}})));var Br=function(e){let{fnToggleRightSidebar:t}=e;const{pathname:a}=Object(f.g)(),c="/orgs"===a,l="/partner"===a,r=zr(),i=Object(m.b)(),o=s.a.useRef(),{t:b}=Object(jt.a)("docbase"),{orgsObj:j,orgFolders:u,selectedOrgID:O,orgsChildren:p}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[h,_]=Object(n.useState)({}),[E,x]=Object(n.useState)(""),[N,S]=Object(n.useState)(""),[T,v]=Object(n.useState)(!0),[y,C]=Object(n.useState)(new Set);Object(n.useEffect)((()=>{bt.a.infoLog("orgTable selectedID end")}),[O]),Object(n.useEffect)((()=>(u.length>0&&A(E),()=>{A.cancel()})),[E,p]);const A=Object(n.useCallback)(Object(ul.debounce)((e=>{try{if(e.length>0){const t=[];u.forEach((a=>{a.org_type===qc.cb&&a.name.toLowerCase().includes(e.toLowerCase())&&t.push({fid:a.fid,name:a.name||a.disp_path.split("/").pop(),disp_path:a.disp_path,allow_takeout:a.allow_takeout,org_type:a.org_type})})),S(t),v(!1)}else L()}catch(t){console.error(t)}finally{i(Object(rn.ab)({show:!1}))}}),500),[u]),L=async()=>{const e=Array.isArray(null===p||void 0===p?void 0:p.children)?p.children:[],t=e.filter((e=>e.org_type===qc.ab)),a=e.find((e=>"\ud611\uc5c5\ud3f4\ub354"===e.name)),n=null===a||void 0===a?void 0:a.children.filter((e=>e.org_type===qc.cb)),s={};for(let c=0;c{if(e.fid===t){const t=e.children?[...e.children,a]:[a];return Object(d.a)(Object(d.a)({},e),{},{children:t})}return e.children?Object(d.a)(Object(d.a)({},e),{},{children:w(e.children,t,a)}):e}))}Object(n.useEffect)((()=>(v(!0),i(Object(ln.p)()),()=>{i(Object(ln.C)({fid:-1,original:c})).then((()=>{i(Object(ln.q)())}))})),[i]);const P=e=>{var t;i(Object(R.c)({children:Object(g.jsx)(ml.a,{title:b("DELETE_FOLDER_TITLE"),content:"'".concat(null===(t=j[e])||void 0===t?void 0:t.name,"'").concat(b("DELETE_CONTENT_FOLDER")),fnHandleOK:()=>{var t;t=e,i(Object(rn.ab)({show:!0})),Object(ln.x)(t,i).then((e=>{i(Object(U.d)({message:b("ORG_MESSAGE_1")})),i(Object(ln.f)()).then((()=>v(!1)))})).catch((e=>{i(Object(U.c)({message:b("ORG_ERROR_MESSAGE_1")}))}))}})}))};return T?Object(g.jsx)(K.a,{}):(console.log(N),Object(g.jsx)("div",{className:Object(G.a)(r.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:E,placeholder:b("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:E&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>x(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>x(e.target.value)})})}),Object(g.jsx)("div",{className:"total-cnt-info"})]}),Object(g.jsx)(B.a,{className:Object(G.a)(r.contentWrapper,"flex-grow overflow-x-hidden flex flex-col"),ref:o,children:Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,{className:"",orgs:N,expandedFids:y,setExpandedFids:C,isPartner:l,useAdd:!0,useRemove:!0,useExpand:!0,fnCreateFolder:(e,t)=>(async(e,t)=>{if(i(Object(rn.ab)({show:!0})),!t||t.trim().length<=0)return i(Object(U.c)({message:b("FOLDER_ERROR_MESSAGE_1")})),!1;if(t.trim().length>30)return i(Object(U.c)({message:b("FOLDER_ERROR_MESSAGE_3")})),!1;if(/[\\/:*?\\"<>|]/.test(t.trim()))return i(Object(U.c)({message:b("PATTERN_ERROR_MESSAGE")})),!1;try{console.log(j[e]);let a=e,n=e;j[e].org_type!==qc.cb?a=u.find((e=>"/\uc870\uc9c1/\ud611\uc5c5\ud3f4\ub354"===e.disp_path)).fid:(console.log(h[e]),n=h[e]);const s=await Object(ln.b)(t,a,qc.cb,i);await Object(ln.a)(s.fid,"manage_org",n),i(Object(U.d)({message:b("FOLDER_ADD")})),i(Object(ln.f)()),i(Object(rn.ab)({show:!1}))}catch(a){console.error(a),a.error===qc.gb&&i(Object(U.c)({message:b("FOLDER_ERROR_MESSAGE_2")}))}finally{v(!1),i(Object(rn.ab)({show:!1}))}return-1})(e,t),fnRemoveFolder:e=>P(e),fnOnClickHandler:e=>function(e){O!==e&&(i(Object(ln.C)({fid:e,original:c})),t())}(e)})})})]})}))};var Kr={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/orgs",component:Hr},{path:"/partner",component:Hr},{path:"/partnership",component:Hr},{path:"/qv",component:Hr},{path:"/collabo",component:function(){const e=s.a.useRef(null);return console.log("collabo"),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Br,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Wr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var Yr=function(e){const{t:t}=Object(jt.a)("docbase");return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"left",children:t("FOLDER_NAME")}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:t("DELETE")})]})})};const Vr=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 180px)","&>.insert-form":{padding:"0 0 10px 20px"}},icon:{width:20,height:20},insertForm:{display:"flex","&>div":{display:"flex",alignItems:"center"},"&>div:first-child":{width:"100%"},"&>div:first-child input.MuiOutlinedInput-input":{padding:"5.7px 10px"},"&>div.button-group":{paddingRight:20},"&>div.button-group>button":{width:106,height:28,marginLeft:10}}})));var Xr=function(e){const t=Vr(),a=Object(m.b)(),c=s.a.useRef(),l=s.a.useRef(null),{t:r}=Object(jt.a)("docbase"),{orgsObj:i,sharedFolders:o,sharedsObj:d,selectedSharedID:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),j=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder.searchTextShared})),[u,O]=s.a.useState(0),[h,_]=Object(n.useState)(!0),[f,E]=Object(n.useState)(o),[x,N]=Object(n.useState)(!1),[S,T]=s.a.useState({});s.a.useEffect((()=>{bt.a.infoLog("detail selectedID start"),bt.a.infoLog("detail selectedID end")}),[b]),Object(n.useEffect)((()=>(a(Object(ln.f)()).then((()=>{a(Object(ln.o)()).then((()=>{a(Object(cn.h)()).then((()=>{})),_(!1)}))})),()=>{a(Object(ln.D)({fid:-1}))})),[a]),Object(n.useEffect)((()=>{v(j)}),[o,j]);const v=Object(n.useCallback)(Object(ul.debounce)((e=>{E(p.filterFoldersByString(o,e))}),500),[o]);if(h)return Object(g.jsx)(K.a,{});const y=f.filter((e=>0===u?e.folder_type===qc.I:1!==u||e.folder_type===qc.G));return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:j,placeholder:r("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>a(Object(ln.H)("")),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>a(Object(ln.H)(e))})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:y.length}),r("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",disabled:0!==u,onClick:e=>N(!0),children:r("NEW_REGISTRATION")})})})]}),Object(g.jsxs)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:u,onChange:(e,t)=>{O(t),a(Object(ln.H)(""))},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:r("SHARED_TITLE")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:r("ORGSHARED")})]})}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Yr,{}),Object(g.jsxs)(wl.a,{children:[f.map((t=>{i[t.parent_fid]&&bt.a.splitLastDelimiterString(i[t.parent_fid].disp_path);return 0===u&&t.folder_type!==qc.I||1===u&&t.folder_type!==qc.G?"":Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:b===t.fid,onClick:n=>{return s=t.fid,void(b!==s&&(a(Object(ln.D)({fid:s})),e.fnToggleRightSidebar()));var s},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:t.folder_type===qc.G?t.disp_path:t.path,children:Object(g.jsx)("span",{children:t.name})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{e.stopPropagation(),t.folder_type===qc.G?a(Object(U.d)({message:r("FOLDER_ERROR_MESSAGE_5")})):a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:r("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(r("DELETE_CONTENT_FOLDER")),fnHandleOK:()=>{var e;e=t.fid,a(Object(ln.D)({fid:-1})),d[e].folder_type===qc.G?Object(ln.y)(e,a).then((e=>{a(Object(U.d)({message:r("SHARED_MESSAGE_1")})),a(Object(ln.o)()).then((()=>_(!1)))})).catch((e=>{a(Object(U.c)({message:r("SHARED_ERROR_MESSAGE_1")}))})):Object(ln.z)(e,a).then((e=>{a(Object(U.d)({message:r("SHARED_MESSAGE_1")})),a(Object(ln.o)()).then((()=>_(!1)))})).catch((e=>{a(Object(U.c)({message:r("SHARED_ERROR_MESSAGE_1")}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)})),x&&0===u?Object(g.jsxs)(Al.a,{className:"cursor-pointer",children:[Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)(Sl.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:e=>function(e){const t={};return!e.name||e.name.trim().length<=0?t.name=r("FOLDER_ERROR_MESSAGE_1"):e.name.trim().length>30?t.name=r("FOLDER_ERROR_MESSAGE_3"):/[\\/:*?\\"<>|]/.test(e.name.trim())?t.name=r("PATTERN_ERROR_MESSAGE"):t.name="",T(t),""===t.name&&(Object(ln.c)(e.name,a).then((e=>{a(Object(U.d)({message:r("SHARED_ERROR_MESSAGE_2")})),a(Object(ln.o)()).then((()=>_(!1))),l.current.reset(),T({name:""})})).catch((e=>{e.error===qc.gb&&(T({name:r("FOLDER_ERROR_MESSAGE_2")}),a(Object(U.c)({message:r("FOLDER_ERROR_MESSAGE_2")})))})),!0)}(e),validationErrors:S,ref:l,children:Object(g.jsxs)("div",{className:t.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(Tl.c,{className:"",placeholder:r("FOLDER_NAME"),type:"text",name:"name",variant:"outlined",validations:{idCheck:(e,t)=>(t?t.trim().length>30?T({name:r("FOLDER_ERROR_MESSAGE_3")}):/[\\/:*?\\"<>|]/.test(t.trim())?T({name:r("PATTERN_ERROR_MESSAGE")}):T({name:""}):T({name:""}),!0)},size:"small",autoFocus:!0,fullWidth:!0})}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"submit",children:r("CREATE")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",onClick:e=>(N(!1),void T({name:""})),children:r("CLOSE")})]})]})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"right"})]}):""]})]})]})]})})};const qr=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px",borderRadius:8,"& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0",borderRadius:8},paperPermHeader:{padding:0,display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140},"&>.info>span":{fontSize:14,color:"#1e40af",cursor:"default"},"& .input-item":{width:200}},paperPermContent:{padding:0,marginTop:20,height:"calc(100vh - 495px)",overflowY:"auto"},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:200,minWidth:200},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},manage_type:{display:"inline-flex",flex:"0 0 auto"},manage_priority:{width:"24px",height:"24px","& .MuiSelect-root":{"padding-right":"0","padding-bottom":"4px"},"& .MuiSelect-icon":{display:"none"}},select:{width:"100%"},hint_span:{"padding-left":"10px","font-size":"1rem",color:"#9f9f9f"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:30,"&>div>button":{marginRight:10}},tbody:{"&>tr:nth-of-type(odd)":{background:"#f5f7fa"},"&>.MuiTableRow-root.MuiTableRow-hover:hover":{background:"rgb(0 207 226 / 20%)"}},h_29:{height:"29px"},datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:185,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0},menuPaper:{height:150}}})));var Jr=function(e){var t,a;const n=qr(),c=Object(m.b)(),l=s.a.useRef(),{t:r}=Object(jt.a)("docbase"),{sharedPerms:i,selectedSharedID:o,sharedsObj:b,sharedCapacity:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[u,O]=(new Date,s.a.useState(!1)),[p,h]=s.a.useState({}),[_,f]=s.a.useState(""),[E,x]=s.a.useState(null),[N,S]=s.a.useState(j),[T,v]=s.a.useState(j),[y,C]=s.a.useState(!1),[A,L]=s.a.useState(!0),[P,D]=s.a.useState([]),[M,F]=s.a.useState(""),[W,H]=s.a.useState({id:"user_name",direction:"asc"});s.a.useEffect((()=>{o&&o>0&&b[o]?(f(b[o].name),C(b[o].folder_type===qc.G),b[o].expire_at&&""!==b[o].expire_at?x(bt.a.getDateStringToDate(b[o].expire_at)):x(null),j&&j>=1024?(S(Math.floor(j/1024)),L(!1)):(S(j||0),L(!0)),v(j)):(f(""),S(0),C(!1),L(!0),F(""))}),[o,b]),s.a.useEffect((()=>{z(M)}),[i,M]);const z=s.a.useCallback(Object(ul.debounce)((e=>{const t={};i.forEach((e=>{t[e.obj_id]=!0})),h(t);let a=[];a=""===e?[...i]:[...i].filter((t=>t.name.indexOf(e)>=0)),D(a.sort(((e,t)=>e.obj_type!==t.obj_type?t.obj_type-e.obj_type:e.manage_type!==t.manage_type?t.manage_type-e.manage_type:e.manage_priority!==t.manage_priority?e.manage_priority-t.manage_priority:e.file_permission!==t.file_permission?t.file_permission-e.file_permission:e.name-t.name)))}),500),[i]);function B(e,t,a,n,s,l,b){c(Object(rn.ab)({show:!0}));const j=[];i.forEach((e=>{e.obj_type===t.obj_type&&e.obj_id===t.obj_id?j.push(Object(d.a)(Object(d.a)({},e),{},{file_permission:a,trash_permission:n,manage_type:s,manage_priority:l,file_delete_permission:b,securedoc_permission:qc.fb,auto_approve_takeout:1,auto_approve_printer_takeout:2,auto_approve_weblink_takeout:1})):j.push(e)})),Object(ln.G)(e,j).then((e=>{c(Object(U.d)({message:r("PERM_MESSAGE_1")})),c(Object(ln.D)({fid:o}))})).catch((e=>{e.error===qc.gb&&c(Object(U.c)({message:r("PERM_ERROR_MESSAGE_1")}))})).finally((()=>{c(Object(rn.ab)({show:!1}))}))}const K=e=>{if(e.obj_type===qc.db)return Object(g.jsx)(g.Fragment,{});if(e.manage_type!==qc.L)return Object(g.jsx)(Je.a,{title:r("MANAGE_TYPE_NONE"),placement:"left",arrow:!0,children:Object(g.jsx)(I.a,{className:"perm-icon-btn",onClick:t=>{if(i.filter((e=>e.manage_type===qc.L)).length>10)return void c(Object(U.c)({message:"\ud3f4\ub354\uc2b9\uc778\uc790\ub294 10\uba85\uae4c\uc9c0\ub9cc \uc9c0\uc815 \uac00\ub2a5\ud569\ub2c8\ub2e4"}));let a=0;const n=new Set(i.filter((e=>e.manage_type===qc.L)).map((e=>e.manage_priority)).filter((e=>e>=0&&e<100)));for(let e=0;e<10;e++)if(!n.has(e)){a=e;break}B(o,e,e.file_permission,e.trash_permission,e.manage_type!==qc.L?qc.L:qc.M,a)},children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})})});let t="";return t=0===e.manage_priority?r("\ud3f4\ub354\uad00\ub9ac\uc790"):"".concat(r("\ud558\uc704\ud3f4\ub354\uad00\ub9ac\uc790"),"-").concat(e.manage_priority),Object(g.jsx)("div",{className:n.manage_type,children:Object(g.jsx)(I.a,{children:Object(g.jsx)(Je.a,{arrow:!0,placement:"left",title:t,children:Object(g.jsxs)(Ht.a,{select:!0,className:Object(G.a)(n.manage_priority,"manage-priority-selecte"),name:"manage_type",value:e.manage_priority,onChange:t=>{1===e.obj_type&&B(o,e,e.file_permission,e.trash_permission,-1===t.target.value?qc.M:e.manage_type,-1===t.target.value?0:t.target.value)},SelectProps:{MenuProps:{classes:{paper:n.menuPaper}}},fullWidth:!0,children:[Object(g.jsx)(Q.a,{className:"justify-center",value:-1,children:Object(g.jsx)(ha.a,{className:"",type:"user-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:0,children:Object(g.jsx)(ha.a,{className:"",type:"manager-0",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:1,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:2,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-2",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:3,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-3",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:4,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-4",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:5,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-5",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:6,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-6",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:7,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-7",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:8,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-8",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:9,children:Object(g.jsx)(ha.a,{className:"big",type:"manager-9",fill:"#202020"})})]})})})})};return Object(g.jsxs)("div",{className:"",ref:l,children:[Object(g.jsx)(wr,{open:u,type:"1",permsObj:p,searchVal:M,fid:o,fnHandleClose:()=>O(!1),fnSetPermComplete:()=>{c(Object(U.d)({message:r("PERM_MESSAGE_1")})),c(Object(ln.D)({fid:o}))}}),Object(g.jsxs)(zc.a,{className:n.cardInfo,children:[Object(g.jsxs)(Rr.a,{className:"",disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{c(Object(ln.D)({fid:0})),e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsxs)(k.a,{className:Object(G.a)(n.cardDetailInfo,"noto-bold"),variant:"h6",children:[Object(g.jsx)("span",{children:r("DETAIL_INFO")}),Object(g.jsx)("span",{children:o<=0?"":"[".concat(b[o].name,"]")})]})]}),Object(g.jsxs)(Bc.a,{className:n.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:n.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:r("FOLDER_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(n.filedInput,"folder-name"),children:y?Object(g.jsx)("span",{children:_}):Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:_,onChange:e=>f(e.target.value)})}),y?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{c(o<=0?Object(U.c)({message:r("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:r("NAME_CHANGE"),content:r("SHARED_CHANGE_MESSAGE"),fnHandleOK:()=>{Object(ln.B)(o,_).then((e=>{c(Object(ln.o)())}))}})}))},children:r("CHANGE")})})]}),y?Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:n.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:r("ORG_TOP")})}),Object(g.jsx)("div",{className:Object(G.a)(n.filedInput,"folder-name"),children:Object(g.jsx)("span",{children:bt.a.splitPreDelimiter(null!==(t=null===(a=b[o])||void 0===a?void 0:a.disp_path)&&void 0!==t?t:"")})})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:n.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:r("EXPIRE_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(n.filedInput,"folder-name"),children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:n.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:E,onChange:e=>{isNaN(e.getTime())||null!==E&&E.getTime()===e.getTime()||x(e)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsxs)("div",{className:Object(G.a)("align-middle items-center flex"),children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60,marginRight:10},onClick:()=>{c(o<=0?Object(U.c)({message:r("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:r("EXPIRE_AT_CHANGE"),content:r("EXPIRE_AT_CHANGE_MESSAGE_1"),fnHandleOK:()=>{Object(ln.K)(o,bt.a.getDateString(E)).then((e=>{c(Object(ln.o)()),c(Object(U.d)({message:r("EXPIRE_AT_CHANGE_MESSAGE_2")}))}))}})}))},children:r("CHANGE")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{c(o<=0?Object(U.c)({message:r("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:r("EXPIRE_AT_RELEASE"),content:r("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{Object(ln.K)(o,"").then((e=>{c(Object(ln.o)()),c(Object(U.d)({message:r("EXPIRE_AT_RELEASE_MESSAGE_2")}))}))}})}))},children:r("RELEASE")})]})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsxs)("div",{className:n.filedTitle,children:[Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:r("MAX_CAPACITY")}),Object(g.jsx)("span",{className:n.hint_span,children:r("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:Object(G.a)(n.filedInput,""),children:Object(g.jsx)(js.a,{type:"number",name:"capacity",disableUnderline:!0,className:n.customInput,endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(n.selectTextAlignRight,""),value:A,onChange:e=>{let t=0;t=A?1024*N:N<1024?N:Math.floor(N/1024),Object(ln.E)(b[o].real_path,t).then((()=>{L(!A),c(Object(U.d)({message:r("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{c(Object(U.c)({message:r("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))}))},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:N,onChange:e=>S(e.target.value),onBlur:e=>{e.preventDefault();const t=A?N:1024*N;return t<0?(c(Object(U.c)({message:r("NUMBER_ERROR_MESSAGE")})),T&&T>=1024?(S(Math.floor(T/1024)),L(!1)):(S(T||0),L(!0)),!1):(T!==t&&Object(ln.E)(b[o].real_path,t).then((()=>{v(t),c(Object(U.d)({message:r("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{c(Object(U.c)({message:r("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),!0)}})})]})]})]}),y?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)(Rr.a,{className:Object(G.a)(n.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsx)("div",{className:Object(G.a)(n.h_29,"inline-block align-middle ml-5 w-100"),style:{display:"none"},children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{o<=0?c(Object(U.c)({message:r("ORG_ERROR_MESSAGE_2")})):Object(on.L)(b[o].real_path).then((()=>{c(Object(U.d)({message:r("SEARCH_INDEXING_MESSAGE_1")}))}))},children:r("SEARCH_INDEXING")})})})})]}),Object(g.jsxs)(zc.a,{className:n.paperPerm,children:[Object(g.jsxs)(Bc.a,{className:n.paperPermHeader,children:[Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsx)("div",{className:"input-item mr-5",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:M,placeholder:r("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:M&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>c(F("")),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>F(e.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{o<=0?c(Object(U.c)({message:r("PERM_ERROR_MESSAGE_3")})):O(!0)},children:r("PERM_FOLDER_TITLE")})]}),Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:["(",r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:P.length}),r("CNT"),")"]})})]}),Object(g.jsx)(Bc.a,{className:n.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:n.th,children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:r("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:r("MANAGE_PRIORITY")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:r("PERM_FILE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:r("PERM_TRASH")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:r("PERM_FILE_DELETE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:r("PERM_DELETE")})]})}),Object(g.jsx)(wl.a,{className:n.tbody,children:P&&P.length>0?P.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(ha.a,{className:"big",type:"user-1",fill:"#202020"}),Object(g.jsx)("span",{className:"folder-name",children:e.name})]})}),Object(g.jsx)(Ll.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:y?null:K(e)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===qc.C?r("PERM_READ"):r("PERM_READ_WRITE"),children:Object(g.jsx)(I.a,{onClick:t=>B(o,e,e.file_permission===qc.C?qc.D:qc.C,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.file_permission===qc.C?Object(g.jsx)(Il.a,{type:"readonly",className:""}):Object(g.jsx)(Il.a,{type:"write",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===qc.Hb?r("PERM_TRASH_IMPOSSIBLE"):r("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>B(o,e,e.file_permission,e.trash_permission===qc.Hb?qc.Ib:qc.Hb,e.manage_type,e.manage_priority,e.file_delete_permission),children:e.trash_permission===qc.Hb?Object(g.jsx)(Il.a,{type:"trash-delete",className:""}):Object(g.jsx)(Il.a,{type:"trash",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_delete_permission===qc.z?r("PERM_FILE_DELETE_POSSIBLE"):r("PERM_FILE_DELETE_IMPOSSIBLE"),children:Object(g.jsx)(I.a,{onClick:t=>B(o,e,e.file_permission,e.trash_permission,e.manage_type,e.manage_priority,e.file_delete_permission===qc.z?qc.A:qc.z),children:e.file_delete_permission===qc.z?Object(g.jsx)(Il.a,{type:"file-delete-allow",className:""}):Object(g.jsx)(Il.a,{type:"file-delete",className:""})})})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:r("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"releasePerm",onClick:t=>function(e,t){c(Object(rn.ab)({show:!0}));const a=[];i.forEach((e=>{(e.obj_type!==t.obj_type||e.obj_type===t.obj_type&&e.obj_id!==t.obj_id)&&a.push(e)})),Object(ln.G)(e,a).then((e=>{c(Object(U.d)({message:r("PERM_MESSAGE_2")})),c(Object(ln.D)({fid:o}))})).catch((e=>{e.error===qc.gb&&c(Object(U.c)({message:r("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{c(Object(rn.ab)({show:!1}))}))}(o,e),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Zr={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/shareds",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Xr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Jr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Qr=["children","classes","onClose"],$r=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Qr);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),ei=Object(M.a)({root:{"& .MuiDialog-paper":{width:380}},title:{color:"#000000",fontSize:22,padding:30,textAlign:"center"},content:{color:"#404040",fontSize:14,padding:"0 30px",textAlign:"center","& .input-wrapper":{marginTop:20,display:"flex",alignItems:"center"},"& .title":{cursor:"default",width:"100%"},"& .input-item":{width:"100%",paddingLeft:18,minWidth:210,"& .MuiTextField-root":{textAlign:"left"}}},actions:{padding:30,justifyContent:"center","& button":{width:"100%",minWidth:130},"& button:first-child":{marginRight:8}}});function ti(e){const{t:t}=Object(jt.a)("docbase"),a=ei(),n=[];for(let s=0;s<(new Date).getHours();s++)n.push(s);return Object(g.jsxs)(v.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",className:a.root,children:[Object(g.jsx)($r,{className:a.title,onClose:e.fnHandleClose,children:e.title}),Object(g.jsxs)(el.a,{className:a.content,children:[Object(g.jsxs)("div",{className:"items-center justify-center w-full",children:[Object(g.jsx)("p",{children:e.content_1}),Object(g.jsx)("p",{children:e.content_2})]}),1===e.mode?Object(g.jsxs)("div",{className:"input-wrapper",children:[Object(g.jsx)("div",{className:"cursor-default title",children:t("RESTORE_MESSAGE_9")}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{select:!0,className:"",placeholder:t("TIME"),disableUnderline:!0,value:e.backHours,variant:"outlined",fullWidth:!0,onChange:t=>e.fnSetBackHours(t.target.value),children:n.map(((e,a)=>0===e?Object(g.jsx)(Q.a,{value:0,children:t("RESTORE_NOW")}):Object(g.jsx)(Q.a,{value:e,children:"".concat(e).concat(t("RESTORE_HOUR_BEFORE"))})))})})]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)(gl.a,{className:a.actions,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleCancel,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:e.cancelTitle}),Object(g.jsx)(Hc.a,{className:"",color:"secondary",type:"button",variant:"contained","aria-label":"ok",onClick:e.fnHandleOK,children:e.okTitle})]})]})}const ai=["children","classes","onClose"],ni=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,ai);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),si=Object(M.a)({root:{"& .MuiDialog-paper":{width:380}},title:{color:"#000000",fontSize:22,padding:30,textAlign:"center"},content:{color:"#404040",fontSize:14,padding:"0 30px",textAlign:"center"},actions:{padding:30,justifyContent:"center","& button:first-child":{marginRight:16}}});function ci(e){const{t:t}=Object(jt.a)("docbase"),a=si(),[n,c]=s.a.useState(""),[l,r]=s.a.useState({error:!1,helperText:""});return Object(g.jsxs)(v.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",className:a.root,children:[Object(g.jsx)(ni,{id:"confirm-start-restore",className:a.title,children:t("RESTORE")}),Object(g.jsxs)(el.a,{className:a.content,children:[Object(g.jsx)(tl.a,{id:"alert-dialog-slide-description",children:t("RESTORE_MESSAGE_3")}),Object(g.jsx)(Ht.a,{className:"",type:"text",name:"checkVal",fullWidth:!0,variant:"outlined",value:n,error:l.error,helperText:l.helperText,onChange:e=>c(e.target.value)})]}),Object(g.jsxs)(gl.a,{className:a.actions,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,color:"",variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button","aria-label":"ok",onClick:a=>{n&&0!==n.trim().length?"\ubcf5\uc6d0\uc2dc\uc791"===n?(e.fnHandleOK(),c(""),r({error:!1,helperText:""})):r({error:!0,helperText:t("RESTORE_ERROR_MESSAGE_2")}):r({error:!0,helperText:t("RESTORE_ERROR_MESSAGE_1")})},children:t("CONFIRM")})]})]})}const li=Object(M.a)((e=>({circle:{display:"inline-block",marginRight:10,width:8,height:8,borderRadius:"50%",backgroundColor:"#ed6b5f",cursor:"pointer","&:hover":{width:10,height:10}},contentWrapper:{height:"".concat(window.innerHeight-200,"px")},mainPaper:{borderRadius:6,padding:0},tr:{"&>.MuiTableCell-root span.folder-name":{marginLeft:12},"& .date":{width:194},"& .action-btn":{width:480,"&>div":{display:"flex",padding:"0 40px"}},"& .MuiButton-root":{width:"100%",height:28,fontSize:12,"&:first-child":{marginRight:10}}},circleProgress:{width:30,height:30,marginLeft:10}}))),ri="last_recent",ii="today",oi="date";let di;var bi=function(){const e=li(),t=Object(m.b)(),{t:a}=Object(jt.a)("docbase"),n=s.a.useRef(),[c,l]=s.a.useState(window.innerHeight),r=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.restoreObj})),[i,o]=s.a.useState(bt.a.getDateString(new Date)),[d,b]=s.a.useState(0),[j,u]=s.a.useState(2),[O,p]=s.a.useState(!1),[h,_]=s.a.useState(!1),[f,E]=s.a.useState({emergencyBtn:0,restoreBtn:0,isChange:!1}),[x,N]=s.a.useState(!1);s.a.useEffect((()=>{t(Object(rn.m)()),t(Object(rn.x)())}),[t]),s.a.useEffect((()=>{n.current&&(n.current.style.height="".concat(c-200,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[c]),s.a.useEffect((()=>{0!==r.mode&&(u(r.mode),1===r.mode?b(r.back_hours):3===r.mode&&o(r.date)),1===r.process_type?0===r.status?(clearInterval(di),di=void 0,N(!1),0===r.mode?E({emergencyBtn:1,restoreBtn:1,isChange:!0}):E({emergencyBtn:3,restoreBtn:1,isChange:!1})):1===r.status&&(di||(di=setInterval((()=>{t(Object(rn.m)())}),2e3)),E(x?{emergencyBtn:0,restoreBtn:2,isChange:!1}:{emergencyBtn:2,restoreBtn:0,isChange:!1})):2===r.process_type?0===r.status?(clearInterval(di),di=void 0,N(!1),E({emergencyBtn:1,restoreBtn:1,isChange:!0})):1===r.status&&(di||(di=setInterval((()=>{t(Object(rn.m)())}),2e3)),E({emergencyBtn:0,restoreBtn:2,isChange:!1})):0===r.process_type?(di&&clearInterval(di),E({emergencyBtn:1,restoreBtn:1,isChange:!0})):E({emergencyBtn:0,restoreBtn:0,isChange:!1})}),[r]);const S=t=>{if((r.date===t||"-"===r.date&&"today"===t)&&0!==r.mode&&1===r.process_type){if(2===f.emergencyBtn||2===f.restoreBtn)return Object(g.jsx)("p",{});if(1===r.mode)return 0===Number(r.back_hours)?Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:e.circle}),"".concat(a("RESTORE_TEMP_PROCESSING")," [").concat(a("RESTORE_NOW"),"]")]}):Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:e.circle}),"".concat(a("RESTORE_TEMP_PROCESSING")," [").concat(a("RESTORE_NOW")," ").concat(r.back_hours," ").concat(a("RESTORE_HOUR_BEFORE"),"]")]});if(2===r.mode)return Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:e.circle}),"".concat(a("RESTORE_TEMP_PROCESSING")," [").concat(a("RESTORE_TODAY"),"]")]});if(3===r.mode)return Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:e.circle}),"".concat(a("RESTORE_TEMP_PROCESSING")," [").concat(a("RESTORE_ONE_DAY"),": ").concat(r.date,"]")]})}return Object(g.jsx)(g.Fragment,{})},T=n=>{if(r.date===n||"-"===r.date&&"today"===n){if(2===f.emergencyBtn||2===f.restoreBtn)return Object(g.jsx)("div",{className:"",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:"",children:a("RESTORE_CHANGING")}),Object(g.jsx)(Cc.a,{className:Object(G.a)(e.circleProgress,"align-middle"),color:"secondary",size:30})]})});if(3===f.emergencyBtn)return Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Hc.a,{className:"default",variant:"contained",color:"","aria-label":"restore-mode",onClick:e=>{1===f.restoreBtn&&(N(!0),_(!0))},disabled:0===f.restoreBtn,children:a("RESTORE")}),Object(g.jsx)(Hc.a,{className:"",variant:"contained",color:"secondary","aria-label":"emergency-mode",onClick:e=>{3===f.emergencyBtn&&t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("RESTORE_TEMP"),content:a("RESTORE_MESSAGE_2"),fnHandleOK:()=>{Object(rn.j)().then((e=>{t(Object(rn.m)())})).catch((e=>t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_5")})))).finally((()=>{t(Object(R.a)())}))}})}))},children:a("RESTORE_TEMP_FINISH")})]})}return"today"===n?Object(g.jsxs)("div",{children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===f.emergencyBtn,onClick:()=>{0===r.status?(u(2),p(!0)):t(Object(U.d)({message:a("RESTORE_MESSAGE_8")}))},children:a("RESTORE_TODAY")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===f.emergencyBtn,onClick:()=>{0===r.status?(u(1),p(!0)):t(Object(U.d)({message:a("RESTORE_MESSAGE_8")}))},children:a("RESTORE_ONE_TIME")})]}):Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===f.emergencyBtn,onClick:()=>{0===r.status&&0===r.mode?(u(3),o(n),p(!0)):t(Object(U.d)({message:a("RESTORE_MESSAGE_8")}))},children:a("RESTORE")})})};let v="";return 2===j?v=a("RESTORE_MESSAGE_1"):1===j?v=a("RESTORE_MESSAGE_4"):3===j&&(v="".concat(bt.a.getDateString(i)," ").concat(a("RESTORE_MESSAGE_5"))),Object(g.jsx)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsx)(B.a,{className:Object(G.a)(e.contentWrapper,"w-full flex-grow overflow-x-auto"),ref:n,children:Object(g.jsxs)(Vt.a,{className:e.mainPaper,children:[Object(g.jsx)(ti,{open:O,mode:j,title:a("RESTORE"),content_1:a("RESTORE_MESSAGE_6"),content_2:v,cancelTitle:a("RESTORE_TEMP"),okTitle:a("RESTORE"),backHours:d,fnHandleClose:()=>p(!1),fnSetBackHours:e=>b(e),fnHandleCancel:()=>(()=>{let e="last_recent";if(1===j)e=ri;else if(3===j)e=oi;else{if(2!==j)return t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_3")})),void p(!1);e=ii}Object(rn.eb)(e,d,bt.a.getDateString(i)).then((e=>{t(Object(rn.m)()),p(!1)})).catch((e=>t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_4")}))))})(),fnHandleOK:()=>{_(!0),p(!1)}}),Object(g.jsx)(ci,{open:h,fnHandleClose:()=>_(!1),fnHandleOK:()=>{let e="last_recent";if(1===j)e=ri;else if(3===j)e=oi;else{if(2!==j)return t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_6")})),void _(!1);e=ii}Object(rn.S)(e,d,bt.a.getDateString(i)).then((e=>{t(Object(rn.m)()),_(!1)}))}}),Object(g.jsx)("div",{children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left",children:a("RESTORE_SUB_TITLE")}),Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left",children:a("STATUS")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:""})]})}),Object(g.jsxs)(wl.a,{children:[Object(g.jsxs)(Al.a,{className:Object(G.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left date",align:"left",component:"td",scope:"row",children:bt.a.getDateString(new Date)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:S("today")}),Object(g.jsx)(Ll.a,{className:"action-btn",component:"td",scope:"row",align:"center",children:T("today")})]}),r.days.map(((t,a)=>Object(g.jsxs)(Al.a,{className:Object(G.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left date",align:"left",component:"td",scope:"row",children:"".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6))}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:S("".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6)))}),Object(g.jsx)(Ll.a,{className:"action-btn",component:"td",scope:"row",align:"center",children:T("".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6)))})]},a)))]})]})})]})})})};var ji={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/restore",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(bi,{}),innerScroll:!0,sidebarInner:!0})}}]};const ui=Object(M.a)((e=>({root:{width:55,height:31,padding:0},switchBase:{padding:4,color:"#22b9db"},thumb:{width:23,height:23,backgroundColor:"#fff"},track:{background:"#eceff4",opacity:"1 !important",border:"1px solid #d9dee5",borderRadius:20,position:"relative","&:before, &:after":{display:"inline-block",position:"absolute",top:"50%",width:"50%",transform:"translateY(-50%)",color:"#fff",textAlign:"center",fontSize:10},"&:before":{content:'"on"',left:2,opacity:0},"&:after":{content:'"off"',right:0,color:"#8b95a1"}},checked:{"&$switchBase":{color:"#185a9d",transform:"translateX(24px)","&:hover":{backgroundColor:"rgba(24,90,257,0.08)"}},"& $thumb":{backgroundColor:"#fff"},"& + $track":{background:"#00cfe2",border:"1px solid #e1e5eb","&:before":{opacity:1},"&:after":{opacity:0}}}})));var Oi=e=>{const t=ui();return Object(g.jsx)(ae.a,{classes:t,className:e.className,name:e.name,checked:e.checked,disabled:e.disabled,onChange:t=>e.onChange(t)})};const pi=["children","value","index"],hi=Object(M.a)((e=>({root:{},mainPaper:{borderRadius:6,padding:40,"&>.setting":{flexWrap:"wrap"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},settingTitle:{display:"block",width:"100%",cursor:"default",verticalAlign:"middle",fontSize:16,marginTop:10,marginBottom:5,"&:first-child":{marginTop:0}},settingGroup:{color:"#353b48",fontSize:14,marginRight:30,"&>.row":{display:"flex",width:690,justifyContent:"center",borderTop:"1px solid #e3e3e3","&:last-child":{borderBottom:"1px solid #e3e3e3"},"&>div":{display:"flex",alignItems:"center",padding:"0 30px"}},"&>.row>.title":{width:277,height:70,background:"#f5f7fa","& span":{cursor:"default",display:"block"}},"&>.row>.content":{width:413},"&>.row.tall>div":{height:"auto"},"&>.row.tall>.content":{display:"block",padding:"20px 30px"}},hintSpan:{display:"block",marginTop:10,fontSize:12,color:"#9e9e9e"},inputForm:{width:"100%",maxWidth:265},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},productImageUpload:{transitionProperty:"box-shadow",transitionDuration:e.transitions.duration.short,transitionTimingFunction:e.transitions.easing.easeInOut,background:e.palette.secondary.main},contentWrapper:{height:"".concat(window.innerHeight-200,"px"),borderRadius:6},etcBox:{display:"none",marginTop:20,"&>div":{marginRight:10},"&>div:last-child":{marginRight:0}},selectTextAlignRight:{"padding-right":"25px","& .MuiSelect-select":{"text-align":"right"}},tabPanel:{overflow:"auto","&>.MuiBox-root":{padding:"30px 0 0 0"}}})));function mi(e){const{children:t,value:a,index:n}=e,s=Object(Ws.a)(e,pi);return Object(g.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n)},s),{},{children:a===n&&Object(g.jsx)(Ot.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function _i(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}let fi,gi={};var Ei=function(){const e=hi(),t=Object(m.b)(),a=s.a.useRef(),c=Object(n.useRef)(null),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),{sysConfigure:o,alienConObj:b,seedKey:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),u=Object(m.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),[O,p]=s.a.useState(!1),[h,_]=s.a.useState(o),[f,E]=s.a.useState({collectObj:{capacity:0,unit:!1},privateObj:{capacity:0,unit:!1},orgObj:{capacity:0,unit:!1},sharedObj:{capacity:0,unit:!1}}),[x,N]=s.a.useState(0),[S,T]=s.a.useState({fileSize:0,fileUnit:!1,totalSize:0,totalUnit:!1}),[v,y]=s.a.useState({size:0,unit:!1}),[C,A]=s.a.useState(0);function L(e){e.target.value!==String(o[e.target.name])&&D(e.target.name,e.target.value)}function P(e){_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:!h[e.target.name]})),D(e.target.name,!h[e.target.name])}function D(e,a){gi[e]=a,"sync_solution_consumer_folder_accessible"===e&&(gi.sync_solution_integrated=!0),clearTimeout(fi),fi=setTimeout((()=>{"default_volume_label"===e&&(gi.lock_volume_label=h.lock_volume_label),"lock_volume_label"===e&&(gi.default_volume_label=h.default_volume_label),t(Object(rn.bb)({setConf:gi,succMsg:l("TAKEOUT_APPROVE_MESSAGE_1")})).then((()=>{gi={},t(Object(rn.B)())}))}),500)}s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(r-200,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{_(o);const e={collectObj:{capacity:0,unit:!1},privateObj:{capacity:0,unit:!1},orgObj:{capacity:0,unit:!1},sharedObj:{capacity:0,unit:!1}};o.private_folder_size&&o.private_folder_size>=1024?(e.privateObj.capacity=Math.floor(o.private_folder_size/1024),e.privateObj.unit=!1):(e.privateObj.capacity=o.private_folder_size||0,e.privateObj.unit=!0),o.collect_folder_size&&o.collect_folder_size>=1024?(e.collectObj.capacity=Math.floor(o.collect_folder_size/1024),e.collectObj.unit=!1):(e.collectObj.capacity=o.collect_folder_size||0,e.collectObj.unit=!0),o.organization_folder_size&&o.organization_folder_size>=1024?(e.orgObj.capacity=Math.floor(o.organization_folder_size/1024),e.orgObj.unit=!1):(e.orgObj.capacity=o.organization_folder_size||0,e.orgObj.unit=!0),o.shared_folder_size&&o.shared_folder_size>=1024?(e.sharedObj.capacity=Math.floor(o.shared_folder_size/1024),e.sharedObj.unit=!1):(e.sharedObj.capacity=o.shared_folder_size||0,e.sharedObj.unit=!0),E(e),o.restrict_file_size&&o.restrict_file_size>=1073741824?y({size:Math.floor(o.restrict_file_size/1024/1024/1024),unit:!1}):y({size:o.restrict_file_size?Math.floor(o.restrict_file_size/1024/1024):0,unit:!0});const t=o.weblink_restrict_file_size>1073741824,a=o.weblink_restrict_total_size>1073741824;T({fileSize:t?Math.floor(o.weblink_restrict_file_size/1024/1024/1024):Math.floor(o.weblink_restrict_file_size/1024/1024),fileUnit:!t,totalSize:a?Math.floor(o.weblink_restrict_total_size/1024/1024/1024):Math.floor(o.weblink_restrict_total_size/1024/1024),totalUnit:!a})}),[o]),s.a.useEffect((()=>{}),[b]),s.a.useEffect((()=>{t(Object(rn.B)()).then((()=>{t(Object(rn.A)())}))}),[t]);let M="";return M=u.settledExpireMaintenance?bt.a.getDateStringToLocalDate(u.expireMaintenanceAt,"yyyy-mm-dd"):"-",Object(g.jsx)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsxs)(B.a,{className:Object(G.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:[Object(g.jsx)(yc.a,{className:e.backdrop,open:O,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsxs)(Vt.a,{className:e.mainPaper,children:[Object(g.jsx)(Ue.a,{position:"static",className:e.tabsBar,children:Object(g.jsxs)(kl.a,{value:C,indicatorColor:"",onChange:(e,t)=>{C!==t&&A(t)},children:[Object(g.jsx)(Gl.a,Object(d.a)({label:l("DEFAULT_SETTING")},_i(0))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("SETUP_SETTING")},_i(1))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("FOLDER_SIZE_SETTING")},_i(2))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("WEBLINK_SETTING")},_i(3))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("SETTING_PII_DETECT")},_i(4))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("SETTING_CENTRALIZED_DOC")},_i(5))),Object(g.jsx)(Gl.a,Object(d.a)({label:l("SERVER_INFO")},_i(6)))]})}),Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:0,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("DEFAULT_SETTING")}),Object(g.jsxs)("div",{className:"flex setting",children:[Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_STRONG_PASSWORD")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"strong_password",checked:h.strong_password,onChange:e=>P(e)}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:l("SETTING_STRONG_PASSWORD_HINT")})]})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_TWO_FACTOR_AUTH")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"two_factor_authentication",checked:h.two_factor_authentication,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_DUP_DETECT_ENABLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"dup_detect_enable",checked:h.dup_detect_enable,onChange:e=>P(e)})})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_BACKUP_KEEPDAY")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(js.a,{type:"text",name:"keep_days_backup_data",disableUnderline:!0,className:e.customInput,value:h.keep_days_backup_data,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e),endAdornment:Object(g.jsx)(zt.a,{position:"end",style:{paddingRight:"5px"},children:l("DAY")})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("PRESERVE_LAST")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"preserve_last_revision",checked:h.preserve_last_revision,onChange:e=>P(e)}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:l("PRESERVE_LAST_HELP")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("KEEP_DAYS_IN_TRASH")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(js.a,{type:"text",name:"keep_days_in_trash",disableUnderline:!0,className:e.customInput,value:h.keep_days_in_trash,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>{L(e)},endAdornment:Object(g.jsx)(zt.a,{position:"end",style:{paddingRight:"5px"},children:l("DAY")})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:l("KEEP_DAYS_IN_TRASH_HELP")})]})]})]})]}),Object(g.jsxs)("div",{className:e.settingGroup,children:[2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("DESKTOP_WEB_SUPPORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"desktop_web_support",checked:h.desktop_web_support,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("MOBILE_WEB_SUPPORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"mobile_web_support",checked:h.mobile_web_support,onChange:e=>P(e)})})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("ALLOW_ADMIN_ACCESS_USERS_FOLDERS")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(Oi,{name:"allow_admin_access_users_folders",checked:h.allow_admin_access_users_folders,onChange:e=>P(e)}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:l("ALLOW_ADMIN_ACCESS_USERS_FOLDERS_HINT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("PRIVATE_FOLDER_SUPPORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"private_folder_support",checked:h.private_folder_support,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("NO_SHELL_MENU")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(Oi,{name:"no_shell_menu",checked:h.no_shell_menu,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("NO_TRAY_ICON_MENU")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(Oi,{name:"no_tray_icon_menu",checked:h.no_tray_icon_menu,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("NO_TRAY_ICON_MENU_HINT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("RESTRICT_SIZE_TITLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",disableUnderline:!0,className:e.customInput,name:"restrict_file_size",value:v.size,onChange:e=>y(Object(d.a)(Object(d.a)({},v),{},{size:Number(e.target.value)})),onBlur:e=>{e.preventDefault();const t=v.unit?1024*v.size*1024:1024*v.size*1024*1024;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:v.unit,onChange:e=>{let t=0;t=v.unit?v.size<1024?0:Math.floor(v.size/1024):1024*v.size,y({unit:!v.unit,size:t})},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("RESTRICT_EXT_TITLE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"restrict_file_exts",value:h.restrict_file_exts,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"text-left"),children:l("RESTRICT_EXT_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("RESTRICT_EXT_REMOVE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"restrict_file_exts_remove_at_batch",checked:!h.restrict_file_exts_remove_at_batch,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("RESTRICT_EXT_REMOVE_HELP_TEXT")})]})]})]})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:e.etcBox,children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("FACTORY_RESET"),content:l("FACTORY_RESET_CONFIRM"),fnHandleOK:()=>{p(!0),Object(rn.i)().then((e=>{t(Object(U.d)({message:l("FACTORY_RESET_MESAGE")})),p(!1),window.location.href="/"})).catch((e=>t(Object(U.c)({message:l("FACTORY_RESET_FAILED")}))))}})}))},children:l("FACTORY_RESET")})}),Object(g.jsxs)("div",{children:[Object(g.jsxs)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{c.current.click()},children:[Object(g.jsx)(w.a,{fontSize:"default",color:"white",children:"publish"}),l("SETTING_UPDATE")]}),Object(g.jsx)("input",{className:"hidden",id:"button-file",type:"file",ref:c,onChange:e=>{p(!0),Object(rn.kb)(e.target.files[0]).then((e=>t(Object(U.d)({message:l("SETTING_UPDATE_MESSAGE_1")})))).catch((e=>{e.error===qc.jb?t(Object(U.c)({message:l("SETTING_UPDATE_ERROR_MESSAGE_1")})):e.error===qc.gb?t(Object(U.c)({message:l("SETTING_UPDATE_ERROR_MESSAGE_2")})):t(Object(U.c)({message:l("SETTING_UPDATE_ERROR_MESSAGE_3")}))})).finally((()=>{p(!1)})),c.current.value=""}})]}),Object(g.jsx)("div",{children:""===j?Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(Object(rn.A)())},children:l("SEEDKEY")}):Object(g.jsxs)(k.a,{className:"font-medium relative ",variant:"subtitle1",color:"textSecondary",style:{"line-height":"5rem"},children:[j,Object(g.jsx)(Je.a,{className:"inline-block",arrow:!0,title:l("COPY"),children:Object(g.jsx)(I.a,{className:"",onClick:e=>{const a=document.createElement("input");a.value=j,document.body.appendChild(a),a.select(),document.execCommand("copy"),a.remove(),t(Object(U.d)({message:l("SEEDKEY_COPY")}))},children:Object(g.jsx)(w.a,{children:"file_copy"})})})]})})]})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:1,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("SETUP_SETTING")}),Object(g.jsxs)("div",{className:"flex setting",children:[Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("CONNECT_SERVER_ADDRESS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,name:"connect_server_address",className:e.customInput,value:h.connect_server_address,onChange:e=>{_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value}))},onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("MAP_MOUNT_DRIVE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)(te.a,{variant:"outlined",className:Object(G.a)(e.select,"w-full"),value:h.map_mount_drive,name:"map_mount_drive",onChange:e=>{!function(e){e.target.value!==String(o[e.target.name])&&(_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),D(e.target.name,e.target.value))}(e),""!==h.force_map_mount_drive&&D("force_map_mount_drive",e.target.value)},children:[Object(g.jsx)(Q.a,{value:"",children:l("UNSELECTED")}),["E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"].map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))]})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("FORCE_MAP_MOUNT_DRIVE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"force_map_mount_drive",checked:""!==h.force_map_mount_drive,onChange:e=>{D(e.target.name,""!==h.force_map_mount_drive?"":h.map_mount_drive)}}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FORCE_MAP_MOUNT_DRIVE_HINT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SILENT_SETUP")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(Oi,{name:"silent_setup",checked:h.silent_setup,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("SILENT_SETUP_HINT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("DISABLE_CONNECT_BUTTON_WEBADMIN")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(Oi,{name:"disable_connect_button_webadmin",checked:h.disable_connect_button_webadmin,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("AUTO_START")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(Oi,{name:"auto_start",checked:h.auto_start,onChange:e=>P(e)})})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("DISABLE_SAVE_PASSWORD")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(Oi,{name:"disable_save_password",checked:h.disable_save_password,onChange:e=>P(e)})})]})]}),Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("FORCE_SETUP_PERFORM")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(Oi,{name:"force_setup_perform",checked:h.force_setup_perform,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FORCE_SETUP_PERFORM_HINT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_LOCK_VOLUME_LABEL")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(Oi,{name:"lock_volume_label",checked:h.lock_volume_label,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_DEFAULT_VOLUME_LABEL")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",name:"default_volume_label",disableUnderline:!0,className:e.customInput,value:h.default_volume_label,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("INTEGRATED_WITH_AD")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)("span",{children:h.integrated_with_AD?l("USE"):l("UNUSED")})})})]})]})]})]}),Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:2,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("FOLDER_SIZE_SETTING")}),Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("PRIVATEFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"private_folder_size",disableUnderline:!0,className:e.customInput,value:f.privateObj.capacity,onChange:e=>{E(Object(d.a)(Object(d.a)({},f),{},{privateObj:Object(d.a)(Object(d.a)({},f.privateObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=f.privateObj.unit?f.privateObj.capacity:1024*f.privateObj.capacity;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:f.privateObj.unit,onChange:e=>{const t=Object(d.a)({},f);f.privateObj.unit?t.privateObj.capacity=f.privateObj.capacity<1024?0:Math.floor(f.privateObj.capacity/1024):t.privateObj.capacity=1024*f.privateObj.capacity,t.privateObj.unit=!f.privateObj.unit,E(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("COLLECTFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"collect_folder_size",disableUnderline:!0,className:e.customInput,value:f.collectObj.capacity,onChange:e=>{E(Object(d.a)(Object(d.a)({},f),{},{collectObj:Object(d.a)(Object(d.a)({},f.collectObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=f.collectObj.unit?f.collectObj.capacity:1024*f.collectObj.capacity;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:f.collectObj.unit,onChange:e=>{const t=Object(d.a)({},f);f.collectObj.unit?t.collectObj.capacity=f.collectObj.capacity<1024?0:Math.floor(f.collectObj.capacity/1024):t.collectObj.capacity=1024*f.collectObj.capacity,t.collectObj.unit=!f.collectObj.unit,E(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("ORGFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"organization_folder_size",disableUnderline:!0,className:e.customInput,value:f.orgObj.capacity,onChange:e=>{E(Object(d.a)(Object(d.a)({},f),{},{orgObj:Object(d.a)(Object(d.a)({},f.orgObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=f.orgObj.unit?f.orgObj.capacity:1024*f.orgObj.capacity;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:f.orgObj.unit,onChange:e=>{const t=Object(d.a)({},f);f.orgObj.unit?t.orgObj.capacity=f.orgObj.capacity<1024?0:Math.floor(f.orgObj.capacity/1024):t.orgObj.capacity=1024*f.orgObj.capacity,t.orgObj.unit=!f.orgObj.unit,E(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SHAREDFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"shared_folder_size",disableUnderline:!0,className:e.customInput,value:f.sharedObj.capacity,onChange:e=>{E(Object(d.a)(Object(d.a)({},f),{},{sharedObj:Object(d.a)(Object(d.a)({},f.sharedObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=f.sharedObj.unit?f.sharedObj.capacity:1024*f.sharedObj.capacity;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:f.sharedObj.unit,onChange:e=>{const t=Object(d.a)({},f);f.sharedObj.unit?t.sharedObj.capacity=f.sharedObj.capacity<1024?0:Math.floor(f.sharedObj.capacity/1024):t.sharedObj.capacity=1024*f.sharedObj.capacity,t.sharedObj.unit=!f.sharedObj.unit,E(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]})]})})]}),Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:3,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("WEBLINK_SETTING")}),Object(g.jsxs)("div",{className:"flex setting",children:[Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_USED")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"weblink_service_support",checked:h.weblink_service_support,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("WEBLINK_COMMENT_1")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_SERVICE_ADDR")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_service_address",value:h.weblink_service_address,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_SERVICE_PORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_service_port",value:h.weblink_service_port,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_FORCED_USE_PASSWORD")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"weblink_forced_use_password",checked:h.weblink_forced_use_password,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_MAX_DOWNLOAD")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_max_downloads",value:h.weblink_max_downloads,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]})]}),Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_DEFAULT_EXPIRE_DAYS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_default_expire_days",value:h.weblink_default_expire_days,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_EXPIRE_DAYS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_max_expire_days",value:h.weblink_max_expire_days,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_RESTRICT_EXTS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_restrict_exts",value:h.weblink_restrict_exts,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_RESTRICT_FILE_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"weblink_restrict_file_size",disableUnderline:!0,className:e.customInput,value:S.fileSize,onChange:e=>{T(Object(d.a)(Object(d.a)({},S),{},{fileSize:Number(e.target.value)}))},onBlur:e=>{e.preventDefault();const t=S.fileUnit?1024*S.fileSize*1024:1024*S.fileSize*1024*1024;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"weblink_restrict_file_size",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:S.fileUnit,onChange:e=>{const t=Object(d.a)({},S);S.fileUnit?t.fileSize=S.fileSize<1048576?0:Math.floor(S.fileSize/1048576):t.fileSize=1024*S.fileSize*1024*1024,t.fileUnit=!S.fileUnit,T(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("WEBLINK_RESTRICT_TOTAL_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"weblink_restrict_total_size",disableUnderline:!0,className:e.customInput,value:S.totalSize,onChange:e=>{T(Object(d.a)(Object(d.a)({},S),{},{totalSize:Number(e.target.value)}))},onBlur:e=>{e.preventDefault();const t=S.totalUnit?1024*S.totalSize*1024:1024*S.totalSize*1024*1024;o[e.target.name]!==t&&D([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"weblink_restrict_total_size",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:S.totalUnit,onChange:e=>{const t=Object(d.a)({},S);S.totalUnit?t.totalSize=S.totalSize<1048576?0:Math.floor(S.totalSize/1048576):t.totalSize=1024*S.totalSize*1024*1024,t.totalUnit=!S.totalUnit,T(t)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:l("FOLDER_SIZE_HELP_TEXT")})]})]})]})]})]}),Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:4,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("SETTING_PII_DETECT")}),Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_PII_DETECT_ENABLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"pii_detect_enable",checked:h.pii_detect_enable,onChange:e=>P(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SETTING_PII_DETECT_OCR")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"async_ocr",checked:h.async_ocr,onChange:e=>P(e)})})]})]})})]}),2!==h.menu_support_type&&(u.supportDataleakControl||u.supportSavingControl||u.supportAccessControl)?Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:5,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("SETTING_CENTRALIZED_DOC")}),Object(g.jsxs)("div",{className:"flex setting",children:[Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("DATALEAK_CONTROL")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"dataleak_control",checked:h.dataleak_control,onChange:e=>u.supportDataleakControl?(P(e),!0):(t(Object(U.d)({message:l("DATALEAK_MESSAGE_1")})),!1)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("ACCESS_CONTROL_USED")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"access_control",checked:h.access_control,onChange:e=>u.supportAccessControl?(P(e),!0):(t(Object(U.d)({message:l("DATALEAK_MESSAGE_2")})),!1)})})]})]}),Object(g.jsx)("div",{className:e.settingGroup,children:Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SAVING_CONTROL_USED")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"saving_control",checked:h.saving_control,onChange:e=>u.supportSavingControl?(P(e),!0):(t(Object(U.d)({message:l("DATALEAK_MESSAGE_3")})),!1)})})]})})]}),Object(g.jsx)("div",{className:e.settingTitle,children:l("SYNC_SOLUTION_TITLE")}),Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SYNC_SOLUTION_INTEGRATED")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"sync_solution_integrated",checked:h.sync_solution_integrated,onChange:e=>P(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:l("SYNC_SOLUTION_INTEGRATED_HINT_1")}),Object(g.jsx)("span",{className:e.hintSpan,children:l("SYNC_SOLUTION_INTEGRATED_HINT_2")})]})]}),h.sync_solution_integrated?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SYNC_SOLUTION_NAME")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",name:"sync_solution",className:Object(G.a)(e.inputRight,"no-border"),value:h.sync_solution,readOnly:!0})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"text-left"),children:l("RESTRICT_EXT_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("SYNC_SOLUTION_CONSUMER_FOLDER_ACCESSIBLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Oi,{name:"sync_solution_consumer_folder_accessible",checked:h.sync_solution_consumer_folder_accessible,onChange:e=>P(e)})})]})]}):Object(g.jsx)(g.Fragment,{})]})})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)(mi,{className:e.tabPanel,value:C,index:6,children:[Object(g.jsx)("div",{className:e.settingTitle,children:l("SERVER_INFO")}),Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"left secondary",align:"left",padding:"none",children:l("SEEDKEY")}),Object(g.jsx)(Ll.a,{className:"left secondary",align:"left",padding:"none",children:l("USER_LICENSES")}),Object(g.jsx)(Ll.a,{className:"left secondary",align:"left",padding:"none",children:l("EXPIRE_DATE")}),Object(g.jsx)(Ll.a,{className:"left secondary",align:"left",padding:"none",children:l("MAINTENANCE_AT")})]})}),Object(g.jsxs)(wl.a,{children:[Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:j}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:u.userLicenses}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(u.expireAt,"yyyy-mm-dd")}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:M})]})]})})]})]})]})})};var xi=function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Ei,{}),innerScroll:!0,sidebarInner:!0})};const Ni=Object(M.a)((e=>({root:{},mainPaper:{borderRadius:6,padding:40,"&>.setting":{flexWrap:"wrap"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},settingTitle:{display:"block",width:"100%",cursor:"default",verticalAlign:"middle",fontSize:16,marginTop:10,marginBottom:5,"&:first-child":{marginTop:0}},settingGroup:{color:"#353b48",fontSize:14,marginRight:30,"&>.row":{display:"flex",width:690,justifyContent:"center",borderTop:"1px solid #e3e3e3","&:last-child":{borderBottom:"1px solid #e3e3e3"},"&>div":{display:"flex",alignItems:"center",padding:"0 30px"}},"&>.row>.title":{width:277,height:70,background:"#f5f7fa","& span":{cursor:"default",display:"block"}},"&>.row>.content":{width:413},"&>.row.tall>div":{height:"auto"},"&>.row.tall>.content":{display:"block",padding:"20px 30px"}},hintSpan:{display:"block",marginTop:10,fontSize:12,color:"#9e9e9e"},inputForm:{width:"100%",maxWidth:265},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},contentWrapper:{height:"".concat(window.innerHeight-200,"px"),borderRadius:6},selectTextAlignRight:{"padding-right":"25px","& .MuiSelect-select":{"text-align":"right"}}})));let Si,Ti={};var vi=function(){const e=Ni(),t=Object(m.b)(),a=s.a.useRef(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState(window.innerHeight),{sysConfigure:r,alienConObj:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[o,b]=s.a.useState(!1),[j,u]=s.a.useState(r),[O,p]=s.a.useState({size:0,unit:!1});function h(e,a){Ti[e]=a,"sync_solution_consumer_folder_accessible"===e&&(Ti.sync_solution_integrated=!0),clearTimeout(Si),Si=setTimeout((()=>{"default_volume_label"===e&&(Ti.lock_volume_label=j.lock_volume_label),"lock_volume_label"===e&&(Ti.default_volume_label=j.default_volume_label),t(Object(rn.bb)({setConf:Ti,succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")})).then((()=>{Ti={},t(Object(rn.B)())}))}),500)}return s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(c-200,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[c]),s.a.useEffect((()=>{u(r),r.restrict_file_size&&r.restrict_file_size>=1073741824?p({size:Math.floor(r.restrict_file_size/1024/1024/1024),unit:!1}):p({size:r.restrict_file_size?Math.floor(r.restrict_file_size/1024/1024):0,unit:!0})}),[r]),s.a.useEffect((()=>{t(Object(rn.B)())}),[t]),Object(g.jsx)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsxs)(B.a,{className:Object(G.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:[Object(g.jsx)(yc.a,{className:e.backdrop,open:o,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)(Vt.a,{className:e.mainPaper,children:Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsxs)("div",{className:e.settingGroup,children:[Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("RESTRICT_SIZE_TITLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",disableUnderline:!0,className:e.customInput,name:"restrict_file_size",value:O.size,onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{size:Number(e.target.value)})),onBlur:e=>{e.preventDefault();const t=O.unit?1024*O.size*1024:1024*O.size*1024*1024;r[e.target.name]!==t&&h([e.target.name],t)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:O.unit,onChange:e=>{let t=0;t=O.unit?O.size<1024?0:Math.floor(O.size/1024):1024*O.size,p({unit:!O.unit,size:t})},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:n("FOLDER_SIZE_HELP_TEXT")})]})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("RESTRICT_EXT_TITLE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"restrict_file_exts",value:j.restrict_file_exts,onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{[e.target.name]:e.target.value})),onBlur:e=>function(e){e.target.value!==String(r[e.target.name])&&h(e.target.name,e.target.value)}(e)})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"text-left"),children:n("RESTRICT_EXT_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("RESTRICT_EXT_REMOVE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Oi,{name:"restrict_file_exts_remove_at_batch",checked:!j.restrict_file_exts_remove_at_batch,onChange:e=>function(e){u(Object(d.a)(Object(d.a)({},j),{},{[e.target.name]:!j[e.target.name]})),h(e.target.name,!j[e.target.name])}(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:n("RESTRICT_EXT_REMOVE_HELP_TEXT")})]})]})]})})})]})})};var Ri=function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(vi,{}),innerScroll:!0,sidebarInner:!0})};const yi=Object(M.a)((e=>({root:{},mainPaper:{borderRadius:6,padding:40,"&>.setting":{flexWrap:"wrap"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},settingTitle:{display:"block",width:"100%",cursor:"default",verticalAlign:"middle",fontSize:16,marginTop:10,marginBottom:5,"&:first-child":{marginTop:0}},settingGroup:{color:"#353b48",fontSize:14,marginRight:30,"&>.row":{display:"flex",width:690,justifyContent:"center",borderTop:"1px solid #e3e3e3","&:last-child":{borderBottom:"1px solid #e3e3e3"},"&>div":{display:"flex",alignItems:"center",padding:"0 30px"}},"&>.row>.title":{width:277,height:70,background:"#f5f7fa","& span":{cursor:"default",display:"block"}},"&>.row>.content":{width:413},"&>.row.tall>div":{height:"auto"},"&>.row.tall>.content":{display:"block",padding:"20px 30px"}},hintSpan:{display:"block",marginTop:10,fontSize:12,color:"#9e9e9e"},inputForm:{width:"100%",maxWidth:265},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},contentWrapper:{height:"".concat(window.innerHeight-200,"px"),borderRadius:6},selectTextAlignRight:{"padding-right":"25px","& .MuiSelect-select":{"text-align":"right"}}})));var Ci=function(){const e=yi(),t=Object(m.b)(),a=s.a.useRef(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState(window.innerHeight),{sysConfigure:r,seedKey:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),o=Object(m.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),[d,b]=s.a.useState(!1);s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(c-200,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[c]),s.a.useEffect((()=>{t(Object(rn.B)()),t(Object(rn.A)())}),[t]);let j="";return j=o.settledExpireMaintenance?bt.a.getDateStringToLocalDate(o.expireMaintenanceAt,"yyyy-mm-dd"):"-",Object(g.jsx)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsxs)(B.a,{className:Object(G.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:[Object(g.jsx)(yc.a,{className:e.backdrop,open:d,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)(Vt.a,{className:e.mainPaper,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"none",children:n("SEEDKEY")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"none",children:n("USER_LICENSES")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"none",children:n("EXPIRE_DATE")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"none",children:n("MAINTENANCE_AT")})]})}),Object(g.jsxs)(wl.a,{children:[Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:i}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:o.userLicenses}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(o.expireAt,"yyyy-mm-dd")}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:j})]})]})})]})})};var Ai={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/settings",component:xi},{path:"/restrict",component:Ri},{path:"/info",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Ci,{}),innerScroll:!0,sidebarInner:!0})}}]};const Li=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(jc.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var wi=function(e){let{history:t,location:a}=e;const c=Li(),l=Object(m.b)(),{t:r}=Object(jt.a)(["docbase","brand"]),i=new URLSearchParams(a.search),[o,b]=s.a.useState(""),[j,u]=s.a.useState(!0),[O,p]=s.a.useState(""),[h,_]=s.a.useState({enable:!1,code:""});function f(e){Object(Xa.b)(i.get("id")).then((t=>{u(t.password_protected),t.limit_downloads>0&&t.remain_downloads<=0?(p(r("WEBLINK_ERROR_MESSAGE_1")),u(!1)):1!==t.status?(6===t.error?p(r("WEBLINK_ERROR_MESSAGE_4")):p(r("WEBLINK_ERROR_MESSAGE_2")),u(!1)):(new Date).getTime()>new Date(t.expired_at).getTime()+864e5?(p(r("WEBLINK_ERROR_MESSAGE_3")),u(!1)):t.email_otp?(!async function(e){Object(Xa.a)(e)}(i.get("id")),_({enable:!0,code:""})):t.password_protected||e||E()}))}function E(){Object(Xa.d)(((e,t)=>{const a=document.createElement("a");let n="".concat(window.location.origin,"/api/downloadWeblink?id=").concat(i.get("id"),"&token=").concat(t);j&&(n+="&password=".concat(Va.a.encryptAES(e,o,"utf8","hex"))),h.enable&&(n+="&otp=".concat(Va.a.encryptAES(e,h.code,"utf8","hex"))),a.href=n,document.body.appendChild(a),a.click(),setTimeout((e=>{f(!0)}),300)}))}function x(e){let t=!0;h.enable?0===h.code.trim().length&&(l(Object(U.c)({message:r("EMAIL_OTP_ERROR_MESSAGE_1")})),t=!1):0===o.length&&(l(Object(U.c)({message:r("USER_ERROR_MESSAGE_5")})),t=!1),t&&E(),e.stopPropagation(),e.preventDefault()}return Object(n.useEffect)((()=>{f(!1)}),[]),Object(g.jsx)("div",{className:Object(G.a)(c.root,"flex flex-col flex-auto flex-shrink-0 items-center justify-center p-32"),children:Object(g.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Bc.a,{className:"flex flex-col items-center justify-center p-32",children:[Object(g.jsx)("img",{className:"w-128",src:"assets/brand/logo.svg",alt:"logo"}),Object(g.jsx)(k.a,{variant:"h6",className:"mt-16 mb-16 font-bold",children:r("brand:WEBLINK_TITLE")}),""!==O?Object(g.jsx)("p",{style:{fontSize:12,color:"#e91414"},children:O}):Object(g.jsx)(g.Fragment,{}),h.enable?Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"flex flex-col justify-center w-full",onSubmit:e=>{x(e)},children:[Object(g.jsx)(Ht.a,{label:r("EMAIL_OTP_CODE"),type:"text",name:"password",variant:"outlined",size:"small",required:!0,value:h.code,onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{code:e.target.value})),fullWidth:!0}),Object(g.jsx)("p",{className:"mb-16",style:{fontSize:12,color:"#9e9e9e",marginTop:5},children:r("EMAIL_OTP_HELP_1")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"download",onClick:e=>{x(e)},children:r("DOWNLOAD")})]}):j?Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"flex flex-col justify-center w-full",onSubmit:e=>{x(e)},children:[Object(g.jsx)(Ht.a,{className:"mb-16",label:r("PASSWORD"),type:"password",name:"password",variant:"outlined",size:"small",required:!0,value:o,onChange:e=>b(e.target.value),fullWidth:!0}),Object(g.jsx)(Hc.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"download",onClick:e=>{x(e)},children:r("DOWNLOAD")})]}):""]})})})})})};const Ii=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(jc.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var Pi={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/weblink",component:wi},{path:"/weblinkError",component:function(e){let{location:t}=e;const a=Ii(),{t:c}=Object(jt.a)(["docbase","brand"]),l=new URLSearchParams(t.search),[r,i]=s.a.useState("");return Object(n.useEffect)((()=>{switch(console.log(l),l.get("type")){case"1":default:i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_8"));break;case"2":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_1"));break;case"3":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_2"));break;case"4":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_3"));break;case"5":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_7"));break;case"6":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_4"));break;case"7":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_5"));break;case"8":i(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_6"))}}),[]),Object(g.jsx)("div",{className:Object(G.a)(a.root,"flex flex-col flex-auto flex-shrink-0 items-center justify-center p-32"),children:Object(g.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Bc.a,{className:"flex flex-col items-center justify-center p-32",children:[Object(g.jsx)("img",{className:"w-128",src:"assets/brand/logo.svg",alt:"logo"}),Object(g.jsx)(k.a,{variant:"h6",className:"mt-16 mb-16 font-bold",children:c("brand:WEBLINK_TITLE")}),Object(g.jsx)("p",{style:{fontSize:16,color:"#e91414",textAlign:"center"},children:r})]})})})})})}}]},Di=a(979);const Mi=Object(M.a)((e=>({tr:{"& .seq":{width:100},"& .level":{width:100},"& .delete":{width:80}}})));var ki=function(e){const{t:t}=Object(jt.a)("docbase"),a=Mi(),n=[{id:"level",align:"left",className:"left level",disablePadding:!1,label:t("ACCESS_LEVEL"),sort:!1},{id:"path",align:"left",className:"left",disablePadding:!1,label:t("SECUREDOC_PATH"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:a.tr,children:[n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Ll.a,{className:"delete",padding:"none",sortDirection:!1})]})})};const Gi=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-276,"px"),padding:"0 20px"}})));var Ui=function(e){const t=Gi(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{selectedDocObj:o,docs:d,rowsPerPage:b,currentPage:j,totalRows:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureDocObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-276,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{a(Object(rn.W)({page:1})).then((()=>{a(Object(cn.h)()),e.setLoading(!1)}))}),[a]),Object(n.useEffect)((()=>{d.forEach((e=>{e.doc_id===o.doc_id&&a(Object(rn.H)({docObj:e}))}))}),[d]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:""}),Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:u}),i("CNT")]})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ki,{}),Object(g.jsx)(wl.a,{children:d.map((t=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:o.doc_id===t.doc_id,onClick:n=>{return s=t,a(Object(rn.G)({docObj:s})),void e.fnToggleRightSidebar();var s},children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:t.level<1e4?t.level:"NONE"}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(t.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(t.disp_path)})]})}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",align:"right",children:Object(g.jsx)(Je.a,{title:i("RELEASE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:i("SECUREDOC_RELEASE_TITLE"),content:i("SECUREDOC_RELEASE_CONTENT"),fnHandleOK:()=>{Object(rn.N)(t.doc_id).then((t=>{a(Object(U.d)({message:i("SECUREDOC_MESSAGE_3")})),a(Object(rn.W)({page:j})).then((()=>{e.setLoading(!1),a(Object(R.a)())}))})).catch((e=>{a(Object(U.c)({message:i("SECUREDOC_ERROR_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)))})]})}),Object(g.jsx)(Di.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:u,rowsPerPage:b,rowsPerPageOptions:[100,250,500],page:j-1,labelRowsPerPage:i("ROW_PER_PAGE_LABEL"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return"".concat(-1!==n?n:a," \uc911 ").concat(t,"-").concat(a)},backIconButtonProps:{"aria-label":i("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":i("PAGE_NEXT_BTN_LABEL")},onChangePage:(t,n)=>{!function(t,n){e.setLoading(!0),a(Object(rn.y)({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{!function(t){e.setLoading(!0),a(Object(rn.f)({value:t.target.value})),a(Object(rn.W)({page:1})).then((()=>e.setLoading(!1)))}(t),c.current.scrollTop=0}})]})})};const Fi=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},card_userid:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140}},paperPermContent:{padding:0,marginTop:20,"& .delete":{width:100}},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277},filedInput:{width:"100%",padding:"0 30px",display:"flex",alignItems:"center"},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}}})));var Wi=function(e){const t=Fi(),a=Object(m.b)(),n=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(window.innerHeight),[i,o]=s.a.useState(""),{selectedDocObj:b,currentPage:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureDocObj})),{users:u,usersObj:O}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[p,h]=s.a.useState(null),[_,f]=s.a.useState(u),[E,x]=s.a.useState(b.level);function N(t,n){Object(rn.hb)(b,t,n).then((s=>{let l=c("SECUREDOC_MESSAGE_1");"level"===t&&(l=c("SECUREDOC_MESSAGE_2")),a(Object(U.d)({message:l})),e.setLoading(!0),a(Object(rn.W)({page:j})).then((t=>{x(n),e.setLoading(!1)}))})).catch((e=>{a(Object(U.c)({message:c("SECUREDOC_ERROR_MESSAGE_1")}))}))}function S(){N("users",[...b.users,{user_id:p.user_id}])}return s.a.useEffect((()=>{l>=754&&(n.current.style.height="".concat(l-304,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),s.a.useEffect((()=>{if(b.doc_id>0){const e={};b.users.forEach((t=>{e[t.user_id]=!0})),f(u.filter((t=>!e[t.user_id]))),x(b.level)}}),[b]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsxs)(zc.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rr.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsx)(Je.a,{title:b.path,arrow:!0,children:Object(g.jsxs)(k.a,{className:t.card_userid,variant:"h6",children:[Object(g.jsx)("span",{children:c("DETAIL_INFO")}),Object(g.jsx)("span",{children:"[".concat(bt.a.pathToName(b.path),"]")})]})})]}),Object(g.jsx)(Bc.a,{className:t.infoFiled,children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("ACCESS_LEVEL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsxs)(te.a,{id:"access_level",variant:"outlined",className:"",fullWidth:!0,value:Number(E),onChange:e=>N("level",e.target.value),children:[Object(g.jsx)(Q.a,{value:1e4,children:"-"}),Object(g.jsx)(Q.a,{value:1,children:"1"}),Object(g.jsx)(Q.a,{value:2,children:"2"}),Object(g.jsx)(Q.a,{value:3,children:"3"}),Object(g.jsx)(Q.a,{value:4,children:"4"}),Object(g.jsx)(Q.a,{value:5,children:"5"})]})})]})})]}),Object(g.jsxs)(zc.a,{className:t.paperPerm,children:[Object(g.jsxs)(Bc.a,{className:t.paperPermHeader,children:[Object(g.jsx)("div",{children:Object(g.jsx)(El.a,{id:"autocomplete-permission-search",options:_,getOptionLabel:e=>e?"".concat(e.name,"(").concat(e.user_id,")"):"",noOptionsText:c("PERM_NO_USER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{h(t||null)},inputValue:i,onInputChange:(e,t)=>{o(t)},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{label:c("PERM_USER_INPUT"),variant:"outlined",onKeyDown:e=>{p&&null!==p&&13===e.keyCode&&S()}})),fullWidth:!0,size:"small"})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>S(),children:c("ADD")})})]}),Object(g.jsx)(Bc.a,{className:t.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"delete",children:c("PERM_DELETE")})]})}),Object(g.jsx)(wl.a,{children:b.users&&b.users.length>0?b.users.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Il.a,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:O[e.user_id]?"".concat(O[e.user_id].name,"(").concat(e.user_id,")"):"john doe(".concat(e.user_id,")")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:c("PERM_DELETE"),className:"font-size-initial",arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"release_permission",onClick:t=>{return a=e.user_id,void N("users",b.users.filter((e=>e.user_id!==a)));var a},children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Hi={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/securedocs",component:function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Ui,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Wi,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const zi=Object(M.a)((e=>({tr:{"& .seq":{width:100},"& .level":{width:100},"& .delete":{width:80}}})));var Bi=function(e){const{t:t}=Object(jt.a)("docbase"),a=zi(),n=[{id:"level",align:"left",className:"left level",disablePadding:!1,label:t("ACCESS_LEVEL"),sort:!1},{id:"path",align:"left",className:"left",disablePadding:!1,label:t("SECUREDOC_PATH"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:a.tr,children:[n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Ll.a,{className:"delete",padding:"none",sortDirection:!1})]})})};const Ki=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-276,"px"),padding:"0 20px"}})));var Yi=function(e){const t=Ki(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{selectedFolderObj:o,docFolders:d,rowsPerPage:b,currentPage:j,totalRows:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureFolderObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-276,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{a(Object(rn.X)({page:1})).then((()=>{a(Object(cn.h)()),e.setLoading(!1)}))}),[a]),Object(n.useEffect)((()=>{d.forEach((e=>{e.doc_folder_id===o.doc_folder_id&&a(Object(rn.H)({docObj:e}))}))}),[d]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:""}),Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:u}),i("CNT")]})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Bi,{}),Object(g.jsx)(wl.a,{children:d.map((t=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:o.doc_folder_id===t.doc_folder_id,onClick:n=>{return s=t,a(Object(rn.I)({folderObj:s})),void e.fnToggleRightSidebar();var s},children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:t.level<1e4?t.level:"NONE"}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(t.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(t.disp_path)})]})})]},t.fid)))})]})}),Object(g.jsx)(Di.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:u,rowsPerPage:b,rowsPerPageOptions:[100,250,500],page:j-1,labelRowsPerPage:i("ROW_PER_PAGE_LABEL"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return"".concat(-1!==n?n:a," \uc911 ").concat(t,"-").concat(a)},backIconButtonProps:{"aria-label":i("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":i("PAGE_NEXT_BTN_LABEL")},onChangePage:(t,n)=>{!function(t,n){e.setLoading(!0),a(Object(rn.z)({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{!function(t){e.setLoading(!0),a(Object(rn.f)({value:t.target.value})),a(Object(rn.X)({page:1})).then((()=>e.setLoading(!1)))}(t),c.current.scrollTop=0}})]})})};const Vi=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},card_userid:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140}},paperPermContent:{padding:0,marginTop:20,"& .delete":{width:100}},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277},filedInput:{width:"100%",padding:"0 30px",display:"flex",alignItems:"center"},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}}})));var Xi=function(e){const t=Vi(),a=Object(m.b)(),n=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(window.innerHeight),[i,o]=s.a.useState(""),{selectedDocObj:b,currentPage:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureDocObj})),{users:u,usersObj:O}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[p,h]=s.a.useState(null),[_,f]=s.a.useState(u),[E,x]=s.a.useState(b.level);function N(t,n){Object(rn.hb)(b,t,n).then((s=>{let l=c("SECUREDOC_MESSAGE_1");"level"===t&&(l=c("SECUREDOC_MESSAGE_2")),a(Object(U.d)({message:l})),e.setLoading(!0),a(Object(rn.W)({page:j})).then((t=>{x(n),e.setLoading(!1)}))})).catch((e=>{a(Object(U.c)({message:c("SECUREDOC_ERROR_MESSAGE_1")}))}))}function S(){N("users",[...b.users,{user_id:p.user_id}])}return s.a.useEffect((()=>{l>=754&&(n.current.style.height="".concat(l-304,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),s.a.useEffect((()=>{if(b.doc_id>0){const e={};b.users.forEach((t=>{e[t.user_id]=!0})),f(u.filter((t=>!e[t.user_id]))),x(b.level)}}),[b]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsxs)(zc.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rr.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsx)(Je.a,{title:b.path,arrow:!0,children:Object(g.jsxs)(k.a,{className:t.card_userid,variant:"h6",children:[Object(g.jsx)("span",{children:c("DETAIL_INFO")}),Object(g.jsx)("span",{children:"[".concat(bt.a.pathToName(b.path),"]")})]})})]}),Object(g.jsx)(Bc.a,{className:t.infoFiled,children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("ACCESS_LEVEL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsxs)(te.a,{id:"access_level",variant:"outlined",className:"",fullWidth:!0,value:Number(E),onChange:e=>N("level",e.target.value),children:[Object(g.jsx)(Q.a,{value:1e4,children:"-"}),Object(g.jsx)(Q.a,{value:1,children:"1"}),Object(g.jsx)(Q.a,{value:2,children:"2"}),Object(g.jsx)(Q.a,{value:3,children:"3"}),Object(g.jsx)(Q.a,{value:4,children:"4"}),Object(g.jsx)(Q.a,{value:5,children:"5"})]})})]})})]}),Object(g.jsxs)(zc.a,{className:t.paperPerm,children:[Object(g.jsxs)(Bc.a,{className:t.paperPermHeader,children:[Object(g.jsx)("div",{children:Object(g.jsx)(El.a,{id:"autocomplete-permission-search",options:_,getOptionLabel:e=>e?"".concat(e.name,"(").concat(e.user_id,")"):"",noOptionsText:c("PERM_NO_USER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{h(t||null)},inputValue:i,onInputChange:(e,t)=>{o(t)},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{label:c("PERM_USER_INPUT"),variant:"outlined",onKeyDown:e=>{p&&null!==p&&13===e.keyCode&&S()}})),fullWidth:!0,size:"small"})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>S(),children:c("ADD")})})]}),Object(g.jsx)(Bc.a,{className:t.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"delete",children:c("PERM_DELETE")})]})}),Object(g.jsx)(wl.a,{children:b.users&&b.users.length>0?b.users.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Il.a,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:O[e.user_id]?"".concat(O[e.user_id].name,"(").concat(e.user_id,")"):"john doe(".concat(e.user_id,")")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:c("PERM_DELETE"),className:"font-size-initial",arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"release_permission",onClick:t=>{return a=e.user_id,void N("users",b.users.filter((e=>e.user_id!==a)));var a},children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var qi={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/securefolders",component:function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Yi,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Xi,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]},Ji=a(965),Zi=a(41),Qi=a(128),$i=a(95);Zi.f.register(Zi.a,Zi.s,Zi.i,Qi.a);const eo=Object(M.a)((e=>({root:{width:"100%",maxWidth:570,position:"relative","& .header":{height:40,color:"#353b48",borderBottom:"1px solid #e8ebf0",paddingLeft:20,"&>p":{fontSize:16,fontFamily:"S-CoreDream-Bold"}},"& .content":{padding:"0 10px"}}})));function to(e){const t=eo(e),a={labels:e.obj.labels,datasets:[{data:e.obj.series,hoverOffset:4,cotout:"86%",backgroundColor:["#00cfe2","#272c36"]}]},n={plugins:{legend:{position:"bottom",labels:{font:10}},tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},callbacks:{label:e=>bt.a.changeByteToString(e.raw||0)}},datalabels:{formatter:(e,t)=>{const a=t.chart.data.datasets[0].data.reduce(((e,t)=>e+t),0);return"".concat((e/a*100).toFixed(2),"%")},color:"#fff",font:{weight:"bold"}}}};return Object(g.jsxs)(Vt.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(k.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)($i.b,{data:a,options:n})})]})}var ao=s.a.memo(to);Zi.f.register(Zi.a,Zi.s,Zi.i,Qi.a);const no=Object(M.a)((e=>({root:{width:"100%",maxWidth:570,position:"relative","& .header":{height:40,color:"#353b48",borderBottom:"1px solid #e8ebf0",paddingLeft:20,"&>p":{fontSize:16,fontFamily:"S-CoreDream-Bold"}},"& .content":{padding:"0 10px"}}})));function so(e){const t=no(e),a={labels:e.obj.labels,datasets:[{data:e.obj.series,hoverOffset:4,cotout:"86%",backgroundColor:["#00cfe2","#f6c142","#e58950","#95beff","#272c36"]}]},n={plugins:{legend:{position:"bottom",labels:{font:10}},tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},callbacks:{label:e=>bt.a.changeByteToString(e.raw||0)}},datalabels:{formatter:(e,t)=>{const a=t.chart.data.datasets[0].data.reduce(((e,t)=>e+t),0);return"".concat((e/a*100).toFixed(2),"%")},color:"#fff",font:{weight:"bold"}}}};return Object(g.jsxs)(Vt.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(k.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)($i.b,{data:a,options:n})})]})}var co=s.a.memo(so),lo=a(939);const ro=Object(M.a)((e=>({titleWrapper:{"padding-bottom":"0"},actions:{padding:"0 24px 16px",justifyContent:"center","& button":{width:"100%",minWidth:130},"& button:first-child":{marginRight:8}},inputRight:{"& input":{"text-align":"right"}},hint_span:{"padding-left":"10px","font-size":"1rem",color:"#9f9f9f"},filedTitle:{display:"flex",alignItems:"center",cursor:"default"},filedInput:{width:"100%",padding:"0",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}}})));function io(e){const{t:t}=Object(jt.a)("docbase"),a=ro(),n=Object(m.b)(),[c,l]=s.a.useState({capacity:0,unit:!1});return s.a.useEffect((()=>{let t=0;const a=bt.a.getLocalStorage("dashboardObj"),n=(new Date).getTime();t=a[e.path]&&a[e.path].timestamp-n<=3e5?a[e.path].size:e.capacity,l(t>=1024?{capacity:Math.floor(t/1024),unit:!1}:{capacity:t||0,unit:!0})}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{id:"alert-dialog-slide-title",className:a.titleWrapper,children:"".concat(e.title).concat(t("CHANGE_CAPACYTI_TITLE"))}),Object(g.jsx)(el.a,{className:"overflow-y-hidden",children:Object(g.jsxs)("div",{className:"min-w-350",children:[Object(g.jsxs)("div",{className:a.filedTitle,children:[Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:t("MAX_CAPACITY")}),Object(g.jsx)("span",{className:a.hint_span,children:t("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:Object(G.a)(a.filedInput,""),children:Object(g.jsx)(js.a,{type:"number",name:"capacity",disableUnderline:!0,className:a.customInput,endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(a.selectTextAlignRight,""),value:c.unit,onChange:e=>{let t=0;t=c.unit?1024*c.capacity:c.capacity<1024?c.capacity:Math.floor(c.capacity/1024),l({capacity:t,unit:!c.unit})},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:c.capacity,onChange:e=>l(Object(d.a)(Object(d.a)({},c),{},{capacity:Number(e.target.value)}))})})]})}),Object(g.jsxs)(gl.a,{className:a.actions,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{onClick:()=>{const a=c.unit?c.capacity:1024*c.capacity;return a<0?(n(Object(U.c)({message:t("NUMBER_ERROR_MESSAGE")})),!1):(Object(ln.E)(e.path,a).then((()=>{n(Object(U.d)({message:t("CHANGE_CAPACITY_MESSAGE_4")}));const s=bt.a.getLocalStorage("dashboardObj"),c={timestamp:(new Date).getTime(),size:a};s[e.path]=c,bt.a.setLocalStorage("dashboardObj",s)})).catch((e=>{n(Object(U.c)({message:t("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})).finally((()=>{e.fnHandleClose()})),!0)},className:"",color:"secondary",type:"button",variant:"contained","aria-label":"ok",children:t("CHANGE")})]})]})})}const oo=Object(M.a)((e=>({root:{boxShadow:"none","& .favorite-checkbox":{display:"none"},"& .favorite-checkbox + label":{fontSize:"1.5em",cursor:"pointer",color:" #ccc"},"& .favorite-checkbox:checked + label":{color:"gold"},"& .favorite-checkbox + label:before":{content:'"\u2606"'},"& .favorite-checkbox:checked + label:before":{content:'"\u2605"'}},capacityWrapper:{display:"inline-block",position:"relative",height:"28px",width:"240px",background:"#eceff4",border:"1px solid #d9dee5",verticalAlign:"middle",borderRadius:6,"& .size-bar":{position:"absolute",height:"100%",background:"#00cfe2","border-radius":"6px"},"& .text-bar":{position:"absolute",width:"100%",color:"#000000","text-align":"center","line-height":"28px"},"&.warning .size-bar":{background:"#fa4b60"},"&.warning .text-bar":{color:"#ffffff"}}})));function bo(e){const t=oo(),{t:a}=Object(jt.a)("docbase"),n=Object(m.b)(),[c,l]=s.a.useState({open:!1,capacity:0,title:"",path:""}),[r,i]=s.a.useState(""),[o,d]=s.a.useState(e.data.row),[b,u]=s.a.useState({id:"0",direction:"asc"});s.a.useEffect((()=>{d(""!==r?e.data.rows.filter((e=>e.name.toLowerCase().includes(r.toLowerCase()))):e.data.rows)}),[e.data,r]);return Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto w-full print:p-8 print:shadow-none rounded-8 relative",t.root),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:r,placeholder:a("SEARCH_WITHIN_RESULT"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:r&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>i(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>i(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[a("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:e.data.rows.length}),a("CNT")]})]})]}),e.isLoading?Object(g.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center h-500",children:[Object(g.jsx)(k.a,{className:"text-20 mb-16",color:"textSecondary",children:"Loading..."}),Object(g.jsx)(lo.a,{className:"w-xs max-w-full",color:"secondary"})]}):Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(io,{open:c.open,title:c.title,capacity:c.capacity/1024/1024,path:c.path,fnHandleClose:()=>{l({open:!1,capacity:0,title:"",path:""}),e.fnMakeUnitList()}}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"",align:"center",children:Object(g.jsx)("span",{})}),e.data.titles.map(((e,t)=>{return Object(g.jsx)(Ll.a,{className:0===t||3===t?"left":"",align:0===t||3===t?"left":"center",sortDirection:3!==t&&(b.id===t.toString()&&b.direction),children:3===t?Object(g.jsx)("span",{children:e}):Object(g.jsx)(Bl.a,{active:b.id===t.toString(),direction:b.direction,onClick:(a=t.toString(),e=>{const t=a;let n="desc";b.id===a&&"desc"===b.direction&&(n="asc"),u({direction:n,id:t})}),children:e})});var a}))]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(o,[e=>{switch(b.id){case"0":return e.name;case"1":return e.used.size;case"2":return e.used.trash_size;default:return e[b.id]}}],[b.direction]).map(((s,c)=>{let r=0;return s.used.trash_size>0&&(r=s.used.trash_size/s.used.size*100),Object(g.jsxs)(Al.a,{children:[Object(g.jsxs)(Ll.a,{align:"center",style:{width:30},children:[Object(g.jsx)("input",{type:"checkbox",id:"favorite-".concat(s.used.fid),checked:Object.keys(e.selectedInfo).includes(s.used.fid.toString()),onChange:()=>{e.fnSelectedInfo(s)},className:"favorite-checkbox"}),Object(g.jsx)("label",{htmlFor:"favorite-".concat(s.used.fid),className:"favorite-label"})]}),Object(g.jsx)(Ll.a,{className:"left",children:s.name}),Object(g.jsx)(Ll.a,{align:"center",className:"cell-size",children:Object(g.jsxs)("div",{className:Object(G.a)(t.capacityWrapper,s.used.usage_percent>90?"warning":""),children:[Object(g.jsx)("div",{className:"size-bar",style:{width:"".concat(s.used.usage_percent>1?s.used.usage_percent>100?100:s.used.usage_percent:0,"%")}}),Object(g.jsx)("div",{className:"text-bar",children:Object(g.jsx)("span",{children:"".concat(bt.a.changeByteToString(s.used.size<=0?0:s.used.size)," ").concat(0===s.used.capacity?"(\u221e)":" / ".concat(bt.a.changeByteToString(s.used.capacity))).concat(0===s.used.capacity?"":"(".concat(s.used.usage_percent.toFixed(2),"%)"))})})]})}),Object(g.jsx)(Ll.a,{align:"center",className:"cell-size",children:Object(g.jsxs)("div",{className:Object(G.a)(t.capacityWrapper),children:[Object(g.jsx)("div",{className:"size-bar",style:{width:"".concat(r>1?r>100?100:r:0,"%")}}),Object(g.jsx)("div",{className:"text-bar",children:Object(g.jsx)("span",{children:"".concat(bt.a.changeByteToString(s.used.trash_size<=0?0:s.used.trash_size)," / ").concat(bt.a.changeByteToString(s.used.size)," (").concat(r.toFixed(2),"%)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")})})]})}),Object(g.jsx)(Ll.a,{align:"center",className:"cell-setting",children:s.changed?Object(g.jsx)(w.a,{className:"align-middle cursor-default",onClick:()=>{n(Object(U.d)({message:a("CHANGE_CAPACITY_MESSAGE_4")}))},children:"more_horiz"}):Object(g.jsx)(w.a,{className:"align-middle cursor-pointer",onClick:()=>{l({open:!0,capacity:s.used.capacity,title:s.name,path:s.used.path})},children:"settings"})})]},c)}))})]})]})]})}var jo=s.a.memo(bo);Zi.f.register(Zi.a,Zi.s,Zi.i,Qi.a);const uo=Object(M.a)((e=>({root:{width:"100%",maxWidth:570,maxHeight:570,position:"relative","& .header":{height:40,color:"#353b48",borderBottom:"1px solid #e8ebf0",paddingLeft:20,"&>p":{fontSize:16,fontFamily:"S-CoreDream-Bold"}},"& .content":{maxWidth:510,padding:"0 10px"}}})));function Oo(e){const t=uo(e),a={labels:e.obj.labels,datasets:[{data:e.obj.series,hoverOffset:4,cotout:"86%",backgroundColor:["#00cfe2","#f6c142","#e58950","#95beff","#272c36","#ff8383","#ffb783","#ffe783","#b6eb6d","#65e8a2","#88f6ff","#95beff","#577ab2","#7a75ed","#893cf2","#e577f4","#ba4584"]}]},n={plugins:{legend:{position:"bottom",labels:{font:10}},tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},padding:10,callbacks:{label:e=>(console.log(e),bt.a.changeByteToString(e.raw||0))}},datalabels:{formatter:(e,t)=>{const a=t.chart.data.datasets[0].data.reduce(((e,t)=>e+t),0);return"".concat((e/a*100).toFixed(2),"%")},color:"#fff",font:{weight:"bold"}}}};return Object(g.jsxs)(Vt.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(k.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)($i.b,{data:a,options:n})})]})}var po=s.a.memo(Oo);Zi.f.register(Zi.a,Zi.s,Zi.i,Qi.a);const ho=Object(M.a)((e=>({root:{width:"100%",maxWidth:570,maxHeight:570,position:"relative","& .header":{height:40,color:"#353b48",borderBottom:"1px solid #e8ebf0",paddingLeft:20,"&>p":{fontSize:16,fontFamily:"S-CoreDream-Bold"}},"& .content":{maxWidth:510,padding:"0 10px"}}})));function mo(e){const t=ho(e),a={labels:["\ub0a8\uc740\uc6a9\ub7c9","\uc0ac\uc6a9\ub7c9","\ud734\uc9c0\ud1b5"],datasets:[{data:e.obj.series,hoverOffset:4,cotout:"86%",backgroundColor:["#272c36","#00cfe2","#f6c142"]}]},n={plugins:{legend:{position:"bottom",labels:{font:10}},tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},padding:10,callbacks:{label:e=>bt.a.changeByteToString(e.raw||0)}},datalabels:{formatter:(e,t)=>{const a=t.chart.data.datasets[0].data.reduce(((e,t)=>e+t),0);return"".concat((e/a*100).toFixed(2),"%")},color:"#fff",font:{weight:"bold"}}}};return Object(g.jsxs)(Vt.a,{className:t.root,children:[Object(g.jsxs)("div",{className:"flex items-center justify-between header",children:[Object(g.jsx)(k.a,{className:"",children:e.obj.folderType===qc.F?bt.a.splitLastDelimiterString(e.obj.title):e.obj.title}),Object(g.jsx)(I.a,{"aria-label":"close",className:t.closeButton,onClick:()=>e.fnDeleteFolderInfo(e.obj.fid),children:Object(g.jsx)(tr.a,{})})]}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)($i.b,{data:a,options:n})})]})}var _o=s.a.memo(mo);const fo=Object(M.a)((e=>({selectedProject:{background:Object(jc.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"8px 0 0 0"},projectMenuButton:{background:Object(jc.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"0 8px 0 0",marginLeft:1},contentWrapper:{"& .total-widget":{maxWidth:600,marginRight:30},"& .unit-widget":{maxWidth:600},"& .graph-wrapper":{flexWrap:"wrap",marginTop:20,"&>.widget":{paddingRight:10},"&>.widget:last-child":{paddingRight:0},"& > .widget:nth-child(4n)":{paddingRight:0},"& > .widget:not(:nth-child(-n+4))":{marginTop:10}}},btnGroup:{padding:4,background:"#e8ebf0",color:"#333d4b","& .MuiButton-root":{width:57,height:32,fontSize:14,border:"none !important",padding:"5px 10px"},"& .MuiButton-root.active":{background:"#00cfe2",color:"#ffffff"}},listTabHeader:{width:"100%",display:"flex",alignItems:"center",marginTop:30,"& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:50,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}},listTabContent:{boxShadow:"none",marginTop:"-3px"}})));let go;var Eo=function(e){const t=Object(m.b)(),{t:a}=Object(jt.a)("docbase"),c=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.dashboardObj})),{sysConfigure:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{usersObj:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgsObj:i,sharedsObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),b=s.a.useRef(),[j,u]=s.a.useState(window.innerHeight),O=fo(e),[p,h]=s.a.useState(!0),[_,f]=Object(n.useState)(0),[E,x]=Object(n.useState)({title:"",series:[],labels:[a("USAGE"),a("REMAINING_CAPACITY")]}),[N,S]=Object(n.useState)({title:"",series:[],labels:[a("ORG_FOLDER"),a("SHARED_FOLDER"),a("PRIVATE_FOLDER"),a("COLLECTOR_FOLDER"),a("ETC")]}),[T,v]=Object(n.useState)({titles:[],rows:[]}),[R,y]=Object(n.useState)({}),[C,A]=Object(n.useState)(0),[L,w]=Object(n.useState)({title:a("ORG_FOLDER"),series:[],labels:[]}),[I,P]=Object(n.useState)({title:a("PRIVATE_FOLDER"),series:[],labels:[]}),[D,M]=Object(n.useState)({title:a("SHARED_FOLDER"),series:[],labels:[]}),[k,U]=Object(n.useState)(!1),[F,W]=Object(n.useState)({});async function H(e){let t=[];const n=[];U(!0);const s=bt.a.getLocalStorage("dashboardObj"),b=(new Date).getTime(),j=Object(d.a)({},F);switch(e){case 0:{t=[a("ORG_NAME"),a("USAGE"),a("ACCESS_TYPE_REMOVE_TRASH"),a("CHANGE")];const e=[...c.organizes];e.splice(-1,1);for(let t=0;t3e5?delete s[i[e[t][a].fid].disp_path]:c.changed=!0),n.push(c),j[e[t][a].fid]&&(j[e[t][a].fid]=c)}break}case 1:t=[a("FOLDER_NAME"),a("USAGE"),a("ACCESS_TYPE_REMOVE_TRASH"),a("CHANGE")];for(let e=0;e3e5?delete s[s[o[c.shareds[e][t].fid].real_path]]:a.changed=!0),n.push(a),j[c.shareds[e][t].fid]&&(j[c.shareds[e][t].fid]=a)}break;case 2:t=[a("USER"),a("USAGE"),a("ACCESS_TYPE_REMOVE_TRASH"),a("CHANGE")];for(let e=0;e3e5?delete s[a]:i.changed=!1),n.push(i),j[c.privates[e][t].fid]&&(j[c.privates[e][t].fid]=i)}break;case 3:t=[a("USER"),a("USAGE"),a("ACCESS_TYPE_REMOVE_TRASH"),a("CHANGE")];for(let e=0;e3e5?delete s[a]:i=!0);const o={changed:i,folderType:qc.E,name:"".concat(r[t]?r[t].name:"-","(").concat(t,")"),used:Object(d.a)(Object(d.a)({},c.collects[e][t]),{},{path:a})};n.push(o),j[c.collects[e][t].fid]&&(j[c.collects[e][t].fid]=o)}}if(U(!1),bt.a.setLocalStorage("dashboardObj",s),v({titles:t,rows:n}),!p){const t=function(e,t){let a=!1,n=!1,s=!1,b=!1;if(Object.keys(t).forEach((e=>{t[e].folderType===qc.F?a=!0:t[e].folderType===qc.I?n=!0:t[e].folderType===qc.H?s=!0:t[e].folderType===qc.E&&(b=!0)})),0!==e&&a)for(let l=0;l{b.current&&(b.current.style.height="".concat(j-141,"px")),window.addEventListener("resize",(()=>u(window.innerHeight)))}),[j]),Object(n.useEffect)((()=>()=>{go&&clearInterval(go)}),[]),Object(n.useEffect)((()=>{p||bt.a.setLocalStorage("dashboard_selected_object",F)}),[F]),Object(n.useEffect)((()=>{if(t(Object(ln.f)()).then((()=>{t(Object(on.C)()).then((()=>{go||(go=setInterval((()=>{t(Object(on.C)())}),6e4)),t(Object(cn.h)()).then((()=>{t(Object(ln.o)())}))}))})),p){const e=bt.a.getLocalStorage("dashboard_selected_object");W(e),h(!1)}}),[t]),Object(n.useEffect)((()=>{const e=[];let t={},n=[];const s=c?[...c.organizes]:[],l={};if(s.splice(-1,1),Object.keys(i).length>0&&s.forEach(((a,s)=>{const c=Object.keys(a);t=i[a[c].fid],n=t.fid_path.split("/"),l[t.fid]={name:t.name,loc:a[c].size,capacity:a[c].capacity,children:l[t.fid]&&l[t.fid].children?l[t.fid].children:[]},n.length<=2?e.push(t.fid):l[n[n.length-2]]?l[n[n.length-2]]=Object(d.a)(Object(d.a)({},l[n[n.length-2]]),{},{loc:l[n[n.length-2]].loc-a[c].size,children:[...l[n[n.length-2]].children,{fid:t.fid,name:t.name,loc:a[c].size,children:[]}]}):l[n[n.length-2]]={name:i[n[n.length-2]].name,children:[{fid:t.fid,name:t.name,loc:a[c].size,children:[]}]}})),y(l),0===C)P(Object(d.a)(Object(d.a)({},I),{},{series:[],labels:[]})),w(Object(d.a)(Object(d.a)({},L),{},{series:[],labels:[]})),M(Object(d.a)(Object(d.a)({},D),{},{series:[],labels:[]}));else if(1===C){if(c.organizes.length>1){let e=0;const t=[],n=[];c.organizes.length>1&&(c.organizes.forEach(((a,s)=>{if(c.organizes.length-1>s){const r=c.organizes[c.organizes.length-1].organize_names[s];l[a[r].fid].loc/c.types.organizes.size*100<=5?e+=l[a[r].fid].loc:(t.push(i[a[r].fid].disp_path),n.push(l[a[r].fid].loc))}})),t.push(a("ETC")),n.push(e)),w(Object(d.a)(Object(d.a)({},L),{},{series:n,labels:t}))}let e=0;const t=[],n=[];c.privates.length>1&&(c.privates.forEach(((a,s)=>{if(c.privates.length-1>s){const l=c.privates[c.privates.length-1].private_names[s];a[l].percent<=5?e+=a[l].size:(t.push(r[l]?"".concat(r[l].name,"(").concat(l,")"):"-(".concat(l,")")),n.push(a[l].size))}})),t.push(a("ETC")),n.push(e)),P(Object(d.a)(Object(d.a)({},I),{},{series:n,labels:t}));let s=0;const o=[],b=[];c.shareds.length>1&&(c.shareds.forEach(((e,t)=>{if(c.shareds.length-1>t){const a=c.shareds[c.shareds.length-1].shared_names[t];e[a].percent<=10?s+=e[a].size:(o.push(a),b.push(e[a].size))}})),o.push(a("ETC")),b.push(s)),M(Object(d.a)(Object(d.a)({},D),{},{series:b,labels:o}))}c&&Object.keys(c.total).length>0&&(x({title:"".concat(a("TOTAL_CAPACITY")," [").concat(bt.a.changeByteToString(c.total.storage),"]"),series:[c.total.used.size,c.total.free.size],labels:[a("USAGE"),a("REMAINING_CAPACITY")]}),S({title:a("GROUP_USAGE"),series:[c.types.organizes.size,c.types.shareds.size,c.types.privates.size,c.types.collects.size,c.types.others.size],labels:[a("ORG_FOLDER"),a("SHARED_FOLDER"),a("PRIVATE_FOLDER"),a("COLLECTOR_FOLDER"),a("ETC")]}))}),[c,C]),Object(n.useEffect)((()=>{H(_)}),[R]),Object(g.jsx)(jl.a,{classes:{content:"flex"},innerScroll:!0,sidebarInner:!0,header:Object(g.jsx)(_r,{}),content:Object(g.jsxs)(B.a,{className:Object(G.a)(O.contentWrapper,"w-full flex-grow overflow-x-auto reboot"),ref:b,children:[Object(g.jsxs)("div",{className:"w-full",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsxs)(Ji.a,{className:O.btnGroup,color:"primary","aria-label":"outlined primary button group",children:[Object(g.jsx)(Hc.a,{className:Object(G.a)("default",0===C?"active":""),onClick:e=>A(0),children:a("ALL")}),Object(g.jsx)(Hc.a,{className:Object(G.a)("default",1===C?"active":""),onClick:e=>A(1),children:a("DETAIL")}),Object(g.jsx)(Hc.a,{className:Object(G.a)("default",2===C?"active":""),onClick:e=>A(2),children:"\u2605"})]})}),Object(g.jsx)(xo,{graphPage:C,dataObj:{totalDataObj:E,unitDataObj:N,privateDetailData:I,orgDetailData:L,sharedDetailData:D,selectedSizeInfo:F},deleteFolderInfo:e=>{""!==e&&(delete F[e.toString()],W(Object(d.a)({},F)))}})]}),Object(g.jsx)("div",{className:O.listTabHeader,children:Object(g.jsxs)(kl.a,{value:_,onChange:(e,t)=>{return f(a=t),void H(a);var a},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:a("ORG_FOLDER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:a("SHARED_FOLDER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:a("USER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:a("COLLECTOR_FOLDER")})]})}),Object(g.jsx)("div",{className:O.listTabContent,children:Object(g.jsx)(jo,{tabValue:_,data:T,isLoading:k,selectedInfo:F,fnMakeUnitList:()=>H(_),fnSelectedInfo:e=>{Object.keys(F).includes(e.used.fid.toString())?(delete F[e.used.fid],W(Object(d.a)({},F))):W(Object(d.a)(Object(d.a)({},F),{},{[e.used.fid]:e}))}})})]})})};const xo=s.a.memo((e=>{let{graphPage:t,dataObj:a,deleteFolderInfo:n}=e;return 0===t?Object(g.jsxs)("div",{className:"flex graph-wrapper",children:[Object(g.jsx)("div",{className:"total-widget flex sm:w-1/3",children:Object(g.jsx)(ao,{obj:a.totalDataObj})}),Object(g.jsx)("div",{className:"unit-widget flex sm:w-1/3",children:Object(g.jsx)(co,{obj:a.unitDataObj})})]}):1===t?Object(g.jsxs)("div",{className:"sm:flex graph-wrapper",children:[Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(po,{obj:a.privateDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(po,{obj:a.orgDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(po,{obj:a.sharedDetailData})})]}):Object(g.jsx)("div",{className:"sm:flex graph-wrapper",children:Object.keys(a.selectedSizeInfo).map((e=>Object(g.jsx)("div",{className:"widget flex w-1/4",children:Object(g.jsx)(_o,{fnDeleteFolderInfo:e=>n(e),obj:{folderType:a.selectedSizeInfo[e].folderType,title:a.selectedSizeInfo[e].name,fid:a.selectedSizeInfo[e].used.fid,series:[0!==a.selectedSizeInfo[e].used.capacity?a.selectedSizeInfo[e].used.capacity-a.selectedSizeInfo[e].used.size:0,a.selectedSizeInfo[e].used.size-a.selectedSizeInfo[e].used.trash_size,a.selectedSizeInfo[e].used.trash_size]}})})))})}));var No={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dashboard",component:Eo}]};const So=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(jc.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var To=function(e){let{history:t,location:a}=e;const s=So(),c=Object(m.b)(),{t:l}=Object(jt.a)("docbase"),r=Object(m.c)((e=>{let{auth:t}=e;return t.initial})),{form:i,handleChange:o}=Object(N.c)({uuid:0});return Object(n.useEffect)((()=>{"/regProductEx"!==a.pathname&&r.product_registered&&(r.administrator_setup?t.push("/login"):t.push("/register"))}),[r]),Object(g.jsx)("div",{className:Object(G.a)(s.root,"flex flex-col flex-auto flex-shrink-0 items-center justify-center p-32"),children:Object(g.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Bc.a,{className:"flex flex-col items-center justify-center p-32",children:[Object(g.jsx)("img",{className:"w-128",src:"assets/brand/logo.svg",alt:"logo"}),Object(g.jsx)(k.a,{variant:"h6",className:"mt-10 mb-12 font-bold text-20 sm:text-24",color:"primary",children:l("REGISTER_PRODUCT")}),Object(g.jsxs)("form",{name:"registerForm",noValidate:!0,className:"flex flex-col justify-center w-full",onSubmit:function(e){var n;e.preventDefault(),(n=i.uuid,new Promise(((e,t)=>{Object(Xa.d)(((a,s)=>{Ya.a.sendPost("/api/registerPreorderedProduct",{uuid:Va.a.encryptAES(a,n,"utf8","hex"),token:s}).then((a=>{a.result?e(a):(Ya.a.printError(a),t(a))}))}))}))).then((e=>{if(e.result)"/regProductEx"===a.pathname?t.replace("/admin"):t.replace("/register");else{const e=l("REGISTER_ERROR_MESSAGE_1");c(Object(U.d)({message:e,variant:"error"}))}})).catch((e=>{console.error(e)}))},children:[Object(g.jsx)(Ht.a,{className:"mb-16",label:"\uc120\uc8fc\ubb38 UUID",type:"text",name:"uuid",value:i.uuid,onChange:o,variant:"outlined",required:!0,fullWidth:!0}),Object(g.jsx)(Hc.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"Register",disabled:!(""!==i.uuid),type:"submit",children:l("REGISTER")})]})]})})})})})};var vo={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/regProduct",component:To},{path:"/regProductEx",component:To}]};var Ro={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!0},rightSidePanel:{display:!1}}}},routes:[{path:"/wc/main",component:s.a.lazy((()=>a.e(3).then(a.bind(null,985))))}]};Zi.f.register(Zi.e,Zi.l,Zi.n,Zi.k,Zi.r,Zi.s,Zi.h,Zi.i);const yo=Object(M.a)((e=>({graphWrapper:{flex:"1 1 auto",marginTop:10,"&.mr":{marginRight:10},"&.short":{minWidth:520},"&.middle":{minWidth:780},"&>.content":{padding:"15px 15px"}}})));let Co,Ao;function Lo(e){const t=Object(m.b)(),{t:a}=Object(jt.a)("docbase"),{averageInfo:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system})),l=yo(e),r=["","","","","","","","","","","","","","","","","","","",""],i=s.a.useRef(),[o,b]=s.a.useState(window.innerHeight),j={series:[{name:"web-api-call",data:[]}]},u={series:[{name:"connected",data:[]}]},O={series:[{name:"read",data:[]},{name:"write",data:[]}]},p={series:[{name:"create",data:[]},{name:"remove",data:[]}]},h={series:[{name:"create",data:[]},{name:"remove",data:[]}]},_={series:[{name:"rename",data:[]},{name:"update",data:[]},{name:"copy",data:[]}]},[f,E]=s.a.useState(O),[x,N]=s.a.useState(u),[S,T]=s.a.useState(j),[v,R]=s.a.useState(p),[y,C]=s.a.useState(h),[A,L]=s.a.useState(_);Object(n.useEffect)((()=>{i.current&&(i.current.style.height="".concat(o-141,"px")),window.addEventListener("resize",(()=>b(window.innerHeight)))}),[o]),Object(n.useEffect)((()=>(t(Object(on.ab)()).then((()=>{Ao||(Ao=setInterval((()=>{t(Object(on.ab)())}),3e3))})),()=>{Ao&&(clearInterval(Ao),Ao=void 0),Co&&(clearInterval(Co),Co=void 0)})),[t]),Object(n.useEffect)((()=>{const e=[],t=[],n=[],s=[],l=[],r=[],i=[],o=[],b=[],m=[],g=[];for(let a=1;a<20;a++)e.push(f.series[0].data[a]?f.series[0].data[a]:0),t.push(f.series[1].data[a]?f.series[1].data[a]:0),n.push(S.series[0].data[a]?S.series[0].data[a]:0),s.push(x.series[0].data[a]?x.series[0].data[a]:0),l.push(v.series[0].data[a]?v.series[0].data[a]:0),r.push(v.series[1].data[a]?v.series[1].data[a]:0),i.push(y.series[0].data[a]?y.series[0].data[a]:0),o.push(y.series[1].data[a]?y.series[1].data[a]:0),b.push(A.series[0].data[a]?A.series[0].data[a]:0),m.push(A.series[1].data[a]?A.series[1].data[a]:0),g.push(A.series[2].data[a]?A.series[2].data[a]:0);e.push(c.readBytes),t.push(c.writeBytes),n.push(c.average_webapi_calls),s.push(c.connected_clients),l.push(c.average_created_directories),r.push(c.average_removed_directories),i.push(c.average_created_files),o.push(c.average_removed_files),b.push(c.average_renamed_files),m.push(c.average_updated_files),g.push(c.average_copied_files),E(Object(d.a)(Object(d.a)({},O),{},{series:[{name:a("AVERAGE_READ"),data:e},{name:a("AVERAGE_WRITE"),data:t}]})),T(Object(d.a)(Object(d.a)({},j),{},{series:[{name:a("AVERAGE_CALL_API_TITLE"),data:n}]})),N(Object(d.a)(Object(d.a)({},u),{},{series:[{name:a("AVERAGE_CONNECTED"),data:s}]})),R(Object(d.a)(Object(d.a)({},p),{},{series:[{name:a("AVERAGE_FOLDER_CREATE"),data:l},{name:a("AVERAGE_FOLDER_REMOVE"),data:r}]})),C(Object(d.a)(Object(d.a)({},h),{},{series:[{name:a("AVERAGE_FILE_CREATE"),data:i},{name:a("AVERAGE_FILE_REMOVE"),data:o}]})),L(Object(d.a)(Object(d.a)({},_),{},{series:[{name:a("AVERAGE_FILE_RENAME"),data:b},{name:a("AVERAGE_FILE_UPDATE"),data:m},{name:a("AVERAGE_FILE_COPY"),data:g}]}))}),[c]);const w={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!1},datalabels:{display:!1},legend:{position:"bottom",align:"start",labels:{font:10}},tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},callbacks:{label:e=>"".concat(e.dataset.label,": ").concat(e.raw||0)}}},interaction:{mode:"index",intersect:!1},stacked:!1,scales:{y:{display:!0,position:"left",min:0,ticks:{display:!0}}},elements:{line:{tension:.4,borderWidth:2,cubicInterpolationMode:"monotone"},point:{radius:.8,hitRadius:1.5,borderWidth:.3}}};return Object(g.jsx)(jl.a,{classes:{content:"flex"},innerScroll:!0,sidebarInner:!0,header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(B.a,{className:Object(G.a)(l.contentWrapper,"w-full flex-grow overflow-x-auto"),ref:i,children:Object(g.jsxs)("div",{className:"w-full",children:[Object(g.jsx)(Vt.a,{className:l.graphWrapper,children:Object(g.jsx)("div",{className:"flex w-full content",style:{width:"100%",height:"350px"},children:Object(g.jsx)($i.c,{options:Object(d.a)(Object(d.a)({},w),{},{scales:{y:Object(d.a)(Object(d.a)({},w.scales.y),{},{display:!0})},plugins:Object(d.a)(Object(d.a)({},w.plugins),{},{tooltip:Object(d.a)(Object(d.a)({},w.plugins.tooltip),{},{callbacks:{label:e=>"".concat(e.dataset.label,": ").concat(bt.a.changeByteToString(e.raw||0))}})})}),data:{labels:r,datasets:[{label:f.series[0].name,data:f.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:f.series[1].name,data:f.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsxs)("div",{className:"flex flex-wrap",children:[Object(g.jsx)(Vt.a,{className:Object(G.a)(l.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)($i.c,{options:w,data:{labels:r,datasets:[{label:v.series[0].name,data:v.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:v.series[1].name,data:v.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsx)(Vt.a,{className:Object(G.a)(l.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)($i.c,{options:w,data:{labels:r,datasets:[{label:y.series[0].name,data:y.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:y.series[1].name,data:y.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsx)(Vt.a,{className:Object(G.a)(l.graphWrapper,"short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)($i.c,{options:w,data:{labels:r,datasets:[{label:A.series[0].name,data:A.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:A.series[1].name,data:A.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})})]}),Object(g.jsxs)("div",{className:"flex flex-wrap",children:[Object(g.jsx)(Vt.a,{className:Object(G.a)(l.graphWrapper,"mr","middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)($i.c,{options:w,data:{labels:r,datasets:[{fill:!0,label:x.series[0].name,data:x.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"}]}})})}),Object(g.jsx)(Vt.a,{className:Object(G.a)(l.graphWrapper,"middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)($i.c,{options:Object(d.a)(Object(d.a)({},w),{},{plugins:Object(d.a)(Object(d.a)({},w.plugins),{},{tooltip:Object(d.a)(Object(d.a)({},w.plugins.tooltip),{},{callbacks:{label:e=>e.raw||0}})})}),data:{labels:r,datasets:[{fill:!0,label:S.series[0].name,data:S.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"}]}})})})]})]})})})}var wo={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/logs",component:s.a.memo(Lo)}]};var Io={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/openContentSite",component:function(e){let{props:t,location:a}=e;const c=Object(m.b)(),l=s.a.useRef(),[r,i]=Object(n.useState)({id:"",password:"",formID:"",formPasswd:"",url:""});return Object(n.useEffect)((()=>{const e=new URLSearchParams(a.search);var t;(t=e.get("name"),new Promise(((e,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/api/getContentSiteInfo",{token:s,name:t}).then((t=>{t.result?e(Object(d.a)(Object(d.a)({},t),{},{id:Va.a.decryptAES(n,t.id,"hex","utf8"),password:Va.a.decryptAES(n,t.password,"hex","utf8")})):(Ya.a.printError(t),a(t))}))}))}))).then((e=>{i({id:e.id,password:e.password,formID:e.form_id,formPasswd:e.form_password,url:e.login_url})}))}),[c]),Object(n.useEffect)((()=>{""!==r.url&&async function(){l.current.action=r.url,l.current[r.formID].value=r.id,l.current[r.formPasswd].value=r.password,l.current.submit()}()}),[r]),Object(g.jsx)("div",{id:"fuse-splash-screen",children:Object(g.jsxs)("div",{children:[Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"flex flex-col justify-center w-full",method:"post",onSubmit:()=>{console.log("onSubmit")},ref:l,children:[Object(g.jsx)(Ht.a,{className:"mb-16",type:"text",name:r.formID,value:r.id,onChange:e=>i(Object(d.a)(Object(d.a)({},r),{},{id:e.target.value})),variant:"outlined",required:!0,fullWidth:!0}),Object(g.jsx)(Ht.a,{className:"mb-16",type:"text",name:r.formPasswd,value:r.password,onChange:e=>i(Object(d.a)(Object(d.a)({},r),{},{password:e.target.value})),variant:"outlined",required:!0,fullWidth:!0})]}),Object(g.jsxs)("div",{className:"center",children:[Object(g.jsx)("div",{className:"logo",children:Object(g.jsx)("img",{width:"128",src:"assets/brand/loading.svg",alt:"logo"})}),Object(g.jsx)("div",{className:"spinner-wrapper",children:Object(g.jsx)("div",{className:"spinner",children:Object(g.jsxs)("div",{className:"inner",children:[Object(g.jsx)("div",{className:"gap"}),Object(g.jsx)("div",{className:"left",children:Object(g.jsx)("div",{className:"half-circle"})}),Object(g.jsx)("div",{className:"right",children:Object(g.jsx)("div",{className:"half-circle"})})]})})})]})]})})}}]},Po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABmJLR0QA/wD/AP+gvaeTAAADO0lEQVRoge3aT6hVRRzA8Y/vKZEV9VTCKCGLSuStxIULSSJCC5M2tYiKohLDpTtp18JctQ3cSUEktKkXlggVbYoySItKo0VKBf4JrUdpel3Me1ave+85d5g5M9j7wm9353d/3zPnnnvmN0PdTGAtri1dSE6WYQe+Qm8mlhetKBML8BRO+lt0Nq4vWFcWFmPKf0V7+EW4GFcNN+AD/WV72FeutDy8ZrBsD0+XKy09jxouexzXFKsuMQtx1HDh7cWqy8CThsu+6yp7WB0wWPYYbi5XWnrG8bv+sj9iZbnS8nCL/rIHsKJgXdlY7t+i3+FZHfxmSz0UxvCccFt/icNdfXEK4QXYgI1YJ9yuEzgjyEzhLZxrkWtMWB09iDW4CzfhD+EV82scxDs4m6D2kRgXbsPvDf976WEar+PeAXkewB783CJXD7/hFWFl1Qmr8FnL4ubGNzPF7sReYeZi8swuLDZndrVJuMKxRaaOv/B8LtmHcL4CyblxCQ+nlp0UHhSl5Yb9VBamkl2EQxVIDYr3JH6AvVCB1KDYJ+HMEmb3hwrE+sVHM/Ul5bEKxPrFadw2qsxYi888MmrSjnhZ6IgkZRynlJ/NuXFK6HSOTNMM34klMYkz87bwujoyTcL3xCTtgKnYgW1muEaOxQ5sEr4uNnFmTsQObBKuddfuz9iBTcIXYxNnJrqj2STceVehJZOxA5uET8cmzsymXIk3KP+S0S9+Ffl8aZrhozFJO+BGPJ4redvGWtdxUsQauM3i4dNRk3bEUryqncMVxlt8ZoXQRq2R1UIPfH/KpJPK375NsVfijfNaOx7/jCNYn0p4VwVCbeOJFMJ3VyDSJi4Ie1tJ+LACoaaIXif3Y0sFQk1xf0rhMWH7s7TUoPgkpewsmysQGxQbcwgz/PRNqXgzlyzcrq7t0rO4Nacwde01bcvseoU3OhIaFvt1eDBnQmiXlpL9SYGT8nfMfHHXstPCiaEirBGOKLUt9iK+xcfCwfAjwith2/EXdHCQpYlVwuGyQUVeEuSeEdozc1kstGzeFy7IsNv4voweI7EIW4WZOyOcsjuM3cIBs7asxEv4XPjLmcYXeFH/izXPPPP8j7gMbx1vP6O+NG0AAAAASUVORK5CYII=",Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAAMSklEQVR4nO1dTaxkRRX+qvs9Z/gZxzFjCAIDc/ticMaQKETiwoTElSa6IDFx4U/ijkQ3bkFlYULYuDGBEBcsxBV7E9ggca0mKoIhMgkmKA+GH//izOuuz8Xre+ucU1X3VvV7PQzM/ZKh7+s+derUd875btWdHh4wYcKECRMmTJgwYcKECRMmXEtw73cAH2R8+Xf8BLFssfJ3ACDd8oVn773h7zU+pgSM4Gt/5E1YLtsleKcDWxItiRZAS+IkQJAACBDcd+QPn73v+sdK/U8JAPDAn3nzEss7sXIt1iSDaAm0IE8QOCB4fSEIX7+uPyNBAM7jm8994bpflsy9s61FXW144BXeOlui9UTLmW/dyrV+xhYe7cqvbnBw6IjuX2heO/KhyQ8ZOLj2jj8AcG0l4BFy9uKruBX7aDFD64HWAS0cWnq2WPE679aEecA7Ah7gmjga4vufumsK8qMkaR8gzpXG/YFLwDde4h378wMNdg4tPFo43PmnV9AAOI7ZgV2nrfTQlapKfH3ZEyurmpJ7YYzg0MhQ7wPYLV3PVZeA+5/nzsULe2c4W7Ur59qXvnPz4/Lz5RwX+hsXMXgX6zV7bduTJQnXxrH0SN1HTHhgPu6mErwvCbj/ee5cfH3vDIAGQOM9Gud8Q6J587V/nOOc1wldfXzQ2SACU1rLK6QHFdKjfJRhawm450nuXj69d9vOct6QbEg2ABqSzcXX984DPN7tJgAKqdAysCnCTgWaXS3r69dy6UntgHofqI/7UAm450nuzk7v3bbEvHErNnSucUDjyfMrvvWp2XK24+nFzclUk1jIenmaiA35H5MeHEJ6wrjwmuymQlQl4P6nLhx/98YT33XgV+HcXZ4Xz3g/nwEA3YEYe1NN6V1Et2hBvq3CTYs/Ig556VEdEgz76KJi6V4l4Zp1yjUXoDgB9z198aPvHuNzDrgPcMlJLInptharGiN/gywoQiPpsZWajjGu9EQ3mRA3lcxZqeHlY/jRAflpkHFUamGiVaUc5PRXXRdiXHoi442kx64n120lKE4A4B/IfaIlVbZ4jnxqW+nEjCvGFZQe21m9f5q1FKAiAe721LsUK82RL1mJZEB8nk1aASLpGZrTSk+yQ3rLZDdlpaeybSsSkDjyKPJFYKqCc4ugIioiv2IlSekBksTqrpMdsvYxJj3SRzSv9lGCmgRoJAi1AfXvZcjX1RQnqigHVdKjZeNopEfa1t+3NktAlnwI4kbIhxwXbENnlHWB5KTrqFwnqORkpGfsRp6XHimdo2H3qElA37t6K6a3jZZQXc1MEiDJj8YNBZQiK0Squsje8Gl92AIQq851U2QeX4yiugPyN7DNTrlh+zrwwCsdiBmDNFl9QBCxSNuMjyihI90UaKhCVQJSB61uVkUoDPl2ry+jta1duJ0TnKBWetQ4EUrUTYQuKm0c1t6NMUVRguIEbOOUG7e2TmquBa5m6dleB5iyUguiJD9fzSHOeBxzSbNhGOIsGfnDnbUdkB77gXGVldLAVTHqJagLJks+ta2NPkl+CLrosa6RA9sJ6fuC6S51OeDDzBXNm7Ct2YzWSVA3iVi0XO1Gp1xVZQnbOJJB6YnvRciTZdon20029hBKiCnyW4bKDtCBRGT0BFAlJ16ASZoizs6RiiFPVjBaj49s89ITfZB4q0+oSbQdV4qKDhDUdeT3C4zJ122ZPuUmD3MJEqJYQkCqm0qkZzAumLhN24x1U9H22aDuHCDadpB8CBthGzojQ75aWGZHIROTKvrMjV9ruYgl/jEtX9F4HaM+5yTizqBiF3T0p1ydqPQcURhhqvWQRBakTWKeiKyh+5jyNbzrsd1UgkoJitstXlDFKZfBRyppyYUcifTEZIUigBoXbMelp3ewlQ6AbE1Bvm15GaVdtLEdrqyBhSSK/gi/VBVLj0xOx0Cmm5KyOYDqbagmNk9+tChT7YPkS19RHMZWvKnlont74BmTyvVwN9VIT00Sqm/CYxWXloiBpEG8n5ojFUZGeoKDcH21Sk+HqkcRR33KpRiHaFx6QTEZuYTaQblNwFBcYXzUCRnpYT+4DOUSZFtUENddW/JlaQ6dpJNJyy3jENIjFtO/jt3IU/e0YempeyBX0wEhu0Pki+hGT7mJcak5olAYTKwERJVqbKN55MuY9Jh1xfNmQ54wYcKECRMiFP8ryZt+8vIlAB+p8i5vWGq3wX0A/6bvjfTNV2wZ33707o9Ll5995q23R6el9hnv0jo7r+wc8V/SXwIAb2/eXfw+seMh0S2lc37he2cXJRRt5x9o2J1Cf7Ltdwy7IE+p3YfZiahtn8apwanluUBtRaF3VoTwfzDAA6cAF8jtPkqdf8zW1ukkF++Fjj4BqUcScQeohdktqaysyqn1D7TXA8//TezhAKm3qtKfHpPYihfg6BKQl5tIYnJyIyt2oAOy82v/giDhcj1LHEfigCdji840Kd+28wtw+ASMy40ic0huetvupaID0n/HkH7cYaVHk5i4V6R8m+6VfNTgcAnYhtyoTioOQ/8QCnhAelIygshOxWG6Mic9NV+r3ywBW5IbquvCVo7mGpcHaxd8UfnTpNb5LkVdAiwx25AbGtvRkNLyEGREtAOhr+U0Q/eKjO+09BQWzhrlCbgCcpO8Hg4pmfh+biEjIacJUpMyEobnfNskD32jL4fiBEjitio3JtH5gPr/hLjMeCUPwl1vJ33J2IXv6Alpoe9SbNABMYF9oPJafC6DGpKbdFdlwjGaG8sIlV2YECLZdkydbwz5LkRFAmCI6YKk+jwUzyZyk+qkRChJGRFxQsY0NCbzl0HCbnNZK8PmHaBIOhq5iTsgsRJFCNU1TSxjp10rN0cha1vrAC+cb09uxjtgXB60neysKGGZMcXSQ3ut11+CKgnattzYKsp1QLLVzfyBEOEbYb5+2uQOxiQ/KqSUbyNrhajYBQXitiY3UVdlg0n4vbIP2sZlrQwbdoAhu18Uk7Yx2f1qtNykusqGYRcevZ/2GznoY7Zjxn0XyFpxCg7RAYLso5KbVFfFkURVmZIeNU9nIhJst6lUviH8xb6TspbwXYKNT8JbkZveVre5jkO8mkSoh2EiPl3ZwS4lPTr+/Ak557ui+AEc5iS8Dbkp6IB+4SouUZXUdnoBcv78mGHfNP4gkifXUYaqDti63Ehbs0YZR7LVKS4s72pMZyXm64lLyFrCt76ZZ+4VhajvAEU2VBseWm5SXZUMpv9PiEfM1VcytbmVkf4HOVVXGCaO0b9rlrJW0QEVX030b/QBdQSSIjHxtbVNjWNXUd0CO9tcGN1rUh4E+RCGohslWdEYJnwLu+iHhPTUnQLqvhv6ayqSugAk2fra2hYnbDgO2B1M+AAiQ8jLQ58wIz3SMOG7SHqEXQmKE+Dm/mGQe7qS4+qFN5UsbFMJA3HwXZviqONWr33Q1jtQlW3H1PmG9V2I4gS889i9r82xuhfwT4P855WQmxRy8tDLSG/YvykN1mOox6jKzvvW3aV90/guRdVfSb7908//DcC3AODkg384tb+738z8snFEQ+caT3/e0Z0H+LHQyaKCVCXWBSqRlh5ZiePyEMuIkR7a6zjJg74LsfG3It574u53APx2/Ufh5IO/ObWP3YbwDegaks0MaAg09DyLw/ziiKz0dAsf38FE0iOSF5Ha/bSJrBVgK19NfO+JL2aTg+//6tjx/5y4BfOdBmTjwPMEzwGuAXA7gPmQ77GHYYEQaYDwIe2YzGk34XtU1kynl+DK/9/Tf/aVS/8DXsXBH42vv/iRYyfeOYsZFnBuMTv4XS0afZUa6YG+VnrOBKlmSMWDtmLfJbi6fn/AM+cvXwL+goM/GbgvOfoWcAuCCwALEi3IGyN5SMrIGtF9A4kx5l6R8N07sL4L8aH5JT6f+fkbNy25XPg5W6y4ILAA2IJYkDydlJ5UJfdkmxN+dkxS1i698dC54yVxf2gSMITmyb+enGG+gHetp1+AbkFyAWJB8Fbw4Df4KFKRqf5IeuLnSCR/v/fwuc+VxHZNJGAIdzx14bj/16yhX7VzcLFyWMzIhfdoQd5OYDe7o2I2Ed/ee/jcL0rmv+YTMIhHnt85c/KWM1hhsfKuBbAg/fq+wwWI64307Hu4H7/50KcfLZ1iSsAhcPqxlz+5S9/Su7P0uLxauhfeeuSu19/vuCZMmDBhwoQJEyZMmDBhwoSrF/8HMjGnusrwQZ0AAAAASUVORK5CYII=";const Mo=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604},"&.larg":{"& .MuiDialog-paper":{maxWidth:704}}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.input-area":{width:"100%",cursor:"default",fontSize:14,display:"flex","&>.MuiInputBase-root":{border:"1px solid rgba(0, 0, 0, 0.23)",paddingLeft:10,height:36,borderRadius:4,marginRight:5,"&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"& .MuiSelect-root":{width:60}}}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function ko(e){let{open:t,title:a,targetType:n,currentObj:c,fnHandleOK:l,fnHandleClose:r}=e;const{t:i}=Object(jt.a)("docbase"),o=Mo(),d=Object(m.b)(),[b,j]=s.a.useState(""),[u,O]=s.a.useState(""),[p,h]=s.a.useState(qc.u);s.a.useEffect((()=>{j(""),O(""),h(qc.u)}),[t]);return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:Object(G.a)(o.root,n===qc.y?"larg":""),open:t,onClose:r,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:o.title,id:"form-dialog-title",children:a}),Object(g.jsx)(el.a,{className:o.body,children:Object(g.jsxs)("div",{className:"content",children:[(()=>{switch(n){case qc.w:case qc.y:return Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i(n===qc.w?"COLLECT_IGNORE":"COLLECT_INCLUSIVE")})}),Object(g.jsxs)("div",{className:"input-area",children:[Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:"target-client",value:p,onChange:e=>{h(e.target.value)},children:[Object(g.jsx)(Q.a,{value:qc.u,children:"Windows"}),Object(g.jsx)(Q.a,{value:qc.t,children:"MAC"})]}),Object(g.jsx)(Ht.a,{type:"text",placeholder:i("COLLECT_REGIST_HINT_2"),name:"exts",fullWidth:!0,value:b,variant:"outlined",onChange:e=>j(e.target.value),size:"small"}),n===qc.y?Object(g.jsx)(Ht.a,{className:"ml-5",type:"text",placeholder:i("COLLECT_REGIST_HINT_3"),name:"name",fullWidth:!0,value:u,variant:"outlined",onChange:e=>O(e.target.value),size:"small"}):null]})]});case qc.x:case qc.v:return Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i("EXTENSION")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:i("COLLECT_REGIST_HINT_1"),name:"exts",fullWidth:!0,value:b,variant:"outlined",onChange:e=>j(e.target.value),size:"small"})})]});default:return""}})(),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:i("\ud30c\uc77c \uc554\ud638\ud654 \uc608\uc678\ucc98\ub9ac \uacbd\ub85c\ub97c \ub4f1\ub85d\ud569\ub2c8\ub2e4")}),Object(g.jsxs)("div",{className:o.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:r,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>async function(){if(""===b.trim())return d(Object(U.c)({message:i("VALUE_TO_REGISTER")})),!1;let e="",t="";switch(n){case qc.w:c.excPath.includes(b)&&(e=b),c.incPath.includes(b)&&(t=b);break;case qc.y:c.incPath.includes(b)&&(e=b),c.excPath.includes(b)&&(t=b);break;case qc.x:{const a=b.split(",").map((e=>e.trim())).filter((e=>""!==e)),n=a.filter((e=>c.incExt.some((t=>t.value===e))));n.length>0&&(e=n.join(",")),a.filter((e=>c.excExt.some((t=>t.value===e)))).length>0&&(t=n.join(","));break}case qc.v:{const a=b.split(",").map((e=>e.trim())).filter((e=>""!==e)),n=a.filter((e=>c.excExt.some((t=>t.value===e))));n.length>0&&(e=n.join(",")),a.filter((e=>c.excExt.some((t=>t.value===e)))).length>0&&(t=n.join(","));break}default:return!1}if(e.length>0)return d(Object(U.c)({message:"".concat(i("COLLECT_REGIST_MESSAGE_1"),"(").concat(e,")")})),!1;if(t.length>0)return d(Object(U.c)({message:"".concat(i("COLLECT_REGIST_MESSAGE_2"),"(").concat(e,")")})),!1;const a=await l(b,p,u);return console.log(a),a&&(j(""),O("")),!0}(),children:i("ADD")})]})]})})]})})}const Go=Object(M.a)((e=>({root:{},backdrop:{zIndex:1400,color:"#fff"},mainPaper:{borderRadius:6,padding:0,"&>.flex":{flexWrap:"wrap",padding:20},"& .step-wrapper":{display:"flex",width:"100%",padding:"10px",borderRadius:6,border:"1px solid #e0e0e0",marginBottom:10,"&:last-child":{marginBottom:0},"&>.step-header":{width:210,marginRight:20,"&>p":{display:"flex",width:"100%",alignItems:"center",fontSize:16,fontWeight:600}},"&>.step-body":{display:"flex",width:"100%",gap:10,"&>.content":{width:"100%",border:"1px solid #e0e0e0",borderRadius:4,maxWidth:500,display:"flex",flexDirection:"column","&:first-child":{maxWidth:"fit-content"},"&:last-child":{marginRight:0},"&>.content-header":{background:"#f5f7fa",padding:"10px 15px",borderBottom:"1px solid #e0e0e0","&>p":{display:"flex",width:"100%",alignItems:"center",fontSize:12,fontWeight:600}},"&>.content-body":{padding:"10px 15px",width:"100%",display:"flex",flexDirection:"column",height:"100%","&>.path-wrapper":{"&>.path-list":{height:200,overflowY:"auto","&>.inclusive-path":{"& .MuiListItem-root":{"&>div:first-child":{flex:"55%"},"&>div:last-child":{flex:"45%"}}},"& .MuiListItem-root":{padding:0},"& .MuiListItemIcon-root":{minWidth:"initial"},"& .MuiTypography-root>p":{display:"flex",justifyContent:"space-between",lineHeight:"24px","&.path":{justifyContent:"normal"}},"& .btn-remove":{padding:0,marginRight:0}}},"&>.ext-wrapper":{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%","&>.ext-list":{display:"flex",flexWrap:"wrap",gap:"6px","&>.ext":{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"0px 10px",background:"#f3f4f6",borderRadius:20,fontSize:12,cursor:"default","&>span":{overflowWrap:"anywhere"},"&>.ext-delete":{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,padding:0,border:"none",background:"transparent",fontSize:20,lineHeight:1,color:"#777",paddingTop:2,cursor:"pointer"}}},"&>.btn-ext-add":{marginTop:15}},"&>.conditions-row":{cursor:"default",display:"flex",alignItems:"center","&>span":{display:"flex",alignItems:"center","&>span":{marginLeft:5}},"& .MuiCheckbox-root":{paddingLeft:"0px!important"}}}},"&>div>.mode-wrapper":{width:"100%",display:"flex",gap:10,"&:last-child":{marginRight:0},"&>.mode":{border:"1.5px solid #dfe4ea",borderRadius:4,width:"100%",display:"flex",justifyContent:"center",padding:"10px 15px",flex:1,"&:hover":{background:"#f7fbff",borderColor:"#2f80ed"},"&.danger":{background:"#fffdfd",borderColor:"#f0c9c6","& .MuiRadio-root":{color:"#ef4b3f"},"&:hover":{background:"#fff7f6",borderColor:"#ef4b3f"}},"&.active":{background:"#f7fbff",borderColor:"#2f80ed","&.danger":{background:"#fff7f6",borderColor:"#ef4b3f"}},"&>.info":{width:"100%","&>p":{fontSize:16,display:"flex",alignItems:"center",justifyContent:"space-between","& .MuiRadio-root":{padding:"0!important"}}}}}}}},stepNumber:{width:20,height:20,marginRight:5,fontSize:14,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #00cfe2",color:"#00cfe2",backgroundColor:"#fff","&.small":{width:16,height:16,fontSize:10},"&.filled":{color:"#fff",backgroundColor:"#00cfe2"}},recommended:{color:"#00bd39",border:"1px solid #00bd39",marginLeft:5,display:"inline-flex",alignItems:"center",justifyContent:"center",height:20,whiteSpace:"nowrap",padding:"0 10px",borderRadius:"20px",fontSize:12,"&.warning":{color:"#ef4b3f",border:"1px solid #ef4b3f"}},hintSpan:{display:"block",marginTop:5,fontSize:12,overflowWrap:"anywhere",color:"#9e9e9e",maxWidth:290,curosr:"default","&.radio":{marginTop:-5},"&.full":{maxWidth:"inherit"}},inputForm:{width:"100%",maxWidth:265,marginLeft:10},select:{width:"100%"},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},customIconBtn:{color:"#000000",backgroundColor:"#eceff4",border:"1px solid #d9dee5","&.left":{borderRadius:"6px 0 0 6px",marginLeft:10},"&.right":{borderRadius:"0 6px 6px 0"},"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"& .MuiIcon-root":{width:14,height:14,fontSize:14}},customInputInterval:{width:65,"&>input":{paddingLeft:10},"& .MuiTypography-root":{fontSize:12}},targetWrapperList:{color:"#353b48",width:"100%",maxWidth:"33.33%",borderRight:"1px solid #e0e0e0",borderTop:"1px solid #e0e0e0","&:last-child":{borderRight:0},"&.tta_support":{maxWidth:690,marginRight:30}},targetTitle:{display:"flex",alignItems:"center",height:45,paddingLeft:30,background:"#f5f7fa"},targetInputWrapper:{display:"flex",alignItems:"center",height:45,paddingLeft:20,"&>div":{alignItems:"center"},"&>.MuiTextField-root":{width:171,marginRight:10}},chip:{margin:e.spacing(.5)},productImageUpload:{transitionProperty:"box-shadow",transitionDuration:e.transitions.duration.short,transitionTimingFunction:e.transitions.easing.easeInOut,background:e.palette.secondary.main},contentWrapper:{height:"".concat(window.innerHeight-140,"px")},settingTitleInput:{display:"inline-block",cursor:"default","vertical-align":"middle",width:"calc(100% - 155px)"},formControl:{margin:e.spacing(1),"margin-top":0,minWidth:120},selectEmpty:{marginTop:e.spacing(2)},fileIcon:{width:"24px",height:"24px",margin:"0"},pathWrapper:{marginTop:10},buttonWrapper:{display:"flex",marginTop:15,"& button":{width:"auto",marginLeft:0,padding:"5px 20px",borderRadius:"8px",background:"#ffffff",fontSize:"12px",color:"#64748b",border:"1px solid #e2e8f0"},"&>button:active, &>button:hover":{background:"#1663ff",color:"#ffffff",borderColor:"#1663ff",fontWeight:600,"& .user-add>svg, & .add>svg, & .settings-1>svg":{color:"#ffffff!important"}}},sw:{marginLeft:10}})));let Uo,Fo={};const Wo=[".\\:\\\\Windows.+",".+\\\\AppData\\\\.+",".\\:\\\\Program Files.+",".\\:\\\\ProgramData.+",".+\\~\\$.+",".\\:\\\\\\$Recycle.Bin.+"],Ho=["pptx","ppt","docx","doc","xlsx","xls","hwp","psd","psb","ai","txt","vsd","vsdx","jpg","pdf","gif","bmp","eps","png","hwpx","rtf","csv","svg","jpeg"];var zo=function(){const e=Go(),t=Object(m.b)(),a=s.a.useRef(),{t:n}=Object(jt.a)("docbase"),{sysConfigure:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[l,r]=s.a.useState(c),[i,o]=s.a.useState([]),[b,j]=s.a.useState([]),[u,O]=s.a.useState([]),[p,h]=s.a.useState([]),[_,f]=s.a.useState(0),[E,x]=s.a.useState(!0),[N,S]=s.a.useState(c.collect_interval_transfer/1e3),[T,v]=s.a.useState({open:!1,title:"",targetType:-1}),[R,y]=s.a.useState(!1),[C,A]=s.a.useState(0);s.a.useEffect((()=>{if(Number(c.collect_transfer_size)>=1073741824?(x(!1),f(Math.floor(Number(c.collect_transfer_size)/1024/1024/1024))):(x(!0),f(Math.floor(Number(c.collect_transfer_size)/1024/1024))),c.collect_config.length>0){const e=[],t=[],a=[],n=[];if(c.collect_config.forEach((s=>{s.target_type===qc.w?e.push(s):s.target_type===qc.x?t.push(s):s.target_type===qc.y?a.push(s):s.target_type===qc.v&&n.push(s)})),o(a),j(e),O(t),h(n),r(c),S(c.collect_interval_transfer/1e3),!c.collect_inclusive_pattern_support&&c.collect_exclusive_extension_support)A(2);else if(c.collect_inclusive_pattern_support||c.collect_exclusive_extension_support)A(1);else{const a=Wo.length===e.length&&Wo.every((t=>e.some((e=>e.target_type===qc.w&&e.value===t)))),n=Ho.length===t.length&&Ho.every((e=>t.some((t=>t.target_type===qc.x&&t.value===e))));A(a&&n?0:1)}}}),[c]),s.a.useEffect((()=>{t(Object(rn.B)())}),[t]);const L=s.a.useRef(!0);function P(e){e.target.value!==String(l[e.target.name])&&(r(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:"true"===e.target.value})),k(e.target.name,e.target.value))}async function D(e){y(!0);const a=c.collect_config.filter((t=>!(t.target_type===e.target_type&&t.value===e.value)));console.log(a),await t(Object(rn.bb)({setConf:{collect_config:a},succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")})),await t(Object(rn.B)()),y(!1)}function M(e){r(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:!l[e.target.name]})),k(e.target.name,!l[e.target.name])}function k(e,a){Fo[e]=a,clearTimeout(Uo),Uo=setTimeout((async()=>{try{await t(Object(rn.bb)({setConf:Fo,succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")})).unwrap(),Fo={},await t(Object(rn.B)()).unwrap()}catch(e){console.error(e)}finally{y(!1)}}),500)}return s.a.useEffect((()=>{if(L.current)return void(L.current=!1);const e=[];switch(C){case 0:{const a=Wo.every((e=>b.some((t=>t.target_type===qc.w&&t.value===e)))),s=Ho.every((e=>b.some((t=>t.target_type===qc.x&&t.value===e))));a&&s&&!c.collect_inclusive_pattern_support&&!c.collect_exclusive_extension_support||(Wo.forEach((t=>{e.push({target_type:qc.w,value:t,name:"",target_client:qc.u})})),Ho.forEach((t=>{e.push({target_type:qc.x,value:t,name:"",target_client:qc.s})})),async function(e){y(!0),await t(Object(rn.bb)({setConf:e,succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")})),await t(Object(rn.B)()),y(!1)}({collect_inclusive_pattern_support:!1,collect_exclusive_extension_support:!1,collect_config:e}));break}}}),[C]),Object(g.jsxs)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ko,{open:T.open,title:T.title,targetType:T.targetType,currentObj:{incPath:i,incExt:u,excPath:b,excExt:p},fnHandleOK:async(e,a,s)=>{const l=await async function(e,a,s,l){if(a.trim().length>0){switch(y(!0),e){case qc.w:case qc.y:await t(Object(rn.bb)({setConf:{collect_config:[...c.collect_config,{target_type:e,value:a,name:s,target_client:l}]},succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")}));break;case qc.x:case qc.v:{const l=a.split(",").map((e=>e.trim())).filter((e=>""!==e));await t(Object(rn.bb)({setConf:{collect_config:[...c.collect_config,...l.map((t=>({target_type:e,value:t,name:s,target_client:qc.s})))]},succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")}));break}}await t(Object(rn.B)())}return y(!1),!0}(T.targetType,e,s,a);return l},fnHandleClose:()=>{v(Object(d.a)(Object(d.a)({},T),{},{open:!1}))}}),Object(g.jsx)(yc.a,{className:e.backdrop,open:R,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)("div",{className:Object(G.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:Object(g.jsx)(Vt.a,{className:e.mainPaper,children:Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsxs)("div",{className:"step-wrapper",children:[Object(g.jsxs)("div",{className:"step-header",children:[Object(g.jsx)("p",{children:n("COLLECTOR_SUPPORT")}),Object(g.jsx)("span",{className:e.hintSpan,children:n("COLLECT_GLOBAL_SETTINGS_HINT_6")})]}),Object(g.jsx)("div",{className:"step-body",children:Object(g.jsx)("div",{children:Object(g.jsx)(Oi,{name:"collector_support",checked:l.collector_support,onChange:e=>M(e)})})})]}),Object(g.jsxs)("div",{className:"step-wrapper",children:[Object(g.jsxs)("div",{className:"step-header",children:[Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"filled"),children:"1"})," ",n("COLLECTOR_MODE")]}),Object(g.jsx)("span",{className:e.hintSpan,children:n("COLLECT_GLOBAL_SETTINGS_HINT_7")})]}),Object(g.jsx)("div",{className:"step-body",children:Object(g.jsx)(ee.a,{className:"w-full",value:C,onChange:e=>A(e.target.value),children:Object(g.jsxs)("div",{className:"mode-wrapper",children:[Object(g.jsxs)("div",{className:Object(G.a)("mode",0===C?"active":""),role:"button",tabIndex:0,onClick:()=>{A(0)},onKeyDown:e=>{},style:{cursor:"pointer"},children:[Object(g.jsx)(ha.a,{className:"huge",type:"collect-1",fill:"#2f80ed"}),Object(g.jsxs)("div",{className:"info",children:[Object(g.jsxs)("p",{style:{cursor:"pointer"},children:[Object(g.jsxs)("span",{children:[n("COLLECT_MODE_1"),Object(g.jsx)("span",{className:e.recommended,children:n("RECOMMENDED")})]}),Object(g.jsx)($.a,{color:"secondary",value:0})]}),Object(g.jsxs)("span",{className:Object(G.a)(e.hintSpan,"full"),children:[n("COLLECT_GLOBAL_SETTINGS_HINT_8"),Object(g.jsx)("br",{}),n("COLLECT_GLOBAL_SETTINGS_HINT_9")," doc, docx, xls, xlsx, pdf, hwp, dwg..."]})]})]}),Object(g.jsxs)("div",{className:Object(G.a)("mode",1===C?"active":""),children:[Object(g.jsx)(ha.a,{className:"huge",type:"collect-1",fill:"#2f80ed"}),Object(g.jsxs)("div",{className:"info",children:[Object(g.jsxs)("p",{children:[n("COLLECT_MODE_2"),Object(g.jsx)($.a,{color:"secondary",value:1})]}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"full"),style:{cursor:"default"},children:n("COLLECT_GLOBAL_SETTINGS_HINT_10")})]})]}),Object(g.jsxs)("div",{className:Object(G.a)("mode danger",2===C?"active":""),children:[Object(g.jsx)(ha.a,{className:"huge",type:"collect-2",fill:"#ef4b3f"}),Object(g.jsxs)("div",{className:"info",children:[Object(g.jsxs)("p",{children:[Object(g.jsxs)("span",{children:[n("COLLECT_MODE_3"),Object(g.jsx)("span",{className:Object(G.a)(e.recommended,"warning"),children:n("WARNING")})]}),Object(g.jsx)($.a,{value:2})]}),Object(g.jsxs)("span",{className:Object(G.a)(e.hintSpan,"full"),style:{cursor:"default"},children:[n("COLLECT_GLOBAL_SETTINGS_HINT_11"),Object(g.jsx)("br",{}),n("COLLECT_GLOBAL_SETTINGS_HINT_12")]})]})]})]})})})]}),Object(g.jsxs)("div",{className:"step-wrapper",children:[Object(g.jsxs)("div",{className:"step-header",children:[Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"filled"),children:"2"})," ",n("COLLECT_SCOPE_SETTINGS")]}),Object(g.jsx)("span",{className:e.hintSpan,children:n("COLLECT_GLOBAL_SETTINGS_HINT_1")})]}),Object(g.jsxs)("div",{className:"step-body",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"1"})," ",n("COLLECT_PATH_POLICY")]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)(ee.a,{column:!0,"aria-label":"collect_inclusive_pattern",name:"collect_inclusive_pattern_support",value:String(l.collect_inclusive_pattern_support),onChange:e=>{P(e)},children:[Object(g.jsx)(J.a,{value:"false",control:Object(g.jsx)($.a,{color:"secondary"}),label:Object(g.jsxs)("span",{style:{display:"flex",alignItems:"center"},children:[n("EXCLUSIVE"),Object(g.jsx)("span",{className:e.recommended,children:n("RECOMMENDED")})]})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"radio"),children:n("COLLECT_GLOBAL_SETTINGS_HINT_3")}),Object(g.jsx)(J.a,{value:"true",control:Object(g.jsx)($.a,{color:"secondary"}),label:Object(g.jsx)("span",{children:n("INCLUSIVE")})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"radio"),children:n("COLLECT_GLOBAL_SETTINGS_HINT_2")})]})})]}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"2"})," ",n("COLLECT_IGNORE"),"(",b.length,")"]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)("div",{className:"path-wrapper",children:[Object(g.jsx)("div",{className:"path-list",children:Object(g.jsx)(it.a,{disablePadding:!0,children:b.map(((t,a)=>Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(us.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:t.target_client===qc.t?Po:Do,alt:"file-icon"})}),Object(g.jsx)(dt.a,{id:"target_ignore_path_".concat(a),primary:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{children:t.value}),Object(g.jsx)(I.a,{className:"btn-remove",edge:"end","aria-label":"remove",color:"red",onClick:e=>D(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})]})})]},a)))})}),Object(g.jsx)("div",{className:e.buttonWrapper,children:Object(g.jsx)(Hc.a,{variant:"contained",type:"button",fullWidth:!0,startIcon:Object(g.jsx)(ha.a,{className:"add",type:"add",fill:"#64748b"}),onClick:()=>{v(Object(d.a)(Object(d.a)({},T),{},{open:!0,title:n("COLLECT_PATH_SETTING"),targetType:qc.w}))},children:n("ADD_IGNORE_PATH")})})]})})]}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"3"})," ",n("COLLECT_INCLUSIVE"),"(",i.length,")"]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)("div",{className:"path-wrapper",children:[Object(g.jsx)("div",{className:"path-list",children:Object(g.jsx)(it.a,{className:"inclusive-path",disablePadding:!0,children:i.map(((t,a)=>Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(dt.a,{id:"target_inclusive_path_".concat(a),primary:Object(g.jsxs)("p",{className:"path",children:[Object(g.jsx)(us.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:t.target_client===qc.t?Po:Do,alt:"file-icon"})}),t.value]})}),Object(g.jsx)(dt.a,{id:"target_inclusive_path_".concat(a),primary:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{children:t.name}),Object(g.jsx)(I.a,{className:"btn-remove",edge:"end","aria-label":"remove",color:"red",onClick:e=>D(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})]})})]},a)))})}),Object(g.jsx)("div",{className:e.buttonWrapper,children:Object(g.jsx)(Hc.a,{variant:"contained",type:"button",fullWidth:!0,startIcon:Object(g.jsx)(ha.a,{className:"add",type:"add",fill:"#64748b"}),onClick:()=>{v(Object(d.a)(Object(d.a)({},T),{},{open:!0,title:n("COLLECT_PATH_SETTING"),targetType:qc.y}))},children:n("ADD_INCLUSIVE_PATH")})})]})})]})]})]}),Object(g.jsxs)("div",{className:"step-wrapper",children:[Object(g.jsxs)("div",{className:"step-header",children:[Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"filled"),children:"3"})," ",n("COLLECT_FILE_CONDITIONS")]}),Object(g.jsx)("span",{className:e.hintSpan,children:n("COLLECT_GLOBAL_SETTINGS_HINT_4")})]}),Object(g.jsxs)("div",{className:"step-body",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"1"}),n("COLLECT_EXCLUSIVE_EXT_SETTING")]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)(ee.a,{column:!0,"aria-label":"collect_exclusive_extension_support",name:"collect_exclusive_extension_support",value:String(l.collect_exclusive_extension_support),onChange:e=>{P(e)},children:[Object(g.jsx)(J.a,{value:"false",control:Object(g.jsx)($.a,{color:"secondary"}),label:Object(g.jsxs)("span",{style:{display:"flex",alignItems:"center"},children:[n("INCLUSIVE_EXT"),Object(g.jsx)("span",{className:e.recommended,children:n("RECOMMENDED")})]})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan,"radio"),children:n("COLLECT_EXCLUSIVE_EXT_SETTING_HELP_TEXT")}),Object(g.jsx)(J.a,{value:"true",control:Object(g.jsx)($.a,{color:"secondary"}),label:Object(g.jsx)("span",{children:n("EXCLUSIVE_EXT")})})]})})]}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"2"}),n("COLLECT_EXT"),"(",u.length,")"]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)("div",{className:"ext-wrapper",children:[Object(g.jsx)("div",{className:"ext-list",children:u.map(((e,t)=>Object(g.jsxs)("div",{className:"ext",children:[Object(g.jsx)("span",{children:e.value}),Object(g.jsx)("button",{type:"button",className:"ext-delete",onClick:t=>D(e),children:"\xd7"})]})))}),Object(g.jsx)("div",{className:Object(G.a)(e.buttonWrapper,"btn-ext-add"),children:Object(g.jsx)(Hc.a,{variant:"contained",type:"button",fullWidth:!0,startIcon:Object(g.jsx)(ha.a,{className:"add",type:"add",fill:"#64748b"}),onClick:()=>{v(Object(d.a)(Object(d.a)({},T),{},{open:!0,title:n("COLLECT_EXT"),targetType:qc.x}))},children:n("ADD_INCLUSIVE_EXT")})})]})})]}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"3"}),n("COLLECT_EXCLUSIVE_EXT"),"(",p.length,")"]})}),Object(g.jsx)("div",{className:"content-body",children:Object(g.jsxs)("div",{className:"ext-wrapper",children:[Object(g.jsx)("div",{className:"ext-list",children:p.map(((e,t)=>Object(g.jsxs)("div",{className:"ext",children:[Object(g.jsx)("span",{children:e.value}),Object(g.jsx)("button",{type:"button",className:"ext-delete",onClick:t=>D(e),children:"\xd7"})]},t)))}),Object(g.jsx)("div",{className:Object(G.a)(e.buttonWrapper,"btn-ext-add"),children:Object(g.jsx)(Hc.a,{variant:"contained",type:"button",fullWidth:!0,startIcon:Object(g.jsx)(ha.a,{className:"add",type:"add",fill:"#64748b"}),onClick:()=>{v(Object(d.a)(Object(d.a)({},T),{},{open:!0,title:n("COLLECT_EXCLUSIVE_EXT"),targetType:qc.v}))},children:n("ADD_INCLUSIVE_EXT")})})]})})]})]})]}),Object(g.jsxs)("div",{className:"step-wrapper",children:[Object(g.jsxs)("div",{className:"step-header",children:[Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"filled"),children:"4"})," ",n("COLLECT_STORAGE_OPTION")]}),Object(g.jsx)("span",{className:e.hintSpan,children:n("COLLECT_GLOBAL_SETTINGS_HINT_5")})]}),Object(g.jsxs)("div",{className:"step-body",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"1"}),n("COLLECT_DRIVE")]})}),Object(g.jsxs)("div",{className:"content-body",children:[Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_fixed",checked:l.collect_drive_fixed,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_FIXED")})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_removable",checked:l.collect_drive_removable,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_REMOVABLE")})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_remote",checked:l.collect_drive_remote,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_REMOTE")})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_fixed_hotplug",checked:l.collect_drive_fixed_hotplug,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_FIXED_HOTPLUG")})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_cdrom",checked:l.collect_drive_cdrom,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_CDROM")})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsx)(Wc.a,{color:"secondary",name:"collect_drive_ramdisk",checked:l.collect_drive_ramdisk,onChange:e=>M(e)}),Object(g.jsx)("span",{children:n("COLLECT_DRIVE_RAMDISK")})]})]})]}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"content-header",children:Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"2"}),n("COLLECT_OPTION")]})}),Object(g.jsxs)("div",{className:"content-body",children:[Object(g.jsxs)("div",{className:"conditions-row mb-5",children:[Object(g.jsx)("span",{children:n("COLLECT_SYNC_REMOVE")}),Object(g.jsx)(Oi,{className:e.sw,name:"collect_sync_remove_support",checked:l.collect_sync_remove_support,onChange:e=>M(e)})]}),Object(g.jsxs)("div",{className:"conditions-row mb-5",children:[Object(g.jsx)("span",{children:n("COLLECTOR_TRANSFER_SIZE")}),Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(js.a,{type:"number",name:"collect_transfer_size",disableUnderline:!0,className:e.customInput,value:_,onChange:e=>f(Number(e.target.value)),onBlur:e=>{e.preventDefault();const a=E?_:1024*_;return a<0?(t(Object(U.c)({message:n("NUMBER_ERROR_MESSAGE")})),Number(c.collect_transfer_size)>=1073741824?(x(!1),f(Math.floor(Number(c.collect_transfer_size)/1024/1024/1024))):(x(!0),f(Math.floor(Number(c.collect_transfer_size)/1024/1024))),!1):(c.collect_transfer_size!==String(1024*a*1024)&&k("collect_transfer_size",1024*a*1024),!0)},endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:E,onChange:e=>{f(E?_<1024?0:Math.floor(_/1024):1024*_),x(!E)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})})]}),Object(g.jsxs)("div",{className:"conditions-row",children:[Object(g.jsxs)("span",{children:[n("COLLECTOR_INTERVAL_TRANSFER"),Object(g.jsx)(Je.a,{title:"",arrow:!0,children:Object(g.jsx)("span",{className:Object(G.a)(e.stepNumber,"small"),children:"?"})})]}),Object(g.jsx)(I.a,{className:Object(G.a)(e.customIconBtn,"left"),onClick:e=>{const t=Number(N);t>0&&(S(t-1),r(Object(d.a)(Object(d.a)({},l),{},{collect_interval_transfer:1e3*(t-1)})),k("collect_interval_transfer",1e3*(t-1)))},children:Object(g.jsx)(w.a,{children:"remove"})}),Object(g.jsx)(js.a,{type:"text",name:"collect_interval_transfer",className:e.customInputInterval,disableUnderline:!0,value:N,onChange:e=>{bt.a.isNumber(e.target.value)&&(S(Number(e.target.value)),r(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:1e3*Number(e.target.value)})))},onBlur:e=>{bt.a.isNumber(l.collect_interval_transfer)&&k(e.target.name,l.collect_interval_transfer)},endAdornment:Object(g.jsx)(zt.a,{position:"end",children:n("SEC")})}),Object(g.jsx)(I.a,{className:Object(G.a)(e.customIconBtn,"right"),onClick:e=>{const t=Number(N);S(t+1),r(Object(d.a)(Object(d.a)({},l),{},{collect_interval_transfer:1e3*(t+1)})),k("collect_interval_transfer",1e3*(t+1))},children:Object(g.jsx)(w.a,{children:"add"})})]}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:n("COLLECTOR_INTERVAL_TRANSFER_HELP_TEXT")})]})]})]})]})]})})})]})};var Bo=function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(zo,{}),innerScroll:!0,sidebarInner:!0})},Ko=a(966);const Yo=Object(M.a)((e=>({root:{display:"flex",height:"100%",padding:0,alignItems:"center"},listWrapper:{"flex-grow":0,"max-width":714,"flex-basis":"45%",margin:0,"box-sizing":"border-box",padding:0},paper:{height:"100%",overflow:"auto",padding:0,borderRadius:6,"&>.title":{fontSize:14,color:"#000000",textAlign:"center",padding:"15px 0",cursor:"default"},"&>.insert-wrapper":{display:"flex",padding:"20px 30px"},"&>.insert-wrapper>.input":{width:"100%",maxWidth:504,marginRight:10},"&>.list-wrapper":{height:"calc(100vh - 310px)",overflow:"auto"}},orgRow:{background:"#353b48",borderBottom:"1px solid #8b95a1",color:"#ffffff","& .MuiCheckbox-root":{color:"#ffffff"},"& .MuiCheckbox-colorSecondary.Mui-checked":{color:"#ffffff"},"& .MuiCheckbox-colorSecondary>.MuiIconButton-label":{width:16,height:16,background:"initial"}},listItemBorder:{"border-top":"1px solid #ccc"},listItemOrgBorder:{"border-bottom":"1px dashed #ccc"},IndentationIcon:{width:"20px",height:"42px",padding:"10px 0px"},IndentationWrapper:{"min-width":"20px","padding-left":"20px"},checkedListItem:{background:"#c3cdd6",border:"1px solid #fff"},listButtonWrapper:{"flex-grow":0,"max-width":40,"flex-basis":"10%",margin:"0 40px","box-sizing":"border-box","& .MuiButton-root":{color:"#333d4b",minWidth:40,padding:0,width:40,background:"#eceff4",border:"1px solid #d9dee5"}},button:{marginBottom:10,"&.MuiButtonBase-root.Mui-disabled":{color:"#ccc"}}})));function Vo(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Xo(e){let{tabType:t,leftList:a,rightList:n,fnDoCollectPolicy:c,fnCollectRemoveSource:l}=e;const r=Yo(),{t:i}=Object(jt.a)("docbase"),[o,d]=s.a.useState(""),[b,j]=s.a.useState(""),[u,O]=s.a.useState(""),[p,h]=s.a.useState(""),[m,_]=s.a.useState([]),[f,E]=s.a.useState([]),x=()=>{_([]),E([])},N=e=>{m.length>0?_([]):_(e?a.map((e=>e.user_id)):n.map((e=>e.user_id)))},S=e=>{const t=e?a:n,s=Vo(m,t.map((e=>e.user_id))),c=s.length>0&&s.lengthN(e),onClick:t=>N(e)})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",children:i("USER")}),e?Object(g.jsx)(Ll.a,{padding:"none",className:"text-center z-99",children:i("COLLECT_USE_REMOVE_SOURCE")}):Object(g.jsx)(g.Fragment,{})]})}),Object(g.jsx)(wl.a,{children:t.map(((t,a)=>{if(e){if(""!==o&&-1===t.user_id.indexOf(o)&&-1===t.name.indexOf(o)&&-1===t.orgs.indexOf(o))return""}else if(""!==b&&-1===t.user_id.indexOf(b)&&-1===t.name.indexOf(b)&&-1===t.orgs.indexOf(b))return"";return Object(g.jsxs)(Al.a,{className:"cursor-default",hover:!0,role:"checkbox","aria-checked":r,tabIndex:-1,selected:r,children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:-1!==m.indexOf(t.user_id),onClick:e=>{const a=[...m],n=m.indexOf(t.user_id);-1===n?_([...m,t.user_id]):(a.splice(n,1),_(a))}})}),Object(g.jsxs)(Ll.a,{className:"left",component:"td",scope:"row",children:[Object(g.jsx)(ha.a,{className:"small",type:"person",fill:"#333d4b"}),Object(g.jsx)("span",{children:"".concat(t.name,"(").concat(t.user_id,") ").concat(""!==t.orgs?"[".concat(t.orgs,"]"):"")})]}),e?Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:t.remove_source,onClick:e=>{console.log(t),l(t.user_id,!t.remove_source)}})}):Object(g.jsx)(g.Fragment,{})]},t.user_id)}))})]})},T=e=>{const t=i(e?"COLLECT_USED":"COLLECT_NOT_USE");return Object(g.jsxs)(Vt.a,{className:r.paper,children:[Object(g.jsx)("div",{className:"title",children:t}),Object(g.jsx)(Dt.a,{}),Object(g.jsxs)("div",{className:"insert-wrapper",children:[Object(g.jsx)("div",{className:"input",children:Object(g.jsx)(Ht.a,{type:"text",placeholder:i("SEARCH_KEYWORD"),name:"search-val",value:e?u:p,variant:"outlined",size:"small",onChange:t=>e?O(t.target.value):h(t.target.value),fullWidth:!0})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:t=>{e?d(u):j(p)},children:i("SEARCH")})})]}),Object(g.jsx)("div",{className:"list-wrapper",children:S(e)})]})};return Object(g.jsxs)("div",{className:r.root,children:[Object(g.jsx)("div",{className:r.listWrapper,children:T(!0)}),Object(g.jsx)("div",{className:r.listButtonWrapper,children:Object(g.jsxs)(Ko.a,{container:!0,direction:"column",alignItems:"center",children:[Object(g.jsx)(Je.a,{title:i("COLLECT_ALL_UNAPPLIED"),arrow:!0,placement:"top",children:Object(g.jsx)(Hc.a,{variant:"outlined",size:"small",className:r.button,onClick:()=>{c(a.map((e=>({userID:e.user_id,enabled:!e.enabled,removeSource:e.remove_source}))),!1),x()},disabled:-1===a.findIndex((e=>!e.isOrg)),"aria-label":"move all right",children:"\u226b"})}),Object(g.jsx)(Je.a,{title:i("UNAPPLIED"),arrow:!0,placement:"left",children:Object(g.jsx)(Hc.a,{variant:"outlined",size:"small",className:r.button,onClick:e=>{const t=[];a.forEach((e=>{-1!==m.indexOf(e.user_id)&&t.push({userID:e.user_id,enabled:!e.enabled,removeSource:e.remove_source})})),c(t),x()},disabled:0===Vo(m,a.map((e=>e.user_id))).length,"aria-label":"move selected right",children:">"})}),Object(g.jsx)(Je.a,{title:i("APPLY"),arrow:!0,placement:"right",children:Object(g.jsx)(Hc.a,{variant:"outlined",size:"small",className:r.button,onClick:e=>{const t=[];n.forEach((e=>{-1!==m.indexOf(e.user_id)&&t.push({userID:e.user_id,enabled:!e.enabled,removeSource:e.remove_source})})),c(t),x()},disabled:0===Vo(m,n.map((e=>e.user_id))).length,"aria-label":"move selected left",children:"<"})}),Object(g.jsx)(Je.a,{title:i("COLLECT_ALL_APPLY"),arrow:!0,placement:"bottom",children:Object(g.jsx)(Hc.a,{variant:"outlined",size:"small",className:r.button,onClick:e=>{c(n.map((e=>({userID:e.user_id,enabled:!e.enabled,removeSource:e.remove_source}))),!0),x()},disabled:-1===n.findIndex((e=>!e.isOrg)),"aria-label":"move all left",children:"\u226a"})})]})}),Object(g.jsx)("div",{className:r.listWrapper,children:T(!1)})]})}const qo=Object(M.a)((e=>({tr:{"& .MuiButton-root":{width:80},"& .datetime":{width:125},"& .status-title":{verticalAlign:"middle",cursor:"pointer"},"& .status-icon":{display:"inline-block",width:"12px",height:"12px",marginRight:"6px",borderRadius:"50%",verticalAlign:"middle",cursor:"pointer"},"& .status-icon.active":{backgroundColor:"#4caf50",boxShadow:"0 0 5px #4caf50"},"& .status-icon.inactive":{backgroundColor:"#ccc"}},contentWrapper:{height:"".concat(window.innerHeight-274,"px")},success:{color:"#388e3c",borderColor:"#388e3c","&:hover":{backgroundColor:"#e8f5e9",borderColor:"#2e7d32"}},default:{color:"#666",borderColor:"#ccc","&:hover":{backgroundColor:"#f5f5f5",borderColor:"#bbb"}}})));function Jo(e){const t=qo(),{t:a}=Object(jt.a)("docbase"),n=(s.a.useRef(),s.a.useRef()),[c,l]=s.a.useState(window.innerHeight),[r,i]=s.a.useState({id:"id",direction:"asc"}),[o,d]=s.a.useState([]),[b,u]=s.a.useState("");s.a.useEffect((()=>{n.current&&(n.current.style.height="".concat(c-274,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[c]),s.a.useEffect((()=>{O(b)}),[e.userPolicyInfos,b]);const O=s.a.useCallback(Object(ul.debounce)((t=>{d(p.filterUsersByString(e.userPolicyInfos,t)),console.log(t)}),500),[e.userPolicyInfos]),h=(t,a)=>{e.fnCollectFullScan(t,a)};return Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:b,placeholder:a("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:b&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(e.target.value)})})}),Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsx)("span",{})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:a("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:n,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:t.tr,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:!0,children:Object(g.jsx)(Bl.a,{active:!0,direction:r.direction,onClick:e=>{let t="desc";"desc"===r.direction&&(t="asc"),i({direction:t,id:"id"})},children:a("USER")})}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_STATUS")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_RESTART")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PRESCANNED_FOLDERS")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FOLDERS")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FILES")}),Object(g.jsx)(Ll.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_REQUEST_AT")}),Object(g.jsx)(Ll.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_PRESCAN_FINISHED_AT")}),Object(g.jsx)(Ll.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_FINISHED_AT")})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(o,[e=>(console.log(e),"id"===r.id?e.name:e[r.id])],[r.direction]).map(((n,s)=>{let c=a("ACTIVE"),l=Object(g.jsx)(g.Fragment,{});return 1===n.full_scan_status?c=a("COLLECT_FULL_SCAN_STATUS_STARTED"):2===n.full_scan_status?c=a("COLLECT_FULL_SCAN_STATUS_PRESCANED"):3===n.full_scan_status&&(""!==n.full_scan_requested_at&&""!==n.full_scan_finished_at&&bt.a.getDateStringToDate(n.full_scan_requested_at).getTime()>bt.a.getDateStringToDate(n.full_scan_finished_at).getTime()?c=a("\uc694\uccad\uc911"):(c=a("COLLECT_FULL_SCAN_STATUS_FINISHED"),l=Object(g.jsx)(Hc.a,{className:"default",variant:"contained",color:"",onClick:t=>{e.fnRestartFullScan(n)},children:a("COLLECT_FULL_SCAN_RESTART")}))),Object(g.jsxs)(Al.a,{className:t.tr,hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",children:"".concat(n.name,"(").concat(n.user_id,")")}),Object(g.jsxs)(Ll.a,{className:"",align:"center",padding:"default",children:[Object(g.jsx)("span",{className:Object(G.a)("status-icon",n.full_scan?" active":"inactive"),onClick:e=>h(n.user_id,!n.full_scan)}),Object(g.jsx)("span",{className:"status-title",onClick:e=>h(n.user_id,!n.full_scan),children:n.full_scan?c:a("INACTIVE")})]}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:l}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.prescanned_folders):"-"}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_folders):"-"}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_files):"-"}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:bt.a.getDateStringToLocalDate(n.full_scan_requested_at)}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?bt.a.getDateStringToLocalDate(n.full_prescan_finished_at):"-"}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?bt.a.getDateStringToLocalDate(n.full_scan_finished_at):"-"})]},n.user_id)}))})]})})]})}const Zo=["children","value","index"],Qo=Object(M.a)((e=>({root:{},contentWrapper:{},mainPaper:{borderRadius:6,padding:0,background:"none",border:0,boxShadow:"none"},tabsBar:{height:50,color:"#192141",background:"none",boxShadow:"none","& .MuiTab-root":{padding:0,minWidth:136,fontSize:16},"& .MuiTab-textColorInherit":{opacity:1},"& .MuiTab-textColorInherit.Mui-selected":{color:"#00cfe2",background:"#fff",borderRadius:"6px 6px 0 0"}},tabPanel:{height:"calc(100% - 48px)"}})));function $o(e){const{children:t,value:a,index:n}=e,s=Object(Ws.a)(e,Zo);return Object(g.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n)},s),{},{children:a===n&&Object(g.jsx)(Ot.a,{p:2,className:"h-full p-0",style:{"margin-top":"-4px"},children:t})}))}function ed(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const td="mobile"===sessionStorage.getItem("device");var ad=function(){const e=Qo(),t=Object(m.b)(),a=s.a.useRef(),{t:n}=Object(jt.a)("docbase"),{usersObj:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgFolders:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[r,i]=s.a.useState(0),[o,b]=s.a.useState([]),[j,u]=s.a.useState([]),[O,p]=s.a.useState(!0),[h,_]=s.a.useState({}),[f,E]=s.a.useState({}),[x,N]=s.a.useState([]);return s.a.useEffect((()=>{t(Object(cn.h)()).then((()=>{t(Object(ln.f)()).then((()=>{Object(rn.k)().then((e=>{_(e),Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))}))}))}))}),[t]),s.a.useEffect((()=>{Object.keys(f).length>0&&function(){p(!0);const e={};let t,a;const n=[],s=[];for(let b=0;b0)for(let a=0;a{e[t]||(e[t]=Object(d.a)(Object(d.a)({},c[t]),{},{orgs:""}))}));const r=Object.keys(e);if(r.length>0){const t=r.sort(((e,t)=>e>t?1:e===t?0:-1));for(let c=0;c{r!==t&&(p(!0),i(t))},children:[Object(g.jsx)(Gl.a,Object(d.a)({label:n("COLLECT_USE")},ed(0))),Object(g.jsx)(Gl.a,Object(d.a)({label:n("COLLECT_USE_FULL_SCAN")},ed(1)))]})}),Object(g.jsx)($o,{className:td?"":e.tabPanel,value:r,index:0,children:Object(g.jsx)(Xo,{tabType:r,leftList:o,rightList:j,fnDoCollectPolicy:async e=>{const a=[];for(let t=0;t{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))}))},fnCollectRemoveSource:async(e,a)=>{Object(rn.cb)(e,f[e].enabled,f[e].full_scan,a,!1).then((()=>{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))}))}})}),Object(g.jsx)($o,{className:td?"":e.tabPanel,value:r,index:1,children:Object(g.jsx)(Jo,{tabType:r,userPolicyInfos:x,fnDoSearch:()=>{Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))},fnCollectFullScan:async(e,a)=>{Object(rn.cb)(e,f[e].enabled,a,f[e].remove_source,!1).then((()=>{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))}))},fnRestartFullScan:e=>{(e=>{Object(rn.db)([{userID:e.user_id,enabled:e.enabled,fullScan:e.full_scan,removeSource:e.remove_source,full_scan_restart:!0}]).then((()=>{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(rn.C)().then((e=>{E(e.obj),N(e.list)}))}))})(e)}})})]})})})};var nd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/g_collector",component:Bo},{path:"/p_collector",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(ad,{}),innerScroll:!0,sidebarInner:!0})}}]},sd=a(490);const cd=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{cursor:"default",fontSize:14,marginRight:5},"&>.content>.row>.MuiInputBase-root":{marginRight:15}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{marginRight:16},"& .MuiButton-root:last-child":{marginRight:0}}})));function ld(e){let{open:t,pid:a,fnHandleClose:n,fnHandleOk:c}=e;const{t:l}=Object(jt.a)("docbase"),r=cd(),i=Object(m.b)(),[o,b]=s.a.useState([]),[j,u]=s.a.useState({mins:-1,hours:-1,days:-1,months:-1,date:""});s.a.useEffect((()=>{t&&u({mins:-1,hours:-1,days:-1,months:-1,date:""})}),[t]),s.a.useEffect((()=>{(async()=>{if(a>0){const e=await Object(rn.u)(a),t=await Object(rn.v)(a);console.log(t);const n=e.sort(((e,t)=>e.name.localeCompare(t.name)));b(n)}else b([])})()}),[a]);const O=async e=>{try{Object(rn.J)(a,e,j.mins,j.hours,j.days,j.months,null)?(i(e?Object(U.d)({message:l("APPROVED")}):Object(U.d)({message:l("REJECTED")})),c()):i(Object(U.d)({message:l("FAILED")}))}catch(t){console.error(t)}};return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:r.root,open:t,onClose:n,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:r.title,id:"form-dialog-title",children:l("FPOD_TITLE")}),Object(g.jsx)(el.a,{className:r.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(tl.a,{className:"text-1",id:"alert-dialog-slide-description",children:l("FPOD_TEXT_1")}),Object(g.jsx)("div",{className:"row",children:Object(g.jsx)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:Object(g.jsx)(wl.a,{children:o.map((e=>Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,tabIndex:-1,children:Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_name,"(").concat(e.user_id,")")})},e.user_id)))})})}),Object(g.jsx)(tl.a,{className:"text-1",id:"alert-dialog-slide-description",children:l("FPOD_TEXT_2")}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:"\uc6d4"}),Object(g.jsxs)(te.a,{variant:"outlined",value:j.days,onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{days:e.target.value})),children:[Object(g.jsx)(Q.a,{value:-1,children:l("\uc120\ud0dd")}),Array.from({length:13},((e,t)=>Object(g.jsx)(Q.a,{value:t,children:t},t)))]}),Object(g.jsx)("div",{className:"title",children:"\uc77c"}),Object(g.jsxs)(te.a,{variant:"outlined",value:j.days,onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{days:e.target.value})),children:[Object(g.jsx)(Q.a,{value:-1,children:l("\uc120\ud0dd")}),Array.from({length:31},((e,t)=>Object(g.jsx)(Q.a,{value:t,children:t},t)))]}),Object(g.jsx)("div",{className:"title",children:"\uc2dc"}),Object(g.jsxs)(te.a,{variant:"outlined",value:j.hours,onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{hours:e.target.value})),children:[Object(g.jsx)(Q.a,{value:-1,children:l("\uc120\ud0dd")}),Array.from({length:25},((e,t)=>Object(g.jsx)(Q.a,{value:t,children:t},t)))]}),Object(g.jsx)("div",{className:"title",children:"\ubd84"}),Object(g.jsxs)(te.a,{variant:"outlined",value:j.mins,onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{mins:e.target.value})),children:[Object(g.jsx)(Q.a,{value:-1,children:l("\uc120\ud0dd")}),Array.from({length:61},((e,t)=>Object(g.jsx)(Q.a,{value:t,children:t},t)))]})]}),Object(g.jsxs)("div",{className:r.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>O(!1),children:l("TAKEOUT_REJECTED")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>O(!0),children:l("TAKEOUT_APPROVED")})]})]})})]})})}const rd=["children","classes","onClose"],id="mobile"===sessionStorage.getItem("device"),od=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),dd=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,rd);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),bd=Object(M.a)((e=>({root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:1024,background:"#f2f3f5","&>div":{padding:30}}},contentWrapper:{height:1e3,"& .header":{background:"#fff",color:"#000"},"& .table-scroll":{height:"calc(1000px - 390px)"}},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},tr:{cursor:"pointer","&.MuiTableRow-root.Mui-selected":{background:"rgb(0 207 226 / 40%)"},"& td":{cursor:"pointer!important"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));function jd(e){let{open:t,fnHandleClose:a}=e;Object(m.b)();const n=bd(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(0),[i,o]=s.a.useState(100),[b,j]=s.a.useState(0),[u,O]=s.a.useState(!1),[p,h]=s.a.useState([]),[_,f]=s.a.useState(""),E=new Date,[x,N]=s.a.useState({startDate:new Date(E.getFullYear(),E.getMonth(),E.getDate()),endDate:new Date(E.getFullYear(),E.getMonth(),E.getDate())}),[S,T]=s.a.useState({id:"user_id",direction:"asc"}),R=s.a.useRef(!0);s.a.useEffect((()=>{t&&(f(""),y())}),[t,x]),s.a.useEffect((()=>{R.current?R.current=!1:C(l)}),[l]);const y=async()=>{O(!0);try{const e=await Object(on.u)(bt.a.getDateString(x.startDate),bt.a.getDateString(x.endDate));e.total_rows>0?(j(e.total_rows),await C(1)):h([])}catch(e){console.error(e)}finally{O(!1)}},C=async e=>{const t=await Object(on.v)(e);h(t)};return Object(g.jsxs)(v.a,{className:Object(G.a)(n.root,id?"mobile":""),open:t,TransitionComponent:od,keepMounted:!0,fullWidth:!0,onClose:a,children:[Object(g.jsx)(dd,{className:n.title,id:"form-dialog-title",onClose:a,children:c("\uacfc/\uc624\ud0d0 \ucc98\ub9ac \ubaa9\ub85d")}),Object(g.jsx)(el.a,{className:Object(G.a)(n.contentWrapper,"modal-body user-page"),children:Object(g.jsxs)("div",{className:"content nopadding",children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b}),c("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:c("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:n.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:x.startDate,onChange:e=>{isNaN(e.getTime())||x.startDate.getTime()!==e.getTime()&&N(Object(d.a)(Object(d.a)({},x),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:n.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:x.endDate,onChange:e=>{isNaN(e.getTime())||x.endDate.getTime()!==e.getTime()&&N(Object(d.a)(Object(d.a)({},x),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:c("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)("table-scroll","flex-grow overflow-x-auto"),children:u?Object(g.jsx)(K.a,{className:"h-full"}):Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:n.tr,children:[Object(g.jsx)(Ll.a,{className:Object(G.a)("left"),align:"left",padding:"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:c("PATH")})}),Object(g.jsx)(Ll.a,{className:Object(G.a)("left"),align:"left",padding:"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:c("REGIST_USER")})}),Object(g.jsx)(Ll.a,{className:Object(G.a)("table_col_date"),align:"center",padding:"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:c("REGIST_DATE")})}),Object(g.jsx)(Ll.a,{className:Object(G.a)("table_col_date"),align:"center",padding:"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:c("EXPIRE_DATE")})})]})}),Object(g.jsx)(wl.a,{children:p.slice(l*i,l*i+i).map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.path)})]})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.registered_username,"(").concat(e.registered_by,")")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.registered_at)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.expire_at)})]},t)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(b/i),color:"primary",page:l,onChange:(e,t)=>{r(t-1)}})]})})]})}Object(M.a)({title:{color:"#000000",padding:20,textAlign:"center","& .MuiTypography-h6":{fontSize:16}},content:{color:"#404040",fontSize:14,padding:"0px 20px",textAlign:"center",whiteSpace:"pre-line","& .content":{marginTop:10,width:300}},actions:{padding:20,"& button":{width:"100%"}}});const ud=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 295px)",padding:"0 20px"}})));var Od=function(e){const t=ud(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{docs:r,rowsPerPage:i,currentPage:o,totalRows:b,totalPages:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.piiDocObj})),u=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),[O,p]=s.a.useState([]),[h,_]=s.a.useState({open:!1,pid:-1}),[f,E]=s.a.useState(!1),x=s.a.useRef(null);return Object(n.useEffect)((()=>{}),[a]),Object(n.useEffect)((()=>{p(r)}),[r]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ld,{open:h.open,pid:h.pid,fnHandleClose:()=>{_({open:!1,pid:-1})},fnHandleOk:()=>{_({open:!1,pid:-1}),Object(rn.U)({page:o,startDate:bt.a.getDateString(e.searchObj.startDate),endDate:bt.a.getDateString(e.searchObj.endDate),searchName:e.searchObj.searchName})}}),Object(g.jsx)(jd,{open:f,fnHandleClose:()=>{E(!1)}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b}),l("CNT")]}),(u.pii_detect_access_control,Object(g.jsx)(g.Fragment,{}))]}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(rn.ab)({show:!0}));const t=await Object(rn.t)(j),n=[l("PID"),l("DOCUMENT"),l("PII_NAME"),l("PII_ELEMENT"),l("REGIST_DATE"),l("\uc624\ud0d0\uc0ac\uc720"),l("\uc694\uccad\uc77c")],s=[],c=[{wpx:50},{wpx:450},{wpx:150},{wpx:150},{wpx:120},{wpx:300},{wpx:120}];t.forEach((e=>{s.push({pid:e.pid,disp_path:e.disp_path,name:e.pii&&e.pii.map(((e,t)=>t>0?" | ".concat(e.name):e.name)),el_name:e.pii_elements.map((e=>"".concat(e.name,": ").concat(e.hits))).join(" | "),registered_at:e.registered_at,disposition_info:e.disposition_info,disposition_at:e.disposition_at})})),hl.a.excelDownload("".concat(l("\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c"),"_").concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),n,s,c)}catch(t){console.error(t)}finally{a(Object(rn.ab)({show:!1}))}})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Je.a,{title:l("\uc5c5\ub85c\ub4dc"),placement:"bottom",children:Object(g.jsxs)(I.a,{"aria-label":"upload",color:"secondary",onClick:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.click()},children:[Object(g.jsx)(ha.a,{className:"small",type:"upload",fill:"#333d4b"}),Object(g.jsx)("input",{ref:x,type:"file",accept:".xlsx,.xls,.csv",style:{display:"none"},onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];n&&((async e=>{try{const t=await hl.a.readExcelFile(e),n=[];if(t.forEach((e=>{e.PID&&""!==e["\uc624\ud0d0\uc0ac\uc720"]&&n.push({id:e.PID,reason:e["\uc624\ud0d0\uc0ac\uc720"]||""})})),0===n.length)return void a(Object(U.d)({message:l("\uc5c5\ub85c\ub4dc\ud560 \ub370\uc774\ud130\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc138\uc694.")}));await Object(rn.F)(n)&&(a(Object(U.d)({message:l("\uc5c5\ub85c\ub4dc\uac00 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.")})),p((e=>{const t=new Map(n.map((e=>[e.id,e.reason])));return e.map((e=>t.has(e.pid)?Object(d.a)(Object(d.a)({},e),{},{disposition_info:t.get(e.pid)}):e))})))}catch(t){console.error(t)}})(n),e.target.value="")}})]},"upload")})]})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(sd.a,{searchObj:e.searchObj,fnSearch:t=>{e.searchObj.searchName!==t&&e.fnSetSearchObj("searchName",t)}}),Object(g.jsx)(wl.a,{children:O.map((e=>Object(g.jsxs)(Al.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>{return n=e,void a(Object(rn.G)({docObj:n}));var n},children:[Object(g.jsx)(Ll.a,{className:"left",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.disp_path)})]})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",children:e.pii&&e.pii.map(((e,t)=>t>0?" | ".concat(e.name):e.name))}),Object(g.jsx)(Ll.a,{className:"left",align:"left",children:e.pii_elements.map((e=>Object(g.jsx)("p",{children:"".concat(e.name,": ").concat(e.hits)})))}),u.pii_detect_access_control?{}:Object(g.jsx)(g.Fragment,{}),Object(g.jsx)(Ll.a,{className:"left",align:"left",children:e.registered_at})]},e.pid)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(b/i),color:"primary",page:o,onChange:(t,n)=>{o!==n&&function(t,n){e.setLoading(!0),a(Object(rn.r)({page:n+1})).then((()=>e.setLoading(!1)))}(),c.current.scrollTop=0}})]})]})};var pd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/piiDocs",component:function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null),n=Object(m.b)(),[c,l]=s.a.useState({searchName:"",startDate:bt.a.getLastWeek(),endDate:new Date});function r(){n(Object(rn.U)({page:1,startDate:bt.a.getDateString(c.startDate),endDate:bt.a.getDateString(c.endDate),searchName:c.searchName})).then((()=>{t(!1)}))}return s.a.useEffect((()=>{r()}),[c]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Od,{loading:e,searchObj:c,setLoading:t,fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnDoSearch:()=>r()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};var hd=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"path",align:"left",className:"left",disablePadding:!1,label:t("DOCUMENT"),isSearch:!1,sort:!1},{id:"file_size",align:"center",className:"center file-size",disablePadding:!1,label:t("FILE_SIZE"),isSearch:!1,sort:!1},{id:"dup_path",align:"left",className:"search-cell",disablePadding:!1,label:t("DUP_FILE_PATH"),isSearch:!0,sort:!1}],[n,c]=s.a.useState({dup_path:{show:""!==e.searchObj.path,value:e.searchObj.path}}),l=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:a.map((t=>Object(g.jsx)(Ll.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:n[t.id]&&n[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>c(Object(d.a)(Object(d.a)({},n),{},{[t.id]:{show:!1,value:""}})),onMouseDown:l,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{c(Object(d.a)(Object(d.a)({},n),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(n.dup_path.value))}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{c(Object(d.a)(Object(d.a)({},n),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};Zi.f.register(Zi.e,Zi.l,Zi.c,Zi.r,Zi.s,Zi.i,Qi.a);const md=Object(M.a)((e=>({contentWrapper:{height:"calc(100vh - 365px)",padding:"0 20px"}})));var _d=function(e){const t=md(),a=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),{docs:l,rowsPerPage:r,currentPage:i,totalRows:o,total_pages:b,totalSize:j,oriSize:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.dupDocObj})),O=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.dashboardObj})),p=s.a.useRef(),[h,_]=s.a.useState({}),[f,E]=s.a.useState(!0),[x,N]=s.a.useState({path:""});function S(){E(!0),a(Object(rn.T)({page:1,path:x.path})).then((()=>{E(!1)}))}s.a.useEffect((()=>{S()}),[x]);const[T,v]=s.a.useState({used:0,free:0}),[R,y]=s.a.useState({labels:[""],datasets:[{label:"\uc808\uc57d \uc0ac\uc6a9\ub7c9",backgroundColor:"lightpink",data:[0]},{label:"\uc911\ubcf5\ubb38\uc11c \uc0ac\uc6a9\ub7c9",backgroundColor:"lightseagreen",data:[0],borderWidth:1},{label:"\uc804\uccb4 \uc0ac\uc6a9\ub7c9",backgroundColor:"#00cfe2",data:[0]}]}),C={indexAxis:"y",plugins:{tooltip:{enabled:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:12},bodyFont:{size:12},callbacks:{title:()=>null,label:e=>0===e.raw?"":0===e.dataIndex?"".concat(e.raw.toFixed(2),"%"):0===e.datasetIndex?bt.a.changeByteToString(j-u):"".concat(e.raw.toFixed(2),"%")}},datalabels:{align:"center",anchor:"center",clip:!1,color:"black",font:{size:11},formatter:(e,t)=>""===e||0===e?"":0===t.dataIndex?1===t.datasetIndex?bt.a.changeByteToString(u):2===t.datasetIndex?bt.a.changeByteToString(T.used-u):bt.a.changeByteToString(T.free):0===t.datasetIndex?"".concat(e.toFixed(2),"%"):bt.a.changeByteToString(T.used)}},scales:{x:{stacked:!0,display:!0,min:0,max:100,ticks:{beginAtZero:!0}},y:{beginAtZero:!0,stacked:!0}},maintainAspectRatio:!1};if(s.a.useEffect((()=>{}),[b]),Object(n.useEffect)((()=>{O.total.used&&v({used:O.total.used.size,free:O.total.free.size})}),[O]),Object(n.useEffect)((()=>{const e={};l.forEach((t=>{e[t.file_hash]={count:e[t.file_hash]&&e[t.file_hash].count?e[t.file_hash].count+1:1}})),_(e)}),[l]),Object(n.useEffect)((()=>{if(u>0){const e=T.used+T.free,t=u/e*100,a=(T.used-u)/e*100,n=T.free/e*100,s=T.used+(j-u),c=(j-u)/s*100,l=T.used/s*100;y({labels:["\ud604\uc7ac \uc0ac\uc6a9\ub7c9","\uc808\uc57d\ub7c9"],datasets:[{label:"\uc808\uc57d \uc0ac\uc6a9\ub7c9",backgroundColor:"lightpink",data:[0,c]},{label:"\uc911\ubcf5 \uc0ac\uc6a9\ub7c9",backgroundColor:"lightseagreen",data:[t,0]},{label:"\ud604\uc7ac \uc0ac\uc6a9\ub7c9",backgroundColor:"#00cfe2",data:[a,l]},{label:"\ub0a8\uc740 \uc0ac\uc6a9\ub7c9",backgroundColor:"#8b95a1",data:[n,0]}]})}}),[j,u]),f)return Object(g.jsx)(K.a,{});const A=Object(er.a)((e=>({root:{"&.bg":{backgroundColor:"#eaf4fd"}}})))(Al.a);let L="";return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsx)("div",{className:"content",style:{width:"100%",height:"150px",padding:"0 20px"},children:Object(g.jsx)($i.a,{data:R,options:C})}),Object(g.jsxs)("div",{className:"table-search-wrapper",style:{paddingTop:0},children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:o}),c("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:c("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>S(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:p,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(hd,{searchObj:x,fnSearch:e=>{x.path!==e&&N(Object(d.a)(Object(d.a)({},x),{},{path:e}))}}),Object(g.jsx)(wl.a,{children:l.map(((e,t)=>{const n=e.file_hash===L;return L=e.file_hash,Object(g.jsxs)(A,{className:n?"":"row-span",role:"checkbox",tabIndex:-1,onClick:t=>{return n=e,void a(Object(rn.G)({docObj:n}));var n},children:[n?"":Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",rowSpan:h[e.file_hash]?h[e.file_hash].count:0,children:bt.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",rowSpan:h[e.file_hash]?h[e.file_hash].count:0,style:{fontSize:11},children:bt.a.changeByteToString(e.file_size)})]}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.disp_path)})]})})]},e.fid)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(o/r),color:"primary",page:i,onChange:(e,t)=>{i!==t&&function(e){E(!0),a(Object(rn.l)({page:e+1})).then((()=>E(!1)))}(t-1)}})]})})};var fd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dupDocs",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(_d,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const gd=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),Ed=Object(M.a)({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:40},"&>.content>.row:first-child":{marginTop:0},"&>.content>.MuiTypography-root":{color:"#404040"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172},"& .MuiButton-root:first-child":{marginRight:16}},insertForm:{display:"flex","&>div":{display:"flex",alignItems:"center"},"&>div:first-child":{width:"100%"},"&>div:first-child input.MuiOutlinedInput-input":{padding:"5.7px 10px"},"&>div.button-group":{paddingRight:20},"&>div.button-group>button":{width:106,height:28,marginLeft:10}}});function xd(e){const t=Object(m.b)(),a=Ed(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState([]),[r,i]=s.a.useState("");s.a.useEffect((()=>{e.open&&o()}),[e.open]);const o=async()=>{const e=await Object(on.z)();console.log(e),l(e.split(","))};return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{open:e.open,TransitionComponent:gd,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsx)($c.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("OSR_ORG_TITLE")})}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:!1,children:n("OSR_ORG_CODE")}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:n("REMOVE")})]})}),Object(g.jsxs)(wl.a,{children:[c.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:e}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:n("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:t=>{t.stopPropagation(),l(c.filter((t=>t!==e)))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t))),Object(g.jsxs)(Al.a,{className:"cursor-pointer",children:[Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:a.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(Ht.a,{className:"",placeholder:n("OSR_ORG_CODE"),type:"text",name:"osr_org_code",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,value:r,onChange:e=>i(e.target.value)})}),Object(g.jsx)("div",{className:"button-group",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",onClick:e=>{var a;a=r,c.find((e=>a===e))?t(Object(U.c)({message:n("OSR_ERROR_MESSAGE_6")})):(l([...c,a]),i(""))},children:n("ADD")})})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"right"})]})]})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"btn-send",type:"button",onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("OSR_ORG_TITLE"),content:n("OSR_CONFIRM_MESSAGE_3"),fnHandleOK:()=>(async()=>{let e="";c.forEach(((t,a)=>{e+=a>0?",".concat(t):t})),(await Object(on.Y)(e)).result&&t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})).then((()=>{o()}))})()})}))},children:n("APPLY")})]})]})})]})})}const Nd=["children","classes","onClose"],Sd=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Nd);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Td=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:1200,background:"#f2f3f5","&>div":{padding:"10px 20px"}}},contentWrapper:{height:"calc(100vh - 340px)",background:"#fff","& .add":{color:"#4472C4"},"& .move":{color:"#036e22"}},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},head:{paddingTop:"0px !important","& .search-wrapper":{width:"100%",background:"#ffffff",borderRadius:18,padding:"15px 30px",display:"flex",justifyContent:"center",flexDirection:"column","&>div":{width:"100%",display:"flex",justifyContent:"center","&>button":{marginLeft:10}},"&>div:first-child":{marginBottom:10}}},body:{paddingTop:"10px !important","& .result-list":{fontSize:14,boxShadow:"none",marginTop:"5px",padding:"15px 0",background:"#fff",borderRadius:18,"& .org-tree-root":{paddingTop:10},"& .cell-check":{width:60},"& .MuiTableBody-root":{background:"#ffffff"},"& .cell-name":{"&>div":{display:"flex",alignItems:"center"},"&>.etc":{position:"absolute",right:0,top:2}},"& .MuiIconButton-label":{width:10,height:10},"& .obj-name>span":{marginLeft:12}}}})));function vd(e){const t=Td(),a=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),{orgsChildren:l,orgFolders:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[i,o]=s.a.useState(""),[b,j]=s.a.useState({}),[u,O]=s.a.useState(new Set);s.a.useEffect((()=>{e.open?(l.children&&0===l.children.length&&a(Object(ln.f)()),E("")):(o(""),h())}),[e.open]),s.a.useEffect((()=>{h()}),[l]),s.a.useEffect((()=>(E(i),()=>{E.cancel()})),[i]);const p=new Set;function h(){let t=[...Array.isArray(null===l||void 0===l?void 0:l.children)?l.children.filter((e=>e.org_type===qc.ab)):[]];Object.entries(e.newObj).forEach((e=>{let[a,{path:n}]=e;const s=n.substring(0,n.lastIndexOf("/")),c=n.substring(n.lastIndexOf("/")+1),l={fid:Number(a),name:c,allow_takeout:!0,disp_path:n,org_type:1,osr_type:0},r=_(t,s,l);r===t?(p.add(l.fid),t=[...t,Object(d.a)({},l)]):t=r})),Object.entries(e.moveObj).forEach((e=>{let[a,{path:n,newPath:s}]=e;t=f(t,n);const c=s.substring(0,s.lastIndexOf("/")),l=s.substring(s.lastIndexOf("/")+1),r={fid:Number(a),name:l,allow_takeout:!0,disp_path:s,org_type:1,osr_type:1,before_path:n},i=_(t,c,r);i===t?(p.add(r.fid),t=[...t,Object(d.a)({},r)]):t=i})),console.log(t),j(t),O(p)}function _(e,t,a){let n=!1;const s=e.map((e=>{if(e.disp_path===t){n=!0;const t=e.children?[...e.children,a]:[a];return p.add(e.fid),Object(d.a)(Object(d.a)({},e),{},{toggled:!0,children:t})}if(e.children){const s=_(e.children,t,a);if(s!==e.children)return n=!0,p.add(e.fid),Object(d.a)(Object(d.a)({},e),{},{toggled:!0,children:s})}return e}));return n?s:e}function f(e,t){let a=!1;const n=e.map((e=>{if(e.children){const n=f(e.children,t);if(n!==e.children)return a=!0,Object(d.a)(Object(d.a)({},e),{},{children:n})}return e})).filter((e=>e.disp_path!==t||(a=!0,!1)));return a?n:e}const E=Object(n.useCallback)(Object(ul.debounce)((e=>{const t=[],a={};e.length>0?(r.forEach((n=>{n.name.toLowerCase().includes(e.toLowerCase())&&(t.push(n),a[n.fid]=!1)})),j({children:t})):h()}),1e3));return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Sd,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("\uc778\uc0ac\uc5f0\ub3d9 \ubbf8\ub9ac\ubcf4\uae30")}),Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsx)("div",{children:Object(g.jsxs)("div",{className:"result-list",children:[Object(g.jsxs)("div",{className:"osr-info-wrapper second",style:{justifyContent:"flex-end"},children:[Object(g.jsxs)("div",{className:"action-capsule add",children:[c("ADD")," ",Object(g.jsx)("span",{className:"count-badge",children:Object.keys(e.newObj).length})]}),Object(g.jsxs)("div",{className:"action-capsule move",children:[c("CHANGE")," ",Object(g.jsx)("span",{className:"count-badge",children:Object.keys(e.moveObj).length})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsx)(ar.a,{className:"full",useExpand:!0,expandedFids:u,setExpandedFids:O,orgs:b})})]})})}),Object(g.jsx)(gl.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsx)("p",{children:c("OSR_CONFIRM_MESSAGE_1")})}),Object(g.jsxs)("div",{children:[Object(g.jsx)(Hc.a,{className:"default",onClick:()=>e.fnHandleClose(),children:c("NO")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>e.fnHandleOk(),children:c("YES")})]})]})})]})})}const Rd=["children","value","index"],yd=Object(M.a)((e=>({list:{padding:0,"& .MuiListItem-root":{cursor:"default",borderBottom:"1px dotted rgb(139 149 161 / 24%)"},"& .MuiListItemText-root":{cursor:"default"}},rowTitle:{height:50,background:"#353b48",borderBottom:"1px solid #8b95a1",color:"#ffffff",paddingLeft:25,"& .MuiCheckbox-root":{color:"#ffffff"}},row:{height:44,color:"#000000",paddingLeft:25,"& .MuiTextField-root":{background:"#ffffff"},"& .MuiTypography-body2":{fontSize:13,fontFamily:"S-CoreDream-Regu"}},addIcon:{top:"25px"},deleteIcon:{color:"#ff6565"},col_max_w_100:{"max-width":"100px"},contentWrapper:{height:"calc(100vh - 296px)",overflowY:"auto"},tr:{height:"53px"},actionsWrapper:{padding:"16px 24px 24px"},btnGroup:{display:"flex",width:"300px"},tabHeader:{width:"100%",display:"flex",alignItems:"center","& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:50,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}},tabContent:{boxShadow:"none",marginTop:"-3px"},tabPanel:{width:"100%","& .MuiPaper-root":{boxShadow:"none"}}})));function Cd(e){const{children:t,value:a,index:n}=e,s=Object(Ws.a)(e,Rd);return Object(g.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n)},s),{},{children:a===n&&Object(g.jsx)(Ot.a,{className:"",children:t})}))}var Ad=function(e){const t=yd(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{osrObj:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system})),{users:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgFolders:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[b,j]=s.a.useState(!0),[u,O]=s.a.useState(""),[p,h]=s.a.useState(window.innerHeight),[_,f]=s.a.useState({newObj:{},moveObj:{},removeObj:{},removeUserObj:{}}),[E,x]=s.a.useState([]),[N,S]=s.a.useState([]),[T,v]=s.a.useState([]),[y,C]=s.a.useState(!1),[A,L]=s.a.useState(!1),[w,I]=s.a.useState(0),[P,D]=s.a.useState(!1),[M,k]=s.a.useState({open:!1});s.a.useEffect((()=>{c.current&&(c.current.style.height="".concat(p-296,"px")),window.addEventListener("resize",(()=>h(window.innerHeight)))}),[p]);let F=0;Object(n.useEffect)((()=>{W(),r.new_organizations.length>0?I(0):0===r.remove_organizations.length&&r.remove_users.length>0?I(2):I(1),clearTimeout(F),r.error?(j(!0),r.exists?(O(l("OSR_ERROR_MESSAGE_4")),F=setTimeout((()=>{a(Object(on.A)()).then((()=>{j(!1),k(Object(d.a)(Object(d.a)({},M),{},{open:!1}))}))}),1500)):O(l("OSR_ERROR_MESSAGE_5"))):(j(!1),O(""))}),[r]);const W=()=>{const e={},t={},a={};r.new_organizations.forEach((t=>{e[t.id]={path:t.path}})),r.remove_organizations.forEach((e=>{t[e.path]={id:0,path:""}})),r.remove_users.forEach((e=>{e.supervisor_id?a[e.user_id]={handover_user_id:e.supervisor_id,handover_user_name:e.supervisor_name}:a[e.user_id]={}})),f({newObj:e,moveObj:{},removeObj:t,removeUserObj:a}),v(r.remove_organizations)};function H(e){j(!0),O(e),a(Object(cn.h)()).then((()=>{a(Object(ln.f)()).then((()=>{a(Object(on.A)()).then((()=>{j(!1)}))}))}))}if(Object(n.useEffect)((()=>{}),[_]),Object(n.useEffect)((()=>{x([...i].sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1)))}),[i]),Object(n.useEffect)((()=>{S([...o].sort(((e,t)=>e.path>t.path?1:e.path===t.path?0:-1)))}),[o]),Object(n.useEffect)((()=>(H(""),()=>{clearTimeout(F)})),[a]),b)return Object(g.jsx)(K.a,{msg:u});function z(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(xd,{open:P,fnHandleClose:()=>D(!1)}),Object(g.jsx)(vd,{open:M.open,newObj:_.newObj,moveObj:_.moveObj,removeObj:_.removeObj,fnHandleClose:()=>k(Object(d.a)(Object(d.a)({},M),{},{open:!1})),fnHandleOk:()=>{Object(on.T)(_.newObj,_.moveObj,[],[]).then((e=>{a(Object(U.d)({message:l("OSR_ERROR_MESSAGE_4")})),H(l("OSR_ERROR_MESSAGE_4"))})).catch((e=>{a(Object(U.c)({message:l("OSR_ERROR_MESSAGE_5")}))}))}}),Object(g.jsxs)("div",{className:t.tabHeader,children:[Object(g.jsxs)(kl.a,{value:w,onChange:(e,t)=>0!==t&&r.new_organizations.length>0?(a(Object(U.c)({message:l("OSR_ERROR_MESSAGE_1")})),!1):(w!==t&&(W(),I(t)),!0),indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_ADD_ORG"),"(").concat(r.new_organizations.length,")")},z(0))),Object(g.jsx)(Gl.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_REMOVE_ORG"),"(").concat(r.remove_organizations.length,")")},z(1))),Object(g.jsx)(Gl.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_REMOVE_USER"),"(").concat(r.remove_users.length,")")},z(2)))]}),Object(g.jsx)(Hc.a,{onClick:e=>{D(!0)},className:"default",style:{position:"absolute",right:0,width:"fit-content",height:"35px",marginBottom:"5px",fontSize:"12px"},children:l("OSR_ORG_TITLE")})]}),Object(g.jsxs)("div",{className:t.tabContent,children:[Object(g.jsx)(Cd,{className:t.tabPanel,value:w,index:0,children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"osr-info-wrapper",children:[Object(g.jsx)("div",{className:"title",children:l("OSR_ADD_ORG")}),Object(g.jsx)("div",{className:"hint-span",children:l("OSR_HINT_MESSAGE_1")}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Hc.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"proc-confirm",type:"button",onClick:e=>{k(Object(d.a)(Object(d.a)({},M),{},{open:!0}))},children:l("APPLY")})]})]}),Object(g.jsxs)("div",{className:"osr-info-wrapper second",children:[Object(g.jsxs)("div",{className:"action-capsule add",children:[l("ADD")," ",Object(g.jsx)("span",{className:"count-badge",children:Object.keys(_.newObj).length})]}),Object(g.jsxs)("div",{className:"action-capsule move",children:[l("CHANGE")," ",Object(g.jsx)("span",{className:"count-badge",children:Object.keys(_.moveObj).length})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(it.a,{className:Object(G.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsxs)(ot.a,{className:t.rowTitle,children:[Object(g.jsx)(dt.a,{className:"w-1/2",primary:l("\ubcc0\uacbd \ud6c4 \uc870\uc9c1\uba85")}),Object(g.jsx)(dt.a,{className:"w-1/2",primary:l("\ubcc0\uacbd \uc804 \uc870\uc9c1\uba85")})]}),r.new_organizations.map(((e,a)=>{const n="transfer-list-all-item-".concat(a,"-label");let s=!1;const c=Object.keys(_.moveObj);for(let t=0;t{if("-"===t.target.value){const t=_.moveObj;delete t[e.id],f(Object(d.a)(Object(d.a)({},_),{},{newObj:Object(d.a)(Object(d.a)({},_.newObj),{},{[e.id]:{path:e.path}}),moveObj:t}))}else{const a=Object(d.a)({},_.removeObj),n={[e.id]:{path:t.target.value,newPath:e.path}};Object.keys(_.moveObj).forEach((t=>{_.moveObj[t].newPath.indexOf(e.path)<0&&(n[t]={path:_.moveObj[t].path,newPath:_.moveObj[t].newPath})})),Object.keys(a).forEach((e=>{0===e.indexOf(t.target.value)&&(a[e]={path:"",id:0})}));const s={},c=Object.keys(n);r.new_organizations.forEach((e=>{let t=!1;for(let a=0;a{const a=Object.keys(_.moveObj);let n=!1;for(let s=0;s{if("osr_removeorg_0"===t&&(W(),C(!1)),"osr_removeorg_1"===t&&(C(!0),W()),"osr_removeorg_2"===t){const e={};r.remove_organizations.forEach((t=>{e[t.path]={path:"#DELETE#",id:1}})),C(!1),f(Object(d.a)(Object(d.a)({},_),{},{removeObj:e}))}},children:[Object(g.jsx)(J.a,{value:"osr_removeorg_0",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_1")}),Object(g.jsx)(J.a,{value:"osr_removeorg_1",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_2")}),Object(g.jsx)(J.a,{value:"osr_removeorg_2",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_3")})]})})}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Hc.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("OSR"),content:l("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(on.T)(_.newObj,_.moveObj,_.removeObj,_.removeUserObj).then((e=>{a(Object(U.d)({message:l("OSR_ERROR_MESSAGE_4")})),H(l("OSR_ERROR_MESSAGE_4"))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("OSR_ERROR_MESSAGE_5")}))}))}})}))},children:l("APPLY")})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(it.a,{className:Object(G.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsx)(ot.a,{className:t.rowTitle,children:"\uc870\uc9c1\uba85"}),r.remove_organizations.map(((e,n)=>{const s="transfer-list-all-item-".concat(n,"-label");let c=!1;const i=Object.keys(_.moveObj);for(let t=0;t{if("-"===t.target.value){if(_.removeObj[bt.a.splitPreDelimiter(e.path)]&&""!==_.removeObj[bt.a.splitPreDelimiter(e.path)].path)return a(Object(U.c)({message:l("OSR_ERROR_MESSAGE_2")})),!1;f(Object(d.a)(Object(d.a)({},_),{},{removeObj:Object(d.a)(Object(d.a)({},_.removeObj),{},{[e.path]:{path:"",id:0}})}))}else{const{removeObj:a,moveObj:n}=_,s=Object.keys(n);Object.keys(a).forEach((n=>{(0===n.indexOf(e.path)||y)&&(a[n]={path:t.target.value,id:1})}));for(let t=0;t{let t=!1;for(let a=0;a_.removeObj[e.disp_path]?"":Object(g.jsx)(Q.a,{value:"".concat(e.disp_path),children:e.disp_path})))]})]},n)})),Object(g.jsx)(ot.a,{})]})})]})}),Object(g.jsx)(Cd,{className:t.tabPanel,value:w,index:2,children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"osr-info-wrapper",children:[Object(g.jsx)("div",{className:"title",children:l("OSR_REMOVE_USER")}),Object(g.jsx)("div",{className:"hint-span",children:l("OSR_HINT_MESSAGE_3")}),Object(g.jsx)("div",{className:"radio-group",children:Object(g.jsx)("span",{className:"inline-block",children:Object(g.jsxs)(ee.a,{row:!0,"aria-labelledby":"demo-form-control",name:"osr_removeuser",defaultValue:"osr_removeuser_0",onChange:(e,t)=>{if("osr_removeuser_0"===t&&(W(),L(!1)),"osr_removeuser_1"===t&&(L(!0),W()),"osr_removeuser_2"===t){const e={};r.remove_users.forEach((t=>{e[t.user_id]={handover_user_id:"#DELETE#",handover_user_name:"#DELETE#",searchVal:"#DELETE#[#DELETE#]"}})),L(!1),f(Object(d.a)(Object(d.a)({},_),{},{removeUserObj:e}))}},children:[Object(g.jsx)(J.a,{value:"osr_removeuser_0",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_1")}),Object(g.jsx)(J.a,{value:"osr_removeuser_1",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_4")}),Object(g.jsx)(J.a,{value:"osr_removeuser_2",control:Object(g.jsx)($.a,{size:"small",color:"primary"}),label:l("OSR_BTN_3")})]})})}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Hc.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("OSR"),content:l("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(on.T)(_.newObj,_.moveObj,_.removeObj,_.removeUserObj).then((e=>{a(Object(U.d)({message:l("OSR_ERROR_MESSAGE_4")})),H(l("OSR_ERROR_MESSAGE_4"))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("OSR_ERROR_MESSAGE_5")}))}))}})}))},children:l("APPLY")})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(it.a,{className:Object(G.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsx)(ot.a,{className:t.rowTitle,children:"\uc0ac\uc6a9\uc790"}),r.remove_users.map(((e,a)=>{const n="transfer-list-all-item-".concat(a,"-label");return Object(g.jsxs)(ot.a,{className:t.row,role:"listitem",button:!0,onClick:e=>{},children:[Object(g.jsx)(dt.a,{id:n,className:"w-1/2",primary:"".concat(e.name,"[").concat(e.user_id,"]")}),Object(g.jsxs)(Ht.a,{select:!0,className:"w-1/2",name:"osr_remove_user",variant:"outlined",value:_.removeUserObj[e.user_id]&&_.removeUserObj[e.user_id].handover_user_id?_.removeUserObj[e.user_id].handover_user_id:"-",fullWidth:!0,onChange:t=>{if("-"===t.target.value)f(Object(d.a)(Object(d.a)({},_),{},{removeUserObj:Object(d.a)(Object(d.a)({},_.removeUserObj),{},{[e.user_id]:{handover_user_id:""}})}));else if(A){const e={};r.remove_users.forEach((a=>{e[a.user_id]={handover_user_id:t.target.value,handover_user_name:t.target.value,searchVal:"".concat(t.target.value,"[").concat(t.target.value,"]")}})),f(Object(d.a)(Object(d.a)({},_),{},{removeUserObj:e}))}else f(Object(d.a)(Object(d.a)({},_),{},{removeUserObj:Object(d.a)(Object(d.a)({},_.removeUserObj),{},{[e.user_id]:{handover_user_id:t.target.value}})}))},children:[Object(g.jsx)(Q.a,{value:"-",children:l("OSR_NO_CHANGE")}),Object(g.jsx)(Q.a,{value:"#DELETE#",children:l("CLEARANCE")}),E.map((t=>t.user_id===e.user_id||_.removeUserObj[t.user_id]?"":Object(g.jsxs)(Q.a,{value:"".concat(t.user_id),children:[t.name,"[",t.user_id,"]"]})))]})]},a)})),Object(g.jsx)(ot.a,{})]})})]})})]})]})};var Ld={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/osr",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Ad,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const wd=Object(M.a)((e=>({tr:{"& .delete":{width:100},"& .approve":{width:100},"& .process_type":{width:140}}})));var Id=function(e){const t=wd(),{t:a}=Object(jt.a)("docbase"),n=[{id:"name",align:"left",className:"left",disablePadding:!1,label:a("NAME"),sort:!0},{id:"program_name",align:"left",className:"left",disablePadding:!1,label:a("WHITE_PROCESS_PROGRAM_NAME"),sort:!0},{id:"verify_type",align:"left",className:"left",disablePadding:!1,label:a("WHITE_PROCESS_VERIFY_TYPE"),sort:!0},{id:"process_type",align:"left",className:"left process_type",disablePadding:!1,label:a("WHITE_PROCESS_TYPE"),sort:!0},{id:"approved",align:"center",className:"approve",disablePadding:!1,label:a("TAKEOUT_APPROVED"),sort:!0},{id:"registered_at",align:"center",className:"table_col_date",disablePadding:!1,label:a("REGIST_DATE"),sort:!0},{id:"process_delete",align:"center",className:"delete",disablePadding:!1,label:a("DELETE"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((t=>{return Object(g.jsx)(Ll.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:t.sort?Object(g.jsx)(Bl.a,{active:e.order.id===t.id,direction:e.order.direction,onClick:(a=t.id,t=>{e.handleRequestSort(t,a)}),children:t.label}):t.label},t.id);var a}),this)})})};const Pd=Object(M.a)((e=>({tr:{"& .delete":{width:100}}})));var Dd=function(e){const t=Pd(),{t:a}=Object(jt.a)("docbase"),n=[{id:"name",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_NAME"),sort:!0},{id:"set_type",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_SET_TYPE"),sort:!0},{id:"url",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_URL"),sort:!0},{id:"process_delete",align:"center",className:"delete",disablePadding:!1,label:a("DELETE"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((t=>{return Object(g.jsx)(Ll.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:t.sort?Object(g.jsx)(Bl.a,{active:e.order.id===t.id,direction:e.order.direction,onClick:(a=t.id,t=>{e.handleRequestSort(t,a)}),children:t.label}):t.label},t.id);var a}),this)})})};const Md=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function kd(e){const{t:t}=Object(jt.a)("docbase"),a=Md(),n=Object(m.b)(),[c,l]=s.a.useState(""),[r,i]=s.a.useState(""),[o,d]=s.a.useState("regex");return s.a.useEffect((()=>{l(""),i(""),d("regex")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",children:t("WHITE_URL_MODAL_1")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(tl.a,{className:"text-1",id:"alert-dialog-slide-description",children:t("WHITE_URL_MODAL_2")}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("WHITE_URL_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("WHITE_URL_NAME_PLACEHOLDER"),name:"name",fullWidth:!0,value:c,variant:"outlined",onChange:e=>l(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("WHITE_URL_SET_TYPE")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",name:"type",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small",children:[Object(g.jsx)(Q.a,{value:"regex",children:t("WHITE_URL_REGEX")}),Object(g.jsx)(Q.a,{value:"plain",children:t("WHITE_URL_PLAIN")})]})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("WHITE_URL_URL")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("WHITE_URL_URL_PLACEHOLDER"),name:"url",fullWidth:!0,value:r,variant:"outlined",onChange:e=>i(e.target.value),size:"small"})})]}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:t("WHITE_PROCESS_MESSAGE_4")}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>0===c.trim().length?(n(Object(U.c)({message:t("WHITE_PROCESS_ERROR_MESSAGE_3")})),!1):0===r.trim().length?(n(Object(U.c)({message:t("WHITE_PROCESS_ERROR_MESSAGE_4")})),!1):(e.fnHandleChange(c,o,r),!0),children:t("REGISTER")})]})]})})]})})}const Gd=Object(M.a)((e=>({addIcon:{top:"25px"},deleteIcon:{color:"#ff6565"},tabsBar:{height:50,color:"#192141",background:"none",boxShadow:"none","& .MuiTab-root":{padding:0,minWidth:136,fontSize:16},"& .MuiTab-textColorInherit":{opacity:1},"& .MuiTab-textColorInherit.Mui-selected":{color:"#00cfe2",background:"#fff",borderRadius:"6px 6px 0 0"}},contentWrapper:{height:"calc(100vh - 280px)",padding:"0 20px"},tr:{height:"53px"}}))),Ud=s.a.memo((e=>{let{dispatch:t,t:a,tabValue:n,data:s,order:c,handleRowClick:l,doApprove:r,deleteConfirm:i,deleteWhiteURLConfirm:o,handleRequestSort:d}=e,b=Object(g.jsx)(yl.a,{});return b=0===n?Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Id,{order:c,handleRequestSort:(e,t)=>d(e,t)}),Object(g.jsx)(wl.a,{children:s.map((e=>{let n="";return 1===e.process_type?n=a("WHITE_PROGRAM"):2===e.process_type?n=a("WHITE_SYSTEM_PROCESS"):3===e.process_type?n=a("WHITE_CHROME_BROWSER"):4===e.process_type&&(n=a("WHITE_RANSOMWARE")),Object(g.jsxs)(Al.a,{className:Object(G.a)("cursor-default"),hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>l(e),children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.program_name}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:1===e.verify_type?a("WHITE_PROCESS_VERIFY_HASH"):a("WHITE_PROCESS_VERIFY_DIGITAL")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:e.approved?Object(g.jsx)(g.Fragment,{children:e.approved?a("TAKEOUT_APPROVED"):a("TAKEOUT_REJECTED")}):Object(g.jsxs)("div",{children:[Object(g.jsx)(Je.a,{title:a("TAKEOUT_APPROVED"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("PROCESS_APPROVE_TITLE"),content:a("PROCESS_APPROVE_CONTENT").replace("%s",a("TAKEOUT_APPROVED")),fnHandleOK:()=>{r(e.id,!0)}})}))},children:Object(g.jsx)(ha.a,{type:"stamper",className:"",fill:"#575757"})})}),Object(g.jsx)(Je.a,{title:a("TAKEOUT_REJECTED"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("PROCESS_APPROVE_TITLE"),content:a("PROCESS_APPROVE_CONTENT").replace("%s",a("TAKEOUT_REJECTED")),fnHandleOK:()=>{r(e.id,!1)}})}))},children:Object(g.jsx)(ha.a,{type:"reject",className:"",fill:"#575757"})})})]})}),Object(g.jsx)(Ll.a,{className:"relative",align:"center",component:"td",scope:"row",children:e.registered_at?bt.a.getDateTimeString(e.registered_at):""}),Object(g.jsx)(Ll.a,{className:" ",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("PROCESS_DELETE_TITLE"),content:a("PROCESS_DELETE_CONTENT").replace("%s",e.name),fnHandleOK:()=>{i(n,e.name)}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)}))})]}):Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Dd,{order:c,handleRequestSort:(e,t)=>d(e,t)}),Object(g.jsx)(wl.a,{children:s.map((e=>Object(g.jsxs)(Al.a,{className:"cursor-default",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>l(e),children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:"regex"===e.set_type?a("WHITE_URL_REGEX"):a("WHITE_URL_PLAIN")}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.url}),Object(g.jsx)(Ll.a,{className:" ",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("URL_DELETE_TITLE"),content:a("URL_DELETE_CONTENT").replace("%s",e.url),fnHandleOK:()=>{o(n,e.name)}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)))})]}),b}));var Fd=function(e){const t=Gd(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerWidth),{t:i}=Object(jt.a)("docbase"),{whiteProcessList:o,whiteURLList:d}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[b,j]=s.a.useState([]),[u,O]=s.a.useState(""),[p,h]=s.a.useState({id:"name",direction:"desc"}),[_,f]=s.a.useState(0),[E,x]=s.a.useState(!1);Object(n.useEffect)((()=>{window.addEventListener("resize",(()=>r(window.innerWidth)))}),[l]),Object(n.useEffect)((()=>{e.setLoading(!0),a(Object(rn.D)()).then((()=>{a(Object(rn.E)()),e.setLoading(!1)}))}),[a]),Object(n.useEffect)((()=>{(0===_&&o.length>0||1===_&&d.length>0)&&N(u)}),[u]),Object(n.useEffect)((()=>{(0===_&&o.length>0||1===_&&d.length>0)&&S(u)}),[_,o,d,p]);const N=Object(n.useCallback)(Object(ul.debounce)((e=>{S(e)}),500),[o,d,p,_]),S=t=>{if(e.setLoading(!0),0===_){const e=Ol.a.orderBy(o.filter((e=>e.name.toLowerCase().includes(t.toLowerCase()))),[p.id],[p.direction]);j(e)}else if(1===_){const e=Ol.a.orderBy(d.filter((e=>e.url.toLowerCase().includes(t.toLowerCase()))),[p.id],[p.direction]);j(e)}else j([]);e.setLoading(!1)};return e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(kd,{open:E,fnHandleClose:()=>{x(!1)},fnHandleChange:(e,t,n)=>{Object(rn.M)(e,t,n).then((e=>{a(Object(rn.E)()),a(Object(U.d)({message:i("WHITE_PROCESS_MESSAGE_3")})),x(!1)})).catch((e=>{a(Object(U.c)({message:i("WHITE_PROCESS_ERROR_MESSAGE_5")}))}))}}),Object(g.jsx)(Vt.a,{style:{marginBottom:10},children:Object(g.jsxs)("div",{className:"searchWrapper",children:[Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:i("SEARCH")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:u,placeholder:i("\uc774\ub984/\ud504\ub85c\uadf8\ub7a8 \uba85"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:u&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>O(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>O(e.target.value)})})}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsxs)("div",{className:"inputItem",children:[Object(g.jsx)(Je.a,{title:i("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{e.setLoading(!0),(async()=>{const t=Date.now();let a=[];const n=[];0===_?a=[i("NAME"),i("WHITE_PROCESS_PROGRAM_NAME"),i("WHITE_PROCESS_VERIFY_TYPE"),i("WHITE_PROCESS_TYPE"),i("TAKEOUT_APPROVED"),i("REGIST_DATE")]:1===_&&(a=[i("NAME"),i("WHITE_URL_TYPE"),i("URL")]);for(const e of b){const t={},a=0===_?[{id:"name"},{id:"program_name"},{id:"verify_type"},{id:"process_type"},{id:"approved"},{id:"registered_at"}]:[{id:"name"},{id:"set_type"},{id:"url"}];for(const n of a)"process_type"===n.id?1===e[n.id].process_type?t[n.id]=i("WHITE_PROGRAM"):2===e[n.id].process_type?t[n.id]=i("WHITE_SYSTEM_PROCESS"):3===e[n.id].process_type?t[n.id]=i("WHITE_CHROME_BROWSER"):4===e[n.id].process_type&&(t[n.id]=i("WHITE_RANSOMWARE")):"verify_type"===n.id?1===e[n.id].verify_type?t[n.id]=i("WHITE_PROCESS_VERIFY_HASH"):t[n.id]=i("WHITE_PROCESS_VERIFY_DIGITAL"):t[n.id]=e[n.id];n.push(t)}const s=i("WHITE_PROGRAM");await hl.a.excelDownload("".concat(s),a,n,null,t),e.setLoading(!1)})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.setLoading(!0),a(Object(rn.D)()).then((()=>{e.setLoading(!1)}))},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})]})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",style:{marginTop:20},children:[Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:null===b||void 0===b?void 0:b.length}),i("CNT")]})}),Object(g.jsx)("div",{className:"btnGroup",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{x(!0)},children:i("URL_REGISTRATION")})})]})]})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:_,onChange:(e,t)=>{f(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:i("PROCESS")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:i("URL")})]})}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(Ud,{dispatch:a,t:i,tabValue:_,data:b,order:p,handleRowClick:e=>{},doApprove:(e,t)=>function(e,t){Object(rn.c)(e,t).then((e=>{a(Object(rn.D)()),a(Object(U.d)({message:i(t?"APPROVED":"REJECTED")}))})).catch((e=>{a(Object(U.c)({message:i("FAILED")}))}))}(e,t),deleteConfirm:(e,t)=>function(e,t){e.stopPropagation(),Object(rn.fb)(t).then((e=>{a(Object(rn.D)()),a(Object(U.d)({message:i("WHITE_PROCESS_MESSAGE_1")}))})).catch((e=>{a(Object(U.c)({message:i("WHITE_PROCESS_ERROR_MESSAGE_1")}))}))}(e,t),deleteWhiteURLConfirm:(e,t)=>function(e,t){e.stopPropagation(),Object(rn.gb)(t).then((e=>{a(Object(rn.E)()),a(Object(U.d)({message:i("WHITE_PROCESS_MESSAGE_2")}))})).catch((e=>{a(Object(U.c)({message:i("WHITE_PROCESS_ERROR_MESSAGE_2")}))}))}(e,t),handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";p.id===t&&"desc"===p.direction&&(n="asc"),h({direction:n,id:a})})(0,t)})})]})]})};var Wd=function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Fd,{loading:e,setLoading:t}),innerScroll:!0,sidebarInner:!0,ref:a})};var Hd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/whiteProcesses",component:Wd},{path:"/secureProcesses",component:Wd}]};const zd=Object(M.a)((e=>({tr:{"& .col-type":{minWidth:130},"& .col-user":{minWidth:200},"& .col-new-obj":{minWidth:320},"& .col-old-obj":{minWidth:320},"& .col-extra":{minWidth:105}}})));var Bd=function(e){const t=zd(),{t:a}=Object(jt.a)("docbase"),n=[{id:"type",align:"left",className:"left col-type",disablePadding:!1,label:a("DIVISION"),isSearch:!1,sort:!1},{id:"user",align:"left",className:"search-cell col-user",disablePadding:!1,label:a("USER"),isSearch:!0,sort:!1},{id:"object",align:"left",className:"search-cell col-new-obj",disablePadding:!1,label:a("CHANGED_INFO"),isSearch:!0,sort:!1},{id:"extra",align:"left",className:"left col-extra",disablePadding:!1,label:a("MORE_INFO"),isSearch:!1,sort:!1},{id:"date",align:"center",className:"table_col_date",disablePadding:!1,label:a("DATE"),isSearch:!1,sort:!1}],[c,l]=s.a.useState({object:{show:""!==e.searchObj.object,value:e.searchObj.object},user:{show:""!==e.searchObj.user,value:e.searchObj.user}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((t=>Object(g.jsx)(Ll.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:c[t.id]&&c[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:r,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(c.object.value,c.user.value))}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const Kd=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"}})));var Yd=function(e){const t=Kd(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{sysConfigure:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{logs:i,rowsPerPage:o,currentPage:d,totalRows:b,totalPages:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.auditLogObj})),[u,O]=s.a.useState([{type:0,cons:"AUDIT_TYPE_ALL"},{type:1,cons:"AUDIT_TYPE_LOGGED_IN"},{type:2,cons:"AUDIT_TYPE_LOGGED_OFF"},{type:3,cons:"AUDIT_TYPE_CREATE_USER"},{type:4,cons:"AUDIT_TYPE_MODIFY_USER"},{type:5,cons:"AUDIT_TYPE_MODIFY_PASSWORD"},{type:6,cons:"AUDIT_TYPE_REMOVE_USER"},{type:8,cons:"AUDIT_TYPE_CREATE_ORGANIZATION"},{type:9,cons:"AUDIT_TYPE_RENAME_ORGANIZATION"},{type:10,cons:"AUDIT_TYPE_TRANSFER_ORGANIZATION"},{type:11,cons:"AUDIT_TYPE_MOVE_ORGANIZATION_DATA"},{type:12,cons:"AUDIT_TYPE_REMOVE_ORGANIZATION"},{type:13,cons:"AUDIT_TYPE_CREATE_SHARED_FOLDER"},{type:14,cons:"AUDIT_TYPE_RENAME_SHARED_FOLDER"},{type:15,cons:"AUDIT_TYPE_REMOVE_SHARED_FOLDER"},{type:19,cons:"AUDIT_TYPE_CREATE_ORGSHARED_FOLDER"},{type:20,cons:"AUDIT_TYPE_REMOVE_ORGSHARED_FOLDER"},{type:21,cons:"AUDIT_TYPE_RESET_FOLDER_PERMISSION"},{type:16,cons:"AUDIT_TYPE_ADD_FOLDER_PERMISSION"},{type:17,cons:"AUDIT_TYPE_UPDATE_FOLDER_PERMISSION"},{type:18,cons:"AUDIT_TYPE_REMOVE_FOLDER_PERMISSION"},{type:24,cons:"AUDIT_TYPE_SYSCONFIG_CHANGED"}]);return Object(n.useEffect)((()=>{2!==r.menu_support_type&&O([{type:0,cons:"AUDIT_TYPE_ALL"},{type:1,cons:"AUDIT_TYPE_LOGGED_IN"},{type:2,cons:"AUDIT_TYPE_LOGGED_OFF"},{type:3,cons:"AUDIT_TYPE_CREATE_USER"},{type:4,cons:"AUDIT_TYPE_MODIFY_USER"},{type:5,cons:"AUDIT_TYPE_MODIFY_PASSWORD"},{type:6,cons:"AUDIT_TYPE_REMOVE_USER"},{type:7,cons:"AUDIT_TYPE_CREATE_PAPER_PASSWORD"},{type:8,cons:"AUDIT_TYPE_CREATE_ORGANIZATION"},{type:9,cons:"AUDIT_TYPE_RENAME_ORGANIZATION"},{type:10,cons:"AUDIT_TYPE_TRANSFER_ORGANIZATION"},{type:11,cons:"AUDIT_TYPE_MOVE_ORGANIZATION_DATA"},{type:12,cons:"AUDIT_TYPE_REMOVE_ORGANIZATION"},{type:13,cons:"AUDIT_TYPE_CREATE_SHARED_FOLDER"},{type:14,cons:"AUDIT_TYPE_RENAME_SHARED_FOLDER"},{type:15,cons:"AUDIT_TYPE_REMOVE_SHARED_FOLDER"},{type:19,cons:"AUDIT_TYPE_CREATE_ORGSHARED_FOLDER"},{type:20,cons:"AUDIT_TYPE_REMOVE_ORGSHARED_FOLDER"},{type:21,cons:"AUDIT_TYPE_RESET_FOLDER_PERMISSION"},{type:16,cons:"AUDIT_TYPE_ADD_FOLDER_PERMISSION"},{type:17,cons:"AUDIT_TYPE_UPDATE_FOLDER_PERMISSION"},{type:18,cons:"AUDIT_TYPE_REMOVE_FOLDER_PERMISSION"},{type:22,cons:"AUDIT_TYPE_REGISTER_SECURED_PROCESS"},{type:23,cons:"AUDIT_TYPE_UNREGISTER_SECURED_PROCESS"},{type:24,cons:"AUDIT_TYPE_SYSCONFIG_CHANGED"},{type:25,cons:"AUDIT_TYPE_CREATE_SUB_USER"},{type:26,cons:"AUDIT_TYPE_UPDATE_SHATED_FOLDER"},{type:27,cons:"AUDIT_TYPE_SET_PIID_FILE"},{type:28,cons:"AUDIT_TYPE_UPDATE_PIID_FILE"},{type:29,cons:"AUDIT_TYPE_RELEASE_PIID_FILE"},{type:30,cons:"AUDIT_TYPE_SET_PIID_FILE_USER"},{type:31,cons:"AUDIT_TYPE_RELEASE_PIID_FILE_USER"},{type:32,cons:"AUDIT_TYPE_SET_EXCLUDE_PIID_FILE"},{type:33,cons:"AUDIT_TYPE_ARCHIVE_COPY"},{type:101,cons:"AUDIT_TYPE_DLP_ALLOW_CLINET_INSTALL"},{type:102,cons:"AUDIT_TYPE_DLP_REMOVE_CLIENT"},{type:103,cons:"AUDIT_TYPE_DLP_REGISTER_USER_GROUP"},{type:104,cons:"AUDIT_TYPE_DLP_REMOVE_USER_GROUP"},{type:105,cons:"AUDIT_TYPE_DLP_REGISTER_UESR_GORUP_MEMBER"},{type:106,cons:"AUDIT_TYPE_DLP_REMOVE_USER_GROUP_MEMBER"}])}),r),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("span",{className:"title",children:l("AUDIT_TYPE")}),Object(g.jsx)(Ht.a,{select:!0,className:"select",value:e.searchObj.auditType,fullWidth:!0,variant:"outlined",size:"small",onChange:t=>{e.fnSetSearchObj("auditType",t.target.value)},children:u.map((e=>!r.support_macos_dlp&&e.type>100?"":Object(g.jsx)(Q.a,{value:e.type,children:l(e.cons)})))})]}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(rn.ab)({show:!0}));const t=await Object(on.l)(j),n=[l("DIVISION"),l("USER"),l("PREVIOUS_INFO"),l("CHANGED_INFO"),l("MORE_INFO"),l("DATE")],s=[],c=[{wpx:80},{wpx:150},{wpx:300},{wpx:300},{wpx:300},{wpx:150}];t.forEach((e=>{s.push({audit_type:"korean"===r.language?e.audit_type_name_korean:e.audit_type_name,opreator:e.opreator,old_object:e.old_object,new_object:e.new_object,extra:e.extra,performed_at:bt.a.getDateStringToLocalDate(e.performed_at)})})),hl.a.excelDownload("".concat(l("AUDIT_LOG_EXCEL")).concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),n,s,c)}catch(t){console.error(t)}finally{a(Object(rn.ab)({show:!1}))}})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Bd,{searchObj:e.searchObj,rowCount:i.length,fnSearch:(t,a)=>{e.searchObj.object!==t&&e.fnSetSearchObj("object",t),e.searchObj.user!==a&&e.fnSetSearchObj("user",a)}}),Object(g.jsx)(wl.a,{children:i.map(((e,t)=>{let{extra:a}=e,n="korean"===r.language?e.audit_type_name_korean:e.audit_type_name;if(1===e.audit_type)switch(Number(a)){case qc.r:a="windows86";break;case qc.q:a="windows64";break;case qc.o:a="MAC";break;case qc.p:a="Web";break;default:a="..."}return 33===e.audit_type&&(n=l("AUDIT_TYPE_ARCHIVE_COPY"),a=""),Object(g.jsxs)(Al.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.opreator}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.new_object}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.performed_at)})]},t)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(b/o),color:"primary",page:d,onChange:(t,n)=>{d!==n&&function(t){e.setLoading(!0),a(Object(on.k)({page:t+1})).then((()=>e.setLoading(!1)))}(n-1)}})]})})};var Vd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/auditLogs",component:function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),n=s.a.useRef(null),[c,l]=s.a.useState({startDate:new Date,endDate:new Date,auditType:0,object:"",user:""});function r(){a(!0),e(Object(on.j)({page:1,auditType:c.auditType,startDate:bt.a.getDateString(c.startDate),endDate:bt.a.getDateString(c.endDate),object:c.object,user:c.user})).then((()=>{a(!1)}))}return s.a.useEffect((()=>{r()}),[c]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Yd,{loading:t,searchObj:c,setLoading:a,fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnDoSearch:()=>r()}),innerScroll:!0,sidebarInner:!0,ref:n})}}]},Xd=a(491),qd=a(492);const Jd=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"}}))),Zd=[{type:0,cons:"ALL"},{type:1,cons:"ACCESS_TYPE_CREATE"},{type:2,cons:"ACCESS_TYPE_READ"},{type:3,cons:"ACCESS_TYPE_MOVE"},{type:4,cons:"ACCESS_TYPE_UPDATE"},{type:5,cons:"ACCESS_TYPE_HOLD"},{type:6,cons:"ACCESS_TYPE_REMOVE"},{type:7,cons:"ACCESS_TYPE_REMOVE_TRASH"},{type:8,cons:"ACCESS_TYPE_RECOVERY_TRASH"},{type:9,cons:"ACCESS_TYPE_PURGE_TRASH"},{type:14,cons:"ACCESS_TYPE_START_VIEWING"},{type:10,cons:"ACCESS_TYPE_VIEWING"},{type:11,cons:"ACCESS_TYPE_WEB_CREATE"},{type:12,cons:"ACCESS_TYPE_WEB_DOWNLOAD"},{type:13,cons:"ACCESS_TYPE_COLLECT_FILE"}],Qd={0:"ALL",1:"ACCESS_TYPE_CREATE",2:"ACCESS_TYPE_READ",3:"ACCESS_TYPE_MOVE",4:"ACCESS_TYPE_UPDATE",5:"ACCESS_TYPE_HOLD",6:"ACCESS_TYPE_REMOVE",7:"ACCESS_TYPE_REMOVE_TRASH",8:"ACCESS_TYPE_RECOVERY_TRASH",9:"ACCESS_TYPE_PURGE_TRASH",10:"ACCESS_TYPE_VIEWING",11:"ACCESS_TYPE_WEB_CREATE",12:"ACCESS_TYPE_WEB_DOWNLOAD",13:"ACCESS_TYPE_COLLECT_FILE",14:"ACCESS_TYPE_START_VIEWING"};var $d=function(e){const t=Jd(),{t:a}=(Object(m.b)(),Object(jt.a)("docbase")),{logs:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.accessLogObj})),[l,r]=s.a.useState({id:"user_id",direction:"asc"}),[i,o]=s.a.useState(100),[b,j]=s.a.useState(0),[u,O]=s.a.useState(!1),[p,h]=s.a.useState(""),[_,f]=s.a.useState(""),[E,x]=s.a.useState(c),[N,S]=s.a.useState(Object(d.a)(Object(d.a)({},e.searchObj),{},{destPath:""}));return Object(n.useEffect)((()=>{S((t=>Object(d.a)(Object(d.a)({},t),e.searchObj)))}),[e.searchObj]),Object(n.useEffect)((()=>{if(j(0),c.length>0)if(""!==N.destPath){const e=c.filter((e=>e.dest_path&&e.dest_path.indexOf(N.destPath)>-1));x(e)}else x(c)}),[c,N.destPath]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(qd.a,{open:u,accessType:Zd,selectedTypes:p,fnHandleClose:()=>O(!1),fnHandleOK:t=>{let n="",s="";t.indexOf("0")>-1?(s=a("ALL"),n=""):t.forEach(((e,t)=>{0!==t&&(n+=",",s+=","),n+=e,s+=a(Qd[Number(e)])})),h(n),f(s),e.fnSetSearchObj("accessType",n),O(!1)}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[a("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:E.length}),a("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("span",{className:"title",children:a("ACCESS_TYPE")}),Object(g.jsx)(Ht.a,{onClick:e=>O(!0),name:"modal",className:"align-middle",variant:"outlined",siae:"small",InputProps:{readOnly:!0},value:""!==_?_:a("ALL")})]}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:a("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:a("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:a("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[a("DIVISION"),a("EXISTING_FILE"),a("NEW_FILE"),a("USER"),a("DATE")],n=[];E.forEach((t=>{n.push({access_type:e.fnCheckAccessType(t.access_type),path:t.path,dest_path:t.dest_path,user:"".concat(t.user_name,"(").concat(t.user_id,")"),accessed_at:bt.a.getDateStringToLocalDate(t.accessed_at)})})),hl.a.excelDownload("".concat(a("FILE_LOG_EXCEL")).concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),t,n,[{wpx:80},{wpx:400},{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Xd.a,{order:l,searchObj:N,rowCount:E.length,isFileSearch:!0,fnSearch:(t,a,n)=>{N.path!==t&&e.fnSetSearchObj("path",t),N.operator!==a&&e.fnSetSearchObj("operator",a),N.destPath!==n&&S((e=>Object(d.a)(Object(d.a)({},e),{},{destPath:n})))}}),Object(g.jsx)(wl.a,{children:E.slice(b*i,b*i+i).map(((t,a)=>{let n=Object(g.jsx)(Je.a,{title:t.dest_path,arrow:!0,children:Object(g.jsx)("span",{children:bt.a.splitLastDelimiterString(t.dest_path)})});return t.access_type===qc.d&&(n=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(t.dest_path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(t.dest_path)})]})),Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.fnCheckAccessType(t.access_type)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(t.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(t.path)})]})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(t.user_name,"(").concat(t.user_id,")")}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(t.accessed_at)})]},t.id)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(E.length/i),color:"primary",onChange:(e,t)=>{j(t-1)}})]})]})};var eb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/accessLogs",component:function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{t:l}=Object(jt.a)("docbase"),r=new Date,[i,o]=s.a.useState({startDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()),endDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()),accessType:0,path:"",operator:""});function b(){let t=bt.a.getDateDifference(i.startDate,i.endDate);t<=0?t=0:t++,a(!0),e(Object(on.g)({startID:0,date:bt.a.getDateString(i.startDate),days:t,path:i.path,operator:i.operator,accessType:0===i.accessType?"":i.accessType,isToday:!1})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{b()}),[i]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)($d,{loading:t,searchObj:i,setLoading:a,fnSetSearchObj:(e,t)=>o(Object(d.a)(Object(d.a)({},i),{},{[e]:t})),fnDoSearch:()=>b(),fnCheckAccessType:e=>function(e){switch(e){case qc.b:return l("ACCESS_TYPE_CREATE");case qc.f:return l("ACCESS_TYPE_READ");case qc.d:return l("ACCESS_TYPE_MOVE");case qc.k:return l("ACCESS_TYPE_UPDATE");case qc.c:return l("ACCESS_TYPE_HOLD");case qc.h:return l("ACCESS_TYPE_REMOVE");case qc.i:return l("ACCESS_TYPE_REMOVE_TRASH");case qc.g:return l("ACCESS_TYPE_RECOVERY_TRASH");case qc.e:return l("ACCESS_TYPE_PURGE_TRASH");case qc.l:return l("ACCESS_TYPE_VIEWING");case qc.m:return l("ACCESS_TYPE_WEB_CREATE");case qc.n:return l("ACCESS_TYPE_WEB_DOWNLOAD");case qc.a:return l("ACCESS_TYPE_COLLECT_FILE");case qc.j:return l("ACCESS_TYPE_START_VIEWING");default:return l("ETC")}}(e)}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const tb=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(jc.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText},mbLoginCardContent:{"padding-bottom":"3.2rem!important"}})));var ab={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/logout",component:function(e){let{history:t}=e;const a=tb(),c=Object(m.b)(),{t:l}=Object(jt.a)(["docbase","brand"]),[r,i]=s.a.useState({userID:"soho",startdate:"2023-01-01 00:00:00",enddate:"2023-01-30 23:59:59",rows_per_page:1e3}),[o,b]=s.a.useState("1");return Object(n.useEffect)((()=>{}),[c]),Object(g.jsx)("div",{className:Object(G.a)(a.root,"flex flex-col flex-auto flex-shrink-0 items-center justify-center p-32"),children:Object(g.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(g.jsx)(Fc,{animation:"transition.expandIn",children:Object(g.jsx)(zc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Bc.a,{className:"flex flex-col items-center justify-center p-32",children:[Object(g.jsx)("img",{className:"w-128",src:"assets/brand/logo.svg",alt:"logo"}),Object(g.jsx)(k.a,{variant:"h6",className:"mb-10 font-bold text-20 sm:text-24",color:"primary",children:l("brand:PRODUCT_NAME_ADMIN")}),Object(g.jsxs)("div",{children:[Object(g.jsx)(Ht.a,{className:"w-full",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:r.userID,onChange:e=>i(Object(d.a)(Object(d.a)({},r),{},{userID:e.target.value}))}),Object(g.jsx)(Ht.a,{className:"w-full",variant:"outlined",type:"text",name:"startdate",fullWidth:!0,value:r.startdate,onChange:e=>i(Object(d.a)(Object(d.a)({},r),{},{startdate:e.target.value}))}),Object(g.jsx)(Ht.a,{className:"w-full",variant:"outlined",type:"text",name:"enddate",fullWidth:!0,value:r.enddate,onChange:e=>i(Object(d.a)(Object(d.a)({},r),{},{enddate:e.target.value}))}),Object(g.jsx)(Hc.a,{onClick:e=>{Object(on.n)(r.userID,r.startdate,r.enddate,r.rows_per_page).then((e=>{console.log(e)}))},children:"\ub85c\uadf8\uc694\uccad"})]}),Object(g.jsx)(Hc.a,{onClick:e=>{Object(on.o)().then((e=>{const t=new Date;console.log(t.toLocaleString()),console.log(e)}))},children:"\uc0c1\ud0dc \uc870\ud68c"}),Object(g.jsxs)("div",{children:[Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"includes",fullWidth:!0,value:o,onChange:e=>b(e.target.value)}),Object(g.jsx)(Hc.a,{onClick:e=>{Object(on.o)(o).then((e=>{console.log(e)}))},children:"\ubaa9\ub85d\uc870\ud68c"})]})]})})})})})}}]};var nb=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"user_id",align:"left",className:"left",disablePadding:!1,label:t("USER"),isSearch:!0,sort:!1},{id:"client_address",align:"left",className:"left",disablePadding:!1,label:t("CLIENT_ADDRESS"),isSearch:!0,sort:!1},{id:"ransomware_path",align:"left",className:"left",disablePadding:!1,label:t("RANSOMWARE_PATH"),isSearch:!0,sort:!1},{id:"infected_files",align:"left",className:"left",disablePadding:!1,label:t("INFECTED_FILES"),isSearch:!0,sort:!1},{id:"detected_at",align:"center",className:"left",disablePadding:!1,label:t("DETECTED_AT"),isSearch:!1,sort:!1}],[n,c]=s.a.useState({ransomware_path:{show:""!==e.searchObj.path,value:e.searchObj.path},user_id:{show:""!==e.searchObj.user,value:e.searchObj.user},client_address:{show:""!==e.searchObj.clientAddress,value:e.searchObj.clientAddress},infected_files:{show:""!==e.searchObj.infectedFilePath,value:e.searchObj.infectedFilePath}}),l=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:a.map((a=>Object(g.jsx)(Ll.a,{className:a.className,align:a.align,padding:a.disablePadding?"none":"default",sortDirection:!1,children:n[a.id]&&n[a.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:a.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[a.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>c(Object(d.a)(Object(d.a)({},n),{},{[a.id]:{show:!1,value:""}})),onMouseDown:l,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{c(Object(d.a)(Object(d.a)({},n),{},{[a.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(n.ransomware_path.value,n.user_id.value,n.client_address.value,n.infected_files.value))}})]}):Object(g.jsxs)(g.Fragment,{children:["ransomware_path"===a.id?Object(g.jsxs)("div",{className:"inline-block align-middle",children:[Object(g.jsx)("span",{className:"align-middle",children:a.label}),Object(g.jsx)("br",{}),Object(g.jsxs)("span",{className:"align-middle",children:["[",t("RANSOMWARE_STATUS"),"]"]})]}):Object(g.jsx)("span",{className:"align-middle",children:a.label}),a.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{c(Object(d.a)(Object(d.a)({},n),{},{[a.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},a.id)),this)})})};const sb=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var cb=function(e){const t=sb(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{rowsPerPage:o,currentPage:d,totalRows:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.ransomObj}));function j(e){a(Object(rn.G)({docObj:e}))}if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-296,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{}),[a]),e.loading)return Object(g.jsx)(K.a,{});let u=0;return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b}),i("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("span",{className:"title",children:i("ACCESS_TYPE")}),Object(g.jsxs)(Ht.a,{select:!0,className:"select",value:e.searchObj.status,fullWidth:!0,variant:"outlined",size:"small",onChange:t=>{e.fnSetSearchObj("status",t.target.value)},children:[Object(g.jsx)(Q.a,{value:0,children:i("RANSOMWARE_STATUS_NONE")}),Object(g.jsx)(Q.a,{value:1,children:i("RANSOMWARE_STATUS_COM")}),Object(g.jsx)(Q.a,{value:2,children:i("RANSOMWARE_STATUS_BLOCK")})]})]}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:i("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(nb,{searchObj:e.searchObj,fnSearch:(t,a,n,s)=>{e.searchObj.path!==t&&e.fnSetSearchObj("path",t),e.searchObj.user!==a&&e.fnSetSearchObj("user",a),e.searchObj.clientAddress!==n&&e.fnSetSearchObj("clientAddress",n),e.searchObj.infectedFilePath!==s&&e.fnSetSearchObj("infectedFilePath",s)}}),Object(g.jsx)(wl.a,{children:e.data.map((e=>{const t=u===e.id;u=e.id;let a=i("RANSOMWARE_FILE_STATUS_COM");return 2===e.file_status?a=i("RANSOMWARE_FILE_STATUS_RESTORE"):3===e.file_status&&(a=i("RANSOMWARE_FILE_STATUS_INFECTION")),t?Object(g.jsx)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:Object(g.jsxs)(Ll.a,{className:"left",align:"left",children:[Object(g.jsx)("span",{children:e.file_path}),Object(g.jsxs)("span",{className:"ml-8",children:["[",a,"]"]})]})},e.id):Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.user_id}),Object(g.jsx)(Ll.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.client_address.split(":")[0]}),Object(g.jsxs)(Ll.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:[Object(g.jsxs)("div",{children:[Object(g.jsxs)("p",{className:"log-name",children:[bt.a.splitLastDelimiterString(e.ransomware_path),Object(g.jsx)("br",{}),Object(g.jsxs)("span",{children:["[",2===e.status?i("RANSOMWARE_STATUS_BLOCK"):i("RANSOMWARE_STATUS_COM"),"]"]})]}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.ransomware_path)})]}),Object(g.jsx)("span",{children:e.ransomware_path})]}),Object(g.jsxs)(Ll.a,{className:"left",align:"left",children:[Object(g.jsx)("span",{children:e.file_path}),Object(g.jsxs)("span",{className:"ml-8",children:["[",a,"]"]})]}),Object(g.jsx)(Ll.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:bt.a.getDateStringToLocalDate(e.detected_at)})]},e.id)}))})]})}),Object(g.jsx)(Di.a,{className:"flex-shrink-0",component:"div",count:b,rowsPerPage:o,rowsPerPageOptions:[100,250,500],page:d-1,labelRowsPerPage:i("ROW_PER_PAGE_LABEL"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return"".concat(-1!==n?n:a," \uc911 ").concat(t,"-").concat(a)},backIconButtonProps:{"aria-label":i("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":i("PAGE_NEXT_BTN_LABEL")},onChangePage:(t,n)=>{var s;s=n,e.setLoading(!0),a(Object(rn.w)({page:s+1})).then((()=>e.setLoading(!1))),c.current.scrollTop=0},onChangeRowsPerPage:t=>{var n;n=t,e.setLoading(!0),a(Object(rn.e)({value:n.target.value})),a(Object(rn.K)({page:1,status:e.searchObj.status,day:bt.a.getDateDifference(e.searchObj.startDate,e.searchObj.endDate),user:e.searchObj.user,path:e.searchObj.path,clientAddress:e.searchObj.clientAddress,infectedFilePath:e.searchObj.infectedFilePath})).then((()=>e.setLoading(!1))),c.current.scrollTop=0}})]})})};var lb=function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null),n=Object(m.b)(),[c,l]=s.a.useState({startDate:bt.a.getLastWeek(),endDate:new Date,status:0,path:"",user:"",clientAddress:"",infectedFilePath:""}),{events:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.ransomObj})),[i,o]=s.a.useState([]);return s.a.useEffect((()=>{const e=[];r.forEach((t=>{t.infected_files.forEach((a=>{e.push(Object(d.a)(Object(d.a)({},t),{},{file_path:a.path,file_status:a.status}))}))})),o(e)}),[r]),s.a.useEffect((()=>{t(!0),n(Object(rn.K)({page:1,status:c.status,day:bt.a.getDateDifference(c.startDate,c.endDate),user:c.user,path:c.path,clientAddress:c.clientAddress,infectedFilePath:c.infectedFilePath})).then((()=>{t(!1)}))}),[c]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(cb,{data:i,loading:e,searchObj:c,setLoading:t,fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},c),{},{[e]:t}))}),innerScroll:!0,sidebarInner:!0,ref:a})};var rb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/ransom",component:lb}]};var ib=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"requested_at",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REQ_AT"),sort:!1},{id:"requester",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REQUESTER"),sort:!1},{id:"approver",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_APPROVER"),sort:!1},{id:"request_type",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REQ_TYPE"),sort:!1},{id:"file_count",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_FILE_COUNT"),sort:!1},{id:"status",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_STATUS"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[a.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Ll.a,{className:"",padding:"none",sortDirection:!1})]})})};const ob=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6,"& .search-textfield":{marginRight:10},"& .date-picker-wrapper":{display:"flex",alignItems:"center","& .date-picker-item":{width:187},"& .tilde":{margin:"0 2px"}}},contentWrapper:{height:"calc(100vh - 330px)",padding:"0 20px"}})));var db=function(e){const t=ob(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{takeouts:r,rowsPerPage:i,currentPage:o,totalRows:b,totalPages:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.takeoutsObj})),[u,O]=s.a.useState({id:"user_id",direction:"asc"});return Object(n.useEffect)((()=>{}),[a]),Object(n.useEffect)((()=>{e.fnSetSelectedObj({requester_name:"",requester:"",approver_name:"",approver:"",requested_at:"",approved_at:"",request_type:0,status:0,reason_requested:"",reason_rejected:""})}),[o]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Vt.a,{style:{marginBottom:10},children:Object(g.jsxs)("div",{className:"searchWrapper",children:[Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:l("SEARCH")}),Object(g.jsxs)("div",{className:"searchValue",children:[Object(g.jsx)("div",{className:"input-item search-textfield",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.searchObj.requester,placeholder:l("TAKEOUT_REQUESTER"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:e.searchObj.requester&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>e.fnSetSearchObj(Object(d.a)(Object(d.a)({},e.searchObj),{},{requester:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:t=>e.fnSetSearchObj(Object(d.a)(Object(d.a)({},e.searchObj),{},{requester:t.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.searchObj.approver,placeholder:l("TAKEOUT_APPROVER"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:e.searchObj.approver&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>e.fnSetSearchObj(Object(d.a)(Object(d.a)({},e.searchObj),{},{approver:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:t=>e.fnSetSearchObj(Object(d.a)(Object(d.a)({},e.searchObj),{},{approver:t.target.value}))})})]}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsxs)("div",{className:"inputItem",children:[Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(rn.ab)({show:!0}));const t=await Object(on.x)(j),n=[l("TAKEOUT_REQ_AT"),l("TAKEOUT_REQUESTER"),l("TAKEOUT_APPROVER"),l("TAKEOUT_REQ_TYPE"),l("TAKEOUT_FILE_COUNT"),l("TAKEOUT_STATUS"),l("TAKEOUT_APP_AT"),l("TAKEOUT_REASON_REQ"),l("TAKEOUT_REASON_REJ")],s=[],c=[{wpx:150},{wpx:150},{wpx:150},{wpx:80},{wpx:80},{wpx:80}];t.forEach((e=>{let t=l("TAKEOUT_DOC"),a=l("TAKEOUT_REQUEST");switch(e.request_type){case qc.Fb:t=l("TAKEOUT_PRINT");break;case qc.Gb:t=l("TAKEOUT_WEBLINK")}switch(e.status){case qc.yb:a=l("TAKEOUT_APPROVED");break;case qc.Cb:a=l("TAKEOUT_REQUEST_PENDING");break;case qc.zb:a=l("TAKEOUT_APPROVED_AUTO");break;case qc.Ab:a=l("TAKEOUT_REJECTED");break;case qc.Db:a=l("TAKEOUT_WITHDRAWN")}s.push({requested_at:bt.a.getDateStringToLocalDate(e.requested_at),requester:"".concat(e.requester_name,"(").concat(e.requester,")"),approver:"".concat(e.approver_name,"(").concat(e.approver,")"),request_type:t,file_count:e.requested_files.length,status:a,approved_at:bt.a.getDateStringToLocalDate(e.approved_at),reason_requested:e.reason_requested,reason_rejected:e.reason_rejected})})),hl.a.excelDownload("".concat(l("TAKEOUT_TITLE")).concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),n,s,c)}catch(t){console.error(t)}finally{a(Object(rn.ab)({show:!1}))}})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.fnDoSearch()},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})]})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"date-picker-item",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj(Object(d.a)(Object(d.a)({},e.searchObj),{},{startDate:t}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{children:l("RESTORE_MODE_TODAY")})]})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",style:{marginTop:20},children:[Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b}),l("CNT")]})}),Object(g.jsx)("div",{className:"btnGroup",children:Object(g.jsx)(Hc.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:t=>{e.fnDoSearch()},children:l("SEARCH")})})]})]})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ib,{order:u,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";u.id===t&&"desc"===u.direction&&(n="asc"),O({direction:n,id:a})})(0,t)}),Object(g.jsx)(wl.a,{children:r.map((a=>{let n=l("TAKEOUT_DOC"),s=l("TAKEOUT_REQUEST");switch(a.request_type){case qc.Fb:n=l("TAKEOUT_PRINT");break;case qc.Gb:n=l("TAKEOUT_WEBLINK")}switch(a.status){case qc.yb:s=l("TAKEOUT_APPROVED");break;case qc.Cb:s=l("TAKEOUT_REQUEST_PENDING");break;case qc.zb:s=l("TAKEOUT_APPROVED_AUTO");break;case qc.Ab:s=l("TAKEOUT_REJECTED");break;case qc.Db:s=l("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>{return n=a,e.fnSetSelectedObj(n),void e.fnToggleRightSidebar();var n},selected:e.selectedObj.toid===a.toid,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Ll.a,{className:"left",align:"center",component:"td",scope:"row",children:n}),Object(g.jsx)(Ll.a,{className:"left",align:"center",component:"td",scope:"row",children:a.requested_files.length}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:s})]},a.toid)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(b/i),color:"primary",page:o,onChange:(t,n)=>{o!==n&&function(t){e.setLoading(!0),a(Object(on.I)({page:t+1})).then((()=>e.setLoading(!1)))}(n-1)}})]})]})},bb=a(290);const jb=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermContent:{padding:0,marginTop:20},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277},filedInput:{width:"100%",padding:"0 30px",display:"flex",alignItems:"center"},icon:{marginRight:10},downloadCell:{width:50}})));var ub=function(e){const t=jb(),a=s.a.useRef(),n=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),{key:l,currentPage:r,takeouts:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.takeoutsObj})),[o,d]=s.a.useState(window.innerHeight),[b,j]=s.a.useState(""),[u,O]=s.a.useState(-1);s.a.useEffect((()=>{o>=754&&(a.current.style.height="".concat(o-140,"px")),window.addEventListener("resize",(()=>d(window.innerHeight)))}),[o]),s.a.useEffect((()=>{var t,a;e.selectedObj.status===qc.Ab?j(e.selectedObj.reason_rejected):j(""),O(null!==(t=null===(a=e.selectedObj)||void 0===a?void 0:a.toid)&&void 0!==t?t:-1)}),[e.selectedObj]),s.a.useEffect((()=>{-1!==u&&i.forEach((t=>{t.toid===u&&e.fnSetSelectedObj(t)}))}),[i]);let p="";switch(e.selectedObj.request_type){case qc.Eb:p=c("TAKEOUT_DOC");break;case qc.Fb:p=c("TAKEOUT_PRINT");break;case qc.Gb:p=c("TAKEOUT_WEBLINK")}let h="";switch(e.selectedObj.status){case qc.yb:h=c("TAKEOUT_APPROVED");break;case qc.Cb:h=c("TAKEOUT_REQUEST_PENDING");break;case qc.zb:h=c("TAKEOUT_APPROVED_AUTO");break;case qc.Ab:h=c("TAKEOUT_REJECTED");break;case qc.Db:h=c("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)("div",{className:"",ref:a,children:[Object(g.jsxs)(zc.a,{className:t.cardInfo,children:[Object(g.jsx)(Rr.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})})}),Object(g.jsxs)(Bc.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_REQUESTER")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"requester",fullWidth:!0,value:""!==e.selectedObj.requester_name?"".concat(e.selectedObj.requester_name,"(").concat(e.selectedObj.requester,")"):"",inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_APPROVER")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"approver",fullWidth:!0,value:""!==e.selectedObj.approver_name?"".concat(e.selectedObj.approver_name,"(").concat(e.selectedObj.approver,")"):"",inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_REQ_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"requested_at",fullWidth:!0,value:bt.a.getDateStringToLocalDate(e.selectedObj.requested_at),inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_APP_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"approved_at",fullWidth:!0,value:bt.a.getDateStringToLocalDate(e.selectedObj.approved_at),inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_REQ_TYPE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"req_type",fullWidth:!0,value:p,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_STATUS")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:e.selectedObj.status===qc.Bb?Object(g.jsxs)(Ht.a,{select:!0,className:"",variant:"outlined",value:e.selectedObj.status,name:"status",fullWidth:!0,onChange:t=>t.target.value!==qc.Cb&&(t.target.value===qc.Ab&&""===b?(n(Object(U.c)({message:c("TAKEOUT_REASON_REJECT_ERROR")})),!1):(n(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("TAKEOUT_DOC"),content:t.target.value===qc.Ab?c("TAKEOUT_REJECT_CONFIRM"):c("TAKEOUT_APPROVE_CONFIRM"),fnHandleOK:()=>{Object(on.a)(e.selectedObj.toid,t.target.value,b).then((a=>{n(Object(U.d)({message:t.target.value===qc.Ab?c("REJECTED"):c("APPROVED")})),n(Object(on.bb)({toid:e.selectedObj.toid,approve:t.target.value,reason:b})).then((()=>e.setLoading(!1)))})).catch((e=>{console.error(e)}))}})})),!0)),children:[Object(g.jsx)(Q.a,{value:qc.Bb,children:c("TAKEOUT_REQUEST")}),Object(g.jsx)(Q.a,{value:qc.Cb,children:c("TAKEOUT_REQUEST")}),Object(g.jsx)(Q.a,{value:qc.yb,children:c("TAKEOUT_APPROVED")}),Object(g.jsx)(Q.a,{value:qc.Ab,children:c("TAKEOUT_REJECTED")})]}):Object(g.jsx)(Ht.a,{className:"",variant:"outlined",value:h,name:"status",fullWidth:!0,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_REASON_REQ")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"reason_req",fullWidth:!0,value:e.selectedObj.reason_requested,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("TAKEOUT_REASON_REJ")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:b,inputProps:{readOnly:!(e.selectedObj.status===qc.Bb)},onChange:e=>j(e.target.value)})})]})]})]}),Object(g.jsx)(zc.a,{className:t.paperPerm,children:Object(g.jsx)(Bc.a,{className:t.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:c("FILE_NAME")}),Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:t.downloadCell})]})}),Object(g.jsx)(wl.a,{children:e.selectedObj.requested_files&&e.selectedObj.requested_files.length>0?e.selectedObj.requested_files.map(((a,n)=>{const s=Va.a.decryptAES(l,a.path,"hex","utf8").replaceAll("[_ORG_].","");return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsx)("span",{className:t.icon,children:Object(g.jsx)(bb.a,{targetName:s,secureDocInfo:!1})}),Object(g.jsx)("span",{children:s})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:"\ud074\ub9ad\uc2dc \ub2e4\uc6b4\ub85c\ub4dc",children:Object(g.jsx)(I.a,{onClick:()=>{Object(jn.m)(e.selectedObj.toid,a.seq,a.archive_id)},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})})})})]})})):Object(g.jsx)(g.Fragment,{})})]})})})]})};var Ob={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/takeouts",component:function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),[n,c]=s.a.useState({requester_name:"",requester:"",approver_name:"",approver:"",requested_at:"",approved_at:"",request_type:0,status:0,reason_requested:"",reason_rejected:""}),l=s.a.useRef(null),r=new Date,[i,o]=s.a.useState({requester:"",approver:"",startDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()-6),endDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()),inquiryType:0,status:0});s.a.useEffect((()=>{d()}),[e]);const d=()=>{c({requester_name:"",requester:"",approver_name:"",approver:"",requested_at:"",approved_at:"",request_type:0,status:0,reason_requested:"",reason_rejected:""});let t=bt.a.getDateDifference(i.startDate,i.endDate);t<0?t=0:console.log("days: ",t),a(!0),e(Object(on.G)({days:t,requester:i.requester,approver:i.approver,inquiryType:i.inquiryType,status:i.status,page:1})).then((()=>{a(!1)}))};return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(db,{loading:t,setLoading:a,selectedObj:n,searchObj:i,fnDoSearch:d,fnSetSearchObj:e=>o(e),fnSetSelectedObj:e=>c(e),fnToggleRightSidebar:e=>l.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(ub,{loading:t,setLoading:a,selectedObj:n,fnDoSearch:d,fnSetSelectedObj:e=>c(e),fnToggleRightSidebar:e=>l.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:l})}}]};const pb=Object(M.a)((e=>({tr:{"& .sincesec":{width:95},"& .user-id":{width:200},"& .release-icon":{width:50}}})));var hb=function(e){const{t:t}=Object(jt.a)("docbase"),a=pb(),n=[{id:"document_path",align:"left",className:"left",disablePadding:!1,label:t("DOCUMENT"),isSearch:!1,sort:!0},{id:"button",align:"center",className:"release-icon",disablePadding:!0,label:"",isSearch:!1,sort:!1},{id:"user",align:"left",className:"user-id search-cell",disablePadding:!1,label:t("USER"),isSearch:!0,sort:!0},{id:"since_sece",align:"center",className:"sincesec",disablePadding:!1,label:t("SINCE_SECE"),isSearch:!1,sort:!1},{id:"start_time",align:"center",className:"table_col_date",disablePadding:!1,label:t("START_TIME"),isSearch:!1,sort:!0}],[c,l]=s.a.useState({user:{show:!1,value:""}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:a.tr,children:n.map((t=>{return Object(g.jsx)(Ll.a,{className:Object(G.a)(t.className,c[t.id]&&c[t.id].show?"show":""),align:t.align,padding:t.disablePadding?"none":"default",sortDirection:e.order.id===t.id&&e.order.direction,children:c[t.id]&&c[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:r,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),e.fnSearch(c.user.value))}})]}):t.sort?Object(g.jsxs)(Bl.a,{active:e.order.id===t.id,direction:e.order.direction,onClick:(a=t.id,t=>{e.onRequestSort(t,a)}),children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id);var a}),this)})})};const mb=Object(M.a)((e=>({deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"}})));let _b;var fb=function(e){const t=mb(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{holdFiles:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system})),[i,o]=s.a.useState({id:"path",direction:"asc"}),[d,b]=s.a.useState(100),[j,u]=s.a.useState(0),[O,p]=s.a.useState([]),[h,_]=s.a.useState([]);return Object(n.useEffect)((()=>{}),[a]),Object(n.useEffect)((()=>{_(O.slice(d*j,d*(j+1)))}),[j,d,O]),Object(n.useEffect)((()=>{let t=!1;const a=r.map((e=>(e.scheduled_release&&(t=!0),e)));t?_b||(_b=setInterval((()=>{e.fnDoSearch(!1)}),3e3)):(clearInterval(_b),_b=void 0);const n=[...a].sort(((e,t)=>{const{id:a,direction:n}=i,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:s{e.fnDoSearch(!1)},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(hb,{order:i,onRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";i.id===t&&"desc"===i.direction&&(n="asc"),o({direction:n,id:a})}(0,t),searchObj:e.searchObj,rowCount:r.length,fnSearch:t=>{e.searchObj.userID!==t&&e.fnSetSearchObj(t)}}),Object(g.jsx)(wl.a,{children:h.map(((n,s)=>Object(g.jsxs)(Al.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(n.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(n.path)})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:n.scheduled_release?Object(g.jsx)("div",{style:{padding:"12px"},children:Object(g.jsx)(Cc.a,{className:"align-middle ml-5",style:{width:"24px",height:"24px"},color:"secondary"})}):Object(g.jsx)(Je.a,{title:l("RELEASE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("[".concat(n.user_name,"(").concat(n.user_id,")] ").concat(l("HOLD_FILES_CONF_CONTENT"))),fnHandleOK:()=>{Object(on.U)(n.user_id).then((()=>{a(Object(U.d)({message:l("HOLD_FILES_MESSAGE_1")})),e.fnDoSearch(!1)})).catch((e=>{}))}})}))},children:Object(g.jsx)(w.a,{className:t.deleteIcon,children:"no_encryption"})})})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(n.user_name,"(").concat(n.user_id,")")}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:"".concat(bt.a.getSecToTime(n.since_secs))}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate("".concat(n.year,"-").concat(n.month,"-").concat(n.day," ").concat(n.hour,":").concat(n.minute,":").concat(n.second))})]},s)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(r.length/d),color:"primary",onChange:(e,t)=>{u(t-1)}})]})})};var gb=function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{usersObj:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[r,i]=s.a.useState({userID:""});function o(t){a(t),Object.keys(l).length<=0?e(Object(cn.h)()).then((()=>{e(Object(on.w)({userID:r.userID})).then((()=>{a(!1)}))})):e(Object(on.w)({userID:r.userID})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{o(!0)}),[r]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(fb,{loading:t,searchObj:r,setLoading:a,fnSetSearchObj:(e,t)=>i(Object(d.a)(Object(d.a)({},r),{},{[e]:t})),fnDoSearch:e=>o(e)}),innerScroll:!0,sidebarInner:!0,ref:c})};var Eb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/holdFiles",component:gb}]};const xb=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-274,"px"),padding:"0 20px"},table:{"& .lock":{width:80},"& .datetime":{width:100}},icon:{width:20,height:20},btn:{width:"155px!important"}}))),Nb=(e,t)=>{let a="win64";return 1===e?a="win32":3===e&&(a="mac"),Object(g.jsx)("p",{children:"".concat(t,"(").concat(a,")")})},Sb=s.a.memo((e=>{let{t:t,tabValue:a,selectedUsers:n,data:s,setupClientData:c,order:l,setSelectedUsers:r,handleRequestSort:i,selectUser:o,orgChildren:d}=e,b=Object(g.jsx)(yl.a,{});return b=0===a?Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:n.length>0&&n.length{const t=[];e.target.checked&&s.forEach((e=>{t.push(e.user_id)})),r(t)}})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"id"===l.id,direction:l.direction,onClick:e=>i(e,"id"),children:t("USER")})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"org"===l.id,direction:l.direction,onClick:e=>i(e,"org"),children:t("ORG_NAME")})}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"recommend_type"===l.id,direction:l.direction,onClick:e=>i(e,"recommend_type"),children:t("UPDATE_NEW_CLIENT_LOCK").split(" ").map(((e,t,a)=>Object(g.jsxs)(g.Fragment,{children:[e,ti(e,"client_info"),children:"".concat(t("CLIENT_INFO_VERSION"),"(OS)")})}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Ll.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_INSTALL_AT")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Ll.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_LAST_LOGIN_AT")})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(s,[e=>{switch(l.id){case"id":return e.user_id;case"org":return e.orgs;case"recommend_type":return e.recommend_type;case"client_info":return e.client_info?e.client_info.installed_version:"";default:return e[l.id]}}],[l.direction]).map((e=>{const a=n.indexOf(e.user_id)>=0;return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,selected:a,onClick:t=>o(t,e.user_id),children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>o(t,e.user_id)})}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_id,"(").concat(e.name,")")}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.orgs}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:0===e.recommend_type?t("LOCK"):t("UNLOCK")}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Nb(e.client_info.client_type,e.client_info.installed_version):""}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsx)("p",{children:e.client_info.mac_address}):""}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsxs)("p",{children:[" ",-1===e.client_info.installed_at.indexOf("2020-01-01")?"".concat(bt.a.getDateStringToLocalDate(e.client_info.installed_at)):"-"]}):""}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsx)("p",{children:"".concat(e.client_info.ip_address)}):""}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsx)("p",{children:"".concat(bt.a.getDateStringToLocalDate(e.client_info.last_logged_at))}):""})]},e.user_id)}))})]}):1===a?Object(g.jsx)("div",{className:"flex flex-col",children:Object(g.jsx)(ar.a,{className:"full",orgs:d,useExpand:!0,useCheckBox:!0,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"client_info"===l.id,direction:l.direction,onClick:e=>i(e,"client_info"),children:t("CLIENT_INFO_VERSION")})}),Object(g.jsx)(Ll.a,{className:"table_col_short",align:"center",padding:"default",sortDirection:l.direction,children:t("OS")}),Object(g.jsx)(Ll.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Ll.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"install_at"===l.id,direction:l.direction,onClick:e=>i(e,"install_at"),children:t("CLIENT_INFO_INSTALL_AT")})}),Object(g.jsx)(Ll.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Ll.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"login_at"===l.id,direction:l.direction,onClick:e=>i(e,"login_at"),children:t("CLIENT_INFO_LAST_LOGIN_AT")})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Bl.a,{active:"id"===l.id,direction:l.direction,onClick:e=>i(e,"id"),children:t("USER")})})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(c,[e=>{switch(l.id){case"id":return e.last_logged_in_user_id;case"client_info":return e.installed_version;case"install_at":return e.installed_at;case"login_at":return e.last_logged_at;default:return e[l.id]}}],[l.direction]).map((e=>{let t="win64";return 1===e.client_type?t="win32":3===e.client_type&&(t="mac"),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>o(t,e.user_id),children:[Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.installed_version}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:t}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.mac_address}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:bt.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.ip_address}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:bt.a.getDateStringToLocalDate(e.last_logged_at)}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:"".concat(e.last_logged_in_user_id,"(").concat(e.last_logged_in_user_name,")")})]},e.mac)}))})]}),b}));var Tb=function(e){const t=xb(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),{usersObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[d,b]=s.a.useState(0),[j,u]=Object(n.useState)(!0),[O,p]=Object(n.useState)([]),[h,_]=Object(n.useState)([]),[f,E]=Object(n.useState)({}),[x,N]=Object(n.useState)({}),[S,T]=Object(n.useState)([]),[v,y]=Object(n.useState)({id:"user_id",direction:"asc"}),[C,A]=s.a.useState(""),[L,w]=Object(n.useState)([]),[I,P]=Object(n.useState)([]),[D,M]=Object(n.useState)([]),[k,F]=Object(n.useState)(0);Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-274,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{Object.keys(o).length>0?H():a(Object(cn.h)()).then((()=>{}))}),[o,a]),Object(n.useEffect)((()=>(O.length>0&&W(C),()=>{W.cancel()})),[C]),Object(n.useEffect)((()=>{_(O)}),[O]);const W=Object(n.useCallback)(Object(ul.debounce)((e=>{try{if(e.length>0)if(0===d){const t=[];for(let a=0;a{a.name.toLowerCase().includes(e.toLowerCase())&&t.push({fid:a.fid,name:a.name||a.disp_path.split("/").pop(),disp_path:a.disp_path,allow_takeout:a.allow_takeout})})),_(t)}else 0===d?_(O):E(x)}catch(t){console.error(t)}finally{u(!1)}}),500));async function H(){const e={},t=await Object(on.B)("",0),a=await Object(on.K)(""),n=await Object(rn.k)(!0),s=await Object(ln.g)(),c=Object.keys(n),l=[];Object.keys(s.orgChildren).forEach((e=>{l.push(Number(e))})),E(s.orgChildren),N(s.orgChildren),T(s.orgs);let r=0;t.forEach((t=>{t.name=o[t.user_id]?o[t.user_id].name:"",t.client_info=a.reduce(((e,a)=>a.last_logged_in_user_id===t.user_id&&(!e||new Date(a.last_logged_at)>new Date(e.last_logged_at))?a:e),null),t.client_info&&r++;let s="";c.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===t.user_id&&(s+="".concat(bt.a.splitLastDelimiterString(e.disp_path)," | "))}))})),t.orgs=s.substring(0,s.length-2),e[t.user_id]=t,s=""})),F(r),p(t),M(a),u(!1)}if(j)return Object(g.jsx)(K.a,{});function z(e,t){let n="";return e||0!==L.length||0!==I.length?(n=e?l(0===t?"UPDATE_NEW_CLIENT_MESSAGE_3":"UPDATE_NEW_CLIENT_MESSAGE_4"):0===t?0===d?l("UPDATE_NEW_CLIENT_MESSAGE_1").replace("%d",L.length):l("UPDATE_NEW_CLIENT_MESSAGE_6").replace("%d",I.length):0===d?l("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",L.length):l("UPDATE_NEW_CLIENT_MESSAGE_7").replace("%d",I.length),a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("UPDATE_NEW_CLIENT_LOCK"),content:n,fnHandleOK:()=>{!async function(e,t){if(u(!0),e)for(let a=0;aA(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.length}),l("CNT")]}),Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("\uc124\uce58\ud55c \uc0ac\uc6a9\uc790")," ",Object(g.jsx)("span",{className:"count",children:k})]})]}),2!==d?Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>z(!1,0),children:l("UPDATE_NEW_CLIENT_LOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>z(!1,1),children:l("UPDATE_NEW_CLIENT_UNLOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>z(!0,0),children:l("UPDATE_NEW_CLIENT_ALL_LOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:Object(G.a)(t.btn,"default"),type:"button",onClick:()=>z(!0,1),children:l("UPDATE_NEW_CLIENT_ALL_UNLOCK")})})]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:d,onChange:(e,t)=>{b(t),A("")},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("USER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("ORG_TITLE")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("CLIENT")})]})}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(Sb,{t:l,tabValue:d,selectedUsers:L,data:h,setupClientData:D,order:v,setSelectedUsers:e=>w(e),handleRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";v.id===t&&"desc"===v.direction&&(n="asc"),y({direction:n,id:a})}(0,t),selectUser:(e,t)=>function(e,t){const a=L.indexOf(t);let n=[];-1===a?n=n.concat(L,t):0===a?n=n.concat(L.slice(1)):a===L.length-1?n=n.concat(L.slice(0,-1)):a>0&&(n=n.concat(L.slice(0,a),L.slice(a+1))),w(n)}(0,t),orgChildren:f,setOrgChildren:e=>E(e),selectOrgs:(e,t)=>function(e,t){const a=I.indexOf(t);let n=[];-1===a?n=n.concat(I,t):0===a?n=n.concat(I.slice(1)):a===I.length-1?n=n.concat(I.slice(0,-1)):a>0&&(n=n.concat(I.slice(0,a),I.slice(a+1))),P(n)}(0,t)})})]})})};var vb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Tb,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Rb=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 220px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10}})));var yb=function(e){const t=Rb(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=Object(n.useState)(0),[j,u]=Object(n.useState)(""),[O,h]=Object(n.useState)({}),[_,f]=Object(n.useState)([]),[E,x]=Object(n.useState)({}),[N,S]=s.a.useState([]),[T,v]=Object(n.useState)({}),[R,y]=Object(n.useState)([]),[C,A]=Object(n.useState)(new Set);Object(n.useEffect)((()=>(e.fnSetFolderType(o),_.length>0&&L(j,_,N,E,O),()=>{L.cancel()})),[j,_,N,E,O,o]),Object(n.useEffect)((()=>(i(!0),P(),()=>{u("")})),[a]);const L=Object(n.useCallback)(Object(ul.debounce)(((e,t,a,n,s)=>{try{if(i(!0),e.length>0)if(0===o){const a=[];t.forEach((t=>{t.name.toLowerCase().includes(e.toLowerCase())&&a.push({fid:t.fid,name:t.name||t.disp_path.split("/").pop(),disp_path:t.disp_path,allow_takeout:t.allow_takeout,manage_type:n[t.fid].manage_type})})),v(a)}else y(p.filterFoldersNameByString(a,e));else 0===o?(v(s),i(!1)):y(a)}catch(c){console.error(c)}finally{i(!1)}}),500),[o]);if(r)return Object(g.jsx)(K.a,{});async function P(){var e;const t=await Object(on.i)(),a={};t.forEach((e=>{a[e.fid]=e.manage_type}));const n=await Object(ln.g)(),s=D((null===(e=n.orgChildren)||void 0===e?void 0:e.children)||[],a),c=await Object(ln.h)(),l={};f(n.orgs.map((e=>(e.manage_type=a[e.fid],l[e.fid]=e,e)))),x(l),S(c.shareds.map((e=>(e.manage_type=a[e.fid],e)))),h(s)}function D(e,t){return e.map((e=>{var a;const n=Object(d.a)(Object(d.a)({},e),{},{manage_type:null!==(a=t[e.fid])&&void 0!==a?a:null});return e.children&&e.children.length>0&&(n.children=D(e.children,t)),n}))}function M(e,t){i(!0);const n=[..._,...N].map((a=>a.fid===e?Object(d.a)(Object(d.a)({},a),{},{manage_type:t}):a));Object(on.W)(n).then((e=>{e&&(a(Object(U.d)({message:l("TAKEOUT_APPROVE_MESSAGE_1")})),P())}))}function k(e){i(!0);const t=0===o?_.map((t=>({fid:t.fid,manage_type:e}))):N.map((t=>({fid:t.fid,manage_type:e})));Object(on.W)(t).then((e=>{e&&(a(Object(U.d)({message:l("TAKEOUT_APPROVE_MESSAGE_1")})),P())}))}return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:j,placeholder:l("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:0===o?_.length:N.length}),l("CNT")]})]}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"default",className:t.btn01,type:"button",onClick:e=>k(0),children:l(0===o?"TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL":"TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL_1")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>k(1),children:l(0===o?"TAKEOUT_APPROVE_MANAGE_LOCK_ALL":"TAKEOUT_APPROVE_MANAGE_LOCK_ALL_1")})]})]}),Object(g.jsxs)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:o,onChange:(e,t)=>{b(t),u("")},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("ORG_TITLE")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("SHARED_TITLE")})]})}),0===o?Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,{className:"",orgs:T,useApproveLock:!0,useExpand:!0,expandedFids:C,setExpandedFids:A,fnOnClickAction:e=>{console.log(E),M(e.fid,0===e.manage_type?1:0)},fnOnClickHandler:t=>{e.fnSetSelectedFid(t),e.fnSetPath(E[t].disp_path.substring(E[t].disp_path.indexOf("/",1)))}})}):Object(g.jsx)("div",{children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"left",children:l("FOLDER_NAME")}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:l("LOCK")})]})}),Object(g.jsx)(wl.a,{children:R.map((t=>(console.log(t),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:e.selected===t.fid,onClick:a=>{e.fnSetSelectedFid(t.fid),e.fnSetPath(t.path)},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:Object(g.jsx)("span",{children:t.name})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:0===t.manage_type?l("UNLOCK"):l("LOCK"),arrow:!0,children:Object(g.jsx)(I.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{M(t.fid,0===t.manage_type?1:0)},children:0===t.manage_type?Object(g.jsx)(w.a,{className:"",children:"lock_open"}):Object(g.jsx)(w.a,{className:"",children:"lock"})})})})]},t.fid))))})]})})]})]})})};const Cb=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140}},paperPermContent:{padding:0,marginTop:20,"& w-115":{width:115}},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},select:{width:"100%"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:30,"& button":{marginRight:10}},h_29:{height:"29px"}})));var Ab=function(e){const t=Cb(),a=Object(m.b)(),n=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState([]),[i,o]=s.a.useState([]);async function b(t,n){const{name:s,value:b}=n.target;let j=null;const u=l.map((e=>{if(e.user_id!==t)return e;const a=Object(d.a)(Object(d.a)({},e),{},{[s]:b});return j=a,a}));if(!j)return;if(await Object(on.X)(e.selected,u)&&(a(Object(U.d)({message:c("TAKEOUT_APPROVE_MESSAGE_1")})),r((e=>e.map((e=>e.user_id===t?Object(d.a)(Object(d.a)({},e),{},{[s]:b}):e)))),1===e.folderType)){const a=i.map((e=>e.obj_type===qc.eb&&e.obj_id===t?Object(d.a)(Object(d.a)({},e),{},{auto_approve_printer_takeout:j.printer,auto_approve_takeout:j.document,auto_approve_weblink_takeout:j.weblink}):e));await Object(ln.G)(e.selected,a),o(a)}}return s.a.useEffect((()=>{e.selected>0&&(Object(on.m)(e.selected).then((e=>{r(e)})),1===e.folderType?Object(ln.n)(e.selected).then((e=>{o(e)})):o([]))}),[e.selected]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(zc.a,{className:t.cardInfo,children:Object(g.jsxs)(Rr.a,{disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsx)(k.a,{className:Object(G.a)(t.cardDetailInfo,"noto-bold"),variant:"h6",children:Object(g.jsx)(Je.a,{title:e.path,arrow:!0,children:Object(g.jsx)("span",{children:e.selected<=0?"":bt.a.splitLastDelimiterString(e.path)})})})]})}),Object(g.jsx)(zc.a,{className:t.paperPerm,children:Object(g.jsx)(Bc.a,{className:t.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_DOC")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_PRINT")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_WEBLINK")})]})}),Object(g.jsx)(wl.a,{children:l.map((e=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Il.a,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_id,"(").concat(e.user_name,")")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(te.a,{id:"document",name:"document",variant:"outlined",className:Object(G.a)(t.select,""),value:e.document,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(Q.a,{className:"justify-center",value:qc.ub,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(Q.a,{className:"justify-center",value:qc.tb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:qc.vb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(te.a,{id:"printer",name:"printer",variant:"outlined",className:Object(G.a)(t.select,""),value:e.printer,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(Q.a,{className:"justify-center",value:qc.tb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:qc.vb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(te.a,{id:"weblink",name:"weblink",variant:"outlined",className:Object(G.a)(t.select,""),value:e.weblink,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(Q.a,{className:"justify-center",value:qc.ub,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(Q.a,{className:"justify-center",value:qc.tb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:qc.vb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})})]})))})]})})})]})};var Lb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/exportApproval",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1),[n,c]=s.a.useState(""),[l,r]=s.a.useState(0);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(yb,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnSetFolderType:e=>r(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Ab,{selected:t,path:n,folderType:l,fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]},wb=a(546),Ib=a(973);const Pb=Object(M.a)((e=>({tr:{"& .file_types":{width:105},"& .log_types":{width:50}}})));var Db=function(e){const{t:t}=Object(jt.a)("docbase"),a=Pb(),n=[{id:"log_types",align:"center",className:"log_types",disablePadding:!1,label:"",isSearch:!1,sort:!1},{id:"file_types",align:"center",className:"file_types",disablePadding:!1,label:"",isSearch:!1,sort:!1},{id:"date",align:"left",className:"left table_col_date",disablePadding:!1,label:t("DATE"),isSearch:!1,sort:!1},{id:"logs_contents",align:"left",className:"left",disablePadding:!1,label:t("INSTANT_LOGS_CONTENTS"),isSearch:!1,sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:Object(G.a)(e.className),align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:e.label})},e.id)),this)})})};const Mb=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",marginTop:10},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:100,cursor:"default",fontSize:14,lineHeight:"28px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.MuiFormControlLabel-root":{marginLeft:0,marginRight:5}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function kb(e){const{t:t}=Object(jt.a)("docbase"),a=Mb(),[n,c]=s.a.useState({file_types:[],log_types:[],includes:"",excludes:""});function l(e,a){let s="";switch(a){case"engine":s=t("Engine");break;case"collector":s=t("Collector");break;case"agent":s=t("Agent");break;case"server":s=t("Server");break;case"trace":s=t("Trace");break;case"info":s=t("Information");break;case"warn":s=t("Warning");break;case"err":s=t("Error");break;case"critical":s=t("Critical");break;default:s=t("")}return Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:n[e].indexOf(a)>=0,onChange:t=>{const s=n[e],l=s.indexOf(a);-1===l?s.push(a):s.splice(l,1),c(Object(d.a)(Object(d.a)({},n),{},{[e]:s}))},name:a}),label:s})}return s.a.useEffect((()=>{let t="",a="";e.conditionsObj.includes.forEach(((e,a)=>{a>0&&(t+=","),t+=e})),e.conditionsObj.excludes.forEach(((e,t)=>{t>0&&(a+=","),a+=e})),c({file_types:e.conditionsObj.file_types,log_types:e.conditionsObj.log_types,includes:t,excludes:a})}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",children:t("INSTANT_LOGS_TITLE")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(wb.a,{row:!0,className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("INSTANT_LOGS_FILE_TYPES")})}),Object(g.jsxs)("div",{className:"input-area",children:[l("file_types","engine"),l("file_types","collector"),l("file_types","agent"),l("file_types","server")]})]}),Object(g.jsxs)(wb.a,{row:!0,className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("INSTANT_LOGS_LOG_TYPES")})}),Object(g.jsxs)("div",{className:"input-area",children:[l("log_types","trace"),l("log_types","info"),l("log_types","warn"),l("log_types","err"),l("log_types","critical")]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("INSTANT_LOGS_INCLUDES")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:t("INSTANT_LOGS_INCLUDES"),name:"includes",fullWidth:!0,value:n.includes,variant:"outlined",onChange:e=>c(Object(d.a)(Object(d.a)({},n),{},{includes:e.target.value})),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("INSTANT_LOGS_EXCLUDES")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:t("INSTANT_LOGS_EXCLUDES"),name:"excludes",fullWidth:!0,value:n.excludes,variant:"outlined",onChange:e=>c(Object(d.a)(Object(d.a)({},n),{},{excludes:e.target.value})),size:"small"})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:t=>{e.fnHandleOK(n)},children:t("APPLY")})]})]})})]})})}const Gb=Object(M.a)((e=>({root:{"& .search-form-wrapper":{width:"100%",marginLeft:10,"&>.MuiButton-root":{width:"fit-content",marginRight:5},"& .MuiFormControlLabel-root":{marginLeft:0,marginRight:0},"& .date-wrapper":{display:"flex",flex:"1 1 auto",flexFlow:"row-reverse"}}},datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:165,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"".concat(window.innerHeight-314,"px"),padding:"0 20px"},searchInfo:{padding:"0px 20px 5px","& .col":{display:"inline-block",marginRight:10,"& span":{cursor:"default"},"& .value":{display:"inline-block","& span":{color:"#777"}}},"& .col:last-child":{marginRight:0}}})));var Ub=function(e){const t=Gb(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),[o,b]=s.a.useState(!1),[j,u]=s.a.useState({file_types:["engine","collector","agent","server"],log_types:["trace","info","warn","err","critical"],includes:[],excludes:[],rows_per_page:100}),[O,p]=s.a.useState(1),h=s.a.useRef(!1);return Object(n.useEffect)((()=>{h.current?e.fnDoSearch(j):h.current=!0}),[j]),Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-314,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(kb,{open:o,conditionsObj:j,fnHandleClose:()=>b(!1),fnHandleOK:e=>{const t=0===e.includes.length?[]:e.includes.split(",").map((e=>e.trim())),a=0===e.excludes.length?[]:e.excludes.split(",").map((e=>e.trim()));u(Object(d.a)(Object(d.a)({},j),{},{file_types:e.file_types,log_types:e.log_types,includes:t,excludes:a})),b(!1)}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(js.a,{name:"userID",placeholder:i("ID"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:e.searchObj.userID,inputProps:{"aria-label":"Search"},onChange:t=>e.fnSetSearchObj(t.target.name,t.target.value)})})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>""===e.searchObj.userID?(a(Object(U.d)({message:i("USER_ERROR_MESSAGE_3")})),!1):(e.fnGetUserLogs(),!0),children:i("SEARCH")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>e.totalInfo.isSearch?(b(!0),!0):(a(Object(U.d)({message:i("INSTANT_LOGS_ERROR_MESSAGE_1")})),!1),children:i("INSTANT_LOGS_TITLE")}),Object(g.jsx)(wb.a,{row:!0,className:"row",children:Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:!e.searchObj.omitServer,onChange:t=>{e.fnSetSearchObj("omitServer",!e.searchObj.omitServer)},name:"omitServer"}),label:i("INSTANT_LOGS_OMIT_SERVER")})}),Object(g.jsxs)("div",{className:"date-wrapper",children:[Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:i("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(Ib.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd hh:mm a",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},onBlur:t=>{const a=bt.a.getStringToDate(t.target.value.replaceAll("/","-"));isNaN(a.getTime())||e.searchObj.startDate.getTime()===a.getTime()||e.fnSetSearchObj("startDate",a)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(Ib.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd hh:mm a",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},onBlur:t=>{const a=bt.a.getStringToDate(t.target.value.replaceAll("/","-"));isNaN(a.getTime())||e.searchObj.endDate.getTime()===a.getTime()||e.fnSetSearchObj("endDate",a)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(j),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]})]}),Object(g.jsxs)("div",{className:t.searchInfo,children:[Object(g.jsxs)("div",{className:"col",children:[Object(g.jsxs)("span",{children:[i("INSTANT_LOGS_FILE_TYPES"),": "]}),Object(g.jsx)("div",{className:"value",children:j.file_types.map(((e,t)=>0===t?Object(g.jsx)("span",{children:e}):Object(g.jsxs)("span",{children:[", ",e]})))})]}),Object(g.jsxs)("div",{className:"col",children:[Object(g.jsxs)("span",{children:[i("INSTANT_LOGS_LOG_TYPES"),": "]}),Object(g.jsx)("div",{className:"value",children:j.log_types.map(((e,t)=>0===t?Object(g.jsx)("span",{children:e}):Object(g.jsxs)("span",{children:[", ",e]})))})]}),Object(g.jsxs)("div",{className:"col",children:[Object(g.jsxs)("span",{children:[i("INSTANT_LOGS_INCLUDES"),": "]}),Object(g.jsx)("div",{className:"value",children:j.includes.map(((e,t)=>0===t?Object(g.jsx)("span",{children:e}):Object(g.jsxs)("span",{children:[", ",e]})))})]}),Object(g.jsxs)("div",{className:"col",children:[Object(g.jsxs)("span",{children:[i("INSTANT_LOGS_EXCLUDES"),": "]}),Object(g.jsx)("div",{className:"value",children:j.excludes.map(((e,t)=>0===t?Object(g.jsx)("span",{children:e}):Object(g.jsxs)("span",{children:[", ",e]})))})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Db,{}),Object(g.jsx)(wl.a,{children:e.data.map(((e,t)=>{let a="";switch(e.file_type){case 1:a="Engine";break;case 2:a="Collector";break;case 3:a="Agent";break;default:a="Server"}return Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.log_type}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateTimeString(e.logged_at)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.message})]},e.id)}))})]})})]}),Object(g.jsx)(Di.a,{className:"flex-shrink-0",component:"div",count:e.totalInfo.total_rows,rowsPerPage:j.rows_per_page,rowsPerPageOptions:[100,250,500],page:O,labelRowsPerPage:i("ROW_PER_PAGE_LABEL"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return"".concat(-1!==n?n:a," \uc911 ").concat(t,"-").concat(a)},backIconButtonProps:{"aria-label":i("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":i("PAGE_NEXT_BTN_LABEL")},onChangePage:(t,a)=>{e.fnGetLogsPage(a),p(a),c.current.scrollTop=0},onChangeRowsPerPage:e=>{p(1),u(Object(d.a)(Object(d.a)({},j),{},{rows_per_page:Number(e.target.value)})),c.current.scrollTop=0}})]})};var Fb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/instantLogs",component:function(){const[e,t]=s.a.useState(!1),a=s.a.useRef(null),n=new Date,[c,l]=s.a.useState({startDate:new Date(n.getFullYear(),n.getMonth(),n.getDate()),endDate:new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59),userID:"",omitServer:!0}),[r,i]=s.a.useState({total_rows:0,total_pages:0,isSearch:!1}),[o,b]=s.a.useState([]);let j=0;function u(e){Object(on.p)(Object(d.a)(Object(d.a)({},e),{},{start_time:bt.a.getDateTimeString(c.startDate),end_time:bt.a.getDateTimeString(c.endDate)})).then((e=>{e.result&&e.total_rows>0?(i({total_rows:e.total_rows,total_pages:e.total_pages,isSearch:!0}),O(1)):(b([]),t(!1))})).catch((e=>{t(!1)}))}function O(e){Object(on.q)(e).then((e=>{b(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Ub,{loading:e,searchObj:c,totalInfo:r,data:o,setLoading:t,fnGetLogsPage:e=>O(e),fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnGetUserLogs:()=>{t(!0),(async()=>{(await Object(on.d)(c.userID,bt.a.getDateString(c.startDate),bt.a.getDateString(c.endDate),c.omitServer)).result&&(j=setInterval((()=>{Object(on.e)().then((e=>{console.log(e),e.client_status>=2&&e.server_status>=2&&(clearInterval(j),u({file_types:["engine","collector","agent","server"],log_types:["trace","info","warn","err","critical"],includes:[],excludes:[],rows_per_page:100}))}))}),1e3))})()},fnDoSearch:e=>{t(!0),u(e)}}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const Wb=Object(M.a)((e=>({tr:{"& .log_types":{width:120},"& .ip_addr":{width:162},"& .date_time":{width:195}}})));var Hb=function(e){const{t:t}=Object(jt.a)("docbase"),a=Wb(),n=[{id:"logged_at",align:"center",className:"date_time",disablePadding:!1,label:t("DATE"),isSearch:!1,sort:!1},{id:"log_type",align:"center",className:"log_types",disablePadding:!1,label:t("INSTANT_LOGS_LOG_TYPES"),isSearch:!1,sort:!1},{id:"ref",align:"left",className:"left",disablePadding:!1,label:t("NOTE"),isSearch:!1,sort:!1},{id:"ip_address",align:"left",className:"left ip_addr",disablePadding:!1,label:t("IP_ADDRESS"),isSearch:!1,sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:Object(G.a)(e.className),align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:Object(g.jsx)("span",{className:"align-middle",children:e.label})},e.id)),this)})})};const zb=Object(M.a)((e=>({root:{"& .search-form-wrapper":{width:"100%",marginLeft:10,"&>.MuiButton-root":{width:"fit-content",marginRight:5},"& .MuiFormControlLabel-root":{marginLeft:0,marginRight:0},"& .date-wrapper":{display:"flex",flex:"1 1 auto",flexFlow:"row-reverse"}}},datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:165,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"".concat(window.innerHeight-296,"px")}})));var Bb=function(e){const t=zb(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),[o,d]=s.a.useState(1);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-296,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{name:"userID",placeholder:i("ID"),variant:"outlined",fullWidth:!0,className:"search-input",value:e.searchObj.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:e.searchObj.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>e.fnSetSearchObj("userID",""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:t=>e.fnSetSearchObj(t.target.name,t.target.value)})})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>""===e.searchObj.userID?(a(Object(U.d)({message:i("USER_ERROR_MESSAGE_3")})),!1):(e.fnDoSearch(),!0),children:i("SEARCH")}),Object(g.jsxs)("div",{className:"date-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:i("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(Ib.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd hh:mm a",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},onBlur:t=>{const a=bt.a.getStringToDate(t.target.value.replaceAll("/","-"));isNaN(a.getTime())||e.searchObj.startDate.getTime()===a.getTime()||e.fnSetSearchObj("startDate",a)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(Ib.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd hh:mm a",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},onBlur:t=>{const a=bt.a.getStringToDate(t.target.value.replaceAll("/","-"));isNaN(a.getTime())||e.searchObj.endDate.getTime()===a.getTime()||e.fnSetSearchObj("endDate",a)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Hb,{}),Object(g.jsx)(wl.a,{children:e.data.map(((e,t)=>{let a="";switch(e.log_type){case 1:a=i("CLIENT_RUNNING_TYPE_START");break;case 2:a=i("CLIENT_RUNNING_TYPE_STOP");break;case 3:a=i("CLIENT_RUNNING_TYPE_IGNORE");break;case 4:a=i("CLIENT_RUNNING_TYPE_LOGOFF");break;case 5:a=i("CLIENT_RUNNING_TYPE_ABORTED");break;default:a=""}return Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.logged_at)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ref}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ip_address})]},e.id)}))})]})}),Object(g.jsx)(Di.a,{className:"flex-shrink-0",component:"div",count:e.totalInfo.total_rows,rowsPerPage:e.searchObj.rowsPerPage,rowsPerPageOptions:[100,250,500],page:o,labelRowsPerPage:i("ROW_PER_PAGE_LABEL"),labelDisplayedRows:e=>{let{from:t,to:a,count:n}=e;return"".concat(-1!==n?n:a," \uc911 ").concat(t,"-").concat(a)},backIconButtonProps:{"aria-label":i("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":i("PAGE_NEXT_BTN_LABEL")},onChangePage:(t,a)=>{e.fnGetLogsPage(a),d(a),c.current.scrollTop=0},onChangeRowsPerPage:t=>{d(1),e.fnSetSearchObj("rowsPerPage",Number(t.target.value)),c.current.scrollTop=0}})]})})};var Kb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientRunningLog",component:function(){Object(m.b)();const[e,t]=s.a.useState(!1),a=s.a.useRef(null),{t:n}=Object(jt.a)("docbase"),c=new Date,[l,r]=s.a.useState({startDate:new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0),endDate:new Date(c.getFullYear(),c.getMonth(),c.getDate(),23,59,59),userID:"",rowsPerPage:100}),[i,o]=s.a.useState({total_rows:0,total_pages:0}),[b,j]=s.a.useState([]);function u(e){Object(on.o)(e).then((e=>{j(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Bb,{loading:e,searchObj:l,totalInfo:i,data:b,setLoading:t,fnGetLogsPage:e=>u(e),fnSetSearchObj:(e,t)=>r(Object(d.a)(Object(d.a)({},l),{},{[e]:t})),fnDoSearch:()=>{t(!0),t(!0),(async()=>{const e=await Object(on.n)(l.userID,bt.a.getDateTimeString(l.startDate),bt.a.getDateTimeString(l.endDate),l.rowsPerPage);console.log(e),e.result?(o({total_rows:e.total_rows,total_pages:e.total_pages}),u(1)):(j([]),t(!1))})()}}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const Yb=(e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/removeClient",{user_id:Va.a.encryptAES(s,e,"utf8","hex"),mac_address:Va.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.result):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})),Vb=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getStorageAccess",{token:n}).then((a=>{a.result?e(a.storages.sort(((e,t)=>e.storage_type>t.storage_type?1:e.storage_type===t.storage_type?0:-1))):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),Xb=(e,t,a,n)=>new Promise(((s,c)=>{Object(Xa.d)(((l,r)=>{Ya.a.sendPost("/dlpapi/setStorageAccess",{storage_type:e,read:t,write:a,execute:n,token:r}).then((e=>{e.result?s(e.result):(Ya.a.printError(e),c(e))})).finally((()=>{}))}))})),qb=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getPathStorageAccess",{token:n}).then((n=>{n.result?e(n.storages.map((e=>(e.path=Va.a.decryptAES(a,e.path,"hex","utf8"),e.path_regex=Va.a.decryptAES(a,e.path_regex,"hex","utf8"),e)))):(Ya.a.printError(n),t(n))})).finally((()=>{}))}))})),Jb=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getPrograms",{token:n}).then((a=>{a.result?e(a.programs):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),Zb=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/getWhiteURLs",{group_id:e&&""!==e?e:0,token:s}).then((s=>{if(s.result){const a=[],c=[];let l="",r="";s.urls.forEach((t=>{t.name_ex=Va.a.decryptAES(n,t.name,"hex","utf8"),t.name=t.name_ex.replace("".concat(e,"_"),""),l=Va.a.decryptAES(n,t.url,"hex","utf8"),r=Va.a.decryptAES(n,t.url_regex,"hex","utf8"),""!==l&&l.indexOf("##blocksite##")>=0||""!==r&&r.indexOf("##blocksite##")>=0?(t.url=l.replaceAll("##blocksite##",""),t.url_regex=r.replaceAll("##blocksite##",""),c.push(t)):(t.url=l.replaceAll("##whitesite##",""),t.url_regex=r.replaceAll("##whitesite##",""),a.push(t))})),t({uploadURL:a,blockURL:c})}else Ya.a.printError(s),a(s)})).finally((()=>{}))}))})),Qb=(e,t,a,n)=>new Promise(((s,c)=>{Object(Xa.d)(((l,r)=>{let i="".concat(t,"_").concat(e);i=i.length>50?i.slice(0,50):i,Ya.a.sendPost("/dlpapi/registerWhiteURL",{name:Va.a.encryptAES(l,i,"utf8","hex"),group_id:t&&""!==t?t:0,url:Va.a.encryptAES(l,a,"utf8","hex"),url_regex:Va.a.encryptAES(l,n,"utf8","hex"),token:r}).then((e=>{e.result?s(e.result):(Ya.a.printError(e),c(e))})).finally((()=>{}))}))})),$b=(e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/removeWhiteURL",{name:Va.a.encryptAES(s,e,"utf8","hex"),group_id:t&&""!==t?t:0,token:c}).then((e=>{e.result?a(e.result):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})),ej=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getNetworks",{token:n}).then((a=>{a.result?e(a.networks):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),tj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/getDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),aj=(e,t,a,n,s,c,l,r,i,o,d,b,j,u,O,p,h,m,_,f,g,E,x)=>new Promise(((N,S)=>{Object(Xa.d)(((T,v)=>{Ya.a.sendPost("/dlpapi/setDefaultUserPolicy",{group_id:e,execute_control:t,network_control:a,takeout_approving:n,bluetooth:c,bluetooth_pairing:l,messenger:r,install:i,mount:s,airdrop:o,printing:d,token:v,allow_release_storage:b,allow_release_network:j,allow_release_execute:u,allow_release_upload_url:O,allow_release_bluetooth:p,allow_release_messenger:h,allow_release_airdrop:m,allow_release_printing:_,max_release_duration_months:f,max_release_duration_days:g,max_release_duration_hours:E,max_release_duration_minutes:x}).then((e=>{e.result?N(e.result):(Ya.a.printError(e),S(e))})).finally((()=>{}))}))})),nj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e.result):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),sj=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getExecuteControls",{token:n}).then((a=>{a.result?e(a.controls):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),cj=(e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/setExecuteControl",{group_id:e,program:t,token:c}).then((e=>{e.result?a(e.control_id):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})),lj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeExecuteControl",{control_id:e,token:s}).then((e=>{e.result?t(e.control_id):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),rj=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getNetworkControls",{token:n}).then((a=>{a.result?e(a.controls):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),ij=(e,t,a,n,s)=>new Promise(((c,l)=>{Object(Xa.d)(((r,i)=>{Ya.a.sendPost("/dlpapi/registerNetworkControl",{group_id:e,program:t,network_name:a,inbound_ports:n,outbound_destinations:s,token:i}).then((e=>{e.result?c(e.result):(Ya.a.printError(e),l(e))})).finally((()=>{}))}))})),oj=(e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/updateNetworkControl",{control_id:e,group_id:t,program:a,network_name:n,inbound_ports:s,outbound_destinations:c,token:o}).then((e=>{e.result?l(e.result):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})),dj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeNetworkControl",{control_id:e,token:s}).then((e=>{e.result?t(e.result):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),bj=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getGrantAccesses",{token:n}).then((a=>{a.result?e(a.grants):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))})),jj=(e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/grantAccess",{group_id:e,program:t,storage:a,readable:n,writable:s,executable:c,token:o}).then((e=>{e.result?l(e.grant_id):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})),uj=(e,t,a,n,s,c,l)=>new Promise(((r,i)=>{Object(Xa.d)(((o,d)=>{Ya.a.sendPost("/dlpapi/updateGrantAccess",{grant_id:e,group_id:t,program:a,storage:n,readable:s,writable:c,executable:l,token:d}).then((e=>{e.result?r(e.grant_id):(Ya.a.printError(e),i(e))})).finally((()=>{}))}))})),Oj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeGrantAccess",{grant_id:e,token:s}).then((e=>{e.result?t(e.grant_id):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),pj=(e,t,a)=>new Promise(((n,s)=>{Object(Xa.d)(((c,l)=>{Ya.a.sendPost("/dlpapi/approveReleaseBlocking",{rid:e,approve:t,reason_rejected:a?Va.a.encryptAES(c,a,"utf8","hex"):"",token:l}).then((e=>{e.result?n(e.result):(Ya.a.printError(e),s(e))})).finally((()=>{}))}))})),hj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/stopReleaseBlocking",{rid:e,token:s}).then((e=>{e.result?t(e.result):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),mj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/inquiryPrintLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Va.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Va.a.decryptAES(n,e.user_name,"hex","utf8"),e.job_name=Va.a.decryptAES(n,e.job_name,"hex","utf8"),e.printer_uri=Va.a.decryptAES(n,e.printer_uri,"hex","utf8"),e.job_state_message=Va.a.decryptAES(n,e.job_state_message,"hex","utf8"),e.job_state_reasons=Va.a.decryptAES(n,e.job_state_reasons,"hex","utf8"),e.control_info=Va.a.decryptAES(n,e.control_info,"hex","utf8"),e.exec_path=e.exec_path?Va.a.decryptAES(n,e.exec_path,"hex","utf8"):"-",e.signing_id=e.signing_id?Va.a.decryptAES(n,e.signing_id,"hex","utf8"):"-",e)))):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),_j=(e,t,a,n,s,c,l,r,i)=>new Promise(((o,d)=>{Object(Xa.d)(((b,j)=>{Ya.a.sendPost("/dlpapi/inquiryClientAccessLogs",{user_id:e&&""!==e?Va.a.encryptAES(b,e,"utf8","hex"):"",user_name:a&&""!==a?Va.a.encryptAES(b,a,"utf8","hex"):"",client_id:t,log_group:n,start_date:s,end_date:c,order_ascending:l,rows_per_page:i,log_type:r,token:j}).then((e=>{e.result?o({rows:e.total_rows,pages:e.total_pages}):(Ya.a.printError(e),d(e))})).finally((()=>{}))}))})),fj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/inquiryClientAccessLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Va.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Va.a.decryptAES(n,e.user_name,"hex","utf8"),e.args=e.args.map((e=>Va.a.decryptAES(n,e,"hex","utf8"))),e.path=Va.a.decryptAES(n,e.path,"hex","utf8"),e.source_path=Va.a.decryptAES(n,e.source_path,"hex","utf8"),e.dest_path=Va.a.decryptAES(n,e.dest_path,"hex","utf8"),e.signing_id=Va.a.decryptAES(n,e.signing_id,"hex","utf8"),e.hash=Va.a.decryptAES(n,e.hash,"hex","utf8"),e.parent_signing_id=Va.a.decryptAES(n,e.parent_signing_id,"hex","utf8"),e.parent_hash=Va.a.decryptAES(n,e.parent_hash,"hex","utf8"),e.parent_args=e.parent_args.map((e=>Va.a.decryptAES(n,e,"hex","utf8"))),e.local_endpoint=Va.a.decryptAES(n,e.local_endpoint,"hex","utf8"),e.remote_endpoint=Va.a.decryptAES(n,e.remote_endpoint,"hex","utf8"),e.url=Va.a.decryptAES(n,e.url,"hex","utf8"),e.files=e.files.map((e=>Va.a.decryptAES(n,e,"hex","utf8"))),e.log=Va.a.decryptAES(n,e.log,"hex","utf8"),e)))):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),gj=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getUserGroups",{token:n}).then((n=>{n.result?e(n.groups.map((e=>(e.name=Va.a.decryptAES(a,e.name,"hex","utf8"),e.desc=Va.a.decryptAES(a,e.desc,"hex","utf8"),e)))):(Ya.a.printError(n),t(n))})).finally((()=>{}))}))})),Ej=(e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/registerUserGroup",{name:Va.a.encryptAES(s,e,"utf8","hex"),desc:Va.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})),xj=(e,t,a)=>new Promise(((n,s)=>{Object(Xa.d)(((c,l)=>{Ya.a.sendPost("/dlpapi/updateUserGroup",{group_id:e,name:Va.a.encryptAES(c,t,"utf8","hex"),desc:Va.a.encryptAES(c,a,"utf8","hex"),token:l}).then((e=>{e.result?n(e):(Ya.a.printError(e),s(e))})).finally((()=>{}))}))})),Nj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/getUserGroupMembers",{group_id:e,token:s}).then((e=>{if(e.result){const a={},n=e.users.map((e=>(a[e.user_id]=!0,e)));t({users:n,usersObj:a})}else Ya.a.printError(e),a(e)})).finally((()=>{}))}))})),Sj=(e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/registerUserGroupMember",{group_id:e,user_id:Va.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.result):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})),Tj=()=>new Promise(((e,t)=>{Object(Xa.d)(((a,n)=>{Ya.a.sendPost("/dlpapi/getNonLoggingApps",{token:n}).then((n=>{n.result?e(n.signing_ids.map((e=>(e.signing_id=Va.a.decryptAES(a,e.signing_id,"hex","utf8"),e.desc=Va.a.decryptAES(a,e.description,"hex","utf8"),e.regex=""!==e.regex?Va.a.decryptAES(a,e.regex,"hex","utf8"):"",e.word=""!==e.word?Va.a.decryptAES(a,e.word,"hex","utf8"):"",e)))):(Ya.a.printError(n),t(n))})).finally((()=>{}))}))})),vj=(e,t,a,n)=>new Promise(((s,c)=>{Object(Xa.d)(((l,r)=>{Ya.a.sendPost("/dlpapi/registerNonLoggingApp",{signing_id:Va.a.encryptAES(l,e,"utf8","hex"),desc:Va.a.encryptAES(l,t,"utf8","hex"),word:""!==a?Va.a.encryptAES(l,a,"utf8","hex"):"",regex:""!==n?Va.a.encryptAES(l,n,"utf8","hex"):"",token:r}).then((e=>{e.result?s(e.result):(Ya.a.printError(e),c(e))})).finally((()=>{}))}))})),Rj=e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/unregisterNonLoggingApp",{id:e,token:s}).then((e=>{e.result?t(e.result):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})),yj=Object(ne.d)({name:"dlp",initialState:{holdFiles:[]},reducers:{testReducers:(e,t)=>{e.auditLogObj.rowsPerPage=t.payload.value}},extraReducers:{}}),{testReducers:Cj}=yj.actions;yj.reducer;const Aj=["children","classes","onClose"],Lj=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Aj);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),wj=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}}})));function Ij(e){const t=wj(),{t:a}=Object(jt.a)("docbase");return console.log(e.logObj),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Lj,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.user_name?"".concat(e.logObj.user_name,"(").concat(e.logObj.user_id,"-").concat(e.logObj.client_id,")"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("mac")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.mac_address||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("VERSION")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.version||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("LOGIN")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.logged_in?a("LOGIN"):a("NO_LOGIN")}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("CONNECTED")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.connected?a("CONNECTED"):a("NOT_CONNECTED")})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("LOGGED_IN_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.last_logged_in_at?bt.a.getDateStringToLocalDate(e.logObj.last_logged_in_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("LOGGED_OFF_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.last_logged_off_at?bt.a.getDateStringToLocalDate(e.logObj.last_logged_off_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("CHECKED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.health_last_checked_at?bt.a.getDateStringToLocalDate(e.logObj.health_last_checked_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_HEALTH_MODULE_SECURE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.health_module_secure?"ACTIVE":"INACTIVE"})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("SIP")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.sip_enable?a("ACTIVE"):a("INACTIVE")}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("EPS")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"DLP_HEALTH_MODULE_EPS-name"),children:e.logObj.health_module_eps?a("ACTIVE"):a("INACTIVE")})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_HEALTH_MODULE_NETWORK")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.health_module_network?a("ACTIVE"):a("INACTIVE")}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_HEALTH_MODULE_CHROME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.health_module_chrome<0?a("NOT_INSTALLED"):1===e.logObj.health_module_chrome?a("ACTIVE"):a("INACTIVE")})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("BLUETOOTH_LIST")})}),Object(g.jsxs)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:[console.log(e),e.bluetoothDevices.map((e=>Object(g.jsxs)("p",{children:[Object(g.jsx)("span",{children:e.device_name})," ||",Object(g.jsx)("span",{children:e.device_type})," ||",Object(g.jsx)("span",{children:e.device_address})]})))]})]})]})]})})}const Pj=["children","classes","onClose"],Dj=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Pj);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Mj=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1508}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},table:{"& .path":{minWidth:"600px",width:"600px",maxWidth:"600px"},"& .mid":{minWidth:"250px",width:"250px",maxWidth:"250px",whiteSpace:"break-spaces",wordBreak:"break-all",fontSize:12},"& .type":{minWidth:"70px",width:"70px",maxWidth:"70px"},"& .text":{whiteSpace:"break-spaces"},"& .MuiTableBody-root>.MuiTableRow-root>.MuiTableCell-root":{fontSize:12}}})));function kj(e){const t=Mj(),{t:a}=Object(jt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Dj,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc124\uce58 \ubaa9\ub85d")}),Object(g.jsx)(el.a,{children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:t.table,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy table_col_date",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_LOGGED_AT")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:a("TYPE")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_PATH")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_SIGNING_ID")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_HASH")})]})}),Object(g.jsx)(wl.a,{children:e.list.map((e=>{const t=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.path)})]});return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Ll.a,{className:"type",align:"center",component:"td",scope:"row",children:e.install?a("INSTALL"):a("DELETE")}),Object(g.jsx)(Ll.a,{className:"path left",align:"left",component:"td",scope:"row",children:t}),Object(g.jsx)(Ll.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.signing_id})}),Object(g.jsx)(Ll.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.hash})})]})}))})]})})]})})}var Gj=s.a.memo((e=>{let{customCols:t,data:a,order:n,handleRequestSort:s,selectedMap:c,popUserModify:l,selectUser:r,handleChange:i,selectAll:o}=e;const{sysConfigure:d}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{t:b}=Object(jt.a)("docbase"),j=Object.keys(c);return Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:t.map((e=>d.OSR_support||"no_sync_osr"!==e.id&&"local_account"!==e.id?2===d.menu_support_type&&"allow_multiple_logins"===e.id?"":"check_id"===e.id?Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:j.length>0&&j.lengtho(),onClick:e=>o()})}):Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:n.id===e.id&&n.direction,children:e.sort?Object(g.jsx)(Bl.a,{active:n.id===e.id,direction:n.direction,onClick:t=>s(t,e.id),children:b(e.labelKey)}):b(e.labelKey)},e.id):""),void 0)})}),Object(g.jsx)(wl.a,{children:a.map((e=>{const a="".concat(e.client_id,"#").concat(e.user_id)in c;return Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,children:t.map((t=>"check_id"===t.id?Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>r(e.client_id,e.user_id,e.mac_address)})}):"user_id"===t.id?Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)("span",{className:"tableLink",onClick:t=>{t.stopPropagation(),l(e.user_id)},children:e.user_id})}):"shared_pc"===t.id?Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.shared_pc?"Y":"N"}):"orgs"===t.id?Object(g.jsx)(Ll.a,{id:t.id,name:t.name,className:t.className,align:t.align,children:e[t.id].map(((a,n)=>0===e[t.id].length?"":Object(g.jsx)(Je.a,{title:a.disp_path,arrow:!0,interactive:!0,placement:"bottom",children:Object(g.jsx)("span",{children:0===n?bt.a.splitLastDelimiterString(a.disp_path):" | ".concat(bt.a.splitLastDelimiterString(a.disp_path))})})))}):Object(g.jsx)(Kl,{id:t.id,name:t.name,className:t.className,align:t.align,isUpdatable:t.isUpdatable,value:e[t.id],onChange:t=>{i(t,e.user_id)},items:t.items})))},e.user_id)}))})]})}));const Uj=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!0},{id:"client_id",align:"center",className:"center",disablePadding:!1,labelKey:"CID",sort:!0,isUpdatable:!1,default:!0},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"policy_name",align:"center",className:"center",disablePadding:!1,labelKey:"POLICY_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"version",align:"left",className:"left",disablePadding:!1,labelKey:"CLIENT_INFO_VERSION",sort:!0,isUpdatable:!1,default:!1},{id:"mac_address",align:"center",className:"center",disablePadding:!1,labelKey:"MAC_ADDRESS",sort:!0,isUpdatable:!1,default:!1},{id:"last_logged_in_at",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_LAST_LOGIN_AT",sort:!0,isUpdatable:!1,default:!1},{id:"shared_pc",align:"center",className:"center",disablePadding:!1,labelKey:"LOGIN_PC",sort:!0,isUpdatable:!1,default:!1},{id:"connected",align:"center",className:"",disablePadding:!1,labelKey:"CONNECTED",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_secure",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_SECURE",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_eps",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_EPS",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_network",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_NETWORK",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_chrome",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_CHROME",sort:!0,isUpdatable:!1,default:!1}],Fj=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!0},{id:"client_id",align:"center",className:"center",disablePadding:!1,labelKey:"CID",sort:!0,isUpdatable:!1,default:!0},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"policy_name",align:"center",className:"center",disablePadding:!1,labelKey:"POLICY_NAME",sort:!0,isUpdatable:!1,default:!0}],Wj=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!1},{id:"client_id",align:"center",className:"center",disablePadding:!1,labelKey:"CID",sort:!0,isUpdatable:!1,default:!0},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"logged_in",align:"center",className:"",disablePadding:!1,labelKey:"LOGIN",sort:!0,isUpdatable:!1,default:!1},{id:"connected",align:"center",className:"",disablePadding:!1,labelKey:"CONNECTED",sort:!0,isUpdatable:!1,default:!1},{id:"last_logged_in_at",align:"center",className:"",disablePadding:!1,labelKey:"LOGGED_IN_AT",sort:!0,isUpdatable:!1,default:!1},{id:"last_logged_off_at",align:"center",className:"",disablePadding:!1,labelKey:"LOGGED_OFF_AT",sort:!0,isUpdatable:!1,default:!1}],Hj=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1,default:!1},{id:"client_id",align:"center",className:"center",disablePadding:!1,labelKey:"CID",sort:!0,isUpdatable:!1,default:!0},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1,default:!0},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1,default:!0},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1,default:!0},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1,default:!0},{id:"connected",align:"center",className:"",disablePadding:!1,labelKey:"CONNECTED",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_secure",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_SECURE",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_eps",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_EPS",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_network",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_NETWORK",sort:!0,isUpdatable:!1,default:!1},{id:"health_module_chrome",align:"center",className:"",disablePadding:!1,labelKey:"DLP_HEALTH_MODULE_CHROME",sort:!0,isUpdatable:!1,default:!1}],zj=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{position:"relative",height:"calc(100vh - 320px)",overflow:"auto",borderRadius:6},icon:{width:20,height:20}})));var Bj=function(){const e=zj(),t=Object(m.b)(),a=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),{users:l,usersObj:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[i,o]=Object(n.useState)(!0),[b,j]=Object(n.useState)({id:"user_id",direction:"asc"}),[u,O]=Object(n.useState)(Uj),[p,h]=Object(n.useState)(void 0),[_,f]=Object(n.useState)(void 0),[E,x]=Object(n.useState)(0),[N,S]=Object(n.useState)({}),[T,v]=Object(n.useState)(!1),[y,C]=Object(n.useState)([]),[A,L]=Object(n.useState)([]),[w,P]=Object(n.useState)({client:0,connected:0,loginPC:0,defaultPC:0}),[D,M]=Object(n.useState)(1),[k,F]=Object(n.useState)(0),[W,H]=Object(n.useState)(20),[z,B]=Object(n.useState)(0),[Y,V]=Object(n.useState)(""),[X,q]=Object(n.useState)(0),[J,Z]=Object(n.useState)({}),[$,ee]=Object(n.useState)(""),[ae,ne]=s.a.useState({open:!1,logObj:{}}),[se,ce]=Object(n.useState)(!1),[le,re]=Object(n.useState)(!1),[ie,oe]=s.a.useState({open:!1,list:[]}),[de,be]=s.a.useState([]);c("NAME"),c("ID"),c("ORG_NAME"),Object(n.useEffect)((()=>{l.length>0?ue(""):(S(bt.a.getLocalStorage("user_dlp_col")),t(Object(cn.h)()))}),[t,r]),Object(n.useEffect)((()=>{V("")}),[X]),Object(n.useEffect)((()=>{p&&je(Y),Z({})}),[Y,D,k,b]),Object(n.useEffect)((()=>{C(A.slice(W*z,W*(z+1)))}),[z,W,A]);const je=Object(n.useCallback)(Object(ul.debounce)((e=>{ue(e)}),500),[l,X,D,k,b]);Object(n.useEffect)((()=>{if(0===E){const e=[...Uj];Object.keys(N).forEach((t=>{e.push(N[t])})),O(e)}else if(1===E)O(Fj);else if(2===E)O(Wj);else if(3===E)O(Hj);else if(1===E||4===E){const e=Uj.filter((e=>e.default));Object.keys(N).forEach((t=>{e.push(N[t])})),O(e)}}),[E,N]);const ue=async e=>{o(!0);const t=await(a="",new Promise(((e,t)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/clientsInfo",{user_id:a&&""!==a?Va.a.encryptAES(n,a,"utf8","hex"):"",token:s}).then((a=>{if(a.result){const t={};for(const e of a.clients)t[Va.a.decryptAES(n,e.user_id,"hex","utf8")]=e.clients.map((e=>{const t=Object(d.a)({},e);return t.mac_address=Va.a.decryptAES(n,e.mac_address,"hex","utf8"),t}));e(t)}else Ya.a.printError(a),t(a)})).finally((()=>{}))}))})));var a;let n={};p?n=Object(d.a)({},p):(n=await Object(rn.k)(!0),h(Object(d.a)({},n)));let s={};if(_)s=Object(d.a)({},_);else{const e=await gj();for(const t of e){const e=await Nj(t.id);for(const a of e.users)s[a.user_id]=t.name}f(s)}console.log("policyGroup",s);const r=Object.keys(n);let i=0,j=0,u=0,O=0;const m=[];l.forEach((a=>{const l=t[a.user_id];if(l&&l.length>0)l.forEach((t=>{const l=Object(d.a)(Object(d.a)({},a),t);l.client_info=c("INSTALL"),l.policy_name=s[l.user_id]||"",l.logged_in=l.logged_in?c("LOGIN"):"-",l.connected=t.connected?c("CONNECTED"):c("NOT_CONNECTED"),t.connected?(l.health_module_secure=1===l.health_module_secure?c("CLIENT_RUNNING_TYPE_START"):c("CLIENT_RUNNING_TYPE_STOP"),l.health_module_eps=1===l.health_module_eps?c("ACTIVE"):c("INACTIVE"),l.health_module_network=1===l.health_module_network?c("ACTIVE"):c("INACTIVE"),l.health_module_chrome=l.health_module_chrome<0?c("NOT_INSTALLED"):1===l.health_module_chrome?c("ACTIVE"):c("INACTIVE")):(l.health_module_secure="-",l.health_module_eps="-",l.health_module_network="-",l.health_module_chrome="-"),l.last_logged_in_at=bt.a.getDateStringToLocalDate(l.last_logged_in_at),l.last_logged_off_at=bt.a.getDateStringToLocalDate(l.last_logged_off_at),i++,t.connected&&j++,t.shared_pc?u++:O++;const o=[];let b="";r.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===l.user_id&&(b+="".concat(bt.a.splitLastDelimiterString(e.disp_path)," | "),o.push(e))}))})),l.orgs=o,""!==e&&-1===l.name.indexOf(e)&&-1===l.user_id.indexOf(e)&&-1===b.indexOf(e)||2!==D&&(3!==D||t.connected)&&(4!==D||t.connected)&&(5!==D||t.shared_pc)&&(6===D&&t.shared_pc||m.push(l))}));else{if(1===D)return;if(k>0)return;const t=Object(d.a)({},a);t.client_info=c("NOT_INSTALLED"),t.logged_in="-",t.connected=c("NOT_CONNECTED"),t.health_module_secure="-",t.health_module_eps="-",t.health_module_network="-",t.health_module_chrome="-",t.last_logged_in_at="-",t.last_logged_off_at="-";const s=[];let l="";if(r.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===t.user_id&&(l+="".concat(bt.a.splitLastDelimiterString(e.disp_path)," | "),s.push(e))}))})),t.orgs=s,""!==e&&-1===t.name.indexOf(e)&&-1===t.user_id.indexOf(e)&&-1===t.orgs.indexOf(e))return;m.push(t)}}));const g=[...m].sort(((e,t)=>{const{id:a,direction:n}=b,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:sne({open:!1,logObj:{}})}),Object(g.jsx)(kj,{open:ie.open,list:ie.list,fnHandleClose:()=>oe({open:!1,list:[]})}),Object(g.jsx)(Ml,{open:le,isDlp:!0,fnHandleClose:()=>{re(!1)}}),Object(g.jsx)(Wl,{open:se,currentUserID:$,isDlp:!0,fnChangeSize:(e,t,a)=>{},fnHandleClose:e=>{ee(""),ce(!1)}}),Object(g.jsx)(Ql,{open:T,pickedCol:N,fnSelectedCol:e=>{const t=Object(d.a)({},N);e.id in t?delete t[e.id]:t[e.id]=e,S(t)},fnHandleClose:()=>v(!1),fnSetColumn:()=>{bt.a.setLocalStorage("user_dlp_col",N),v(!1)}}),Object(g.jsx)(Vt.a,{style:{marginBottom:10},children:Object(g.jsxs)("div",{className:"searchWrapper",children:[Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:c("SEARCH")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:Y,placeholder:c("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Y&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>V(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>V(e.target.value)})})}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(te.a,{variant:"outlined",value:D,onChange:e=>M(e.target.value),children:[Object(g.jsx)(Q.a,{value:0,children:c("ALL")}),Object(g.jsx)(Q.a,{value:1,children:"".concat(c("INSTALL"),"(").concat(w.client,")")}),Object(g.jsx)(Q.a,{value:2,children:"".concat(c("NOT_INSTALLED"),"(").concat(l.length-w.client,")")}),Object(g.jsx)(Q.a,{value:3,children:"".concat(c("ONLINE"),"(").concat(w.connected,")")}),Object(g.jsx)(Q.a,{value:4,children:"".concat(c("OFFLINE"),"(").concat(l.length-w.connected,")")}),Object(g.jsx)(Q.a,{value:5,children:"".concat(c("LOGIN_PC"),"(").concat(w.loginPC,")")}),Object(g.jsx)(Q.a,{value:6,children:"".concat(c("DEFAULT_PC"),"(").concat(w.defaultPC,")")})]})})}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsx)(Je.a,{title:c("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{o(!0),(async()=>{const e=Date.now(),t=[];u.forEach((e=>{"check_id"!==e.id&&t.push(c(e.labelKey))}));const a=[];for(const s of A){const e={};for(const t of u)if("orgs"===t.id){let t="";s.orgs.forEach(((e,a)=>{t+=0===a?bt.a.splitLastDelimiterString(e.disp_path):" | ".concat(bt.a.splitLastDelimiterString(e.disp_path))})),e.orgs=t}else"check_id"!==t.id&&(e[t.id]=s[t.id]);a.push(e)}const n=c("DLP_CLIENT_LIST");await hl.a.excelDownload("".concat(n),t,a,null,e),o(!1)})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:c("ROW_PER_PAGE")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto",minWidth:150},children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(te.a,{value:W,size:"small",variant:"outlined",className:"dropdown",onChange:e=>H(e.target.value),children:[Object(g.jsx)(Q.a,{value:10,children:"10\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:20,children:"20\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:50,children:"50\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:100,children:"100\uac74 \ubcf4\uae30"})]})})})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",children:[Object(g.jsxs)("div",{className:"info",children:[Object(g.jsxs)("span",{children:["(",c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:A.length}),c("CNT"),")"]}),Oe>0?Object(g.jsxs)("span",{children:["(",c("SELECTED")," ",Object(g.jsx)("span",{className:"count",children:Oe}),c("CNT"),")"]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)("div",{className:"btnGroup",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_CLIENT_DELETE_TITLE"),content:c("DLP_CLIENT_DELETE_CONTENT"),fnHandleOK:async()=>{let e=!1;for(const t of Object.keys(J))if(""!==J[t].macAddress){await Yb(J[t].userID,J[t].macAddress)||(e=!0)}t(e?Object(U.c)({message:c("DLP_CLIENT_DELETE_FAIL")}):Object(U.d)({message:c("DLP_CLIENT_DELETE_SUCCESS")})),ue(Y)}})}))},children:c("DLP_CLIENT_DELETE_TITLE")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_CLIENT_TITLE_2"),content:c("DLP_CLIENT_MESSAGE_7"),fnHandleOK:()=>{new Promise(((e,t)=>{Ya.a.sendPost("/dlpapi/updateClient",{}).then((a=>{a.result?e(a.result):(Ya.a.printError(a),t(a))})).finally((()=>{}))}))}})}))},children:c("FORCED_UPDATE")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:()=>{re(!0)},children:c("NEW_REGISTRATION")})]})]})]})}),Object(g.jsx)(Vt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:i?Object(g.jsx)(Ot.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(K.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("div",{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Gj,{customCols:u,data:y,order:b,handleRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";b.id===t&&"desc"===b.direction&&(n="asc"),j({direction:n,id:a})}(0,t),selectedMap:J,popUserModify:e=>(e=>{$!==e&&(ee(e),ce(!0))})(e),selectUser:(e,t,a)=>{const n=Object(d.a)({},J);"".concat(e,"#").concat(t)in n?delete n["".concat(e,"#").concat(t)]:n["".concat(e,"#").concat(t)]={clientID:e,userID:t,macAddress:a},Z(n)},selectAll:()=>{if(Object.keys(J).length>0)Z({});else{const e={};A.forEach((t=>{e["".concat(t.client_id,"#").concat(t.user_id)]={clientID:t.client_id,userID:t.user_id,macAddress:t.mac_address}})),Z(e)}},handleChang:(e,t)=>{}})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(A.length/W),color:"primary",onChange:(e,t)=>{B(t-1)}})]})})]})};var Kj={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_client",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Bj,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Yj=["children","classes","onClose"],Vj=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),Xj=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Yj);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),qj=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Jj(e){const t=Object(m.b)(),a=qj(),{t:n}=Object(jt.a)("docbase"),c=s.a.useRef(null),[l,r]=s.a.useState(""),[i,o]=s.a.useState(""),[d,b]=s.a.useState(!1),[j,u]=s.a.useState(!1),[O,p]=s.a.useState(!1);return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(r(e.selectedObj.path),o(e.selectedObj.path_regex),b(e.selectedObj.read),u(e.selectedObj.write),p(e.selectedObj.execute))),()=>{r(""),o("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:Object(G.a)(a.root),open:e.open,TransitionComponent:Vj,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Xj,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:0===e.mode?n("\uac00\uc0c1\ub9e4\uccb4 \ucd94\uac00"):n("\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815")})}),Object(g.jsx)(el.a,{className:Object(G.a)(a.body,"modal-body"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uacbd\ub85c")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"path",value:l,onChange:e=>r(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uacbd\ub85c(\uc815\uaddc\uc2dd)")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"path_regex",value:i,onChange:e=>o(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uc77d\uae30")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Ht.a,{select:!0,className:"mb-24",label:n("\uc77d\uae30"),value:d,fullWidth:!0,onChange:e=>b(!d),children:[Object(g.jsx)(Q.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(Q.a,{value:!1,children:"\ucc28\ub2e8"})]})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uc4f0\uae30")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Ht.a,{select:!0,className:"mb-24",label:n("\uc4f0\uae30"),value:j,fullWidth:!0,onChange:e=>u(!j),children:[Object(g.jsx)(Q.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(Q.a,{value:!1,children:"\ucc28\ub2e8"})]})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uc2e4\ud589")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Ht.a,{select:!0,className:"mb-24",label:n("\uc2e4\ud589"),value:O,fullWidth:!0,onChange:e=>p(!O),children:[Object(g.jsx)(Q.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(Q.a,{value:!1,children:"\ucc28\ub2e8"})]})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(l,i,d,j,O):t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815"),content:n("\uac00\uc0c1\ub9e4\uccb4\ub97c \uc218\uc815 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{e.fnHandleUpdate(e.selectedObj.storage_id,l,i,d,j,O)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const Zj=["children","classes","onClose"],Qj=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),$j=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Zj);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),eu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"},"&>.content .text-2":{marginBottom:0}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function tu(e){const t=Object(m.b)(),a=eu(),{t:n}=Object(jt.a)("docbase"),c=s.a.useRef(null),[l,r]=s.a.useState(""),[i,o]=s.a.useState(""),[d,b]=s.a.useState(""),[j,u]=s.a.useState(""),[O,p]=s.a.useState(1);return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(r(e.selectedObj.name),o(e.selectedObj.signing_id),b(e.selectedObj.hash),u(e.selectedObj.program_name),p(e.selectedObj.process_type))),()=>{r(""),o(""),b(""),u("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:Object(G.a)(a.root),open:e.open,TransitionComponent:Qj,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)($j,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:0===e.mode?n("\ud504\ub85c\uadf8\ub7a8 \ucd94\uac00"):n("\ud504\ub85c\uadf8\ub7a8 \uc218\uc815")})}),Object(g.jsx)(el.a,{className:Object(G.a)(a.body,"modal-body"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(tl.a,{className:"text-1",id:"alert-dialog-slide-description",children:n("\ub4f1\ub85d\ubc29\ubc95.")}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:n("codesign -dv --verbose=3 ")}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"name",value:l,onChange:e=>r(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\ud504\ub85c\uadf8\ub7a8 \uc0ac\uc778")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"signing_id",value:i,onChange:e=>o(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:n("\u25c7 codesign \uc815\ubcf4 \uc911 Identifier e.g kr.co.whub.COODOC")}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"hash",value:d,onChange:e=>b(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:n("\u25c7 codesign \uc815\ubcf4 \uc911 CDHash")}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\ud504\ub85c\uadf8\ub7a8 \uba85")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"program_name",value:j,onChange:e=>u(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Ht.a,{select:!0,className:"mb-24",label:n("\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785"),value:O,fullWidth:!0,onChange:e=>p(e.target.value),children:[Object(g.jsx)(Q.a,{value:1,children:"\uc77c\ubc18 \ud504\ub85c\uadf8\ub7a8"}),Object(g.jsx)(Q.a,{value:2,children:"\uc2dc\uc2a4\ud0ec \ud504\ub85c\uadf8\ub7a8"}),Object(g.jsx)(Q.a,{value:3,children:"\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800"}),Object(g.jsx)(Q.a,{value:0,children:"\uc54c \uc218 \uc5c6\ub294 \ud504\ub85c\uadf8\ub7a8"})]})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(l,i,d,j,O):t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\ub85c\ub7a8\uadf8\ub7a8 \uc218\uc815"),content:n("\ud504\ub85c\uadf8\ub7a8\uc744 \uc218\uc815 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{e.fnHandleUpdate(e.selectedObj.id,l,i,d,j,O)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const au=["children","classes","onClose"],nu=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),su=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,au);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Wt.a,{})}):null]}))})),cu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function lu(e){const t=Object(m.b)(),a=cu(),{t:n}=Object(jt.a)("docbase"),c=s.a.useRef(null),[l,r]=s.a.useState(""),[i,o]=s.a.useState(""),[d,b]=s.a.useState("");return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(r(e.selectedObj.name),o(e.selectedObj.inbound_ports),b(e.selectedObj.outbound_destinations))),()=>{r(""),o(""),b("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:Object(G.a)(a.root),open:e.open,TransitionComponent:nu,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(su,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:Object(g.jsxs)("span",{className:"align-middle",children:[0===e.mode?n("\ub124\ud2b8\uc6cc\ud06c \ucd94\uac00"):n("\ub124\ud2b8\uc6cc\ud06c \uc218\uc815")," "]})}),Object(g.jsx)(el.a,{className:Object(G.a)(a.body,"modal-body"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"name",value:l,onChange:e=>r(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uc778\ubc14\uc6b4\ub4dc \ud3ec\ud2b8")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"inbound_ports",value:i,onChange:e=>o(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("\uc544\uc6c3\ubc14\uc6b4\ub4dc \uc8fc\uc18c")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"outbound_destinations",value:d,onChange:e=>b(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(l,i,d):t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\ub124\ud2b8\uc6cc\ud06c \uc218\uc815"),content:n("\ub124\ud2b8\uc6cc\ud06c\ub97c \uc218\uc815 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{e.fnHandleUpdate(e.selectedObj.id,l,i,d)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const ru=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-492,"px"),padding:"0 20px"},icon:{width:20,height:20},btn:{width:"155px!important"},storageAccessTitle:{color:"#fff",background:"#353b48",alignItems:"center",height:50,"&>div":{flex:"1 0 auto"}}})));var iu=function(e){const t=ru(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),{usersObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[b,u]=s.a.useState(0),[O,p]=s.a.useState({pathStorage:!1,program:!1,network:!1,mode:0}),[h,_]=Object(n.useState)(!0),[f,E]=s.a.useState([]),[x,N]=s.a.useState({programs:[],networks:[],storages:[]}),[S,T]=s.a.useState(0),[v,y]=Object(n.useState)({id:"user_id",direction:"asc"}),[C,A]=s.a.useState(""),[L,w]=Object(n.useState)({});async function P(){const e=await Vb();E(e);const t=await qb(),a=await Jb(),n=await ej();N({storages:t,programs:a,networks:n}),_(!1)}function D(){Vb().then((e=>{E(e)}))}function M(e,t){const a=t;let n="desc";v.id===t&&"desc"===v.direction&&(n="asc"),y({direction:n,id:a})}return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-492,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{0===Object.keys(o).length?a(Object(cn.h)()).then((()=>{P()})):P()}),[a]),Object(n.useEffect)((()=>{switch(b){case 0:T(x.storages.length);break;case 1:T(x.programs.length);break;case 2:T(x.networks.length);break;default:T(0)}console.log(x),w({})}),[b,x,C]),h?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Jj,{open:O.pathStorage,selectedObj:L,mode:O.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},O),{},{pathStorage:!1})),fnHandleOk:(e,t,n,s,c)=>{((e,t,a,n,s)=>new Promise(((c,l)=>{Object(Xa.d)(((r,i)=>{Ya.a.sendPost("/dlpapi/addPathStorageAccess",{path:e&&""!==e?Va.a.encryptAES(r,e,"utf8","hex"):"",path_regex:t&&""!==t?Va.a.encryptAES(r,t,"utf8","hex"):"",read:a,write:n,execute:s,token:i}).then((e=>{e.result?c(e.result):(Ya.a.printError(e),l(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(U.d)({message:l("PATH_STORAGE_MESSAGE_3")})),qb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e})),u(0),p(Object(d.a)(Object(d.a)({},O),{},{pathStorage:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PATH_STORAGE_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s,c,r)=>{((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/updatePathStorageAccess",{storage_id:e,path:t&&""!==t?Va.a.encryptAES(i,t,"utf8","hex"):"",path_regex:a&&""!==a?Va.a.encryptAES(i,a,"utf8","hex"):"",read:n,write:s,execute:c,token:o}).then((e=>{e.result?l(e.result):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})))(e,t,n,s,c,r).then((e=>{e&&(a(Object(U.d)({message:l("PATH_STORAGE_MESSAGE_5")})),qb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e})),u(0),p(Object(d.a)(Object(d.a)({},O),{},{pathStorage:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PATH_STORAGE_MESSAGE_6")}))}))}}),Object(g.jsx)(tu,{open:O.program,selectedObj:L,mode:O.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},O),{},{program:!1})),fnHandleOk:(e,t,n,s,c)=>{((e,t,a,n,s)=>new Promise(((c,l)=>{Object(Xa.d)(((r,i)=>{Ya.a.sendPost("/dlpapi/registerProgram",{name:e,signing_id:t,hash:a,program_name:n,process_type:s,token:i}).then((e=>{e.result?c(e.result):(Ya.a.printError(e),l(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_3")})),Jb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e})),u(1),p(Object(d.a)(Object(d.a)({},O),{},{program:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PROGRAM_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s,c,r)=>{((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/updateProgram",{program_id:e,name:t,signing_id:a,hash:n,program_name:s,process_type:c,token:o}).then((e=>{e.result?l(e.result):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})))(e,t,n,s,c,r).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_5")})),Jb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e})),u(1),p(Object(d.a)(Object(d.a)({},O),{},{program:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PROGRAM_MESSAGE_6")}))}))}}),Object(g.jsx)(lu,{open:O.network,selectedObj:L,mode:O.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},O),{},{network:!1})),fnHandleOk:(e,t,n)=>{((e,t,a)=>new Promise(((n,s)=>{Object(Xa.d)(((c,l)=>{Ya.a.sendPost("/dlpapi/registerNetwork",{name:e,inbound_ports:t,outbound_destinations:a,token:l}).then((e=>{e.result?n(e.result):(Ya.a.printError(e),s(e))})).finally((()=>{}))}))})))(e,t,n).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_3")})),ej().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e})),u(2),p(Object(d.a)(Object(d.a)({},O),{},{network:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("NETWORK_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s)=>{((e,t,a,n)=>new Promise(((s,c)=>{Object(Xa.d)(((l,r)=>{Ya.a.sendPost("/dlpapi/updateNetwork",{network_id:e,name:t,inbound_ports:a,outbound_destinations:n,token:r}).then((e=>{e.result?s(e.result):(Ya.a.printError(e),c(e))})).finally((()=>{}))}))})))(e,t,n,s).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_5")})),Jb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e})),u(2),p(Object(d.a)(Object(d.a)({},O),{},{network:!1}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("NETWORK_MESSAGE_6")}))}))}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"dlp-storage-content",children:[Object(g.jsx)("div",{children:l("DLP_POLICY_TITLE")}),Object(g.jsxs)("div",{children:[Object(g.jsxs)("div",{className:"row title",children:[Object(g.jsx)("div",{children:l("DLP_POLICY_STORAGE_TYPE")}),Object(g.jsx)("div",{children:l("AVERAGE_READ")}),Object(g.jsx)("div",{children:l("AVERAGE_WRITE")}),Object(g.jsx)("div",{children:l("CLIENT_RUNNING_TYPE_START")})]}),f.map((e=>{let t="";return 1===e.storage_type?t="COODOC Drive":2===e.storage_type?t="USB":3===e.storage_type&&(t="Network Drive"),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{children:t}),Object(g.jsx)("div",{children:Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",value:e.read,fullWidth:!0,children:Object(g.jsx)(Q.a,{value:!0,children:l("PERMIT")})})}),Object(g.jsx)("div",{children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:e.write,fullWidth:!0,onChange:t=>{Xb(e.storage_type,e.read,!e.write,e.execute).then((e=>{e&&a(Object(U.d)({message:l("DLP_CLIENT_MESSAGE_6")}))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("DLP_CLIENT_MESSAGE_5")}))})).finally((()=>{D()}))},children:[Object(g.jsx)(Q.a,{value:!0,children:l("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:l("BLOCK")})]})}),Object(g.jsx)("div",{children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:e.execute,fullWidth:!0,onChange:t=>{Xb(e.storage_type,e.read,e.write,!e.execute).then((e=>{e&&a(Object(U.d)({message:l("DLP_CLIENT_MESSAGE_6")}))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("DLP_CLIENT_MESSAGE_5")}))})).finally((()=>{D()}))},children:[Object(g.jsx)(Q.a,{value:!0,children:l("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:l("BLOCK")})]})})]})}))]})]}),Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(js.a,{placeholder:l("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:C,inputProps:{"aria-label":"Search"},onChange:e=>A(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:S}),l("CNT")]})]}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{pathStorage:!0,mode:Object.keys(L).length>0?1:0})),children:Object.keys(L).length>0&&0===b?l("PATH_STORAGE_TITLE_2"):l("PATH_STORAGE_TITLE_3")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{program:!0,mode:Object.keys(L).length>0?1:0})),children:Object.keys(L).length>0&&1===b?l("PROGRAM_TITLE_2"):l("PROGRAM_TITLE_3")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{network:!0,mode:Object.keys(L).length>0?1:0})),children:Object.keys(L).length>0&&2===b?l("NETWORK_TITLE_2"):l("NETWORK_TITLE_3")})})]})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(kl.a,{value:b,onChange:(e,t)=>{u(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("PATH_STORAGE")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("PROGRAM")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:l("NETWORK")})]})}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:function(){let e=Object(g.jsx)(g.Fragment,{});switch(b){case 0:e=Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Bl.a,{active:"path"===v.id,direction:v.direction,onClick:e=>M(0,"path"),children:l("PATH")})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Bl.a,{active:"path_regex"===v.id,direction:v.direction,onClick:e=>M(0,"path_regex"),children:l("PATH_REG")})}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("AVERAGE_READ")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("AVERAGE_WRITE")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("CLIENT_RUNNING_TYPE_START")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(x.storages,[e=>{switch(v.id){case"path":return e.path;case"path_regex":return e.path_regex;default:return e[v.id]}}],[v.direction]).map((e=>{const t=L.storage_id===e.storage_id;return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.path}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.path_regex}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.read?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.write?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:e.execute?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("PATH_STORAGE_TITLE_1"),content:l("PATH_STORAGE_CONTENT_1"),fnHandleOK:()=>{var t;(t=e.storage_id,new Promise(((e,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removePathStorageAccess",{storage_id:t,token:s}).then((t=>{t.result?e(t.result):(Ya.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("PATH_STORAGE_MESSAGE_1")})),qb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PATH_STORAGE_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.storage_id)}))})]});break;case 1:e=Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Bl.a,{active:"name"===v.id,direction:v.direction,onClick:e=>M(0,"name"),children:l("DLP_PROGRAM_MANAGE_NAME")})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:l("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_PROGRAM_HASH")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Bl.a,{active:"program_name"===v.id,direction:v.direction,onClick:e=>M(0,"program_name"),children:l("DLP_PROGRAM_NAME")})}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_PROCESS_TYPE")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(x.programs,[e=>{switch(v.id){case"name":return e.name;case"program_name":return e.program_name;default:return e[v.id]}}],[v.direction]).map((e=>{const t=L.id===e.id;let n=l("DLP_PROCESS_TYPE_UNKNOWN");return 1===e.process_type?n=l("DLP_PROCESS_TYPE_NORMAL"):2===e.process_type?n=l("DLP_PROCESS_TYPE_SYSTEM"):3===e.process_type&&(n=l("DLP_PROCESS_TYPE_CHROME")),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.signing_id}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",align:"",children:e.hash}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",align:"",children:e.program_name}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",align:"",children:n}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("PROGRAM_TITLE_1"),content:l("PROGRAM_CONTENT_1"),fnHandleOK:()=>{var t,n;(t=e.id,n=!0,new Promise(((e,a)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/removeProgram",{program_id:t,force_remove:n,token:c}).then((t=>{t.result?e(t.result):(Ya.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_1")})),Jb().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("PROGRAM_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]});break;case 2:e=Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Bl.a,{active:"name"===v.id,direction:v.direction,onClick:e=>M(0,"name"),children:l("DLP_NETWORK_MANAGE_NAME")})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:l("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_NETWORK_OUTBOUND_DESTINATION")}),Object(g.jsx)(Ll.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(x.networks,[e=>"name"===v.id?e.name:e[v.id]],[v.direction]).map((e=>{const t=L.id===e.id;return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:e.inbound_ports}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",align:"",children:e.outbound_destinations}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("NETWORK_TITLE_1"),content:l("NETWORK_CONTENT_1"),fnHandleOK:()=>{var t;(t=e.id,new Promise(((e,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeNetwork",{network_id:t,token:s}).then((t=>{t.result?e(t.result):(Ya.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_1")})),ej().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e}))})))})).catch((e=>{console.log(e),a(Object(U.c)({message:l("NETWORK_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]})}return e}()})]})]})};var ou={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_policy_setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(iu,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const du=Object(M.a)((e=>({tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .type":{minWidth:"110px",width:"110px",maxWidth:"110px"},"& .path":{minWidth:"300px",width:"400px",maxWidth:"400px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"}}})));var bu=function(e){du(e);const{t:t}=Object(jt.a)("docbase"),a=[{id:"logged_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("\uc694\uccad\uc77c"),sort:!1},{id:"requester",align:"left",className:"left user",disablePadding:!1,label:t("\uc694\uccad\uc790"),sort:!1},{id:"approver",align:"left",className:"left user",disablePadding:!1,label:t("\uc2b9\uc778\uc790"),sort:!1},{id:"release_type",align:"center",className:"type",disablePadding:!1,label:t("\ud574\uc81c \ud0c0\uc785"),sort:!1},{id:"duration",align:"center",className:"",disablePadding:!1,label:t("\ud574\uc81c \uae30\uac04(\ubd84)"),sort:!1},{id:"duration_date",align:"center",className:"table_col_date",disablePadding:!1,label:t("\ud574\uc81c \uae30\uac04(\uc77c)"),sort:!1},{id:"expire_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("\ub9cc\ub8cc\uc77c\uc2dc"),sort:!1},{id:"reason_request",align:"left",className:"left path",disablePadding:!1,label:t("\uc694\uccad \uc0ac\uc720"),sort:!1},{id:"status",align:"center",className:"type",disablePadding:!1,label:t("\uc0c1\ud0dc"),sort:!1},{id:"approved_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("\uc22d\uc778/\uac70\uc808\uc77c\uc2dc"),sort:!1},{id:"view",align:"center",className:"",disablePadding:!1,label:t("DLP_CLIENT_LOG_VIER"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:a.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const ju=["children","classes","onClose"],uu=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,ju);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Ou=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"},"&>div.tall":{height:120}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 15px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:12,marginBottom:10,"& .MuiButton-root":{marginRight:16},"& .MuiButton-root:last-child":{marginRight:0}}})));function pu(e){const t=Ou(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState("");let r="";switch(e.requestObj.release_type||""){case 0:r=n("\uc804\uccb4");break;case 1:r=n("\ub9e4\uccb4 \uc811\uadfc");break;case 2:r=n("\ub124\ud2b8\uc6cc\ud06c");break;case 3:r=n("\uc2e4\ud589");break;case 4:r=n("\ube0c\ub77c\uc6b0\uc800 \uc5c5\ub85c\ub4dc");break;case 5:r=n("\ube14\ub8e8\ud22c\uc2a4 \ud30c\uc77c\uc804\uc1a1");break;case 6:r=n("\ube14\ub8e8\ud22c\uc2a4 \uc7a5\uce58 \ud398\uc5b4\ub9c1");break;case 7:r=n("\uba54\uc2e0\uc800 \ud30c\uc77c\uc804\uc1a1");break;case 100:r=n("\uc124\uce58\ubaa8\ub4dc")}let i="";switch(e.requestObj.status){case 1:i=n("\uc694\uccad");break;case 100:i=n("\uc2b9\uc778");break;case 110:i=n("\uc790\ub3d9 \uc2b9\uc778");break;case 200:i=n("\uac70\uc808");break;case 300:i=n("\uc694\uccad \ucca0\ud68c")}return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(uu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc694\uccad\uc77c\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.requested_at?bt.a.getDateStringToLocalDate(e.requestObj.requested_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc694\uccad\uc790")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.requester_name?"".concat(e.requestObj.requester_name,"(").concat(e.requestObj.requester,")"):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc2b9\uc778\uc790")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.approver_name?"".concat(e.requestObj.approver_name,"(").concat(e.requestObj.approver,"})"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud574\uc81c \uc885\ub958")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:r}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc0c1\ud0dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:i})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud574\uc81c \uc2dc\uac04")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.duration?"".concat(e.requestObj.duration,"\ubd84"):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ub9cc\ub8cc\uc77c\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.expire_at?bt.a.getDateStringToLocalDate(e.requestObj.expire_at):""})]}),function(){if(e.requestObj.rid){let a=Object(g.jsx)(g.Fragment,{});switch(e.requestObj.release_type){case 1:{let s=Object(g.jsx)(g.Fragment,{}),c="\uc804\uccb4";2===e.requestObj.storage?c="USB":3===e.requestObj.storage&&(c="\ub124\ud2b8\uc6cc\ud06c \uc800\uc7a5\uc18c"),s=""===e.requestObj.program_signing_id&&""===e.requestObj.program_hash?Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:n("\uc804\uccb4 \ud504\ub85c\uadf8\ub7a8")})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:"".concat(e.requestObj.program_signing_id)})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.program_hash})]})]}),a=Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ub300\uc0c1 \ub9e4\uccb4")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:c})]}),s]});break}case 2:{let s=Object(g.jsx)(g.Fragment,{}),c="\uc804\uccb4",l="\uc804\uccb4";"*"!==e.requestObj.inbound_ports&&(c=e.requestObj.inbound_ports),"*:*"!==e.requestObj.outbound_destinations&&(l=e.requestObj.outbound_destinations),s=""===e.requestObj.program_signing_id&&""===e.requestObj.program_hash?Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:n("\uc804\uccb4 \ud504\ub85c\uadf8\ub7a8")})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:"".concat(e.requestObj.program_signing_id)})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.program_hash})]})]}),a=Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ub4e4\uc5b4\uc624\ub294 \ud3ec\ud2b8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:c}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc6d0\uaca9\uc9c0")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:l})]}),s]});break}case 3:{let s=Object(g.jsx)(g.Fragment,{});s=""===e.requestObj.program_signing_id&&""===e.requestObj.program_hash?Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:n("\uc804\uccb4 \ud504\ub85c\uadf8\ub7a8")})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:"".concat(e.requestObj.program_signing_id)})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.program_hash})]})]}),a=s;break}case 4:{let s="\uc804\uccb4";"*"!==e.requestObj.urls&&(s=e.requestObj.urls),a=Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("URL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:s})]})});break}}return a}return Object(g.jsx)(g.Fragment,{})}(),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uc694\uccad\uc0ac\uc720")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.requestObj.reason_request||""})]}),Object(g.jsxs)("div",{className:"tall",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:n("\uac70\uc808 \uc0ac\uc720")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput),children:Object(g.jsx)(Ht.a,{id:"reason_rejected",type:"text",value:c,onChange:e=>l(e.target.value),variant:"outlined",size:"small",multiline:!0,minRows:4,fullWidth:!0})})]})]}),Object(g.jsxs)("div",{className:t.buttonWrapper,children:[1===e.requestObj.status?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Hc.a,{className:"default",variant:"contained",type:"button",onClick:t=>""===c?(a(Object(U.c)({message:n("\uac70\uc808 \uc0ac\uc720\ub97c \uc785\ud574\ud574\uc8fc\uc138\uc694.")})),!1):(a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\uc784\uc2dc\ud574\uc81c \uc81c\uc5b4"),content:n("\uc784\uc2dc\ud574\uc81c\ub97c \uac70\uc808 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{pj(e.requestObj.rid,!1,c).then((t=>{t&&(a(Object(U.d)({message:n("\ud574\uc81c \uc694\uccad\uc744 \uac70\uc808\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(U.c)({message:n("\ud574\uc81c \uc694\uccad \uac70\uc808\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}))}))}})})),!0),children:n("TAKEOUT_REJECTED")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\uc784\uc2dc\ud574\uc81c \uc81c\uc5b4"),content:n("\uc784\uc2dc\ud574\uc81c\ub97c \uc218\ub77d \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{pj(e.requestObj.rid,!0,"").then((t=>{t&&(a(Object(U.d)({message:n("\ud574\uc81c \uc694\uccad\uc744 \uc218\ub77d\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(U.c)({message:n("\ud574\uc81c \uc694\uccad \uc218\ub77d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}))}))}})}))},children:n("TAKEOUT_APPROVED")})]}):Object(g.jsx)(g.Fragment,{}),e.requestObj.expire_at&&bt.a.getDateDifferenceByNow(e.requestObj.expire_at)>0?Object(g.jsx)(Hc.a,{color:"primary",variant:"contained",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:n("\uc784\uc2dc\ud574\uc81c \uc81c\uc5b4"),content:n("\uc784\uc2dc\ud574\uc81c\ub97c \uc911\uc9c0 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{hj(e.requestObj.rid).then((t=>{t&&(a(Object(U.d)({message:n("\ud574\uc81c\ub97c \uc911\uc9c0\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(U.c)({message:n("\uc911\uc9c0\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}))}))}})}))},children:n("\uc911\uc9c0")}):Object(g.jsx)(g.Fragment,{})]})]})})}const hu=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 180px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10}})));var mu=function(e){const t=hu(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[j,u]=s.a.useState({open:!1,requestObj:{}}),[O,p]=s.a.useState({userID:"",status:0,startDate:bt.a.getLastWeek(),endDate:new Date}),[h,_]=Object(n.useState)([]);if(Object(n.useEffect)((()=>(i(!0),f(o.rows_per_page),()=>{p({userID:"",status:0,startDate:bt.a.getLastWeek(),endDate:new Date})})),[a]),r)return Object(g.jsx)(K.a,{});async function f(e,t){i(!0);const a=await((e,t,a,n)=>new Promise(((s,c)=>{Object(Xa.d)(((l,r)=>{Ya.a.sendPost("/dlpapi/inquiryReleaseBlockings",{start_date:e,end_date:t,status:a,rows_per_page:n,token:r}).then((e=>{e.result?s({rows:e.total_rows,pages:e.total_pages}):(Ya.a.printError(e),c(e))})).finally((()=>{}))}))})))(bt.a.getDateString(O.startDate),bt.a.getDateString(O.endDate),O.status,e),n=t||1;a.rows>0?await async function(e){const t=await(e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/inquiryReleaseBlockingsPage",{page:e,token:s}).then((e=>{e.result?t(e.requests.map((e=>(e.inbound_ports=Va.a.decryptAES(n,e.inbound_ports,"hex","utf8"),e.outbound_destinations=Va.a.decryptAES(n,e.outbound_destinations,"hex","utf8"),e.program_signing_id=Va.a.decryptAES(n,e.program_signing_id,"hex","utf8"),e.program_hash=Va.a.decryptAES(n,e.program_hash,"hex","utf8"),e.program_ref_path=Va.a.decryptAES(n,e.program_ref_path,"hex","utf8"),e.urls=Va.a.decryptAES(n,e.urls,"hex","utf8"),e.requester=Va.a.decryptAES(n,e.requester,"hex","utf8"),e.requester_name=Va.a.decryptAES(n,e.requester_name,"hex","utf8"),e.reason_request=Va.a.decryptAES(n,e.reason_request,"hex","utf8"),e.approver=Va.a.decryptAES(n,e.approver,"hex","utf8"),e.approver_name=Va.a.decryptAES(n,e.approver_name,"hex","utf8"),e.reason_rejected=Va.a.decryptAES(n,e.reason_rejected,"hex","utf8"),e)))):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);_(t)}(n):_([]),b(Object(d.a)(Object(d.a)({},o),{},{total_rows:a.rows,total_pages:a.pages,rows_per_page:e,current_page:n})),i(!1)}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(pu,{open:j.open,requestObj:j.requestObj,fnReset:()=>{f(o.rows_per_page,o.current_page),u({open:!1,requestObj:{}})},fnHandleClose:()=>u({open:!1,requestObj:{}})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.length}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{placeholder:l("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",variant:"outlined",fullWidth:!0,value:O.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:O.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{userID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{userID:e.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{placeholder:l("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",variant:"outlined",fullWidth:!0,value:O.clientID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:O.clientID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{clientID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{clientID:e.target.value}))})}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:O.startDate,onChange:e=>{isNaN(e.getTime())||O.startDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},O),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:O.endDate,onChange:e=>{isNaN(e.getTime())||O.endDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},O),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{f(o.rows_per_page)},children:l("SEARCH")})})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(bu,{}),Object(g.jsx)(wl.a,{children:h.map((a=>{let n="",s="";switch(a.status){case 1:n=l("TAKEOUT_REQUEST");break;case 100:n=l("TAKEOUT_APPROVED");break;case 110:n=l("TAKEOUT_APPROVED_AUTO");break;case 200:n=l("TAKEOUT_REJECTED");break;case 300:n=l("TAKEOUT_WITHDRAWN")}switch(a.release_type){case 0:s=l("ALL");break;case 1:s=l("DLP_ALLOW_RELEASE_STORAGE");break;case 2:s=l("DLP_ALLOW_RELEASE_NETWORK");break;case 3:s=l("DLP_ALLOW_RELEASE_EXECUTE");break;case 4:s=l("DLP_ALLOW_RELEASE_UPLOAD_URL");break;case 5:s=l("DLP_BLUETOOTH_FILE");break;case 6:s=l("DLP_BLUETOOTH_PAIRING");break;case 7:s=l("DLP_ALLOW_RELEASE_MESSENGER");break;case 8:s=l("DLP_ALLOW_RELEASE_AIRDROP");break;case 9:s=l("DLP_ALLOW_RELEASE_PRINTING");break;case 100:s=l("DLP_ALLOW_SETUP")}return Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:s}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.set_expire_at?"":a.duration}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.set_expire_at?bt.a.getDateStringToLocalDate(a.expire_at):""}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:1!==a.status?bt.a.getDateStringToLocalDate(a.expire_at):""}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:a.reason_request}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.approved_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{u({open:!0,requestObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]})]})};var _u={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/releaseBlockings",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(mu,{selected:t,fnSetSelectedFid:e=>a(e)}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};Object(M.a)((e=>({tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .type":{minWidth:"110px",width:"110px",maxWidth:"110px"},"& .path":{minWidth:"300px",width:"300px",maxWidth:"300px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"}}})));var fu=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"logged_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("DLP_CLIENT_LOG_LOGGED_AT"),sort:!1},{id:"user",align:"left",className:"left user",disablePadding:!1,label:t("USER"),sort:!1},{id:"log_type",align:"center",className:" type",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_DOC_FORMAT"),sort:!1},{id:"name",align:"center",className:"path",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_JOB_NAME"),sort:!1},{id:"dest_path",align:"center",className:"",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_COPIES"),sort:!1},{id:"created_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT"),sort:!1},{id:"processing_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT"),sort:!1},{id:"completed_at",align:"center",className:"identifier",disablePadding:!1,label:t("DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT"),sort:!1},{id:"view",align:"center",className:"",disablePadding:!1,label:t("DLP_CLIENT_LOG_VIER"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:a.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const gu=["children","classes","onClose"],Eu=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,gu);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),xu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},tall:{height:"inherit!important","& .folder-name":{padding:"20px 20px 20px 30px",overflowWrap:"anywhere"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:12,marginBottom:10,"& .MuiButton-root":{width:172,height:54,marginRight:16},"& .MuiButton-root:last-child":{marginRight:0}}})));function Nu(e){const t=xu(),{t:a}=Object(jt.a)("docbase"),n=Object(m.b)();return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Eu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.registered_at?bt.a.getDateStringToLocalDate(e.logObj.registered_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.user_name?"".concat(e.logObj.user_name,"(").concat(e.logObj.user_id,"-").concat(e.logObj.client_id,")"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_DOC_FORMAT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.doc_format||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_COPIES")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.copies||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_name||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_created_at?bt.a.getDateStringToLocalDate(e.logObj.job_created_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_processing_at?bt.a.getDateStringToLocalDate(e.logObj.job_processing_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_completed_at?bt.a.getDateStringToLocalDate(e.logObj.job_completed_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_PRINTER_URL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.printer_uri||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_STATE_MESSAGE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_state_message||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_STATE_REASONS")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.job_state_reasons||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_PROGRAM_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.exec_path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_PROGRAM_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.signing_id||""})]}),Object(g.jsxs)("div",{className:t.tall,children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_CONTROL_INFO")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.control_info||""})]})]}),Object(g.jsx)("div",{className:t.buttonWrapper,children:Object(g.jsx)(Hc.a,{className:"default",variant:"contained",type:"button",onClick:t=>(n(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_TITLE"),content:a("DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_CONTENT"),fnHandleOK:()=>{Object(Xa.d)(((t,a)=>{const n="".concat(window.location.origin,"/dlpapi/downloadPrintedFile?print_log_id=").concat(e.logObj.id,"&token=").concat(a),s=document.createElement("a");s.target="_blank",s.href=n,s.click()}))}})})),!0),children:a("DOWNLOAD")})})]})})}const Su=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6,"& .search-form-wrapper":{display:"block!important",flex:"1 1 auto","& .content":{display:"flex",marginBottom:10},"& .input-item":{width:180},"& .date-picker-wrapper":{marginLeft:"10px!important",marginRight:"0!important"}},"& .button-group":{display:"flex","& button:first-child":{marginRight:5,width:80}}},datePicker:{width:" 190px!important"},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 280px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10}})));var Tu=function(e){const t=Su(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=s.a.useState({open:!1,logObj:{}}),[j,u]=s.a.useState({userID:"",clientID:"",userName:"",startDate:bt.a.getLastWeek(),endDate:new Date}),[O,p]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[h,_]=Object(n.useState)([]);if(Object(n.useEffect)((()=>(i(!0),f(O.rows_per_page),()=>{u({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),r)return Object(g.jsx)(K.a,{});async function f(e){i(!0);const t=await((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/inquiryPrintLogs",{user_id:e&&""!==e?Va.a.encryptAES(i,e,"utf8","hex"):"",user_name:a&&""!==a?Va.a.encryptAES(i,a,"utf8","hex"):"",client_id:t,start_date:n,end_date:s,rows_per_page:c,token:o}).then((e=>{e.result?l({rows:e.total_rows,pages:e.total_pages}):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})))(j.userID,j.clientID,j.userName,bt.a.getDateString(j.startDate),bt.a.getDateString(j.endDate),e);t.rows>0?await E(1):_([]),p(Object(d.a)(Object(d.a)({},O),{},{total_rows:t.rows,total_pages:t.pages,rows_per_page:e,current_page:1})),i(!1)}async function E(e){const t=await mj(e);_(t),p(Object(d.a)(Object(d.a)({},O),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Nu,{open:o.open,logObj:o.logObj,fnHandleClose:()=>b({open:!1,logObj:{}})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O.total_rows}),l("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_ID")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_NAME")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userName,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userName&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userName:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},size:"small",onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:j.startDate,onChange:e=>{isNaN(e.getTime())||j.startDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:j.endDate,onChange:e=>{isNaN(e.getTime())||j.endDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]})}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{f(O.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[l("DLP_CLIENT_LOG_LOGGED_AT"),l("USER"),l("DLP_CLIENT_LOG_PRINT_DOC_FORMAT"),l("DLP_CLIENT_LOG_PRINT_JOB_NAME"),l("DLP_CLIENT_LOG_PRINT_COPIES"),l("DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT"),l("DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT"),l("DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT")],t=[];for(let a=1;a<=O.total_pages;a++)(await mj(a)).forEach((e=>{t.push({registered_at:bt.a.getDateStringToLocalDate(e.registered_at),name:"".concat(e.user_name,"(").concat(e.user_id,"-").concat(e.client_id,")"),doc_format:e.doc_format,job_name:e.job_name,copies:e.copies,job_created_at:bt.a.getDateStringToLocalDate(e.job_created_at),job_processing_at:bt.a.getDateStringToLocalDate(e.job_processing_at),job_completed_at:bt.a.getDateStringToLocalDate(e.job_completed_at)})}));hl.a.excelDownload("".concat(l("\ud504\ub9b0\ud2b8\ub85c\uadf8")).concat(bt.a.getDateString(j.startDate),"-").concat(bt.a.getDateString(j.endDate)),e,t,[{wpx:80},{wpx:80},{wpx:80},{wpx:150},{wpx:80},{wpx:80},{wpx:80},{wpx:80}])}()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(fu,{}),Object(g.jsx)(wl.a,{children:h.map((a=>Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.registered_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.user_name,"(").concat(a.user_id,"-").concat(a.client_id,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.doc_format}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.job_name}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.copies}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_created_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_processing_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_completed_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{b({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(O.total_rows/O.rows_per_page),color:"primary",onChange:(e,t)=>{E(t-1),c.current.scrollTop=0}})]})]})};var vu={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/printLogs",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Tu,{selected:t,fnSetSelectedFid:e=>a(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Ru=Object(M.a)((e=>({tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .type":{minWidth:"110px",width:"110px",maxWidth:"110px"},"& .path":{minWidth:"300px",width:"300px",maxWidth:"300px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"}}})));var yu=function(e){const t=Ru(e),{t:a}=Object(jt.a)("docbase"),n=[{id:"logged_at",align:"center",className:"table_col_date",disablePadding:!1,label:a("DLP_CLIENT_LOG_LOGGED_AT"),sort:!1},{id:"user",align:"left",className:"left user",disablePadding:!1,label:a("DLP_CLIENT_LOG_USERNAME"),sort:!1},{id:"log_type",align:"center",className:" type",disablePadding:!1,label:a("DLP_CLIENT_LOG_TYPE"),sort:!1},{id:"path",align:"center",className:"path",disablePadding:!1,label:a("DLP_CLIENT_LOG_PATH"),sort:!1},{id:"dest_path",align:"center",className:"",disablePadding:!1,label:a("DLP_CLIENT_LOG_DEST_PATH"),sort:!1},{id:"signing_id",align:"center",className:"identifier",disablePadding:!1,label:a("DLP_CLIENT_LOG_SIGNING_ID"),sort:!1},{id:"view",align:"center",className:"",disablePadding:!1,label:a("DLP_CLIENT_LOG_VIER"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const Cu=["children","classes","onClose"],Au=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Cu);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Lu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}}})));function wu(e){const t=Lu(),{t:a}=Object(jt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Au,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?bt.a.getDateStringToLocalDate(e.logObj.logged_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.user_name?"".concat(e.logObj.user_name,"(").concat(e.logObj.user_id,"-").concat(e.logObj.client_id,")"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.tagName||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.signing_id||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.hash||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.source_path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.dest_path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_LOCAL_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.local_endpoint||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_REMOTE_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.remote_endpoint||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("URL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.url||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_WEB_UPLOAD_FILE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.files||""})]})]})]})})}const Iu=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6,"& .search-form-wrapper":{display:"block!important","& .content":{display:"flex",marginBottom:10},"& .input-item":{width:180},"& .date-picker-wrapper":{marginLeft:"10px!important",marginRight:"0!important"}},"& .button-group":{display:"flex","& button:first-child":{marginRight:5,width:80}}},datePicker:{width:" 190px!important"},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10},tr:{"& .path":{whiteSpace:"pre-wrap!important",overflowWrap:"break-word",textOverflow:"ellipsis",width:"400px",maxWidth:"400px"}}}))),Pu=[{type:1,cons:"DLPClientLogGeneral",icon:"application-outline"},{type:2,cons:"DLPClientLogCreateFile",icon:"file-document-plus-outline"},{type:3,cons:"DLPClientLogWriteFile",icon:"file-edit-outline"},{type:4,cons:"DLPClientLogRenameFile",icon:"rename-outline"},{type:5,cons:"DLPClientLogCopyFile",icon:"content-copy"},{type:6,cons:"DLPClientLogCloneFile",icon:"content-duplicate"},{type:7,cons:"DLPClientLogLinkFile",icon:"link-box-outline"},{type:8,cons:"DLPClientLogDeleteFile",icon:"file-document-remove-outline"},{type:9,cons:"DLPClientLogTruncateFile",icon:"tray-remove"},{type:10,cons:"DLPClientLogExecute",icon:"cog-play-outline"},{type:11,cons:"DLPClientLogNetwork",icon:"network-outline"},{type:12,cons:"DLPClientLogFetchURL",icon:"web"},{type:13,cons:"DLPClientLogUploadURL",icon:"file-upload-outline"},{type:14,cons:"DLPClientLogMount",icon:"content-save-move-outline"},{type:15,cons:"DLPClientLogUnmount",icon:"content-save-off-outline"},{type:16,cons:"DLPClientLogSendWebMail",icon:"email-outline"}],Du={1:{title:"DLPClientLogGeneral",icon:"application-outline"},2:{title:"DLPClientLogCreateFile",icon:"file-document-plus-outline"},3:{title:"DLPClientLogWriteFile",icon:"file-edit-outline"},4:{title:"DLPClientLogRenameFile",icon:"rename-outline"},5:{title:"DLPClientLogCopyFile",icon:"content-copy"},6:{title:"DLPClientLogCloneFile",icon:"content-duplicate"},7:{title:"DLPClientLogLinkFile",icon:"link-box-outline"},8:{title:"DLPClientLogDeleteFile",icon:"file-document-remove-outline"},9:{title:"DLPClientLogTruncateFile",icon:"tray-remove"},10:{title:"DLPClientLogExecute",icon:"cog-play-outline"},11:{title:"DLPClientLogNetwork",icon:"network-outline"},12:{title:"DLPClientLogFetchURL",icon:"web"},13:{title:"DLPClientLogUploadURL",icon:"file-upload-outline"},14:{title:"DLPClientLogMount",icon:"content-save-move-outline"},15:{title:"DLPClientLogUnmount",icon:"content-save-off-outline"},16:{title:"DLPClientLogSendWebMail",icon:"email-outline"}};let Mu=!0;var ku=function(e){const t=Iu(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=s.a.useState({open:!1,logObj:{}}),[j,u]=s.a.useState({userID:"",clientID:"",userName:"",orderAscending:!1,startDate:bt.a.getLastWeek(),endDate:new Date}),[O,p]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[h,_]=Object(n.useState)([]),[f,E]=s.a.useState({1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,14:!0,15:!0,16:!0}),[x,N]=s.a.useState(!0);if(Object(n.useEffect)((()=>(Mu=!1,i(!0),S(O.rows_per_page),()=>{Mu=!0,u({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),r)return Object(g.jsx)(K.a,{});async function S(e){i(!0);let t="";Object.keys(f).forEach(((e,a)=>{f[e]&&(t+=""===t?e:", ".concat(e))}));const a=await _j(j.userID,j.clientID,j.userName,1,bt.a.getDateString(j.startDate),bt.a.getDateString(j.endDate),j.orderAscending,t,e);a.rows>0?await T(1):_([]),p(Object(d.a)(Object(d.a)({},O),{},{total_rows:a.rows,total_pages:a.pages,rows_per_page:e,current_page:1})),i(!1)}async function T(e){const t=await fj(e);_(t),p(Object(d.a)(Object(d.a)({},O),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(wu,{open:o.open,logObj:o.logObj,fnHandleClose:()=>b({open:!1,logObj:{}})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O.total_rows}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_ID")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},size:"small",onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_NAME")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userName,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userName&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userName:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},size:"small",onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("SORT_DATE")}),Object(g.jsxs)(Ht.a,{variant:"outlined",select:!0,className:"",label:"",value:j.orderAscending,fullWidth:!0,size:"small",onChange:e=>{u(Object(d.a)(Object(d.a)({},j),{},{orderAscending:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:l("ASCENDING")}),Object(g.jsx)(Q.a,{value:!1,children:l("DESCENDING")})]})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:j.startDate,onChange:e=>{isNaN(e.getTime())||j.startDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:j.endDate,onChange:e=>{isNaN(e.getTime())||j.endDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]}),Object(g.jsx)("div",{className:"content",style:{padding:"0 30px 0 10px"},children:Object(g.jsxs)(wb.a,{row:!0,children:[Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:x,onChange:e=>{const t={};x?Object.keys(f).forEach((e=>{t[e]=!1})):Object.keys(f).forEach((e=>{t[e]=!0})),E(t),N(!x)},name:"allCheck"}),label:l("CHECK_ALL")}),Pu.map((e=>Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:f[e.type],onChange:t=>{const a=Object(d.a)({},f);a[e.type]=!a[e.type],E(a)},name:"at_".concat(e.cons)}),label:l(e.cons)})))]})})]}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Hc.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{S(O.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[l("DLP_CLIENT_LOG_LOGGED_AT"),l("DLP_CLIENT_LOG_USERNAME"),l("DLP_CLIENT_LOG_TYPE"),l("DLP_CLIENT_LOG_PATH"),l("DLP_CLIENT_LOG_SIGNING_ID"),l("DLP_CLIENT_LOG_HASH"),l("DLP_CLIENT_LOG_SOURCE_PATH"),l("DLP_CLIENT_LOG_DEST_PATH"),l("DLP_CLIENT_LOG_LOCAL_ENDPOINT"),l("DLP_CLIENT_LOG_REMOTE_ENDPOINT"),l("URL"),l("DLP_CLIENT_LOG_WEB_UPLOAD_FILE"),l("DLP_CLIENT_LOG_MAIL_CONTENTS")],t=[];for(let n=1;n<=O.total_pages;n++)(await fj(n)).forEach((e=>{let a="";e.files&&e.files.length>0&&e.files.forEach(((e,t)=>{a+=t>0?", ".concat(e):e})),t.push({logged_at:bt.a.getDateStringToLocalDate(e.logged_at),name:"".concat(e.user_name,"(").concat(e.user_id,"-").concat(e.client_id,")"),log_type:l(Du[e.log_type]),path:e.path,signing_id:e.signing_id,hash:e.hash,source_path:e.source_path,dest_path:e.dest_path,local_endpoint:e.local_endpoint,remote_endpoint:e.remote_endpoint,url:e.url,files:a,log:e.log})}));const a=l("TEMP_RELEASE");hl.a.excelDownload("".concat(a).concat(bt.a.getDateString(j.startDate),"-").concat(bt.a.getDateString(j.endDate)),e,t,[{wpx:80},{wpx:80},{wpx:80},{wpx:300},{wpx:150},{wpx:200},{wpx:250},{wpx:250},{wpx:150},{wpx:150},{wpx:150},{wpx:150},{wpx:350}])}()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(yu,{}),Object(g.jsx)(wl.a,{children:h.map((a=>{let n="",s=a.dest_path,{path:c}=a;switch(a.log_type){case 2:n=l("DLPClientLogCreateFile");break;case 3:n=l("DLPClientLogWriteFile");break;case 4:n=l("DLPClientLogRenameFile"),c=a.source_path;break;case 5:n=l("DLPClientLogCopyFile");break;case 6:n=l("DLPClientLogCloneFile");break;case 7:n=l("DLPClientLogLinkFile");break;case 8:n=l("DLPClientLogDeleteFile");break;case 9:n=l("DLPClientLogTruncateFile");break;case 10:n=l("DLPClientLogExecute");break;case 11:n=l("DLPClientLogNetwork"),s=a.remote_endpoint,c=a.local_endpoint;break;case 12:n=l("DLPClientLogFetchURL"),s=a.url;break;case 13:n=l("DLPClientLogUploadURL"),s=a.url,c=a.files;break;case 14:n=l("DLPClientLogMount");break;case 15:n=l("DLPClientLogUnmount");break;case 16:n=l("DLPClientLogSendWebMail"),s=a.url;break;default:n=l("DLPClientLogGeneral")}return a.tagName=n,Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.user_name,"(").concat(a.user_id,"-").concat(a.client_id,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(c)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(c)})]})}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:s}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{b({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(O.total_rows/O.rows_per_page),color:"primary",onChange:(e,t)=>{T(t-1),c.current.scrollTop=0}})]})]})};var Gu={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientAccessLogs",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1),[n,c]=s.a.useState("");return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(ku,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Uu=Object(M.a)((e=>({tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .type":{minWidth:"70px",width:"70px",maxWidth:"70px"},"& .icon":{minWidth:"40px",width:"40px",maxWidth:"40px"},"& .path":{minWidth:"300px",width:"300px",maxWidth:"300px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"},"& .view":{minWidth:"80px",width:"80px",maxWidth:"80px"}}})));var Fu=function(e){const t=Uu(e),{t:a}=Object(jt.a)("docbase"),n=[{id:"logged_at",align:"center",className:"table_col_date",disablePadding:!1,label:a("DLP_CLIENT_LOG_LOGGED_AT"),sort:!1},{id:"user",align:"left",className:"left user",disablePadding:!1,label:a("DLP_CLIENT_LOG_USERNAME"),sort:!1},{id:"log_group",align:"center",className:"type",disablePadding:!1,label:a("DLP_CLIENT_LOG_TYPE"),colSpan:2,sort:!1},{id:"path",align:"center",className:"path",disablePadding:!1,label:a("DLP_CLIENT_LOG_SOURCE_PATH"),sort:!1},{id:"dest_path",align:"center",className:"",disablePadding:!1,label:a("DLP_CLIENT_LOG_DEST_PATH"),sort:!1},{id:"signing_id",align:"center",className:"identifier",disablePadding:!1,label:a("DLP_CLIENT_LOG_SIGNING_ID"),sort:!1},{id:"view",align:"center",className:"view",disablePadding:!1,label:a("DLP_CLIENT_LOG_VIER"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",colSpan:e.colSpan?e.colSpan:1,children:e.label},e.id)),this)})})};const Wu=["children","classes","onClose"],Hu=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Wu);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),zu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}}})));function Bu(e){const t=zu(),{t:a}=Object(jt.a)("docbase");let n="",s="",c="",l="";if(16===e.logObj.log_type){const t=JSON.parse(e.logObj.log),a=JSON.parse(t.form_elements);a.to&&a.to.forEach(((e,t)=>{n+=t>0?", ".concat(e):e})),a.toList&&a.toList.forEach(((e,t)=>{n+=t>0?", ".concat(e.addr):e.addr})),a.cc&&a.cc.forEach(((e,t)=>{s+=t>0?", ".concat(e):e})),a.ccList&&a.ccList.forEach(((e,t)=>{s+=t>0?", ".concat(e.addr):e.addr})),a.subject&&(Array.isArray(a.subject)?a.subject.forEach(((e,t)=>{c+=t>0?", ".concat(e):e})):c=a.subject),a.body&&a.body.forEach(((e,t)=>{l+=t>0?", ".concat(e):e})),a.contents&&(l=a.contents)}return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?bt.a.getDateStringToLocalDate(e.logObj.logged_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.user_name?"".concat(e.logObj.user_name,"(").concat(e.logObj.user_id,"-").concat(e.logObj.client_id,")"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.tagName||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.list_path||""})]}),1===e.logObj.log_type||e.logObj.log_type<=10?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.signing_id||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.hash||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.source_path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.dest_path||""})]})]}):Object(g.jsx)(g.Fragment,{}),11===e.logObj.log_type?Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_LOCAL_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.local_endpoint||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_REMOTE_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.remote_endpoint||""})]})}):Object(g.jsx)(g.Fragment,{}),12===e.logObj.log_type||13===e.logObj.log_type||16===e.logObj.log_type?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("URL")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.url||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_WEB_UPLOAD_FILE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.files||""})]})]}):Object(g.jsx)(g.Fragment,{}),16===e.logObj.log_type?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_RECIEVER")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:n}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_CC")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:s})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_TITLE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:c})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_CONTENTS")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:l})]})]}):Object(g.jsx)(g.Fragment,{})]})]})})}const Ku=["children","classes","onClose"],Yu=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Ku);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Vu=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",color:"#000000",fontSize:14,height:700,"&>div":{display:"block",paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"},"&>.content":{background:"#ffffff",borderRadius:6,padding:40},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"},"&>.content .text-2":{marginBottom:0}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},contentWrapper:{height:500},tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .path":{minWidth:"300px",width:"300px",maxWidth:"300px"},"& .signing_id":{minWidth:"250px",width:"250px",maxWidth:"250px"},"& .view":{minWidth:"80px",width:"80px",maxWidth:"80px"}}})));function Xu(e){const t=Vu(),{t:a}=Object(jt.a)("docbase"),[n,c]=s.a.useState({}),[l,r]=s.a.useState([]),[i,o]=s.a.useState({signing_id:"",desc:"",word:"",regex:""});async function b(){const e=await Tj(),t={};e.forEach((e=>{t[e.id]=!1})),c(t),r(e)}return s.a.useEffect((()=>{e.open?(console.log(e),b()):(console.log(e),o({signing_id:"",desc:"",word:"",regex:""}))}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Yu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("\ub85c\uae45 \uc81c\uc678 \uc571 \uad00\ub9ac")}),Object(g.jsxs)(el.a,{className:t.body,children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"signing_id",value:i.signing_id,onChange:e=>o(Object(d.a)(Object(d.a)({},i),{},{signing_id:e.target.value})),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:a("\uc124\uba85")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"desc",value:i.desc,onChange:e=>o(Object(d.a)(Object(d.a)({},i),{},{desc:e.target.value})),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:a("\ubb38\uc790\uc5f4")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"desc",value:i.word,onChange:e=>o(Object(d.a)(Object(d.a)({},i),{},{word:e.target.value})),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:a("\uc815\uaddc\uc2dd")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"desc",value:i.regex,onChange:e=>o(Object(d.a)(Object(d.a)({},i),{},{regex:e.target.value})),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"}})})]}),Object(g.jsxs)("div",{className:"row",style:{justifyContent:"end"},children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"first-btn",type:"button",onClick:e=>{vj(i.signing_id,i.desc,i.word,i.regex).then((e=>{b(),o({signing_id:"",desc:"",word:"",regex:""})}))},style:{marginRight:10},children:"\uc571 \ub4f1\ub85d"}),Object(g.jsx)(Hc.a,{variant:"contained",color:"default",className:"",type:"button",onClick:e=>{(async()=>{let e=!1;const t=Object.keys(n);for(let a=0;aObject(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:n[e.id],onClick:t=>{console.log(e.id),console.log(n[e.id]),c(Object(d.a)(Object(d.a)({},n),{},{[e.id]:!n[e.id]}))},children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:n[e.id],onClick:e=>e.stopPropagation(),onChange:t=>{console.log(e.id),console.log(n[e.id]),c(Object(d.a)(Object(d.a)({},n),{},{[e.id]:!n[e.id]}))}})}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.signing_id}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.desc}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.word}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.regex})]},e.idx)))})]})})})]})]})})}const qu=Object(M.a)((e=>({})));function Ju(e){let{type:t,cons:a,icon:n,types:c,setTypes:l}=e;qu();const{t:r}=Object(jt.a)("docbase"),i=s.a.useRef(null);return Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{inputRef:i,checked:c[t],onChange:e=>{const a=Object(d.a)({},c);a[t]=!a[t],l(a)}}),label:Object(g.jsx)(Je.a,{title:r(a),placement:"bottom",arrow:!0,children:Object(g.jsx)(I.a,{style:{padding:0},onClick:e=>{e.stopPropagation(),i.current&&i.current.click()},children:Object(g.jsx)(ha.a,{className:"large",type:n,fill:"#333d4b"})})})})}const Zu=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6,"& .search-form-wrapper":{display:"block!important",flex:"1 1 auto","& .content":{display:"flex",marginBottom:10},"& .input-item":{width:180},"& .date-picker-wrapper":{marginLeft:"10px!important",marginRight:"0!important"}},"& .button-group":{display:"flex","& button:first-child":{marginRight:5,width:80}}},datePicker:{width:" 190px!important"},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10},tr:{"& .path":{whiteSpace:"pre-wrap!important",overflowWrap:"break-word",textOverflow:"ellipsis",width:"400px",maxWidth:"400px"}},text12:{"& .MuiTypography-root":{fontSize:"12px!important"}}})));let Qu=[{type:1,cons:"DLPClientLogGeneral",icon:"application-outline"},{type:2,cons:"DLPClientLogCreateFile",icon:"file-document-plus-outline"},{type:3,cons:"DLPClientLogWriteFile",icon:"file-edit-outline"},{type:4,cons:"DLPClientLogRenameFile",icon:"rename-outline"},{type:5,cons:"DLPClientLogCopyFile",icon:"content-copy"},{type:6,cons:"DLPClientLogCloneFile",icon:"content-duplicate"},{type:7,cons:"DLPClientLogLinkFile",icon:"link-box-outline"},{type:8,cons:"DLPClientLogDeleteFile",icon:"file-document-remove-outline"},{type:9,cons:"DLPClientLogTruncateFile",icon:"tray-remove"},{type:10,cons:"DLPClientLogExecute",icon:"cog-play-outline"},{type:11,cons:"DLPClientLogNetwork",icon:"network-outline"},{type:12,cons:"DLPClientLogFetchURL",icon:"web"},{type:13,cons:"DLPClientLogUploadURL",icon:"file-upload-outline"},{type:14,cons:"DLPClientLogMount",icon:"content-save-move-outline"},{type:15,cons:"DLPClientLogUnmount",icon:"content-save-off-outline"},{type:16,cons:"DLPClientLogSendWebMail",icon:"email-outline"}];const $u={1:{title:"DLPClientLogGeneral",icon:"application-outline"},2:{title:"DLPClientLogCreateFile",icon:"file-document-plus-outline"},3:{title:"DLPClientLogWriteFile",icon:"file-edit-outline"},4:{title:"DLPClientLogRenameFile",icon:"rename-outline"},5:{title:"DLPClientLogCopyFile",icon:"content-copy"},6:{title:"DLPClientLogCloneFile",icon:"content-duplicate"},7:{title:"DLPClientLogLinkFile",icon:"link-box-outline"},8:{title:"DLPClientLogDeleteFile",icon:"file-document-remove-outline"},9:{title:"DLPClientLogTruncateFile",icon:"tray-remove"},10:{title:"DLPClientLogExecute",icon:"cog-play-outline"},11:{title:"DLPClientLogNetwork",icon:"network-outline"},12:{title:"DLPClientLogFetchURL",icon:"web"},13:{title:"DLPClientLogUploadURL",icon:"file-upload-outline"},14:{title:"DLPClientLogMount",icon:"content-save-move-outline"},15:{title:"DLPClientLogUnmount",icon:"content-save-off-outline"},16:{title:"DLPClientLogSendWebMail",icon:"email-outline"}};let eO=0;var tO=function(e){const t=Zu(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=s.a.useState({open:!1,logObj:{},nonLogging:!1}),[j,u]=s.a.useState({userID:"",clientID:"",userName:"",logGroup:2,isMonitoring:!1,isBlocking:!0,orderAscending:!1,startDate:bt.a.getLastWeek(),endDate:new Date}),[O,p]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:500}),[h,_]=Object(n.useState)([]),[f,E]=s.a.useState("/clientStorageLog"===window.location.pathname?{2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0}:{1:!0,10:!0,11:!0,12:!0,13:!0,14:!0,15:!0,16:!0}),[x,N]=s.a.useState(!0);if(Object(n.useEffect)((()=>{if("/clientStorageLog"===window.location.pathname)eO=1,Qu=[{type:2,cons:"DLPClientLogCreateFile",icon:"file-document-plus-outline"},{type:3,cons:"DLPClientLogWriteFile",icon:"file-edit-outline"},{type:4,cons:"DLPClientLogRenameFile",icon:"rename-outline"},{type:5,cons:"DLPClientLogCopyFile",icon:"content-copy"},{type:6,cons:"DLPClientLogCloneFile",icon:"content-duplicate"},{type:7,cons:"DLPClientLogLinkFile",icon:"link-box-outline"},{type:8,cons:"DLPClientLogDeleteFile",icon:"file-document-remove-outline"},{type:9,cons:"DLPClientLogTruncateFile",icon:"tray-remove"}];else eO=0,Qu=[{type:1,cons:"DLPClientLogGeneral",icon:"application-outline"},{type:10,cons:"DLPClientLogExecute",icon:"cog-play-outline"},{type:11,cons:"DLPClientLogNetwork",icon:"network-outline"},{type:12,cons:"DLPClientLogFetchURL",icon:"web"},{type:13,cons:"DLPClientLogUploadURL",icon:"file-upload-outline"},{type:14,cons:"DLPClientLogMount",icon:"content-save-move-outline"},{type:15,cons:"DLPClientLogUnmount",icon:"content-save-off-outline"},{type:16,cons:"DLPClientLogSendWebMail",icon:"email-outline"}];return i(!1),()=>{u({userID:"",clientID:"",logGroup:2,isMonitoring:!1,isBlocking:!0,startDate:new Date,endDate:new Date})}}),[a]),r)return Object(g.jsx)(K.a,{});async function S(e){const t=await fj(e);_(t),p(Object(d.a)(Object(d.a)({},O),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Bu,{open:o.open,logObj:o.logObj,fnHandleClose:()=>b(Object(d.a)(Object(d.a)({},o),{},{open:!1,logObj:{}}))}),Object(g.jsx)(Xu,{open:o.nonLogging,fnHandleClose:()=>b(Object(d.a)(Object(d.a)({},o),{},{nonLogging:!1}))}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",style:{flex:"0 0 auto"},children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O.total_rows}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:Object(G.a)(t.text12,"input-item"),style:{display:"block",paddingTop:"5px"},children:[Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:j.isMonitoring,onChange:e=>{u(Object(d.a)(Object(d.a)({},j),{},{isMonitoring:!j.isMonitoring}))},name:"isMonitoring"}),label:l("DLP_CLIENT_MONITORING_LOG")}),Object(g.jsx)(J.a,{control:Object(g.jsx)(Wc.a,{checked:j.isBlocking,onChange:e=>{u(Object(d.a)(Object(d.a)({},j),{},{isBlocking:!j.isBlocking}))},name:"isBlocking"}),label:l("DLP_CLIENT_BLOCKED_LOG")})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_ID")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},size:"small",onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("DELETE_USER_NAME")}),Object(g.jsx)(Ht.a,{className:"search-input",variant:"outlined",fullWidth:!0,value:j.userName,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userName&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userName:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},size:"small",onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("SORT_DATE")}),Object(g.jsxs)(Ht.a,{variant:"outlined",select:!0,className:"",label:"",value:j.orderAscending,fullWidth:!0,onChange:e=>{u(Object(d.a)(Object(d.a)({},j),{},{orderAscending:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:l("ASCENDING")}),Object(g.jsx)(Q.a,{value:!1,children:l("DESCENDING")})]})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:j.startDate,onChange:e=>{isNaN(e.getTime())||j.startDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:j.endDate,onChange:e=>{isNaN(e.getTime())||j.endDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)(wb.a,{row:!0,children:[Object(g.jsx)(J.a,{className:Object(G.a)(t.text12),control:Object(g.jsx)(Wc.a,{checked:x,onChange:e=>{const t={};x?Object.keys(f).forEach((e=>{t[e]=!1})):Object.keys(f).forEach((e=>{t[e]=!0})),E(t),N(!x)},name:"allCheck"}),label:l("\uc804\uccb4\uc120\ud0dd")}),Qu.map((e=>Object(g.jsx)(Ju,{type:e.type,cons:e.cons,icon:e.icon,types:f,setTypes:e=>{E(e)}})))]})})]}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Hc.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{!async function(e){i(!0);let t="",a="";Object.keys(f).forEach(((e,a)=>{f[e]&&(t+=""===t?e:", ".concat(e))})),a=j.isMonitoring?"1, 3":"1",j.isBlocking&&(a+=", 2");const n=await _j(j.userID,j.clientID,j.userName,a,bt.a.getDateString(j.startDate),bt.a.getDateString(j.endDate),j.orderAscending,t,e);n.rows>0?await S(1):_([]),p(Object(d.a)(Object(d.a)({},O),{},{total_rows:n.rows,total_pages:n.pages,rows_per_page:e,current_page:1})),i(!1)}(O.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[l("DLP_CLIENT_LOG_LOGGED_AT"),l("DLP_CLIENT_LOG_USERNAME"),l("DLP_CLIENT_LOG_TYPE"),l("DLP_CLIENT_LOG_PATH"),l("DLP_CLIENT_LOG_SIGNING_ID"),l("DLP_CLIENT_LOG_HASH"),l("DLP_CLIENT_LOG_SOURCE_PATH"),l("DLP_CLIENT_LOG_DEST_PATH"),l("DLP_CLIENT_LOG_LOCAL_ENDPOINT"),l("DLP_CLIENT_LOG_REMOTE_ENDPOINT"),l("URL"),l("DLP_CLIENT_LOG_WEB_UPLOAD_FILE"),l("DLP_CLIENT_LOG_MAIL_CONTENTS")],t=[];for(let n=1;n<=O.total_pages;n++)(await fj(n)).forEach((e=>{let a="";e.files&&e.files.length>0&&e.files.forEach(((e,t)=>{a+=t>0?", ".concat(e):e})),t.push({logged_at:bt.a.getDateStringToLocalDate(e.logged_at),name:"".concat(e.user_name,"(").concat(e.user_id,"-").concat(e.client_id,")"),log_type:l($u[e.log_type].title),path:e.path,signing_id:e.signing_id,hash:e.hash,source_path:e.source_path,dest_path:e.dest_path,local_endpoint:e.local_endpoint,remote_endpoint:e.remote_endpoint,url:e.url,files:a,log:e.log})}));let a="\ucc28\ub2e8/\uc720\ucd9c \ub85c\uadf8";1===eO&&(a="\ub9e4\uccb4 \ub85c\uadf8"),hl.a.excelDownload("".concat(a).concat(bt.a.getDateString(j.startDate),"-").concat(bt.a.getDateString(j.endDate)),e,t,[{wpx:80},{wpx:80},{wpx:80},{wpx:300},{wpx:150},{wpx:200},{wpx:250},{wpx:250},{wpx:150},{wpx:150},{wpx:150},{wpx:150},{wpx:350}])}()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Hc.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{b(Object(d.a)(Object(d.a)({},o),{},{nonLogging:!0}))},style:{width:80},children:l("\uc81c\uc678 \uc571")})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Fu,{pageType:eO}),Object(g.jsx)(wl.a,{children:h.map((a=>{let n=Object(g.jsx)(Je.a,{title:l($u[a.log_type].title),placement:"bottom",arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{},style:{padding:0},children:Object(g.jsx)(ha.a,{className:"big",type:$u[a.log_type].icon,fill:"#333d4b"})})}),s="",c=a.dest_path,{path:r}=a;s=1===a.log_group?l("DLP_CLIENT_RELEASE_BLOCK"):3===a.log_group?l("DLP_CLIENT_MONITORING_LOG"):l("DLP_CLIENT_BLOCKED_LOG");const i=bt.a.splitLastDelimiterString(r),o=bt.a.splitPreDelimiter(r);switch(r=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:i}),Object(g.jsx)("p",{className:"log-path",children:o})]}),a.log_type){case 1:case 2:case 3:case 5:case 6:case 7:case 8:case 9:case 10:break;case 4:r=a.source_path;break;case 11:c=a.remote_endpoint,r=a.local_endpoint;break;case 12:c=a.url;break;case 13:r=a.url,c=a.files;break;case 14:{const e=JSON.parse(a.log);r="msdos"===e.type?e.protocol:e.type,c=a.path;break}case 15:{const e=JSON.parse(a.log);r="msdos"===e.type?e.protocol:e.type,r=a.path,c=a.log;break}case 16:{const e=JSON.parse(a.log);console.log(e);const t="";r=a.url,c=t;break}default:n=""}return a.tagName=n,a.list_path=r,Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.user_name,"(").concat(a.user_id,"-").concat(a.client_id,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:110},children:"".concat(s)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:70},children:n}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:r}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:c}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:l("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{b({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(O.total_rows/O.rows_per_page),color:"primary",onChange:(e,t)=>{S(t-1),c.current.scrollTop=0}})]})]})};var aO=function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1),[n,c]=s.a.useState("");return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(tO,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};var nO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientStorageLog",component:aO},{path:"/dlpMonitoringLogs",component:aO}]};const sO=Object(M.a)((e=>({tr:{"& .col-id":{width:45},"& .col-name":{minWidth:210},"& .col-desc":{minWidth:350}}})));var cO=function(e){const t=sO(e),{t:a}=Object(jt.a)("docbase");return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:t.tr,children:[Object(g.jsx)(Ll.a,{className:"left col-id",sortDirection:"id"===e.order.id&&e.order.direction,children:Object(g.jsx)(Bl.a,{active:"id"===e.order.id,direction:e.order.direction,onClick:t=>e.handleRequestSort(t,"id"),children:a("id")})}),Object(g.jsx)(Ll.a,{className:"left col-name",sortDirection:"name"===e.order.id&&e.order.direction,children:Object(g.jsx)(Bl.a,{active:"name"===e.order.id,direction:e.order.direction,onClick:t=>e.handleRequestSort(t,"name"),children:a("POLICY_NAME")})}),Object(g.jsx)(Ll.a,{className:"left col-desc",children:a("EXPLANATION")}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:a("DELETE")})]})})};const lO=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function rO(e){const t=lO(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState({}),[r,i]=s.a.useState(!1),o=s.a.useRef(null);function d(t){let s=!0;""===t.name&&(s=!1),""===t.desc&&(s=!1),l({}),s&&!r&&(i(!0),(async()=>{const s=await Ej(t.name,t.desc);s.result?1===e.type?(await async function(t){const a=await tj(e.selectedID),n=[],s=[],c=[],l=[],r=[],i=await Zb();i.uploadURL.forEach((t=>{t.group_id===e.selectedID&&n.push(t)})),i.blockURL.forEach((t=>{t.group_id===e.selectedID&&s.push(t)}));(await bj()).forEach((t=>{t.group_id===e.selectedID&&c.push(t)}));(await sj()).forEach((t=>{t.group_id===e.selectedID&&l.push(t)}));(await rj()).forEach((t=>{t.group_id===e.selectedID&&r.push(t)})),await aj(t,a.execute_control,a.network_control,a.takeout_approving,a.mount,a.bluetooth,a.bluetooth_pairing,a.messenger,a.install,a.airdrop,a.printing,a.allow_release_storage,a.allow_release_network,a.allow_release_execute,a.allow_release_upload_url,a.allow_release_bluetooth,a.allow_release_messenger,a.allow_release_airdrop,a.allow_release_printing,a.max_release_duration_months,a.max_release_duration_days,a.max_release_duration_hours,a.max_release_duration_minutes);for(let e=0;ed(e),validationErrors:c,ref:o,children:Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("GROUP_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("GROUP_NAME"),type:"text",name:"name",variant:"outlined",autoFocus:!0,required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("EXPLANATION")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:n("EXPLANATION"),type:"text",name:"desc",variant:"outlined",required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:t.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n(0===e.type?"ADD":"COPY")})]})]})})})]})})}const iO=["children","value","index"],oO=["children","classes","onClose"];function dO(e){const{children:t,value:a,index:n}=e,s=Object(Ws.a)(e,iO);return Object(g.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n)},s),{},{children:a===n&&Object(g.jsx)(Ot.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function bO(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const jO=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]},tabPanel:{overflow:"auto","&>.MuiBox-root":{padding:"30px 0 0 0"}}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,oO);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),uO=s.a.forwardRef((function(e,t){return Object(g.jsx)(ye.a,Object(d.a)({direction:"up",ref:t},e))})),OO=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%"}},contentWrapper:{height:623,"& .header-title":{fontSize:18,height:40,lineHeight:"40px",margin:"10px 0","&>span":{verticalAlign:"middle"},"&>.MuiTextField-root":{verticalAlign:"middle",width:300,marginLeft:20}},"& .content":{paddingBottom:50}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6},"&>.content>div":{width:"100%"},"& .search-form":{padding:12}},tableOrg:{"& .MuiTableRow-root.Mui-selected":{borderColor:"rgba(0, 207, 226, 0.3)"},"& .button":{minWidth:100},"& .default-policy":{minWidth:130},"& .policy-btn-col":{width:130},"& .MuiButton-containedSizeSmall":{width:80},"& .td-btn":{display:"flex",height:"40px",alignItems:"center",justifyContent:"center","& button":{width:"60px",minWidth:"60px",height:"30px",fontSize:"12px"},"& button:nth-child(2)":{marginLeft:"5px"}}},hint_span:{"padding-left":"10px","padding-right":"20px","font-size":"1rem",color:"#9f9f9f"},max_release_duration:{height:40,display:"flex",alignItems:"center",justifyContent:"center","& span":{paddingRight:10}},backdrop:{zIndex:100,color:"#fff"}}))),pO=[0,1,2,3,4,5,6,7,8,9,10,11,12],hO=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],mO=[0,1,2,3,4,5,6,7,8,9,10,11,12],_O=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60];function fO(e){const t=Object(m.b)(),a=OO(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState({isGroup:!1,execute_control:1,network_control:1,takeout_approving:1,mount:!0,bluetooth:!0,bluetooth_pairing:!0,messenger:!0,install:!0,airdrop:!0,printing:!0,allow_release_storage:!0,allow_release_network:!0,allow_release_execute:!0,allow_release_upload_url:!0,allow_release_bluetooth:!0,allow_release_messenger:!0,allow_release_airdrop:!0,allow_release_printing:!0,max_release_duration_minutes:0,max_release_duration_hours:0,max_release_duration_days:0,max_release_duration_months:0}),[i,o]=s.a.useState({programs:[],object:{}}),[b,j]=s.a.useState({networks:[],object:{}}),[u,O]=s.a.useState({storages:[],object:{}}),[p,h]=s.a.useState({id:-1}),[_,f]=s.a.useState({program:-1,network_name:"",inbound_ports:"",outbound_destinations:""}),[E,x]=s.a.useState({program:-1,storage:-1,readable:!0,writable:!0,executable:!0}),[N,S]=s.a.useState({name:"",url:"",urlRegex:""}),[T,y]=s.a.useState({name:"",url:"",urlRegex:""}),[C,A]=s.a.useState({execute:[],network:[]}),[L,w]=s.a.useState([]),[P,D]=s.a.useState([]),[M,k]=s.a.useState([]),[F,W]=s.a.useState([]),[H,z]=s.a.useState([]),[B,K]=s.a.useState(""),[Y,V]=s.a.useState(""),[X,q]=s.a.useState(0),[J,Z]=s.a.useState(!1),$=s.a.useRef(null),ee=s.a.useRef(null);s.a.useEffect((()=>{e.open&&async function(){const t=await Jb(),a=await ej(),n=await qb(),s=await sj(),c=await rj();A({execute:se(s),network:se(c)});const l=await bj();w(se(l));const i=await Zb(e.groupID);i.uploadURL&&D(i.uploadURL);i.blockURL&&k(i.blockURL);ne();const d={};t.forEach((e=>{d[e.id]=e}));const b={};a.forEach((e=>{b[e.id]=e}));const u={};n.forEach((e=>{u[e.id]=e})),o({programs:t,object:d}),j({networks:a,object:b}),O({storages:n,object:u}),S({name:"",url:"",urlRegex:""}),y({name:"",url:"",urlRegex:""}),x({program:-1,storage:-1,readable:!0,writable:!0,executable:!0}),h({id:-1}),f({program:-1,network_name:"",inbound_ports:"",outbound_destinations:""}),r({isGroup:!1,execute_control:1,network_control:1,takeout_approving:1,mount:!0,bluetooth:!0,bluetooth_pairing:!0,messenger:!0,install:!0,airdrop:!0,printing:!0,allow_release_storage:!0,allow_release_network:!0,allow_release_execute:!0,allow_release_upload_url:!0,allow_release_bluetooth:!0,allow_release_messenger:!0,allow_release_airdrop:!0,allow_release_printing:!0,max_release_duration_minutes:0,max_release_duration_hours:0,max_release_duration_days:0,max_release_duration_months:0})}()}),[e.open]),s.a.useEffect((()=>{te(P,""),K("")}),[P]),s.a.useEffect((()=>{ae(M,""),V("")}),[M]);const te=Object(n.useCallback)(Object(ul.debounce)((async(e,t)=>{try{if(t.length>0){const a=[];e.forEach((e=>{(e.name.indexOf(t)>=0||e.url.indexOf(t)>=0||e.url_regex.indexOf(t)>=0)&&a.push(e)})),W(a)}else W(e)}catch(a){console.error(a)}}),500),[]),ae=Object(n.useCallback)(Object(ul.debounce)((async(e,t)=>{try{if(t.length>0){const a=[];e.forEach((e=>{(e.name.indexOf(t)>=0||e.url.indexOf(t)>=0||e.url_regex.indexOf(t)>=0)&&a.push(e)})),z(a)}else z(e)}catch(a){console.error(a)}}),500),[]);function ne(){tj(e.groupID).then((e=>{r(Object(d.a)(Object(d.a)({},e),{},{isGroup:!0}))})).catch((e=>{console.log(e),6===e.error&&tj(0).then((e=>{r(Object(d.a)(Object(d.a)({},e),{},{isGroup:!1}))})),r({isGroup:!1,execute_control:1,network_control:1,takeout_approving:1,mount:!0,bluetooth:!0,bluetooth_pairing:!0,messenger:!0,install:!0,airdrop:!0,allow_release_storage:!0,allow_release_network:!0,allow_release_execute:!0,allow_release_upload_url:!0,allow_release_bluetooth:!0,allow_release_messenger:!0,allow_release_airdrop:!0,max_release_duration_minutes:0,max_release_duration_hours:0,max_release_duration_days:0,max_release_duration_months:0})}))}function se(t){const a=[];return t.forEach((t=>{t.group_id===e.groupID&&(t.inbound_ports&&""!==t.inbound_ports&&(t.inboundPortsEx=t.inbound_ports),t.outbound_destinations&&""!==t.outbound_destinations&&(t.outboundDestinationsEx=t.outbound_destinations),a.push(t))})),a}function ce(e,a,n,s,l,r){t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_1"),fnHandleOK:()=>{oj(e,a,n,s,l,r).then((()=>{rj().then((e=>{A(Object(d.a)(Object(d.a)({},C),{},{network:se(e)}))}))}))}})}))}function le(e,a,n,s,l,r,i){t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_1"),fnHandleOK:()=>{uj(e,a,n,s,l,r,i).then((()=>{bj().then((e=>{w(se(e))}))}))}})}))}function re(e,t){let a="";if(a=1===e?"##blocksite##":"##whitesite##",""===t)return t;const n=t.lastIndexOf(".");return-1===n?t+a:t.slice(0,n)+a+t.slice(n)}s.a.useEffect((()=>{}),[]);const ie=e=>{const t=new Set,a=[],n=[];return e.forEach((e=>{var s;const c=null!==(s=e.name)&&void 0!==s&&s.trim()?e.name.trim():e.url;t.has(c)?a.push(Object(d.a)(Object(d.a)({},e),{},{__safeName:c})):(t.add(c),n.push(Object(d.a)(Object(d.a)({},e),{},{__safeName:c})))})),{uniques:n,duplicates:a}};return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,TransitionComponent:uO,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)(jO,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("DLP_POLICY_GROUP_SETTING")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:Object(G.a)(a.contentWrapper,"flex-grow"),children:[Object(g.jsx)(Ue.a,{position:"static",className:a.tabsBar,children:Object(g.jsxs)(kl.a,{value:X,indicatorColor:"",onChange:(e,t)=>{X!==t&&q(t)},children:[Object(g.jsx)(Gl.a,Object(d.a)({label:c("DEFAULT_POLICY")},bO(0))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("DLP_POLICY_GROUP_RELEASE")},bO(1))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("DLP_EXECUTE_PROGRAM")},bO(2))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("DLP_ALLOW_RELEASE_NETWORK")},bO(3))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("DLP_POLICY_GROUP_GRANT")},bO(4))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("DLP_POLICY_WHITE_URL_MANAGEMENT")},bO(5))),Object(g.jsx)(Gl.a,Object(d.a)({label:c("\uc811\uc18d\ucc28\ub2e8 URL \uad00\ub9ac")},bO(5)))]})}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:0,children:[Object(g.jsx)("div",{className:"header-title",children:c("DEFAULT_POLICY")}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_PAIRING")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_FILE")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MESSENGER")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_AIRDROP")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_INSTALL")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MOUNT")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PRINTING")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_TAKEOUT_APPROVING")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(wl.a,{children:Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.execute_control,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{execute_control:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:"1",children:c("WHITE_LIST")}),Object(g.jsx)(Q.a,{value:"2",children:c("BLACK_LIST")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.network_control,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{network_control:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:"1",children:c("WHITE_LIST")}),Object(g.jsx)(Q.a,{value:"2",children:c("BLACK_LIST")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.bluetooth_pairing,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{bluetooth_pairing:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.bluetooth,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{bluetooth:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.messenger,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{messenger:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.airdrop,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{airdrop:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.install,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{install:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.mount,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{mount:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.printing,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{printing:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.takeout_approving,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{takeout_approving:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:1,children:c("\uc2b9\uc778 \ud544\uc694")}),Object(g.jsx)(Q.a,{value:2,children:c("\uc790\ub3d9 \uc2b9\uc778")})]})}),Object(g.jsxs)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_1"),fnHandleOK:()=>{aj(e.groupID,l.execute_control,l.network_control,l.takeout_approving,l.mount,l.bluetooth,l.bluetooth_pairing,l.messenger,l.install,l.airdrop,l.printing,l.allow_release_storage,l.allow_release_network,l.allow_release_execute,l.allow_release_upload_url,l.allow_release_bluetooth,l.allow_release_messenger,l.allow_release_airdrop,l.allow_release_printing,l.max_release_duration_months,l.max_release_duration_days,l.max_release_duration_hours,l.max_release_duration_minutes).then((()=>{ne()}))}})}))},children:c("MODIFY")}),l.isGroup?Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_2"),fnHandleOK:()=>{nj(e.groupID).then((()=>{ne()}))}})}))},children:c("RESET")}):Object(g.jsx)(g.Fragment,{})]})]})})]})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:1,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_GROUP_RELEASE_TITLE")}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_STORAGE")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_EXECUTE")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_UPLOAD_URL")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_BLUETOOTH")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_MESSENGER")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_AIRDROP")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_PRINTING")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(wl.a,{children:Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_storage,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_storage:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_network,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_network:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_execute,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_execute:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_upload_url,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_upload_url:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_bluetooth,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_bluetooth:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_messenger,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_messenger:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_airdrop,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_airdrop:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:l.allow_release_printing,fullWidth:!0,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{allow_release_printing:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_RELEASE_TITLE"),content:c("DLP_POLICY_GROUP_RELEASE_CONTENT_1"),fnHandleOK:()=>{aj(e.groupID,l.execute_control,l.network_control,l.takeout_approving,l.mount,l.bluetooth,l.bluetooth_pairing,l.messenger,l.install,l.airdrop,l.printing,l.allow_release_storage,l.allow_release_network,l.allow_release_execute,l.allow_release_upload_url,l.allow_release_bluetooth,l.allow_release_messenger,l.allow_release_airdrop,l.allow_release_printing,l.max_release_duration_months,l.max_release_duration_days,l.max_release_duration_hours,l.max_release_duration_minutes).then((()=>{ne()}))}})}))},children:c("MODIFY")})})]})})]}),Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_RELEASE_DURATION")}),Object(g.jsx)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:Object(g.jsx)(wl.a,{children:Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:Object(g.jsxs)(Ll.a,{className:a.max_release_duration,align:"center",component:"td",scope:"row",children:[Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",variant:"outlined",value:l.max_release_duration_months,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{max_release_duration_months:e.target.value}))},children:pO.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("MONTH")}),Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",variant:"outlined",value:l.max_release_duration_days,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{max_release_duration_days:e.target.value}))},children:hO.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("DAY")}),Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",variant:"outlined",value:l.max_release_duration_hours,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{max_release_duration_hours:e.target.value}))},children:mO.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("HOUR")}),Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",variant:"outlined",value:l.max_release_duration_minutes,onChange:e=>{r(Object(d.a)(Object(d.a)({},l),{},{max_release_duration_minutes:e.target.value}))},children:_O.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("MINUTE")}),Object(g.jsx)("span",{className:a.hint_span,children:"\ud569\uc774 '0'\uc77c \uacbd\uc6b0 \ud55c\uc81c\ud55c"}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_RELEASE_DURATION_TITLE"),content:c("DLP_POLICY_RELEASE_DURATION_CONTENT_1"),fnHandleOK:()=>{aj(e.groupID,l.execute_control,l.network_control,l.takeout_approving,l.mount,l.bluetooth,l.bluetooth_pairing,l.messenger,l.install,l.airdrop,l.printing,l.allow_release_storage,l.allow_release_network,l.allow_release_execute,l.allow_release_upload_url,l.allow_release_bluetooth,l.allow_release_messenger,l.allow_release_airdrop,l.allow_release_printing,l.max_release_duration_months,l.max_release_duration_days,l.max_release_duration_hours,l.max_release_duration_minutes).then((()=>{ne()}))}})}))},children:c("\uc218\uc815")})]})})})})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:2,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_HASH")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROCESS_TYPE")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(wl.a,{children:[C.execute.map((e=>{const a=i.object[e.program];return a?Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.signing_id}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.hash}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.program_name}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.process_type}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_DELETE_CONTENT"),fnHandleOK:()=>{lj(e.id).then((()=>{sj().then((e=>{A(Object(d.a)(Object(d.a)({},C),{},{execute:se(e)}))}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]}):Object(g.jsx)(g.Fragment,{})})),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",colSpan:5,children:Object(g.jsx)(Ht.a,{select:!0,className:"",label:"",value:p,fullWidth:!0,onChange:e=>{h(e.target.value)},children:i.programs.map((e=>Object(g.jsx)(Q.a,{value:e.id,children:e.name})))})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_CONTENT"),fnHandleOK:()=>{cj(e.groupID,p).then((()=>{sj().then((e=>{A(Object(d.a)(Object(d.a)({},C),{},{execute:se(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:3,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_MANAGE_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(wl.a,{children:[C.network.map((a=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{ce(a.id,e.groupID,t.target.value,a.network_name,a.inbound_ports,a.outbound_destinations)},children:[Object(g.jsx)(Q.a,{value:0,children:c("ALL_PROGRAM")}),";",i.programs.map((e=>Object(g.jsx)(Q.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.network_name,fullWidth:!0,onChange:t=>{ce(a.id,e.groupID,a.program,t.target.value,a.inbound_ports,a.outbound_destinations)},children:[Object(g.jsx)(Q.a,{value:"",children:c("NOT_SELECTED")}),";",b.networks.map((e=>Object(g.jsx)(Q.a,{value:e.name,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:a.inboundPortsEx,fullWidth:!0,onChange:e=>{A(Object(d.a)(Object(d.a)({},C),{},{network:C.network.map((t=>(t.id===a.id&&(t.inboundPortsEx=e.target.value),t)))}))},onBlur:()=>{ce(a.id,e.groupID,a.program,a.network_name,a.inboundPortsEx,a.outbound_destinations)}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:a.outboundDestinationsEx,fullWidth:!0,onChange:e=>{A(Object(d.a)(Object(d.a)({},C),{},{network:C.network.map((t=>(t.id===a.id&&(t.outboundDestinationsEx=e.target.value),t)))}))},onBlur:()=>{ce(a.id,e.groupID,a.program,a.network_name,a.inbound_ports,a.outboundDestinationsEx)}})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_2"),fnHandleOK:()=>{dj(a.id).then((()=>{rj().then((e=>{A(Object(d.a)(Object(d.a)({},C),{},{network:se(e)}))}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:_.program,fullWidth:!0,onChange:e=>{f(Object(d.a)(Object(d.a)({},_),{},{program:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:0,children:c("ALL_PROGRAM")}),";",i.programs.map((e=>Object(g.jsx)(Q.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:_.network_name,fullWidth:!0,onChange:e=>{f(Object(d.a)(Object(d.a)({},_),{},{network_name:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:"",children:c("NOT_SELECTED")}),";",b.networks.map((e=>Object(g.jsx)(Q.a,{value:e.name,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:_.inbound_ports,fullWidth:!0,onChange:e=>{f(Object(d.a)(Object(d.a)({},_),{},{inbound_ports:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:_.outbound_destinations,fullWidth:!0,onChange:e=>{f(Object(d.a)(Object(d.a)({},_),{},{outbound_destinations:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_3"),fnHandleOK:()=>{ij(e.groupID,_.program,_.network_name,_.inbound_ports,_.outbound_destinations).then((()=>{rj().then((e=>{A(Object(d.a)(Object(d.a)({},C),{},{network:se(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:4,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_GROUP_GRANT")}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("STORAGE_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_READ")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_WRITE")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_EXECUTE")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(wl.a,{children:[L.map((a=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{le(a.id,e.groupID,t.target.value,a.storage,a.readable,a.writable,a.executable)},children:[Object(g.jsx)(Q.a,{value:0,children:c("ALL_PROGRAM")}),";",i.programs.map((e=>Object(g.jsx)(Q.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.storage,fullWidth:!0,onChange:t=>{le(a.id,e.groupID,a.program,t.target.value,a.readable,a.writable,a.executable)},children:[Object(g.jsx)(Q.a,{value:2,children:c("USB")}),Object(g.jsx)(Q.a,{value:1,children:c("COODOC Drive")}),Object(g.jsx)(Q.a,{value:3,children:c("Network Drive")}),u.storages.map((e=>Object(g.jsx)(Q.a,{value:e.storage_id,children:e.path})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.readable,fullWidth:!0,onChange:t=>{le(a.id,e.groupID,a.program,a.storage,t.target.value,a.writable,a.executable)},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.writable,fullWidth:!0,onChange:t=>{le(a.id,e.groupID,a.program,a.storage,a.readable,t.target.value,a.executable)},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:a.executable,fullWidth:!0,onChange:t=>{le(a.id,e.groupID,a.program,a.storage,a.readable,a.writable,t.target.value)},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_2"),fnHandleOK:()=>{Oj(a.id).then((()=>{bj().then((e=>{w(se(e))}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:E.program,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},E),{},{program:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:0,children:c("ALL_PROGRAM")}),";",i.programs.map((e=>Object(g.jsx)(Q.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:E.storage,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},E),{},{storage:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:2,children:c("USB")}),Object(g.jsx)(Q.a,{value:1,children:c("COODOC Drive")}),Object(g.jsx)(Q.a,{value:3,children:c("Network Drive")}),u.storages.map((e=>Object(g.jsx)(Q.a,{value:e.storage_id,children:e.path})))]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:E.readable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},E),{},{readable:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:E.writable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},E),{},{writable:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Ht.a,{select:!0,className:"",label:"",value:E.executable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},E),{},{executable:e.target.value}))},children:[Object(g.jsx)(Q.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(Q.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_3"),fnHandleOK:()=>{jj(e.groupID,E.program,E.storage,E.readable,E.writable,E.executable).then((()=>{bj().then((e=>{w(se(e))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:5,children:[Object(g.jsxs)("div",{className:"header-title",children:[Object(g.jsxs)("span",{children:[" ",c("DLP_POLICY_WHITE_URL_MANAGEMENT")]}),Object(g.jsx)(Ht.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:B,onChange:e=>{K(e.target.value),te(P,e.target.value)}}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",type:"button",size:"small",onClick:()=>$.current.click(),style:{marginLeft:"10px",width:"auto"},children:c("\uc5c5\ub85c\ub4dcURL \ub4f1\ub85d")}),Object(g.jsx)("input",{type:"file",label:"Upload",onChange:async a=>{Z(!0);const n=a.target.files[0];if(n)try{const a=await hl.a.readCsvFile(n),{uniques:s,duplicates:c}=ie(a);if(c.length>0){const e=c.map((e=>e.name||e.url)).join(", ");console.log("\uc911\ubcf5\ub41c \ud56d\ubaa9:",e),t(Object(U.c)({message:"\uc911\ubcf5\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4: ".concat(e)}))}else{await s.reduce(((t,a)=>t.then((async()=>{var t;await Qb(null!==(t=a.name)&&void 0!==t&&t.trim()?a.name:a.url,e.groupID,"",a.url.replaceAll("*","(.+)?")),await bt.a.sleep(100)}))),Promise.resolve());const t=await Zb(e.groupID);t.uploadURL&&D(t.uploadURL),t.blockURL&&k(t.blockURL)}}catch(s){console.error("CSV \ud30c\uc2f1 \uc2e4\ud328",s)}finally{Z(!1)}else Z(!1)},style:{display:"none"},ref:$,multiple:!0})]}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(wl.a,{children:[F.map((a=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{$b(a.name_ex,e.groupID).then((()=>{Zb(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL)}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:N.name,fullWidth:!0,onChange:e=>{S(Object(d.a)(Object(d.a)({},N),{},{name:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:N.url,fullWidth:!0,onChange:e=>{S(Object(d.a)(Object(d.a)({},N),{},{url:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:N.urlRegex,placeholder:c("DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER"),fullWidth:!0,onChange:e=>{S(Object(d.a)(Object(d.a)({},N),{},{urlRegex:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_CONTENT"),fnHandleOK:()=>""===N.name?(t(Object(U.c)({message:c("DLP_POLICY_WHITE_URL_MESSAGE_1")})),!1):(Qb(N.name,e.groupID,N.url,N.urlRegex.replaceAll("*","(.+)?")).then((()=>{S({name:"",url:"",urlRegex:""}),Zb(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(dO,{className:a.tabPanel,value:X,index:6,children:[Object(g.jsxs)("div",{className:"header-title",children:[Object(g.jsxs)("span",{children:[" ",c("\uc811\uc18d\ucc28\ub2e8 URL \uad00\ub9ac")]}),Object(g.jsx)(Ht.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:Y,onChange:e=>{V(e.target.value),ae(M,e.target.value)}}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",type:"button",size:"small",onClick:()=>ee.current.click(),style:{marginLeft:"10px",width:"auto"},children:c("\ucc28\ub2e8URL \ub4f1\ub85d")}),Object(g.jsx)("input",{type:"file",label:"Upload",onChange:async a=>{Z(!0);const n=a.target.files[0];if(n)try{const a=await hl.a.readCsvFile(n),{uniques:s,duplicates:c}=ie(a);if(c.length>0){const e=c.map((e=>e.name||e.url)).join(", ");console.log("\uc911\ubcf5\ub41c \ud56d\ubaa9:",e),t(Object(U.c)({message:"\uc911\ubcf5\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4: ".concat(e)}))}else{await s.reduce(((t,a)=>t.then((async()=>{var t;await Qb(null!==(t=a.name)&&void 0!==t&&t.trim()?a.name:a.url,e.groupID,"",re(1,a.url).replaceAll("*","(.+)?")),await bt.a.sleep(100)}))),Promise.resolve());const t=await Zb(e.groupID);t.uploadURL&&D(t.uploadURL),t.blockURL&&k(t.blockURL)}}catch(s){console.error("CSV \ud30c\uc2f1 \uc2e4\ud328",s)}finally{Z(!1)}else Z(!1)},style:{display:"none"},ref:ee,multiple:!0})]}),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Ll.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Ll.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(wl.a,{children:[H.map((a=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{$b(a.name_ex,e.groupID).then((()=>{Zb(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))}))}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:T.name,fullWidth:!0,onChange:e=>{y(Object(d.a)(Object(d.a)({},T),{},{name:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:T.url,fullWidth:!0,onChange:e=>{y(Object(d.a)(Object(d.a)({},T),{},{url:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ht.a,{className:"",label:"",value:T.urlRegex,placeholder:c("DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER"),fullWidth:!0,onChange:e=>{y(Object(d.a)(Object(d.a)({},T),{},{urlRegex:e.target.value}))}})}),Object(g.jsx)(Ll.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_CONTENT"),fnHandleOK:()=>""===T.name?(t(Object(U.c)({message:c("DLP_POLICY_WHITE_URL_MESSAGE_1")})),!1):(Qb(T.name,e.groupID,re(1,T.url),re(1,T.urlRegex).replaceAll("*","(.+)?")).then((()=>{y({name:"",url:"",urlRegex:""}),Zb(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]})]})}),Object(g.jsx)(yc.a,{className:a.backdrop,open:J,children:Object(g.jsx)(Cc.a,{color:"inherit"})})]})})}const gO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 180px)",padding:"0 20px",overflow:"auto"},icon:{width:20,height:20},insertForm:{display:"flex","&>div":{display:"flex",alignItems:"center"},"&>div:first-child":{width:"100%"},"&>div:first-child input.MuiOutlinedInput-input":{padding:"5.7px 10px"},"&>div.button-group":{paddingRight:20},"&>div.button-group>button":{width:106,height:28,marginLeft:10}}})));var EO=function(e){const t=gO(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)({id:"user_id",direction:"asc"}),[o,d]=Object(n.useState)(""),[b,j]=Object(n.useState)(!0),[u,O]=Object(n.useState)({open:!1,type:0}),[p,h]=Object(n.useState)([]);return Object(n.useEffect)((()=>{o.length>0?h(e.groups.filter((e=>e.name.toLowerCase().includes(o.toLowerCase())))):h(e.groups)}),[o]),Object(n.useEffect)((()=>{const t=[];o.length>0?t.push(...e.groups.filter((e=>e.name.toLowerCase().includes(o.toLowerCase())))):t.push(...e.groups),h([...t].sort(((e,t)=>{const{id:a,direction:n}=r,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return l="id"===a?Number(s)-Number(c):String(s).localeCompare(String(c)),"desc"===n&&(l*=-1),l}))),j(!1)}),[e.groups,r]),Object(n.useEffect)((()=>(j(!0),e.fnGetGroups(),()=>{})),[a]),b?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(rO,{open:u.open,type:u.type,selectedID:e.selectedID,fnHandleClose:()=>{O({open:!1,type:0})},fnHandleOK:()=>{e.fnGetGroups()}}),Object(g.jsx)(fO,{open:e.DLPPolicy.open,groupID:e.DLPPolicy.selectedID,fnHandleClose:()=>e.fnCloseDLPPolicy()}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{placeholder:l("SEARCH"),className:"search-input",variant:"outlined",fullWidth:!0,value:o,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:o&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>d(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>d(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:p.length}),l("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Hc.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:t=>{e.fnOpenDLPPolicy()},children:l("DEFAULT_POLICY_SETTING")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:e=>{O({open:!0,type:0})},children:l("NEW_REGISTRATION")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"default",type:"button",onClick:t=>{0===e.selectedID?a(Object(U.c)({message:l("DLP_POLICY_GROUP_MESSAGE_3")})):O({open:!0,type:1})},children:l("COPY_POLICY")})]})})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(cO,{order:r,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";r.id===t&&"desc"===r.direction&&(n="asc"),i({direction:n,id:a})})(0,t)}),Object(g.jsx)(wl.a,{children:p.map((t=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:t.id===e.selectedID,onClick:a=>{var n;n=t.id,e.selectedID!==n?e.fnSetSelectedID(n):e.fnSetSelectedID(0)},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.id}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.name}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.desc}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:l("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(l("DELETE_CONTENT_USER")),fnHandleOK:()=>e.fnRemoveGroups(t.id)})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t.id)))})]})})]})]})};const xO=["children","classes","onClose"],NO=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,xO);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),SO=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:673,background:"#f2f3f5","&>div":{padding:30}}},contentWrapper:{height:400,background:"#fff"},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},head:{paddingBottom:"0px !important","& .search-wrapper":{background:"#ffffff",borderRadius:6,padding:"15px 30px",display:"flex","& .input-item":{width:273},"&>button":{marginLeft:10}}},body:{paddingTop:"10px !important","& .type-tabs":{width:"100%",display:"flex",alignItems:"center","& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:50,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}},"& .result-list":{fontSize:14,boxShadow:"none",marginTop:"-3px","& .cell-check":{width:60},"& .MuiTableBody-root":{background:"#ffffff"},"& .cell-name":{"&>div":{display:"flex",alignItems:"center"},"&>.etc":{position:"absolute",right:0,top:2}},"& .MuiIconButton-label":{width:10,height:10},"& .obj-name>span":{marginLeft:12}}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:40,"& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));let TO=!1;function vO(e){const t=SO(),a=Object(m.b)(),{t:c}=(s.a.useRef(null),Object(jt.a)("docbase")),{users:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgsChildren:r,orgFolders:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,b]=s.a.useState(""),[j,u]=s.a.useState([]),[O,p]=s.a.useState([]),[h,_]=s.a.useState({}),[f,E]=s.a.useState({}),[x,N]=s.a.useState(!1),[S,T]=s.a.useState(1),[R,y]=s.a.useState({direction:"asc"}),[C,A]=s.a.useState(100),[L,w]=s.a.useState(0);function I(){const e=[];Object.keys(r).forEach((t=>{e.push(Number(t))})),_(r)}s.a.useEffect((()=>{e.open?(a(Object(ln.f)()),e.searchVal&&""!==e.searchVal?b(e.searchVal):P("")):(p([]),b(""),E({}),I())}),[e.open]),s.a.useEffect((()=>{b(""),P(""),N(!1)}),[S,l]),s.a.useEffect((()=>{I()}),[r]),s.a.useEffect((()=>(P(o),()=>{P.cancel()})),[o]),s.a.useEffect((()=>{p(j.slice(C*L,C*(L+1)))}),[L,C,j]);const P=Object(n.useCallback)(Object(ul.debounce)((t=>{const a=[],n={};0===S?t.length>0?(i.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),_({0:{children:a}})):I():l.forEach((s=>{e.permsObj[s.user_id]||(""===t||s.name.indexOf(t)>=0||s.user_id.indexOf(t)>=0)&&(a.push({id:s.user_id,name:s.name,path:""}),n[s.user_id]=!1)})),E(n),u(a),w(0)}),1e3));function D(){const e={};if(O.forEach((t=>{e[t.id]=!x})),N(!x),E(e),0===S){const e=Object(d.a)({},r),t=[];Object.keys(r).forEach((a=>{if(r[a]){const t=r[a].children.map((e=>{const t=Object(d.a)({},e);return t.checked=!x,t}));e[a]={children:t}}t.push(Number(a))})),_(e)}else a(Object(U.d)({message:c("\uc870\uc9c1\ud3f4\ub354\ub294 \ubaa8\ub450\uccb4\ud06c\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4")}))}return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(NO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("\uc815\ucc45 \uadf8\ub8f9 \uc0ac\uc6a9\uc790 \ucd94\uac00")}),Object(g.jsx)(gl.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:c("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:o,variant:"outlined",size:"small",onChange:e=>b(e.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>D(),children:c("CHECK_ALL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!TO){TO=!0;const t=Object.keys(f);if(0===S){const a={};for(let e=0;e{a[e.user_id]=e}));e.fnSetPerm(Object.keys(a))}else if(t.length>0){const a=[];for(let e=0;e{T(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(Gl.a,{className:"list-tab",disableRipple:!0,label:c("USER")})]})}),Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:0===S?Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,{className:"full",useCheckBox:!0,useExpand:!0,orgs:h,checks:f,setChecks:E,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsx)(RO,{data:O,totalData:j,rowsPerPage:C,setCurrentPage:e=>w(e),allCheck:x,checkedList:f,sortObj:R,setSortObj:e=>y(e),handleCheckAllBox:()=>D(),handleCheckBox:e=>{return t=e,N(!1),void E(Object(d.a)(Object(d.a)({},f),{},{[t]:!f[t]}));var t},t:c})})})]})})]})})}const RO=s.a.memo((e=>{let{data:t,totalData:a,rowsPerPage:n,setCurrentPage:s,allCheck:c,checkedList:l,sortObj:r,handleCheckAllBox:i,setSortObj:o,handleCheckBox:d,t:b}=e;return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"cell-check",align:"center",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:!c&&Object.values(l).filter((e=>e)).length>0,checked:c,onChange:e=>i()})}),Object(g.jsx)(Ll.a,{padding:"none",className:"left",align:"left",children:Object(g.jsx)(Bl.a,{active:!0,direction:r.direction,onClick:e=>{o({direction:"asc"===r.direction?"desc":"asc"})},children:b("USER")})})]})}),Object(g.jsx)(wl.a,{children:j.a.orderBy(t,[e=>e.name],[r.direction]).map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>d(e.id),children:[Object(g.jsx)(Ll.a,{className:"",padding:"none",align:"center",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:l[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{d(e.id)}})}),Object(g.jsx)(Ll.a,{className:"left cell-name",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(Il.a,{type:"person",className:"small"}),Object(g.jsx)("span",{children:e.name})]})})]},e.id)))})]}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(a.length/n),color:"primary",onChange:(e,t)=>{s(t-1)}})]})}),((e,t)=>j.a.isEqual(e.data,t.data)&&j.a.isEqual(e.checkedList,t.checkedList)&&e.allCheck===t.allCheck&&j.a.isEqual(e.sortObj,t.sortObj))),yO=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10,display:"flex"},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140},"&>.info>span":{fontSize:14,color:"#1e40af",cursor:"default"},"& .input-item":{width:200}},paperPermContent:{padding:0,marginTop:20},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},manage_type:{display:"inline-flex",flex:"0 0 auto"},manage_priority:{width:"24px",height:"24px","& .MuiSelect-root":{"padding-right":"0","padding-bottom":"4px"},"& svg":{display:"none"}},select:{width:"100%"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:30,"& button":{marginRight:10}},h_29:{height:"29px"}})));var CO=function(e){const t=yO(),a=Object(m.b)(),n=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(!1),[i,o]=s.a.useState([]),[d,b]=s.a.useState([]),[j,u]=s.a.useState({}),[O,p]=s.a.useState(""),[h,_]=s.a.useState("");function f(t){a(Object(rn.ab)({show:!0})),((e,t)=>new Promise(((a,n)=>{Object(Xa.d)(((s,c)=>{Ya.a.sendPost("/dlpapi/removeUserGroupMember",{group_id:e,user_id:Va.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.users):(Ya.a.printError(e),n(e))})).finally((()=>{}))}))})))(e.selectedID,t).then((t=>{Nj(e.selectedID).then((t=>{o(t.users),u(t.usersObj),e.fnUpdateGroupMembers(e.selectedID,t.users,t.usersObj),a(Object(rn.ab)({show:!1}))}))}))}return s.a.useEffect((()=>{p(e.selectedObj.name),_(e.selectedObj.desc),o(e.selectedObj.members),u(e.selectedObj.membersObj)}),[e.selectedObj]),s.a.useEffect((()=>{if(0===e.searchUserText.length)return void b(i);const t=i.filter((t=>{var a,n;return(null===(a=t.user_id)||void 0===a?void 0:a.includes(e.searchUserText))||(null===(n=t.user_name)||void 0===n?void 0:n.includes(e.searchUserText))})).sort(((e,t)=>{const a=(e.user_name||"").localeCompare(t.user_name||"");return 0!==a?a:(e.user_id||"").localeCompare(t.user_id||"")}));b(t)}),[i,e.searchUserText]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(vO,{open:l,permsObj:j,searchVal:e.searchUserText,fnHandleClose:()=>r(!1),fnSetPerm:t=>{!function(t){a(Object(rn.ab)({show:!0})),(async()=>{let n=!0;for(let a=0;a{o(t.users),u(t.usersObj),e.fnUpdateGroupMembers(e.selectedID,t.users,t.usersObj)})),r(!1),a(Object(rn.ab)({show:!1}))})()}(t)}}),Object(g.jsxs)(zc.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rr.a,{disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsxs)(k.a,{className:Object(G.a)(t.cardDetailInfo,"noto-bold"),variant:"h6",children:[Object(g.jsx)("span",{children:c("DETAIL_INFO")}),Object(g.jsx)("span",{children:"[".concat(e.selectedObj.name,"]")})]})]}),Object(g.jsxs)(Bc.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("GROUP_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:O,onChange:e=>p(e.target.value),onBlur:t=>{t.preventDefault(),""===t.target.value?a(Object(U.c)({message:c("\uadf8\ub8f9\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694")})):e.selectedObj.name!==t.target.value&&xj(e.selectedObj.id,t.target.value,e.selectedObj.desc).then((t=>{a(Object(U.d)({message:c("\uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnGetGroups()})).catch((e=>{a(Object(U.c)({message:c("FAILED")}))}))}})})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("EXPLANATION")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"desc",fullWidth:!0,value:h,onChange:e=>_(e.target.value),onBlur:t=>{t.preventDefault(),""===t.target.value?a(Object(U.c)({message:c("\uc124\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694")})):e.selectedObj.desc!==t.target.value&&xj(e.selectedObj.id,e.selectedObj.name,t.target.value).then((t=>{a(Object(U.d)({message:c("\uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnGetGroups()})).catch((e=>{a(Object(U.c)({message:c("FAILED")}))}))}})})]})]}),Object(g.jsx)(Rr.a,{className:Object(G.a)(t.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsx)("div",{className:Object(G.a)("inline-block align-middle"),children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{e.selectedID<0?a(Object(U.c)({message:c("\uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")})):e.fnOpenDLPPolicy()},children:c("\uadf8\ub8f9 \uc815\ucc45 \uc124\uc815")})})})})]}),Object(g.jsxs)(zc.a,{className:t.paperPerm,children:[Object(g.jsxs)(Bc.a,{className:t.paperPermHeader,children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:"input-item mr-5",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.searchUserText,placeholder:c("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:e.searchUserText&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>e.fnSetSearchUserText(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:t=>e.fnSetSearchUserText(t.target.value)})}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{e.selectedID<=0?a(Object(U.c)({message:c("\uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")})):r(!0)},children:c("\uc0ac\uc6a9\uc790 \ucd94\uac00")})]}),Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:["(",c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:d.length}),c("CNT"),")"]})})]}),Object(g.jsx)(Bc.a,{className:t.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:c("\uc0ad\uc81c")})]})}),Object(g.jsx)(wl.a,{children:d&&d.length>0?d.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Il.a,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_name,"(").concat(e.user_id,")")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"releasePerm",onClick:t=>f(e.user_id),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var AO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_groups",component:function(){const e=Object(m.b)(),t=s.a.useRef(null),[a,n]=s.a.useState(0),[c,l]=s.a.useState([]),[r,i]=s.a.useState({name:"",desc:"",id:0,members:[],membersObj:{}}),[o,b]=s.a.useState({open:!1,selectedID:0}),[j,u]=s.a.useState([]),[O,p]=s.a.useState("");s.a.useEffect((()=>{0===a?i({name:"",desc:"",id:0,members:[],membersObj:{}}):c.forEach((e=>{e.id===a&&i(e)})),b(Object(d.a)(Object(d.a)({},o),{},{selectedID:a}))}),[a]),s.a.useEffect((()=>{E(O)}),[c,O]);const h=()=>{gj().then((async t=>{l(await f(t)),e(Object(cn.h)())}))},_=e=>{var t;(t=e,new Promise(((e,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/removeUserGroup",{group_id:t,token:s}).then((t=>{t.result?e(t.result):(Ya.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{gj().then((async e=>{l(await f(e))}))}))},f=async e=>{for(let t=0;t{if(""===e)return void u(c);const t=c.filter((t=>{var a;return null===(a=t.members)||void 0===a?void 0:a.some((t=>{var a,n;return(null===(a=t.user_id)||void 0===a?void 0:a.includes(e))||(null===(n=t.user_name)||void 0===n?void 0:n.includes(e))}))}));u(t)}),500),[c]);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(EO,{selectedID:a,groups:j,DLPPolicy:o,fnSetSelectedID:e=>n(e),fnGetGroups:()=>h(),fnRemoveGroups:e=>_(e),fnOpenDLPPolicy:()=>{b({open:!0,selectedID:0})},fnCloseDLPPolicy:()=>{b(Object(d.a)(Object(d.a)({},o),{},{open:!1}))},fnToggleRightSidebar:e=>t.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(CO,{selectedID:a,selectedObj:r,searchUserText:O,fnSetSearchUserText:e=>p(e),fnGetGroups:()=>h(),fnOpenDLPPolicy:()=>{b({open:!0,selectedID:a})},fnToggleRightSidebar:e=>t.current.toggleRightSidebar(),fnUpdateGroupMembers:(e,t,a)=>{l((n=>n.map((n=>n.id===e?Object(d.a)(Object(d.a)({},n),{},{members:t,membersObj:a}):n))))}}),innerScroll:!0,sidebarInner:!0,ref:t})}}]};const LO=Object(M.a)((e=>({tr:{"& .user":{minWidth:"200px",width:"200px",maxWidth:"200px"},"& .type":{minWidth:"180px",width:"180px",maxWidth:"180px"},"& .path":{minWidth:"300px",width:"300px",maxWidth:"300px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"}}})));var wO=function(e){const t=LO(e),{t:a}=Object(jt.a)("docbase"),n=[{id:"logged_at",align:"center",className:"table_col_date",disablePadding:!1,label:a("HAPPEND_AT"),sort:!1},{id:"user",align:"left",className:"left user",disablePadding:!1,label:a("USER"),sort:!1},{id:"log_type",align:"center",className:" type",disablePadding:!1,label:a("ALERT_TYPE"),sort:!1},{id:"path",align:"center",className:"",disablePadding:!1,label:a("ALERT_INFO"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const IO=["children","classes","onClose"],PO=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,IO);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),DO=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:1208}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}}})));function MO(e){const t=DO(),{t:a}=Object(jt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(yc.a,{className:t.backdrop,open:!1,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)(PO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(el.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("\uc77c\uc2dc")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?bt.a.getDateStringToLocalDate(e.logObj.logged_at):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.user_name?"".concat(e.logObj.user_name,"(").concat(e.logObj.user_id,"-").concat(e.logObj.client_id,")"):""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.tagName||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.signing_id||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.hash||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.source_path||""})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:e.logObj.dest_path||""})]})]})]})})}const kO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 240px)",padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10},tr:{"& .path":{whiteSpace:"pre-wrap!important",overflowWrap:"break-word",textOverflow:"ellipsis",width:"400px",maxWidth:"400px"}}})));var GO=function(e){const t=kO(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),[o,b]=s.a.useState({open:!1,logObj:{}}),[j,u]=s.a.useState({userID:"",clientID:"",startDate:bt.a.getLastWeek(),endDate:new Date}),[O,p]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[h,_]=Object(n.useState)([]);if(Object(n.useEffect)((()=>(i(!0),f(O.rows_per_page),()=>{u({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),Object(n.useEffect)((()=>{console.log(O.current_page)}),[O]),r)return Object(g.jsx)(K.a,{});async function f(e){const t=await((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Xa.d)(((i,o)=>{Ya.a.sendPost("/dlpapi/inquiryClientAlertLogs",{user_id:e&&""!==e?Va.a.encryptAES(i,e,"utf8","hex"):"",client_id:t,log_group:a,start_date:n,end_date:s,order_ascending:!1,rows_per_page:c,token:o}).then((e=>{e.result?l({rows:e.total_rows,pages:e.total_pages}):(Ya.a.printError(e),r(e))})).finally((()=>{}))}))})))(j.userID,j.clientID,2,bt.a.getDateString(j.startDate),bt.a.getDateString(j.endDate),e);t.rows>0?await E(1):_([]),p(Object(d.a)(Object(d.a)({},O),{},{total_rows:t.rows,total_pages:t.pages,rows_per_page:e,current_page:1})),i(!1)}async function E(e){const t=await(e=>new Promise(((t,a)=>{Object(Xa.d)(((n,s)=>{Ya.a.sendPost("/dlpapi/inquiryClientAlertLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Va.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Va.a.decryptAES(n,e.user_name,"hex","utf8"),e)))):(Ya.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);_(t),p(Object(d.a)(Object(d.a)({},O),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(MO,{open:o.open,logObj:o.logObj,fnHandleClose:()=>b({open:!1,logObj:{}})}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O.total_rows}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{placeholder:l("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",variant:"outlined",fullWidth:!0,value:j.userID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.userID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{userID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{userID:e.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{placeholder:l("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",variant:"outlined",fullWidth:!0,value:j.clientID,InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:j.clientID&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(Object(d.a)(Object(d.a)({},j),{},{clientID:""})),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>u(Object(d.a)(Object(d.a)({},j),{},{clientID:e.target.value}))})}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:j.startDate,onChange:e=>{isNaN(e.getTime())||j.startDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:j.endDate,onChange:e=>{isNaN(e.getTime())||j.endDate.getTime()!==e.getTime()&&u(Object(d.a)(Object(d.a)({},j),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:()=>{f(O.rows_per_page)},children:l("SEARCH")})})]})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(wO,{}),Object(g.jsx)(wl.a,{children:h.map((a=>{let n="";switch(a.alert_type){case 1:n=l("\ud074\uc789\uc774\uc5b8\ud2b8 \uc81c\uac70 \uc2dc\ub3c4");break;case 2:n=l("\uc2dc\uc2a4\ud15c \ud655\uc7a5 \ud504\ub85c\uadf8\ub7a8 \uc81c\uac70 \uc2dc\ub3c4");break;case 3:n=l("EPS \ubaa8\ub4c8 \ube44\ud65c\uc131\ud654");break;case 4:n=l("Network \ubaa8\ub4c8 \ube44\ud65c\uc131\ud654");break;case 5:n=l("\ube0c\ub77c\uc6b0\uc800 \ud655\uc7a5\ud504\ub85c\uadf8\ub7a8 \ube44\ud65c\uc131\ud654");break;case 6:n=l("\uc811\uadfc \uc81c\ud55c \uc601\uc5ed\uc5d0 \uc811\uadfc");break;case 7:n=l("SIP \ube44\ud65c\uc131\ud654");break;case 8:n=l("\ube14\ub8e8\ud22c\uc2a4 \uc7a5\uce58 \ubcc0\uacbd");break;case 9:n=l("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc624\ub958")}return a.tagName=n,Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.happend_at)}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.user_name,"(").concat(a.user_id,"-").concat(a.client_id,")")}),Object(g.jsx)(Ll.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.alert_info})]},a.fid)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(O.total_rows/O.rows_per_page),color:"primary",onChange:(e,t)=>{E(t-1),c.current.scrollTop=0}})]})]})};var UO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlpClientAlertLog",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(GO,{selected:t,fnSetSelectedFid:e=>a(e)}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var FO=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"requested_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("TAKEOUT_REQ_AT"),sort:!1},{id:"requester",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REQUESTER"),sort:!1},{id:"expire_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("EXPIRE_DATE"),sort:!1},{id:"request_reason",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REASON_REQ"),sort:!1},{id:"status",align:"center",className:"",disablePadding:!1,label:t("TAKEOUT_STATUS"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[a.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Ll.a,{className:"",padding:"none",sortDirection:!1})]})})};const WO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},contentWrapper:{height:"calc(100vh - 225px)",padding:"0 20px"}})));var HO=function(e){const t=WO(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState([]),[o,b]=s.a.useState([]),[j,u]=s.a.useState(20),[O,p]=s.a.useState(0);Object(n.useEffect)((()=>{h()}),[a]),Object(n.useEffect)((()=>{0!==e.selectedObj.offline_drive_id&&i((t=>t.map((t=>t.offline_drive_id===e.selectedObj.offline_drive_id?Object(d.a)(Object(d.a)({},t),e.selectedObj):t))))}),[e.selectedObj]),Object(n.useEffect)((()=>{const e=O*j,t=e+j;b(r.slice(e,t))}),[r,O]);const h=async()=>{const t=await Object(cn.j)(),a=await Object(cn.a)();a.result&&(i(a.requests.sort(((e,t)=>e.status!==t.status?e.status-t.status:new Date(e.requested_at)-new Date(t.requested_at))).map((e=>{let n="";switch(e.status){case 0:n=l("TAKEOUT_REQUEST");break;case 1:n=l("TAKEOUT_APPROVED");break;case 2:n=l("TAKEOUT_REJECTED")}return e.user_id=Va.a.decryptAES(a.aes,e.user_id,"hex","utf8"),e.offline_map_path=Va.a.decryptAES(a.aes,e.offline_map_path,"hex","utf8"),e.reason=Va.a.decryptAES(a.aes,e.reason,"hex","utf8"),e.statusTxt=n,e.userName=t[e.user_id].name,e}))),e.setLoading(!1))};return e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:r.length}),l("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{h()},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(FO,{}),Object(g.jsx)(wl.a,{children:o.map((a=>{let n=l("TAKEOUT_REQUEST");switch(a.status){case 0:n=l("TAKEOUT_REQUEST");break;case 1:n=l("TAKEOUT_APPROVED")}return Object(g.jsxs)(Al.a,{className:Object(G.a)(t.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>{return n=a,e.fnSetSelectedObj(n),void e.fnToggleRightSidebar();var n},selected:e.selectedObj.offline_drive_id===a.offline_drive_id,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.userName,"(").concat(a.user_id,")")}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.expire_at)}),Object(g.jsx)(Ll.a,{className:"left",component:"td",scope:"row",children:a.reason}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:n})]},a.offline_drive_id)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(r.length/j),color:"primary",onChange:(e,t)=>{p(t-1)}})]})})};const zO=Object(M.a)({title:{color:"#000000",padding:20,textAlign:"center","& .MuiTypography-h6":{fontSize:16}},content:{color:"#404040",fontSize:14,padding:"0px 20px",textAlign:"center",whiteSpace:"pre-line"},actions:{padding:20,"& button":{width:"100%"}}});function BO(e){const t=zO(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState(new Date);return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)($c.a,{className:t.title,children:e.title}),Object(g.jsxs)(el.a,{className:t.content,children:[e.content,Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsx)("div",{className:"inputTitle",children:Object(g.jsx)("p",{children:n("EXPIRE_AT")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"expire_at",name:"expire_at",maxDate:new Date("2999-12-31"),value:c,onChange:e=>{l(e)},KeyboardButtonProps:{"aria-label":"change date start"}})})})]})]}),Object(g.jsxs)(gl.a,{className:t.actions,children:[Object(g.jsx)(Hc.a,{className:"default",onClick:()=>a(Object(R.a)()),children:n("NO")}),Object(g.jsx)(Hc.a,{variant:"contained",onClick:()=>{a(Object(R.a)()),e.fnHandleOK(c)},color:"secondary",autoFocus:!0,children:n("YES")})]})]})}const KO=Object(M.a)((e=>({cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277},filedInput:{width:"100%",padding:"0 30px",display:"flex",alignItems:"center"},icon:{marginRight:10},buttonGroup:{marginTop:30,"& button":{marginRight:10}}})));var YO=function(e){const t=KO(),a=s.a.useRef(),n=Object(m.b)(),{usersObj:c}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(""),[o,b]=s.a.useState(window.innerHeight);s.a.useEffect((()=>{o>=754&&(a.current.style.height="".concat(o-140,"px")),window.addEventListener("resize",(()=>b(window.innerHeight)))}),[o]),s.a.useEffect((()=>{}),[]);let j="";switch(e.selectedObj.request_type){case qc.Eb:j=l("TAKEOUT_DOC");break;case qc.Fb:j=l("TAKEOUT_PRINT");break;case qc.Gb:j=l("TAKEOUT_WEBLINK")}const u=async(t,a,s)=>{if(2===a&&""===s)return n(Object(U.c)({message:l("ENTER_REASON")})),!1;return(await Object(cn.c)(t,a,s)).result&&(n(Object(U.d)({message:l(1===a?"APPROVED":"REJECTED")})),e.fnChangedRequest(Object(d.a)(Object(d.a)({},e.selectedObj),{},{status:1===a?1:2}))),!0};return Object(g.jsx)("div",{className:"",ref:a,children:Object(g.jsxs)(zc.a,{className:t.cardInfo,children:[Object(g.jsx)(Rr.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})})}),Object(g.jsxs)(Bc.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("TAKEOUT_REQUESTER")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"requester",fullWidth:!0,value:e.selectedObj.user_id?"".concat(e.selectedObj.userName,"(").concat(e.selectedObj.user_id,")"):"",inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("TAKEOUT_REQ_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"requested_at",fullWidth:!0,value:bt.a.getDateStringToLocalDate(e.selectedObj.requested_at),inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("EXPIRE_DATE")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"expire_at",fullWidth:!0,value:bt.a.getDateStringToLocalDate(e.selectedObj.expire_at),inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("TAKEOUT_STATUS")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",value:e.selectedObj.statusTxt,name:"status",fullWidth:!0,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("TAKEOUT_REASON_REQ")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"reason_req",fullWidth:!0,value:e.selectedObj.reason,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:l("TAKEOUT_REASON_REJ")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:r,onChange:e=>i(e.target.value)})})]})]}),Object(g.jsx)(Rr.a,{className:Object(G.a)(t.buttonGroup,"block"),children:e.selectedObj.offline_drive_id>0&&0===e.selectedObj.status&&bt.a.isAfter(new Date("".concat(e.selectedObj.expire_at," 00:00:00")),new Date)?Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsxs)("div",{className:Object(G.a)("inline-block align-middle"),children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:t=>{e.selectedObj.offline_drive_id<=0?n(Object(U.c)({message:l("SELECT_REQUEST")})):n(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("OFFLINE_DRIVE"),content:l("OFFLINE_DRIVE_CONFIRM_1"),fnHandleOK:()=>{u(e.selectedObj.offline_drive_id,2,r)}})}))},children:l("TAKEOUT_REJECTED")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,size:"small",onClick:()=>{e.selectedObj.offline_drive_id<=0?n(Object(U.c)({message:l("SELECT_REQUEST")})):n(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("OFFLINE_DRIVE"),content:l("OFFLINE_DRIVE_CONFIRM_2"),fnHandleOK:()=>{u(e.selectedObj.offline_drive_id,1,"")}})}))},children:l("TAKEOUT_APPROVED")})]})}):1===e.selectedObj.status?Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsx)("div",{className:Object(G.a)("inline-block align-middle"),children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,size:"small",onClick:()=>{e.selectedObj.offline_drive_id<=0?n(Object(U.c)({message:l("SELECT_REQUEST")})):n(Object(R.c)({children:Object(g.jsx)(BO,{title:l("OFFLINE_DRIVE"),content:Object(g.jsx)("p",{children:l("OFFLINE_DRIVE_CONFIRM_2")}),fnHandleOK:t=>{(async(e,t)=>{const a=await Object(cn.l)(e,bt.a.getDateString(t));console.log(a),a.result&&n(Object(U.d)({message:l("\uc694\uccad\uc5d0 \uc131\uacf5\ud558\uc600\uc2b5\ub2c8\ub2e4")}))})(e.selectedObj.offline_drive_id,t)}})}))},children:l("\uc5f0\uc7a5\uc694\uccad")})})}):Object(g.jsx)(g.Fragment,{})})]})})};var VO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/offlineDrive",component:function(){const[e,t]=s.a.useState(!0),[a,n]=s.a.useState({user_id:"",userName:"",requested_at:"",expire_at:"",status:0,statusTxt:"",reason:"",offline_drive_id:0,offline_drive_latter:"",offline_map_path:""}),c=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(HO,{loading:e,setLoading:e=>t(e),selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(YO,{loading:e,setLoading:t,selectedObj:a,fnToggleRightSidebar:e=>c.current.toggleRightSidebar(),fnChangedRequest:e=>n(e)}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const XO=Object(M.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:220}}})));var qO=function(e){const{t:t}=Object(jt.a)("docbase"),a=XO(),n=[{id:"path",align:"left",className:"left",disablePadding:!1,label:t("PATH"),isSearch:!1,sort:!1},{id:"operator",align:"left",className:"user-id search-cell",disablePadding:!1,label:t("USER"),isSearch:!0,sort:!1},{id:"date",align:"center",className:"table_col_date",disablePadding:!1,label:t("\ubc18\ucd9c\uc77c"),isSearch:!1,sort:!1}],[c,l]=s.a.useState({operator:{show:""!==e.searchObj.operator,value:e.searchObj.operator}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Ll.a,{className:Object(G.a)(t.className,c[t.id]&&c[t.id].show?"show":""),align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:c[t.id]&&c[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:r,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:a=>{13===a.charCode&&(a.preventDefault(),e.fnSearch(c[t.id].value))}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const JO=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 225px)",padding:"0 20px"}})));var ZO=function(e){const t=JO(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{takeouts:r,totalRows:i,rowsPerPage:o,currentPage:d}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.offlineTakeoutsObj}));return Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:i}),l("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[l("PATH"),l("USER"),l("TAKEOUT_REQ_AT")],a=[];r.forEach((e=>{a.push({path:e.path,user:"".concat(e.user_name,"(").concat(e.user_id,")"),copied_at:bt.a.getDateStringToLocalDate(e.copied_at)})})),hl.a.excelDownload("".concat(l("FILE_LOG_EXCEL")).concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),t,a,[{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})})]}),Object(g.jsx)("div",{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(qO,{searchObj:e.searchObj,rowCount:r.length,fnSearch:t=>{e.searchObj.operator!==t&&e.fnSetSearchObj(t)}}),Object(g.jsx)(wl.a,{children:r.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.path)})]})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.user_name,"(").concat(e.user_id,")")}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.copied_at)})]},e.id)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(i/o),color:"primary",onChange:(t,a)=>{e.fnHandleChangePage(a-1)}})]})})};var QO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/offlineTakeouts",component:function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{t:l}=Object(jt.a)("docbase"),r=new Date,[i,o]=s.a.useState({startDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()),endDate:new Date(r.getFullYear(),r.getMonth(),r.getDate()),operator:""});function b(){let t=bt.a.getDateDifference(i.startDate,i.endDate);t<=0?t=0:t++,a(!0),e(Object(on.M)({page:1,day:0,userID:i.operator})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{b()}),[i]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(ZO,{loading:t,searchObj:i,setLoading:a,fnSetSearchObj:e=>o(Object(d.a)(Object(d.a)({},i),{},{operator:e})),fnDoSearch:()=>b(),fnHandleChangePage:(t,n)=>{return s=n,a(!0),void e(Object(on.N)({page:s+1})).then((()=>a(!1)));var s},fnHandleChangeRowsPerPage:t=>{return n=t,a(!0),e(Object(on.c)({value:n.target.value})),void e(Object(on.M)({page:1,day:0,userID:i.operator})).then((()=>a(!1)));var n}}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const $O=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"},"& .ip-range":{"& p":{fontSize:12,color:"#454545",marginBottom:5}}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function ep(e){const t=$O(),a=Object(m.b)(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState({}),[i,o]=s.a.useState(!1),[d,b]=s.a.useState([""]),[j,u]=s.a.useState([""]),O=s.a.useRef(null);return Object(n.useEffect)((()=>{e.open||(b([""]),u([""]))}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(yc.a,{className:t.backdrop,open:i,children:Object(g.jsx)(Cc.a,{color:"inherit"})}),Object(g.jsx)($c.a,{className:t.title,id:"form-dialog-title",children:c("POLICY_GROUP_TITLE")}),Object(g.jsx)(Sl.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:t=>function(t){let n=!0;""===t.name&&(n=!1),""===t.desc&&(n=!1),r({}),n&&!i&&(o(!0),(async()=>{let n="";try{d.forEach(((e,t)=>{t>0?n+=",".concat(e):n=e})),(await Object(rn.g)(t.name,t.desc,n)).result?(a(Object(U.d)({message:c("IP_GROUP_MESSAGE_1")})),e.fnHandleOK(),e.fnHandleClose()):a(Object(U.c)({message:c("REGISTER_ERROR_MESSAGE_1")}))}catch(s){console.log(s)}finally{o(!1)}})())}(t),validationErrors:l,ref:O,children:Object(g.jsx)(el.a,{className:t.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:c("GROUP_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:c("GROUP_NAME"),type:"text",name:"name",variant:"outlined",autoFocus:!0,required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("EXPLANATION")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Tl.c,{className:"",placeholder:c("EXPLANATION"),type:"text",name:"desc",variant:"outlined",fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:c("IP")})}),Object(g.jsx)("div",{className:"input-area",children:d.map(((e,t)=>Object(g.jsxs)(Ot.a,{className:"ip-range",children:[Object(g.jsx)(Ht.a,{placeholder:"EX)192.168.0.0/24",type:"text",name:"ip-".concat(t),variant:"outlined",fullWidth:!0,size:"small",value:e,onChange:e=>{const a=[...d];a[t]=e.target.value,b(a)},onBlur:e=>{if(""===e.target.value)return!1;const a=bt.a.calculateHostRange(e.target.value);if(a.result){const e=[...j];e[t]=a.msg,u(e)}else{let e="";1===a.code?e=c("IP \uc8fc\uc18c \ud615\uc2dd\uc774 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4"):2===a.code&&(e=c("\uc11c\ube0c\ub137 \ubc94\uc704\uac00 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4"));const n=[...j];n[t]=e,u(n);const s=[...d];s[t]="",b(s)}return!0}}),Object(g.jsx)("p",{children:j[t]})]})))})]}),Object(g.jsx)("div",{className:"row",style:{flexDirection:"row-reverse"},children:Object(g.jsx)(Hc.a,{onClick:e=>{b([...d,""]),u([...j,""])},className:"default",variant:"contained","aria-label":"cancel",type:"button",style:{width:"auto"},children:c("ADD")})}),Object(g.jsxs)("div",{className:t.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:c("REGISTER")})]})]})})})]})})}const tp=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},tr:{"& .col-name":{minWidth:210},"& .col-desc":{minWidth:350}},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-228,"px"),padding:"0 20px"},icon:{width:20,height:20},insertForm:{display:"flex","&>div":{display:"flex",alignItems:"center"},"&>div:first-child":{width:"100%"},"&>div:first-child input.MuiOutlinedInput-input":{padding:"5.7px 10px"},"&>div.button-group":{paddingRight:20},"&>div.button-group>button":{width:106,height:28,marginLeft:10}}})));var ap=function(e){const t=tp(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(window.innerHeight),[o,d]=Object(n.useState)(""),[b,j]=Object(n.useState)(!0),[u,O]=Object(n.useState)({open:!1,type:0}),[p,h]=Object(n.useState)([]);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-228,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{o.length>0?h(e.groups.filter((e=>e.name.toLowerCase().includes(o.toLowerCase())))):h(e.groups),j(!1)}),[o]),Object(n.useEffect)((()=>{o.length>0?h(e.groups.filter((e=>e.name.toLowerCase().includes(o.toLowerCase())))):h(e.groups),j(!1)}),[e.groups]),b?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ep,{open:u.open,fnHandleClose:()=>{O({open:!1})},fnHandleOK:()=>{e.fnGetGroups()}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(G.a)("items-center w-full flex table-search-wrapper"),children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:o,placeholder:l("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:o&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>d(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>d(e.target.value)})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:p.length}),l("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Hc.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:e=>{O({open:!0,type:0})},children:l("NEW_REGISTRATION")})})})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:t.tr,children:[Object(g.jsx)(Ll.a,{className:"left col-name",children:l("\uadf8\ub985\uba85")}),Object(g.jsx)(Ll.a,{className:"left col-desc",children:l("\uc124\uba85")}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:l("DELETE")})]})}),Object(g.jsx)(wl.a,{children:p.map((t=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:t.id===e.selectedID,onClick:a=>{var n;n=t.id,e.selectedID!==n?e.fnSetSelectedID(n):e.fnSetSelectedID(0)},children:[Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.name}),Object(g.jsx)(Ll.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.desc}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:l("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(l("DELETE_CONTENT_USER")),fnHandleOK:()=>e.fnRemoveGroups(t.id)})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t.id)))})]})})]})]})};const np=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140}},paperPermContent:{padding:0,marginTop:20},infoFiled:{color:"#000000","&>div":{cursor:"default",display:"flex",height:"auto",padding:10,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center","&.folder-name":{paddingRight:10}},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},manage_type:{display:"inline-flex",flex:"0 0 auto"},manage_priority:{width:"24px",height:"24px","& .MuiSelect-root":{"padding-right":"0","padding-bottom":"4px"},"& svg":{display:"none"}},select:{width:"100%"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:30,"& button":{marginRight:10}},h_29:{height:"29px"}})));var sp=function(e){var t;const a=np(),n=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{usersObj:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[i,o]=s.a.useState(window.innerHeight),[d,b]=s.a.useState(!1),[j,u]=s.a.useState({});return s.a.useEffect((()=>{i>=754&&(c.current.style.height="".concat(i-140,"px")),window.addEventListener("resize",(()=>o(window.innerHeight)))}),[i]),s.a.useEffect((()=>{if(e.selectedObj.users&&""!==e.selectedObj.users){const t={};e.selectedObj.users.split(",").forEach((e=>{t[e]=!0})),u(t)}}),[e.selectedObj]),Object(g.jsxs)("div",{className:"",ref:c,children:[Object(g.jsx)(vO,{open:d,permsObj:j,fnHandleClose:()=>b(!1),fnSetPerm:t=>{!function(t){n(Object(rn.ab)({show:!0})),(async()=>{let a=!0;for(let n=0;n{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsxs)(k.a,{className:Object(G.a)(a.cardDetailInfo,"noto-bold"),variant:"h6",children:[Object(g.jsx)("span",{children:l("DETAIL_INFO")}),Object(g.jsx)("span",{children:"[".concat(null===(t=e.selectedObj)||void 0===t?void 0:t.name,"]")})]})]}),Object(g.jsx)(Bc.a,{className:a.infoFiled,children:""!==e.selectedObj.ips&&e.selectedObj.ips.split(",").map((e=>Object(g.jsx)("div",{children:"".concat(e,"(").concat(bt.a.cidrToRange(e),")")})))})]}),Object(g.jsxs)(zc.a,{className:a.paperPerm,children:[Object(g.jsx)(Bc.a,{className:a.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{e.selectedID<=0?n(Object(U.c)({message:l("\uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")})):b(!0)},children:l("USER_ADD")})})}),Object(g.jsx)(Bc.a,{className:a.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:l("USER")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:l("DELETE")})]})}),Object(g.jsx)(wl.a,{children:e.selectedObj.users?e.selectedObj.users.split(",").map(((t,a)=>{var s,c;return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Il.a,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(null===(s=r[t])||void 0===s?void 0:s.name,"(").concat(null===(c=r[t])||void 0===c?void 0:c.user_id,")")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:l("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"releasePerm",onClick:a=>function(t){n(Object(rn.ab)({show:!0})),Object(rn.R)(e.selectedID,t).then((t=>{e.fnGetGroups(),n(Object(rn.ab)({show:!1}))}))}(t),children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]})})):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var cp=function(){const e=s.a.useRef(null),t=Object(m.b)(),{users:a}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[n,c]=s.a.useState(0),[l,r]=s.a.useState([]),[i,o]=s.a.useState({name:"",desc:"",id:0,ips:"",users:""});s.a.useEffect((()=>{0===a.length?t(Object(cn.h)()).then((()=>{d()})):d()}),[t]),s.a.useEffect((()=>{0===n?o({name:"",desc:"",id:0,ips:"",users:""}):l.forEach((e=>{e.id===n&&o(e)}))}),[n]),s.a.useEffect((()=>{l.forEach((e=>{e.id===n&&o(e)}))}),[l]);const d=()=>{Object(rn.n)().then((e=>{r(e)}))};return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(ap,{selectedID:n,groups:l,fnSetSelectedID:e=>c(e),fnGetGroups:()=>d(),fnRemoveGroups:e=>(e=>{Object(rn.O)(e).then((e=>{Object(rn.n)().then((e=>{r(e)}))}))})(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(sp,{selectedID:n,selectedObj:i,fnGetGroups:()=>d(),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};var lp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/ip_groups",component:cp}]};const rp=Object(M.a)((e=>({tr:{"& .delete":{width:100},"& .approve":{width:100},"& .process_type":{width:140}}})));var ip=function(e){const t=rp(),{t:a}=Object(jt.a)("docbase"),n=[{id:"mandatory_app_id",align:"left",className:"left",disablePadding:!1,label:a(""),sort:!1},{id:"name",align:"left",className:"left",disablePadding:!1,label:a("MANDATORY_APP_NAME"),sort:!1},{id:"windows_program_name",align:"left",className:"left",disablePadding:!1,label:a("MANDATORY_APP_WINDOWS_NAME"),sort:!1},{id:"macos_program_name",align:"left",className:"left",disablePadding:!1,label:a("MANDATORY_APP_MACOS_NAME"),sort:!1},{id:"description",align:"left",className:"left process_type",disablePadding:!1,label:a("EXPLANATION"),sort:!1},{id:"process_delete",align:"center",className:"delete",disablePadding:!1,label:a("DELETE"),sort:!1}];return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Ll.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const op=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function dp(e){const{t:t}=Object(jt.a)("docbase"),a=op(),n=Object(m.b)(),[c,l]=s.a.useState(""),[r,i]=s.a.useState(""),[o,d]=s.a.useState(""),[b,j]=s.a.useState("");return s.a.useEffect((()=>{l(""),i(""),d(""),j("")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",children:t("MANDATORY_APP_REGISTER")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:t("MANDATORY_APP_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:c,variant:"outlined",onChange:e=>l(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("MANDATORY_APP_WINDOWS_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_1"),name:"windowsName",fullWidth:!0,value:r,variant:"outlined",onChange:e=>i(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("MANDATORY_APP_MACOS_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_2"),name:"macOsName",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("EXPLANATION")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("\ud504\ub85c\uadf8\ub7a8 \uc124\uba85"),name:"desc",fullWidth:!0,value:b,variant:"outlined",onChange:e=>j(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>0===c.trim().length?(n(Object(U.c)({message:t("WHITE_PROCESS_ERROR_MESSAGE_3")})),!1):""===r&&""===o?(n(Object(U.c)({message:t("MANDATORY_APP_ERROR_MESSAGE_2")})),!1):(e.fnHandleChange(c,r,o,b),!0),children:t("REGISTER")})]})]})})]})})}const bp=Object(M.a)((e=>({addIcon:{top:"25px"},deleteIcon:{color:"#ff6565"},tabsBar:{height:50,color:"#192141",background:"none",boxShadow:"none","& .MuiTab-root":{padding:0,minWidth:136,fontSize:16},"& .MuiTab-textColorInherit":{opacity:1},"& .MuiTab-textColorInherit.Mui-selected":{color:"#00cfe2",background:"#fff",borderRadius:"6px 6px 0 0"}},contentWrapper:{height:"".concat(window.innerHeight-274,"px"),padding:"0 20px"},tr:{height:"53px"}}))),jp=s.a.memo((e=>{let{dispatch:t,t:a,selectedObj:n,data:s,handleRowClick:c,deleteConfirm:l}=e;return Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ip,{}),Object(g.jsx)(wl.a,{children:s.map((e=>Object(g.jsxs)(Al.a,{className:Object(G.a)("cursor-default"),hover:!0,role:"checkbox",tabIndex:-1,selected:e.mandatory_app_id===n.id,onClick:t=>c(e),children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.mandatory_app_id}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.windows_program_name}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.macos_program_name}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.description}),Object(g.jsx)(Ll.a,{className:" ",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(Je.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:a("PROCESS_DELETE_TITLE"),content:a("PROCESS_DELETE_CONTENT").replace("%s",e.name),fnHandleOK:()=>{l(n,e.mandatory_app_id)}})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.mandatory_app_id)))})]})}));var up=function(e){const t=bp(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),[o,d]=s.a.useState(!1),[b,j]=s.a.useState([]);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-274,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{j(e.apps)}),[e.apps]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(dp,{open:o,fnHandleClose:()=>{d(!1)},fnHandleChange:async(t,n,s,c)=>{try{(await Object(rn.Y)(t,n,s,c)).result?(e.getTableData(),a(Object(U.d)({message:i("MANDATORY_APP_MESSAGE_1")})),d(!1)):a(Object(U.c)({message:i("REGISTER_ERROR_MESSAGE_1")}))}catch(l){l.error===qc.gb?a(Object(U.c)({message:i("\uc774\ubbf8 \uc0ac\uc6a9\uc911\uc778 \uba85\uce6d\uc785\ub2c8\ub2e4")})):a(Object(U.c)({message:i("REGISTER_ERROR_MESSAGE_1")}))}}}),Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b.length}),i("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{d(!0)},children:i("PROGRAM_TITLE_3")})}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.getTableData()},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(jp,{dispatch:a,t:i,selectedObj:e.selectedObj,data:b,handleRowClick:t=>{return a=t,void e.setSelectedObj(e.selectedObj.id===a.id?0:a);var a},deleteConfirm:(t,n)=>(async(t,n)=>{t.stopPropagation(),(await Object(rn.P)(n)).result?(e.getTableData(),e.setSelectedObj({id:0,name:"",windows_program_name:"",macos_program_name:"",description:""}),a(Object(U.d)({message:i("MANDATORY_APP_MESSAGE_2")}))):a(Object(U.c)({message:i("REGISTER_ERROR_MESSAGE_1")}))})(t,n)})})]})]})};const Op=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function pp(e){const{t:t}=Object(jt.a)("docbase"),a=Op(),n=Object(m.b)(),[c,l]=s.a.useState(1),[r,i]=s.a.useState(""),[o,d]=s.a.useState(""),[b,j]=s.a.useState("");return s.a.useEffect((()=>{l(1),i(""),d(""),j("")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:a.title,id:"form-dialog-title",children:t("MANDATORY_APP_REGISTER")}),Object(g.jsx)(el.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:t("OS")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(te.a,{name:"osType",variant:"standard",className:"w-full",value:c,onChange:e=>l(Number(e.target.value)),children:[Object(g.jsx)(Q.a,{value:1,children:"Windows"}),Object(g.jsx)(Q.a,{value:2,children:"MacOS"})]})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("DLP_PROGRAM_SIGNING_ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:1===c?"Wisehub Systems Co.,Ltd.:COODOC.exe":t("com.wisehub.coocodoc"),name:"signingID",value:r,fullWidth:!0,variant:"outlined",onChange:e=>i(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("DLP_PROGRAM_HASH")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",placeholder:t("DLP_PROGRAM_HASH"),name:"hash",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:t("MIN_VERSION")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"desc",fullWidth:!0,value:b,variant:"outlined",onChange:e=>j(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>""===r&&""===o||""!==b&&""===r?(n(Object(U.c)({message:t("MANDATORY_APP_ERROR_MESSAGE_2")})),!1):(e.fnHandleChange(c,r,o,b),!0),children:t("REGISTER")})]})]})})]})})}const hp=Object(M.a)((e=>({expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},cardInfo:{padding:"40px 30px 20px","& .MuiCardActions-root":{padding:0},"& .MuiCardContent-root":{padding:0}},cardDetailInfo:{"margin-left":"10px",height:"48px","line-height":"48px"},paperPerm:{marginTop:30,padding:"20px 30px 0"},paperPermHeader:{padding:0,display:"flex",width:"100%","&>div:first-child":{width:"100%",maxWidth:534,marginRight:10},"&>div:first-child .MuiAutocomplete-inputRoot":{height:40},"&>div:last-child>button":{width:140}},paperPermContent:{padding:0,marginTop:20},infoFiled:{color:"#000000","&>div":{display:"flex",height:45,paddingRight:30,borderTop:"1px solid rgb(141 149 160 / 18%)"},"&>div:last-child":{borderBottom:"1px solid rgb(141 149 160 / 18%)"}},filedTitle:{background:"#f5f7fa",display:"flex",alignItems:"center",paddingLeft:30,cursor:"default",width:"100%",maxWidth:277,minWidth:277},filedInput:{width:"100%",padding:"0 0 0 30px",display:"flex",alignItems:"center"},customInput:{width:"100%",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}},manage_type:{display:"inline-flex",flex:"0 0 auto"},manage_priority:{width:"24px",height:"24px","& .MuiSelect-root":{"padding-right":"0","padding-bottom":"4px"},"& svg":{display:"none"}},select:{width:"100%"},inputRight:{"& input":{"text-align":"right"}},buttonGroup:{marginTop:10},h_29:{height:"29px"}})));var mp=function(e){let{selectedObj:t,fnToggleRightSidebar:a,getTableData:n}=e;const c=hp(),l=Object(m.b)(),r=s.a.useRef(),{t:i}=Object(jt.a)("docbase"),[o,b]=s.a.useState(window.innerHeight),[j,u]=s.a.useState(!1),[O,p]=s.a.useState([]),[h,_]=s.a.useState(0),[f,E]=s.a.useState({id:0,name:"",windows_program_name:"",macos_program_name:"",description:""});s.a.useEffect((()=>{o>=754&&(r.current.style.height="".concat(o-140,"px")),window.addEventListener("resize",(()=>b(window.innerHeight)))}),[o]),s.a.useEffect((()=>{0!==t.id?(x(),E(t)):E({id:0,name:"",windows_program_name:"",macos_program_name:"",description:""})}),[t]);const x=async()=>{try{const e=await Object(rn.o)(t.id);p(e)}catch(e){p([])}},N=async(e,a,n,s)=>{l(Object(rn.ab)({show:!0}));await Object(rn.a)(t.id,e,a,n,s);x(),u(!1),l(Object(rn.ab)({show:!1}))};return Object(g.jsxs)("div",{className:"",ref:r,children:[Object(g.jsx)(pp,{open:j,fnHandleClose:()=>{u(!1)},fnHandleChange:(e,t,a,n)=>{N(e,t,a,n)},fnHandleAdd:(e,t,a,n)=>{N(e,t,a,n)}}),Object(g.jsxs)(zc.a,{className:c.cardInfo,children:[Object(g.jsxs)(Rr.a,{disableSpacing:!0,children:[Object(g.jsx)(I.a,{className:"md:hidden","aria-controls":"detail-back",onClick:e=>{a()},children:Object(g.jsx)(w.a,{children:"arrow_back"})}),Object(g.jsx)(k.a,{className:Object(G.a)(c.cardDetailInfo,"noto-bold"),variant:"h6",children:Object(g.jsx)("span",{children:i("DETAIL_INFO")})})]}),Object(g.jsxs)(Bc.a,{className:c.infoFiled,children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:c.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:i("MANDATORY_APP_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(c.filedInput),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:f.name,onChange:e=>E(Object(d.a)(Object(d.a)({},f),{},{name:e.target.value}))})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:c.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:i("MANDATORY_APP_WINDOWS_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(c.filedInput),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:f.windows_program_name,onChange:e=>E(Object(d.a)(Object(d.a)({},f),{},{windows_program_name:e.target.value}))})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:c.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:i("MANDATORY_APP_MACOS_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(c.filedInput),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:f.macos_program_name,onChange:e=>E(Object(d.a)(Object(d.a)({},f),{},{macos_program_name:e.target.value}))})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:c.filedTitle,children:Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:i("EXPLANATION")})}),Object(g.jsx)("div",{className:Object(G.a)(c.filedInput),children:Object(g.jsx)(Ht.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:f.description,onChange:e=>E(Object(d.a)(Object(d.a)({},f),{},{description:e.target.value}))})})]})]}),Object(g.jsx)(Rr.a,{className:Object(G.a)(c.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",style:{flexDirection:"row-reverse"},children:Object(g.jsx)("div",{className:Object(G.a)("inline-block align-middle"),children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,size:"small",onClick:async()=>{if(f.id<=0)l(Object(U.c)({message:i("MANDATORY_APP_ERROR_MESSAGE_3")}));else try{await Object(rn.ib)(f.id,f.name,f.windows_program_name,f.macos_program_name,f.description);l(Object(U.d)({message:i("MODIFIED")})),n()}catch(e){l(Object(U.c)({message:i("FAILED")}))}},children:i("CHANGE")})})})})]}),Object(g.jsxs)(zc.a,{className:c.paperPerm,children:[Object(g.jsx)(Bc.a,{className:c.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{t.id<=0?l(Object(U.c)({message:i("MANDATORY_APP_ERROR_MESSAGE_3")})):u(!0)},children:i("MANDATORY_APP_METHOD_ADD")})})}),Object(g.jsx)(Bc.a,{className:c.paperPermContent,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:i("OS")}),Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:i("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:i("DLP_PROGRAM_HASH")}),Object(g.jsx)(Ll.a,{padding:"none",align:"left",className:"left title",children:i("MIN_VERSION")}),Object(g.jsx)(Ll.a,{padding:"none",align:"center",className:"perm-col-1",children:i("REMOVE")})]})}),Object(g.jsx)(wl.a,{children:null===O||void 0===O?void 0:O.map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>h===e.check_id?_(0):_(e.check_id),children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:1===e.type?"Windows":"macOS"}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.signing_id}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.hash}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:e.min_version}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:i("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{"aria-label":"releasePerm",onClick:t=>{t.stopPropagation(),(async(e,t)=>{l(Object(rn.ab)({show:!0})),await Object(rn.Q)(e,t),x(),l(Object(rn.ab)({show:!1}))})(e.check_id,e.type)},children:Object(g.jsx)(Il.a,{type:"delete",className:""})})})})]})))})]})})]})]})};var _p={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/mandatory_apps",component:function(){const e=s.a.useRef(null),t=Object(m.b)(),[a,n]=s.a.useState(!0),[c,l]=s.a.useState([]),[r,i]=s.a.useState({id:0,name:"",windows_program_name:"",macos_program_name:"",description:""});s.a.useEffect((()=>{o()}),[t]);const o=async()=>{n(!0);try{const e=await Object(rn.p)();l(e)}catch(e){l([])}finally{n(!1)}};return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(up,{selectedObj:r,loading:a,apps:c,getTableData:o,setLoading:n,setSelectedObj:i}),rightSidebarContent:Object(g.jsx)(mp,{selectedObj:r,getTableData:o,fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const fp=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function gp(e){let{open:t,piiList:a,fnHandleRegister:n,fnHandleClose:c}=e;const{t:l}=Object(jt.a)("docbase"),r=fp(),i=Object(m.b)(),[o,d]=s.a.useState(""),[b,j]=s.a.useState([]),[u,O]=s.a.useState({});return s.a.useEffect((()=>{d(""),j([]),O({})}),[t]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:r.root,open:t,onClose:c,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:r.title,id:"form-dialog-title",children:l("\uc815\ucc45 \ub4f1\ub85d")}),Object(g.jsx)(el.a,{className:r.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("\uc815\ucc45\uba85")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:l("\uac80\ucd9c \ud328\ud134")})}),Object(g.jsxs)("div",{className:"input-area",style:{display:"flex"},children:[Object(g.jsx)(te.a,{variant:"outlined",className:"w-full",value:u,onChange:e=>O(e.target.value),children:a.map(((e,t)=>Object(g.jsx)(Q.a,{value:t,children:e.name})))}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{const t=a[u];j((e=>e.includes(t)?e.filter((e=>e!==t)):[...e,t]))},style:{width:"auto",marginLeft:10},children:l("ADD")})]})]}),Object(g.jsx)("div",{className:"row",children:b.map(((e,t)=>t>0?Object(g.jsxs)("span",{children:[" | ",e.name]}):Object(g.jsx)("span",{children:e.name})))}),Object(g.jsxs)("div",{className:r.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:c,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>0===o.trim().length?(i(Object(U.c)({message:l("\uc815\ucc45\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694")})),!1):0===b.length?(i(Object(U.c)({message:l("\uac80\ucd9c \ud328\ud134\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694")})),!1):(n(o,b),!0),children:l("REGISTER")})]})]})})]})})}const Ep=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function xp(e){let{open:t,fnHandleRegister:a,fnHandleClose:n}=e;const{t:c}=Object(jt.a)("docbase"),l=Ep(),r=Object(m.b)(),[i,o]=s.a.useState(""),[d,b]=s.a.useState("");return s.a.useEffect((()=>{o(""),b("")}),[t]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:l.root,open:t,onClose:n,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:l.title,id:"form-dialog-title",children:c("\ud328\ud134 \ub4f1\ub85d")}),Object(g.jsx)(el.a,{className:l.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("\uc815\ucc45\uba85")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:i,variant:"outlined",onChange:e=>o(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:c("\ud328\ud134")})}),Object(g.jsx)("div",{className:"input-area",style:{display:"flex"},children:Object(g.jsx)(Ht.a,{className:"",name:"name",fullWidth:!0,value:d,variant:"outlined",onChange:e=>b(e.target.value),size:"small"})})]}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>0===i.trim().length?(r(Object(U.c)({message:c("\uc815\ucc45\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694")})),!1):0===d.trim().length?(r(Object(U.c)({message:c("\ud328\ud134\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694")})),!1):(a(i,d),!0),children:c("REGISTER")})]})]})})]})})}const Np=["children","value","index"],Sp=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{position:"relative",borderRadius:6},mainPaper:{borderRadius:6,padding:0,background:"none",border:0,boxShadow:"none"},tabsBar:{height:50,color:"#192141",background:"none",boxShadow:"none","& .MuiTab-root":{padding:0,minWidth:136,fontSize:16},"& .MuiTab-textColorInherit":{opacity:1},"& .MuiTab-textColorInherit.Mui-selected":{color:"#00cfe2",background:"#fff",borderRadius:"6px 6px 0 0"}},tabPanel:{height:"calc(100vh - 180px)"}})));function Tp(e){const{children:t,value:a,index:n}=e,s=Object(Ws.a)(e,Np);return Object(g.jsx)(Vt.a,Object(d.a)(Object(d.a)({className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n)},s),{},{children:a===n&&Object(g.jsx)(Ot.a,{p:2,className:"h-full p-0",style:{"margin-top":"-4px"},children:t})}))}function vp(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}var Rp=function(e){const t=Sp(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),[o,b]=s.a.useState({pii:!1,target:!1}),[j,u]=s.a.useState(!0),[O,p]=s.a.useState(0),[h,_]=s.a.useState({}),[f,E]=s.a.useState([]),[x,N]=s.a.useState([]),S=s.a.useRef(!0);Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-296,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{u(!0),Object(rn.q)().then((e=>{var t;const a=null===(t=bt.a.xmlToJson(e))||void 0===t?void 0:t.piiDetect;E(a.pii),N(a.target),_(a),console.log(a),u(!1)}))}),[a]);const T=s.a.useRef(f),v=s.a.useRef(x);return Object(n.useEffect)((()=>{if(S.current)return void(S.current=!1);const e=0===T.current.length||0===v.current.length,t=JSON.stringify(T.current)!==JSON.stringify(f),n=JSON.stringify(v.current)!==JSON.stringify(x);!t&&!n||e||async function(){const e=bt.a.jsonToXml(Object(d.a)(Object(d.a)({},h),{},{pii:f,target:x}),"pii_detect");console.log(e);try{await Object(rn.Z)(e)&&a(Object(U.d)({message:"\uc218\uc815\uc644\ub8cc"}))}catch(t){console.error(t),a(Object(U.c)({message:"\uc218\uc815\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4"}))}}(),T.current=f,v.current=x}),[f,x]),j?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(xp,{open:o.pii,fnHandleRegister:(e,t)=>f.some((t=>t.name===e))?(a(Object(U.c)({message:i("\uc911\ubcf5\ub418\ub294 \uc774\ub984\uc774 \uc788\uc2b5\ub2c8\ub2e4")})),!1):(E((a=>[...a,{enable:"true",name:e,regex:t}])),b(Object(d.a)(Object(d.a)({},o),{},{pii:!1})),!0),fnHandleClose:()=>{b(Object(d.a)(Object(d.a)({},o),{},{pii:!1}))}}),Object(g.jsx)(gp,{open:o.target,piiList:f,fnHandleRegister:(e,t)=>{console.log(e),console.log(t);return x.some((t=>t.name===e))?(a(Object(U.c)({message:i("\uc911\ubcf5\ub418\ub294 \uc774\ub984\uc774 \uc788\uc2b5\ub2c8\ub2e4")})),!1):(N((a=>[...a,{enable:"true",name:e,combine:t.map((e=>({name:e.name})))}])),b(Object(d.a)(Object(d.a)({},o),{},{target:!1})),!0)},fnHandleClose:()=>{b(Object(d.a)(Object(d.a)({},o),{},{target:!1}))}}),Object(g.jsxs)(Vt.a,{className:t.mainPaper,children:[Object(g.jsx)(Ue.a,{position:"static",className:t.tabsBar,children:Object(g.jsxs)(kl.a,{value:O,indicatorColor:"",onChange:(e,t)=>{O!==t&&(u(!1),p(t))},children:[Object(g.jsx)(Gl.a,Object(d.a)({label:i("\ud328\ud134")},vp(0))),Object(g.jsx)(Gl.a,Object(d.a)({label:i("\uc815\ucc45")},vp(1)))]})}),Object(g.jsxs)(Tp,{className:t.tabPanel,value:O,index:0,children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:f.length}),i("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{b(Object(d.a)(Object(d.a)({},o),{},{pii:!0}))},children:i("\ud328\ud134 \ub4f1\ub85d")})}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:t.contentWrapper,ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:t.tr,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",style:{width:240},children:Object(g.jsx)("span",{className:"align-middle",children:"\ud328\ud134\uba85"})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",children:Object(g.jsx)("span",{className:"align-middle",children:"\ud328\ud134"})}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:i("DELETE")})]})}),Object(g.jsx)(wl.a,{children:f.map(((e,t)=>Object(g.jsxs)(Al.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"center",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.name,InputProps:{readOnly:!0}})}),Object(g.jsx)(Ll.a,{className:"center",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.regex,InputProps:{readOnly:!0}})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{n.stopPropagation();const s=[...new Set(h.target.flatMap((e=>e.combine.map((e=>e.name)))))];console.log(s);const c=s.find((t=>t===e.name));a(c?Object(U.c)({message:"\uc0ac\uc6a9\uc911\uc778 \ud328\ud134\uc785\ub2c8\ub2e4"}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:i("\ud328\ud134\uc0ad\uc81c"),content:"'".concat(e.name,"'").concat(i("\uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?")),fnHandleOK:()=>E((e=>e.filter(((e,a)=>a!==t))))})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t)))})]})})]}),Object(g.jsxs)(Tp,{className:t.tabPanel,value:O,index:1,children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:x.length}),i("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{b(Object(d.a)(Object(d.a)({},o),{},{target:!0}))},children:i("\uc815\ucc45 \ub4f1\ub85d")})}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:t.contentWrapper,ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{className:t.tr,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",style:{width:240},children:Object(g.jsx)("span",{className:"align-middle",children:"\uc815\ucc45\uba85"})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",padding:"default",children:Object(g.jsx)("span",{className:"align-middle",children:"\uac80\ucd9c \ud328\ud134"})}),Object(g.jsx)(Ll.a,{className:"center",align:"center",padding:"default",style:{width:120},children:Object(g.jsxs)("span",{className:"align-middle",children:[" ",i("USE")]})}),Object(g.jsx)(Ll.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:i("DELETE")})]})}),Object(g.jsx)(wl.a,{children:x.map(((e,t)=>Object(g.jsxs)(Al.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"center",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.name,InputProps:{readOnly:!0}})}),Object(g.jsx)(Ll.a,{className:"left",children:e.combine.map(((e,t)=>t>0?Object(g.jsxs)("span",{children:[", ",e.name]}):Object(g.jsx)("span",{children:e.name})))}),Object(g.jsx)(Ll.a,{className:"center",align:"center",children:Object(g.jsxs)(te.a,{variant:"outlined",className:"w-full",value:e.enable,onChange:e=>((e,t,a)=>{console.log(a);const n=e.target.value,s=[...x];s[t]=Object(d.a)(Object(d.a)({},s[t]),{},{[a]:n}),N(s)})(e,t,"enable"),children:[Object(g.jsx)(Q.a,{value:"true",children:i("USE")}),Object(g.jsx)(Q.a,{value:"false",children:i("UNUSED")})]})}),Object(g.jsx)(Ll.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("DELETE"),arrow:!0,children:Object(g.jsx)(I.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(ml.a,{title:i("\uc815\ucc45\uc0ad\uc81c"),content:"'".concat(e.name,"'").concat(i("\uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?")),fnHandleOK:()=>N((e=>e.filter(((e,a)=>a!==t))))})}))},children:Object(g.jsx)(ha.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t)))})]})})]})]})]})};var yp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/piiPolicy",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Rp,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Cp=Object(M.a)((e=>({tr:{"& .col-type":{minWidth:130},"& .col-user":{minWidth:200},"& .col-new-obj":{minWidth:320},"& .col-old-obj":{minWidth:320},"& .col-extra":{minWidth:105}}})));var Ap=function(e){const t=Cp(),{t:a}=Object(jt.a)("docbase"),n=[{id:"user",align:"left",className:"search-cell col-user",disablePadding:!1,label:a("USER"),isSearch:!0,sort:!1},{id:"status",align:"center",className:"col-type",disablePadding:!1,label:a("STATUS"),isSearch:!1,sort:!1},{id:"path",align:"left",className:"col-new-obj left",disablePadding:!1,label:a("\uacbd\ub85c"),isSearch:!1,sort:!1},{id:"files",align:"left",className:"col-new-obj left",disablePadding:!1,label:a("\ud30c\uc77c\uba85"),isSearch:!1,sort:!1},{id:"registered_at",align:"center",className:"table_col_date center",disablePadding:!1,label:a("\uc0dd\uc131\uc77c"),isSearch:!1,sort:!1},{id:"expired_at",align:"center",className:"table_col_date center",disablePadding:!1,label:a("EXPIRE_DATE"),isSearch:!1,sort:!1},{id:"limit_downloads",align:"center",className:"table_col_date center",disablePadding:!1,label:a("DOWNLOAD_LIMIT"),isSearch:!1,sort:!1},{id:"remain_downloads",align:"center",className:"table_col_date center",disablePadding:!1,label:a("\ub0a8\uc740 \ud69f\uc218"),isSearch:!1,sort:!1}],[c,l]=s.a.useState({object:{show:""!==e.searchObj.object,value:e.searchObj.object},user:{show:""!==e.searchObj.user,value:e.searchObj.user}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:t.tr,children:n.map((t=>Object(g.jsx)(Ll.a,{className:t.className,align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:c[t.id]&&c[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:r,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(c.object.value,c.user.value))}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const Lp=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var wp=function(e){const t=Lp(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{sysConfigure:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{logs:d,rowsPerPage:b,currentPage:j,totalRows:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.weblinkLogObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-296,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:u}),i("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:i("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:e.searchObj.startDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.startDate.getTime()!==t.getTime()&&e.fnSetSearchObj("startDate",t)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:e.searchObj.endDate,onChange:t=>{isNaN(t.getTime())||e.searchObj.endDate.getTime()!==t.getTime()&&e.fnSetSearchObj("endDate",t)},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ap,{searchObj:e.searchObj,rowCount:d.length,fnSearch:(t,a)=>{e.searchObj.object!==t&&e.fnSetSearchObj("object",t),e.searchObj.user!==a&&e.fnSetSearchObj("user",a)}}),Object(g.jsx)(wl.a,{children:d.map(((e,t)=>{let a="";switch(e.status){case 0:a="\ube44\ud65c\uc131";break;case 1:a="\ud65c\uc131";break;case 2:a="\uc0dd\uc131\uc911";break;case 3:a="\uc0dd\uc131\uc644\ub8cc";break;default:a=""}let n="",s="";return null===e||void 0===e||e.files.forEach(((e,t)=>{t>0?n+=", ".concat(bt.a.splitLastDelimiterString(e)):(n+=bt.a.splitLastDelimiterString(e),s=bt.a.splitPreDelimiter(e))})),Object(g.jsxs)(Al.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.creator,"(").concat(e.created_by)}),Object(g.jsx)(Ll.a,{className:"center",align:"center",component:"td",scope:"row",children:a}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:s}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.registered_at)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.expired_at)}),Object(g.jsx)(Ll.a,{className:"center",align:"center",component:"td",scope:"row",children:e.limit_downloads}),Object(g.jsx)(Ll.a,{className:"center",align:"center",component:"td",scope:"row",children:0===e.limit_downloads?"-":e.remain_downloads})]},t)}))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(u/b),color:"primary",onChange:(t,n)=>{e.setLoading(!0),a(Object(on.F)({page:n-1})).then((()=>e.setLoading(!1)))}})]})})};var Ip={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/weblinkLogs",component:function(){const e=Object(m.b)(),[t,a]=s.a.useState(!0),n=s.a.useRef(null),[c,l]=s.a.useState({startDate:new Date,endDate:new Date,auditType:0,object:"",user:""});function r(){a(!0),e(Object(on.E)({page:1,startDate:bt.a.getDateString(c.startDate),endDate:bt.a.getDateString(c.endDate),user:c.user})).then((()=>{a(!1)}))}return s.a.useEffect((()=>{r()}),[c]),Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(wp,{loading:t,searchObj:c,setLoading:a,fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnDoSearch:()=>r()}),innerScroll:!0,sidebarInner:!0,ref:n})}}]};const Pp=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function Dp(e){let{open:t,folders:a,users:n,excludedList:c,fnHandleOK:l,fnHandleClose:r}=e;const{t:i}=Object(jt.a)("docbase"),o=Pp(),{sysConfigure:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[j,u]=s.a.useState("0"),[O,p]=s.a.useState(a),[h,_]=s.a.useState(n),[f,E]=s.a.useState(n),[x,N]=s.a.useState(null),[S,T]=s.a.useState(null),[R,y]=s.a.useState(null),[C,A]=s.a.useState(""),[L,w]=s.a.useState(""),[I,P]=s.a.useState(""),[D,M]=s.a.useState(""),[k,G]=s.a.useState(null),[U,F]=s.a.useState(null);function W(){const e={ext:D};"0"===j?e.fid=x.fid.toString():"1"===j?e.fid=k.private.fid.toString():"2"===j&&(e.fid=U.collector.fid.toString()),l(e)}s.a.useEffect((()=>{A(""),w(""),P(""),M(""),N(null),T(null),y(null),G(null),F(null)}),[t]),s.a.useEffect((()=>{if((null===a||void 0===a?void 0:a.length)>0){const e=a.filter((e=>!c.some((t=>Number(t.fid)===e.fid))));p(e)}(null===n||void 0===n?void 0:n.length)>0&&(_(n.filter((e=>!c.some((t=>t.path==="/\uac1c\uc778/".concat(e.user_id)))))),E(n.filter((e=>!c.some((t=>t.path==="/\uc218\uc9d1/".concat(e.user_id)))))))}),[a,c,n]),s.a.useEffect((async()=>{S&&""!==S.user_id&&G(await Object(cn.g)(S.user_id))}),[S]),s.a.useEffect((async()=>{R&&""!==R.user_id&&F(await Object(cn.g)(R.user_id))}),[R]);return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:o.root,open:t,onClose:r,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:o.title,id:"form-dialog-title",children:i("\uc608\uc678 \uacbd\ub85c \ub4f1\ub85d")}),Object(g.jsx)(el.a,{className:o.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:"\ud0c0\uc785 \uc120\ud0dd"})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(q.a,{component:"fieldset",children:Object(g.jsxs)(ee.a,{row:!0,value:j,onChange:e=>{console.log(e.target.value),u(e.target.value)},children:[Object(g.jsx)(J.a,{value:"0",control:Object(g.jsx)($.a,{}),label:i("FOLDER_NAME")}),Object(g.jsx)(J.a,{value:"1",control:Object(g.jsx)($.a,{}),label:i("PRIVATE_FOLDER")}),Object(g.jsx)(J.a,{value:"2",control:Object(g.jsx)($.a,{}),label:i("COLLECTOR_FOLDER")})]})})})]}),(()=>{switch(j){case"0":return Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i("FOLDER_NAME")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(El.a,{id:"autocomplete-permission-search",options:O,getOptionLabel:e=>e.path?e.folder_type===qc.G?e.path.substring(1).replace("".concat("korean"===b.language?"\uc870\uc9c1/":"Organization/"),"[".concat(i("ORGSHARED"),"]")):e.path.substring(1):e.path,noOptionsText:i("PERM_NO_FOLDER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{console.log(t),N(t||null)},inputValue:C,onInputChange:(e,t,a)=>{"input"===a&&A(t),"reset"===a&&"blur"!==(null===e||void 0===e?void 0:e.type)&&A(t),"clear"===a&&A("")},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{x&&null!==x&&13===e.keyCode&&W()}})),fullWidth:!0,size:"small"})})]});case"1":return Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i("ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(El.a,{id:"autocomplete-users-search",options:h,getOptionLabel:e=>e?"".concat(e.name,"(").concat(e.user_id,")"):"",noOptionsText:i("PERM_NO_FOLDER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{T(t||null)},inputValue:L,onInputChange:(e,t,a)=>{"input"===a&&w(t),"reset"===a&&"blur"!==(null===e||void 0===e?void 0:e.type)&&w(t),"clear"===a&&w("")},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{S&&null!==S&&13===e.keyCode&&W()}})),fullWidth:!0,size:"small"})})]});case"2":return Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i("ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(El.a,{id:"autocomplete-users-search",options:f,getOptionLabel:e=>e?"".concat(e.name,"(").concat(e.user_id,")"):"",noOptionsText:i("PERM_NO_FOLDER"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(e,t)=>{y(t||null)},inputValue:I,onInputChange:(e,t,a)=>{"input"===a&&P(t),"reset"===a&&"blur"!==(null===e||void 0===e?void 0:e.type)&&P(t),"clear"===a&&P("")},renderInput:e=>Object(g.jsx)(Ht.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{R&&null!==R&&13===e.keyCode&&W()}})),fullWidth:!0,size:"small"})})]});default:return""}})(),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:i("\ud655\uc7a5\uc790")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:i("\uacf5\ubc31\uc2dc \ubaa8\ub4e0 \ud655\uc7a5\uc790 \ucc98\ub9ac | \ub2e4\uc911 \uc785\ub825\uc2dc \ucf64\ub9c8 ','\ub85c \uad6c\ubd84"),name:"exts",fullWidth:!0,value:D,variant:"outlined",onChange:e=>M(e.target.value),size:"small"})})]}),Object(g.jsx)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:i("\ud30c\uc77c \uc554\ud638\ud654 \uc608\uc678\ucc98\ub9ac \uacbd\ub85c\ub97c \ub4f1\ub85d\ud569\ub2c8\ub2e4")}),Object(g.jsxs)("div",{className:o.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:r,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>W(),children:i("ADD")})]})]})})]})})}const Mp=Object(M.a)((e=>({root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:804}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:136,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",display:"flex",cursor:"default",fontSize:14}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function kp(e){let{open:t,fnHandleOK:a,fnHandleClose:n}=e;const{t:c}=Object(jt.a)("docbase"),l=Mp(),[r,i]=s.a.useState(!1),[o,d]=s.a.useState(""),[b,j]=s.a.useState(0),[u,O]=s.a.useState(-1);s.a.useEffect((()=>{d(""),j(0)}),[t]),s.a.useState((()=>{let e=null;if(-1!==u){const t=async()=>{try{const t=await Object(on.R)(u);console.log("\ud83d\udd01 DRM \uc0c1\ud0dc \ud655\uc778:",t),!1===t.running&&(console.log("\u2705 \uc791\uc5c5 \uc644\ub8cc \u2014 \ud0c0\uc774\uba38 \uc911\uc9c0"),clearInterval(e),O(-1),i(!1))}catch(t){console.error("\uc0c1\ud0dc \ud655\uc778 \uc624\ub958:",t)}};t(),e=setInterval(t,5e3)}return()=>{clearInterval(e),console.log("\u23f9\ufe0f DRM \uc0c1\ud0dc \uccb4\ud06c \uc911\ub2e8")}}),[u]);return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:l.root,open:t,onClose:n,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)($c.a,{className:l.title,id:"form-dialog-title",children:c("\uc554/\ubcf5\ud638\ud654")}),Object(g.jsx)(el.a,{className:l.body,children:r?Object(g.jsx)(Ot.a,{style:{position:"relative",height:"calc(130px)",borderRadius:6},children:Object(g.jsx)(K.a,{className:"fuseLoading"})}):Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:"row",children:Object(g.jsxs)("div",{className:"input-area",children:[Object(g.jsxs)(te.a,{variant:"outlined",value:b,onChange:e=>j(e.target.value),style:{marginRight:5},children:[Object(g.jsx)(Q.a,{value:0,children:c("\ubcf5\ud638\ud654")}),Object(g.jsx)(Q.a,{value:1,children:c("\uc554\ud638\ud654")})]}),Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:c("\uacbd\ub85c\ub97c \uc785\ub825\ud558\uc138\uc694"),name:"path",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small"})]})}),Object(g.jsxs)(tl.a,{className:"text-2",id:"alert-dialog-slide-description",children:[Object(g.jsx)("p",{}),Object(g.jsx)("p",{children:c("/\uac1c\uc778/\uc0ac\uc6a9\uc790\uc544\uc774\ub514")}),Object(g.jsx)("p",{children:c("/\uc218\uc9d1/\uc0ac\uc6a9\uc790\uc544\uc774\ub514")}),Object(g.jsx)("p",{children:c("/, \\ \uad6c\ubd84\uc5c6\uc774 \ud0d0\uc0c9\uae30 \uae30\ubcf8\uacbd\ub85c \uc0ac\uc6a9 \uac00\ub2a5")}),Object(g.jsx)("p",{children:c("ex) Y:\\\uc870\uc9c1\\\ud504\ub808\uc2a4\ud2f0\uc9c0 \uac1c\ubc1c\ud300")})]}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>(async()=>{i(!0);try{const e=o.replace(/^[A-Z]:\\/,"").replaceAll("\\","/").split("/");if(e.length>1&&e[0].indexOf("\uc870\uc9c1")>=0){const t=e[1].split(".").map((e=>"[_ORG_].".concat(e)));console.log(t),e[1]=t.join("/")}const t=e.join("/"),a={type:b,path:t},n=bt.a.jsonToXml(a,"drm");if(await Object(on.S)("drm_path.xml",n)){const e=await Object(on.P)("drm_path.xml"),a=bt.a.xmlToJson(e);if(a.drm.path!==t||a.drm.type!==b.toString())return console.log("\uac12\uc774\ub2e4\ub974\ub2e4"),!1;const n=await Object(on.Q)("encrypt");O(n)}else console.log("failed to xml wirte")}catch(e){console.error(e)}finally{i(!1)}return!0})(),children:c("APPLY")})]})]})})]})})}var Gp=s.a.memo((e=>{let{customCols:t,data:a,order:n,handleRequestSort:c,selectedMap:l,handleSelect:r,handleChange:i,selectAll:o}=e;const{sysConfigure:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{users:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{t:u}=Object(jt.a)("docbase"),O=Object.keys(l),[p,h]=s.a.useState(null);return s.a.useEffect((()=>{p||(async()=>{const e=await Object(on.D)(),t={};e.privates.forEach((e=>{const a=Object.keys(e);t[a[0]]={private:e[a[0]].capacity}})),e.collects.forEach((e=>{const a=Object.keys(e);t[a[0]]=Object(d.a)(Object(d.a)({},t[a[0]]),{},{collect:e[a[0]].capacity})})),h(t)})()}),[p]),Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",indeterminate:O.length>0&&O.lengtho(),onClick:e=>o()})}),Object(g.jsx)(Ll.a,{id:"path",className:"left",align:"left",padding:"default",sortDirection:"path"===n.id&&n.direction,children:Object(g.jsx)(Bl.a,{active:"path"===n.id,direction:n.direction,onClick:e=>c(e,"path"),children:u("EXCLUDED_PATH")})}),Object(g.jsx)(Ll.a,{id:"ext",className:"center",align:"center",padding:"default",sortDirection:"name"===n.id&&n.direction,children:u("EXCLUDED_EXT")})]})}),Object(g.jsx)(wl.a,{children:a.map((e=>{const t=e.fid in l;return Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Wc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:t=>r(e.fid)})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:e.name}),Object(g.jsx)("p",{className:"log-path",children:e.real_path})]})}),Object(g.jsx)(Ll.a,{className:"center",align:"center",children:e.ext})]},e.user_id)}))})]})}));const Up=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{position:"relative",height:"calc(100vh - 340px)",borderRadius:6},icon:{width:20,height:20},confirmModal:{display:"flex",flexDirection:"column",gap:10,margin:"16px 0","& .user-item":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:12},"& .user-left":{width:"40%",wordBreak:"break-word"},"& .user-right":{width:"40%",wordBreak:"break-word"},"& .arrow":{width:"20%",textAlign:"center",fontSize:14,color:"#888"}}})));function Fp(){const e=Up(),t=Object(m.b)(),a=Object(n.useRef)(),{t:s}=Object(jt.a)("docbase"),{users:c,usersObj:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{folders:i,foldersObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[b,j]=Object(n.useState)(!0),[u,O]=Object(n.useState)([]),[p,h]=Object(n.useState)([]),[_,f]=Object(n.useState)({id:"path",direction:"desc"}),[E,x]=Object(n.useState)(""),[N,S]=Object(n.useState)(20),[T,v]=Object(n.useState)(0),[y,C]=Object(n.useState)({}),[A,L]=Object(n.useState)({}),[w,P]=Object(n.useState)({regist:!1,decripty:!1}),D=Object(n.useRef)(!0);Object(n.useEffect)((()=>{0===i.length?t(Object(ln.e)()).then((()=>{0===c.length&&t(Object(cn.h)())})):M(E)}),[i]),Object(n.useEffect)((()=>{D.current?D.current=!1:(M(E),L({}),v(0))}),[E,_]),Object(n.useEffect)((()=>{O(p.slice(N*T,N*(T+1)))}),[T,N,p]);const M=Object(n.useCallback)(Object(ul.debounce)((e=>{(async e=>{var t;j(!0);let a="";(await Object(on.O)("")).includes("drm_excluded.xml")&&(a=await Object(on.P)("drm_excluded.xml"));const n=bt.a.xmlToJson(a);C(n.excluded);const s=[];if(null!==n&&void 0!==n&&null!==(t=n.excluded)&&void 0!==t&&t.exclude)for(let j=0;j<(null===n||void 0===n||null===(c=n.excluded)||void 0===c?void 0:c.exclude.length);j++){var c,l;if(o[null===n||void 0===n||null===(l=n.excluded)||void 0===l?void 0:l.exclude[j].fid]){var r,i,b,u,O;(""===e||o[null===n||void 0===n||null===(r=n.excluded)||void 0===r?void 0:r.exclude[j].fid].name.indexOf(e)>=0)&&s.push(Object(d.a)(Object(d.a)(Object(d.a)({},null===n||void 0===n||null===(i=n.excluded)||void 0===i?void 0:i.exclude[j]),o[null===n||void 0===n||null===(b=n.excluded)||void 0===b?void 0:b.exclude[j].fid]),{},{fid:null===n||void 0===n||null===(u=n.excluded)||void 0===u?void 0:u.exclude[j].fid,real_path:o[null===n||void 0===n||null===(O=n.excluded)||void 0===O?void 0:O.exclude[j].fid].real_path}))}else{var p;const t=await Object(ln.i)(null===n||void 0===n||null===(p=n.excluded)||void 0===p?void 0:p.exclude[j].fid);if(""===e||t[0].user_name.indexOf(e)>=0){var m;const e=t[0].disp_path.split("/"),a=t.find((t=>e[e.length-1]===t.user_id));a.name=a.user_name,a.real_path=a.disp_path,s.push(Object(d.a)(Object(d.a)({},null===n||void 0===n||null===(m=n.excluded)||void 0===m?void 0:m.exclude[j]),a))}}}const f=[...s].sort(((e,t)=>{const{id:a,direction:n}=_,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:sP(Object(d.a)(Object(d.a)({},w),{},{decripty:!1})),fnHandleOK:e=>{}}),Object(g.jsx)(Dp,{open:w.regist,folders:i,users:c,excludedList:p,fnHandleClose:()=>P(Object(d.a)(Object(d.a)({},w),{},{regist:!1})),fnHandleOK:e=>{var t;const a=Object(d.a)({},y);(null!==(t=a.exclude)&&void 0!==t?t:a.exclude=[]).push(e),C(a);const n=bt.a.jsonToXml(a,"excluded");Object(on.S)("drm_excluded.xml",n).then((e=>{M(""),P(Object(d.a)(Object(d.a)({},w),{},{regist:!1}))}))}}),Object(g.jsx)(Vt.a,{style:{marginBottom:10},children:Object(g.jsxs)("div",{className:"searchWrapper",children:[Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:s("SEARCH")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:E,placeholder:s("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(zt.a,{position:"end",children:E&&Object(g.jsx)(I.a,{className:"p-0","aria-label":"clear search",onClick:()=>x(""),edge:"end",children:Object(g.jsx)(Wt.a,{})})})},onChange:e=>x(e.target.value)})})}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsxs)("div",{className:"inputItem",children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:e=>P(Object(d.a)(Object(d.a)({},w),{},{decripty:!0})),style:{width:"auto",marginRight:5},children:s("\uc554/\ubcf5\ud638\ud654")}),Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:e=>P(Object(d.a)(Object(d.a)({},w),{},{regist:!0})),style:{width:"auto",marginRight:5},children:s("NEW_REGISTRATION")})]})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:s("ROW_PER_PAGE")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto",minWidth:150},children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(te.a,{value:N,size:"small",variant:"outlined",className:"dropdown",onChange:e=>S(e.target.value),children:[Object(g.jsx)(Q.a,{value:10,children:"10\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:20,children:"20\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:50,children:"50\uac74 \ubcf4\uae30"}),Object(g.jsx)(Q.a,{value:100,children:"100\uac74 \ubcf4\uae30"})]})})})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",children:[Object(g.jsxs)("div",{className:"info",children:[Object(g.jsxs)("span",{children:["(",s("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:p.length}),s("CNT"),")"]}),k>0?Object(g.jsxs)("span",{children:["(",s("SELECTED")," ",Object(g.jsx)("span",{className:"count",children:k}),s("CNT"),")"]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)("div",{className:"btnGroup",children:Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(ml.a,{title:s("\uc608\uc678\uacbd\ub85c \uc0ad\uc81c"),content:s("\uc608\uc678\uacbd\ub85c\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{const e=Object.keys(A),t=Object(d.a)({},y);t.exclude=t.exclude.filter((t=>!e.includes(String(t.fid))));const a=Object(d.a)({},A);for(const s of e){t.exclude.some((e=>String(e.fid)===s))||delete a[s]}C(t),L(a);const n=bt.a.jsonToXml(t,"excluded");Object(on.S)("drm_excluded.xml",n).then((e=>{M("")}))}})}))},children:s("DELETE")})})]})]})}),Object(g.jsx)(Vt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:b?Object(g.jsx)(Ot.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(K.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(B.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Gp,{data:u,order:_,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";_.id===t&&"desc"===_.direction&&(n="asc"),f({direction:n,id:a})})(0,t),selectedMap:A,handleSelect:e=>{const t=Object(d.a)({},A);e in t?delete t[e]:t[e]="",L(t)},selectAll:()=>{if(Object.keys(A).length>0)L({});else{const e={};p.forEach((t=>{e[t.fid]=""})),L(e)}}})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(p.length/N),color:"primary",onChange:(e,t)=>{v(t-1)}})]})})]})}var Wp=s.a.memo(Fp);var Hp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/drm_excluded",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Wp,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const zp=Object(M.a)((e=>({tr:{"& .size":{width:120}}})));var Bp=function(e){const{t:t}=Object(jt.a)("docbase"),a=zp(),n=[{id:"path",align:"left",className:"left",disablePadding:!1,label:t("PATH"),isSearch:!1,sort:!1},{id:"size",align:"center",className:"size",disablePadding:!1,label:t("SIZE"),isSearch:!1,sort:!1},{id:"date",align:"center",className:"table_col_date",disablePadding:!1,label:t("REGIST_DATE"),isSearch:!1,sort:!1}],[c,l]=s.a.useState({old_object:{show:""!==e.searchObj.path,value:e.searchObj.path},operator:{show:""!==e.searchObj.operator,value:e.searchObj.operator}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Ll.a,{className:Object(G.a)(t.className,c[t.id]&&c[t.id].show?"show":""),align:t.align,padding:t.disablePadding?"none":"default",sortDirection:!1,children:c[t.id]&&c[t.id].show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:r,edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:e.target.value}}))},onKeyPress:t=>{13===t.charCode&&(t.preventDefault(),e.fnSearch(c.old_object.value,c.operator.value))}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:t.label}),t.isSearch?Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{l(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const Kp=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5",padding:7},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"},customInput:{width:"150px",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}}})));var Yp=function(e){const t=Kp(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(!0),[o,b]=s.a.useState({id:"user_id",direction:"asc"}),[j,u]=s.a.useState(0),[O,p]=s.a.useState(0),[h,_]=s.a.useState(100),[f,E]=s.a.useState(0),[x,N]=s.a.useState([]),S=new Date,[T,v]=s.a.useState({startDate:new Date(S.getFullYear(),S.getMonth(),S.getDate()),endDate:new Date(S.getFullYear(),S.getMonth(),S.getDate()),size:"",unit:"0",exts:""});s.a.useEffect((()=>{y(T)}),[T]);const R=s.a.useRef(!0);s.a.useEffect((()=>{R.current?R.current=!1:A(f)}),[f]);const y=Object(n.useCallback)(Object(ul.debounce)((e=>{C(e)}),1500),[]),C=async e=>{i(!0);try{let t=""===e.size?0:Number(e.size);"0"===e.unit?t=1024*t*1024*1024:"1"===e.unit?t=1024*t*1024:"2"===e.unit&&(t*=1024);const a=await Object(on.r)(bt.a.getDateString(e.startDate),bt.a.getDateString(e.endDate),t,e.exts);a.total_rows>0?(u(a.total_rows),p(a.total_pages),await A(1)):(u(0),p(0),N([]))}catch(t){console.error(t)}finally{i(!1)}},A=async e=>{const t=await Object(on.s)(e);N(t)};return r?Object(g.jsx)(K.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Vt.a,{className:Object(G.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:j}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("span",{className:"title",children:l("SEARCH_EXTS")}),Object(g.jsx)(Ht.a,{name:"exts",className:"align-middle",variant:"outlined",siae:"small",value:T.exts,onChange:e=>{v(Object(d.a)(Object(d.a)({},T),{},{exts:e.target.value}))}})]}),Object(g.jsxs)("div",{className:"",style:{marginLeft:10},children:[Object(g.jsx)("span",{className:"title",children:l("SIZE")}),Object(g.jsx)(js.a,{type:"number",name:"search_size",disableUnderline:!0,className:t.customInput,endAdornment:Object(g.jsx)(zt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"size_nuit",disableUnderline:!0,variant:"standard",className:"",value:T.unit,onChange:e=>{v(Object(d.a)(Object(d.a)({},T),{},{unit:e.target.value,size:""}))},children:[Object(g.jsx)(Q.a,{value:"0",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"1",children:"Mbyte"}),Object(g.jsx)(Q.a,{value:"2",children:"Kbyte"})]})}),value:T.size,onChange:e=>{v(Object(d.a)(Object(d.a)({},T),{},{size:e.target.value}))}})]}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"start_date",maxDate:new Date("2999-12-31"),value:T.startDate,onChange:e=>{isNaN(e.getTime())||T.startDate.getTime()!==e.getTime()&&v(Object(d.a)(Object(d.a)({},T),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(xc.a,{utils:Rl.a,className:"flex-1",children:Object(g.jsx)(vl.a,{className:t.datePicker,fullWidth:!0,disableToolbar:!0,invalidDateMessage:"",autoOk:!0,size:"small",variant:"inline",inputVariant:"outlined",format:"yyyy/MM/dd",id:"end_date",maxDate:new Date("2999-12-31"),value:T.endDate,onChange:e=>{isNaN(e.getTime())||T.endDate.getTime()!==e.getTime()&&v(Object(d.a)(Object(d.a)({},T),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>C(T),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(rn.ab)({show:!0}));const e=await Object(on.t)(O),t=[l("PATH"),l("SIZE"),l("REGIST_DATE")],n=[],s=[{wpx:800},{wpx:150},{wpx:150}];e.forEach((e=>{n.push({path:e.path,size:e.size,last_updated_at:bt.a.getDateStringToLocalDate(e.last_updated_at)})})),hl.a.excelDownload("".concat(l("\uad00\uc2ec\ud30c\uc77c_")).concat(bt.a.getDateString(T.startDate),"-").concat(bt.a.getDateString(T.endDate)),t,n,s)}catch(e){console.error(e)}finally{a(Object(rn.ab)({show:!1}))}})()},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Bp,{order:o,searchObj:T,rowCount:j}),Object(g.jsx)(wl.a,{children:x.slice(f*h,f*h+h).map(((e,t)=>Object(g.jsxs)(Al.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.path)})]})}),Object(g.jsx)(Ll.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.changeByteToString(e.size)}),Object(g.jsx)(Ll.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.last_updated_at)})]},t)))})]})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(j/h),color:"primary",page:f,onChange:(e,t)=>{E(t-1)}})]})})};var Vp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/foi",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(Yp,{}),innerScroll:!0,sidebarInner:!0})}}]},Xp=a(345);var qp=function(e){let{className:t,navigator:a,isLong:n,fnMoveFolder:s}=e;const{t:c}=Object(jt.a)("docbase");Object(m.b)();let l="";const r=a.map(((e,t)=>{""!==e.name&&(l+="/".concat(e.name));return n?0===t||t>=a.length-2?Object(g.jsxs)("span",{className:"flex items-center",children:[Object(g.jsx)("span",{className:"textEllipsis","aria-hidden":"true",style:{cursor:"pointer"},onClick:t=>s(e),children:e.name}),a.length-1!==t&&Object(g.jsx)(w.a,{children:"chevron_right"})]},t):a.length>3&&1===t?Object(g.jsxs)("span",{className:"flex items-center",children:[Object(g.jsx)("span",{"aria-hidden":"true",style:{cursor:"pointer"},onClick:t=>s(e),children:"..."}),a.length-1!==t&&Object(g.jsx)(w.a,{children:"chevron_right"})]},t):"":Object(g.jsxs)("span",{className:"flex items-center",children:[Object(g.jsx)("span",{"aria-hidden":"true",style:{cursor:"pointer"},onClick:t=>{"..."!==e.name&&s(e)},children:e.name}),a.length-1!==t&&Object(g.jsx)(w.a,{children:"chevron_right"})]},t)}));return Object(g.jsx)(k.a,{className:t,children:r})};const Jp=["children","classes","onClose"],Zp=Object(er.a)((e=>({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n}=e,s=Object(Ws.a)(e,Jp);return Object(g.jsxs)($c.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(k.a,{variant:"h6",children:t}),n?Object(g.jsx)(I.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(tr.a,{})}):null]}))})),Qp=Object(M.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{"& .MuiPaper-root":{padding:0,width:"100%",maxWidth:673,background:"#f2f3f5","&>div":{padding:30}}},contentWrapper:{height:400,background:"#fff"},title:{background:"#353b48",color:"#ffffff",padding:0,height:60,display:"flex",alignItems:"center",paddingLeft:30,"& .MuiTypography-root":{fontSize:16,fontWeight:"normal"}},head:{paddingBottom:"0px !important","& .search-wrapper":{background:"#ffffff",borderRadius:6,padding:"15px 30px",display:"flex",width:"100%","& .input-item":{width:"100%"},"&>button":{marginLeft:10}}},body:{paddingTop:"10px !important","& .type-tabs":{width:"100%",display:"flex",alignItems:"center","& .active_bar":{background:"#fff"},"& .list-tab":{borderRadius:"6px 6px 0 0",minWidth:118,height:50,padding:0,color:"#192141"},"& .list-tab.Mui-selected":{background:"#ffffff",color:"#00cfe2"}},"& .result-list":{fontSize:14,paddingTop:10,background:"#fff",boxShadow:"none",marginTop:"-3px","& .cell-check":{width:60},"& .MuiTableBody-root":{background:"#ffffff"},"& .cell-name":{"&>div":{display:"flex",alignItems:"center"},"&>.etc":{position:"absolute",right:0,top:2}},"& .MuiIconButton-label":{width:10,height:10},"& .obj-name>span":{marginLeft:12}}},buttonWrapper:{display:"flex",justifyContent:"center",padding:"20px 0",borderRadius:"0 0 6px 6px",background:"#fff","& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));function $p(e){let{open:t,fnHandleClose:a,fnHandleOk:c}=e;const l=Qp(),{t:r}=(Object(m.b)(),Object(jt.a)("docbase")),{orgsChildren:i,orgFolders:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[d,b]=s.a.useState(""),[j,u]=s.a.useState({}),[O,p]=s.a.useState(-1);function h(){const e=Array.isArray(null===i||void 0===i?void 0:i.children)?i.children.filter((e=>e.org_type===qc.ab)):[];u(e)}s.a.useEffect((()=>{t?_(""):(b(""),h())}),[t]),s.a.useEffect((()=>{h()}),[i]),s.a.useEffect((()=>(_(d),()=>{_.cancel()})),[d]);const _=Object(n.useCallback)(Object(ul.debounce)((e=>{const t=[],a={};e.length>0?(o.forEach((n=>{n.name.toLowerCase().includes(e.toLowerCase())&&(t.push(n),a[n.fid]=!1)})),u({children:t})):h()}),1e3));return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:l.root,open:t,onClose:a,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Zp,{className:l.title,id:"form-dialog-title",onClose:a,children:r("PERM_FOLDER_TITLE")}),Object(g.jsx)(gl.a,{className:l.head,children:Object(g.jsx)("div",{className:"search-wrapper",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Ht.a,{className:"",type:"text",placeholder:r("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:d,variant:"outlined",size:"small",onChange:e=>b(e.target.value)})})})}),Object(g.jsx)(el.a,{className:l.body,children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)(B.a,{className:Object(G.a)(l.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsx)("div",{children:Object(g.jsx)(ar.a,{className:"full",useExpand:!0,orgs:j,fnOnClickHandler:e=>{p(e)}})})})}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Hc.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:r("CANCEL")}),Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{c(O)},children:r("MOVE")})]})]})})]})})}const eh=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},navi:{padding:"5px 20px",alignItems:"center",display:"flex"},contentWrapper:{height:"calc(100vh - 220px)","&>.insert-form":{padding:"0 0 10px 20px"}},icon:{width:20,height:20},item:{display:"flex",minHeight:"40.59px",padding:"10px 15px",fontSize:14,alignItems:"center",position:"relative",cursor:"pointer!important","&>.icon":{width:20,height:20,marginRight:5,"&>.material-icons":{width:20,height:20,fontSize:20}},"&>.file-name":{flexGrow:1,width:"calc(100% - 35px)",wordBreak:"break-all",alignItems:"center"},"& .datetime":{width:190,display:"block"}},buttonWrapper:{paddingBottom:10,paddingLeft:10}})));let th=!0;var ah=function(){const e=eh(),t=Object(m.b)(),a=s.a.useRef(null),c=s.a.useRef(null),{t:l}=Object(jt.a)("docbase"),[r,i]=Object(n.useState)(!0),{orgFolders:o,orgsObj:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[j,u]=Object(n.useState)({show:!1,text:""}),[O,p]=Object(n.useState)({open:!1}),[h,_]=Object(n.useState)({depth:0,path:"",folderInfo:{fid:-1,folder_type:qc.F,fid_path:""},files:[],structFolders:[]}),[f,E]=Object(n.useState)({}),[x,N]=Object(n.useState)([]),[S,T]=Object(n.useState)(!1),[v,y]=Object(n.useState)(-1),[C,A]=Object(n.useState)([{name:"\uc870\uc9c1",fid:0,isStruct:!0}]);Object(n.useEffect)((()=>{var e,t;(null===c||void 0===c||null===(e=c.current)||void 0===e?void 0:e.clientWidth)<(null===a||void 0===a||null===(t=a.current)||void 0===t?void 0:t.clientWidth)+50?(-1===v&&y(C.length),T(!0)):-1!==v&&C.length((th||-1===h.folderInfo.fid)&&(t(Object(ln.f)()).then((()=>{L(0)})),th=!1),()=>{th=!0})),[t]);const L=async e=>{const t=await Object(ln.l)(e),a=Object(d.a)({},f),n=t.map((e=>{Object(d.a)({},e);e.name=e.name.replace("[_ORG_].",""),e.type=1,e.isStruct=!0,e.folder_type=qc.F;let t="";const n=e.disp_path.split("/").filter(Boolean);if(n.length<=2)t="/".concat(n.join("/"));else{const e=n.slice(0,2).join("/"),a=n.slice(2).join(".");t="/".concat(e,".").concat(a)}return e.userPath=t,a[e.fid]=e,e})).sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1));E(a),0===e?(_(Object(d.a)(Object(d.a)({},h),{},{depth:0,folderInfo:{fid:0,folder_type:qc.F,disp_path:"/\uc870\uc9c1",fid_path:""},structFolders:n,files:[]})),A([{fid:0,folder_type:qc.F,disp_path:"/\uc870\uc9c1",name:"\uc870\uc9c1"}])):await P(a[e],n),i(!1)},P=async(e,t)=>{const a=e.isStruct?e:h.folderInfo;let n=h.folderInfo.fid_path.split("/").length;if(e.isStruct){const s=a.userPath,c=await Object(jn.k)(s);_(Object(d.a)(Object(d.a)({},h),{},{depth:n,folderInfo:e,structFolders:t,path:e.userPath,files:c}));const l=e.fid_path.split("/").map((e=>""===e?{fid:0,folder_type:qc.F,disp_path:"/\uc870\uc9c1",name:"\uc870\uc9c1"}:f[e]));A(l)}else{const t=e.direct?e.name:"".concat(h.path,"/").concat(e.name),a=await Object(jn.k)(t),s=h.folderInfo.fid_path.split("/").map((e=>""===e?{fid:0,folder_type:qc.F,disp_path:"/\uc870\uc9c1",name:"\uc870\uc9c1"}:f[e]));let c="";if(e.direct){const t=e.name.replace(h.folderInfo.userPath,"").split("/");t.forEach((e=>{""!==e&&(c+=(c?"/":"")+e,s.push({name:e,path:c}))})),n+=t.length}else{const t=h.path.replace(h.folderInfo.userPath).split("/");t.shift(),t.forEach((e=>{c+=(c?"/":"")+e,s.push({name:e,path:c})})),s.push(e),n+=t.length}_(Object(d.a)(Object(d.a)({},h),{},{depth:n,structFolders:[],path:t,files:a})),A(s)}return!0},D=e=>!(null===e||void 0===e||!e.org_type||e.org_type===qc.ab)||(0===e.name.indexOf(".fuse")||(5===e.folder_type||2===e.type||(0===e.name.indexOf("[_ORG_].")&&1===e.folder_type||""!==j.text&&e.name.indexOf(j.text)<0))),M=(e,a,n)=>{if("click"===e.type&&e.stopPropagation(),"\ud734\uc9c0\ud1b5"===a.name||"Trash"===a.name)return!1;if(n&&"click"===e.type)N(x.filter((e=>e.name!==a.name)));else if(e.ctrlKey)N([...x,a]);else{if(a.folder_type===qc.G)return t(Object(U.c)({message:l("\uc870\uc9c1\ub0b4 \uacf5\uc720\ud3f4\ub354\ub294 \uc774\ub3d9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4")})),!1;N([a])}return!0},k=(e,t)=>{u(Object(d.a)(Object(d.a)({},j),{},{text:""})),t.isStruct?L(t.fid):P(t)},F=()=>{h.folderInfo.userPath?h.folderInfo.userPath===h.path?L(h.folderInfo.fid):P({name:h.path,direct:!0}):L(0)};return r?Object(g.jsx)(K.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:[Object(g.jsx)($p,{open:O.open,fnHandleClose:e=>p({open:!1}),fnHandleOk:async e=>{const a=[],n=b[e].path.split("/");n.shift();const s="/\uc870\uc9c1/".concat(n.join(".")),c=await Object(jn.k)(s);let r=!1;const i=[];x.forEach((e=>{c.find((t=>t.name===e.name))?(r=!0,i.push(e.name)):a.push(e.name)})),t(r?Object(U.c)({message:"".concat(l("\uc911\ubcf5\ub418\ub294 \ud3f4\ub354\uba85\uc774 \uc788\uc2b5\ub2c8\ub2e4"),"[").concat(i.join(","),"]")}):Object(R.c)({children:Object(g.jsx)(ml.a,{title:l("\ud3f4\ub354 \uc774\ub3d9"),content:l("\ud3f4\ub354\ub97c \uc774\ub3d9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:async()=>{let e=!0;for(let t=0;tt((()=>{if(1===h.depth)L(0);else if(h.folderInfo.userPath===h.path)h.folderInfo.isStruct&&L(h.folderInfo.parent_fid);else{const e=h.path.replace(h.folderInfo.userPath).split("/");e.shift(),1===e.length?L(h.folderInfo.fid):(e.pop(),P({name:"".concat(h.folderInfo.userPath,"/").concat(e.join("/")),direct:!0}))}})()),"aria-label":"open left sidebar",children:Object(g.jsx)(ha.a,{className:"",type:"backspace",fill:"#000000"})}),Object(g.jsx)("div",{ref:a,className:"textEllipsis",children:C&&Object(g.jsx)(qp,{navigator:C,isLong:S,className:"flex flex-1",fnMoveFolder:e=>{e.isStruct?L(e.fid):P({name:"".concat(h.folderInfo.userPath,"/").concat(e.path),direct:!0})}})})]}),Object(g.jsx)("div",{className:"header-context-bar",children:Object(g.jsxs)("div",{className:e.buttonWrapper,children:[Object(g.jsx)(Hc.a,{variant:"contained",className:"default",type:"button",disabled:0===x.length||x.find((e=>e.isStruct)),onClick:()=>{p({open:!0})},style:{width:"auto",marginLeft:10},children:l("MOVE")}),Object(g.jsx)(Je.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>F(),children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})]})}),Object(g.jsx)(B.a,{className:Object(G.a)(e.contentWrapper,"flex-grow overflow-x-hidden flex flex-col"),children:Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsx)(Al.a,{children:Object(g.jsx)(Ll.a,{className:Object(G.a)("search-cell",j.show?"show":""),align:"left",padding:"default",sortDirection:!1,children:j.show?Object(g.jsxs)(Vt.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(g.jsx)(w.a,{color:"action",children:"search"}),Object(g.jsx)(js.a,{placeholder:l("FOLDER_NAME"),className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:j.text,endAdornment:Object(g.jsx)(zt.a,{position:"end",children:Object(g.jsx)(I.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>u({show:!1,value:""}),edge:"end",children:Object(g.jsx)(w.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{u({show:!0,text:e.target.value})}})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("span",{className:"align-middle",children:l("FOLDER_NAME")}),Object(g.jsx)(w.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{u({show:!0,value:""})},children:"search"})]})})})}),Object(g.jsxs)(wl.a,{children:[h.structFolders.map((t=>{if(D(t))return"";const a=!!x.find((e=>e.name===t.name));let n="folder";return t.folder_type===qc.J?n="delete":t.folder_type===qc.H?n="private":t.folder_type===qc.E?n="collect":t.folder_type===qc.F?n="org":t.folder_type===qc.I&&(n="shared"),Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:a,onClick:e=>{M(e,t,a)},onDoubleClick:e=>k(0,t),children:Object(g.jsxs)(Ll.a,{className:Object(G.a)(e.item,"cursor-pointer left noselect"),component:"td",scope:"row",children:[Object(g.jsx)("div",{className:"icon",children:Object(g.jsx)(Xp.a,{className:Object(G.a)("\ud734\uc9c0\ud1b5"===t.name||"Trash"===t.name?"delete":"folder"),type:n})}),Object(g.jsx)("div",{className:"file-name noselect",children:t.name}),Object(g.jsx)("div",{className:"datetime",children:bt.a.getDateStringToLocalDate(t.last_modified)})]})},t.fid)})),h.files.map((t=>{if(D(t))return"";const a=!!x.find((e=>e.name===t.name));let n="folder";return t.folder_type===qc.J?n="delete":t.folder_type===qc.H?n="private":t.folder_type===qc.E?n="collect":t.folder_type===qc.F?n="org":t.folder_type===qc.I&&(n="shared"),Object(g.jsx)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:a,onClick:e=>{M(e,t,a)},onDoubleClick:e=>k(0,t),children:Object(g.jsxs)(Ll.a,{className:Object(G.a)(e.item,"cursor-pointer left"),component:"td",scope:"row",children:[Object(g.jsx)("div",{className:"icon",children:Object(g.jsx)(Xp.a,{className:Object(G.a)("\ud734\uc9c0\ud1b5"===t.name||"Trash"===t.name?"delete":"folder"),type:n})}),Object(g.jsx)("div",{className:"file-name",children:t.name})]})},t.fid)}))]})]})})]})]})};var nh={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/folderTransfer",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(ah,{}),innerScroll:!0,sidebarInner:!0})}}]},sh=s.a.memo((e=>{let{data:t,order:a,handleRequestSort:n}=e;const{t:s}=Object(jt.a)("docbase");return Object(g.jsxs)(yl.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Cl.a,{children:Object(g.jsxs)(Al.a,{children:[Object(g.jsx)(Ll.a,{id:"ext",className:"center",align:"center",padding:"default",sortDirection:"name"===a.id&&a.direction,style:{width:160},children:s("TYPE")}),Object(g.jsx)(Ll.a,{id:"path",className:"left",align:"left",padding:"default",sortDirection:"path"===a.id&&a.direction,children:Object(g.jsx)(Bl.a,{active:"path"===a.id,direction:a.direction,onClick:e=>n(e,"path"),children:s("PATH")})})]})}),Object(g.jsx)(wl.a,{children:t.map((e=>{let t="";return"2"===e.type?t="\uc81c\uc678\uacbd\ub85c\ud30c\uc77c":"3"===e.type&&(t="\ubbf8\uc9c0\uc6d0\ud655\uc7a5\uc790"),Object(g.jsxs)(Al.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Ll.a,{className:"center",align:"center",children:t}),Object(g.jsx)(Ll.a,{className:"left",align:"left",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:bt.a.splitLastDelimiterString(e.text)}),Object(g.jsx)("p",{className:"log-path",children:bt.a.splitPreDelimiter(e.text).replaceAll("[_ORG_].","")})]})})]},e.user_id)}))})]})}));const ch=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{position:"relative",height:"calc(100vh - 270px)",borderRadius:6,overflowY:"auto"},icon:{width:20,height:20},confirmModal:{display:"flex",flexDirection:"column",gap:10,margin:"16px 0","& .user-item":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:12},"& .user-left":{width:"40%",wordBreak:"break-word"},"& .user-right":{width:"40%",wordBreak:"break-word"},"& .arrow":{width:"20%",textAlign:"center",fontSize:14,color:"#888"}}})));function lh(){const e=ch(),t=(Object(m.b)(),Object(n.useRef)()),{t:a}=Object(jt.a)("docbase"),{users:c,usersObj:l}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{folders:i,foldersObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[b,j]=Object(n.useState)(!0),[u,O]=Object(n.useState)([]),[p,h]=Object(n.useState)([]),[_,f]=Object(n.useState)({id:"path",direction:"desc"}),[E,x]=Object(n.useState)(20),[N,S]=Object(n.useState)(0),T=new Date,[v,R]=s.a.useState({startDate:new Date(T.getFullYear(),T.getMonth(),T.getDate()),path:""});Object(n.useEffect)((()=>{y(v.path),S(0)}),[v,_]),Object(n.useEffect)((()=>{O(null===p||void 0===p?void 0:p.slice(E*N,E*(N+1)))}),[N,E,p]);const y=Object(n.useCallback)(Object(ul.debounce)((e=>{(async()=>{var e;j(!0);const t=await Object(on.O)();let a="";const n="nonEncryptPath".concat(bt.a.getDateString(v.startDate),".xml");t.includes(n)&&(a=await Object(on.P)(n));const s=null===(e=bt.a.xmlToJson(a).nonEncrypt)||void 0===e?void 0:e.path.sort(((e,t)=>{const{id:a,direction:n}=_,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:s{isNaN(e.getTime())||v.startDate.getTime()!==e.getTime()&&R(Object(d.a)(Object(d.a)({},v),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:a("REFRESH"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{},children:Object(g.jsx)(ha.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:a("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(I.a,{"aria-label":"download",color:"secondary",onClick:()=>{const e=[a("TYPE"),a("PATH")],t=[];u.forEach((e=>{let a="";"2"===e.type?a="\uc81c\uc678\uacbd\ub85c\ud30c\uc77c":"3"===e.type?a="\ubbf8\uc9c0\uc6d0\ud655\uc7a5\uc790":"4"===e.type&&(a="\uc2e4\ud328"),t.push({type:a,path:e.text.replaceAll("[_ORG_].","")})})),hl.a.excelDownload("".concat(a("\ube44\uc554\ud638\ud654\ud30c\uc77c"),"_").concat(bt.a.getDateString(v.startDate),"}"),e,t,[{wpx:160},{wpx:800}])},children:Object(g.jsx)(ha.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]})}),Object(g.jsx)(Vt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:b?Object(g.jsx)(Ot.a,{className:e.contentWrapper,ref:t,children:Object(g.jsx)(K.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("div",{className:e.contentWrapper,ref:t,children:Object(g.jsx)(sh,{data:u,order:_,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";_.id===t&&"desc"===_.direction&&(n="asc"),f({direction:n,id:a})})(0,t)})}),Object(g.jsx)(pl.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(p.length/E),color:"primary",onChange:(e,t)=>{S(t-1)}})]})})]})}var rh=s.a.memo(lh);var ih={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/drm_nonencrypts",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(rh,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const oh=Object(M.a)((e=>({datePicker:{"& .MuiOutlinedInput-notchedOutline":{display:"none"},"& input":{border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:6,width:130,textAlign:"center",padding:"9.5px 0"},"& .MuiOutlinedInput-root.Mui-focused input":{boxShadow:"0 0 0 2px #000 inset"},"& .MuiButtonBase-root":{background:"#eceff4",borderRadius:6,border:"1px solid #d9dee5"},"& .MuiOutlinedInput-adornedEnd":{paddingRight:0}},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"},customInput:{width:"150px",border:"1px solid rgba(0, 0, 0, 0.23)",borderRadius:4,"&>input":{padding:"10.5px 14px"},"&.Mui-focused":{border:"2px solid rgba(0, 0, 0, 1)"},"&:hover":{border:"1px solid rgba(0, 0, 0, 1)"}}})));var dh=function(e){const t=oh(),a=Object(m.b)(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState({userID:"",fid:-1});return s.a.useEffect((()=>{}),[]),Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)("div",{children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("ID")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"text",name:"userID",variant:"outlined",value:c.userID,onChange:e=>l(Object(d.a)(Object(d.a)({},c),{},{userID:e.target.value})),autoFocus:!0,required:!0,fullWidth:!0,size:"small"})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title required",children:Object(g.jsx)("span",{children:n("\ud3f4\ub354\uc544\uc774\ub514")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(Ht.a,{className:"",type:"name",name:"name",variant:"outlined",value:c.fid,onChange:e=>l(Object(d.a)(Object(d.a)({},c),{},{fid:e.target.value})),required:!0,fullWidth:!0,size:"small"})})]})]}),Object(g.jsx)("div",{style:{marginTop:10},children:Object(g.jsx)(Hc.a,{variant:"contained",color:"secondary",className:"w-full","aria-label":"Register",type:"button",onClick:async()=>{if(!c.userID||null==c.fid)return void a(Object(U.d)({message:"invalid input"}));if((await Object(cn.i)(c.userID)).some((e=>e.fid===Number(c.fid))))return void a(Object(U.d)({message:"\uc774\ubbf8 \uad8c\ud55c\uc774 \uc788\uc2b5\ub2c8\ub2e4."}));const e=await Object(ln.F)(c.fid,c.userID,qc.D,qc.Ib,qc.M,0,qc.z);a(e?Object(U.d)({message:"\uad8c\ud55c\uc744 \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4"}):Object(U.d)({message:"\ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4"}))},style:{width:"100%"},children:n("ADD")})})]})})};var bh={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/perm",component:function(){return Object(g.jsx)(jl.a,{classes:{content:"flex"},header:Object(g.jsx)(_r,{}),content:Object(g.jsx)(dh,{}),innerScroll:!0,sidebarInner:!0})}}]};var jh={CONFIRM:"\ud655\uc778",USE:"\uc0ac\uc6a9",UNUSED:"\ubbf8\uc0ac\uc6a9",APPLY:"\uc801\uc6a9",UNAPPLIED:"\ubbf8\uc801\uc6a9",CANCEL:"\ucde8\uc18c",ADD:"\ucd94\uac00",CHANGE:"\ubcc0\uacbd",DELETE:"\uc0ad\uc81c",REMOVE:"\uc81c\uac70",MOVE:"\uc774\ub3d9",YES:"\uc608",NO:"\uc544\ub2c8\uc694",CLOSE:"\ub2eb\uae30",MODIFY:"\uc218\uc815",TIME:"\uc2dc\uac04",PERMIT:"\ud5c8\uc6a9",BLOCK:"\ucc28\ub2e8",SELECTED:"\uc120\ud0dd",UNSELECTED:"\ubbf8\uc120\ud0dd",MONTH:"\uc6d4",DAY:"\uc77c",HOUR:"\uc2dc",MINUTE:"\ubd84",SEC:"\ucd08",CHECK_ALL:"\ubaa8\ub450\uccb4\ud06c",NOTE:"\ube44\uace0",IP_ADDRESS:"\uc544\uc774\ud53c",LOGIN_ERROR_MESSAGE_1:"\uc544\uc774\ub514 \ub610\ub294 \uc554\ud638\ub97c \ud655\uc778\ud558\uc138\uc694",LOGIN_ERROR_MESSAGE_2:"\uc778\uc99d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",LOGIN_ERROR_MESSAGE_3:"\uc785\ub825 \uc2dc\uac04\uc744 \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",LOGIN_ERROR_MESSAGE_4:"\uc774\ubbf8 \ub4f1\ub85d \ub418\uc5b4\uc788\uc2b5\ub2c8\ub2e4",LOGIN_ERROR_MESSAGE_5:"\uc798\ubabb\ub41c \uc785\ub825\uc785\ub2c8\ub2e4",LOGIN_ERROR_MESSAGE_6:"\uad00\ub9ac\uc790 \uacc4\uc815\uc73c\ub85c\ub9cc \uc811\uc18d\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4",LOGIN_ERROR_MESSAGE_8:"\uacc4\uc815\uc774 \uc7a0\uaca8\uc788\uc2b5\ub2c8\ub2e4",TOTP_SETTING:"TOTP \uc124\uc815",TOTP_AUTH:"TOTP \uc778\uc99d \uc0ac\uc6a9",TOTP_AUTH_USED:"TOTP \uc778\uc99d \uc0ac\uc6a9\uc911",TOTP_SETTINGKEY:"\uc124\uc815\ud0a4",TOTP_VALUE:"TOTP \uac12",TOTP_MESSAGE_1:"TOTP\ub97c 2\ucc28 \uc778\uc99d\uc73c\ub85c \uc0ac\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",TOTP_MESSAGE_2:"\uc785\ub825\uc2dc\uac04\uc744 \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",LOGOUT:"\ub85c\uadf8\uc544\uc6c3",LOGOUT_MESSAGE_1:"\ub85c\uadf8\uc544\uc6c3 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",ID:"\uc544\uc774\ub514",PASSWORD:"\uc554\ud638",NAME:"\uc774\ub984",EMAIL:"\uc774\uba54\uc77c",PASSWORD_CONFIRM:"\uc554\ud638 (\ud655\uc778)",PASSWORD_AUTO:"\uc554\ud638 \uc790\ub3d9\uc0dd\uc131",ACCESS_LEVEL:"\uc811\uadfc\ub808\ubca8",LEVEL:"\ub808\ubca8",CREATE:"\uc0dd\uc131",REMEMBER_ME:"\uc544\uc774\ub514 \uc800\uc7a5",REMEMBER_PW:"\ube44\ubc00\ubc88\ud638 \uc800\uc7a5",LOGIN:"\ub85c\uadf8\uc778",PRINT_PASSWORD:"\uc885\uc774\uc554\ud638",PRINT_PASSWORD_AUTH:"\uc885\uc774\uc554\ud638 \uc778\uc99d",PRINT_PASSWORD_CONTEXT:'\uc885\uc774 \uc554\ud638\uc5d0\uc11c "%s" \uc5d0 \uc704\uce58\ud558\ub294 3\uac1c\uc758 \uac12\uc744 \uacf5\ubc31 \uc5c6\uc774 \uc5f0\uc18d\uc801\uc73c\ub85c \uc785\ub825\ud558\uc138\uc694. \uc885\uc774 \uc554\ud638\ub294 \uad00\ub9ac\uc790\ub97c \ud1b5\ud574\uc11c \uc5bb\uc744 \uc218 \uc788\uc73c\uba70 TOTP\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\ub294 \uacbd\uc6b0\uc5d0 \ud55c\ud574 \ud558\ub8e8\ub9cc \uc720\ud6a8\ud55c \uc554\ud638\ud45c\uc785\ub2c8\ub2e4',PRINT_PASSWORD_ERROR_MESSAGE_1:"\ubc1c\ud589\ub41c \uc885\uc774\uc554\ud638\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud558\uc138\uc694",PRINT_PASSWORD_ERROR_MESSAGE_2:"\uc798\ubabb\ub41c \uc885\uc774\uc554\ud638 \uc785\ub2c8\ub2e4",CREATE_ADMIN:"\uad00\ub9ac\uc790 \uc0dd\uc131",SERVER_ENCRYPT:"\uc11c\ubc84 \ud30c\uc77c \uc554\ud638\ud654",LANGUAGE:"\uc5b8\uc5b4",REGISTER_ERROR_MESSAGE_1:"\ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",REGISTER_PRODUCT:"\uc81c\ud488 \ub4f1\ub85d",REGISTER:"\ub4f1\ub85d",ADMIN_ERROR_MESSAGE_1:"\uad00\ub9ac\uc790 \ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",ADMIN_ERROR_MESSAGE_2:"\uad00\ub9ac\uc790\uac00 \ub4f1\ub85d \ub418\uc5b4\uc788\uc2b5\ub2c8\ub2e4",SHARED_FOLDER:"\uacf5\uc720\ud3f4\ub354",ORG_FOLDER:"\uc870\uc9c1\ud3f4\ub354",PRIVATE_FOLDER:"\uac1c\uc778\ud3f4\ub354",COLLECTOR_FOLDER:"\uc218\uc9d1\ud3f4\ub354",ORGSHARED_FOLDER:"\uc870\uc9c1\uacf5\uc720\ud3f4\ub354",ORGSHARED:"\uc870\uc9c1\uacf5\uc720",ETC:"\uae30\ud0c0",FOLDER_ADD:"\ud3f4\ub354 \ucd94\uac00",FOLDER_NAME:"\ud3f4\ub354\uba85",USER:"\uc0ac\uc6a9\uc790",USER_TITLE:"\uc0ac\uc6a9\uc790",USER_ADD:"\uc0ac\uc6a9\uc790 \ucd94\uac00",USER_SELECT:"\uc0ac\uc6a9\uc790 \uc120\ud0dd",USER_MESSAGE_SEND:"\uba54\uc138\uc9c0\uc804\uc1a1",ORG_TITLE:"\uc870\uc9c1",ORG_ADD:"\uc870\uc9c1 \ucd94\uac00",ORG_NAME:"\uc870\uc9c1\uba85",ORG_TOP:"\uc870\uc9c1 \uacbd\ub85c",SHARED_TITLE:"\uacf5\uc720",SECUREDOC_TITLE:"\ubcf4\uc548\ubb38\uc11c",PERM_NO_FOLDER:"\ucd94\uac00 \uac00\ub2a5\ud55c \ud3f4\ub354\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",PERM_NO_USER:"\ucd94\uac00 \uac00\ub2a5\ud55c \uc0ac\uc6a9\uc790\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",PERM_FOLDER_INPUT:"\ud3f4\ub354\uad8c\ud55c \ucd94\uac00",PERM_USER_INPUT:"\uc0ac\uc6a9\uc790\uad8c\ud55c \ucd94\uac00",PERM_READ:"\uc77d\uae30\uc804\uc6a9",PERM_READ_WRITE:"\uc4f0\uae30\ud5c8\uc6a9",PERM_TRASH:"\ud734\uc9c0\ud1b5",PERM_TRASH_POSSIBLE:"\ud734\uc9c0\ud1b5 \uc601\uad6c\uc0ad\uc81c \uac00\ub2a5",PERM_TRASH_IMPOSSIBLE:"\ud734\uc9c0\ud1b5 \uc601\uad6c\uc0ad\uc81c \ubd88\uac00\ub2a5",PERM_FILE:"\ud30c\uc77c\uad8c\ud55c",PERM_NONE:"\uc228\uae40",PERM_NOT_NONE:"\ub178\ucd9c",PERM_DELETE:"\uad8c\ud55c\uc0ad\uc81c",PERM_FILE_DELETE:"\uc0ad\uc81c\uad8c\ud55c",PERM_FILE_DELETE_POSSIBLE:"\ud30c\uc77c\uc0ad\uc81c \uac00\ub2a5",PERM_FILE_DELETE_IMPOSSIBLE:"\ud30c\uc77c\uc0ad\uc81c \ubd88\uac00\ub2a5",PERM_INPUT_TEXT:"\uc0ac\uc6a9\uc790 \uac80\uc0c9",PERM_FOLDER_TITLE:"\ud3f4\ub354\uad8c\ud55c \ucd94\uac00",NO_USER:"\uc0ac\uc6a9\uc790\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",USER_TOTP_TITLE:"\uc0ac\uc6a9\uc790 TOTP \ucd08\uae30\ud654",USER_TOTP_CONTENT:"\uc0ac\uc6a9\uc790\uc758 TOTP\uc815\ubcf4\ub97c \ucd08\uae30\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DELETE_FOLDER_TITLE:"\ud3f4\ub354 \uc0ad\uc81c",DELETE_CONTENT_USER:"\uc0ac\uc6a9\uc790\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DELETE_CONTENT_FOLDER:"\ud3f4\ub354\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",MULTIPLE_LOGINS:"\uc911\ubcf5\ub85c\uadf8\uc778",USER_DELETE_CONTENT_1:"\uc0ad\uc81c\ud558\ub294 \uc0ac\uc6a9\uc790\uc758 \uac1c\uc778\ud3f4\ub354 \ubc0f \uc218\uc9d1\ud3f4\ub354\ub97c \ud2b9\uc815 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc774\ub3d9\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4",USER_DELETE_CONTENT_2:"\uc0ad\uc81c\ud558\ub294 \uc0ac\uc6a9\uc790\uc758 \ud3f4\ub354 \ubc0f \ud30c\uc77c\uc744 \ubc1b\uc744 \uc0ac\uc6a9\uc790\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.(\ubbf8\uc9c0\uc815\uc2dc \ud3f4\ub354 \ubc0f \ud30c\uc77c\uc740 \uc644\uc804\uc0ad\uc81c \ub429\ub2c8\ub2e4",USER_DELETE_CONTENT_3:"\uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\uc790\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",USER_MENU_1:"\uc554\ud638 \uc7ac\uc124\uc815",USER_MENU_2:"\uc885\uc774\uc554\ud638 \uc0dd\uc131",USER_MENU_3:"TOTP\ud574\uc81c",USER_MESSAGE_1:"\uc0ac\uc6a9\uc790 \ucd94\uac00 \uc644\ub8cc",USER_MESSAGE_2:"\uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_4:"\uc774\ub984\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_5:"\uc774\uba54\uc77c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_6:"\uc811\uadfc\ub808\ubca8\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_7:"\uc554\ud638\ub97c \uc7ac\uc124\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_8:"TOTP\uc815\ubcf4\ub97c \ucd08\uae30\ud654\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_9:"\uc0ac\uc6a9\uc790 \uc0ad\uc81c \uc644\ub8cc",USER_MESSAGE_10:"\uc778\uc0ac\uc5f0\ub3d9\uc5d0\uc11c \uc81c\uc678\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_11:"\uc778\uc0ac\uc5f0\ub3d9\uc5d0 \ud3ec\ud568\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_12:"\uc218\ub3d9 \ub4f1\ub85d \uc0ac\uc6a9\uc790\ub97c \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_13:"\uc911\ubcf5 \ub85c\uadf8\uc778\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_14:"\uac1c\uc778\ud3f4\ub354 \ubc18\ucd9c \uc815\ucc45\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_15:"\uc870\uc9c1\ud3f4\ub354 \ubc18\ucd9c \uc815\ucc45\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_16:"\uacc4\uc815 \uc7a0\uae08\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_1:"\uad00\ub9ac\uc790 \uacc4\uc815\uc740 \uc0ad\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_2:"\uc0ad\uc81c\uc2e4\ud328",USER_ERROR_MESSAGE_3:"\uc544\uc774\ub514\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_4:"\uc774\ub984\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_5:"\uc554\ud638\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_6:"\uc554\ud638(\ud655\uc778)\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_7:"\uc554\ud638\uac00 \uc77c\uce58\ud558\uc9c0\uc54a\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_8:"\uc774\ubbf8 \uc0ac\uc6a9\uc911\uc774 \uc544\uc774\ub514\uc785\ub2c8\ub2e4",USER_ERROR_MESSAGE_9:"\uc544\uc774\ub514\ub294 30\uc790\ub9ac \uc774\ud558\ub85c\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_10:"\uc0ac\uc6a9\uc790 \ub77c\uc774\uc13c\uc2a4\uac00 \ubd80\uc871\ud569\ub2c8\ub2e4",USER_ERROR_MESSAGE_11:"\uc774\ub984\uc740 30\uc790\ub9ac \uc774\ud558\ub85c\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_12:"\uc0ac\uc6a9\uc790\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_13:"\uc81c\ud488 \uc0ac\uc6a9\uae30\uac04\uc774 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_14:"\ud3f4\ub354\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694",USER_ERROR_MESSAGE_16:"\uc554\ud638 \uc7ac\uc124\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_17:"\uc885\uc774\uc554\ud638 \uc0dd\uc131 \uc2e4\ud328",USER_ERROR_MESSAGE_18:"TOTP\ucd08\uae30\ud654\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_19:"\uc0ac\uc6a9 \uc911\uc778 \uc0ac\uc6a9\uc790\ub294 \uc0ad\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_20:"\uc218\ub3d9 \ub4f1\ub85d \uc0ac\uc6a9\uc790\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",USER_ERROR_MESSAGE_21:"1\uac1c\uc758 \uc0ac\uc6a9\uc790\ub9cc \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",PATTERN_ERROR_MESSAGE:"'\\', '\"', '/', ':', '?', '*', '<', '>', '|'\ub294 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",RESET_PASSWORD_TITLE:"\uc758 \uc554\ud638\ub97c \ubcc0\uacbd\ud569\ub2c8\ub2e4",RESET_PASSWORD_CONTENT:"\uc554\ud638\ub97c \uc7ac\uc124\uc815\ud569\ub2c8\ub2e4. \uc7ac\uc124\uc815\ub41c \uc554\ud638\ub85c \ub85c\uadf8\uc778 \ud6c4 \uc0c8\ub85c\uc6b4 \uc554\ud638\ub85c \ubcc0\uacbd\ud574\uc57c \ud569\ub2c8\ub2e4",RESET_PASSWORD_ERROR_MESSAGE_1:"\uc2e0\uaddc \uc554\ud638\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",RESET_PASSWORD_ERROR_MESSAGE_2:"\uc2e0\uaddc \uc554\ud638(\ud655\uc778)\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",RESET_PASSWORD_ERROR_MESSAGE_3:"\uc554\ud638\uac00 \uc77c\uce58\ud558\uc9c0\uc54a\uc2b5\ub2c8\ub2e4",RESET_NEW_PASSWORD:"\uc2e0\uaddc \uc554\ud638",RESET_NEW_PASSWORD_CONFRIM:"\uc2e0\uaddc \uc554\ud638(\ud655\uc778)",PERM_MESSAGE_1:"\uad8c\ud55c\uc218\uc815\uc644\ub8cc",PERM_MESSAGE_2:"\uad8c\ud55c\uc81c\uac70\uc644\ub8cc",PERM_ERROR_MESSAGE_1:"\uad8c\ud55c\uc218\uc815\uc2e4\ud328",PERM_ERROR_MESSAGE_2:"\uad8c\ud55c\uc81c\uac70\uc2e4\ud328",PERM_ERROR_MESSAGE_3:"\ud3f4\ub354\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694",PERM_ERROR_MESSAGE_4:"\uc911\ubcf5\ub418\ub294 \uad00\ub9ac\uc790 \uc6b0\uc120\uc21c\uc704\uac00 \uc788\uc2b5\ub2c8\ub2e4",PERM_ERROR_MESSAGE_5:"\uac1c\uc778/\uc218\uc9d1 \ud3f4\ub354\ub294 \uc81c\uac70 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",PERM_ERROR_MESSAGE_6:'\uc870\uc9c1\uc73c\ub85c \ucd94\uac00\ub41c \uad8c\ud55c\uc785\ub2c8\ub2e4. "\uacf5\uc720"\uc5d0\uc11c \uc870\uc9c1\uc744 \uc81c\uac70\ud574 \uc8fc\uc138\uc694',ORG_MANAGER:"\uc870\uc9c1\uad00\ub9ac\uc790",ORG_SUB_MANAGER:"\ud558\uc704\uc870\uc9c1\uad00\ub9ac\uc790",SHARED_MESSAGE_1:"\uacf5\uc720\ud3f4\ub354 \uc0ad\uc81c \uc644\ub8cc",ORG_MESSAGE_1:"\uc870\uc9c1 \uc0ad\uc81c \uc644\ub8cc",ORG_ERROR_MESSAGE_1:"\uc870\uc9c1 \uc0ad\uc81c \uc2e4\ud328",ORG_ERROR_MESSAGE_2:"\uc870\uc9c1\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",SHARED_ERROR_MESSAGE_1:"\uacf5\uc720\ud3f4\ub354 \uc0ad\uc81c \uc2e4\ud328",SHARED_ERROR_MESSAGE_2:"\uacf5\uc720\ud3f4\ub354 \ucd94\uac00\uc644\ub8cc",FOLDER_ERROR_MESSAGE_1:"\ud3f4\ub354\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",FOLDER_ERROR_MESSAGE_2:"\uc774\ubbf8 \uc0ac\uc6a9\uc911\uc778 \ud3f4\ub354\uba85\uc785\ub2c8\ub2e4",FOLDER_ERROR_MESSAGE_3:"30\uc790\ub9ac \uc774\ud558\ub9cc \uc785\ub825 \uac00\ub2a5\ud569\ub2c8\ub2e4",FOLDER_ERROR_MESSAGE_4:"\ucd5c\uc0c1\uc704\ud3f4\ub354\ub294 \uad8c\ud55c\ucd94\uac00\uac00 \uc548\ub429\ub2c8\ub2e4",FOLDER_ERROR_MESSAGE_5:"\uc870\uc9c1\uacf5\uc720\ud3f4\ub354\ub294 \ub4f1\ub85d\ud55c \uc0ac\uc6a9\uc790\uac00 \uc9c1\uc811 \ud574\uc81c\ud574\uc57c\ud569\ub2c8\ub2e4",RESTORE_TEMP:"\uc784\uc2dc\ubcf5\uc6d0",RESTORE_TEMP_PROCESSING:"\uc784\uc2dc\ubcf5\uc6d0 \uc911",RESTORE_TEMP_FINISH:"\uc784\uc2dc\ubcf5\uc6d0 \uc885\ub8cc",RESTORE_TITLE:"\ubcf5\uc6d0\uc744 \uc2dc\uc791\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",RESTORE_MESSAGE_1:"\uc624\ub298 \ubcc0\uacbd \ub41c \ub0b4\uc6a9\uc744 \ubb34\ud6a8\ud654 \ud569\ub2c8\ub2e4",RESTORE_MESSAGE_2:"\uc784\uc2dc\ubcf5\uc6d0\uc744 \uc885\ub8cc\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",RESTORE_MESSAGE_3:"\ubcf5\uc6d0\uc744 \uc2dc\uc791\ud558\uc2dc\ub824\uba74 '\ubcf5\uc6d0\uc2dc\uc791' \uc744 \uc785\ub825\ud55c \ud6c4 \ud655\uc778\uc744 \ub20c\ub7ec\uc8fc\uc138\uc694",RESTORE_MESSAGE_4:"\uc120\ud0dd\ud55c \uc2dc\uac04 \uc774\ud6c4 \ub0b4\uc6a9\uc744 \ubb34\ud6a8\ud654 \ud569\ub2c8\ub2e4",RESTORE_MESSAGE_5:"\uc774\ud6c4 \ub0b4\uc6a9\uc744 \ubb34\ud6a8\ud654 \ud558\uc2dc\uac9f\uc2b5\ub2c8\uae4c?",RESTORE_MESSAGE_6:"\uc784\uc2dc\ubcf5\uc6d0 \ub610\ub294 \ubcf5\uc6d0 \uc911 \ud558\ub098\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",RESTORE_MESSAGE_7:"\ubcf5\uc6d0\uc911\uc5d0\ub294 \ubcc0\uacbd\uc774 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4",RESTORE_MESSAGE_8:"\uc784\uc2dc\ubcf5\uc6d0 \uc911\uc785\ub2c8\ub2e4",RESTORE_MESSAGE_9:"\ubb34\ud6a8\ud654 \ud560 \uc2dc\uac04",RESTORE_ERROR_MESSAGE_1:"\ud655\uc778\ubb38\uad6c\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",RESTORE_ERROR_MESSAGE_2:"\ud655\uc778\ubb38\uad6c\uac00 \ub2e4\ub985\ub2c8\ub2e4",RESTORE_ERROR_MESSAGE_3:"\uc784\uc2dc\ubcf5\uc6d0 \ubaa8\ub4dc\uac00 \uc815\ud655\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",RESTORE_ERROR_MESSAGE_4:"\uc784\uc2dc\ubcf5\uc6d0\uc2e4\ud589\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",RESTORE_ERROR_MESSAGE_5:"\uc784\uc2dc\ubcf5\uc6d0\uc885\ub8cc\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",RESTORE_ERROR_MESSAGE_6:"\ubcf5\uc6d0 \ubaa8\ub4dc\uac00 \uc815\ud655\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",RESTORE:"\uc790\ub8cc \ubcf5\uc6d0",RESTORE_SUB_TITLE:"\ubcf5\uc6d0 \uc2dc\uc810",RESTORE_MODE:"\ubaa8\ub4dc",RESTORE_MODE_TODAY:"\uc624\ub298",RESTORE_MODE_HOUR:"\uc2dc\uac04",RESTORE_MODE_DAY:"\uae30\uac04",RESTORE_HOUR:"\ubcf5\uc6d0 \uc2dc\uac04",RESTORE_NOW:"\ucd5c\uadfc",RESTORE_HOUR_BEFORE:"\uc2dc\uac04 \uc804",RESTORE_TODAY:"\uae08\uc77c \ubcc0\uacbd \ub0b4\uc6a9 \ubb34\ud6a8\ud654",RESTORE_ONE_TIME:"\ud2b9\uc815\uc2dc\uac04 \uc774\ud6c4 \ubcc0\uacbd \uc0ac\ud56d \ubb34\ud6a8\ud654",RESTORE_DAY:"\uae30\uac04\uc124\uc815",RESTORE_ONE_DAY:"\ud2b9\uc815\uc77c",RESTORE_TEMP_CHANGING:"\uc784\uc2dc\ubcf5\uc6d0 \ud30c\uc77c \uc804\ud658 \uc911",RESTORE_CHANGING:"\uc804\ud658 \uc911",SECUREDOC:"\ubcf4\uc548\ubb38\uc11c",SECUREDOC_READFILE:"\uc5f4\ub78c\uc6a9\ubb38\uc11c",SECUREDOC_RELEASE_TITLE:"\ubcf4\uc548\ubb38\uc11c \ud574\uc81c",SECUREDOC_RELEASE_CONTENT:"\ubcf4\uc548\ubb38\uc11c\ub97c \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",SECUREDOC_DOCID:"\ubb38\uc11c\ubc88\ud638",SECUREDOC_TYPE:"\ubb38\uc11c\uc885\ub958",SECUREDOC_PATH:"\ubb38\uc11c",SECUREDOC_MESSAGE_1:"\ubcf4\uc548\ubb38\uc11c \uc811\uadfc\uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",SECUREDOC_MESSAGE_2:"\ubcf4\uc548\ubb38\uc11c \ub808\ubca8\uc744 \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",SECUREDOC_MESSAGE_3:"\ubcf4\uc548\ubb38\uc11c \ud574\uc81c \uc644\ub8cc",SECUREDOC_ERROR_MESSAGE_1:"\ubcf4\uc548\ubb38\uc11c \uc815\ubcf4 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",SECUREDOC_ERROR_MESSAGE_2:"\ubcf4\uc548\ubb38\uc11c \ud574\uc81c\uc5d0 \uc2e4\ud328",SERVER_SETTING:"\uae30\ud0c0",SETTING:"\uc124\uc815",SAVED:"\uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4",FACTORY_RESET:"\uacf5\uc7a5 \ucd08\uae30\ud654",RESET:"\ucd08\uae30\ud654",FACTORY_RESET_CONFIRM:"\uacf5\uc7a5 \ucd08\uae30\ud654\ub97c \uc9c4\ud589\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",FACTORY_RESET_MESSAGE:"\uacf5\uc7a5 \ucd08\uae30\ud654 \ud6c4 \uad00\ub9ac\uc790 \uc0dd\uc131 \ud654\uba74\uc73c\ub85c \uc774\ub3d9\ub429\ub2c8\ub2e4",FACTORY_RESET_FAILED:"\uacf5\uc7a5 \ucd08\uae30\ud654 \uc2e4\ud328",DEFAULT_SETTING:"\uae30\ubcf8",WEBLINK_SETTING:"\uc6f9 \ub9c1\ud06c",WEBLINK_USED:"\uc6f9 \ub9c1\ud06c \uc11c\ube44\uc2a4 \uc0ac\uc6a9",WEBLINK_SERVICE_PORT:"\uc6f9 \ub9c1\ud06c \uc11c\ube44\uc2a4 \ud3ec\ud2b8",WEBLINK_SERVICE_ADDR:"\uc6f9 \ub9c1\ud06c \uc11c\ube44\uc2a4 \uc8fc\uc18c",FOLDER_SIZE_SETTING:"\ud3f4\ub354\ubcc4 \uc6a9\ub7c9",PRIVATEFOLDER_SIZE:"\uc0ac\uc6a9\uc790 \ud3f4\ub354 \uc6a9\ub7c9",COLLECTFOLDER_SIZE:"\uc218\uc9d1 \ud3f4\ub354 \uc6a9\ub7c9",SHAREDFOLDER_SIZE:"\uacf5\uc720 \ud3f4\ub354 \uc6a9\ub7c9",ORGFOLDER_SIZE:"\uc870\uc9c1 \ud3f4\ub354 \uc6a9\ub7c9",FOLDER_SIZE_HELP_TEXT:"0\uc77c \uacbd\uc6b0 \ubb34\uc81c\ud55c",COLLECT_GLOBAL_SETTING:"\uc218\uc9d1\uae30",COLLECT_PRIVATE_SETTING:"\uc0ac\uc6a9\uc790\ubcc4 \uc218\uc9d1",COLLECT_USE:"\ubb38\uc11c \ub3d9\uae30\ud654",COLLECT_USED:"\ubb38\uc11c \ub3d9\uae30\ud654 \uc801\uc6a9",COLLECT_NOT_USE:"\ubb38\uc11c \ub3d9\uae30\ud654 \ubbf8\uc801\uc6a9",COLLECT_USE_FULL_SCAN:"\uae30\uc874\ubb38\uc11c \uc218\uc9d1",COLLECT_USE_FULL_SCAN_MANAGEMENT:"\uae30\uc874\ubb38\uc11c \uc7ac\ub3d9\uae30\ud654",COLLECT_USED_FULL_SCAN:"\uae30\uc874\ubb38\uc11c \ub3d9\uae30\ud654 \uc801\uc6a9",COLLECT_NOT_USED_FULL_SCAN:"\uae30\uc874\ubb38\uc11c \ub3d9\uae30\ud654 \ubbf8\uc801\uc6a9",COLLECT_USE_REMOVE_SOURCE:"\uc6d0\ubcf8 \uc0ad\uc81c",COLLECT_USED_REMOVE_SOURCE:"\ubb38\uc11c \uc774\ub3d9 \uc801\uc6a9",COLLECT_NOT_USED_REMOVE_SOURCE:"\ubb38\uc11c \uc774\ub3d9 \ubbf8\uc801\uc6a9",COLLECT_SYNC_REMOVE:"\uc0ad\uc81c \ud30c\uc77c \ub3d9\uae30\ud654 \uc0ac\uc6a9",COLLECT_PATH_SETTING:"\uc218\uc9d1 \uacbd\ub85c",INCLUSIVE:"\uc9c0\uc815\ud55c \uacbd\ub85c\ub9cc \uc218\uc9d1",EXCLUSIVE:"\uc9c0\uc815\ud55c \uacbd\ub85c\ub97c \uc81c\uc678\ud55c \uc804\uccb4 \uc218\uc9d1",COLLECT_EXCLUSIVE_EXT_SETTING:"\ud655\uc7a5\uc790 \uc815\ucc45",COLLECT_EXCLUSIVE_EXT_SETTING_HELP_TEXT:"\ud655\uc7a5\uc790 \uc9c0\uc815 \ubc29\uc2dd\uc73c\ub85c \uc124\uc815\ud55c \ud655\uc7a5\uc790\ub294 \ub79c\uc12c\uc6e8\uc5b4 \uac10\uc9c0\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud655\uc7a5\uc790 \uc81c\uc678 \ubc29\uc2dd\uc758 \uacbd\uc6b0 \ub79c\uc12c\uc6e8\uc5b4 \uac10\uc9c0\uc5d0 \uc0ac\uc6a9\ud560 \ud655\uc7a5\uc790\ub97c \ubcc4\ub3c4\ub85c \uc9c0\uc815\ud574\uc57c \ud569\ub2c8\ub2e4",INCLUSIVE_EXT:"\uc9c0\uc815\ub41c \ud655\uc7a5\uc790\ub9cc \uc218\uc9d1",EXCLUSIVE_EXT:"\uc9c0\uc815\ud55c \ud655\uc7a5\uc790 \uc81c\uc678\ud558\uace0 \uc218\uc9d1",COLLECT_EXCLUSIVE_EXT:"\uc218\uc9d1 \uc81c\uc678 \ud655\uc7a5\uc790",COLLECT_EXT:"\uc9c0\uc815 \ud655\uc7a5\uc790",RANSOMWARE_EXT:"\ub79c\uc12c\uc6e8\uc5b4 \uac10\uc9c0 \ud655\uc7a5\uc790",COLLECT_IGNORE:"\uc218\uc9d1 \uc81c\uc678 \uacbd\ub85c",COLLECT_INCLUSIVE:"\uc218\uc9d1 \ub300\uc0c1 \uacbd\ub85c",COLLECT_MESSAGE_1:"\uc124\uc815\uc744 \uc801\uc6a9\ud558\uc600\uc2b5\ub2c8\ub2e4",COLLECTOR_TRANSFER_SIZE:"\uc218\uc9d1 \ud30c\uc77c \uc5c5\ub85c\ub4dc \ud06c\uae30",COLLECTOR_INTERVAL_TRANSFER:"\uc218\uc9d1 \ud30c\uc77c \uc804\uc1a1 \ub300\uae30 \uc2dc\uac04",COLLECTOR_INTERVAL_TRANSFER_HELP_TEXT:"\uc218\uc9d1 \ud30c\uc77c \uc5c5\ub85c\ub4dc \ud06c\uae30\ub9cc\ud07c \uc5c5\ub85c\ub4dc \ud6c4 \ub300\uae30\uc2dc\uac04",COLLECT_ALL_USE:"\uc804\uccb4 \uc0ac\uc6a9",COLLECT_ALL_UNUSED:"\uc804\uccb4 \ubbf8\uc0ac\uc6a9",COLLECT_ALL_APPLY:"\uc804\uccb4 \uc801\uc6a9",COLLECT_ALL_UNAPPLIED:"\uc804\uccb4 \ubbf8\uc801\uc6a9",COLLECT_FULL_SCAN_STATUS:"\uc218\uc9d1 \uc0c1\ud0dc",COLLECT_FULL_SCAN_RESTART:"\uc7ac\uc218\uc9d1",COLLECT_FULL_SCAN_PRESCANNED_FOLDERS:"\uc218\uc9d1\ub300\uc0c1 \ud3f4\ub354",COLLECT_FULL_SCAN_PENDING_FOLDERS:"\ub0a8\uc740 \ud3f4\ub354",COLLECT_FULL_SCAN_PENDING_FILES:"\ub0a8\uc740 \ud30c\uc77c",COLLECT_FULL_SCAN_REQUEST_AT:"\uc7ac\uc218\uc9d1 \uc694\uccad\uc77c",COLLECT_FULL_PRESCAN_FINISHED_AT:"\ud3f4\ub354 \ud0d0\uc0c9 \uc644\ub8cc \uc2dc\uac04",COLLECT_FULL_SCAN_FINISHED_AT:"\ud0d0\uc0c9 \uc644\ub8cc \uc2dc\uac04",COLLECT_FULL_SCAN_STATUS_NONE:"\ubbf8\uc801\uc6a9",COLLECT_FULL_SCAN_STATUS_STARTED:"\ud0d0\uc0c9\uc911",COLLECT_FULL_SCAN_STATUS_PRESCANED:"\uc218\uc9d1\uc911",COLLECT_FULL_SCAN_STATUS_FINISHED:"\uc218\uc9d1 \uc644\ub8cc",EXTERNAL_SETTING:"\uc678\ubd80\uc811\uc18d",EXTERNAL_USED:"\uc678\ubd80\uc811\uc18d \uc0ac\uc6a9",EXTERNAL_SERVERNAME:"\uc678\ubd80\uc811\uc18d\uc2dc \uc0ac\uc6a9 \uc11c\ubc84\uba85",EXTERNAL_MESSAGE:"\uc678\ubd80\uc811\uc18d \uc124\uc815 \uc644\ub8cc",EXTERNAL_ERROR_MESSAGE_1:"\uc601\ubb38/\uc22b\uc790\ub9cc \uac00\ub2a5\ud569\ub2c8\ub2e4",EXTERNAL_ERROR_MESSAGE_2:"\uc678\ubd80\uc811\uc18d\uc2dc \uc0ac\uc6a9 \uc11c\ubc84\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",EXTERNAL_ERROR_MESSAGE_3:"\ubbf8\uc0ac\uc6a9\uc2dc \uc11c\ubc84\uba85 \ubcc0\uacbd\uc774 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4",EXTERNAL_ERROR_MESSAGE_4:"\uc678\ubd80\uc811\uc18d \uc124\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",EXTERNAL_ERROR_MESSAGE_5:"\uc774\ubbf8\uc0ac\uc6a9\uc911\uc778 \uc11c\ubc84\uba85\uc785\ub2c8\ub2e4",EXTERNAL_ERROR_MESSAGE_6:"\ubcc0\uacbd\ub0b4\uc6a9\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",SETTING_BACKUP_KEEPDAY:"\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218",SETTING_DEFAULT_VOLUME_LABEL:"\uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \uc774\ub984",SETTING_SAMBA_PORT_USE:"SAMBA \uae30\ubcf8\ud3ec\ud2b8 \uc0ac\uc6a9",SETTING_SAMBA_PORT_USE_HINT:"445\ud3ec\ud2b8\uc758 \uc0ac\uc6a9 \uc5ec\ubd80. \u2018\ub85c\uceec \ud30c\uc77c \uacf5\uc720\u2019\ub97c \uc0ac\uc6a9\ud558\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc788\ub294 \uacbd\uc6b0 \ud65c\uc131\ud654 \ud574\uc57c \ud569\ub2c8\ub2e4",SETTING_TWO_FACTOR_AUTH:"2\ucc28 \uc778\uc99d \uac15\uc81c \uc0ac\uc6a9",SETTING_DISABLE_TWO_FACTOR_AUTH:"2\ucc28 \uc778\uc99d \ube44\ud65c\uc131\ud654",SETTING_NO_SHELL_MENU:"Context menu \uc228\uae40",SETTING_STRONG_PASSWORD:"\uac15\ub825\ud55c \ub85c\uadf8\uc778 \uc554\ud638 \uc0ac\uc6a9",SETTING_STRONG_PASSWORD_HINT:"\uc0ac\uc6a9\uc790\uac00 \ub2e8\uc21c\ud55c \uc554\ud638\ub97c \uc0ac\uc6a9\ud558\uc9c0 \ubabb\ud569\ub2c8\ub2e4. \ucd5c\uc18c \ud558\ub098\uc758 \ub300\ubb38\uc790, \uc18c\ubb38\uc790, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\ub97c \uac01\uac01 \ud3ec\ud568\ud558\ub294 \ucd5c\uc18c 8\uc790\ub9ac\uc758 \uc554\ud638\ub97c \uc0dd\uc131 \ud574\uc57c\ud55c\ub2e4",SETTING_UPDATE:"\uc5c5\ub370\uc774\ud2b8",SETTING_UPDATE_MESSAGE_1:"\uc5c5\ub370\uc774\ud2b8\ud30c\uc77c\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc11c\ubc84\ud30c\uc77c\uc758 \uacbd\uc6b0 \uc11c\ubc84 \uc7ac\uc2dc\uc791 \ud6c4 \uc801\uc6a9\ub429\ub2c8\ub2e4",SETTING_UPDATE_ERROR_MESSAGE_1:"\uc815\uc0c1\uc801\uc778 \uc5c5\ub85c\ub4dc \ud30c\uc77c\uc774 \uc544\ub2d9\ub2c8\ub2e4",SETTING_UPDATE_ERROR_MESSAGE_2:"\ud604\uc7ac \ubc84\uc804\ubcf4\ub2e4 \ud558\uc704 \ubc84\uc804\uc785\ub2c8\ub2e4",SETTING_UPDATE_ERROR_MESSAGE_3:"\uc5c5\ub370\uc774\ud2b8\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",SETTING_PII_DETECT:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c",SETTING_PII_DETECT_ENABLE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \uc0ac\uc6a9",SETTING_PII_DETECT_OCR:"\uc774\ubbf8\uc9c0 \ud30c\uc77c\uc5d0 \ub300\ud574 \uac1c\uc778\uc815\ubcf4 \uac80\ucd9c",SETTING_DUP_DETECT_ENABLE:"\uc911\ubcf5 \ubb38\uc11c \uad00\ub9ac \uc0ac\uc6a9",SETTING_RANSOMWARE_DETECT_USE:"\ub79c\uc12c\uc6e8\uc5b4 \uac10\uc9c0",SETTING_SECURE_DOCUMENT_USE:"\ubcf4\uc548\ubb38\uc11c",SETTING_MIN_SMB_VERSION:"\uc811\uc18d \uac00\ub2a5\ud55c SMB \ud504\ub85c\ud1a0\ucf5c \ucd5c\uc18c \ubc84\uc804",SETTING_SMB_ENCRYPTION:"SMB \ud328\ud0b7 \uc554\ud638\ud654 \uc0ac\uc6a9",SETTING_SMB_ENCRYPTION_HELP_TEXT:"SMB \ud328\ud0b7\uc744 \uc554\ud638\ud654\ud558\uc5ec \uc1a1\uc218\uc2e0\ud569\ub2c8\ub2e4. \uc678\ubd80\uc5d0\uc11c VPN \ub4f1 \ubcf4\uc548\uc774 \uac15\ud654\ub41c \ub124\ud2b8\uc6cc\ud06c\uac00 \uc544\ub2cc \ud658\uacbd\uc5d0\uc11c \ub370\uc774\ud130 \uc720\ucd9c\uc744 \ubc29\uc9c0\ud560 \uc218 \uc788\uc73c\uba70 \ub124\ud2b8\uc6cc\ud06c \ud1b5\uc2e0 \uc18d\ub3c4\uac00 \uc57d\uac04 \uac10\uc18c\ud569\ub2c8\ub2e4",DOWNLOAD:"\ub2e4\uc6b4\ub85c\ub4dc",DOWNLOAD_CLIENT:"\ud074\ub77c\uc774\uc5b8\ud2b8 \ub2e4\uc6b4\ub85c\ub4dc",EXPIRE_AT:"\ub9cc\ub8cc\uc77c",LICENSES_TITLE:"\ub77c\uc774\uc13c\uc2a4 \uc815\ubcf4",USER_LICENSES:"\ucd5c\ub300 \uc0ac\uc6a9\uc790\uc218",MAINTENANCE_AT:"\uc720\uc9c0\ubcf4\uc218 \uae30\ud55c",PRODUCTKEY_STATE:"\uc81c\ud488\ud0a4 \uc0c1\ud0dc",INVALID:"\ube44\uc815\uc0c1",VALID:"\uc815\uc0c1",SEEDKEY:"\uc2dc\ub4dc\ud0a4",COPY:"\ubcf5\uc0ac",SEEDKEY_COPY:"\uc2dc\ub4dc\ud0a4 \ubcf5\uc0ac",WEBLINK_ERROR_MESSAGE_1:"\ub2e4\uc6b4\ub85c\ub4dc \uac00\ub2a5 \ud69f\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_ERROR_MESSAGE_2:"\ub2e4\uc6b4\ub85c\ub4dc \ub9c1\ud06c\uac00 \ud65c\uc131\ud654 \ub418\uc5b4\uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",WEBLINK_ERROR_MESSAGE_3:"\ub2e4\uc6b4\ub85c\ub4dc \uac00\ub2a5 \uae30\uac04\uc774 \uc9c0\ub0ac\uc2b5\ub2c8\ub2e4",WEBLINK_ERROR_MESSAGE_4:"\ub2e4\uc6b4\ub85c\ub4dc \ub9c1\ud06c \uc815\ubcf4\uac00 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4. URL\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694.",WEBLINK_ERROR_MESSAGE_5:"\uc554\ud638\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_ERROR_MESSAGE_6:"\uc554\ud638(\ud655\uc778)\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_ERROR_MESSAGE_7:"\uc554\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",WEBLINK_ERROR_MESSAGE_8:"\ub2e4\uc6b4\ub85c\ub4dc \ud69f\uc218 \uc81c\ud55c\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_ERROR_MESSAGE_9:"\ub2e4\uc6b4\ub85c\ub4dc \ud69f\uc218\ub97c \uc22b\uc790\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_ERROR_MESSAGE_10:"\uc6f9 \ub9c1\ud06c\ub97c \ub9cc\ub4e4 \ud30c\uc77c\uc744 \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",NAME_CHANGE:"\uc774\ub984 \ubcc0\uacbd",ORG_CHANGE_MESSAGE:"\uc870\uc9c1\uba85\uc744 \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",SHARED_CHANGE_MESSAGE:"\uacf5\uc720\ud3f4\ub354\uba85\uc744 \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",TRANSFER:"\uc774\uad00",MOVE_ORG_DATA_TITLE:"\ub370\uc774\ud130 \uc774\uad00",SOURCE_ORG_NAME:"\uc6d0\ubcf8 \uc870\uc9c1\ud3f4\ub354",TARGET_ORG_NAME:"\ub300\uc0c1 \uc870\uc9c1\ud3f4\ub354",MOVE_ORG_DATA_MESSAGE_1:"\uc870\uc9c1\ud3f4\ub354 \ub370\uc774\ud130\ub97c \uc774\uad00\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",MOVE_ORG_DATA_MESSAGE_2:"\uc774\uad00\uc744 \uc644\ub8cc\ud558\uc600\uc2b5\ub2c8\ub2e4",MOVE_ORG_DATA_ERROR_MESSAGE_1:"\uc6d0\ubcf8 \uc870\uc9c1\uacfc \ub300\uc0c1\uc870\uc9c1\uc774 \uac19\uc2b5\ub2c8\ub2e4",MOVE_ORG_DATA_ERROR_MESSAGE_2:"\uc774\uad00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",RESTRICT_TITLE:"\uc800\uc7a5 \uc81c\ud55c \ud30c\uc77c",RESTRICT_SIZE_TITLE:"\uc6a9\ub7c9 \uc81c\ud55c",RESTRICT_EXT_TITLE:"\ud655\uc7a5\uc790 \uc81c\ud55c",RESTRICT_EXT_HELP_TEXT:'","\ub85c \uad6c\ubd84\ud558\uc5ec \uc5ec\ub7ec \ud655\uc7a5\uc790\ub97c \uc9c0\uc815\ud560 \uc218 \uc788\ub2e4(\ub300\uc18c\ubb38\uc790 \uad6c\ubd84 \uc548 \ud568)',RESTRICT_EXT_REMOVE:"\ud655\uc7a5\uc790 \uc81c\ud55c \ud30c\uc77c \uc800\uc7a5 \uae08\uc9c0",RESTRICT_EXT_REMOVE_HELP_TEXT:"\ud655\uc7a5\uc790 \uc81c\ud55c \ud30c\uc77c\uc758 \uc800\uc7a5\uc774 \uc989\uc2dc \uc624\ub958\ub85c \ubc18\ud658\ub429\ub2c8\ub2e4. \ubbf8\uc0ac\uc6a9\uc2dc \uc81c\ud55c \ud30c\uc77c\uc744 \uc77c\uc2dc\uc801\uc73c\ub85c \uc800\uc7a5 \ud6c4 \uc77c\uc77c \ubc30\uce58 \uc791\uc5c5\uc5d0 \uc758\ud574 \uc0ad\uc81c\ub429\ub2c8\ub2e4",CURRENT_PASSWORD:"\ud604\uc7ac \uc554\ud638",NEW_PASSWORD:"\uc2e0\uaddc \uc554\ud638",CHANGE_PASSWORD:"\uc554\ud638 \ubcc0\uacbd",SHUTDOWN:"\uc885\ub8cc",SYSTEM_SHUTDOWN:"\uc2dc\uc2a4\ud15c \uc885\ub8cc",SHUTDOWN_MESSAGE_1:"\uc2dc\uc2a4\ud15c\uc744 \uc885\ub8cc\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",SHUTDOWN_MESSAGE_2:"\uc815\uc0c1 \uc885\ub8cc \ub418\uc5c8\uc2b5\ub2c8\ub2e4",NO_USED:"\ubbf8\uc0ac\uc6a9",USAGE:"\uc0ac\uc6a9\ub7c9",GROUP_USAGE:"\uadf8\ub8f9\ubcc4 \uc0ac\uc6a9\ub7c9",REMAINING_CAPACITY:"\ub0a8\uc740 \uc6a9\ub7c9",TOTAL_CAPACITY:"\uc804\uccb4 \uc6a9\ub7c9",ALL:"\uc804\uccb4",DETAIL:"\uc0c1\uc138",ACCESS_TYPE:"\ud30c\uc77c \ub85c\uadf8 \uc885\ub958",ACCESS_TYPE_CREATE:"\uc0dd\uc131",ACCESS_TYPE_READ:"\uc77d\uae30",ACCESS_TYPE_MOVE:"\uc774\ub3d9",ACCESS_TYPE_UPDATE:"\ubcc0\uacbd",ACCESS_TYPE_HOLD:"\uc0ac\uc6a9",ACCESS_TYPE_REMOVE:"\uc0ad\uc81c",ACCESS_TYPE_REMOVE_TRASH:"\ud734\uc9c0\ud1b5",ACCESS_TYPE_RECOVERY_TRASH:"\ud734\uc9c0\ud1b5 \ubcf5\uc6d0",ACCESS_TYPE_PURGE_TRASH:"\uc601\uad6c \uc0ad\uc81c",ACCESS_TYPE_VIEWING:"\uc5f4\ub78c\uc885\ub8cc",ACCESS_TYPE_WEB_CREATE:"\uc5c5\ub85c\ub4dc",ACCESS_TYPE_WEB_DOWNLOAD:"\ub2e4\uc6b4\ub85c\ub4dc",ACCESS_TYPE_COLLECT_FILE:"\uc218\uc9d1",ACCESS_TYPE_START_VIEWING:"\uc5f4\ub78c\uc2dc\uc791",TODAY_AVERAGE_DATA:"\uc2e4\uc2dc\uac04 \ud3c9\uade0 \uc0ac\uc6a9\ub7c9",FILE_LOCATION:"\ud30c\uc77c \uc704\uce58",REGIST_DATE:"\ub4f1\ub85d\uc77c",REGIST_USER:"\ub4f1\ub85d\uc790",RELEASE:"\ud574\uc81c",SECUREDOC_DIALOG_CONTENTS_1:"\uc774 \ubcf4\uc548\ubb38\uc11c\uc5d0 \uc811\uadfc\ud558\ub294\ub370 \ud544\uc694\ud55c \ucd5c\uc18c \ub4f1\uae09",SECUREDOC_DIALOG_CONTENTS_2:"\uc774 \ubcf4\uc548\ubb38\uc11c\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub294 \uc0ac\uc6a9\uc790 \ub9ac\uc2a4\ud2b8",SECUREDOC_DIALOG_CONTENTS_3:"\uc774 \ubb38\uc11c\uc5d0 \uc811\uadfc\uac00\ub2a5\ud55c \ud2b9\uc815 \uc0ac\uc6a9\uc790\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",SECUREDOC_DIALOG_MESSAGE_1:"\ubcf4\uc548\ub4f1\uae09\uc744 \ub0ae\ucd9c \uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",SECUREDOC_DIALOG_MESSAGE_2:"\ud574\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4",SECUREDOC_DIALOG_MESSAGE_3:"\ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4",SECUREDOC_DIALOG_MESSAGE_4:"\ub4f1\ub85d\ub418\uc5c8\uc2b5\ub2c8\ub2e4",DELETE_PERMANENTLY:"\uc601\uad6c \uc0ad\uc81c",NEW_FOLDER:"\uc0c8 \ud3f4\ub354",UPLOAD:"\uc5c5\ub85c\ub4dc",FILE_DOWNLOAD:"\ub0b4\ub824 \ubc1b\uae30",PASTE:"\ubd99\uc5ec\ub123\uae30",SEARCH:"\uac80\uc0c9",SEARCH_ID_NAME:"\uc544\uc774\ub514/\uc774\ub984 \uac80\uc0c9",SELECT_ORG:"\uc870\uc9c1 \uc120\ud0dd",SELECTED_ORG:"\uc870\uc9c1\ud544\ud130 \uc801\uc6a9\uc911",RELEASE_ORG:"\uc870\uc9c1\ud544\ud130 \ud574\uc81c",CUT:"\uc798\ub77c\ub0b4\uae30",REVISION_HISTORY:"\uac1c\uc815 \ub0b4\uc5ed",SEARCH_IN_FOLDER:"\ud3f4\ub354 \ub0b4 \uac80\uc0c9",SEARCH_DELETED_FILE_IN_FOLDER:"\uc0ad\uc81c\ub41c \ud30c\uc77c \uac80\uc0c9",RENAME:"\uc774\ub984 \ubcc0\uacbd",CONTEXT_MESSAGE_1:"\ud2b9\uc218 \ud3f4\ub354 \ucd5c\uc0c1\uc704\uc5d0\ub294 \uc5c5\ub85c\ub4dc \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_2:"\uc9c0\uc815\ud55c \uc774\ub984\uc744 \uac00\uc9c4 \ud3f4\ub354\uac00 \uc774\ubbf8 \uc788\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_3:"\uc774\ub984\uc774 \uac19\uc740 \ud30c\uc77c\uc774 \uc788\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_4:"\uad8c\ud55c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_5:"\uc0dd\uc131\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_6:"\ud55c \uac1c\uc758 \ud30c\uc77c\ub9cc \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",CHANGE_PASSWORD_MESSAGE_1:"\uc554\ud638\ub97c \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",CHANGE_PASSWORD_ERROR_MESSAGE_1:"\uc2e0\uaddc\uc554\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",CHANGE_PASSWORD_ERROR_MESSAGE_2:"\uc2e0\uaddc\uc554\ud638\uac00 \uc774\uc804 \uc554\ud638\uc640 \ub3d9\uc77c\ud569\ub2c8\ub2e4",CHANGE_PASSWORD_ERROR_MESSAGE_3:"\ud604\uc7ac\uc554\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",CHANGE_PASSWORD_ERROR_MESSAGE_4:"\uc554\ud638\ub294 \ucd5c\uc18c\ud55c \ud558\ub098\uc758 \ub300\ubb38\uc790, \ud558\ub098\uc758 \uc18c\ubb38\uc790, \ud558\ub098\uc758 \uc22b\uc790 \ubc0f \ud558\ub098\uc758 \ud2b9\uc218\ubb38\uc790\ub97c \ud3ec\ud568\ud574\uc57c\ud569\ub2c8\ub2e4",FILE_NAME:"\ud30c\uc77c\uba85",FILE_SIZE:"\ud30c\uc77c\ud06c\uae30",FILE_MODIFIED:"\ub9c8\uc9c0\ub9c9 \uc218\uc815\uc77c",REVERT:"\ub418\ub3cc\ub9ac\uae30",REVISION_DELETE:"\uac1c\uc815\ubcf8 \uc0ad\uc81c",REVISION_EMPTY:"\uac1c\uc815\ubcf8\uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",REVISION_DIALOG_MESSAGE_1:"\uac1c\uc815\ubcf8\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694",REVISION_DIALOG_MESSAGE_2:"\ud604\uc7ac \ud30c\uc77c\uc774 \uc9c0\uc815\ub41c \uac1c\uc815\ubcf8\uc73c\ub85c \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4",REVISION_DIALOG_MESSAGE_3:"\ud604\uc7ac \ud30c\uc77c\uc744 \uc120\ud0dd\ub41c \uac1c\uc815\ubcf8\uc73c\ub85c \ub418\ub3cc\ub9ac\uaca0\uc2b5\ub2c8\uae4c?",REVISION_DIALOG_MESSAGE_4:"\uc120\ud0dd\ub41c \uac1c\uc815\ubcf8\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",SEARCH_ALL:"\uc804\uccb4\uac80\uc0c9",SEARCH_BELOW:"\uc544\ub798\uc5d0\uc11c \uac80\uc0c9",SEARCH_STRING:"\uac80\uc0c9\uc5b4",SEARCH_EXCLUSION_STRING:"\uac80\uc0c9 \uc81c\uc678 \ubb38\uc790\uc5f4",SEARCH_EXTS:"\ud655\uc7a5\uc790(\ucf64\ub9c8 ','\ub85c \uad6c\ubd84)",OPTION:"\uc635\uc158",PREFIX:"\uc811\ub450\uc5b4",LIKE:"\ud3ec\ud568",DELETE_DATE:"\uc0ad\uc81c\uc77c",DELETE_USER:"\uc0ad\uc81c\uc790",DELETE_USER_ID:"\uc0ac\uc6a9\uc790 \uc544\uc774\ub514",DELETE_USER_NAME:"\uc0ac\uc6a9\uc790 \uc774\ub984",SEARCH_DIALOG_MESSAGE_1:"\ud30c\uc77c\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",RESTORE_COMPLETE:"\ubcf5\uc6d0\ub418\uc5c8\uc2b5\ub2c8\ub2e4",DELETE_COMPLETE:"\uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4",MAX_CAPACITY:"\uc6a9\ub7c9\uc81c\ud55c",PRIVATE_MAX_CAPACITY:"\uac1c\uc778\ud3f4\ub354 \uc6a9\ub7c9\uc81c\ud55c",COLLECT_MAX_CAPACITY:"\uc218\uc9d1\ud3f4\ub354 \uc6a9\ub7c9\uc81c\ud55c",COLLECT_DRIVE_FIXED:"\uace0\uc815\ud615 \ub514\uc2a4\ud06c(Local Disk)",COLLECT_DRIVE_REMOVABLE:"\uc774\ub3d9\ud615 \ub514\uc2a4\ud06c(USB)",COLLECT_DRIVE_CDROM:"CDROM \ub4dc\ub77c\uc774\ube0c",COLLECT_DRIVE_RAMDISK:"RAM \ub4dc\ub77c\uc774\ube0c",COLLECT_DRIVE_REMOTE:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c",COLLECT_DRIVE_FIXED_HOTPLUG:"USB\uc5f0\uacb0 \uace0\uc815\ud615 \ub514\uc2a4\ud06c",CHANGE_CAPACITY_MESSAGE_1:"\uac1c\uc778\ud3f4\ub354 \uc6a9\ub7c9\uc81c\ud55c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",CHANGE_CAPACITY_MESSAGE_2:"\uc218\uc9d1\ud3f4\ub354 \uc6a9\ub7c9\uc81c\ud55c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",CHANGE_CAPACITY_MESSAGE_3:"\uc6a9\ub7c9\uc81c\ud55c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",CHANGE_CAPACITY_MESSAGE_4:"\ubcc0\uacbd \uc0ac\ud56d\uc774 \ubc18\uc601 \uc911\uc785\ub2c8\ub2e4.",CHANGE_CAPACITY_ERROR_MESSAGE_1:"\uc6a9\ub7c9\uc81c\ud55c\uc744 \ubcc0\uacbd\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PII_DOCUMENTS:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c",PII_NAME:"\uac80\ucd9c \ub300\uc0c1",PII_ELEMENT:"\uac80\ucd9c \uc694\uc18c",DUP_DOCUMENTS:"\uc911\ubcf5 \ubb38\uc11c",DUP_FILE_HASH:"\ud30c\uc77c \ud574\uc2dc",DUP_FILE_PATH:"\ud30c\uc77c \uc704\uce58",WHITE_PROCESS:"\ubcf4\uc548 \ud504\ub85c\uc138\uc2a4",PROCESS:"\ud504\ub85c\uc138\uc2a4",URL:"URL",URL_REGISTRATION:"URL \ub4f1\ub85d",PROCESS_DELETE_TITLE:"\ud504\ub85c\uc138\uc2a4 \uc81c\uac70",URL_DELETE_TITLE:"URL \uc81c\uac70",PROCESS_DELETE_CONTENT:"%s \ud504\ub85c\uc138\uc2a4\ub97c \uc81c\uac70\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",URL_DELETE_CONTENT:"URL(%s)\ub97c \uc81c\uac70\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",PROCESS_APPROVE_TITLE:"\ud504\ub85c\uc138\uc2a4 \uc2b9\uc778",PROCESS_APPROVE_CONTENT:"\ud504\ub85c\uc138\uc2a4\ub97c %s \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",WHITE_URL_MODAL_1:"URL \ub4f1\ub85d",WHITE_URL_MODAL_2:"Chrome Browser\ub97c \ud1b5\ud574 \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\ub294 URL\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4",WHITE_PROCESS_ID:"\uc544\uc774\ub514",WHITE_PROCESS_VERIFY_TYPE:"\uac80\uc99d \ubc29\ubc95",WHITE_PROCESS_PROGRAM_NAME:"\ud504\ub85c\uadf8\ub7a8 \uba85",WHITE_PROCESS_VERIFY_HASH:"\ud30c\uc77c \ud574\uc2dc",WHITE_PROCESS_VERIFY_DIGITAL:"\ub514\uc9c0\ud138 \uc778\uc99d",WHITE_PROCESS_MESSAGE_1:"\ud504\ub85c\uc138\uc2a4\ub97c \uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4",WHITE_PROCESS_MESSAGE_2:"URL\uc744 \uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4",WHITE_PROCESS_MESSAGE_3:"URL\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",WHITE_PROCESS_MESSAGE_4:"\u201chttp://\u201d \ub610\ub294 \u201chttps://\u201d\ub294 \uc0dd\ub7b5\ud558\uace0 \uc785\ub825\ud574 \uc8fc\uc138\uc694",WHITE_PROCESS_ERROR_MESSAGE_1:"\ud504\ub85c\uc138\uc2a4 \uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WHITE_PROCESS_ERROR_MESSAGE_2:"URL \uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WHITE_PROCESS_ERROR_MESSAGE_3:"\uba85\uce6d\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694",WHITE_PROCESS_ERROR_MESSAGE_4:"URL\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694",WHITE_PROCESS_ERROR_MESSAGE_5:"URL\uc744 \ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",SETTING_CENTRALIZED_DOC:"\ubb38\uc11c\uc911\uc559\ud654",ACCESS_CONTROL_USED:"\uc811\uadfc\uc81c\uc5b4 \uae30\ub2a5 \uc0ac\uc6a9",SAVING_CONTROL_USED:"\uc800\uc7a5\uc81c\uc5b4 \uae30\ub2a5 \uc0ac\uc6a9",TRANSFER_ORG:"\uc870\uc9c1\ud3f4\ub354 \uc774\ub3d9",TRANSFER_ORG_MESSAGE_1:"\uc870\uc9c1\ud3f4\ub354\ub97c \uc774\ub3d9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",TRANSFER_ORG_MESSAGE_2:"\uc774\ub3d9 \uc644\ub8cc",TRANSFER_ORG_ERROR_MESSAGE_1:"\uc774\ub3d9 \ub420 \uc0c1\uc704\ud3f4\ub354\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694.",TRANSFER_ORG_ERROR_MESSAGE_2:"\uc774\ub3d9\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",REMOVE_FILE_ERROR_MESSAGE_1:"\uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4. \uad8c\ud55c\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694",FILE_LOG_TITLE:"\ud30c\uc77c \ub85c\uadf8",AUDIT_LOG_TITLE:"\uac10\uc0ac \ub85c\uadf8",DOCUMENT:"\ubb38\uc11c",SETUP_SETTING:"\uc124\uce58\ud30c\uc77c \uc635\uc158",CONNECT_SERVER_ADDRESS:"\uc11c\ubc84 \uc8fc\uc18c",CONNECT_SERVER_PORT:"\uc11c\ubc84 \ud3ec\ud2b8",MAP_MOUNT_DRIVE:"\uae30\ubcf8 \uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \ubb38\uc790",FORCE_MAP_MOUNT_DRIVE:"\uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \ubb38\uc790 \uc7a0\uae08",FORCE_MAP_MOUNT_DRIVE_HINT:"\uc0ac\uc6a9\uc790\uac00 \uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \ubb38\uc790\ub97c \ubcc0\uacbd\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",SILENT_SETUP:"\uc5c5\ub370\uc774\ud2b8 \uc808\ucc28 \uac04\uc18c\ud654",SILENT_SETUP_HINT:"\uc5c5\ub370\uc774\ud2b8 \uc2dc \uc9c4\ud589\uacfc\uc815\ub97c \uc0dd\ub7b5\ud558\uc5ec \uc9c4\ud589\ud55c\ub2e4",VERYSILENT_SETUP:"\uc124\uce58 \ud654\uba74 \uc228\uae40",DISABLE_CONNECT_BUTTON_WEBADMIN:"\uad00\ub9ac\uc790 \ud398\uc774\uc9c0 \uc811\uc18d \ubc84\ud2bc \uc228\uae40 ",AUTO_START:"\uc5c5\ub370\uc774\ud2b8 \ud6c4 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc790\ub3d9 \uc2dc\uc791",DESKTOP_WEB_SUPPORT:"\uc6f9 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc811\uc18d",MOBILE_WEB_SUPPORT:"\ubaa8\ubc14\uc77c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc811\uc18d",INTEGRATED_WITH_AD:"\ud074\ub77c\uc774\uc5b8\ud2b8 AD \uc5f0\ub3d9",COLLECT_INCLUSIVE_NAME:"\uc218\uc9d1 \ud3f4\ub354\uba85",RANSOM_MANAGEMENT:"\ub79c\uc12c\uc6e8\uc5b4 \ud0d0\uc9c0",RANSOMWARE_PATH:"\ub79c\uc12c\uc6e8\uc5b4 \ud504\ub85c\uc138\uc2a4 \uacbd\ub85c",RANSOMWARE_STATUS:"\ucc98\ub9ac \ub0b4\uc5ed",CLIENT_ADDRESS:"\ud074\ub77c\uc774\uc5b8\ud2b8 IP",INFECTED_FILES:"\uac10\uc5fc \ud30c\uc77c",STATUS:"\uc0c1\ud0dc",DETECTED_AT:"\ud0d0\uc9c0\uc77c",START_DATE:"\uc2dc\uc791\uc77c",END_DATE:"\uc885\ub8cc\uc77c",AUDIT_TYPE_ALL:"\uc804\uccb4",AUDIT_TYPE_LOGGED_IN:"\ub85c\uadf8\uc778",AUDIT_TYPE_LOGGED_OFF:"\ub85c\uadf8 \uc544\uc6c3",AUDIT_TYPE_CREATE_USER:"\uc0ac\uc6a9\uc790 \uc0dd\uc131",AUDIT_TYPE_MODIFY_USER:"\uc0ac\uc6a9\uc790 \ubcc0\uacbd",AUDIT_TYPE_MODIFY_PASSWORD:"\uc554\ud638 \ubcc0\uacbd",AUDIT_TYPE_REMOVE_USER:"\uc0ac\uc6a9\uc790 \uc0ad\uc81c",AUDIT_TYPE_CREATE_PAPER_PASSWORD:"\uc885\uc774\uc554\ud638 \uc0dd\uc131",AUDIT_TYPE_CREATE_ORGANIZATION:"\uc870\uc9c1 \uc0dd\uc131",AUDIT_TYPE_RENAME_ORGANIZATION:"\uc870\uc9c1\uba85 \ubcc0\uacbd",AUDIT_TYPE_TRANSFER_ORGANIZATION:"\uc870\uc9c1 \uc774\uad00",AUDIT_TYPE_MOVE_ORGANIZATION_DATA:"\uc870\uc9c1 \uc790\ub8cc \uc774\uad00",AUDIT_TYPE_REMOVE_ORGANIZATION:"\uc870\uc9c1 \uc0ad\uc81c",AUDIT_TYPE_CREATE_SHARED_FOLDER:"\uacf5\uc720\ud3f4\ub354 \uc0dd\uc131",AUDIT_TYPE_RENAME_SHARED_FOLDER:"\uacf5\uc720\ud3f4\ub354\uba85 \ubcc0\uacbd",AUDIT_TYPE_REMOVE_SHARED_FOLDER:"\uacf5\uc720\ud3f4\ub354 \uc0ad\uc81c",AUDIT_TYPE_ADD_FOLDER_PERMISSION:"\ud3f4\ub354 \uad8c\ud55c \ucd94\uac00",AUDIT_TYPE_UPDATE_FOLDER_PERMISSION:"\ud3f4\ub354 \uad8c\ud55c \uac31\uc2e0",AUDIT_TYPE_REMOVE_FOLDER_PERMISSION:"\ud3f4\ub354 \uad8c\ud55c \uc0ad\uc81c",AUDIT_TYPE_CREATE_ORGSHARED_FOLDER:"\uc870\uc9c1\uacf5\uc720\ud3f4\ub354 \uc0dd\uc131",AUDIT_TYPE_REMOVE_ORGSHARED_FOLDER:"\uc870\uc9c1\uacf5\uc720\ud3f4\ub354 \uc0ad\uc81c",AUDIT_TYPE_RESET_FOLDER_PERMISSION:"\ud3f4\ub354 \uad8c\ud55c \ucd08\uae30\ud654",AUDIT_TYPE_REGISTER_SECURED_PROCESS:"\ubcf4\uc548 \ud504\ub85c\uc138\uc2a4 \ub4f1\ub85d",AUDIT_TYPE_UNREGISTER_SECURED_PROCESS:"\ubcf4\uc548 \ud504\ub85c\uc138\uc2a4 \ub4f1\ub85d \ud574\uc81c",AUDIT_TYPE_SYSCONFIG_CHANGED:"SysConfig \ubcc0\uacbd",AUDIT_TYPE_CREATE_SUB_USER:"\uc0ac\uc6a9\uc790 \uc0dd\uc131(\uc911\ubcf5\ub85c\uadf8\uc778)",AUDIT_TYPE_UPDATE_SHATED_FOLDER:"\uacf5\uc720\ud3f4\ub354 \ubcc0\uacbd",AUDIT_TYPE_SET_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uc124\uc815",AUDIT_TYPE_UPDATE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uac31\uc2e0",AUDIT_TYPE_RELEASE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uc81c\uc678",AUDIT_TYPE_SET_PIID_FILE_USER:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uc0ac\uc6a9\uc790 \ub4f1\ub85d",AUDIT_TYPE_RELEASE_PIID_FILE_USER:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uc0ac\uc6a9\uc790 \ud574\uc81c",AUDIT_TYPE_SET_EXCLUDE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uacfc/\uc624\ud0d0 \uc81c\uc678",AUDIT_TYPE_ARCHIVE_COPY:"\ubc18\ucd9c \ud30c\uc77c \ub2e4\uc6b4\ub85c\ub4dc",DIVISION:"\uad6c\ubd84",EXISTING_FILE:"\uae30\uc874 \ud30c\uc77c",NEW_FILE:"\uc2e0\uaddc \ud30c\uc77c(\ub610\ub294 \uc2e4\ud589 \ud504\ub85c\uadf8\ub7a8)",DATE:"\ub0a0\uc9dc",MORE_INFO:"\ucd94\uac00 \uc815\ubcf4",PREVIOUS_INFO:"\uae30\uc874 \uc815\ubcf4",CHANGED_INFO:"\ubcc0\uacbd\ub41c \uc815\ubcf4",AUDIT_TYPE:"\uac10\uc0ac \ub85c\uadf8 \uc885\ub958",NOW_ACCESSLOG:"\uc2e4\uc2dc\uac04 \uc0ac\uc6a9 \ub0b4\uc5ed",DASHBOARD:"\ub300\uc2dc\ubcf4\ub4dc",NOW_FILE_ACCESSLOG:"\ud30c\uc77c \ub85c\uadf8",DESKTOP_WEB_NOT_SUPPORT:"\uc0ac\uc6a9\uc790 \ud398\uc774\uc9c0\ub294 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",PII_SEARCH:"\ud30c\uc77c\uba85 / \ud3f4\ub354\uba85",MANAGE_TYPE_NONE:"\uc77c\ubc18\uc0ac\uc6a9\uc790",MANAGE_PRIORITY:"\uad00\ub9ac\uc790",OSR_ADD_ORG:"\ucd94\uac00\ub420 \uc870\uc9c1",OSR_REMOVE_ORG:"\uc0ad\uc81c\ub420 \uc870\uc9c1",OSR_REMOVE_USER:"\uc0ad\uc81c\ub420 \uc0ac\uc6a9\uc790",OSR_NO_CHANGE:"\uc720\uc9c0",OSR:"\uc778\uc0ac \uc5f0\ub3d9",OSR_CONFIRM_MESSAGE_1:"\uc778\uc0ac \uc5f0\ub3d9\uc744 \uc801\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",OSR_CONFIRM_MESSAGE_2:"\uc778\uc0ac \uc5f0\ub3d9\uc744 \uc801\uc6a9\ud558\uc600\uc2b5\ub2c8\ub2e4",OSR_CONFIRM_MESSAGE_3:"\uc870\uc9c1\ucf54\ub4dc\ub97c \ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DATALEAK_CONTROL:"\ubb38\uc11c \ubc18\ucd9c \ubc29\uc9c0 \uc0ac\uc6a9",DATALEAK_MESSAGE_1:"\ubb38\uc11c \uc720\ucd9c \ubc29\uc9c0 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",DATALEAK_MESSAGE_2:"\uc811\uadfc\uc81c\uc5b4 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",DATALEAK_MESSAGE_3:"\uc800\uc7a5\uc81c\uc5b4 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",TAKEOUT_TITLE:"\ubc18\ucd9c \ubb38\uc11c",TAKEOUT_REQ_AT:"\uc694\uccad\uc77c",TAKEOUT_APP_AT:"\ucc98\ub9ac\uc77c",TAKEOUT_REQUESTER:"\uc694\uccad\uc790",TAKEOUT_APPROVER:"\uc2b9\uc778\uc790",TAKEOUT_REQ_TYPE:"\uc694\uccad \ud0c0\uc785",TAKEOUT_STATUS:"\uc0c1\ud0dc",TAKEOUT_REASON_REQ:"\uc694\uccad \uc0ac\uc720",TAKEOUT_REASON_REJ:"\ubc18\ub824 \uc0ac\uc720",TAKEOUT_FILE_COUNT:"\ubb38\uc11c \uac1c\uc218",TAKEOUT_REQUEST:"\uc694\uccad",TAKEOUT_REQUEST_PENDING:"\ucc98\ub9ac\uc911",TAKEOUT_APPROVED:"\uc2b9\uc778",TAKEOUT_APPROVED_AUTO:"\uc790\ub3d9 \uc2b9\uc778",TAKEOUT_REJECTED:"\uac70\uc808",TAKEOUT_WITHDRAWN:"\uc694\uccad \ucca0\ud68c",TAKEOUT_DOC:"\ubb38\uc11c \ubc18\ucd9c",TAKEOUT_PRINT:"\ud504\ub9b0\ud2b8 \ubc18\ucd9c",TAKEOUT_WEBLINK:"\uc6f9 \ub9c1\ud06c \ubc18\ucd9c",LOCAL_ACCOUNT:"\uc218\ub3d9 \ub4f1\ub85d \uc0ac\uc6a9\uc790",LOCAL_ACCOUNT_HELP:"\u203b\uc778\uc0acDB\uc5d0 \uc788\ub294 \uacc4\uc815\uc740 '\uc544\ub2c8\uc624'\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694. \uc911\ubcf5\uc2dc \uc778\uc0ac\uc5f0\ub3d9\uc5d0 \uc2e4\ud328\ud569\ub2c8\ub2e4",ALLOW_ADMIN_ACCESS_USERS_FOLDERS:"\uad00\ub9ac\uc790 \uacc4\uc815\uc73c\ub85c \ud074\ub77c\uc774\uc5b8\ud2b8 \ub85c\uadf8\uc778 \uac00\ub2a5",ALLOW_ADMIN_ACCESS_USERS_FOLDERS_HINT:"\ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uad00\ub9ac\uc790 \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4",FORCE_SETUP_PERFORM:"\uac15\uc81c \uc5c5\ub370\uc774\ud2b8",FORCE_SETUP_PERFORM_HINT:"\ud074\ub77c\uc774\uc5b8\ud2b8 \ubc84\uc804\uc774 \ucd5c\uc18c\uc9c0\uc6d0 \ubc84\uc804\ubcf4\ub2e4 \ub0ae\uc744 \uacbd\uc6b0 \ub85c\uadf8\uc778 \uc2dc \uac15\uc81c\ub85c \uc5c5\ub370\uc774\ud2b8\ud569\ub2c8\ub2e4",HOLD_FILES:"\uc0ac\uc6a9 \ubb38\uc11c",SINCE_SECE:"\uc0ac\uc6a9 \uc2dc\uac04",START_TIME:"\uc2dc\uc791 \uc2dc\uac04",AUTO_DETER:"\uc790\ub3d9 \uacb0\uc815",USER_DETER:"\uc0ac\uc6a9\uc790 \uacb0\uc815",HIDDEN:"\uc228\uae40",VISIBLE:"\ub178\ucd9c",AUTO_START_AFTER_BOOT:"\ubd80\ud305 \ud6c4 \uc790\ub3d9 \uc2dc\uc791",NOT_USED:"\uc0ac\uc6a9 \uc548 \ud568",FORCED_UPDATE:"\uac15\uc81c \uc5c5\ub370\uc774\ud2b8",USER_CHOICE:"\uc0ac\uc6a9\uc790 \uc120\ud0dd",OSR_REMOVE_USER_LABEL:"\uc778\uc218\uc790 (\ubbf8\uc9c0\uc815\uc2dc \uc720\uc9c0)",RANSOMWARE_STATUS_NONE:"\uc804\uccb4",RANSOMWARE_STATUS_COM:"\ub79c\uc12c\uc6e8\uc5b4 \uc544\ub2d8",RANSOMWARE_STATUS_BLOCK:"I/O \ucc28\ub2e8",CHANGE_CAPACYTI_TITLE:"\uc758 \uc6a9\ub7c9 \ubcc0\uacbd",SETTING_LOCK_VOLUME_LABEL:"\uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \uc774\ub984 \uc7a0\uae08",RANSOMWARE_FILE_STATUS_COM:"\ub79c\uc12c\uc6e8\uc5b4 \uc544\ub2d8",RANSOMWARE_FILE_STATUS_RESTORE:"\ubcf5\uad6c\ub41c \ud30c\uc77c",RANSOMWARE_FILE_STATUS_INFECTION:"\uac10\uc5fc \ud30c\uc77c",CLEARANCE:"\uc815\ub9ac",OSR_BTN_1:"\uc9c1\uc811 \uc124\uc815",OSR_BTN_2:"\uac19\uc740 \uc870\uc9c1\uc73c\ub85c \uc124\uc815",OSR_BTN_3:"\ubaa8\ub450 \uc815\ub9ac",OSR_BTN_4:"\uac19\uc740 \uc0ac\uc6a9\uc790\ub85c \uc124\uc815",OSR_HINT_MESSAGE_1:"\uc778\uc0ac DB\uc5d0 \ucd94\uac00\ub41c \uc870\uc9c1 \ubaa9\ub85d\uc785\ub2c8\ub2e4. \uc870\uc9c1 \uacbd\ub85c \ub610\ub294 \uc870\uc9c1\uba85\uc774 \ubcc0\uacbd\ub41c \uacbd\uc6b0 '\ubcc0\uacbd \uc804 \uc870\uc9c1\uba85'\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694. \uc2e0\uaddc \uc0dd\uc131 \uc870\uc9c1\uc740 '\ucd94\uac00'\ub97c \uc120\ud0dd\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4",OSR_HINT_MESSAGE_2:"\uc778\uc0ac DB\uc5d0 \uc5c6\ub294 \uc870\uc9c1 \ubaa9\ub85d\uc785\ub2c8\ub2e4. \ucfe0\ub3c5 \uc11c\ube44\uc2a4\uc5d0\uc11c \uacc4\uc18d \uc0ac\uc6a9\ud560 \uacbd\uc6b0 '\uc720\uc9c0'\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uc744 \uacbd\uc6b0 '\uc815\ub9ac'\ub97c \uc120\ud0dd\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4. \ub9cc\uc57d \ub2e4\ub978 \ubd80\uc11c\ub85c \ub370\uc774\ud130 \uc774\uad00 \uc2dc\uc5d0\ub294 '\uc774\uad00\uc744 \uc6d0\ud558\ub294 \uc870\uc9c1'\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",OSR_HINT_MESSAGE_3:"\uc778\uc0ac DB\uc5d0 \uc5c6\ub294 \uc0ac\uc6a9\uc790 \ubaa9\ub85d\uc785\ub2c8\ub2e4. \ucfe0\ub3c5 \uc11c\ube44\uc2a4\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc815\ubcf4\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 '\uc720\uc9c0'\ub97c \ud544\uc694 \uc5c6\ub294 \uacbd\uc6b0 '\uc815\ub9ac'\ub97c \uc120\ud0dd\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4. \ub9cc\uc57d \ub2e4\ub978 \uc0ac\uc6a9\uc790\ub85c \ub370\uc774\ud130 \uc774\uad00 \uc2dc\uc5d0\ub294 '\uc774\uad00\uc744 \uc6d0\ud558\ub294 \uc0ac\uc6a9\uc790'\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",OSR_ERROR_MESSAGE_1:"\ucd94\uac00 \ub420 \uc870\uc9c1\uc744 \uba3c\uc800 \uc124\uc815\ud574 \uc8fc\uc138\uc694",OSR_ERROR_MESSAGE_2:"\uc0c1\uc704 \uc870\uc9c1\ud3f4\ub354\ub97c \uc0ad\uc81c \ub610\ub294 \uc774\uad00\ud560 \uacbd\uc6b0 \ud558\uc704 \uc870\uc9c1\ud3f4\ub354\ub97c \uc720\uc9c0\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",OSR_ERROR_MESSAGE_3:"\uc778\uc0ac \uc815\ubcf4 \uc870\ud68c \uc911 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\uc600\uc2b5\ub2c8\ub2e4. \ub2f4\ub2f9\uc790\uc5d0\uac8c \ubb38\uc758\ud574\uc8fc\uc138\uc694",OSR_ERROR_MESSAGE_4:"\uc778\uc0ac\uc5f0\ub3d9 \uc9c4\ud589 \uc911\uc785\ub2c8\ub2e4",OSR_ERROR_MESSAGE_5:"\uc778\uc0ac\uc5f0\ub3d9 \uc911 \uc7a5\uc560\uac00 \ubc1c\uc0dd\ud558\uc600\uc2b5\ub2c8\ub2e4. \ub2f4\ub2f9\uc790\uc5d0\uac8c \ubb38\uc758\ud574\uc8fc\uc138\uc694",OSR_ERROR_MESSAGE_6:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \uc870\uc9c1\ucf54\ub4dc\uc785\ub2c8\ub2e4.",SYNC_SOLUTION_TITLE:"\ub3d9\uae30\ud654 \uc194\ub8e8\uc158",SYNC_SOLUTION_INTEGRATED:"\ub3d9\uae30\ud654 \uc194\ub8e8\uc158 \uc0ac\uc6a9(OneDrive)",SYNC_SOLUTION_INTEGRATED_HINT_1:"\ubb38\uc11c \uc218\uc9d1\uae30\uac00 \uc218\uc9d1 \ub300\uc0c1 \ud30c\uc77c\ub4e4\uc744 \uc11c\ubc84\ub85c \uc218\uc9d1\ud558\uc9c0 \uc54a\uace0 \ub3d9\uae30\ud654 \ud3f4\ub354\ub85c \uc218\uc9d1\ud569\ub2c8\ub2e4",SYNC_SOLUTION_INTEGRATED_HINT_2:"\ud30c\uc77c\uc774 \uc218\uc9d1\ub418\ub294 \ucd5c\uc885 \ubaa9\uc801\uc9c0 \uc774\uc678\ub294 \uae30\uc874 \uc218\uc9d1\uae30\uc758 \ubaa8\ub4e0 \uae30\ub2a5(\uc218\uc9d1 \ub300\uc0c1, \uc218\uc9d1 \uc81c\uc678 \ub300\uc0c1, \ubcf5\uc0ac \ub610\ub294 \uc774\uad00 \ub4f1\ub4f1)\uc774 \uc791\ub3d9\ud55c\ub2e4",SYNC_SOLUTION_NAME:"\ub3d9\uae30\ud654 \uc194\ub8e8\uc158 \uba85",SYNC_SOLUTION_CONSUMER_FOLDER_ACCESSIBLE:"\uac1c\uc778\ubc84\uc804 \ub3d9\uae30\ud654 \uc194\ub8e8\uc158 \uc0ac\uc6a9",NO_SHELL_MENU:"Context \uba54\ub274 \uc228\uae40",NO_TRAY_ICON_MENU:"\ud2b8\ub808\uc774 \uc544\uc774\ucf58 \uba54\ub274 \ubbf8\uc0ac\uc6a9",NO_TRAY_ICON_MENU_HINT:"\ubbf8\uc0ac\uc6a9\uc2dc COODOC Tray Icon\ub97c \ub354\ube14 \ud074\ub9ad \ud588\uc744 \uacbd\uc6b0 Dashboard\ub3c4 \ud31d\uc5c5\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",SETTING_SUPPORT_OPLOCKS:"Opportunistic Locks \uc0ac\uc6a9",SETTING_SUPPORT_OPLOCKS_HELP_TEXT:"Windows OS\uc758 Opportunistic Locks\uc758 \uc9c0\uc6d0 \uc5ec\ubd80, Excel\uc758 \uacf5\ub3d9\uc791\uc5c5\uc744 \uc5ec\ub7ec \uc0ac\uc6a9\uc790\uac00 \uc811\uadfc\ud558\ub294 \uac83\uc774 \uc2e4\ud328\ud560 \uacbd\uc6b0 \uc774 \uc635\uc158\uc744 \ubbf8\uc0ac\uc6a9 \ud574\uc57c\ud569\ub2c8\ub2e4",SEARCH_INDEXING:"\uac80\uc0c9 \uc778\ub371\uc2f1",SEARCH_PRIVATE_INDEXING:"\uac1c\uc778\ud3f4\ub354 \uc778\ub371\uc2f1",SEARCH_COLLECT_INDEXING:"\uc218\uc9d1\ud3f4\ub354 \uc778\ub371\uc2f1",SEARCH_INDEXING_MESSAGE_1:"\uc778\ub371\uc2f1 \ucc98\ub9ac \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",REFRESH:"\uc0c8\ub85c\uace0\uce68",EXCEL_DOWNLOAD:"\uc5d1\uc140 \ub2e4\uc6b4\ub85c\ub4dc",FILE_LOG_EXCEL:"\ud30c\uc77c\ub85c\uadf8_",AUDIT_LOG_EXCEL:"\uac10\uc0ac\ub85c\uadf8_",WEBLINK:"\uc6f9 \ub9c1\ud06c \uc0dd\uc131",SYNC_OSR:"\uc778\uc0ac\uc5f0\ub3d9",NO_SYNC_OSR:"\uc778\uc0ac\uc5f0\ub3d9 \uc81c\uc678",NO_SYNC_TARGET:"\uc81c\uc678 \ub300\uc0c1",EXCLUSION:"\uc81c\uc678",DOWNLOAD_LIMIT:"\ub2e4\uc6b4\ub85c\ub4dc \ud69f\uc218 \uc81c\ud55c",EXPIRE_DATE:"\ub9cc\ub8cc\uc77c",SEARCH_KEYWORD:"\uac80\uc0c9\uc5b4 \uc785\ub825",ENTER_ID:"\uc544\uc774\ub514\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",ENTER_NAME:"\uc774\ub984\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",ENTER_EMAIL:"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",ENTER_PASSWORD:"\uc554\ud638\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694",ENTER_PASSWORD_CONF:"\uc554\ud638\ub97c \ud55c\ubc88 \ub354 \uc785\ub825\ud574\uc8fc\uc138\uc694",TOTAL:"\ucd1d",CNT:"\uac74",NEW_REGISTRATION:"\uc2e0\uaddc \ub4f1\ub85d",DELETE_SELECTION:"\uc120\ud0dd \uc0ad\uc81c",ROW_PER_PAGE_LABEL:"\ud398\uc774\uc9c0\ub2f9 \ud589\uc218",PAGE_PREV_BTN_LABEL:"\uc774\uc804 \ud398\uc774\uc9c0",PAGE_NEXT_BTN_LABEL:"\ub2e4\uc74c \ud398\uc774\uc9c0",HOLD_FILES_CONF_TITLE:"\uc0ac\uc6a9\uc911\uc778 \ubb38\uc11c \ud574\uc81c",HOLD_FILES_CONF_CONTENT:"\uc758 \uc138\uc158\uc744 \uc885\ub8cc\ud569\ub2c8\ub2e4",HOLD_FILES_MESSAGE_1:"\uc138\uc158\uc744 \uc885\ub8cc\ud558\uc600\uc2b5\ub2c8\ub2e4",DETAIL_INFO:"\uc0c1\uc138\uc815\ubcf4",AVERAGE_READ:"\uc77d\uae30",AVERAGE_WRITE:"\uc4f0\uae30",AVERAGE_CONNECTED:"\uc811\uc18d\uc790 \uc218",AVERAGE_FILE_TITLE_1:"\ud30c\uc77c \uc0dd\uc131 / \uc0ad\uc81c",AVERAGE_FILE_CREATE:"\ud30c\uc77c \uc0dd\uc131",AVERAGE_FILE_REMOVE:"\ud30c\uc77c \uc0ad\uc81c",AVERAGE_FILE_TITLE_2:"\ud30c\uc77c \ubcc0\uacbd",AVERAGE_FILE_RENAME:"\uc774\ub3d9(\uc774\ub984\ubcc0\uacbd)",AVERAGE_FILE_UPDATE:"\ud30c\uc77c \ubcc0\uacbd",AVERAGE_FILE_COPY:"\ud30c\uc77c \ubcf5\uc0ac",AVERAGE_FOLDER_TITLE:"\ud3f4\ub354 \uc0dd\uc131 / \uc0ad\uc81c",AVERAGE_FOLDER_CREATE:"\ud3f4\ub354 \uc0dd\uc131",AVERAGE_FOLDER_REMOVE:"\ud3f4\ub354 \uc0ad\uc81c",AVERAGE_CALL_API_TITLE:"\uc6f9 API \ud638\ucd9c",UPDATE_NEW_CLIENT_LOCK:"\ubc84\uc804 \uc7a0\uae08",UPDATE_NEW_CLIENT_UNLOCK:"\ubc84\uc804 \uc7a0\uae08 \ud574\uc81c",UPDATE_NEW_CLIENT_ALL_LOCK:"\uc804\uccb4 \ubc84\uc804 \uc7a0\uae08",UPDATE_NEW_CLIENT_ALL_UNLOCK:"\uc804\uccb4 \ubc84\uc804 \uc7a0\uae08 \ud574\uc81c",CLIENT_INFO_VERSION:"\ud074\ub77c\uc774\uc5b8\ud2b8 \ubc84\uc804",CLIENT_INFO_INSTALL_AT:"\uc124\uce58\uc77c",CLIENT_INFO_IP:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ud53c",CLIENT_INFO_LAST_LOGIN_AT:"\ub9c8\uc9c0\ub9c9 \ub85c\uadf8\uc778",UPDATE_NEW_CLIENT_MESSAGE_1:"\uc0ac\uc6a9\uc790(%d\uba85) \ubc84\uc804\uc744 \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",UPDATE_NEW_CLIENT_MESSAGE_2:"\uc0ac\uc6a9\uc790(%d\uba85) \ubc84\uc804 \uc7a0\uae08\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",UPDATE_NEW_CLIENT_MESSAGE_3:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \ubc84\uc804\uc744 \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",UPDATE_NEW_CLIENT_MESSAGE_4:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \ubc84\uc804 \uc7a0\uae08\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",UPDATE_NEW_CLIENT_MESSAGE_5:"\uc0ac\uc6a9\uc790 \ub610\ub294 \uc870\uc9c1\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",UPDATE_NEW_CLIENT_MESSAGE_6:"\uc870\uc9c1(%d)\uc758 \ubc84\uc804\uc744 \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",UPDATE_NEW_CLIENT_MESSAGE_7:"\uc870\uc9c1(%d)\uc758 \ubc84\uc804 \uc7a0\uae08\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c??",UPDATE_NEW_CLIENT_MESSAGE_8:"\uc0ac\uc6a9\uc790\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",LOCK:"\uc7a0\uae08",UNLOCK:"\ud574\uc81c",WHITE_URL_NAME:"\uba85\uce6d",WHITE_URL_NAME_PLACEHOLDER:"\uba85\uce6d\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WHITE_URL_SET_TYPE:"\ube44\uad50\ubc29\uc2dd",WHITE_URL_URL:"URL",WHITE_URL_URL_PLACEHOLDER:"URL\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WHITE_URL_REGEX:"\uc815\uaddc\uc2dd",WHITE_URL_PLAIN:"URL \uc77c\uce58",WHITE_PROGRAM:"\ubcf4\uc548\ud504\ub85c\uadf8\ub7a8",WHITE_SYSTEM_PROCESS:"\uc2dc\uc2a4\ud15c\ud504\ub85c\uadf8\ub7a8",WHITE_CHROME_BROWSER:"\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800",WHITE_RANSOMWARE:"\ub79c\uc12c\uc6e8\uc5b4 \uc544\ub2d8",WHITE_PROCESS_TYPE:"\uad6c\ubd84",TAKEOUT_APPROVE_TYPE_MANUAL:"\uc218\ub3d9 \uc2b9\uc778",TAKEOUT_APPROVE_TYPE_AUTO:"\uc790\ub3d9 \uc2b9\uc778",TAKEOUT_APPROVE_TYPE_UNAVAILABLE:"\uc2b9\uc778 \ubd88\ud5c8",TAKEOUT_APPROVE_MESSAGE_1:"\uc218\uc815 \uc644\ub8cc",TAKEOUT_APPROVE_MANAGE_LOCK:"\uc0ac\uc6a9\uc790 \ubcc0\uacbd \uc7a0\uae08",TAKEOUT_APPROVE_MANAGE_LOCK_ALL:"\ubaa8\ub4e0 \uc870\uc9c1 \uc7a0\uae08",TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL:"\ubaa8\ub4e0 \uc870\uc9c1 \ud574\uc7ac",TAKEOUT_APPROVE_MANAGE_LOCK_ALL_1:"\ubaa8\ub4e0 \uacf5\uc720 \uc7a0\uae08",TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL_1:"\ubaa8\ub4e0 \uacf5\uc720 \ud574\uc7ac",EXPORT_APPROVAL_MANAGEMENT:"\ubc18\ucd9c \uc2b9\uc778\uc790 \uad00\ub9ac",MANUAL:"\uc218\ub3d9",AUTO:"\uc790\ub3d9",INSTANT_LOGS_TITLE:"\uac80\uc0c9 \uc124\uc815",INSTANT_LOGS_FILE_TYPES:"\ub85c\uadf8\ud30c\uc77c \uc885\ub958",INSTANT_LOGS_LOG_TYPES:"\ub85c\uadf8 \uc885\ub958",INSTANT_LOGS_INCLUDES:"\ud3ec\ud568 \ubb38\uc790\uc5f4",INSTANT_LOGS_EXCLUDES:"\uc81c\uc678 \ubb38\uc790\uc5f4",INSTANT_LOGS_OMIT_SERVER:"\uc11c\ubc84 \ub85c\uadf8 \uc218\uc9d1",INSTANT_LOGS_CONTENTS:"\uba54\uc138\uc9c0",INSTANT_LOGS_ERROR_MESSAGE_1:"\uac80\uc0c9\ud6c4 \uc124\uc815\ud574 \uc8fc\uc138\uc694",WEBLINK_COPY_MESSAGE:"\ubcf5\uc0ac\ud558\uc600\uc2b5\ub2c8\ub2e4",CLIENT_RUNNING_TYPE_START:"\uc2e4\ud589",CLIENT_RUNNING_TYPE_STOP:"\uc885\ub8cc",CLIENT_RUNNING_TYPE_IGNORE:"\ud30c\uc77c \ubbf8\uc885\ub8cc",CLIENT_RUNNING_TYPE_LOGOFF:"PC\uc885\ub8cc",CLIENT_RUNNING_TYPE_ABORTED:"\ube44\uc815\uc0c1 \uc885\ub8cc",DISABLE_SAVE_PASSWORD:"\ube44\ubc00\ubc88\ud638 \uc800\uc7a5 \ube44\ud65c\uc131\ud654",PRIVATE_FOLDER_SUPPORT:"\uac1c\uc778\ud3f4\ub354 \uc0ac\uc6a9",PRESERVE_LAST:"\ub9c8\uc9c0\ub9c9 \uac1c\uc815\ub0b4\uc5ed \ubcf4\uad00",PRESERVE_LAST_HELP:"\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218\uac00 \uc9c0\ub098\ub3c4 \ucd5c\uc18c \ud55c \uac1c\uc758 \ud30c\uc77c\uc740 \uc720\uc9c0",PRESERVE_LAST_WITHOUT_ORIGINAL:"\ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c \ubd84\ub9ac",PRESERVE_LAST_WITHOUT_ORIGINAL_HELP:"\ube44\ud65c\uc131\ud654\uc2dc \ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c\uc218\ub294 '\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218'\uacfc \ub3d9\uc77c",KEEP_DAYS_IN_TRASH:"\ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c\uc218",KEEP_DAYS_IN_TRASH_HELP:"'0'\uc77c \uacbd\uc6b0 \uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218\uc640 \ub3d9\uc77c",KEEP_DAYS_IN_TRASH_ERROR_1:"\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218 \ubcf4\ub2e4 \uae38\uac8c \uc124\uc815 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",DOWNLOAD_ERROR:"os\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.",NUMBER_ERROR_MESSAGE:"0\ubcf4\ub2e4 \ud070\uc218\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694.",DLP_CLIENT_INFO:"dlp \ud074\ub77c\uc774\uc5b8\ud2b8 \uc815\ubcf4",CONNECTED:"\uc5f0\uacb0",NOT_CONNECTED:"\ubbf8\uc5f0\uacb0",DLP_POLICY_SETTING:"dlp \uc815\ucc45 \uc124\uc815",DLPClientLogGeneral:"\uc77c\ubc18",DLPClientLogCreateFile:"\uc0dd\uc131",DLPClientLogWriteFile:"\uc4f0\uae30",DLPClientLogRenameFile:"\uc774\ub984\ubcc0\uacbd",DLPClientLogCopyFile:"\ubcf5\uc0ac",DLPClientLogCloneFile:"\ubcf5\uc81c",DLPClientLogLinkFile:"\ub9c1\ud06c\ud30c\uc77c",DLPClientLogDeleteFile:"\uc0ad\uc81c",DLPClientLogTruncateFile:"\ub0b4\uc6a9\uc0ad\uc81c",DLPClientLogExecute:"\ud504\ub85c\uadf8\ub7a8 \uc2e4\ud589",DLPClientLogNetwork:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0",DLPClientLogFetchURL:"\uc6f9 \uc811\uc18d",DLPClientLogUploadURL:"\uc6f9 \uc5c5\ub85c\ub4dc",DLPClientLogMount:"\ub9c8\uc6b4\ud2b8",DLPClientLogUnmount:"\ub9c8\uc6b4\ud2b8 \ud574\uc81c",DLPClientLogSendWebMail:"\uc6f8 \uba54\uc77c",DLP_CLIENT_LOG_VIER:"\uc870\ud68c",DLP_CLIENT_LOG_VIEW_TITLE:"\uc138\ubd80 \ub0b4\uc6a9 \ubcf4\uae30",DLP_CLIENT_LOG_LOGGED_AT:"\uc77c\uc2dc",DLP_CLIENT_LOG_USERNAME:"\uc0ac\uc6a9\uc790(\ud074\ub77c\uc774\uc5b8\ud2b8 \ubc88\ud638)",DLP_CLIENT_LOG_TYPE:"\ub85c\uadf8 \ud0c0\uc785",DLP_CLIENT_LOG_PATH:"\ud30c\uc77c\uacbd\ub85c",DLP_CLIENT_LOG_SIGNING_ID:"\ud504\ub85c\uadf8\ub7a8 \uc2dd\ubcc4\uc790",DLP_CLIENT_LOG_HASH:"\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc",DLP_CLIENT_LOG_SOURCE_PATH:"\uc2dc\uc791 \uacbd\ub85c",DLP_CLIENT_LOG_DEST_PATH:"\ubaa9\uc801\uc9c0 \uacbd\ub85c",DLP_CLIENT_LOG_LOCAL_ENDPOINT:"\ucd9c\ubc1c\uc9c0 \uc8fc\uc18c",DLP_CLIENT_LOG_REMOTE_ENDPOINT:"\ubaa9\uc801\uc9c0 \uc8fc\uc18c",DLP_CLIENT_LOG_WEB_UPLOAD_FILE:"\uc6f9 \uc5c5\ub85c\ub4dc \ud30c\uc77c",DLP_CLIENT_LOG_MAIL_RECIEVER:"\ubc1b\ub294\uc0ac\ub78c",DLP_CLIENT_LOG_MAIL_CC:"\ucc38\uc870",DLP_CLIENT_LOG_MAIL_TITLE:"\uc81c\ubaa9",DLP_CLIENT_LOG_MAIL_CONTENTS:"\ub0b4\uc6a9",DLP_CLIENT_LOG_PRINT_DOC_FORMAT:"\uc791\uc5c5 \ud3ec\ub9f7",DLP_CLIENT_LOG_PRINT_COPIES:"\ubcf5\uc0ac \uc218",DLP_CLIENT_LOG_PRINT_JOB_NAME:"\uc791\uc5c5 \uc774\ub984",DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT:"\uc0dd\uc131\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT:"\uc218\ud589\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT:"\uc644\ub8cc\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_PRINTER_URL:"\ud504\ub9b0\ud2b8 URL",DLP_CLIENT_LOG_PRINT_JOB_STATE_MESSAGE:"\ud504\ub9b0\ud2b8 \uc0c1\ud0dc\uba54\uc138\uc9c0",DLP_CLIENT_LOG_PRINT_JOB_STATE_REASONS:"\ud504\ub9b0\ud2b8 \uc0c1\ud0dc \uc0ac\uc720",DLP_CLIENT_LOG_CONTROL_INFO:"\ud504\ub9b0\ud2b8 \uc791\uc5c5 \uc138\ubd80 \uc815\ubcf4",DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_TITLE:"\ud504\ub9b0\ud2b8 \ub2e4\uc6b4\ub85c\ub4dc",DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_CONTENT:"\ud504\ub9b0\ud2b8\ub41c \ud30c\uc77c\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_EXECUTE_PROGRAM:"\uc2e4\ud589\uc81c\uc5b4",DLP_PROGRAM_HASH:"\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc",DLP_PROGRAM_SIGNING_ID:"\ud504\ub85c\uadf8\ub7a8 \uc2dd\ubcc4\uc790",DLP_PROGRAM_MANAGE_NAME:"\ud504\ub85c\uadf8\ub7a8 \uad00\ub9ac\uba85",DLP_PROGRAM_NAME:"\ud504\ub85c\uadf8\ub7a8\uba85",DLP_PROCESS_TYPE:"\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785",DLP_EXECUTE_CONTROL_TITLE:"\uc2e4\uc81c\uc81c\uc5b4 \uc124\uc815",DLP_EXECUTE_CONTROL_CONTENT:"\uadf8\ub8f9\uc758 \uc2e4\ud589\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_EXECUTE_CONTROL_DELETE_CONTENT:"\uadf8\ub8f9\uc758 \uc2e4\ud589\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_NETWORK:"\ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4",DLP_BLUETOOTH_PAIRING:"\ube14\ub8e8\ud22c\uc2a4 \ud398\uc5b4\ub9c1",DLP_BLUETOOTH_FILE:"\ube14\ub8e8\ud22c\uc2a4 \ud30c\uc77c \uc804\uc1a1",DLP_MESSENGER:"\uba54\uc2e0\uc800 \ud30c\uc77c \uc804\uc1a1",DLP_AIRDROP:"\uc5d0\uc5b4\ub4dc\ub78d",DLP_PROGRAM_INSTALL:"\ud504\ub85c\uadf8\ub7a8 \uc124\uce58",DLP_MOUNT:"\ub9c8\uc6b4\ud2b8\ud5c8\uc6a9",DLP_PRINTING:"\ud504\ub9b0\ud2b8",DLP_TAKEOUT_APPROVING:"\ubc18\ucd9c\ubc29\uc2dd",ASCENDING:"\uc624\ub984\ucc28\uc21c",DESCENDING:"\ub0b4\ub9bc\ucc28\uc21c",SORT_DATE:"\ub0a0\uc9dc \uc815\ub82c",TEMP_RELEASE:"\uc784\uc2dc\ud574\uc81c",TYPE:"\uc885\ub958",INSTALL:"\uc124\uce58",INSTALL_LIST:"\uc124\uce58 \ubaa9\ub85d",HAPPEND_AT:"\ubc1c\uc0dd\uc77c\uc2dc",ALERT_TYPE:"\uacbd\uace0 \uc885\ub958",ALERT_INFO:"\uacbd\uace0 \ub0b4\uc6a9",DLP_CLIENT_BLOCKED_LOG:"\ucc28\ub2e8 \ub85c\uadf8",DLP_CLIENT_MONITORING_LOG:"\ubaa8\ub2c8\ud130\ub9c1 \ub85c\uadf8",DLP_CLIENT_RELEASE_BLOCK:"\ud574\uc81c \ub85c\uadf8",NO_LOGIN:"\ubbf8\ub85c\uadf8\uc778",VERSION:"\ubc84\uc804",LOGGED_IN_AT:"\ub85c\uadf8\uc778 \uc77c\uc2dc",LOGGED_OFF_AT:"\ub85c\uadf8\uc624\ud504 \uc77c\uc2dc",CONNECTED_STATUS:"\uc5f0\uacb0 \uc0c1\ud0dc",CHECKED_AT:"\ud655\uc778 \uc2dc\uac01",ACTIVE:"\ud65c\uc131\ud654",INACTIVE:"\ube44\ud65c\uc131",NOT_INSTALLED:"\ubbf8\uc124\uce58",BLUETOOTH_LIST:"\ube14\ub8e8\ud22c\uc2a4 \ubaa9\ub85d",DLP_CLIENT_DELETE_TITLE:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uc81c\uac70",DLP_CLIENT_DELETE_CONTENT:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_DELETE_SUCCESS:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_CLIENT_DELETE_FAIL:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.",WEBLINK_COMMENT_1:"\uc6f9 \ub9c1\ud06c \uc11c\ube44\uc2a4 \ud3ec\ud2b8\uc640 \ucfe0\ub3c5 \uc6f9 \ud3ec\ud2b8\uac00 \ub2e4\ub978\uacbd\uc6b0 \uad00\ub9ac\uc790 \uc7ac\ub85c\uadf8\uc778\uc774 \ud544\uc694\ud569\ub2c8\ub2e4",WEBLINK_RESTRICT_EXTS:"\uc6f9 \ub9c1\ud06c \uc81c\ud55c \ud655\uc7a5\uc790",WEBLINK_RESTRICT_FILE_SIZE:"\uc6f9 \ub9c1\ud06c \ud30c\uc77c\ub2f9 \uc6a9\ub7c9 \uc81c\ud55c",WEBLINK_RESTRICT_TOTAL_SIZE:"\uc6f9 \ub9c1\ud06c \uc804\uccb4\ud30c\uc77c \uc6a9\ub7c9 \uc81c\ud55c",DLP_POLICY_WHITE_URL_MANAGEMENT:"\uc5c5\ub85c\ub4dc URL \uad00\ub9ac",DLP_POLICY_WHITE_URL_NAME:"URL \uad00\ub9ac\uba85",DLP_POLICY_WHITE_URL_REGEX:"URL \uc815\uaddc\uc2dd",DLP_POLICY_WHITE_URL_TITLE:"\uc5c5\ub85c\ub4dc URL \uc124\uc815",DLP_POLICY_WHITE_URL_CONTENT:"\uadf8\ub8f9\uc758 \uc5c5\ub85c\ub4dc URL\uc744 \ucd94\uac00 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_WHITE_URL_DELETE_CONTENT:"\uadf8\ub8f9\uc758 \uc5c5\ub85c\ub4dc URL\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER:"EX) *.coodoc.com",DLP_POLICY_WHITE_URL_MESSAGE_1:"URL \uad00\ub9ac\uba85\uc744 \uc785\ud574\ud574 \uc8fc\uc138\uc694",USER_LOCK:"\uacc4\uc815 \uc7a0\uae08",OSR_ORG_TITLE:"\uc778\uc0ac\uc5f0\ub3d9 \uc870\uc9c1 \uc124\uc815",OSR_ORG_CODE:"\uc870\uc9c1\ucf54\ub4dc",ALLOW_TAKEOUT_PRIVATE_FOLDER:"\uac1c\uc778\ud3f4\ub354 \ubc18\ucd9c",ALLOW_TAKEOUT_FOLDER:"\ud3f4\ub354 \ubc18\ucd9c",UNAVAILABLE:"\ubd88\uac00",FOLLOWS_FOLDER_MASTER_POLICIES:"\uc870\uc9c1\ud3f4\ub354\uc815\ucc45 \uc0ac\uc6a9",BLACK_LIST:"\ube14\ub799 \ub9ac\uc2a4\ud2b8",WHITE_LIST:"\ud654\uc774\ud2b8 \ub9ac\uc2a4\ud2b8",APPROVED:"\uc2b9\uc778 \ub418\uc5c8\uc2b5\ub2c8\ub2e4",REJECTED:"\uac70\uc808 \ub418\uc5c8\uc2b5\ub2c8\ub2e4",FAILED:"\uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_URL:"\uc6f9 \ub9c1\ud06c URL",WEBLINK_COPY_MESSAGE_2:"\uc6f9 \ub9c1\ud06c \ubc18\ucd9c\uc744 \uc2e0\uccad\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc2b9\uc778 \ud6c4 \ub2e4\uc6b4\ub85c\ub4dc \uac00\ub2a5\ud569\ub2c8\ub2e4",CONTEXT_MESSAGE_7:"\uc5c5\ub85c\ub4dc \ud560\uc218\uc5c6\ub294 \uc704\uce58\uc785\ub2c8\ub2e4",CONTEXT_MESSAGE_8:"\ubb38\uc11c\uc911\uc559\ud654 \uc0ac\uc6a9\uc911 \ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_9:"\ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_10:"'%s' \uc911\ubcf5\ub418\ub294 \ud30c\uc77c\uc774 \uc788\uc5b4 \uc774\ub3d9 \ud560 \uc218\uc5c6\uc2b5\ub2c8\ub2e4",FILE_DROP_TITLE:"\ud30c\uc77c\uc744 \ub4dc\ub86d\ud558\uc138\uc694",CHANGE_VIEW_LIST:"\ubaa9\ub85d \ubcf4\uae30\ub85c \uc804\ud658",CHANGE_VIEW_GRID_1:"\ubc14\ub451\ud310 \ubcf4\uae30\ub85c \uc804\ud658",CONTEXT_CONFIRM_TITLE_1:"\ud30c\uc77c \uc0ad\uc81c",CONTEXT_CONFIRM_CONTENT_1:"\ud30c\uc77c\uc744 \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",CONTEXT_MESSAGE_11:"\ud734\uc9c0\ud1b5\uc740 \uc774\ub3d9 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_12:"\ud2b9\uc218 \ud3f4\ub354\uc758 \ud30c\uc77c \ub610\ub294 \ud3f4\ub354\uc758 \ubcc0\uacbd\uc740 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4",CONTEXT_MESSAGE_13:"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \uba54\ub274\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_14:"\ub2e4\uc6b4\ub85c\ub4dc \ud560 \ud30c\uc77c\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",SHARE:"\uacf5\uc720\ud558\uae30",DEFAULT_POLICY_SETTING:"\uae30\ubcf8 \uc815\ucc45 \uc124\uc815",DEFAULT_POLICY:"\uae30\ubcf8 \uc815\ucc45",COPY_POLICY:"\uc815\ucc45 \ubcf5\uc0ac",POLICY_GROUP_TITLE:"\uc815\ucc45 \uadf8\ub8f9 \ucd94\uac00",GROUP_NAME:"\uadf8\ub8f9\uba85",EXPLANATION:"\uc124\uba85",DLP_ALLOW_RELEASE_STORAGE:"\ub9e4\uccb4 \uc81c\uc5b4",DLP_ALLOW_RELEASE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c \uc81c\uc5b4",DLP_ALLOW_RELEASE_EXECUTE:"\uc2e4\ud589 \uc81c\uc5b4",DLP_ALLOW_RELEASE_UPLOAD_URL:"\ube0c\ub77c\uc6b0\uc800 \uc5c5\ub85c\ub4dc \uc81c\uc5b4",DLP_ALLOW_RELEASE_BLUETOOTH:"\ube14\ub8e8\ud22c\uc2a4 \uc81c\uc5b4",DLP_ALLOW_RELEASE_MESSENGER:"\uba54\uc2e0\uc800 \uc81c\uc5b4",DLP_ALLOW_RELEASE_AIRDROP:"\uc5d0\uc5b4\ub4dc\ub78d \uc81c\uc5b4",DLP_ALLOW_RELEASE_PRINTING:"\ud504\ub9b0\ud2b8 \uc81c\uc5b4",DLP_POLICY_GROUP_SETTING:"\ubcf4\uc548 \uc124\uc815",DLP_POLICY_GROUP_NETWORK_TITLE:"\ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4 \uc124\uc815",DLP_POLICY_GROUP_NETWORK_CONTENT_1:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_NETWORK_CONTENT_2:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_NETWORK_CONTENT_3:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT:"\ucc28\ub2e8 \ub9e4\uccb4\uc5d0 \uad8c\ud55c \ubd80\uc5ec",DLP_POLICY_GROUP_GRANT_TITLE:"\uad8c\ud55c\uc81c\uc5b4 \uc124\uc815",DLP_POLICY_GROUP_GRANT_CONTENT_1:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT_CONTENT_2:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT_CONTENT_3:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_MESSAGE_1:"\uc815\ucc45 \uadf8\ub8f9\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_GROUP_MESSAGE_2:"\uc815\ucc45 \uadf8\ub8f9\uc744 \ubcf5\uc0ac\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_GROUP_MESSAGE_3:"\uc815\ucc45 \uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",DLP_POLICY_GROUP_DEFAULT_TITLE:"\uae30\ubcf8 \uc815\ucc45 \uc124\uc815",DLP_POLICY_GROUP_RELEASE:"\ud574\uc81c \uc694\uccad",DLP_POLICY_GROUP_DEFAULT_CONTENT_1:"\uadf8\ub8f9\uc758 \uae30\ubcf8\uc815\ucc45\uc744 \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_DEFAULT_CONTENT_2:"\uadf8\ub8f9\uc758 \uae30\ubcf8\uc815\ucc45\uc744 \uc804\uccb4 \uc815\ucc45\uc73c\ub85c \ucd08\uae30\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_RELEASE_TITLE:"\ud574\uc81c \uc694\uccad \ud5c8\uc6a9 \uc5ec\ubd80 \uc124\uc815",DLP_POLICY_GROUP_RELEASE_CONTENT_1:"\uadf8\ub8f9\uc758 \ud574\uc81c \uc694\uccad \ud5c8\uc6a9 \uc5ec\ubd80\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_RELEASE_DURATION:"\ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04",DLP_POLICY_RELEASE_DURATION_TITLE:"\ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04 \uc124\uc815",DLP_POLICY_RELEASE_DURATION_CONTENT_1:"\uadf8\ub8f9\uc758 \ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04\uc744 \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_NETWORK_MANAGE_NAME:"\ub124\ud2b8\uc6cc\ud06c \uad00\ub9ac\uba85",DLP_NETWORK_INBOUND_PORT:"\uc778\ubc14\uc6b4\uc2a4 \ud3ec\ud2b8",DLP_NETWORK_OUTBOUND_DESTINATION:"\uc544\uc6c3\ubc14\uc6b4\uc2a4 \uc8fc\uc18c",ALL_PROGRAM:"\ubaa8\ub4e0 \ud504\ub85c\uadf8\ub7a8",NOT_SELECTED:"\ubbf8\uc9c0\uc815",STORAGE_NAME:"\ub9e4\uccb4\uba85",ALLOW_READ:"\uc77d\uae30 \ud5c8\uc6a9",ALLOW_WRITE:"\uc4f0\uae30 \ud5c8\uc6a9",ALLOW_EXECUTE:"\uc2e4\ud589 \ud5c8\uc6a9",IOS_DOWNLOAD_CONTENT:"\ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",VIEW:"\ubcf4\uae30",MB_SETTING_SERVER_INFO:"\uc811\uc18d\uc815\ubcf4 \ubcc0\uacbd",MB_SETTING_BIOMETRICS_USE:"\uc0dd\uccb4\uc778\uc99d \uc0ac\uc6a9",MB_SETTING_BIOMETRICS_UNUSED:"\uc0dd\uccb4\uc778\uc99d \ubbf8\uc0ac\uc6a9",MB_SETTING_BIOMETRICS_COMPLETE:"\uc0dd\uccb4\uc778\uc99d \ub4f1\ub85d \uc644\ub8cc",FOLDER_ERROR_MESSAGE_6:"\uc774\ubbf8 \uc785\ub825\ucc3d\uc774 \uc788\uc2b5\ub2c8\ub2e4",EXPAND_ALL:"\ubaa8\ub450 \uc5f4\uae30",COLLAPSE_ALL:"\ubaa8\ub450 \uc811\uae30",EXPIRE_AT_CHANGE:"\ub9cc\ub8cc\uc77c \ubcc0\uacbd",EXPIRE_AT_CHANGE_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",EXPIRE_AT_CHANGE_MESSAGE_2:"\ub9cc\ub8cc\uc77c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",EXPIRE_AT_RELEASE:"\ub9cc\ub8cc\uc77c \ud574\uc81c",EXPIRE_AT_RELEASE_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc81c\uc2b5\ub2c8\uae4c?",EXPIRE_AT_RELEASE_MESSAGE_2:"\ub9cc\ub8cc\uc77c\uc744 \ud574\uc81c\ud558\uc600\uc2b5\ub2c8\ub2e4",EXPIRE_AT_ERROR_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",DLP_CLIENT_MESSAGE_1:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \ud5c8\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_2:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_3:"\uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \ud5c8\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_4:"\uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_5:"\uc124\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_CLIENT_MESSAGE_6:"\uc124\uc815\uc774 \ubc18\uc601\ub418\uc5c8\uc2b5\ub2c8\ub2e4",DLP_CLIENT_MESSAGE_7:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uac15\uc81c \uc5c5\ub370\uc774\ud2b8 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_TITLE_1:"\uc124\uce58 \ud5c8\uc6a9 \uc5ec\ubd80",DLP_CLIENT_TITLE_2:"DLP \uac15\uc81c \uc5c5\ub370\uc774\ud2b8",ALLOW_INSTALL:"\uc124\uce58 \ud5c8\uc6a9",LOCK_INSTALL:"\uc124\uce58 \uc7a0\uae08",ALL_ALLOW_INSTALL:"\uc804\uccb4 \uc124\uce58 \ud5c8\uc6a9",ALL_LOCK_INSTALL:"\uc804\uccb4 \uc124\uce58 \uc7a0\uae08",PATH:"\uacbd\ub85c",PATH_REG:"\uacbd\ub85c(\uc815\uaddc\uc2dd)",PATH_STORAGE:"\uac00\uc0c1\ub9e4\uccb4",PATH_STORAGE_TITLE_1:"\uac00\uc0c1\ub9e4\uccb4 \uc0ad\uc81c",PATH_STORAGE_TITLE_2:"\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815",PATH_STORAGE_TITLE_3:"\uac00\uc0c1\ub9e4\uccb4 \ucd94\uac00",PATH_STORAGE_CONTENT_1:"\uac00\uc0c1\ub9e4\uccb4\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",PATH_STORAGE_MESSAGE_1:"\uac00\uc0c1\ub9e4\uccb4\uac00 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_2:"\uac00\uc0c1\ub9e4\uccb4\uac00 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_3:"\uac00\uc0c1\ub9e4\uccb4\ub97c \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_4:"\uac00\uc0c1\ub9e4\uccb4 \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_5:"\uac00\uc0c1\ub9e4\uccb4\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_6:"\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_PROCESS_TYPE_UNKNOWN:"\uc54c \uc218 \uc5c6\ub294 \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_NORMAL:"\uc77c\ubc18 \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_SYSTEM:"\uc2dc\uc2a4\ud15c \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_CHROME:"\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800",PROGRAM:"\ud504\ub85c\uadf8\ub7a8",PROGRAM_TITLE_1:"\ud504\ub85c\uadf8\ub7a8 \uc0ad\uc81c",PROGRAM_TITLE_2:"\ud504\ub85c\uadf8\ub7a8 \uc218\uc815",PROGRAM_TITLE_3:"\ud504\ub85c\uadf8\ub7a8 \ucd94\uac00",PROGRAM_CONTENT_1:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",PROGRAM_MESSAGE_1:"\ud504\ub85c\uadf8\ub7a8\uc774 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_2:"\ud504\ub85c\uadf8\ub7a8 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_3:"\ud504\ub85c\uadf8\ub7a8\uc744 \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_4:"\ud504\ub85c\uadf8\ub7a8 \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_5:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_6:"\ud504\ub85c\uadf8\ub7a8 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK:"\ub124\ud2b8\uc6cc\ud06c",NETWORK_TITLE_1:"\ub124\ud2b8\uc6cc\ud06c \uc0ad\uc81c",NETWORK_TITLE_2:"\ub124\ud2b8\uc6cc\ud06c \uc218\uc815",NETWORK_TITLE_3:"\ub124\ud2b8\uc6cc\ud06c \ucd94\uac00",NETWORK_CONTENT_1:"\ub124\uc6cc\uc6cc\ud06c\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",NETWORK_MESSAGE_1:"\ub124\uc6cc\uc6cc\ud06c\uac00 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_2:"\ub124\ud2b8\uc6cc\ud06c \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_3:"\ub124\ud2b8\uc6cc\ud06c\ub97c \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_4:"\ub124\uc6cc\uc6cc\ud06c \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_5:"\ub124\ud2b8\uc6cc\ud06c\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_6:"\ub124\ud2b8\uc6cc\ud06c \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_TITLE:"\uae30\ubcf8 \uc124\uc815",DLP_POLICY_STORAGE_TYPE:"Storage \uc885\ub958",DLP_HEALTH_MODULE_SECURE:"DLP",DLP_HEALTH_MODULE_EPS:"\uc81c\uc5b4",DLP_HEALTH_MODULE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c",DLP_HEALTH_MODULE_CHROME:"\ud06c\ub86c\ud655\uc7a5",MAC_ADDRESS:"mac",ENTER_REASON:"\uc0ac\uc720\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694",SELECT_REQUEST:"\uc694\uccad\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",OFFLINE_DRIVE:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c",OFFLINE_DRIVE_CONFIRM_1:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c\ub97c \uac70\uc808\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",OFFLINE_DRIVE_CONFIRM_2:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c\ub97c \uc2b9\uc778\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_ALLOW_SETUP:"\uc124\uce58\ubaa8\ub4dc",EMAIL_OTP_CODE:"\uc774\uba54\uc77c OTP",EMAIL_OTP_ERROR_MESSAGE_1:"\uc774\uba54\uc77c OTP\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694",EMAIL_OTP_HELP_1:"\uc774\uba54\uc77c\uc744 \ud655\uc778\ud574 \uc8fc\uc138\uc694",WEBLINK_DOWNLOAD_ERROR_MESSAGE_1:"\uc778\uc99d \ud69f\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_2:"\uc774\uba54\uc77c OTP\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_3:"\uc6f9 \ub9c1\ud06c\uac00 \ud65c\uc131\ud654 \ub418\uc5b4\uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_4:"\uc778\uc99d\uac12\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_DOWNLOAD_ERROR_MESSAGE_5:"\uc778\uc99d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_6:"\uc6f9 \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_7:"\ub2e4\uc6b4\ub85c\ub4dc \ud68c\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_8:"\uc6f9 \ub9c1\ud06c \uc815\ubcf4\uac00 \uc815\ud655\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",DYNAMIC_SECURITY_MODE:"\ub2a5\ub3d9\ubcf4\uc548 \ubaa8\ub4dc",DATALEAK_CONTROL_USER:"\ubb38\uc11c\uc911\uc559\ud654 \uc0ac\uc6a9\uc790",DATALEAK_CONTROL_USE:"\ubb38\uc11c\uc911\uc559\ud654",USER_MESSAGE_17:"\ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",AUDIT_TYPE_DLP_ALLOW_CLINET_INSTALL:"DLP \uc124\uce58",AUDIT_TYPE_DLP_REMOVE_CLIENT:"DLP \uc0ad\uc81c",AUDIT_TYPE_DLP_REGISTER_USER_GROUP:"DLP \uc815\ucc45 \ubb36\uc74c \uc0dd\uc131",AUDIT_TYPE_DLP_REMOVE_USER_GROUP:"DLP \uc815\ucc45 \ubb36\uc74c \uc0ad\uc81c",AUDIT_TYPE_DLP_REGISTER_UESR_GORUP_MEMBER:"DLP \uc815\ucc45 \uc0ac\uc6a9\uc790 \ucd94\uac00",AUDIT_TYPE_DLP_REMOVE_USER_GROUP_MEMBER:"DLP \uc815\ucc45 \uc0ac\uc6a9\uc790 \uc81c\uac70",MOVE_ORG_DATA_ERROR_MESSAGE_3:"\uc0c1\uc704 \ubd80\uc11c\ub85c \uc774\uad00\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",MOVE_ORG_DATA_ERROR_MESSAGE_4:"\ud558\uc704 \ubd80\uc11c\ub85c \uc774\uad00\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",TRANSFER_ORG_ERROR_MESSAGE_3:"\uc0c1\uc704 \ubd80\uc11c\ub85c \uc774\ub3d9\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",TRANSFER_ORG_ERROR_MESSAGE_4:"\ud558\uc704 \ubd80\uc11c\ub85c \uc774\ub3d9\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",DEFAULT:"\uae30\ubcf8",INTEGRATION_STATUS:"\uc5f0\ub3d9 \uc0c1\ud0dc",SECURITY:"\ubcf4\uc548",USER_DEFINED:"\uc0ac\uc6a9\uc790 \uc815\uc758",SAVE:"\uc800\uc7a5",DATALEAK_POLICY:"\uc720\ucd9c \uc815\ucc45",IP_GROUP_MESSAGE_1:"\uadf8\ub8f9\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",LOGIN_PC:"\ub85c\uadf8\uc778PC",DEFAULT_PC:"\uae30\ubcf8PC",ROW_PER_PAGE:"\ud654\uba74\ud45c\uc2dc",ONLINE:"\uc811\uc18d",OFFLINE:"\ubbf8\uc811\uc18d",LOGIN_ERROR_MESSAGE_7:"\uc811\uc18d \uac00\ub2a5\ud55c IP\ub300\uc5ed\uc774 \uc544\ub2d9\ub2c8\ub2e4",USER_LIST:"\uc0ac\uc6a9\uc790 \ubaa9\ub85d",DLP_CLIENT_LIST:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8 \ubaa9\ub85d",POLICY_NAME:"\uc815\ucc45\uba85",MANDATORY_APP_NAME:"\uba85\uce6d",MANDATORY_APP_WINDOWS_NAME:"\uc708\ub3c4\uc6b0 \ud504\ub85c\uadf8\ub7a8\uba85",MANDATORY_APP_MACOS_NAME:"MacOS \ud504\ub85c\uadf8\ub7a8\uba85",MANDATORY_APP_REGISTER:"\ud544\uc218 \uc2e4\ud589 \ud504\ub85c\uadf8\ub7a8 \ub4f1\ub85d",MANDATORY_APP_PLACEHOLDER_1:"\uc708\ub3c4\uc6b0 \uc6b4\uc601\uccb4\uc81c\uc758 \ud504\ub85c\uadf8\ub7a8\uba85",MANDATORY_APP_PLACEHOLDER_2:"MacOS \uc6b4\uc601\uccb4\uc81c\uc758 \ud504\ub85c\uadf8\ub7a8\uba85",MANDATORY_APP_MESSAGE_1:"\ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_MESSAGE_2:"\uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_ERROR_MESSAGE_1:"\uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_ERROR_MESSAGE_2:"\uc708\ub3c4\uc6b0 \ud504\ub85c\uadf8\ub7a8\uba85 \ub610\ub294 MacOS \ud504\ub85c\uadf8\ub7a8\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",MANDATORY_APP_ERROR_MESSAGE_3:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694",MIN_VERSION:"\ucd5c\uc18c \ubc84\uc804",MODIFIED:"\uc218\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4",MANDATORY_APP_METHOD_ADD:"\uccb4\ud06c\ubc29\uc2dd \ucd94\uac00",SERVER_INFO:"\uace0\uac1d\uc815\ubcf4",SEARCH_WITHIN_RESULT:"\uacb0\uacfc \ub0b4 \uac80\uc0c9",APPROVING_TIMEOUT:"\uc2b9\uc778 \uad8c\ud55c \uc774\uc804 \ub9cc\ub8cc \uc2dc\uac04",WEBLINK_MAX_DOWNLOAD:"\ucd5c\ub300 \ub2e4\uc6b4\ub85c\ub4dc \uc218",WEBLINK_FORCED_USE_PASSWORD:"\uc554\ud638\uac15\uc81c \uc0ac\uc6a9",WEBLINK_DEFAULT_EXPIRE_DAYS:"\uae30\ubcf8 \ub9cc\ub8cc\uc77c",WEBLINK_EXPIRE_DAYS:"\ucd5c\ub300 \ub9cc\ub8cc\uc77c",VERSION_LOCK:"\ubc84\uc804 \uc7a0\uae08",VERSION_UNLOCK:"\ubc84\uc804 \ud574\uc81c",USER_UNLOCK:"\uacc4\uc815 \ud574\uc81c",EXCLUDED_PATH:"\uc608\uc678 \uacbd\ub85c",EXCLUDED_EXT:"\uc608\uc678 \ud655\uc7a5\uc790",CLIENT:"\ud074\ub77c\uc774\uc5b8\ud2b8",BUSINESS_NUMBER:"\uc0ac\uc5c5\uc790\ubc88\ud638",CEO:"\ub300\ud45c\uc790\uba85",PARTNERSHIP_EMAIL:"\ub300\ud45c \uc774\uba54\uc77c",PHONE:"\uc804\ud654\ubc88\ud638",FAX:"\ud329\uc2a4",REQUESTED:"\uc694\uccad",PROCESSED:"\ucc98\ub9ac",FPOD_TITLE:"\uacfc/\uc624\ud0d0 \ucc98\ub9ac",FPOD_TEXT_1:"\uacfc/\uc624\ud0d0 \ubcf4\uace0 \uc0ac\uc6a9\uc790 \ubaa9\ub85d",FPOD_TEXT_2:"\uc7ac\uac80\ucd9c \ubc29\uc9c0 \uc124\uc815",PARTNERSHIP:"\ud611\ub825\uc0ac",PARTNERSHIP_ADD:"\ud611\ub825\uc0ac\ucd94\uac00",PARTNERSHIP_NAME:"\ud611\ub825\uc0ac\uba85",USER_LOCK_MESSGE_1:"\uc0ac\uc6a9\uc790 \uacc4\uc815\uc744 \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",USER_LOCK_MESSGE_2:"\uc0ac\uc6a9\uc790 \uacc4\uc815\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",USER_INFO:"\uc0ac\uc6a9\uc790 \uc815\ubcf4",PERM_INFO:"\uad8c\ud55c \uc815\ubcf4",USER_DYNAMIC_SECURITY_MODE_HELP_TEXT:"\uc0ac\uc6a9\uc2dc COODOC\uc774 \uc885\ub8cc \ub41c \uacbd\uc6b0 \ubcf4\uc548\uae30\ub2a5\uc744 \uc0ac\uc6a9 \uc548 \ud568",FILE_ACCESS_LOG:"\ud30c\uc77c \uc811\uadfc \ub85c\uadf8",SUB_ADMIN_ASSIGN:"\ud558\uc704\uad00\ub9ac\uc790 \uc9c0\uc815",PII_DETECTION_LOG:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ub0b4\uc5ed",PARTNER_MANAGEMENT:"\ud611\ub825\uc0ac \uad00\ub9ac",TAKEOUT_REQUEST_MANAGEMENT:"\ubc18\ucd9c \uc694\uccad \uad00\ub9ac",USERPAGE_ERROR_MESSAGE_1:"\ucd5c\uc0c1\uc704\uc5d0\ub294 \uc0c8\ud3f4\ub354\ub97c \ub9cc\ub4e4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",TAKEOUT_APPROVAL_REVIEW:"\uc2ec\uc0ac",TAKEOUT_REVIEW:"\ubb38\uc11c \ubc18\ucd9c \uc2ec\uc0ac",TAKEOUT_FILE_LIST:"\ubb38\uc11c \ubc18\ucd9c \ubaa9\ub85d",TAKEOUT_APPROVE_CONFIRM:"\uc2b9\uc778\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",TAKEOUT_REJECT_CONFIRM:"\uac70\uc808\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",RECOMMENDED:"\uad8c\uc7a5",COLLECT_GLOBAL_SETTINGS_HINT_1:"\uc218\uc9d1\ud560 \ud30c\uc77c\uc758 \ubc94\uc704\ub97c \uc124\uc815",COLLECT_GLOBAL_SETTINGS_HINT_2:"\uc218\uc9d1 \ub300\uc0c1 \uacbd\ub85c\ub9cc \uc218\uc9d1 \ub300\uc0c1",COLLECT_GLOBAL_SETTINGS_HINT_3:"\uc81c\uc678 \uacbd\ub85c\ub97c \uc81c\uc678\ud55c \uacbd\ub85c\ub9cc \uc218\uc9d1 \ub300\uc0c1",COLLECT_SCOPE_SETTINGS:"\uc218\uc9d1 \ubc94\uc704 \uc124\uc815",COLLECT_PATH_POLICY:"\uacbd\ub85c\uc815\ucc45",ADD_INCLUSIVE_PATH:"\ub300\uc0c1 \uacbd\ub85c \ucd94\uac00",ADD_IGNORE_PATH:"\uc81c\uc678 \uacbd\ub85c \ucd94\uac00",COLLECT_FILE_CONDITIONS:"\uc218\uc9d1 \ud30c\uc77c \uc870\uac74",COLLECT_GLOBAL_SETTINGS_HINT_4:"\uc218\uc9d1\ud560 \ud30c\uc77c\uc758 \uc870\uac74\uc744 \uc124\uc815",ADD_INCLUSIVE_EXT:"\uc9c0\uc815 \ud655\uc7a5\uc790 \ucd94\uac00",ADD_IGNORE_EXT:"\uc81c\uc678 \ud655\uc7a5\uc790 \ucd94\uac00",ADDITIONAL_FILE_CONDITIONS:"\ucd94\uac00 \ud30c\uc77c \uc870\uac74",COLLECT_STORAGE_OPTION:"\uc800\uc7a5\uc7a5\uce58 \ubc0f \uc2e4\ud589 \uc635\uc158",COLLECT_GLOBAL_SETTINGS_HINT_5:"\uc218\uc9d1\ud560 \uc800\uc7a5\uc7a5\uce58\uc640 \uc2e4\ud589 \uc635\uc158 \uc124\uc815",COLLECT_DRIVE:"\uc218\uc9d1 \ub300\uc0c1 \uc800\uc7a5\uc7a5\uce58",COLLECT_OPTION:"\uc2e4\ud589 \uc635\uc158",EXTENSION:"\ud655\uc7a5\uc790",COLLECT_REGIST_HINT_1:"\ub2e4\uc911 \uc785\ub825\uc2dc \ucf64\ub9c8 ','\ub85c \uad6c\ubd84",COLLECT_REGIST_HINT_2:"\uc815\uaddc\uc2dd \uc0ac\uc6a9 \uac00\ub2a5",COLLECT_REGIST_HINT_3:"\uc218\uc9d1 \ud3f4\ub354\uba85",COLLECT_REGIST_MESSAGE_1:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4",COLLECT_REGIST_MESSAGE_2:"\uc774\ubbf8 \ub2e4\ub978 \uc720\ud615\uc73c\ub85c \ub4f1\ub85d\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4",VALUE_TO_REGISTER:"\ub4f1\ub85d\ud560 \uac12\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",COLLECTOR_SUPPORT:"\uc218\uc9d1\uae30\ub2a5\ud65c\uc131\ud654",COLLECTOR_MODE:"\uc218\uc9d1\ubaa8\ub4dc",COLLECT_GLOBAL_SETTINGS_HINT_6:"\uc815\ucc45\uc5d0 \ub530\ub77c \uc0ac\uc6a9\uc790 PC\uc758 \ud30c\uc77c\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\uc9d1",COLLECT_GLOBAL_SETTINGS_HINT_7:"\uc218\uc9d1\ubc29\uc2dd\uacfc \ubc94\uc704 \uc120\ud0dd",COLLECT_MODE_1:"\uc5c5\ubb34\ubb38\uc11c \uc218\uc9d1",COLLECT_MODE_2:"\uc0ac\uc6a9\uc790 \uc9c0\uc815 \ud655\uc7a5\uc790 \uc218\uc9d1",COLLECT_MODE_3:"\uc804\uccb4 \uc218\uc9d1",COLLECT_GLOBAL_SETTINGS_HINT_8:"\ud68c\uc0ac \uc5c5\ubb34\uc5d0 \uc0ac\uc6a9\ud558\ub294 \ubb38\uc11c/\ub3c4\uba74/\uc774\ubbf8\uc9c0 \ud30c\uc77c\ub9cc \uc218\uc9d1\ud569\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_9:"\uc608: ",COLLECT_GLOBAL_SETTINGS_HINT_10:"\uad00\ub9ac\uc790\uac00 \uc9c0\uc815\ud55c \ud655\uc7a5\uc790\ub9cc \uc218\uc9d1\ud569\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_11:"\uc81c\uc678 \uacbd\ub85c\uc678 \uc81c\uc678 \ud655\uc7a5\uc790\ub97c \uc81c\uc678\ud55c \ud30c\uc77c\uc774 \uc218\uc9d1 \ub300\uc0c1\uc774 \ub429\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_12:"\uc81c\uc678\uacbd\ub85c \uc678 \ub300\ubd80\ubd84\uc758 \ud30c\uc77c\uc774 \uc218\uc9d1\ub300\uc0c1\uc774 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4",WARNING:"\uace0\uae09/\uc8fc\uc758",TAKEOUT_REASON_REJECT_ERROR:"\ubc18\ub824\uc0ac\uc720\ub97c \uc785\ub825\ud558\uc138\uc694",AWAITING_APPROVAL:"\uc2b9\uc778\ub300\uae30",REGISTER_MOBLIE_TOKEN:"\uae30\uae30\ub4f1\ub85d",REGISTER_MOBLIE_TOKEN_CONFIRM:"\uae30\uae30\ub97c \ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",REGISTER_MOBLIE_TOKEN_ALREADY:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \uae30\uae30\uc785\ub2c8\ub2e4",REGISTER_MOBLIE_TOKEN_SUCC:"\uae30\uae30\ub4f1\ub85d \uc131\uacf5",REGISTER_MOBLIE_TOKEN_FAILD:"\uae30\uae30\ub4f1\ub85d \uc2e4\ud328",TAKEOUT_REQUEST_INFO:"\uc694\uccad \uc815\ubcf4"};var uh={CONFIRM:"OK",USE:"Enable",UNUSED:"Disable",APPLY:"Apply",UNAPPLIED:"Cancel",CANCEL:"Cancel",ADD:"Add",CHANGE:"Modify",DELETE:"Delete",REMOVE:"Remove",MOVE:"Move",YES:"Yes",NO:"No",CLOSE:"Close",MODIFY:"Modify",TIME:"Time",PERMIT:"Allow",BLOCK:"Block",SELECTED:"Selected",UNSELECTED:"Unselected",MONTH:"\uc6d4",DAY:"\uc77c",HOUR:"\uc2dc",MINUTE:"\ubd84",SEC:"Second",CHECK_ALL:"Check all",NOTE:"Ref.",IP_ADDRESS:"IP",LOGIN_ERROR_MESSAGE_1:"Wrong ID or password",LOGIN_ERROR_MESSAGE_2:"Authentication has failed",LOGIN_ERROR_MESSAGE_3:"Timeout the input period",LOGIN_ERROR_MESSAGE_4:"Registered already",LOGIN_ERROR_MESSAGE_5:"Wrong input",LOGIN_ERROR_MESSAGE_6:"Only the administrator can connect to it",LOGIN_ERROR_MESSAGE_8:"Only the administrator can connect to it",TOTP_SETTING:"Setup TOTP",TOTP_AUTH:"Enable TOTP authentication",TOTP_AUTH_USED:"TOTP authentication has enabled",TOTP_SETTINGKEY:"\uc124\uc815\ud0a4",TOTP_VALUE:"The value of TOTP",TOTP_MESSAGE_1:"Do you want to enable TOTP authentication as a 2-factor authentication?",TOTP_MESSAGE_2:"Timeout the input period",LOGOUT:"Log off",LOGOUT_MESSAGE_1:"Do you want to log off now?",ID:"ID",PASSWORD:"Password",NAME:"Name",EMAIL:"Email",PASSWORD_CONFIRM:"Confirmation password",PASSWORD_AUTO:"\uc554\ud638 \uc790\ub3d9\uc0dd\uc131",ACCESS_LEVEL:"Access level",LEVEL:"Level",CREATE:"Creation",REMEMBER_ME:"Save an ID",REMEMBER_PW:"Save a password",LOGIN:"Login",PRINT_PASSWORD:"Paper OTP",PRINT_PASSWORD_AUTH:"Paper OTP authentication",PRINT_PASSWORD_CONTEXT:"Input 3 values continually without a white space which are placed at '%s' on the paper OTP. The paper OTP can be used only for a day when you can't use TOTP and you can get it through the administrator",PRINT_PASSWORD_ERROR_MESSAGE_1:"There is no paper OTP has been issued. Contact the administrator",PRINT_PASSWORD_ERROR_MESSAGE_2:"Wrong paper OTP",CREATE_ADMIN:"Create an administrator",SERVER_ENCRYPT:"Encrypt files on the server side",LANGUAGE:"Language",REGISTER_ERROR_MESSAGE_1:"Registration has failed",REGISTER_PRODUCT:"Product Registration",REGISTER:"Register",ADMIN_ERROR_MESSAGE_1:"Registration of the administrator has failed",ADMIN_ERROR_MESSAGE_2:"There is no administrator has been registered",SHARED_FOLDER:"The shared folder (Shared Folder)",ORG_FOLDER:"The organization folder (Organization Folder)",PRIVATE_FOLDER:"The private folder (Private Folder)",COLLECTOR_FOLDER:"The collect folder (Collect Folder)",ORGSHARED_FOLDER:"The shared folder in the organization (Shared in Organization Folder)",ORGSHARED:"",ETC:"",FOLDER_ADD:"Folder's add",FOLDER_NAME:"Folder's name",USER:"User",USER_TITLE:"User",USER_ADD:"Add an user (Add User)",USER_SELECT:"Select an user (Select User)",USER_MESSAGE_SEND:"Send Message",ORG_TITLE:"Organization",ORG_ADD:"Add an organization (Add Organization)",ORG_NAME:"Organization's name",ORG_TOP:"The path of the organization (Organization's path)",SHARED_TITLE:"Shared",SECUREDOC_TITLE:"Secure Document",PERM_NO_FOLDER:"There is no folder that can be added",PERM_NO_USER:"There is no user that can be added",PERM_FOLDER_INPUT:"Add the folder permission (Add Folder Permission)",PERM_USER_INPUT:"Add the user permission",PERM_READ:"Read only",PERM_READ_WRITE:"Write only",PERM_FILE:"\ud30c\uc77c\uad8c\ud55c",PERM_TRASH:"trash",PERM_TRASH_POSSIBLE:"Allow purging of the trash",PERM_TRASH_IMPOSSIBLE:"Disallow purging of the trash",PERM_NONE:"Hidden",PERM_NOT_NONE:"Visible",PERM_DELETE:"Remove a permission",PERM_FILE_DELETE:"File Delete Permission",PERM_FILE_DELETE_POSSIBLE:"File Delete Possible",PERM_FILE_DELETE_IMPOSSIBLE:"File Delete Impossible",PERM_INPUT_TEXT:"Search the users",PERM_FOLDER_TITLE:"Add the folder permission",NO_USER:"There is no user",USER_TOTP_TITLE:"Reset the user's TOTP",USER_TOTP_CONTENT:"Do you want to reset the user's TOTP?",DELETE_FOLDER_TITLE:"Remove the folder",DELETE_CONTENT_USER:"Do you want to remove",DELETE_CONTENT_FOLDER:"\ud3f4\ub354\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",MULTIPLE_LOGINS:"\uc911\ubcf5\ub85c\uadf8\uc778",USER_DELETE_CONTENT_1:"The private and collect folder of the user who will be removed might be moved to the specific user",USER_DELETE_CONTENT_2:"Select the user who will be received the private and collect folder of the user who will be removed. (The folders and the files will be removed totally if you don't select the user)",USER_DELETE_CONTENT_3:"Do you want to delete the user?",USER_MENU_1:"Reset the password",USER_MENU_2:"Reset the paper OTP",USER_MENU_3:"Release the TOTP",USER_MESSAGE_1:"The user has added",USER_MESSAGE_2:"\uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_4:"The name has changed",USER_MESSAGE_5:"The email has changed",USER_MESSAGE_6:"The access level has changed",USER_MESSAGE_7:"The password has been reset",USER_MESSAGE_8:"The TOTP has been reset",USER_MESSAGE_9:"The user has removed",USER_MESSAGE_10:"It has been ruled out from the HR Information system sync",USER_MESSAGE_11:"It has been included in the HR Information system sync",USER_MESSAGE_12:"The manual register user has been modified",USER_MESSAGE_13:"\uc911\ubcf5 \ub85c\uadf8\uc778\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_14:"\uac1c\uc778\ud3f4\ub354 \ubc18\ucd9c \uc815\ucc45\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_15:"\uc870\uc9c1\ud3f4\ub354 \ubc18\ucd9c \uc815\ucc45\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_MESSAGE_16:"\uacc4\uc815 \uc7a0\uae08\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",USER_ERROR_MESSAGE_1:"The administrator can't be removed",USER_ERROR_MESSAGE_2:"Removing has failed",USER_ERROR_MESSAGE_3:"Input an ID",USER_ERROR_MESSAGE_4:"Input the name",USER_ERROR_MESSAGE_5:"Input the password",USER_ERROR_MESSAGE_6:"Input the confirmation password",USER_ERROR_MESSAGE_7:"The two passwords are mismatched",USER_ERROR_MESSAGE_8:"The ID has owned by others",USER_ERROR_MESSAGE_9:"The ID must have equal or less than 30 characters",USER_ERROR_MESSAGE_10:"Not enough user licenses",USER_ERROR_MESSAGE_11:"The name must have equal less than 30 characters",USER_ERROR_MESSAGE_12:"Select the user",USER_ERROR_MESSAGE_13:"The product has expired",USER_ERROR_MESSAGE_14:"Select the folder",USER_ERROR_MESSAGE_16:"Resetting the password has failed",USER_ERROR_MESSAGE_17:"Issuing the paper OTP has failed",USER_ERROR_MESSAGE_18:"Resetting the TOTP has failed",USER_ERROR_MESSAGE_19:"The user can't be removed if it's being used",USER_ERROR_MESSAGE_20:"Select the manual register user",USER_ERROR_MESSAGE_21:"1\uac1c\uc758 \uc0ac\uc6a9\uc790\ub9cc \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",PATTERN_ERROR_MESSAGE:"\\', '\"', '/', ':', '?', '*', '<', '>', '|' are not allowed",RESET_PASSWORD_TITLE:"Modifying the password of %s",RESET_PASSWORD_CONTENT:"Resetting the password. The user must log in with the password that has been reset and modify it to the new password",RESET_PASSWORD_ERROR_MESSAGE_1:"Input the new password",RESET_PASSWORD_ERROR_MESSAGE_2:"Input the new confirmation password",RESET_PASSWORD_ERROR_MESSAGE_3:"The two passwords are mismatched",RESET_NEW_PASSWORD:"New password",RESET_NEW_PASSWORD_CONFRIM:"New confirmation password",PERM_MESSAGE_1:"The permission has modified",PERM_MESSAGE_2:"The permission has removed",PERM_ERROR_MESSAGE_1:"Modifying the permission has failed",PERM_ERROR_MESSAGE_2:"Removing the permission has failed",PERM_ERROR_MESSAGE_3:"Select the folder",PERM_ERROR_MESSAGE_4:"There has duplicated administrator's priority already",PERM_ERROR_MESSAGE_5:"Personal/Collection folders cannot be removed",PERM_ERROR_MESSAGE_6:'The permission is added by organization. Please remove it from "Shared"',ORG_MANAGER:"Organization Manager",ORG_SUB_MANAGER:"Sub Organization Manager",SHARED_MESSAGE_1:"The shared folder has removed",ORG_MESSAGE_1:"The organization has removed",ORG_ERROR_MESSAGE_1:"Removing the organization has failed",ORG_ERROR_MESSAGE_2:"Select the organization",SHARED_ERROR_MESSAGE_1:"Removing the shared folder has failed",SHARED_ERROR_MESSAGE_2:"The shared folder has added",FOLDER_ERROR_MESSAGE_1:"Input the name of the folder",FOLDER_ERROR_MESSAGE_2:"There has a same folder name already",FOLDER_ERROR_MESSAGE_3:"Input it has equal or less than 30 characters",FOLDER_ERROR_MESSAGE_4:"You can't set permission to the top-level folder",FOLDER_ERROR_MESSAGE_5:"The only user who registered the organization's shared folder can release",RESTORE_TEMP:"Temporary restoring",RESTORE_TEMP_PROCESSING:"Restoring as temporary",RESTORE_TEMP_FINISH:"Finished temporary restore",RESTORE_TITLE:"Do you want to start restoring?",RESTORE_MESSAGE_1:"Modified things in today will be revoked",RESTORE_MESSAGE_2:"Do you want to stop the temporary restoring?",RESTORE_MESSAGE_3:"Type 'Start Restoring' and push OK if you want to start restoring",RESTORE_MESSAGE_4:"Mofiied things after the selected time will be revoked",RESTORE_MESSAGE_5:"Do you want to revoke modified things after the selected time that you selected?",RESTORE_MESSAGE_6:"Select one of the temporary restoring or restore",RESTORE_MESSAGE_7:"Can't modify while restoring",RESTORE_MESSAGE_8:"The system is restoring as temporarily in progress",RESTORE_MESSAGE_9:"The time to revoke",RESTORE_ERROR_MESSAGE_1:"Input the confirmation text",RESTORE_ERROR_MESSAGE_2:"Wrong confirmation text",RESTORE_ERROR_MESSAGE_3:"The temporary restoring mode is ambiguous",RESTORE_ERROR_MESSAGE_4:"Executing the temporary restoring has failed",RESTORE_ERROR_MESSAGE_5:"Finishing the temporary restoring has failed",RESTORE_ERROR_MESSAGE_6:"The restore mode is ambiguous",RESTORE:"Restore",RESTORE_SUB_TITLE:"The time of restoration",RESTORE_MODE:"Restore mode",RESTORE_MODE_TODAY:"Today",RESTORE_MODE_HOUR:"Hour",RESTORE_MODE_DAY:"Day",RESTORE_HOUR:"Hours of restoration",RESTORE_NOW:"Last recent",RESTORE_HOUR_BEFORE:"hour(s) before",RESTORE_TODAY:"Revoking what modified things at today",RESTORE_ONE_TIME:"Revoking modified things after a specific time",RESTORE_DAY:"Period",RESTORE_ONE_DAY:"Date",RESTORE_TEMP_CHANGING:"Processing a temporary restore file in progress",RESTORE_CHANGING:"Processing",SECUREDOC:"The secure document",SECUREDOC_READFILE:"A document for reading",SECUREDOC_RELEASE_TITLE:"Release a secure document",SECUREDOC_RELEASE_CONTENT:"Do you want to release the secure document?",SECUREDOC_DOCID:"Document No.",SECUREDOC_TYPE:"Document type",SECUREDOC_PATH:"Document",SECUREDOC_MESSAGE_1:"The accessible users of the secure document have been modified",SECUREDOC_MESSAGE_2:"The access level of the secure document has been modified",SECUREDOC_MESSAGE_3:"The secure document has been released",SECUREDOC_ERROR_MESSAGE_1:"Modifying information of the secure document has failed",SECUREDOC_ERROR_MESSAGE_2:"Releasing the secure document has failed",SERVER_SETTING:"Miscellaneus",SETTING:"Setting",SAVED:"Saved",FACTORY_RESET:"Factory Reset",RESET:"Resetting",FACTORY_RESET_CONFIRM:"Do you want to perform the factory reset?",FACTORY_RESET_MESSAGE:"We will move to the page of creating an administrator after performing the factory reset.",FACTORY_RESET_FAILED:"Factory resetting has failed",DEFAULT_SETTING:"Basic",WEBLINK_SETTING:"Web-link",WEBLINK_USED:"Enable the web-link service",WEBLINK_SERVICE_PORT:"Web-link service port",WEBLINK_SERVICE_ADDR:"Web-link service address",FOLDER_SIZE_SETTING:"Storage size of each folder",PRIVATEFOLDER_SIZE:"Storage size of the private folder",COLLECTFOLDER_SIZE:"Storage size of the collect folder",SHAREDFOLDER_SIZE:"Storage size of the shared folder",ORGFOLDER_SIZE:"Storage size of the organization folder",FOLDER_SIZE_HELP_TEXT:"Unlimited if it's 0",COLLECT_GLOBAL_SETTING:"Collector",COLLECT_PRIVATE_SETTING:"Collection for each user",COLLECT_USE:"Enable collecting",COLLECT_USED:"Enabled collecting",COLLECT_NOT_USE:"Disabled collecting",COLLECT_USE_FULL_SCAN:"Collecting the legacy files",COLLECT_USE_FULL_SCAN_MANAGEMENT:"Manage of collecting the legacy files",COLLECT_USED_FULL_SCAN:"Enable collecting the legacy files",COLLECT_NOT_USED_FULL_SCAN:"Disable collecting the legacy files",COLLECT_USE_REMOVE_SOURCE:"Move the documents",COLLECT_USED_REMOVE_SOURCE:"Enable move the documents",COLLECT_NOT_USED_REMOVE_SOURCE:"Disable move the documents",COLLECT_SYNC_REMOVE:"Enable the removed files sync",COLLECT_PATH_SETTING:"Collecting path",INCLUSIVE:"Method of including paths",EXCLUSIVE:"Method of excluding paths",COLLECT_EXCLUSIVE_EXT_SETTING:"\ud655\uc7a5\uc790 \uc815\ucc45",COLLECT_EXCLUSIVE_EXT_SETTING_HELP_TEXT:"The extensions of collecting target files that are registered by the method of including the file extension will be used to detect ransomware. You have to set the file extensions up specially to detect ransomware when you use the method of excluding the file extension.",INCLUSIVE_EXT:"Method of including the file extension",EXCLUSIVE_EXT:"Method of excluding the file extension",COLLECT_EXCLUSIVE_EXT:"File extensions to skip",COLLECT_EXT:"File extensions to collect",RANSOMWARE_EXT:"File extensions to detect ransomware",COLLECT_IGNORE:"Paths to skip",COLLECT_INCLUSIVE:"Paths to collect",COLLECT_MESSAGE_1:"The setting has applied",COLLECTOR_TRANSFER_SIZE:"Transfer size of collecting",COLLECTOR_INTERVAL_TRANSFER:"Interval period per transfer",COLLECTOR_INTERVAL_TRANSFER_HELP_TEXT:"The collected file will be uploaded by the uploader. The uploader will be paused as long as the 'interval period' after uploading as much as the 'transfer size'",COLLECT_ALL_USE:"Enable collecting for everybody",COLLECT_ALL_UNUSED:"Disable collecting for everybody",COLLECT_ALL_APPLY:"Apply to everybody",COLLECT_ALL_UNAPPLIED:"??",COLLECT_FULL_SCAN_STATUS:"Status of collecting legacy files",COLLECT_FULL_SCAN_RESTART:"Restart collecting legacy files",COLLECT_FULL_SCAN_PRESCANNED_FOLDERS:"Prescanned folders",COLLECT_FULL_SCAN_PENDING_FOLDERS:"Pending folders",COLLECT_FULL_SCAN_PENDING_FILES:"Pending files",COLLECT_FULL_SCAN_REQUEST_AT:"Requested date to restart collecting",COLLECT_FULL_PRESCAN_FINISHED_AT:"Finished time to prescann",COLLECT_FULL_SCAN_FINISHED_AT:"Finished time to scan",COLLECT_FULL_SCAN_STATUS_NONE:"Idle",COLLECT_FULL_SCAN_STATUS_STARTED:"Scanning",COLLECT_FULL_SCAN_STATUS_PRESCANED:"Collecting",COLLECT_FULL_SCAN_STATUS_FINISHED:"Finished",EXTERNAL_SETTING:"Incoming Connection",EXTERNAL_USED:"Enable incoming connection",EXTERNAL_SERVERNAME:"The server name for the incoming connection",EXTERNAL_MESSAGE:"The incoming connection has been set up",EXTERNAL_ERROR_MESSAGE_1:"Only an english and numeric are available",EXTERNAL_ERROR_MESSAGE_2:"Input the server name for the incoming connection",EXTERNAL_ERROR_MESSAGE_3:"The server name can't be modified when the incoming connection has been disabled",EXTERNAL_ERROR_MESSAGE_4:"Setting the incoming connection has failed",EXTERNAL_ERROR_MESSAGE_5:"The server name is being used already",EXTERNAL_ERROR_MESSAGE_6:"Nothing has been changed",SETTING_BACKUP_KEEPDAY:"Period to keep revision files",SETTING_DEFAULT_VOLUME_LABEL:"Default volume label",SETTING_SAMBA_PORT_USE:"Using the default SAMBA port",SETTING_SAMBA_PORT_USE_HINT:"Whether using 445 port or not. It should be enabled if there has a user to use sharing the local file.",SETTING_TWO_FACTOR_AUTH:"Force to enable 2-factor authentication",SETTING_DISABLE_TWO_FACTOR_AUTH:"Disable the 2-factor authentication",SETTING_NO_SHELL_MENU:"Hide the context menu",SETTING_STRONG_PASSWORD:"Enable the strong password",SETTING_STRONG_PASSWORD_HINT:"It let the user can't use a simple password. If it has been enabled then a password should have equal or more than 8 characters and also includes at least one capital letter, lowercase letter, numeric, and a special character each",SETTING_UPDATE:"Update",SETTING_UPDATE_MESSAGE_1:"The update file has been registered. If the file is the server file, the server will be restarted, and after that, it will be applied.",SETTING_UPDATE_ERROR_MESSAGE_1:"Invalid the update file",SETTING_UPDATE_ERROR_MESSAGE_2:"This is the lower version than the current",SETTING_UPDATE_ERROR_MESSAGE_3:"Updating has been failed",SETTING_PII_DETECT:"Detecting PII(Personal Identifiable Information)",SETTING_PII_DETECT_ENABLE:"Enable detecting PII",SETTING_PII_DETECT_OCR:"Support OCR",SETTING_DUP_DETECT_ENABLE:"Enable detecting the duplicated files",SETTING_RANSOMWARE_DETECT_USE:"Enable detecting ransomware",SETTING_SECURE_DOCUMENT_USE:"Support the secure document",SETTING_MIN_SMB_VERSION:"Support minimum SMB protocol version",SETTING_SMB_ENCRYPTION:"Enable SMB packet encryption",SETTING_SMB_ENCRYPTION_HELP_TEXT:"It makes the system use an encrypted SMB packet. It prevents leak data especially in a not secured environment outside, unlike a VPN but the transferring speed will be slowed slightly.",DOWNLOAD:"Download",DOWNLOAD_CLIENT:"Download a client",EXPIRE_AT:"Expire date",LICENSES_TITLE:"\ub77c\uc774\uc13c\uc2a4 \uc815\ubcf4",USER_LICENSES:"Users",MAINTENANCE_AT:"\uc720\uc9c0\ubcf4\uc218 \uae30\ud55c",PRODUCTKEY_STATE:"Status of the product key",INVALID:"Abnormal",VALID:"Normal",SEEDKEY:"Seed-key info.",COPY:"Copy",SEEDKEY_COPY:"Copy the seed-key",WEBLINK_ERROR_MESSAGE_1:"Exceed the limit count of download",WEBLINK_ERROR_MESSAGE_2:"The download link didn't activated",WEBLINK_ERROR_MESSAGE_3:"The download has expired",WEBLINK_ERROR_MESSAGE_4:"Invalid download link. Check the URL",WEBLINK_ERROR_MESSAGE_5:"Input the password",WEBLINK_ERROR_MESSAGE_6:"Input the confirmation password",WEBLINK_ERROR_MESSAGE_7:"Two password are mismatched",WEBLINK_ERROR_MESSAGE_8:"Input the limit count of download",WEBLINK_ERROR_MESSAGE_9:"Input the limit count of download as a number",WEBLINK_ERROR_MESSAGE_10:"\uc6f9 \ub9c1\ud06c\ub97c \ub9cc\ub4e4 \ud30c\uc77c\uc744 \ucc30\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",NAME_CHANGE:"Change the name",ORG_CHANGE_MESSAGE:"Do you want to change the name of the organization?",SHARED_CHANGE_MESSAGE:"Do you want to change the name of the shared folder?",TRANSFER:"Moving documents",MOVE_ORG_DATA_TITLE:"Moving data",SOURCE_ORG_NAME:"Original organization folder",TARGET_ORG_NAME:"Target organization folder",MOVE_ORG_DATA_MESSAGE_1:"Do you want to move the data of the organization folder?",MOVE_ORG_DATA_MESSAGE_2:"The data has been moved",MOVE_ORG_DATA_ERROR_MESSAGE_1:"The original and target organization are same",MOVE_ORG_DATA_ERROR_MESSAGE_2:"Moving data has been failed",RESTRICT_TITLE:"The files prevented to saving",RESTRICT_SIZE_TITLE:"Restrict size",RESTRICT_EXT_TITLE:"Restrict extensions",RESTRICT_EXT_HELP_TEXT:'You can set multiple extensions separated by ""',RESTRICT_EXT_REMOVE:"Prevent saving by the extensions",RESTRICT_EXT_REMOVE_HELP_TEXT:"If it activated, the files that were restricted by its extensions occurred errors immediately when they tried to be saved. If it doesn't activate, the files are allowed to save but they will be removed by the batch process",CURRENT_PASSWORD:"The current password",NEW_PASSWORD:"The new password",CHANGE_PASSWORD:"Change the password",SHUTDOWN:"Exit",SYSTEM_SHUTDOWN:"Shutdown the system",SHUTDOWN_MESSAGE_1:"Do you want to shutdown the system?",SHUTDOWN_MESSAGE_2:"The system has been shutdown",NO_USED:"No activated",USAGE:"Usage",GROUP_USAGE:"Usage per group",REMAINING_CAPACITY:"Storage remained",TOTAL_CAPACITY:"Total storage",ALL:"All",DETAIL:"Details",ACCESS_TYPE:"Access types",ACCESS_TYPE_CREATE:"Created",ACCESS_TYPE_READ:"Read",ACCESS_TYPE_MOVE:"Moved",ACCESS_TYPE_UPDATE:"Updated",ACCESS_TYPE_HOLD:"Hold",ACCESS_TYPE_REMOVE:"Removed",ACCESS_TYPE_REMOVE_TRASH:"Trashing",ACCESS_TYPE_RECOVERY_TRASH:"Recovery trash",ACCESS_TYPE_PURGE_TRASH:"Purge trash",ACCESS_TYPE_VIEWING:"Viewed",ACCESS_TYPE_WEB_CREATE:"Upload",ACCESS_TYPE_WEB_DOWNLOAD:"Download",ACCESS_TYPE_COLLECT_FILE:"Collect",ACCESS_TYPE_START_VIEWING:"\uc5f4\ub78c\uc2dc\uc791",TODAY_AVERAGE_DATA:"Average usage",FILE_LOCATION:"File location",REGIST_DATE:"Register date",REGIST_USER:"User who registered",RELEASE:"Release",SECUREDOC_DIALOG_CONTENTS_1:"The minimum level to access the secure document",SECUREDOC_DIALOG_CONTENTS_2:"The users who can access the secure document",SECUREDOC_DIALOG_CONTENTS_3:"There is no specific user who can access the secure document",SECUREDOC_DIALOG_MESSAGE_1:"You have no right to downgrade the access level",SECUREDOC_DIALOG_MESSAGE_2:"Released",SECUREDOC_DIALOG_MESSAGE_3:"Changed",SECUREDOC_DIALOG_MESSAGE_4:"Registered",DELETE_PERMANENTLY:"Removing permanently",NEW_FOLDER:"New folder",UPLOAD:"Upload",FILE_DOWNLOAD:"Download",PASTE:"Paste",SEARCH:"Search",SEARCH_ID_NAME:"ID/Name Search",SELECT_ORG:"Select Organization",SELECTED_ORG:"Selected Organization",RELEASE_ORG:"Release Organization",CUT:"Cut",REVISION_HISTORY:"Revision History",SEARCH_IN_FOLDER:"Search in the folder",SEARCH_DELETED_FILE_IN_FOLDER:"Search deleted files in the folder",RENAME:"Rename",CONTEXT_MESSAGE_1:"You can't upload files into the top-level folder",CONTEXT_MESSAGE_2:"The folder has the same name exists already",CONTEXT_MESSAGE_3:"The file has the same name exists already",CONTEXT_MESSAGE_4:"You have no permission",CONTEXT_MESSAGE_5:"Creation has been failed",CONTEXT_MESSAGE_6:"Select only one file",CHANGE_PASSWORD_MESSAGE_1:"The password has been changed",CHANGE_PASSWORD_ERROR_MESSAGE_1:"The new password is mismatched",CHANGE_PASSWORD_ERROR_MESSAGE_2:"The new password is the same as the previous one",CHANGE_PASSWORD_ERROR_MESSAGE_3:"The current password is mismatched",CHANGE_PASSWORD_ERROR_MESSAGE_4:"The password should have at least one capital, lowercase, numeric, and one special character each",FILE_NAME:"File's name",FILE_SIZE:"File's size",FILE_MODIFIED:"Last modified",REVERT:"",REVISION_DELETE:"Remove a revision",REVISION_EMPTY:"There has no revision",REVISION_DIALOG_MESSAGE_1:"Select a revision",REVISION_DIALOG_MESSAGE_2:"The current file has been replaced with the selected revision",REVISION_DIALOG_MESSAGE_3:"Do you want to restore the current file by the selected revision?",REVISION_DIALOG_MESSAGE_4:"Do you want to remove a selected revision?",SEARCH_ALL:"Search",SEARCH_BELOW:"Search under",SEARCH_STRING:"Search string",SEARCH_EXCLUSION_STRING:"Exclude string",SEARCH_EXTS:"Extensions (separated by comma)",OPTION:"Options",PREFIX:"Prefix",LIKE:"Likes",DELETE_DATE:"Deleted date",DELETE_USER:"User",DELETE_USER_ID:"User ID",DELETE_USER_NAME:"User Name",SEARCH_DIALOG_MESSAGE_1:"Select a file",RESTORE_COMPLETE:"Restored",DELETE_COMPLETE:"Deleted",MAX_CAPACITY:"Restrict storage size",PRIVATE_MAX_CAPACITY:"Restrict the private folder size",COLLECT_MAX_CAPACITY:"Restrict the collect folder size",COLLECT_DRIVE_FIXED:"fixed storage(Local Disk)",COLLECT_DRIVE_REMOVABLE:"removable storage(USB)",COLLECT_DRIVE_CDROM:"CD-ROM",COLLECT_DRIVE_RAMDISK:"RAMDISK",COLLECT_DRIVE_REMOTE:"remote drive",COLLECT_DRIVE_FIXED_HOTPLUG:"USB fixed storage",CHANGE_CAPACITY_MESSAGE_1:"The limit size of the private folder has been changed",CHANGE_CAPACITY_MESSAGE_2:"The limit size of the collect folder has been changed",CHANGE_CAPACITY_MESSAGE_3:"The limit storage size has been changed",CHANGE_CAPACITY_MESSAGE_4:"\ubcc0\uacbd \uc0ac\ud56d\uc774 \ubc18\uc601 \uc911\uc785\ub2c8\ub2e4.",CHANGE_CAPACITY_ERROR_MESSAGE_1:"Chaning the limit storage size has been failed",PII_DOCUMENTS:"Detect PII (Personal Identifiable Information)",PII_NAME:"Target name to detect",PII_ELEMENT:"Elements to detect",DUP_DOCUMENTS:"Duplicated documents",DUP_FILE_HASH:"File Hash",DUP_FILE_PATH:"Location of the file",WHITE_PROCESS:"White process",PROCESS:"Process",URL:"URL",URL_REGISTRATION:"URL Registration",PROCESS_DELETE_TITLE:"Remove the process",URL_DELETE_TITLE:"Remove the URL",PROCESS_DELETE_CONTENT:"Do you want to remove the process %s?",URL_DELETE_CONTENT:"Do you want to remove the URL %s?",PROCESS_APPROVE_TITLE:"\ud504\ub85c\uc138\uc2a4 \uc2b9\uc778",PROCESS_APPROVE_CONTENT:"\ud504\ub85c\uc138\uc2a4\ub97c %s \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",WHITE_URL_MODAL_1:"URL Registration",WHITE_URL_MODAL_2:"Set the URL to be allowed uploading files through the chrome browser",WHITE_PROCESS_ID:"ID",WHITE_PROCESS_VERIFY_TYPE:"Verifying methods",WHITE_PROCESS_PROGRAM_NAME:"Program Name",WHITE_PROCESS_VERIFY_HASH:"File Hash",WHITE_PROCESS_VERIFY_DIGITAL:"Verifying by the digital signature",WHITE_PROCESS_MESSAGE_1:"The process has removed",WHITE_PROCESS_MESSAGE_2:"URL has removed",WHITE_PROCESS_MESSAGE_3:"URL has registered",WHITE_PROCESS_MESSAGE_4:"Input it with omitted 'http://' or 'https://'",WHITE_PROCESS_ERROR_MESSAGE_1:"Removing the process has been failed",WHITE_PROCESS_ERROR_MESSAGE_2:"Removing the URL has been failed",WHITE_PROCESS_ERROR_MESSAGE_3:"Input the name",WHITE_PROCESS_ERROR_MESSAGE_4:"Input the URL",WHITE_PROCESS_ERROR_MESSAGE_5:"Registering the URL has been failed",SETTING_CENTRALIZED_DOC:"Security",ACCESS_CONTROL_USED:"Enable the access control",SAVING_CONTROL_USED:"Enable the saving control",TRANSFER_ORG:"Move the organization folder",TRANSFER_ORG_MESSAGE_1:"Do you want to move the organization folder?",TRANSFER_ORG_MESSAGE_2:"Moved",TRANSFER_ORG_ERROR_MESSAGE_1:"Select the parent folder of the folder that will be moved",TRANSFER_ORG_ERROR_MESSAGE_2:"Moving has been failed",REMOVE_FILE_ERROR_MESSAGE_1:"Removing has been failed. Check the permission",FILE_LOG_TITLE:"File Log",AUDIT_LOG_TITLE:"Audit Log",DOCUMENT:"Document",SETUP_SETTING:"Client",CONNECT_SERVER_ADDRESS:"Server address",CONNECT_SERVER_PORT:"Server port",MAP_MOUNT_DRIVE:"Default mount drive letter",FORCE_MAP_MOUNT_DRIVE:"Force the mount drive letter",FORCE_MAP_MOUNT_DRIVE_HINT:"The user can't change the mount drive letter",SILENT_SETUP:"Silent setup",SILENT_SETUP_HINT:"Update the client without the user prompt",VERYSILENT_SETUP:"Hide the setup",DISABLE_CONNECT_BUTTON_WEBADMIN:"Hide the button to connect the admin web",AUTO_START:"Auto start",DESKTOP_WEB_SUPPORT:"Support the PC Web client",MOBILE_WEB_SUPPORT:"Support the mobile Web client",INTEGRATED_WITH_AD:"Integrated with AD",COLLECT_INCLUSIVE_NAME:"Designated collect folder name",RANSOM_MANAGEMENT:"Ransomware Detection",RANSOMWARE_PATH:"Ransomware Process Path",RANSOMWARE_STATUS:"Status of deal with ransomware",CLIENT_ADDRESS:"Client IP",INFECTED_FILES:"Infected files",STATUS:"Status",DETECTED_AT:"Detected date",START_DATE:"Start date",END_DATE:"End date",AUDIT_TYPE_ALL:"All",AUDIT_TYPE_LOGGED_IN:"Login",AUDIT_TYPE_LOGGED_OFF:"Log out",AUDIT_TYPE_CREATE_USER:"Create an user",AUDIT_TYPE_MODIFY_USER:"Modify an user",AUDIT_TYPE_MODIFY_PASSWORD:"Modify a password",AUDIT_TYPE_REMOVE_USER:"Remove a user",AUDIT_TYPE_CREATE_PAPER_PASSWORD:"Create the paper OTP",AUDIT_TYPE_CREATE_ORGANIZATION:"Create an organization",AUDIT_TYPE_RENAME_ORGANIZATION:"Rename an organization folder",AUDIT_TYPE_TRANSFER_ORGANIZATION:"Move an organization folder",AUDIT_TYPE_MOVE_ORGANIZATION_DATA:"Move an organization data",AUDIT_TYPE_REMOVE_ORGANIZATION:"Remove an organization folder",AUDIT_TYPE_CREATE_SHARED_FOLDER:"Create a shared folder",AUDIT_TYPE_RENAME_SHARED_FOLDER:"Rename s shared folder",AUDIT_TYPE_REMOVE_SHARED_FOLDER:"Remove a shared folder",AUDIT_TYPE_ADD_FOLDER_PERMISSION:"Add a folder permission",AUDIT_TYPE_UPDATE_FOLDER_PERMISSION:"Update a folder permission",AUDIT_TYPE_REMOVE_FOLDER_PERMISSION:"Remove a folder permission",AUDIT_TYPE_CREATE_ORGSHARED_FOLDER:"Create an organization shared folder",AUDIT_TYPE_REMOVE_ORGSHARED_FOLDER:"Remove an organization shared folder",AUDIT_TYPE_RESET_FOLDER_PERMISSION:"Reset an folder permission",AUDIT_TYPE_REGISTER_SECURED_PROCESS:"Register a secured process",AUDIT_TYPE_UNREGISTER_SECURED_PROCESS:"Unregister a secured process",AUDIT_TYPE_SYSCONFIG_CHANGED:"Change a system configuration",AUDIT_TYPE_CREATE_SUB_USER:"\uc0ac\uc6a9\uc790 \uc0dd\uc131(\uc911\ubcf5\ub85c\uadf8\uc778)",AUDIT_TYPE_UPDATE_SHATED_FOLDER:"\uacf5\uc720\ud3f4\ub354 \ubcc0\uacbd",AUDIT_TYPE_SET_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uc124\uc815",AUDIT_TYPE_UPDATE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uac31\uc2e0",AUDIT_TYPE_RELEASE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \uac80\ucd9c \ud30c\uc77c \uc81c\uc678",AUDIT_TYPE_SET_PIID_FILE_USER:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uc0ac\uc6a9\uc790 \ub4f1\ub85d",AUDIT_TYPE_RELEASE_PIID_FILE_USER:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uc0ac\uc6a9\uc790 \ud574\uc81c",AUDIT_TYPE_SET_EXCLUDE_PIID_FILE:"\uac1c\uc778\uc815\ubcf4 \ud30c\uc77c \uacfc/\uc624\ud0d0 \uc81c\uc678",AUDIT_TYPE_ARCHIVE_COPY:"\ubc18\ucd9c \ud30c\uc77c \ub2e4\uc6b4\ub85c\ub4dc",DIVISION:"Class",EXISTING_FILE:"Existed file",NEW_FILE:"New file(or executable program)",DATE:"Date",MORE_INFO:"Additional info.",PREVIOUS_INFO:"Previous info.",CHANGED_INFO:"Changed info.",AUDIT_TYPE:"Audit type",NOW_ACCESSLOG:"Access logs",DASHBOARD:"Dashboard",NOW_FILE_ACCESSLOG:"File access log",DESKTOP_WEB_NOT_SUPPORT:"Web service doesn't support PC",PII_SEARCH:"File / Folder name",MANAGE_TYPE_NONE:"General user",MANAGE_PRIORITY:"Manager",OSR_ADD_ORG:"The organization to be added",OSR_REMOVE_ORG:"The organization to be removed",OSR_REMOVE_USER:"The user to be removed",OSR_NO_CHANGE:"No change",OSR:"Synchronization with HR Information System",OSR_CONFIRM_MESSAGE_1:"Do you want to apply to sync with HR Information System?",OSR_CONFIRM_MESSAGE_2:"Sync with HR Information System has been applied",OSR_CONFIRM_MESSAGE_3:"\uc870\uc9c1\ucf54\ub4dc\ub97c \ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DATALEAK_CONTROL:"Enable the data leak control",DATALEAK_MESSAGE_1:"You can't use the data leak control",DATALEAK_MESSAGE_2:"You can't use the access control",DATALEAK_MESSAGE_3:"You can't use the saving control",TAKEOUT_TITLE:"Takeout Document",TAKEOUT_REQ_AT:"Requested date",TAKEOUT_APP_AT:"Processed date",TAKEOUT_REQUESTER:"Requester",TAKEOUT_APPROVER:"Approver",TAKEOUT_REQ_TYPE:"Request type",TAKEOUT_STATUS:"Status",TAKEOUT_REASON_REQ:"The reason to request",TAKEOUT_REASON_REJ:"The reason to reject",TAKEOUT_FILE_COUNT:"Document count",TAKEOUT_REQUEST:"Requestion",TAKEOUT_REQUEST_PENDING:"Processing",TAKEOUT_APPROVED:"Approval",TAKEOUT_APPROVED_AUTO:"Auto approval",TAKEOUT_REJECTED:"Reject",TAKEOUT_WITHDRAWN:"Withdraw the requestion",TAKEOUT_DOC:"Takeout documents",TAKEOUT_PRINT:"Takeout by printing",TAKEOUT_WEBLINK:"Takeout by web-link",LOCAL_ACCOUNT:"Manual Registered User",LOCAL_ACCOUNT_HELP:"You must select 'No' for the user who exists in the HR Information system, if don't then, the synchronization will be failed.",ALLOW_ADMIN_ACCESS_USERS_FOLDERS:"Allow the admin to access users' folders",ALLOW_ADMIN_ACCESS_USERS_FOLDERS_HINT:"The administrator can access all other users' folders through the COODOC client",FORCE_SETUP_PERFORM:"Force update the incompatible client",FORCE_SETUP_PERFORM_HINT:"If the client is incompatible with the server (version) then, it force update the client",HOLD_FILES:"Hold files",SINCE_SECE:"Elapsed",START_TIME:"Start time",AUTO_DETER:"Auto determine",USER_DETER:"User determine",HIDDEN:"Hidden",VISIBLE:"Visible",AUTO_START_AFTER_BOOT:"Auto start after boot up",NOT_USED:"Not use",FORCED_UPDATE:"Force update",USER_CHOICE:"User selection",OSR_REMOVE_USER_LABEL:"Recipient (Keep steady if doesn't select)",RANSOMWARE_STATUS_NONE:"All",RANSOMWARE_STATUS_COM:"Not a ransomware",RANSOMWARE_STATUS_BLOCK:"Blocking I/O",CHANGE_CAPACYTI_TITLE:"Changing capacity of",SETTING_LOCK_VOLUME_LABEL:"Lock the mounted drive letter",RANSOMWARE_FILE_STATUS_COM:"Not a ransomware",RANSOMWARE_FILE_STATUS_RESTORE:"Restored file",RANSOMWARE_FILE_STATUS_INFECTION:"Infected file",CLEARANCE:"Arrange",OSR_BTN_1:"Set manually",OSR_BTN_2:"Set as the same organization",OSR_BTN_3:"Arrange all",OSR_BTN_4:"Set as the same user",OSR_HINT_MESSAGE_1:"It is the organization list that has been appended to the HR Information System. You would choose 'The organization name before changed' if the organization path or the organization name has been changed. And you would choose 'Add' if in case the new organization has been created",OSR_HINT_MESSAGE_2:"It is the organization list that does not exist in the HR Information System. You would choose 'Keep' if you want to keep using it in the COODOC otherwise choose 'Arrange'. You could choose 'The organization that you want to move it' if you want to move data to the other organization",OSR_HINT_MESSAGE_3:"It is the user list that does not exist in the HR Information System. You would choose 'Keep' if you want to keep using it in the COODOC otherwise choose 'Arrange'. You could choose 'The user that you want to move it' if you want to move data to the other user",OSR_ERROR_MESSAGE_1:"Set the organization to be appended first",OSR_ERROR_MESSAGE_2:"You can't keep the sub-organization folders if remove or move the superior folder",OSR_ERROR_MESSAGE_3:"The error occurred while inquiring about the HR Information System. Contat the administrator",OSR_ERROR_MESSAGE_4:"Synchronizing with the HR Information System in progress",OSR_ERROR_MESSAGE_5:"The error occurred while synchronizing the HR Information System. Contact the administrator",OSR_ERROR_MESSAGE_6:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \uc870\uc9c1\ucf54\ub4dc\uc785\ub2c8\ub2e4.",SYNC_SOLUTION_TITLE:"Synchronization Solution",SYNC_SOLUTION_INTEGRATED:"Enable synchronization solution(OneDrive)",SYNC_SOLUTION_INTEGRATED_HINT_1:"The document collector collects documents into the synchronization folder rather than into the server",SYNC_SOLUTION_INTEGRATED_HINT_2:"All functionality of the collector will be performed as same except different that the final destination of collecting",SYNC_SOLUTION_NAME:"Name of the synchronization solution",SYNC_SOLUTION_CONSUMER_FOLDER_ACCESSIBLE:"Support for the personal synchronization solution",NO_SHELL_MENU:"Hide the context menu",NO_TRAY_ICON_MENU:"Disable the menu of tray icon",NO_TRAY_ICON_MENU_HINT:"The dashboard wouldn't pop up when double click COODOC tray icon either if disabled it",SETTING_SUPPORT_OPLOCKS:"Use Opportunistic locks",SETTING_SUPPORT_OPLOCKS_HELP_TEXT:"You should disable this option if you have experienced some problems accessing the file with other users simultaneously",SEARCH_INDEXING:"Indexing",SEARCH_PRIVATE_INDEXING:"Indexing of the private folder",SEARCH_COLLECT_INDEXING:"Indexing of the collect folder",SEARCH_INDEXING_MESSAGE_1:"It has been appended to the indexing list",REFRESH:"Refresh",EXCEL_DOWNLOAD:"Download a excel",FILE_LOG_EXCEL:"File log",AUDIT_LOG_EXCEL:"Audit log",WEBLINK:"Create the web-link",SYNC_OSR:"Synchronizing with the HR Information System",NO_SYNC_OSR:"Skip it from synchronizing",NO_SYNC_TARGET:"Targets to be skipped",EXCLUSION:"Skip",DOWNLOAD_LIMIT:"Limit count to download",EXPIRE_DATE:"Expire date",SEARCH_KEYWORD:"Input a search string",ENTER_ID:"Input an ID",ENTER_NAME:"Input a name",ENTER_EMAIL:"Input an email",ENTER_PASSWORD:"Input a password",ENTER_PASSWORD_CONF:"Input a password again",TOTAL:"Total",CNT:"",NEW_REGISTRATION:"New registration",DELETE_SELECTION:"Remove the selected ones",ROW_PER_PAGE_LABEL:"Rows per page",PAGE_PREV_BTN_LABEL:"Previous page",PAGE_NEXT_BTN_LABEL:"Next page",HOLD_FILES_CONF_TITLE:"Release the documents that someone holds",HOLD_FILES_CONF_CONTENT:"Terminate the session of",HOLD_FILES_MESSAGE_1:"The session has been terminated",DETAIL_INFO:"Details",AVERAGE_READ:"Read",AVERAGE_WRITE:"Write",AVERAGE_CONNECTED:"Connections",AVERAGE_FILE_TITLE_1:"Files creation / removing",AVERAGE_FILE_CREATE:"File creation",AVERAGE_FILE_REMOVE:"File removing",AVERAGE_FILE_TITLE_2:"File updating",AVERAGE_FILE_RENAME:"File renaming",AVERAGE_FILE_UPDATE:"File updating",AVERAGE_FILE_COPY:"File copying",AVERAGE_FOLDER_TITLE:"Folder creation / removing",AVERAGE_FOLDER_CREATE:"Folder creation",AVERAGE_FOLDER_REMOVE:"Folder removing",AVERAGE_CALL_API_TITLE:"Calls Web API",UPDATE_NEW_CLIENT_LOCK:"Locks the version",UPDATE_NEW_CLIENT_UNLOCK:"Release locks the version",UPDATE_NEW_CLIENT_ALL_LOCK:"Locks all clients' version",UPDATE_NEW_CLIENT_ALL_UNLOCK:"Release locks all clients' version",CLIENT_INFO_VERSION:"Client version",CLIENT_INFO_INSTALL_AT:"Install date",CLIENT_INFO_IP:"Client IP",CLIENT_INFO_LAST_LOGIN_AT:"Last logged in",UPDATE_NEW_CLIENT_MESSAGE_1:"Do you want to lock the version of user(%d)?",UPDATE_NEW_CLIENT_MESSAGE_2:"Do you want to release lock the version of the user(%d)?",UPDATE_NEW_CLIENT_MESSAGE_3:"Do you want to lock the version of all users?",UPDATE_NEW_CLIENT_MESSAGE_4:"Do you want to release lock the version of all users?",UPDATE_NEW_CLIENT_MESSAGE_5:"Select the user or the organization",UPDATE_NEW_CLIENT_MESSAGE_6:"Do you want to lock the version of the organization(%d)?",UPDATE_NEW_CLIENT_MESSAGE_7:"Do you want to release lock the version of the organization(%d)?",UPDATE_NEW_CLIENT_MESSAGE_8:"\uc0ac\uc6a9\uc790\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",LOCK:"Lock",UNLOCK:"Release",WHITE_URL_NAME:"Name",WHITE_URL_NAME_PLACEHOLDER:"Input a name",WHITE_URL_SET_TYPE:"Comparison methods",WHITE_URL_URL:"URL",WHITE_URL_URL_PLACEHOLDER:"Input an URL",WHITE_URL_REGEX:"Regular expression",WHITE_URL_PLAIN:"Match the URL",WHITE_PROGRAM:"White program",WHITE_SYSTEM_PROCESS:"System program",WHITE_CHROME_BROWSER:"Chrome browser",WHITE_RANSOMWARE:"\ub79c\uc12c\uc6e8\uc5b4 \uc544\ub2d8",WHITE_PROCESS_TYPE:"Type",TAKEOUT_APPROVE_TYPE_MANUAL:"Manual approve",TAKEOUT_APPROVE_TYPE_AUTO:"Auto approve",TAKEOUT_APPROVE_TYPE_UNAVAILABLE:"Approval unavailable",TAKEOUT_APPROVE_MESSAGE_1:"Modified",TAKEOUT_APPROVE_MANAGE_LOCK:"Lock the modification by user",TAKEOUT_APPROVE_MANAGE_LOCK_ALL:"Lock the all organization",TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL:"Release the lock on all organization",TAKEOUT_APPROVE_MANAGE_LOCK_ALL_1:"Lock the all shared",TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL_1:"Release the lock on all shared",EXPORT_APPROVAL_MANAGEMENT:"Managing the approver",MANUAL:"Manual",AUTO:"Auto",INSTANT_LOGS_TITLE:"Set the search conditions",INSTANT_LOGS_FILE_TYPES:"Type of the log file",INSTANT_LOGS_LOG_TYPES:"Log type",INSTANT_LOGS_INCLUDES:"Strings includes",INSTANT_LOGS_EXCLUDES:"Strings excludes",INSTANT_LOGS_OMIT_SERVER:"Collect the server log",INSTANT_LOGS_CONTENTS:"Message",INSTANT_LOGS_ERROR_MESSAGE_1:"Set up after searching",WEBLINK_COPY_MESSAGE:"Copied",CLIENT_RUNNING_TYPE_START:"Launch",CLIENT_RUNNING_TYPE_STOP:"Terminate",CLIENT_RUNNING_TYPE_IGNORE:"Hold files",CLIENT_RUNNING_TYPE_LOGOFF:"PC logged off",CLIENT_RUNNING_TYPE_ABORTED:"Aborted",DISABLE_SAVE_PASSWORD:"\ube44\ubc00\ubc88\ud638 \uc800\uc7a5 \ube44\ud65c\uc131\ud654",PRIVATE_FOLDER_SUPPORT:"\uac1c\uc778\ud3f4\ub354 \uc0ac\uc6a9",PRESERVE_LAST:"\ub9c8\uc9c0\ub9c9 \uac1c\uc815\ub0b4\uc5ed \ubcf4\uad00",PRESERVE_LAST_HELP:"\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218\uac00 \uc9c0\ub098\ub3c4 \ucd5c\uc18c \ud55c \uac1c\uc758 \ud30c\uc77c\uc740 \uc720\uc9c0",PRESERVE_LAST_WITHOUT_ORIGINAL:"\ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c \ubd84\ub9ac",PRESERVE_LAST_WITHOUT_ORIGINAL_HELP:"\ube44\ud65c\uc131\ud654\uc2dc \ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c\uc218\ub294 '\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218'\uacfc \ub3d9\uc77c",KEEP_DAYS_IN_TRASH:"\ud734\uc9c0\ud1b5 \ubcf4\uad00\uc77c\uc218",KEEP_DAYS_IN_TRASH_HELP:"'0'\uc77c \uacbd\uc6b0 \ub9c8\uc9c0\ub9c9 \uac1c\uc815\ub0b4\uc5ed \ubcf4\uad00 \uc77c\uc218 \ud6c4 \uc0ad\uc81c'",KEEP_DAYS_IN_TRASH_ERROR_1:"\uac1c\uc815 \ub0b4\uc5ed \ud30c\uc77c \ubcf4\uad00 \uc77c\uc218 \ubcf4\ub2e4 \uae38\uac8c \uc124\uc815 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",DOWNLOAD_ERROR:"os\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.",NUMBER_ERROR_MESSAGE:"0\ubcf4\ub2e4 \ud070\uc218\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694.",DLP_CLIENT_INFO:"dlp \ud074\ub77c\uc774\uc5b8\ud2b8 \uc815\ubcf4",CONNECTED:"\uc5f0\uacb0",NOT_CONNECTED:"\ubbf8\uc5f0\uacb0",DLP_POLICY_SETTING:"dlp \uc815\ucc45 \uc124\uc815",DLPClientLogGeneral:"\uc77c\ubc18",DLPClientLogCreateFile:"\uc0dd\uc131",DLPClientLogWriteFile:"\uc4f0\uae30",DLPClientLogRenameFile:"\uc774\ub984\ubcc0\uacbd",DLPClientLogCopyFile:"\ubcf5\uc0ac",DLPClientLogCloneFile:"\ubcf5\uc81c",DLPClientLogLinkFile:"\ub9c1\ud06c\ud30c\uc77c",DLPClientLogDeleteFile:"\uc0ad\uc81c",DLPClientLogTruncateFile:"\ub0b4\uc6a9\uc0ad\uc81c",DLPClientLogExecute:"\ud504\ub85c\uadf8\ub7a8 \uc2e4\ud589",DLPClientLogNetwork:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0",DLPClientLogFetchURL:"\uc6f9 \uc811\uc18d",DLPClientLogUploadURL:"\uc6f9 \uc5c5\ub85c\ub4dc",DLPClientLogMount:"\ub9c8\uc6b4\ud2b8",DLPClientLogUnmount:"\ub9c8\uc6b4\ud2b8 \ud574\uc81c",DLPClientLogSendWebMail:"\uc6f8 \uba54\uc77c",DLP_CLIENT_LOG_VIER:"\uc870\ud68c",DLP_CLIENT_LOG_VIEW_TITLE:"\uc138\ubd80 \ub0b4\uc6a9 \ubcf4\uae30",DLP_CLIENT_LOG_LOGGED_AT:"\uc77c\uc2dc",DLP_CLIENT_LOG_USERNAME:"\uc0ac\uc6a9\uc790(\ud074\ub77c\uc774\uc5b8\ud2b8 \ubc88\ud638)",DLP_CLIENT_LOG_TYPE:"\ub85c\uadf8 \ud0c0\uc785",DLP_CLIENT_LOG_PATH:"\ud30c\uc77c\uacbd\ub85c",DLP_CLIENT_LOG_SIGNING_ID:"\ud504\ub85c\uadf8\ub7a8 \uc2dd\ubcc4\uc790",DLP_CLIENT_LOG_HASH:"\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc",DLP_CLIENT_LOG_SOURCE_PATH:"\uc2dc\uc791 \uacbd\ub85c",DLP_CLIENT_LOG_DEST_PATH:"\ubaa9\uc801\uc9c0 \uacbd\ub85c",DLP_CLIENT_LOG_LOCAL_ENDPOINT:"\ucd9c\ubc1c\uc9c0 \uc8fc\uc18c",DLP_CLIENT_LOG_REMOTE_ENDPOINT:"\ubaa9\uc801\uc9c0 \uc8fc\uc18c",DLP_CLIENT_LOG_WEB_UPLOAD_FILE:"\uc6f9 \uc5c5\ub85c\ub4dc \ud30c\uc77c",DLP_CLIENT_LOG_MAIL_RECIEVER:"\ubc1b\ub294\uc0ac\ub78c",DLP_CLIENT_LOG_MAIL_CC:"\ucc38\uc870",DLP_CLIENT_LOG_MAIL_TITLE:"\uc81c\ubaa9",DLP_CLIENT_LOG_MAIL_CONTENTS:"\ub0b4\uc6a9",DLP_CLIENT_LOG_PRINT_DOC_FORMAT:"\uc791\uc5c5 \ud3ec\ub9f7",DLP_CLIENT_LOG_PRINT_COPIES:"\ubcf5\uc0ac \uc218",DLP_CLIENT_LOG_PRINT_JOB_NAME:"\uc791\uc5c5 \uc774\ub984",DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT:"\uc0dd\uc131\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT:"\uc218\ud589\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT:"\uc644\ub8cc\uc77c\uc2dc",DLP_CLIENT_LOG_PRINT_PRINTER_URL:"\ud504\ub9b0\ud2b8 URL",DLP_CLIENT_LOG_PRINT_JOB_STATE_MESSAGE:"\ud504\ub9b0\ud2b8 \uc0c1\ud0dc\uba54\uc138\uc9c0",DLP_CLIENT_LOG_PRINT_JOB_STATE_REASONS:"\ud504\ub9b0\ud2b8 \uc0c1\ud0dc \uc0ac\uc720",DLP_CLIENT_LOG_CONTROL_INFO:"\ud504\ub9b0\ud2b8 \uc791\uc5c5 \uc138\ubd80 \uc815\ubcf4",DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_TITLE:"\ud504\ub9b0\ud2b8 \ub2e4\uc6b4\ub85c\ub4dc",DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_CONTENT:"\ud504\ub9b0\ud2b8\ub41c \ud30c\uc77c\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_EXECUTE_PROGRAM:"\uc2e4\ud589\uc81c\uc5b4",DLP_PROGRAM_HASH:"\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc",DLP_PROGRAM_SIGNING_ID:"\ud504\ub85c\uadf8\ub7a8 \uc2dd\ubcc4\uc790",DLP_PROGRAM_MANAGE_NAME:"\ud504\ub85c\uadf8\ub7a8 \uad00\ub9ac\uba85",DLP_PROGRAM_NAME:"\ud504\ub85c\uadf8\ub7a8\uba85",DLP_PROCESS_TYPE:"\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785",DLP_EXECUTE_CONTROL_TITLE:"\uc2e4\uc81c\uc81c\uc5b4 \uc124\uc815",DLP_EXECUTE_CONTROL_CONTENT:"\uadf8\ub8f9\uc758 \uc2e4\ud589\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_EXECUTE_CONTROL_DELETE_CONTENT:"\uadf8\ub8f9\uc758 \uc2e4\ud589\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_NETWORK:"\ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4",DLP_BLUETOOTH_PAIRING:"\ube14\ub8e8\ud22c\uc2a4 \ud398\uc5b4\ub9c1",DLP_BLUETOOTH_FILE:"\ube14\ub8e8\ud22c\uc2a4 \ud30c\uc77c \uc804\uc1a1",DLP_MESSENGER:"\uba54\uc2e0\uc800 \ud30c\uc77c \uc804\uc1a1",DLP_AIRDROP:"\uc5d0\uc5b4\ub4dc\ub78d",DLP_PROGRAM_INSTALL:"\ud504\ub85c\uadf8\ub7a8 \uc124\uce58",DLP_MOUNT:"\ub9c8\uc6b4\ud2b8\ud5c8\uc6a9",DLP_PRINTING:"\ud504\ub9b0\ud2b8",DLP_TAKEOUT_APPROVING:"\ubc18\ucd9c\ubc29\uc2dd",ASCENDING:"\uc624\ub984\ucc28\uc21c",DESCENDING:"\ub0b4\ub9bc\ucc28\uc21c",SORT_DATE:"\ub0a0\uc9dc \uc815\ub82c",TEMP_RELEASE:"\uc784\uc2dc\ud574\uc81c",TYPE:"\uc885\ub958",INSTALL:"\uc124\uce58",INSTALL_LIST:"\uc124\uce58 \ubaa9\ub85d",HAPPEND_AT:"\ubc1c\uc0dd\uc77c\uc2dc",ALERT_TYPE:"\uacbd\uace0 \uc885\ub958",ALERT_INFO:"\uacbd\uace0 \ub0b4\uc6a9",DLP_CLIENT_BLOCKED_LOG:"\ucc28\ub2e8 \ub85c\uadf8",DLP_CLIENT_MONITORING_LOG:"\ubaa8\ub2c8\ud130\ub9c1 \ub85c\uadf8",DLP_CLIENT_RELEASE_BLOCK:"\ud574\uc81c \ub85c\uadf8",NO_LOGIN:"\ubbf8\ub85c\uadf8\uc778",VERSION:"\ubc84\uc804",LOGGED_IN_AT:"\ub85c\uadf8\uc778 \uc77c\uc2dc",LOGGED_OFF_AT:"\ub85c\uadf8\uc624\ud504 \uc77c\uc2dc",CONNECTED_STATUS:"\uc5f0\uacb0 \uc0c1\ud0dc",CHECKED_AT:"\ud655\uc778 \uc2dc\uac01",ACTIVE:"\ud65c\uc131\ud654",INACTIVE:"\ube44\ud65c\uc131",NOT_INSTALLED:"\ubbf8\uc124\uce58",BLUETOOTH_LIST:"\ube14\ub8e8\ud22c\uc2a4 \ubaa9\ub85d",DLP_CLIENT_DELETE_TITLE:"\ud074\ub77c\uc774\uc5b8\ud2b8 \uc81c\uac70",DLP_CLIENT_DELETE_CONTENT:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_DELETE_SUCCESS:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4.",DLP_CLIENT_DELETE_FAIL:"\ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_COMMENT_1:"\uc6f9 \ub9c1\ud06c \uc11c\ube44\uc2a4 \ud3ec\ud2b8\uc640 \ucfe0\ub3c5 \uc6f9 \ud3ec\ud2b8\uac00 \ub2e4\ub978\uacbd\uc6b0 \uad00\ub9ac\uc790 \uc7ac\ub85c\uadf8\uc778\uc774 \ud544\uc694\ud569\ub2c8\ub2e4",WEBLINK_RESTRICT_EXTS:"\uc6f9 \ub9c1\ud06c \uc81c\ud55c \ud655\uc7a5\uc790",WEBLINK_RESTRICT_FILE_SIZE:"\uc6f9 \ub9c1\ud06c \uc81c\ud55c \ud30c\uc77c \ud06c\uae30",WEBLINK_RESTRICT_TOTAL_SIZE:"\uc6f9 \ub9c1\ud06c \uc81c\ud55c \uc804\uccb4 \ud06c\uae30",DLP_POLICY_WHITE_URL_MANAGEMENT:"\uc5c5\ub85c\ub4dc URL \uad00\ub9ac",DLP_POLICY_WHITE_URL_NAME:"URL \uad00\ub9ac\uba85",DLP_POLICY_WHITE_URL_REGEX:"URL \uc815\uaddc\uc2dd",DLP_POLICY_WHITE_URL_TITLE:"\uc5c5\ub85c\ub4dc URL \uc124\uc815",DLP_POLICY_WHITE_URL_CONTENT:"\uadf8\ub8f9\uc758 \uc5c5\ub85c\ub4dc URL\uc744 \ucd94\uac00 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_WHITE_URL_DELETE_CONTENT:"\uadf8\ub8f9\uc758 \uc5c5\ub85c\ub4dc URL\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER:"EX) *.coodoc.com",DLP_POLICY_WHITE_URL_MESSAGE_1:"URL \uad00\ub9ac\uba85\uc744 \uc785\ud574\ud574 \uc8fc\uc138\uc694",USER_LOCK:"\uacc4\uc815 \uc7a0\uae08",OSR_ORG_TITLE:"\uc778\uc0ac\uc5f0\ub3d9 \uc870\uc9c1 \uc124\uc815",OSR_ORG_CODE:"\uc870\uc9c1\ucf54\ub4dc",ALLOW_TAKEOUT_PRIVATE_FOLDER:"\uac1c\uc778\ud3f4\ub354 \ubc18\ucd9c",ALLOW_TAKEOUT_FOLDER:"\ud3f4\ub354 \ubc18\ucd9c",UNAVAILABLE:"\ubd88\uac00",FOLLOWS_FOLDER_MASTER_POLICIES:"\uc870\uc9c1\ud3f4\ub354\uc815\ucc45 \uc0ac\uc6a9",BLACK_LIST:"\ube14\ub799 \ub9ac\uc2a4\ud2b8",WHITE_LIST:"\ud654\uc774\ud2b8 \ub9ac\uc2a4\ud2b8",APPROVED:"\uc2b9\uc778 \ub418\uc5c8\uc2b5\ub2c8\ub2e4",REJECTED:"\uac70\uc808 \ub418\uc5c8\uc2b5\ub2c8\ub2e4",FAILED:"\uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_URL:"\uc6f9 \ub9c1\ud06c URL",WEBLINK_COPY_MESSAGE_2:"\uc6f9 \ub9c1\ud06c \ubc18\ucd9c\uc744 \uc2e0\uccad\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc2b9\uc778 \ud6c4 \ub2e4\uc6b4\ub85c\ub4dc \uac00\ub2a5\ud569\ub2c8\ub2e4",CONTEXT_MESSAGE_7:"\uc5c5\ub85c\ub4dc \ud560\uc218\uc5c6\ub294 \uc704\uce58\uc785\ub2c8\ub2e4",CONTEXT_MESSAGE_8:"\ubb38\uc11c\uc911\uc559\ud654 \uc0ac\uc6a9\uc911 \ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_9:"\ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_10:"'%s' \uc911\ubcf5\ub418\ub294 \ud30c\uc77c\uc774 \uc788\uc5b4 \uc774\ub3d9 \ud560 \uc218\uc5c6\uc2b5\ub2c8\ub2e4",FILE_DROP_TITLE:"\ud30c\uc77c\uc744 \ub4dc\ub86d\ud558\uc138\uc694",CHANGE_VIEW_LIST:"\ubaa9\ub85d \ubcf4\uae30\ub85c \uc804\ud658",CHANGE_VIEW_GRID_1:"\ubc14\ub451\ud310 \ubcf4\uae30\ub85c \uc804\ud658",CONTEXT_CONFIRM_TITLE_1:"\ud30c\uc77c \uc0ad\uc81c",CONTEXT_CONFIRM_CONTENT_1:"\ud30c\uc77c\uc744 \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",CONTEXT_MESSAGE_11:"\ud734\uc9c0\ud1b5\uc740 \uc774\ub3d9 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_12:"\ud2b9\uc218 \ud3f4\ub354\uc758 \ud30c\uc77c \ub610\ub294 \ud3f4\ub354\uc758 \ubcc0\uacbd\uc740 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4",CONTEXT_MESSAGE_13:"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \uba54\ub274\uac00 \uc5c6\uc2b5\ub2c8\ub2e4",CONTEXT_MESSAGE_14:"\ub2e4\uc6b4\ub85c\ub4dc \ud560 \ud30c\uc77c\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",SHARE:"\uacf5\uc720\ud558\uae30",DEFAULT_POLICY_SETTING:"\uae30\ubcf8 \uc815\ucc45 \uc124\uc815",DEFAULT_POLICY:"\uae30\ubcf8 \uc815\ucc45",COPY_POLICY:"\uc815\ucc45 \ubcf5\uc0ac",POLICY_GROUP_TITLE:"\uc815\ucc45 \uadf8\ub8f9 \ucd94\uac00",GROUP_NAME:"\uadf8\ub8f9\uba85",EXPLANATION:"\uc124\uba85",DLP_ALLOW_RELEASE_STORAGE:"\ub9e4\uccb4 \uc81c\uc5b4",DLP_ALLOW_RELEASE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c \uc81c\uc5b4",DLP_ALLOW_RELEASE_EXECUTE:"\uc2e4\ud589 \uc81c\uc5b4",DLP_ALLOW_RELEASE_UPLOAD_URL:"\ube0c\ub77c\uc6b0\uc800 \uc5c5\ub85c\ub4dc \uc81c\uc5b4",DLP_ALLOW_RELEASE_BLUETOOTH:"\ube14\ub8e8\ud22c\uc2a4 \uc81c\uc5b4",DLP_ALLOW_RELEASE_MESSENGER:"\uba54\uc2e0\uc800 \uc81c\uc5b4",DLP_ALLOW_RELEASE_AIRDROP:"\uc5d0\uc5b4\ub4dc\ub78d \uc81c\uc5b4",DLP_ALLOW_RELEASE_PRINTING:"\ud504\ub9b0\ud2b8 \uc81c\uc5b4",DLP_POLICY_GROUP_SETTING:"\ubcf4\uc548 \uc124\uc815",DLP_POLICY_GROUP_NETWORK_TITLE:"\ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4 \uc124\uc815",DLP_POLICY_GROUP_NETWORK_CONTENT_1:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_NETWORK_CONTENT_2:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_NETWORK_CONTENT_3:"\uadf8\ub8f9\uc758 \ub124\ud2b8\uc6cc\ud06c\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT:"\ucc28\ub2e8 \ub9e4\uccb4\uc5d0 \uad8c\ud55c \ubd80\uc5ec",DLP_POLICY_GROUP_GRANT_TITLE:"\uad8c\ud55c\uc81c\uc5b4 \uc124\uc815",DLP_POLICY_GROUP_GRANT_CONTENT_1:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc218\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT_CONTENT_2:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_GRANT_CONTENT_3:"\uadf8\ub8f9\uc758 \uad8c\ud55c\uc81c\uc5b4\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_MESSAGE_1:"\uc815\ucc45 \uadf8\ub8f9\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_GROUP_MESSAGE_2:"\uc815\ucc45 \uadf8\ub8f9\uc744 \ubcf5\uc0ac\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_GROUP_MESSAGE_3:"\uc815\ucc45 \uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",DLP_POLICY_GROUP_DEFAULT_TITLE:"\uae30\ubcf8 \uc815\ucc45 \uc124\uc815",DLP_POLICY_GROUP_RELEASE:"\ud574\uc81c \uc694\uccad",DLP_POLICY_GROUP_DEFAULT_CONTENT_1:"\uadf8\ub8f9\uc758 \uae30\ubcf8\uc815\ucc45\uc744 \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_DEFAULT_CONTENT_2:"\uadf8\ub8f9\uc758 \uae30\ubcf8\uc815\ucc45\uc744 \uc804\uccb4 \uc815\ucc45\uc73c\ub85c \ucd08\uae30\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_GROUP_RELEASE_TITLE:"\ud574\uc81c \uc694\uccad \ud5c8\uc6a9 \uc5ec\ubd80 \uc124\uc815",DLP_POLICY_GROUP_RELEASE_CONTENT_1:"\uadf8\ub8f9\uc758 \ud574\uc81c \uc694\uccad \ud5c8\uc6a9 \uc5ec\ubd80\ub97c \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_POLICY_RELEASE_DURATION:"\ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04",DLP_POLICY_RELEASE_DURATION_TITLE:"\ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04 \uc124\uc815",DLP_POLICY_RELEASE_DURATION_CONTENT_1:"\uadf8\ub8f9\uc758 \ud574\uc81c \ud5c8\uc6a9 \uc2dc\uac04\uc744 \uc124\uc815\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_NETWORK_MANAGE_NAME:"\ub124\ud2b8\uc6cc\ud06c \uad00\ub9ac\uba85",DLP_NETWORK_INBOUND_PORT:"\uc778\ubc14\uc6b4\uc2a4 \ud3ec\ud2b8",DLP_NETWORK_OUTBOUND_DESTINATION:"\uc544\uc6c3\ubc14\uc6b4\uc2a4 \uc8fc\uc18c",ALL_PROGRAM:"\ubaa8\ub4e0 \ud504\ub85c\uadf8\ub7a8",NOT_SELECTED:"\ubbf8\uc9c0\uc815",STORAGE_NAME:"\ub9e4\uccb4\uba85",ALLOW_READ:"\uc77d\uae30 \ud5c8\uc6a9",ALLOW_WRITE:"\uc4f0\uae30 \ud5c8\uc6a9",ALLOW_EXECUTE:"\uc2e4\ud589 \ud5c8\uc6a9",IOS_DOWNLOAD_CONTENT:"\ub2e4\uc6b4\ub85c\ub4dc\ub97c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",VIEW:"\ubcf4\uae30",MB_SETTING_SERVER_INFO:"\uc811\uc18d\uc815\ubcf4 \ubcc0\uacbd",MB_SETTING_BIOMETRICS_USE:"\uc0dd\uccb4\uc778\uc99d \uc0ac\uc6a9",MB_SETTING_BIOMETRICS_UNUSED:"\uc0dd\uccb4\uc778\uc99d \ubbf8\uc0ac\uc6a9",MB_SETTING_BIOMETRICS_COMPLETE:"\uc0dd\uccb4\uc778\uc99d \ub4f1\ub85d \uc644\ub8cc",FOLDER_ERROR_MESSAGE_6:"\uc774\ubbf8 \uc785\ub825\ucc3d\uc774 \uc788\uc2b5\ub2c8\ub2e4",EXPAND_ALL:"\ubaa8\ub450 \uc5f4\uae30",COLLAPSE_ALL:"\ubaa8\ub450 \uc811\uae30",EXPIRE_AT_CHANGE:"\ub9cc\ub8cc\uc77c \ubcc0\uacbd",EXPIRE_AT_CHANGE_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",EXPIRE_AT_CHANGE_MESSAGE_2:"\ub9cc\ub8cc\uc77c\uc744 \ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",EXPIRE_AT_RELEASE:"\ub9cc\ub8cc\uc77c \ud574\uc81c",EXPIRE_AT_RELEASE_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc81c\uc2b5\ub2c8\uae4c?",EXPIRE_AT_RELEASE_MESSAGE_2:"\ub9cc\ub8cc\uc77c\uc744 \ud574\uc81c\ud558\uc600\uc2b5\ub2c8\ub2e4",EXPIRE_AT_ERROR_MESSAGE_1:"\ub9cc\ub8cc\uc77c\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",DLP_CLIENT_MESSAGE_1:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \ud5c8\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_2:"\uc804\uccb4 \uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_3:"\uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \ud5c8\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_4:"\uc0ac\uc6a9\uc790\uc758 \uc124\uce58\ub97c \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_MESSAGE_5:"\uc124\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_CLIENT_MESSAGE_6:"\uc124\uc815\uc774 \ubc18\uc601\ub418\uc5c8\uc2b5\ub2c8\ub2e4",DLP_CLIENT_MESSAGE_7:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uac15\uc81c \uc5c5\ub370\uc774\ud2b8 \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_CLIENT_TITLE_1:"\uc124\uce58 \ud5c8\uc6a9 \uc5ec\ubd80",DLP_CLIENT_TITLE_2:"DLP \uac15\uc81c \uc5c5\ub370\uc774\ud2b8",ALLOW_INSTALL:"\uc124\uce58 \ud5c8\uc6a9",LOCK_INSTALL:"\uc124\uce58 \uc7a0\uae08",ALL_ALLOW_INSTALL:"\uc804\uccb4 \uc124\uce58 \ud5c8\uc6a9",ALL_LOCK_INSTALL:"\uc804\uccb4 \uc124\uce58 \uc7a0\uae08",PATH:"\uacbd\ub85c",PATH_REG:"\uacbd\ub85c(\uc815\uaddc\uc2dd)",PATH_STORAGE:"\uac00\uc0c1\ub9e4\uccb4",PATH_STORAGE_TITLE_1:"\uac00\uc0c1\ub9e4\uccb4 \uc0ad\uc81c",PATH_STORAGE_TITLE_2:"\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815",PATH_STORAGE_TITLE_3:"\uac00\uc0c1\ub9e4\uccb4 \ucd94\uac00",PATH_STORAGE_CONTENT_1:"\uac00\uc0c1\ub9e4\uccb4\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",PATH_STORAGE_MESSAGE_1:"\uac00\uc0c1\ub9e4\uccb4\uac00 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_2:"\uac00\uc0c1\ub9e4\uccb4\uac00 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_3:"\uac00\uc0c1\ub9e4\uccb4\ub97c \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_4:"\uac00\uc0c1\ub9e4\uccb4 \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_5:"\uac00\uc0c1\ub9e4\uccb4\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",PATH_STORAGE_MESSAGE_6:"\uac00\uc0c1\ub9e4\uccb4 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_PROCESS_TYPE_UNKNOWN:"\uc54c \uc218 \uc5c6\ub294 \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_NORMAL:"\uc77c\ubc18 \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_SYSTEM:"\uc2dc\uc2a4\ud15c \ud504\ub85c\uadf8\ub7a8",DLP_PROCESS_TYPE_CHROME:"\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800",PROGRAM:"\ud504\ub85c\uadf8\ub7a8",PROGRAM_TITLE_1:"\ud504\ub85c\uadf8\ub7a8 \uc0ad\uc81c",PROGRAM_TITLE_2:"\ud504\ub85c\uadf8\ub7a8 \uc218\uc815",PROGRAM_TITLE_3:"\ud504\ub85c\uadf8\ub7a8 \ucd94\uac00",PROGRAM_CONTENT_1:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",PROGRAM_MESSAGE_1:"\ud504\ub85c\uadf8\ub7a8\uc774 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_2:"\ud504\ub85c\uadf8\ub7a8 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_3:"\ud504\ub85c\uadf8\ub7a8\uc744 \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_4:"\ud504\ub85c\uadf8\ub7a8 \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_5:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",PROGRAM_MESSAGE_6:"\ud504\ub85c\uadf8\ub7a8 \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK:"\ub124\ud2b8\uc6cc\ud06c",NETWORK_TITLE_1:"\ub124\ud2b8\uc6cc\ud06c \uc0ad\uc81c",NETWORK_TITLE_2:"\ub124\ud2b8\uc6cc\ud06c \uc218\uc815",NETWORK_TITLE_3:"\ub124\ud2b8\uc6cc\ud06c \ucd94\uac00",NETWORK_CONTENT_1:"\ub124\uc6cc\uc6cc\ud06c\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",NETWORK_MESSAGE_1:"\ub124\uc6cc\uc6cc\ud06c\uac00 \uc0ad\uc81c \ub418\uc5c8\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_2:"\ub124\ud2b8\uc6cc\ud06c \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_3:"\ub124\ud2b8\uc6cc\ud06c\ub97c \ucd94\uac00\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_4:"\ub124\uc6cc\uc6cc\ud06c \ucd94\uac00\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_5:"\ub124\ud2b8\uc6cc\ud06c\ub97c \uc218\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4",NETWORK_MESSAGE_6:"\ub124\ud2b8\uc6cc\ud06c \uc218\uc815\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",DLP_POLICY_TITLE:"\uae30\ubcf8 \uc124\uc815",DLP_POLICY_STORAGE_TYPE:"Storage \uc885\ub958",DLP_HEALTH_MODULE_SECURE:"DLP",DLP_HEALTH_MODULE_EPS:"\uc81c\uc5b4",DLP_HEALTH_MODULE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c",DLP_HEALTH_MODULE_CHROME:"\ud06c\ub86c\ud655\uc7a5",MAC_ADDRESS:"mac",ENTER_REASON:"\uc0ac\uc720\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694",SELECT_REQUEST:"\uc694\uccad\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694",OFFLINE_DRIVE:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c",OFFLINE_DRIVE_CONFIRM_1:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c\ub97c \uac70\uc808\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",OFFLINE_DRIVE_CONFIRM_2:"\uc624\ud504\ub77c\uc778 \ub4dc\ub77c\uc774\ube0c\ub97c \uc2b9\uc778\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",DLP_ALLOW_SETUP:"\uc124\uce58\ubaa8\ub4dc",EMAIL_OTP_CODE:"\uc774\uba54\uc77c OTP",EMAIL_OTP_ERROR_MESSAGE_1:"\uc774\uba54\uc77c OTP\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694",EMAIL_OTP_HELP_1:"\uc774\uba54\uc77c\uc744 \ud655\uc778\ud574 \uc8fc\uc138\uc694",WEBLINK_DOWNLOAD_ERROR_MESSAGE_1:"\uc778\uc99d \ud69f\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_2:"\uc774\uba54\uc77c OTP\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_3:"\uc6f9 \ub9c1\ud06c\uac00 \ud65c\uc131\ud654 \ub418\uc5b4\uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_4:"\uc778\uc99d\uac12\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",WEBLINK_DOWNLOAD_ERROR_MESSAGE_5:"\uc778\uc99d\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_6:"\uc6f9 \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_7:"\ub2e4\uc6b4\ub85c\ub4dc \ud68c\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4",WEBLINK_DOWNLOAD_ERROR_MESSAGE_8:"\uc6f9 \ub9c1\ud06c \uc815\ubcf4\uac00 \uc815\ud655\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",DYNAMIC_SECURITY_MODE:"\ub2a5\ub3d9\ubcf4\uc548 \ubaa8\ub4dc",DATALEAK_CONTROL_USER:"\ubb38\uc11c\uc911\uc559\ud654 \uc0ac\uc6a9\uc790",DATALEAK_CONTROL_USE:"\ubb38\uc11c\uc911\uc559\ud654",USER_MESSAGE_17:"\ubcc0\uacbd\ud558\uc600\uc2b5\ub2c8\ub2e4",AUDIT_TYPE_DLP_ALLOW_CLINET_INSTALL:"DLP \uc124\uce58",AUDIT_TYPE_DLP_REMOVE_CLIENT:"DLP \uc0ad\uc81c",AUDIT_TYPE_DLP_REGISTER_USER_GROUP:"DLP \uc815\ucc45 \ubb36\uc74c \uc0dd\uc131",AUDIT_TYPE_DLP_REMOVE_USER_GROUP:"DLP \uc815\ucc45 \ubb36\uc74c \uc0ad\uc81c",AUDIT_TYPE_DLP_REGISTER_UESR_GORUP_MEMBER:"DLP \uc815\ucc45 \uc0ac\uc6a9\uc790 \ucd94\uac00",AUDIT_TYPE_DLP_REMOVE_USER_GROUP_MEMBER:"DLP \uc815\ucc45 \uc0ac\uc6a9\uc790 \uc81c\uac70",MOVE_ORG_DATA_ERROR_MESSAGE_3:"\uc0c1\uc704 \ubd80\uc11c\ub85c \uc774\uad00\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",MOVE_ORG_DATA_ERROR_MESSAGE_4:"\ud558\uc704 \ubd80\uc11c\ub85c \uc774\uad00\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",TRANSFER_ORG_ERROR_MESSAGE_3:"\uc0c1\uc704 \ubd80\uc11c\ub85c \uc774\ub3d9\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",TRANSFER_ORG_ERROR_MESSAGE_4:"\ud558\uc704 \ubd80\uc11c\ub85c \uc774\ub3d9\uc740 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4",DEFAULT:"\uae30\ubcf8",INTEGRATION_STATUS:"\uc5f0\ub3d9 \uc0c1\ud0dc",SECURITY:"\ubcf4\uc548",USER_DEFINED:"\uc0ac\uc6a9\uc790 \uc815\uc758",SAVE:"\uc800\uc7a5",DATALEAK_POLICY:"\uc720\ucd9c \uc815\ucc45",IP_GROUP_MESSAGE_1:"\uadf8\ub8f9\uc744 \ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",LOGIN_PC:"\ub85c\uadf8\uc778PC",DEFAULT_PC:"\uae30\ubcf8PC",ROW_PER_PAGE:"\ud654\uba74\ud45c\uc2dc",ONLINE:"\uc811\uc18d",OFFLINE:"\ubbf8\uc811\uc18d",LOGIN_ERROR_MESSAGE_7:"\uc811\uc18d \uac00\ub2a5\ud55c IP\ub300\uc5ed\uc774 \uc544\ub2d9\ub2c8\ub2e4",USER_LIST:"\uc0ac\uc6a9\uc790 \ubaa9\ub85d",DLP_CLIENT_LIST:"DLP \ud074\ub77c\uc774\uc5b8\ud2b8 \ubaa9\ub85d",POLICY_NAME:"\uc815\ucc45\uba85",MANDATORY_APP_MESSAGE_1:"\ub4f1\ub85d\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_MESSAGE_2:"\uc81c\uac70\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_ERROR_MESSAGE_1:"\uc81c\uac70\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4",MANDATORY_APP_ERROR_MESSAGE_2:"\uc708\ub3c4\uc6b0 \ud504\ub85c\uadf8\ub7a8\uba85 \ub610\ub294 MacOS \ud504\ub85c\uadf8\ub7a8\uba85\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",MANDATORY_APP_ERROR_MESSAGE_3:"\ud504\ub85c\uadf8\ub7a8\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694",MIN_VERSION:"\ucd5c\uc18c \ubc84\uc804",MODIFIED:"\uc218\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4",MANDATORY_APP_METHOD_ADD:"\uccb4\ud06c\ubc29\uc2dd \ucd94\uac00",SERVER_INFO:"\uace0\uac1d\uc815\ubcf4",SEARCH_WITHIN_RESULT:"\uacb0\uacfc \ub0b4 \uac80\uc0c9",APPROVING_TIMEOUT:"\uc2b9\uc778 \uad8c\ud55c \uc774\uc804 \ub9cc\ub8cc \uc2dc\uac04",WEBLINK_MAX_DOWNLOAD:"\ucd5c\ub300 \ub2e4\uc6b4\ub85c\ub4dc \uc218",WEBLINK_FORCED_USE_PASSWORD:"\uc554\ud638\uac15\uc81c \uc0ac\uc6a9",WEBLINK_DEFAULT_EXPIRE_DAYS:"\uae30\ubcf8 \ub9cc\ub8cc\uc77c",WEBLINK_EXPIRE_DAYS:"\ucd5c\ub300 \ub9cc\ub8cc\uc77c",VERSION_LOCK:"\ubc84\uc804 \uc7a0\uae08",VERSION_UNLOCK:"\ubc84\uc804 \ud574\uc81c",USER_UNLOCK:"\uacc4\uc815 \ud574\uc81c",EXCLUDED_PATH:"\uc608\uc678 \uacbd\ub85c",EXCLUDED_EXT:"\uc608\uc678 \ud655\uc7a5\uc790",CLIENT:"\ud074\ub77c\uc774\uc5b8\ud2b8",BUSINESS_NUMBER:"\uc0ac\uc5c5\uc790\ubc88\ud638",CEO:"\ub300\ud45c\uc790\uba85",PARTNERSHIP_EMAIL:"\ub300\ud45c \uc774\uba54\uc77c",PHONE:"\uc804\ud654\ubc88\ud638",FAX:"\ud329\uc2a4",REQUESTED:"\uc694\uccad",PROCESSED:"\ucc98\ub9ac",FPOD_TITLE:"\uacfc/\uc624\ud0d0 \ucc98\ub9ac",FPOD_TEXT_1:"\uacfc/\uc624\ud0d0 \ubcf4\uace0 \uc0ac\uc6a9\uc790 \ubaa9\ub85d",FPOD_TEXT_2:"\uc7ac\uac80\ucd9c \ubc29\uc9c0 \uc124\uc815",PARTNERSHIP:"\ud611\ub825\uc0ac",PARTNERSHIP_ADD:"\ud611\ub825\uc0ac\ucd94\uac00",PARTNERSHIP_NAME:"\ud611\ub825\uc0ac\uba85",USER_LOCK_MESSGE_1:"\uc0ac\uc6a9\uc790 \uacc4\uc815\uc744 \uc7a0\uadf8\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",USER_LOCK_MESSGE_2:"\uc0ac\uc6a9\uc790 \uacc4\uc815\uc744 \ud574\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",USER_INFO:"\uc0ac\uc6a9\uc790 \uc815\ubcf4",PERM_INFO:"\uad8c\ud55c \uc815\ubcf4",USER_DYNAMIC_SECURITY_MODE_HELP_TEXT:"\uc0ac\uc6a9\uc2dc COODOC\uc774 \uc885\ub8cc \ub41c \uacbd\uc6b0 \ubcf4\uc548\uae30\ub2a5\uc744 \uc0ac\uc6a9 \uc548 \ud568",FILE_ACCESS_LOG:"File access log",SUB_ADMIN_ASSIGN:"Sub-administrator assignment",PII_DETECTION_LOG:"PII detection log",PARTNER_MANAGEMENT:"Partner management",TAKEOUT_REQUEST_MANAGEMENT:"Takeout request management",USERPAGE_ERROR_MESSAGE_1:"Can't create a new folder at the top level",TAKEOUT_APPROVAL_REVIEW:"Approval Review",TAKEOUT_REVIEW:"Takeout Review",TAKEOUT_FILE_LIST:"Takeout File List",TAKEOUT_APPROVE_CONFIRM:"Are you sure you want to approve?",TAKEOUT_REJECT_CONFIRM:"Are you sure you want to reject?",RECOMMENDED:"\uad8c\uc7a5",COLLECT_SCOPE_SETTINGS:"\uc218\uc9d1 \ubc94\uc704 \uc124\uc815",COLLECT_PATH_POLICY:"\uacbd\ub85c\uc815\ucc45",ADD_INCLUSIVE_PATH:"\ub300\uc0c1 \uacbd\ub85c \ucd94\uac00",ADD_IGNORE_PATH:"\uc81c\uc678 \uacbd\ub85c \ucd94\uac00",COLLECT_GLOBAL_SETTINGS_HINT_4:"\uc218\uc9d1\ud560 \ud30c\uc77c\uc758 \uc870\uac74\uc744 \uc124\uc815",ADD_INCLUSIVE_EXT:"\uc9c0\uc815 \ud655\uc7a5\uc790 \ucd94\uac00",ADD_IGNORE_EXT:"\uc81c\uc678 \ud655\uc7a5\uc790 \ucd94\uac00",ADDITIONAL_FILE_CONDITIONS:"\ucd94\uac00 \ud30c\uc77c \uc870\uac74",COLLECT_STORAGE_OPTION:"\uc800\uc7a5\uc7a5\uce58 \ubc0f \uc2e4\ud589 \uc635\uc158",COLLECT_GLOBAL_SETTINGS_HINT_5:"\uc218\uc9d1\ud560 \uc800\uc7a5\uc7a5\uce58\uc640 \uc2e4\ud589 \uc635\uc158 \uc124\uc815",COLLECT_DRIVE:"\uc218\uc9d1 \ub300\uc0c1 \uc800\uc7a5\uc7a5\uce58",COLLECT_OPTION:"\uc2e4\ud589 \uc635\uc158",EXTENSION:"\ud655\uc7a5\uc790",COLLECT_REGIST_HINT_1:"\ub2e4\uc911 \uc785\ub825\uc2dc \ucf64\ub9c8 ','\ub85c \uad6c\ubd84",COLLECT_REGIST_HINT_2:"\uc815\uaddc\uc2dd \uc0ac\uc6a9 \uac00\ub2a5",COLLECT_REGIST_HINT_3:"\uc218\uc9d1 \ud3f4\ub354\uba85",COLLECT_REGIST_MESSAGE_1:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4",COLLECT_REGIST_MESSAGE_2:"\uc774\ubbf8 \ub2e4\ub978 \uc720\ud615\uc73c\ub85c \ub4f1\ub85d\ub41c \ud56d\ubaa9\uc774 \uc788\uc2b5\ub2c8\ub2e4",VALUE_TO_REGISTER:"\ub4f1\ub85d\ud560 \uac12\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",COLLECTOR_SUPPORT:"\uc218\uc9d1\uae30\ub2a5\ud65c\uc131\ud654",COLLECTOR_MODE:"\uc218\uc9d1\ubaa8\ub4dc",COLLECT_GLOBAL_SETTINGS_HINT_6:"\uc815\ucc45\uc5d0 \ub530\ub77c \uc0ac\uc6a9\uc790 PC\uc758 \ud30c\uc77c\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\uc9d1",COLLECT_GLOBAL_SETTINGS_HINT_7:"\uc218\uc9d1\ubc29\uc2dd\uacfc \ubc94\uc704 \uc120\ud0dd",COLLECT_MODE_1:"\uc5c5\ubb34\ubb38\uc11c \uc218\uc9d1",COLLECT_MODE_2:"\uc0ac\uc6a9\uc790 \uc9c0\uc815 \ud655\uc7a5\uc790 \uc218\uc9d1",COLLECT_MODE_3:"\uc804\uccb4 \uc218\uc9d1",COLLECT_GLOBAL_SETTINGS_HINT_8:"\ud68c\uc0ac \uc5c5\ubb34\uc5d0 \uc0ac\uc6a9\ud558\ub294 \ubb38\uc11c/\ub3c4\uba74/\uc774\ubbf8\uc9c0 \ud30c\uc77c\ub9cc \uc218\uc9d1\ud569\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_9:"\uc608: ",COLLECT_GLOBAL_SETTINGS_HINT_10:"\uad00\ub9ac\uc790\uac00 \uc9c0\uc815\ud55c \ud655\uc7a5\uc790\ub9cc \uc218\uc9d1\ud569\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_11:"\uc81c\uc678 \uacbd\ub85c\uc678 \uc81c\uc678 \ud655\uc7a5\uc790\ub97c \uc81c\uc678\ud55c \ud30c\uc77c\uc774 \uc218\uc9d1 \ub300\uc0c1\uc774 \ub429\ub2c8\ub2e4",COLLECT_GLOBAL_SETTINGS_HINT_12:"\uc81c\uc678\uacbd\ub85c \uc678 \ub300\ubd80\ubd84\uc758 \ud30c\uc77c\uc774 \uc218\uc9d1\ub300\uc0c1\uc774 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4",WARNING:"\uace0\uae09/\uc8fc\uc758",TAKEOUT_REASON_REJECT_ERROR:"\ubc18\ub824\uc0ac\uc720\ub97c \uc785\ub825\ud558\uc138\uc694",AWAITING_APPROVAL:"\uc2b9\uc778\ub300\uae30",REGISTER_MOBLIE_TOKEN:"\uae30\uae30\ub4f1\ub85d",REGISTER_MOBLIE_TOKEN_CONFIRM:"\uae30\uae30\ub97c \ub4f1\ub85d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",REGISTER_MOBLIE_TOKEN_ALREADY:"\uc774\ubbf8 \ub4f1\ub85d\ub41c \uae30\uae30\uc785\ub2c8\ub2e4",REGISTER_MOBLIE_TOKEN_SUCC:"\uae30\uae30\ub4f1\ub85d \uc131\uacf5",REGISTER_MOBLIE_TOKEN_FAILD:"\uae30\uae30\ub4f1\ub85d \uc2e4\ud328",TAKEOUT_REQUEST_INFO:"\uc694\uccad \uc815\ubcf4"};var Oh={BROWSER_TITLE:"COODOC",PRODUCT_NAME:"COODOC",PRODUCT_NAME_ADMIN:"COODOC ADMIN",PRODUCT_ADMIN:"\uad00\ub9ac\uc790",USER:"\uc0ac\uc6a9\uc790",WEBLINK_TITLE:"COODOC Weblink Download"};var ph={BROWSER_TITLE:"COODOC",PRODUCT_NAME:"COODOC",PRODUCT_NAME_ADMIN:"COODOC ADMIN",PRODUCT_ADMIN:"ADMIN",USER:"",WEBLINK_TITLE:"COODOC Weblink Download"};r.a.addResourceBundle("ko","docbase",jh),r.a.addResourceBundle("en","docbase",uh),r.a.addResourceBundle("ko","brand",Oh),r.a.addResourceBundle("en","brand",ph);const hh=[il,bl,fr,Kr,Zr,ji,Ai,Pi,Hi,qi,pd,fd,Hd,No,vo,Ro,wo,eb,Vd,Io,nd,Ld,ab,rb,Ob,Eb,vb,Lb,Fb,Kb,Kj,ou,_u,vu,Gu,AO,nO,UO,VO,QO,lp,_p,yp,Ip,Hp,Vp,nh,ih,bh];let mh=sessionStorage.getItem("coodoc-language");null!==mh&&0!==mh.length||(mh="ko");const _h=new T.a(window.navigator.userAgent);(window.ReactNativeWebView||_h.mobile())&&sessionStorage.setItem("device","mobile"),o.changeLanguage(mh).then((()=>{})),document.title=Oh.BROWSER_TITLE;var fh=[...p.generateRoutesFromConfigs(hh),{path:"/",component:()=>Object(g.jsx)(f.a,{to:"/login"})},{path:"/admin",component:()=>Object(g.jsx)(f.a,{to:"/admin"})}];const gh=Object(Nc.a)(Object(d.a)(Object(d.a)({},Object(fc.a)()),{},{plugins:[...Object(fc.a)().plugins,Object(Sc.a)(),vc()()],insertionPoint:document.getElementById("jss-insertion-point")})),Eh=Object(gc.a)();var xh=()=>Object(g.jsx)(h.Provider,{value:{routes:fh},children:Object(g.jsx)(Ec.b,{jss:gh,generateClassName:Eh,children:Object(g.jsx)(Rc.a,{store:_n,children:Object(g.jsx)(xc.a,{utils:b.a,children:Object(g.jsx)(Gc,{children:Object(g.jsx)(f.c,{history:se.a,children:Object(g.jsx)(x,{children:Object(g.jsx)(_c,{children:Object(g.jsx)(pc,{})})})})})})})})});var Nh=e=>{e&&e instanceof Function&&a.e(4).then(a.bind(null,984)).then((t=>{let{getCLS:a,getFID:n,getFCP:s,getLCP:c,getTTFB:l}=t;a(e),n(e),s(e),c(e),l(e)}))};l.a.render(Object(g.jsx)(xh,{}),document.getElementById("root")),Nh()},9:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"c",(function(){return o}));var n=a(2),s=a(27);const c={state:null,options:{anchorOrigin:{vertical:"top",horizontal:"center"},autoHideDuration:3e3,message:"Hi",variant:null}},l=Object(s.d)({name:"message",initialState:c,reducers:{showMessage:(e,t)=>{e.state=!0,e.options=Object(n.a)(Object(n.a)({},c.options),t.payload)},hideMessage:(e,t)=>{e.state=null},showErrorMessage:(e,t)=>{e.state=!0,e.options=Object(n.a)(Object(n.a)(Object(n.a)({},c.options),t.payload),{},{variant:"error"})}}}),{hideMessage:r,showMessage:i,showErrorMessage:o}=l.actions;t.a=l.reducer}},[[886,1,2]]]); //# sourceMappingURL=main.09aac774.chunk.js.map