(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[0],{10:function(e,t,a){"use strict";var n=a(8);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.I:return"Unknown";case n.D:return"\uc870\uc9c1\ud3f4\ub354";case n.G:return"\uacf5\uc720\ud3f4\ub354";case n.F:return"\uac1c\uc778\ud3f4\ub354";case n.C:return"\uc218\uc9d1\ud3f4\ub354";case n.H: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 n of t.attributes)a[n.name]=n.value;for(const n of t.children){const t=e(n);a[n.tagName]?(Array.isArray(a[n.tagName])||(a[n.tagName]=[a[n.tagName]]),a[n.tagName].push(t)):a[n.tagName]=[t]}return 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)}}},102: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(30),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(254),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))}},104:function(e,t,a){"use strict";a.d(t,"c",(function(){return u})),a.d(t,"i",(function(){return O})),a.d(t,"a",(function(){return p})),a.d(t,"j",(function(){return h})),a.d(t,"y",(function(){return m})),a.d(t,"p",(function(){return _})),a.d(t,"F",(function(){return f})),a.d(t,"E",(function(){return g})),a.d(t,"l",(function(){return E})),a.d(t,"e",(function(){return x})),a.d(t,"K",(function(){return S})),a.d(t,"h",(function(){return v})),a.d(t,"d",(function(){return C})),a.d(t,"A",(function(){return y})),a.d(t,"s",(function(){return A})),a.d(t,"C",(function(){return L})),a.d(t,"r",(function(){return w})),a.d(t,"x",(function(){return P})),a.d(t,"u",(function(){return I})),a.d(t,"L",(function(){return D})),a.d(t,"z",(function(){return M})),a.d(t,"I",(function(){return k})),a.d(t,"v",(function(){return G})),a.d(t,"w",(function(){return F})),a.d(t,"B",(function(){return W})),a.d(t,"t",(function(){return H})),a.d(t,"f",(function(){return z})),a.d(t,"b",(function(){return B})),a.d(t,"m",(function(){return Y})),a.d(t,"k",(function(){return K})),a.d(t,"n",(function(){return V})),a.d(t,"o",(function(){return X})),a.d(t,"q",(function(){return Z})),a.d(t,"D",(function(){return te})),a.d(t,"G",(function(){return le})),a.d(t,"H",(function(){return re})),a.d(t,"J",(function(){return ie}));var n=a(2),s=a(196),c=a.n(s),l=a(27),r=a(6),i=a(12),o=a(10),d=a(8),b=a(14),j=a(34);const u=Object(l.b)("wc/file/checkStructFolder",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=[];for(let c=0;c{let{targetFile:a,isDirect:n}=e,{dispatch:s,getState:c}=t;if(!a.name)return s(Z()),!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($({fileInfo:a,isFirst:n})),s(Q({files:i.files,curPath:l})),!0):("\uacf5\uc720"!==l&&"Shared"!==l?s(Z()):(s($({fileInfo:a,isFirst:n})),s(Q({files:[],curPath:l}))),!1)})),p=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(Z()),a(ae({isInitial:!0})),!1;const c=await r.a.sendPost("/wcapi/fileList",{path:s});return c.result?(a(Q({files:c.files,curPath:s})),a(ae({isInitial:!1})),!0):(a(Z()),a(ae({isInitial:!0})),!1)})),h=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(Z()),!1;const l=await r.a.sendPost("/wcapi/fileList",{path:a});return l.result?(s(Q({files:l.files,curPath:a})),n||s(ee({reqPath:a})),!0):(s(Z()),!1)})),m=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(Q({files:s.files,curPath:n().docbase.wc.file.curPath})),!0):(a(Z()),!1)})),_=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:[]})),f=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:{}})),g=Object(l.b)("wc/file/searchFile",(async e=>{let{targetPath:t,searchVal:a,excludeVal:n,findOption:s,exts:c}=e;const l=await r.a.sendPost("/wcapi/searchFile",{base_path:t,search_string:a,exclude_string:n,find_option:s,exts:c});return l.result?l.files:[]})),E=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:[]})),x=(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))}))})),N=1048576,S=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(ne());const s=new FileReader;let c;if(t.size{n(ne()),r.a.sendPostMultipartForm("/wcapi/uploadFile",{path:e},[t],["file"],(e=>{e.data.result&&n(h({targetPath:a,isRefresh:!0})),n(ce())}))},v=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)),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())}))}))})),y=(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))}))})),A=(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()})),L=(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))}))})),w=(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))}))})),I=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/purgeTrashFile",{path:e}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))})),D=(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))}))}))})),M=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))}))}))})),k=(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))}))}))})),G=(e,t,a)=>new Promise(((n,s)=>{U(e,t,a)?n({result:!0}):s()})),U=async(e,t,a)=>{const n=c.a.createWriteStream(o.a.splitLastDelimiterString(e),{size:a});if(aa?a-l:N,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))}))})),W=(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))}))})),H=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))}))}))})),z=(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))}))}))})),B=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?R(e.target_path):(r.a.printError(e),s(e))}))}))})),K=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))}))})),V=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){const e=Object(n.a)({},c.values);return e.session.local_account=l[e.session.user_id].local_account,e}return{collect:{},organization_folders:[],organizations:[],private:{},session:{orgs_manage:0,privilege:0,user_id:"",user_name:""},shareds:[]}})),X=async e=>{const t=await r.a.sendPost("/api/folderUsers",{fid:e});return t.result?t.users:[]},q=[{accessible:!1,name:"\uc870\uc9c1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.D},{accessible:!1,name:"\uacf5\uc720",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.G},{accessible:!1,name:"\uac1c\uc778",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.F},{accessible:!1,name:"\uc218\uc9d1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:d.C}],J=Object(l.d)({name:"wc/file",initialState:{structFolders:[],isSettingPage:!1,curPath:"/",curPathInfo:{},navigator:[],curFileList:q,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=q,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:{[g.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[E.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[_.fulfilled]:(e,t)=>{e.revisionFileList=t.payload},[f.fulfilled]:(e,t)=>{e.secureDocInfo=t.payload},[u.fulfilled]:(e,t)=>{e.structFolders=t.payload},[V.fulfilled]:(e,t)=>{e.dashboardObj=t.payload}}}),{initFileList:Z,setFileList:Q,setCurPathInfo:$,setCurPathInfoByPath:ee,resetSearchList:te,setBackSpace:ae,startUpload:ne,uploadingFile:se,finishUpload:ce,setCopyPath:le,setCutPath:re,setSettingPage:ie}=J.actions;t.g=J.reducer},12:function(e,t,a){"use strict";(function(e){var n=a(350),s=a.n(n),c=a(72),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 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})},15:function(e,t,a){"use strict";a.d(t,"m",(function(){return j})),a.d(t,"v",(function(){return u})),a.d(t,"y",(function(){return p})),a.d(t,"T",(function(){return h})),a.d(t,"P",(function(){return m})),a.d(t,"w",(function(){return _})),a.d(t,"x",(function(){return g})),a.d(t,"O",(function(){return E})),a.d(t,"r",(function(){return x})),a.d(t,"F",(function(){return N})),a.d(t,"u",(function(){return S})),a.d(t,"N",(function(){return T})),a.d(t,"l",(function(){return v})),a.d(t,"q",(function(){return y})),a.d(t,"R",(function(){return A})),a.d(t,"W",(function(){return w})),a.d(t,"j",(function(){return P})),a.d(t,"M",(function(){return I})),a.d(t,"i",(function(){return D})),a.d(t,"Z",(function(){return M})),a.d(t,"H",(function(){return k})),a.d(t,"cb",(function(){return G})),a.d(t,"U",(function(){return U})),a.d(t,"z",(function(){return F})),a.d(t,"V",(function(){return W})),a.d(t,"k",(function(){return H})),a.d(t,"A",(function(){return z})),a.d(t,"X",(function(){return B})),a.d(t,"B",(function(){return Y})),a.d(t,"G",(function(){return K})),a.d(t,"Y",(function(){return V})),a.d(t,"c",(function(){return X})),a.d(t,"g",(function(){return q})),a.d(t,"I",(function(){return J})),a.d(t,"n",(function(){return Z})),a.d(t,"b",(function(){return Q})),a.d(t,"L",(function(){return $})),a.d(t,"p",(function(){return ee})),a.d(t,"Q",(function(){return te})),a.d(t,"ab",(function(){return ae})),a.d(t,"J",(function(){return ne})),a.d(t,"o",(function(){return se})),a.d(t,"a",(function(){return ce})),a.d(t,"bb",(function(){return le})),a.d(t,"K",(function(){return re})),a.d(t,"t",(function(){return ie})),a.d(t,"s",(function(){return oe})),a.d(t,"E",(function(){return de})),a.d(t,"C",(function(){return je})),a.d(t,"D",(function(){return ue})),a.d(t,"f",(function(){return Oe})),a.d(t,"e",(function(){return pe})),a.d(t,"d",(function(){return he})),a.d(t,"S",(function(){return me}));var n=a(2),s=a(27),c=a(6),l=a(12),r=a(10),i=a(14),o=a(8),d=a(7),b=a(25);const j=Object(s.b)("setting/getEmergencyMode",(async()=>{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={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,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(C({page:a})),{total_rows:l.total_rows,total_pages:l.total_pages}):{total_rows:0,total_pages:0}})),C=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?{docs:l.docs,page:a}:{docs:[],page:1}})),y=()=>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=(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))}))})),P=()=>new Promise(((e,t)=>{c.a.sendPost("/api/finishEmergencyMode",{}).then((a=>{a.result?e(a):(c.a.printError(a),t(a))}))})),I=(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))}))})),D=()=>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))}))}))})),M=(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))}))}))})),k=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))}))}))})),G=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))))}))})),U=(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))}))})),F=()=>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)}))}))})),W=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))}))}))})),H=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.D===t.folder_type&&(a[t.fid]=t.permissions):a[t.fid]=t.permissions})),t(a)}else c.a.printError(n),a(n)}))}))})),z=Object(s.b)("setting/getWhiteProcessList",(async()=>{const e=await c.a.sendPost("/api/whiteProcessList",{});return e.result?e.processes:(c.a.printError(e),[])})),B=e=>new Promise(((t,a)=>{c.a.sendPost("/api/unregisterWhiteProcess",{name:e}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))})),Y=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),[])})),K=(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))}))}))})),V=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))}))}))})),X=(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))}))})),q=(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))}))}))})),J=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))}))}))})),Z=()=>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))}))}))})),Q=(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))}))}))})),$=(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))}))}))})),ee=()=>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))}))}))})),te=(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))}))}))})),ae=(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))}))}))})),ne=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))}))}))})),se=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)}))}))})),ce=(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))}))}))})),le=(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))}))}))})),re=(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))}))}))})),ie=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))}))}))})),oe=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))}))}))})),de=(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))}))}))})),be=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,docs:[]},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,total_pages: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},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.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_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.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},[C.fulfilled]:(e,t)=>{e.secureFolderObj.docs=t.payload.docs.map((e=>Object(n.a)(Object(n.a)({},e),{},{path:r.a.changeAccessibleFolder(e.path)}))),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.total_pages=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)}))),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},[z.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},[Y.fulfilled]:(e,t)=>{e.whiteURLList=t.payload}}}),{onClickDoc:je,onClickDocEx:ue,changeRowsPerPage:Oe,changePiiRowsPerPage:pe,changeDupRowsPerPage:he,setShowBackdrop:me}=be.actions;t.h=be.reducer},19:function(e,t,a){"use strict";a.d(t,"e",(function(){return j})),a.d(t,"f",(function(){return u})),a.d(t,"k",(function(){return O})),a.d(t,"C",(function(){return h})),a.d(t,"p",(function(){return m})),a.d(t,"o",(function(){return _})),a.d(t,"s",(function(){return f})),a.d(t,"D",(function(){return g})),a.d(t,"b",(function(){return E})),a.d(t,"x",(function(){return x})),a.d(t,"A",(function(){return N})),a.d(t,"c",(function(){return S})),a.d(t,"K",(function(){return T})),a.d(t,"z",(function(){return v})),a.d(t,"B",(function(){return R})),a.d(t,"F",(function(){return C})),a.d(t,"u",(function(){return y})),a.d(t,"G",(function(){return A})),a.d(t,"y",(function(){return L})),a.d(t,"g",(function(){return w})),a.d(t,"h",(function(){return P})),a.d(t,"r",(function(){return I})),a.d(t,"I",(function(){return D})),a.d(t,"i",(function(){return M})),a.d(t,"n",(function(){return k})),a.d(t,"m",(function(){return G})),a.d(t,"E",(function(){return U})),a.d(t,"J",(function(){return F})),a.d(t,"j",(function(){return W})),a.d(t,"a",(function(){return H})),a.d(t,"w",(function(){return z})),a.d(t,"l",(function(){return B})),a.d(t,"M",(function(){return Y})),a.d(t,"L",(function(){return K})),a.d(t,"t",(function(){return V})),a.d(t,"v",(function(){return X})),a.d(t,"H",(function(){return J})),a.d(t,"q",(function(){return Z}));var n=a(2),s=a(27),c=a(6),l=a(10),r=a(8),i=a(14),o=a(12),d=a(15),b=a(34);const j=Object(s.b)("folder/getAllFolderList",(async()=>{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 K()),{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.S)({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.S)({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.S)({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.S)({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.S)({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.S)({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))}))}))})),C=(e,t,a,n,s,l)=>new Promise(((r,o)=>{Object(i.d)(((i,d)=>{c.a.sendPost("/api/setFolderPermission",{fid:e,user_id:t,file_permission:a,trash_permission:n,manage_type:s,manage_priority:l,token:d}).then((e=>{e.result?r(e.result):(c.a.printError(e),o(e))}))}))})),y=(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.S)({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.S)({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)}))}))})),P=()=>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)}))}))})),I=(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[]}},Y=Object(s.b)("folder/wormholeAccessCodesEx",(async()=>({codeObj:await K()}))),K=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,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.D,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.G,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.E,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))},[Y.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.G,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.E,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},215:function(e,t,a){"use strict";const n={layout1:{title:"Layout 1 - Vertical",defaults:{mode:"fullwidth",scroll:"content",navbar:{display:!0,folded:!1,position:"left"},toolbar:{display:!1,style:"fixed",position:"below"},footer:{display:!0,style:"fixed",position:"below"},leftSidePanel:{display:!0},rightSidePanel:{display:!1}},form:{mode:{title:"Mode",type:"radio",options:[{name:"Boxed",value:"boxed"},{name:"Full Width",value:"fullwidth"}]},scroll:{title:"Scrollable Area",type:"radio",options:[{name:"Body",value:"body"},{name:"Content",value:"content"}]},navbar:{type:"group",title:"Navbar",children:{display:{title:"Display",type:"switch"},folded:{title:"Folded",type:"switch"},position:{title:"Position",type:"radio",options:[{name:"Left",value:"left"},{name:"Right",value:"right"}]}}},toolbar:{type:"group",title:"Toolbar",children:{display:{title:"Display",type:"switch"},style:{title:"Style",type:"radio",options:[{name:"Fixed",value:"fixed"},{name:"Static",value:"static"}]},position:{title:"Position",type:"radio",options:[{name:"Above",value:"above"},{name:"Below",value:"below"}]}}},footer:{type:"group",title:"Footer",children:{display:{title:"Display",type:"switch"},style:{title:"Style",type:"radio",options:[{name:"Fixed",value:"fixed"},{name:"Static",value:"static"}]},position:{title:"Position",type:"radio",options:[{name:"Above",value:"above"},{name:"Below",value:"below"}]}}}}},layout2:{title:"Layout 2 - Horizontal",defaults:{mode:"fullwidth",scroll:"content",navbar:{display:!0},toolbar:{display:!0,position:"below"},footer:{display:!0,style:"fixed"},leftSidePanel:{display:!0},rightSidePanel:{display:!0}},form:{mode:{title:"Mode",type:"radio",options:[{name:"Boxed",value:"boxed"},{name:"Full Width",value:"fullwidth"},{name:"Container",value:"container"}]},navbar:{type:"group",title:"Navbar",children:{display:{title:"Display",type:"switch"}}},toolbar:{type:"group",title:"Toolbar",children:{display:{title:"Display",type:"switch"},position:{title:"Position",type:"radio",options:[{name:"Above",value:"above"},{name:"Below",value:"below"}]}}},footer:{type:"group",title:"Footer",children:{display:{title:"Display",type:"switch"},style:{title:"Style",type:"radio",options:[{name:"Fixed",value:"fixed"},{name:"Static",value:"static"}]}}}}},layout3:{title:"Layout 3 - Horizontal",defaults:{mode:"container",scroll:"content",navbar:{display:!0},toolbar:{display:!0,position:"above"},footer:{display:!0,style:"fixed"},leftSidePanel:{display:!0},rightSidePanel:{display:!0}},form:{mode:{title:"Mode",type:"radio",options:[{name:"Boxed",value:"boxed"},{name:"Full Width",value:"fullwidth"},{name:"Container",value:"container"}]},navbar:{type:"group",title:"Navbar",children:{display:{title:"Display",type:"switch"}}},toolbar:{type:"group",title:"Toolbar",children:{display:{title:"Display",type:"switch"},position:{title:"Position",type:"radio",options:[{name:"Above",value:"above"},{name:"Below",value:"below"}]}}},footer:{type:"group",title:"Footer",children:{display:{title:"Display",type:"switch"},style:{title:"Style",type:"radio",options:[{name:"Fixed",value:"fixed"},{name:"Static",value:"static"}]}}}}}};t.a=n},217:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n=a(103).a()},23:function(e,t,a){"use strict";a.d(t,"a",(function(){return E}));var n=a(96),s=a(3),c=a(181),l=a.n(c),r=a(493),i=(a(628),a(1)),o=a.n(i),d=a(9),b=a(2),j=a(11),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))},24:function(e,t,a){"use strict";var n,s,c=a(96),l=a(3),r=a(1),i=a(198),o=a(496),d=a.n(o),b=a(497),j=a.n(b),u=a(498),O=a.n(u),p=a(499),h=a.n(p),m=a(500),_=a.n(m),f=a(501),g=a.n(f),E=a(502),x=a.n(E),N=a(503),S=a.n(N),T=a(504),v=a.n(T),R=a(505),C=a.n(R),y=a(506),A=a.n(y),L=a(507),w=a.n(L),P=a(508),I=a.n(P),D=a(509),M=a.n(D),k=a(510),G=a.n(k),U=a(511),F=a.n(U),W=a(512),H=a.n(W),z=a(513),B=a.n(z),Y=a(514),K=a.n(Y),V=a(515),X=a.n(V),q=a(516),J=a.n(q),Z=a(517),Q=a.n(Z),$=a(518),ee=a.n($),te=(a(770),a(771),a(772),a(274)),ae=a.n(te);const ne=["title","titleId"];function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const e=await s.a.sendPost("/api/storageDashboard",{});return e.result?{dashBoardObj:e.values[0]}:{total:{},types:{},organizes:[],shareds:[],privates:[],collects:[]}})),o=Object(n.b)("system/getHoldFiles",(async(e,t)=>{let{userID:a}=e,{_:n,getState:c}=t;const r=await Object(l.c)(),i=await s.a.sendPost("/api/holdFiles",{user_id:a,token:r.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=c().docbase.admin.account.usersObj[a].name,e)))}}return{files:[]}})),d=Object(n.b)("system/statisticValues",(async()=>{const e=await s.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}})),b=Object(n.b)("system/getAccessLog",(async(e,t)=>{let{startID:a,date:n,days:c,path:l,operator:r,accessType:i,isToday:o}=e,{dispatch:d,_:b}=t;const j=await s.a.sendPost("/api/fileAccessLogs",{start_id:a&&a>0?a:0,date:n,days:c,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}})),j=Object(n.b)("system/getAuditLog",(async(e,t)=>{let{page:a,auditType:n,startDate:c,endDate:r,object:i,user:o}=e,{dispatch:d,getState:b}=t;const j=await Object(l.c)(),O=await s.a.sendPost("/api/getAuditLog",{rows_per_page:b().docbase.admin.system.auditLogObj.rowsPerPage,audit_type:n,start_date:c,end_date:r,user:o,path:i,token:j.token});return O.result?(d(u({page:a})),{total_rows:O.total_rows,total_pages:O.total_pages}):{total_rows:0,total_pages:0}})),u=Object(n.b)("system/getAuditLogPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const r=await Object(l.c)(),i=await s.a.sendPost("/api/getAuditLogPage",{page:a,token:r.token});return i.result?{logs:i.logs,page:a,aes:r.aesKey}:{logs:[],page:1,aes:""}})),O=Object(n.b)("system/getWeblinks",(async(e,t)=>{let{page:a,startDate:n,endDate:c,user:r}=e,{dispatch:i,getState:o}=t;const d=await Object(l.c)(),b=await s.a.sendPost("/api/getWeblinks",{rows_per_page:o().docbase.admin.system.weblinkLogObj.rowsPerPage,start_registered_at:n,end_registered_at:c,user:r,token:d.token});return b.result?(i(p({page:a})),{total_rows:b.total_rows,total_pages:b.total_pages}):{total_rows:0,total_pages:0}})),p=Object(n.b)("system/getWeblinksPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const r=await Object(l.c)(),i=await s.a.sendPost("/api/getWeblinksPage",{page:a,token:r.token});return i.result?{logs:i.weblinks,page:a,aes:r.aesKey}:{logs:[],page:1,aes:""}})),h=Object(n.b)("system/getOsrInfo",(async(e,t)=>{let{dispatch:a,getState:n}=t;const c=await Object(l.c)(),i=await s.a.sendPost("/api/OSR",{token:c.token});return i.result?i.remains:{new_organizations:[],remove_organizations:[],remove_users:[],error:!0,exists:i.error===r.bb}})),m=Object(n.b)("system/getLegacyIntegrateMethod",(async()=>{const e=await Object(l.c)();return(await s.a.sendPost("/wcapi/getLegacyIntegrateMethod",{name:"web:change_download_url",token:e.token})).method})),_=Object(n.b)("system/inquiryTakeouts",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const l=await s.a.sendPost("/api/inquiryTakeouts",{rows_per_page:c().docbase.admin.system.takeoutsObj.rowsPerPage,duration:0,duration_type:4,inquiry_type:0,status:0});return l.result?(n(f({page:a})),{total_rows:l.total_rows,total_pages:l.total_pages}):{total_rows:0,total_pages:0}})),f=Object(n.b)("system/inquiryTakeoutsPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const r=await Object(l.c)(),i=await s.a.sendPost("/api/inquiryTakeoutsPage",{page:a,token:r.token});return i.result?{takeouts:i.takeouts,page:a,aes:r.aesKey}:{takeouts:[],page:1,aes:""}})),g=(e,t,a)=>new Promise(((n,c)=>{Object(l.d)(((c,l)=>{s.a.sendPost("/api/approveTakeoutRequest",{toid:e,approve:t,reason:a,token:l}).then((e=>{n({data:e,aes:c})}))}))})),E=(e,t,a,n)=>new Promise(((c,r)=>{Object(l.d)(((l,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};s.a.sendPost("/api/OSRProcess",{process:u,token:i}).then((e=>{e.result?c(e):(s.a.printError(e),r(e))}))}))})),x=()=>new Promise(((e,t)=>{s.a.sendPost("/api/getOSROrgs",{}).then((a=>{a.result?e(a.ids):(s.a.printError(a),t(a))}))})),N=e=>new Promise(((t,a)=>{s.a.sendPost("/api/setOSROrgs",{ids:e}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))})),S=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/releaseUserHoldFiles",{user_id:e,etd:30,token:c}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))}))})),T=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/naturalizeFiles",{path:e,token:c}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))}))})),v=async e=>{const t=[];for(let a=1;a<=e;a++){const e=await Object(l.c)(),n=await s.a.sendPost("/api/getAuditLogPage",{page:a,token:e.token});n.result&&n.logs.forEach((a=>{a.extra=c.a.decryptAES(e.aesKey,a.extra,"hex","utf8"),a.new_object=c.a.decryptAES(e.aesKey,a.new_object,"hex","utf8"),a.old_object=c.a.decryptAES(e.aesKey,a.old_object,"hex","utf8"),a.opreator=c.a.decryptAES(e.aesKey,a.opreator,"hex","utf8"),t.push(a)}))}return t},R=(e,t,a)=>new Promise(((n,c)=>{Object(l.d)(((l,r)=>{s.a.sendPost("/api/setRecommendUpdateNewClient",{user_id:e,fid:t,recommend_type:a,token:r}).then((e=>{e.result?n(e):(s.a.printError(e),c(e))}))}))})),C=(e,t)=>new Promise(((a,n)=>{Object(l.d)(((c,l)=>{s.a.sendPost("/api/getRecommendUpdateNewClient",{user_id:e,fid:t,token:l}).then((e=>{e.result?a(e.users):(s.a.printError(e),n(e))}))}))})),y=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/clientsInfo",{user_id:e,token:c}).then((e=>{e.result?t(e.clients):(s.a.printError(e),a(e))}))}))})),A=()=>new Promise(((e,t)=>{s.a.sendPost("/api/getApprovalTakeoutManageTypes",{}).then((a=>{a.result?e(a.folders):(s.a.printError(a),t(a))}))})),L=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/setApprovalTakeoutManageTypes",{folders:e}).then((e=>{e.result?t(e.result):(s.a.printError(e),a(e))}))}))})),w=e=>new Promise(((t,a)=>{s.a.sendPost("/api/getAutoApprovalSettingsForFolder",{fid:e}).then((e=>{e.result?t(e.users):(s.a.printError(e),a(e))}))})),P=(e,t)=>new Promise(((a,n)=>{Object(l.d)(((c,l)=>{s.a.sendPost("/api/setAutoApprovalSettingsForFolder",{fid:e,users:t,token:l}).then((e=>{e.result?a(e.result):(s.a.printError(e),n(e))}))}))})),I=(e,t,a,n)=>new Promise(((c,r)=>{Object(l.d)(((l,i)=>{s.a.sendPost("/api/collectLogs",{user_id:e,start_date:t,end_date:a,omit_server_log:n}).then((e=>{e.result?c(e):(s.a.printError(e),r(e))}))}))})),D=()=>new Promise(((e,t)=>{Object(l.d)(((a,n)=>{s.a.sendPost("/api/collectLogsStatus",{}).then((a=>{a.result?e(a):(s.a.printError(a),t(a))}))}))})),M=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/getCollectedLogs",{conditions:e}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))}))})),k=e=>new Promise(((t,a)=>{Object(l.d)(((n,c)=>{s.a.sendPost("/api/getCollectedLogsPage",{page:e}).then((e=>{e.result?t(e.logs):(s.a.printError(e),a(e))}))}))})),G=(e,t,a,n)=>new Promise(((c,l)=>{s.a.sendPost("/api/clientRunningLogs",{user_id:e,start_time:t,end_time:a,rows_per_page:n}).then((e=>{e.result?c(e):(s.a.printError(e),l(e))}))})),U=e=>new Promise(((t,a)=>{s.a.sendPost("/api/clientRunningLogsPage",{page:e}).then((e=>{e.result?t(e.logs):(s.a.printError(e),a(e))}))})),F=Object(n.b)("system/offlineDriveTakeoutFiles",(async(e,t)=>{let{page:a,day:n,userID:c}=e,{dispatch:r,getState:i}=t;const o=await Object(l.c)(),d=await s.a.sendPost("/api/offlineDriveTakeoutFiles",{rows_per_page:i().docbase.admin.system.offlineTakeoutsObj.rowsPerPage,duration:n,duration_type:4,user_id:c,token:o.token});return d.result?(r(W({page:a})),{total_rows:d.total_rows,total_pages:d.total_pages}):{total_rows:0,total_pages:0}})),W=Object(n.b)("system/offlineDriveTakeoutFilesPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const r=await Object(l.c)(),i=await s.a.sendPost("/api/offlineDriveTakeoutFilesPage",{page:a,token:r.token});return i.result?{takeouts:i.takeouts,page:a,aes:r.aesKey}:{takeouts:[],page:1,aes:""}})),H=async()=>{const e=await s.a.sendPost("/api/storageDashboard",{});return e.result?e.values[0]:{total:{},types:{},organizes:[],shareds:[],privates:[],collects:[]}},z=async()=>{const e=await s.a.sendPost("/api/pluginListXML",{});return e.result?e.xmls:[]},B=async e=>{const t=await Object(l.c)(),a=await s.a.sendPost("/api/pluginReadXML",{path:c.a.encryptAES(t.aesKey,e,"utf8","hex"),token:t.token});return a.result&&a.xml&&c.a.decryptAES(t.aesKey,a.xml,"hex","utf8")||""},Y=async(e,t)=>{const a=await Object(l.c)();return(await s.a.sendPost("/api/pluginWriteXML",{path:c.a.encryptAES(a.aesKey,e,"utf8","hex"),xml:c.a.encryptAES(a.aesKey,t,"utf8","hex"),token:a.token})).result},K=async e=>{const t=await Object(l.c)(),a=await s.a.sendPost("/api/pluginRun",{command_id:c.a.encryptAES(t.aesKey,e,"utf8","hex"),token:t.token});return a.result?a.run_id:-1},V=async e=>{const t=await s.a.sendPost("/api/pluginRunInfo",{run_id:e});return t.result?t.info:{running:!1,err:"",std_out:"",std_err:"",exit_code:-1}},X=async(e,t)=>(await s.a.sendPost("/api/sendUrgentMessage",{title:e,message:t})).result,q=async(e,t,a,n,c,l,r)=>{const i=await s.a.sendPost("/api/fileAccessLogs",{start_id:e&&e>0?e:0,date:t,days:a,path:n,operator:c,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}},J=async(e,t)=>{const a=await Object(l.c)(),n=await s.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}},Z=async e=>{const t=await Object(l.c)(),a=await s.a.sendPost("/api/getFPODsPage",{page:e,token:t.token});return a.result?a.files.map((e=>(e.path=c.a.decryptAES(t.aesKey,e.path,"hex","utf8").replaceAll("[_ORG_].",""),e.registered_by=c.a.decryptAES(t.aesKey,e.registered_by,"hex","utf8"),e.registered_username=c.a.decryptAES(t.aesKey,e.registered_username,"hex","utf8"),e))):[]},Q=async(e,t,a,n)=>{const c=await Object(l.c)(),r=await s.a.sendPost("/api/getFOIs",{rows_per_page:100,start_date:e,end_date:t,size:""===a?0:Number(a),exts:n,token:c.token});return r.result?{total_rows:r.total_rows,total_pages:r.total_pages}:{total_rows:0,total_pages:0}},$=async e=>{const t=await Object(l.c)(),a=await s.a.sendPost("/api/getFOIsPage",{page:e,token:t.token});return a.result?a.files.map((e=>(e.path=c.a.decryptAES(t.aesKey,e.path,"hex","utf8"),e))):[]},ee=async e=>{const t=[];for(let a=1;a<=e;a++){const e=await Object(l.c)(),n=await s.a.sendPost("/api/getFOIsPage",{page:a,token:e.token});n.result&&n.files.forEach((a=>{a.path=c.a.decryptAES(e.aesKey,a.path,"hex","utf8"),t.push(a)}))}return t},te=Object(n.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}},extraReducers:{[i.fulfilled]:(e,t)=>{e.dashboardObj=t.payload.dashBoardObj},[d.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},[b.fulfilled]:(e,t)=>{t.payload.isToday?(e.todayLogs=t.payload.logs,e.todayLogID=t.payload.id):e.accessLogObj.logs=t.payload.logs},[j.fulfilled]:(e,t)=>{e.auditLogObj.totalRows=t.payload.total_rows,e.auditLogObj.totalPages=t.payload.total_pages},[u.fulfilled]:(e,t)=>{e.auditLogObj.logs=t.payload.logs.map((e=>(e.extra=c.a.decryptAES(t.payload.aes,e.extra,"hex","utf8"),e.new_object=c.a.decryptAES(t.payload.aes,e.new_object,"hex","utf8"),e.old_object=c.a.decryptAES(t.payload.aes,e.old_object,"hex","utf8"),e.opreator=c.a.decryptAES(t.payload.aes,e.opreator,"hex","utf8"),e))),e.auditLogObj.currentPage=t.payload.page},[O.fulfilled]:(e,t)=>{e.weblinkLogObj.totalRows=t.payload.total_rows,e.weblinkLogObj.totalPages=t.payload.total_pages},[p.fulfilled]:(e,t)=>{e.weblinkLogObj.logs=t.payload.logs.map((e=>(e.created_by=c.a.decryptAES(t.payload.aes,e.created_by,"hex","utf8"),e.creator=c.a.decryptAES(t.payload.aes,e.creator,"hex","utf8"),e.email_otp_address=e.email_otp_address?c.a.decryptAES(t.payload.aes,e.email_otp_address,"hex","utf8"):"",e.files=e.files.map((e=>c.a.decryptAES(t.payload.aes,e,"hex","utf8"))),e))),e.weblinkLogObj.currentPage=t.payload.page},[h.fulfilled]:(e,t)=>{e.osrObj=t.payload},[m.fulfilled]:(e,t)=>{e.legacyObj=t.payload},[_.fulfilled]:(e,t)=>{e.takeoutsObj.totalRows=t.payload.total_rows,e.takeoutsObj.totalPages=t.payload.total_pages},[f.fulfilled]:(e,t)=>{e.takeoutsObj.key=t.payload.aes;let a="";e.takeoutsObj.takeouts=t.payload.takeouts.map((e=>(e.requester=c.a.decryptAES(t.payload.aes,e.requester,"hex","utf8"),e.approver=c.a.decryptAES(t.payload.aes,e.approver,"hex","utf8"),a=c.a.decryptAES(t.payload.aes,e.requester_name,"hex","utf8"),e.requester_name="Unknown"===a?"-":a,a=c.a.decryptAES(t.payload.aes,e.approver_name,"hex","utf8"),e.approver_name="Unknown"===a?"-":a,e.requested_at=c.a.decryptAES(t.payload.aes,e.requested_at,"hex","utf8"),e.approved_at=c.a.decryptAES(t.payload.aes,e.approved_at,"hex","utf8"),e.reason_requested=c.a.decryptAES(t.payload.aes,e.reason_requested,"hex","utf8"),e.reason_rejected=c.a.decryptAES(t.payload.aes,e.reason_rejected,"hex","utf8"),e))),e.takeoutsObj.currentPage=t.payload.page},[F.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.totalRows=t.payload.total_rows,e.offlineTakeoutsObj.totalPages=t.payload.total_pages},[W.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.takeouts=t.payload.takeouts.map((e=>(e.user_id=c.a.decryptAES(t.payload.aes,e.user_id,"hex","utf8"),e.user_name=c.a.decryptAES(t.payload.aes,e.user_name,"hex","utf8"),e.copied_at=c.a.decryptAES(t.payload.aes,e.copied_at,"hex","utf8"),e.path=c.a.decryptAES(t.payload.aes,e.path,"hex","utf8"),e))),e.offlineTakeoutsObj.currentPage=t.payload.page},[o.fulfilled]:(e,t)=>{e.holdFiles=t.payload.files}}}),{changeAuditLogRowsPerPage:ae,changeTakeoutsRowsPerPage:ne,changeOfflineTakeoutsRowsPerPage:se}=te.actions;t.g=te.reducer},26: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},28:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));a(1);var n=a(9),s=a(200),c=a(96),l=a(283),r=a(223),i=a(359),o=a(97),d=a(26),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"},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")})]})]})}},285:function(e,t,a){"use strict";var n=a(96),s=a(3),c=(a(1),a(10)),l=a.p+"static/media/wc_avi.6e971ffa.svg",r=a.p+"static/media/wc_doc.267e5869.svg",i=a.p+"static/media/wc_etc.dd3c7467.svg",o=a.p+"static/media/wc_jpg.07fd3a57.svg",d=a.p+"static/media/wc_pdf.26f869eb.svg",b=a.p+"static/media/wc_png.9ca73e2c.svg",j=a.p+"static/media/wc_ppt.dbb93d0b.svg",u=a.p+"static/media/wc_psd.708f3f0b.svg",O=a.p+"static/media/wc_txt.1b466b00.svg",p=a.p+"static/media/wc_xls.bc5fb6ee.svg",h=a.p+"static/media/wc_zip.8aae33e9.svg",m=a.p+"static/media/wc_lock.57744f5b.svg",_=a.p+"static/media/wc_unlock.d61dd626.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})}},30:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(38);const s=a.n(n).a.runInContext();s.mixin({setIn:(e,t,a)=>s.setWith(s.clone(e),t,a,s.clone)});var c=s},31:function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var n=a(23),s=a(96),c=a(3),l=a(1),r=a.n(l),i=a(9),o=a(59),d=a(937),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(116),h=a(965),m=a(966);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},"&.userpage-header":{margin:0},"&>div":{height:70},"&.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(102),s=a(932),c=a(110),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},33:function(e,t,a){"use strict";var n=a(96),s=a(3),c=(a(1),a(198)),l=a.p+"static/media/icon_shared.9b73d580.svg",r=a.p+"static/media/icon_delete.85118008.svg",i=a.p+"static/media/icon_trash.001e13e0.svg",o=a.p+"static/media/icon_write.8e2f9923.svg",d=a.p+"static/media/icon_org.21e0590b.svg",b=a.p+"static/media/icon_person.f3fca8ec.svg",j=a(0);const u=Object(n.a)({root:{display:"inline-block",verticalAlign:"middle",maxWidth:"inherit",width:"20px",height:"20px","&.small":{width:"16px",height:"16px",fontSize:"16px"}},fileIcon:{width:"20px",height:"20px",fontSize:"20px",maxWidth:"inherit",margin:"0 auto","&.small":{width:"16px",height:"16px",fontSize:"16px"}},fileListIcon:{width:"35px",height:"35px",margin:"0 auto"}});t.a=function(e){const t=u();let a;switch(e.type){case"write":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:o,alt:"file-icon"});break;case"delete":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:r,alt:"file-icon"});break;case"readonly":a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"article"});break;case"trash":a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"delete_forever"});break;case"trash-delete":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:i,alt:"file-icon"});break;case"org":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:d,alt:"file-icon"});break;case"shared":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:l,alt:"file-icon"});break;case"person":a=Object(j.jsx)("img",{className:Object(s.a)(t.fileIcon,e.className),src:b,alt:"file-icon"});break;case"org-shared":default:a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"snippet_folder"});break;case"visibility-off":a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"visibility_off"});break;case"visibility":a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"visibility"});break;case"folder":a=Object(j.jsx)(c.a,{className:Object(s.a)(t.fileIcon,e.className),children:"folder_open"})}return Object(j.jsx)("div",{className:Object(s.a)(t.root,e.className),children:a})}},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,"o",(function(){return u})),a.d(t,"p",(function(){return O})),a.d(t,"l",(function(){return p})),a.d(t,"e",(function(){return h})),a.d(t,"m",(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,"n",(function(){return x})),a.d(t,"g",(function(){return N})),a.d(t,"i",(function(){return S}));var n=a(2),s=a(27),c=a(6),l=a(12),r=a(14),i=a(8);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"),""===e.special_ip_range?delete d.special_ip_range:d.special_ip_range=l.a.encryptAES(r,e.special_ip_range,"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=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.F&&(n.private=e),e.folder_type===i.C&&(n.collector=e)})),n},S=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:[]},T=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=T.reducer},343:function(e,t,a){"use strict";t.a=a.p+"static/media/org_folder.4f252f4f.ico"},344:function(e,t,a){"use strict";var n=a(96),s=a(3),c=(a(1),a(198)),l=a(343),r=a.p+"static/media/private_folder.d9c31f7b.ico",i=a.p+"static/media/collect_folder.eab5115b.ico",o=a.p+"static/media/shared_folder.81075d0f.ico",d=a(0);const b=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=b();let j;switch(t){case"folder":j=Object(d.jsx)(c.a,{className:Object(s.a)(n.fileIcon,a,"folder")});break;case"private":j=Object(d.jsx)("img",{src:r,alt:"private folder",className:Object(s.a)(n.fileIcon,a)});break;case"collect":j=Object(d.jsx)("img",{src:i,alt:"collect folder",className:Object(s.a)(n.fileIcon,a)});break;case"org":j=Object(d.jsx)("img",{src:l.a,alt:"org folder",className:Object(s.a)(n.fileIcon,a)});break;case"shared":j=Object(d.jsx)("img",{src:o,alt:"shared folder",className:Object(s.a)(n.fileIcon,a)});break;default:j=Object(d.jsx)(c.a,{className:Object(s.a)(n.fileIcon,a),children:t})}return Object(d.jsx)("div",{className:Object(s.a)(n.root,a),children:j})}},474:function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var n=a(2),s=a(1),c=a.n(s),l=a(200),r=a(96),i=a(539),o=a(281),d=a(283),b=a(223),j=a(199),u=a(97),O=a(8),p=a(9),h=a(12),m=a(7),_=a(34),f=a(3),g=a(0);const E="mobile"===sessionStorage.getItem("device"),x=c.a.forwardRef((function(e,t){return Object(g.jsx)(i.a,Object(n.a)({direction:"up",ref:t},e))})),N=Object(r.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:250},title:{background:"#353b48",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:40,"& .MuiButton-root":{width:172,height:54},"& .MuiButton-root:first-child":{marginRight:16}}})));function S(e){const t=Object(p.b)(),a=N(),{t:n}=Object(l.a)("docbase"),s=c.a.useRef(null),[r,i]=c.a.useState(""),[S,T]=c.a.useState(""),[v,R]=c.a.useState("");return c.a.useEffect((()=>{T(""),R("")}),[e.open]),c.a.useEffect((()=>{e.curPassword&&""!==e.curPassword&&(i(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"),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:r,onChange:e=>i(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:S,onChange:e=>T(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:v,onChange:e=>R(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:s})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(u.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(u.a,{variant:"contained",color:"secondary",className:"",disabled:!S&&S.length<=0||!v&&v.length<=0,type:"button",onClick:a=>{S!==v?t(Object(m.c)({message:n("CHANGE_PASSWORD_ERROR_MESSAGE_1")})):Object(_.d)(r,S).then((t=>{localStorage.setItem("auth",h.a.encryptAESCTR(S)),e.fnHandleComplete()})).catch((e=>{let a="";e.error===O.jb?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_2"):e.error===O.nb?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_3"):e.error===O.ib&&(a=e.message),t(Object(m.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}},477:function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));a(1);var n=a(96),s=a(281),c=a(283),l=a(223),r=a(359),i=a(97),o=a(200),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})]})]})})}},481:function(e,t,a){"use strict";t.a=a.p+"static/media/header_profile.78c8b41d.svg"},482:function(e,t,a){"use strict";t.a=a.p+"static/media/header_logout.5427545f.svg"},483:function(e,t,a){"use strict";var n=a(2),s=a(894),c=a(895),l=a(896),r=a(168),i=a(198),o=a(537),d=a(540),b=a(169),j=a(1),u=a.n(j),O=a(96),p=a(3),h=a(200),m=a(0);const _=Object(O.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:220}}})));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:"search-cell",disablePadding:!1,label:t("EXISTING_FILE"),isSearch:!0,sort:!1},{id:"new_object",align:"left",className:"left new_obj",disablePadding:!1,label:t("NEW_FILE"),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("DATE"),isSearch:!1,sort:!1}],[O,f]=u.a.useState({old_object:{show:""!==e.searchObj.path,value:e.searchObj.path},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:e=>f(Object(n.a)(Object(n.a)({},O),{},{[t.id]:{show:!1,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))}})]}):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)})})}},484:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=a(1),s=a.n(n),c=a(96),l=a(281),r=a(283),i=a(223),o=a(538),d=a(888),b=a(542),j=a(97),u=a(200),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 C})),a.d(t,"e",(function(){return y})),a.d(t,"f",(function(){return w})),a.d(t,"g",(function(){return P})),a.d(t,"d",(function(){return I})),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(532),c=a(80),l=a(259),r=a(27),i=a(30);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(374),j=a(184),u=a(494),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(215);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 C=e=>{return t=e,Object(c.getContrastRatio)(t,"#ffffff")>=3?A:L;var t},y=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))),P=Object(l.a)([T,v,e=>e.fuse.settings.current.theme.toolbar],((e,t,a)=>R(e,a,t))),I=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},572:function(e,t,a){},6:function(e,t,a){"use strict";var n=a(85),s=a.n(n),c=a(196),l=a.n(c),r=a(65),i=a(12);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&&15!==t.error?n(t):this.doLoginFromLocalStorage().then((()=>{a&&a()})).catch((e=>{c(e)})),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))}}},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(12),l=a(14);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},658:function(e,t){},660:function(e,t){},671:function(e,t){},673:function(e,t){},7: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},700:function(e,t){},701:function(e,t){},706:function(e,t){},708:function(e,t){},715:function(e,t){},734:function(e,t){},75:function(e,t,a){"use strict";var n=a(2),s=a(1),c=a.n(s),l=a(355),r=a(122),i=a(97),o=a(199),d=a(358),b=a(169),j=a(198),u=a(542),O=a(200),p=a(24),h=a(8),m=a(0);const _={tree:{base:{backgroundColor:"#fff",fontSize:"12px",color:"#000",margin:0,padding:0,listStyle:"none"},node:{base:{position:"relative",padding:0,borderBottom:"1px solid #ddd"},link:{position:"relative",cursor:"pointer",display:"flex",alignItems:"center",height:"40px",padding:"0 10px",color:"#000",textDecoration:"none",borderBottom:"1px solid #ddd",fontSize:"12px"},activeLink:{background:"#e6f7ff"},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:{marginLeft:"5px",lineHeight:"40px",fontSize:"12px",fontFamily:"S-CoreDream-Regu"},osr_type_0:{position:"absolute",right:20,border:"1px solid #4472C4",padding:5,borderRadius:10,fontSize:12,fontFamily:"S-CoreDream-Medi",color:"#4472C4"},osr_type_1:{position:"absolute",right:20,border:"1px solid #4472C4",padding:5,borderRadius:10,fontSize:12,fontFamily:"S-CoreDream-Medi",color:"#4472C4"}},subtree:{listStyle:"none",paddingLeft:19},loading:{color:"#888"}}}},f=c.a.memo((e=>{let{data:t,onToggle:a,style:n,customDecorators:s}=e;return Object(m.jsx)(l.Treebeard,{data:t,onToggle:a,style:n,decorators:s})})),g={name:"",toggled:!0},E=(e,t)=>{if(!e)return e;const a=Object(n.a)({},e);return a.active=a.fid===t,a.children&&(a.children=a.children.map((e=>E(e,t)))),a},x=(e,t,a)=>{if(!e)return e;const s=Object(n.a)({},e);return s.children&&(s.children=s.children.map((e=>x(e,t,a)))),s.fid===t&&(s.toggled=a),s},N=(e,t,a,c,l,i,O,_,f,g,E)=>x=>{let{node:N,style:S}=x;const[T,v]=Object(s.useState)(N.name||"");let R="org-folder-1";switch(null===N||void 0===N?void 0:N.org_type){case h.Y:R="partner-folder-1";break;case h.X:R="partnership-folder-1";break;case h.V:R="collabo-folder-1";break;default:R="org-folder-1"}if(N.editing)return Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(r.a,{sx:{flexGrow:1,display:"flex",gap:10,marginLeft:5},children:Object(m.jsx)(o.a,{className:"",type:"text",fullWidth:!0,value:T,variant:"outlined",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation()},onChange:e=>{v(e.target.value),e.stopPropagation()},onKeyDown:e=>{"Enter"===e.key&&_(c,T),e.stopPropagation()}})}),Object(m.jsx)(r.a,{sx:{flexGrow:1,display:"flex",gap:1,flexDirection:"row",paddingRight:10},children:Object(m.jsx)(d.a,{title:"\ucd94\uac00",arrow:!0,children:Object(m.jsx)(b.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{_(c,T),e.preventDefault(),e.stopPropagation()},children:Object(m.jsx)(j.a,{color:"primary",fontSize:"default",children:"create_new_folder"})})})})]});let C="";return void 0!==N.osr_type&&(0===N.osr_type?C=Object(m.jsx)(r.a,{style:S.osr_type_0,children:Object(m.jsx)("span",{children:"\ucd94\uac00"})}):1===N.osr_type&&(C=Object(m.jsx)(r.a,{style:S.osr_type_1,children:Object(m.jsx)("span",{children:N.before_path})}))),Object(m.jsxs)(r.a,{style:S.base,onClick:e=>{e.preventDefault(),e.stopPropagation(),O(N)},children:[e?Object(m.jsx)(u.a,{color:"secondary",size:"small",checked:!(null===l||void 0===l||!l[null===N||void 0===N?void 0:N.fid]),onChange:e=>{e.preventDefault(),e.stopPropagation(),i((e=>e[N.fid]?Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return t!==String(N.fid)}))):Object(n.a)(Object(n.a)({},e),{},{[N.fid]:!0})))},onClick:e=>{e.preventDefault(),e.stopPropagation()}}):"",Object(m.jsx)(p.a,{className:"big",type:R,fill:E||"#202020"}),Object(m.jsxs)(r.a,{style:S.title,children:[N.name||"",N.code?Object(m.jsxs)("span",{style:{marginLeft:10},children:["[",N.code,"]"]}):Object(m.jsx)(m.Fragment,{})]}),C,t?Object(m.jsx)(r.a,{sx:{position:"absolute",flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",right:10,top:"50%",transform:"translateY(-50%)"},children:Object(m.jsx)(d.a,{title:"\uc0ad\uc81c",arrow:!0,children:Object(m.jsx)(b.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{f(N.fid)},children:Object(m.jsx)(p.a,{type:"delete",className:"",fill:"#575757"})})})}):"",a?Object(m.jsx)(r.a,{sx:{position:"absolute",flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",right:10,top:"50%",transform:"translateY(-50%)"},children:Object(m.jsx)(d.a,{title:0===N.manage_type?"\ud574\uc81c":"\uc7a0\uae08",arrow:!0,children:Object(m.jsx)(b.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{g(N)},children:0===N.manage_type?Object(m.jsx)(j.a,{className:"",children:"lock_open"}):Object(m.jsx)(j.a,{className:"",children:"lock"})})})}):""]})};t.a=e=>{let{orgs:t,expandedFids:a,setExpandedFids:c,isPartnership:o,fid:d,useAdd:b,useRemove:j,useCheckBox:u,useApproveLock:p,useExpand:h,checks:S,setChecks:T,fnIsChangeRow:v,fnOnClickHandler:R,fnCreateFolder:C,fnRemoveFolder:y,fnOnClickAction:A,fnOnClickCreate:L,color:w}=e;const[P,I]=Object(s.useState)(g),[D,M]=Object(s.useState)(null),[k,G]=Object(s.useState)(-1),[U,F]=Object(s.useState)(!1),{t:W}=Object(O.a)("docbase"),H=e=>{if(!e)return{};const t=Object(n.a)(Object(n.a)({},e),{},{toggled:!!a&&a.has(e.fid),active:d===(null===e||void 0===e?void 0:e.fid)});return e.children&&(t.children=e.children.map(H)),t};Object(s.useEffect)((()=>{G(d),k!==d&&z()}),[d]);const z=()=>{const e=t;if(e){let t;Array.isArray(e)?t=e:e.children&&Array.isArray(e.children)&&(t=e.children),t&&I(t.map(H))}};Object(s.useEffect)((()=>{z()}),[t]);const B=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})),I((a=>Array.isArray(a)?a.map((a=>x(a,e.fid,t))):x(a,e.fid,t)))}),[]),Y=e=>0!==e.length&&(!!e.editing||!!e.children&&e.children.some(Y)),K=Object(n.a)(Object(n.a)({},l.decorators),{},{Header:N(u,j,p,k,S,T,(e=>{let t=!0;if("function"===typeof v&&(t=v()),t){const t=k===e.fid?-1:e.fid;G(t),I((a=>Array.isArray(a)?a.map((a=>E(a,t,e.toggled))):E(a,t,e.toggled))),R(t),M(e)}}),C,y,A,w)});return Object(m.jsxs)("div",{className:"org-tree-root",style:{padding:"0 20px"},children:[Object(m.jsxs)(r.a,{style:{display:"flex",flexDirection:"row"},children:[Object(m.jsx)(r.a,{children:h?Object(m.jsx)(i.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};I((e=>Array.isArray(e)?e.map(t):t(e)))})(!U),F(!U)},children:W(U?"COLLAPSE_ALL":"EXPAND_ALL")}):Object(m.jsx)(m.Fragment,{})}),Object(m.jsx)(r.a,{style:{marginLeft:"auto"},children:b?Object(m.jsx)(i.a,{variant:"contained",color:"secondary",type:"button",style:{width:"auto"},onClick:()=>{if("function"===typeof L)return void L(k);if(o&&P&&!D)return;if(Y(P))return;const e={fid:Date.now(),name:"",toggled:!1,editing:!0,checked:!1},t=a=>{if(a.fid===(null===D||void 0===D?void 0:D.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};I((a=>{if(!D){if(!a||Array.isArray(a)&&0===a.length)return[e];if(0===((null===a||void 0===a?void 0: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:W("NEW_REGISTRATION")}):Object(m.jsx)(m.Fragment,{})})]}),Object(m.jsx)(f,{data:P,onToggle:B,style:_,customDecorators:K})]})}},8:function(e,t,a){"use strict";a.d(t,"z",(function(){return n})),a.d(t,"A",(function(){return s})),a.d(t,"B",(function(){return c})),a.d(t,"Ab",(function(){return l})),a.d(t,"Bb",(function(){return r})),a.d(t,"ab",(function(){return i})),a.d(t,"Z",(function(){return o})),a.d(t,"I",(function(){return d})),a.d(t,"D",(function(){return b})),a.d(t,"G",(function(){return j})),a.d(t,"F",(function(){return u})),a.d(t,"C",(function(){return O})),a.d(t,"H",(function(){return p})),a.d(t,"E",(function(){return h})),a.d(t,"w",(function(){return m})),a.d(t,"x",(function(){return _})),a.d(t,"y",(function(){return f})),a.d(t,"v",(function(){return g})),a.d(t,"s",(function(){return E})),a.d(t,"u",(function(){return x})),a.d(t,"t",(function(){return N})),a.d(t,"mb",(function(){return S})),a.d(t,"hb",(function(){return T})),a.d(t,"gb",(function(){return v})),a.d(t,"bb",(function(){return R})),a.d(t,"nb",(function(){return C})),a.d(t,"db",(function(){return y})),a.d(t,"lb",(function(){return A})),a.d(t,"eb",(function(){return L})),a.d(t,"cb",(function(){return w})),a.d(t,"fb",(function(){return P})),a.d(t,"ib",(function(){return I})),a.d(t,"jb",(function(){return D})),a.d(t,"kb",(function(){return M})),a.d(t,"b",(function(){return k})),a.d(t,"f",(function(){return G})),a.d(t,"d",(function(){return U})),a.d(t,"k",(function(){return F})),a.d(t,"c",(function(){return W})),a.d(t,"h",(function(){return H})),a.d(t,"i",(function(){return z})),a.d(t,"g",(function(){return B})),a.d(t,"e",(function(){return Y})),a.d(t,"l",(function(){return K})),a.d(t,"m",(function(){return V})),a.d(t,"n",(function(){return X})),a.d(t,"a",(function(){return q})),a.d(t,"j",(function(){return J})),a.d(t,"K",(function(){return Z})),a.d(t,"J",(function(){return Q})),a.d(t,"T",(function(){return $})),a.d(t,"R",(function(){return ee})),a.d(t,"S",(function(){return te})),a.d(t,"O",(function(){return ae})),a.d(t,"M",(function(){return ne})),a.d(t,"L",(function(){return se})),a.d(t,"N",(function(){return ce})),a.d(t,"Q",(function(){return le})),a.d(t,"P",(function(){return re})),a.d(t,"U",(function(){return ie})),a.d(t,"xb",(function(){return oe})),a.d(t,"yb",(function(){return de})),a.d(t,"zb",(function(){return be})),a.d(t,"ub",(function(){return je})),a.d(t,"vb",(function(){return ue})),a.d(t,"rb",(function(){return Oe})),a.d(t,"sb",(function(){return pe})),a.d(t,"tb",(function(){return he})),a.d(t,"wb",(function(){return me})),a.d(t,"pb",(function(){return _e})),a.d(t,"ob",(function(){return fe})),a.d(t,"qb",(function(){return ge})),a.d(t,"r",(function(){return Ee})),a.d(t,"q",(function(){return xe})),a.d(t,"o",(function(){return Ne})),a.d(t,"p",(function(){return Se})),a.d(t,"W",(function(){return Te})),a.d(t,"Y",(function(){return ve})),a.d(t,"X",(function(){return Re})),a.d(t,"V",(function(){return Ce})),a.d(t,"Cb",(function(){return ye})),a.d(t,"Eb",(function(){return Ae})),a.d(t,"Db",(function(){return Le}));const n=0,s=1,c=2,l=0,r=1,i=1,o=2,d=0,b=1,j=2,u=3,O=4,p=5,h=9,m=1,_=2,f=3,g=4,E=0,x=1,N=2,S=3,T=5,v=6,R=7,C=9,y=10,A=17,L=18,w=21,P=22,I=24,D=25,M=31,k=1,G=2,U=3,F=4,W=5,H=6,z=7,B=8,Y=9,K=10,V=11,X=12,q=13,J=14,Z=0,Q=1,$=1,ee=2,te=3,ae=4,ne=5,se=6,ce=7,le=1,re=2,ie=3,oe=1,de=2,be=3,je=1,ue=2,Oe=100,pe=110,he=200,me=300,_e=1,fe=2,ge=3,Ee=1,xe=2,Ne=3,Se=5,Te=1,ve=2,Re=3,Ce=4,ye=1,Ae=0,Le=1},84: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(30),c=a(199),l=a(88),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(542),j=a(886),u=a(888),O=a(893);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(887),m=a(935);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(883),f=a(537),g=a(892),E=a(899),x=a(898);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(11),T=a(971),v=a(934),R=a(168),C=a(96),y=a(80),A=a(110),L=a(3),w=a(530),P=a(529);const I=["inputRef"],D=Object(C.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(y.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,I);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)(P.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})]})}))},877: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(570),a(108)),i=a(222);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(572),a(2)),b=a(487),j=a(30),u=a(161);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(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}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))},y=a(188),A=a(187),L=a(375),w=a(198),P=a(169),I=a(931),D=a(882),M=a(96),k=a(110),G=a(3),U=a(7);const F=Object(M.a)((e=>({root:{},success:{backgroundColor:y.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)(I.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)(P.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(23),Y=a(32);function K(e){return Object(g.jsx)(s.a.Suspense,{fallback:Object(g.jsx)(Y.a,Object(d.a)({},e.loadingProps)),children:e.children})}K.defaultProps={loadingProps:{delay:0}};var V=K,X=a(215),q=a(886),J=a(888),Z=a(887),Q=a(934),$=a(963),ee=a(935),te=a(898),ae=a(936),ne=a(27),se=(a(388),a(217)),ce=a(50),le=a(85),re=a.n(le),ie=a(271),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(167);a(652);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(184),Ce=a(539),ye=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(ye.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 Pe=s.a.memo(we),Ie=a(349);const De=s.a.forwardRef((function(e,t){const a=Object(ye.a)();return Object(g.jsx)(Ce.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(ye.a)(),[a,s]=Object(n.useState)(!1),c={onSwipedLeft:()=>a&&"rtl"===t.direction&&i(),onSwipedRight:()=>a&&"ltr"===t.direction&&i()},l=Object(Ie.useSwipeable)(c),r=Object(Ie.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)(P.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)(P.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)(Pe,{})]})}))]})}var Ge=s.a.memo(ke),Ue=a(938),Fe=a(937),We=a(889);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 Ye=s.a.memo(Be),Ke=a(966),Ve=a(965),Xe=a(891),qe=a(939),Je=a(358);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(933),ot=a(885),dt=a(941),bt=a(10),jt=a(200),ut=a(65);const Ot=Object(M.a)((e=>({root:{display:"contents","& .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=Ot(),{t:t}=Object(jt.a)("brand");return Object(g.jsxs)("div",{className:Object(G.a)(e.root,"items-center"),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")})]})]})},ht=a(945),mt=a(16),_t=a.n(mt),ft=a(519),gt=a.n(ft),Et=a(43),xt=a.n(Et),Nt=a(122),St=a(199),Tt=a(540),vt=a(63);var Rt=s.a.forwardRef(((e,t)=>Object(g.jsx)(vt.b,Object(d.a)({innerRef:t},e)))),Ct=a(356),yt=a(168),At=a(273),Lt=a(940),wt=a(942);const Pt=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 It(e){const t=Pt(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})}It.defaultProps={};var Dt=s.a.memo(It);const Mt={};function kt(e,t){Mt[e]=t}function Gt(e){const t=Mt[e.type];return t?Object(g.jsx)(t,Object(d.a)({},e)):null}const Ut=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 Ft(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Ut(e),[s,l]=Object(n.useState)(!1),{item:r,nestedLevel:i,dense:o}=e,b=Object(ye.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?Rt:"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)(Dt,{className:"mx-4",badge:r.badge}),Object(g.jsx)(P.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)(wt.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)(Ct.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(yt.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)(Gt,{type:"horizontal-".concat(e.type),item:e,nestedLevel:i+1,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})})}Ft.defaultProps={};var Wt=Object(f.h)(s.a.memo(Ft));const Ht=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 zt(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Ht(e),[s,l]=Object(n.useState)(!1),{item:r,nestedLevel:i,dense:o}=e,b=Object(ye.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?Rt:"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)(P.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)(wt.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)(Ct.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(yt.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)(Gt,{type:"horizontal-".concat(e.type),item:e,nestedLevel:i,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})}zt.defaultProps={};var Bt=Object(f.h)(s.a.memo(zt));const Yt=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 Kt(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Yt(e),{item:s}=e;return Object(n.useMemo)((()=>p.hasPermission(s.auth,t)),[s.auth,t])?Object(g.jsxs)(ot.a,{button:!0,component:Rt,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)(Dt,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}Kt.defaultProps={};var Vt=Object(f.h)(s.a.memo(Kt));const Xt=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 qt(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Xt(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)(Dt,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}qt.defaultProps={};var Jt=Object(f.h)(s.a.memo(qt)),Zt=a(943),Qt=a(24);const $t=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 ea(e,t){return e&&ta(t,e.pathname)}function ta(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)((()=>ea(e.location,e.item))),{item:c,nestedLevel:l}=e,r=$t({itemPadding:l>0?40+16*l:24}),{sysConfigure:i}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting}));Object(n.useEffect)((()=>{ea(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||"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?Rt:"li",to:c.url,role:"button",children:[c.icon&&Object(g.jsx)(Qt.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)(Dt,{className:"mx-4",badge:c.badge}),Object(g.jsx)(P.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)(Zt.a,{in:a,className:"collapse-children",children:c.children.map((e=>Object(g.jsx)(Gt,{type:"vertical-".concat(e.type),item:e,nestedLevel:l+1},e.id)))})]}):Object(g.jsx)(g.Fragment,{}):null}aa.defaultProps={};var na=Object(f.h)(s.a.memo(aa)),sa=a(944);const ca=Object(M.a)((e=>({item:e=>({height:60,width:"100%",paddingLeft:30,"& > .list-subheader-text":{fontSize:16,color:"#8b95a1"}})})));function la(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(m.b)(),s=Object(ye.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,t)),[l.auth,t])?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(sa.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?Rt:"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)(Gt,{type:"vertical-".concat(e.type),item:e,nestedLevel:r},e.id)))})]}):null}la.defaultProps={};var ra=Object(f.h)(s.a.memo(la));const ia=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 oa(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(ye.a)(),l=Object(Xe.a)(c.breakpoints.down("md")),{item:r,nestedLevel:i,location:o}=e,d=ia({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.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:Rt,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)(Qt.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)(Dt,{badge:r.badge})]}):Object(g.jsx)(g.Fragment,{}):null}oa.defaultProps={};var da=Object(f.h)(s.a.memo(oa));const ba=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 ja(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),s=Object(ye.a)(),c=Object(Xe.a)(s.breakpoints.down("md")),{item:l,nestedLevel:r}=e,i=ba({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)(Dt,{badge:l.badge})]}):null}ja.defaultProps={};var ua=Object(f.h)(s.a.memo(ja));kt("vertical-group",ra),kt("vertical-collapse",na),kt("vertical-item",da),kt("vertical-link",ua),kt("horizontal-group",Bt),kt("horizontal-collapse",Wt),kt("horizontal-item",Vt),kt("horizontal-link",Jt),kt("vertical-divider",(()=>Object(g.jsx)(ht.a,{className:"my-16"}))),kt("horizontal-divider",(()=>Object(g.jsx)(ht.a,{className:"my-16"})));const Oa=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 pa(e){const t=Oa(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)(Nt.a,{className:t.searchBox,children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input start-adornment",value:a,placeholder:o("SEARCH"),InputProps:{startAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(gt.a,{})}),endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:a&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>n(""),edge:"end",children:Object(g.jsx)(xt.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)(Gt,{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)(Gt,{type:"horizontal-".concat(e.type),item:e,nestedLevel:0,dense:r},e.id)))});return s.length>0?"horizontal"===c?b:d:null}pa.propTypes={navigation:_t.a.array.isRequired},pa.defaultProps={layout:"vertical"};var ha=s.a.memo(pa),ma=a(259);var _a={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_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",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:"\uc5d0\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 fa={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_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",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:"\uc5d0\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",_a),r.a.addResourceBundle("ko","navigation",fa);var ga=[{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-1",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:"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_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 Ea=Object(ne.c)(),xa=Ea.getInitialState(),Na=Ea.upsertMany(xa,ga),{selectAll:Sa,selectIds:Ta,selectById:va}=Ea.getSelectors((e=>e.fuse.navigation)),Ra=Object(ma.a)([Sa,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)))),Ca=Object(ne.d)({name:"navigation",initialState:Na,reducers:{setNavigation:Ea.setAll,resetNavigation:(e,t)=>Na}}),{setNavigation:ya,resetNavigation:Aa}=Ca.actions;var La=Ca.reducer;function wa(e){const t=Object(m.c)(Ra),[a,n]=s.a.useState(""),[c,l]=s.a.useState(t);return s.a.useEffect((()=>{let e=[{id:"favorite",title:"\uc990\uaca8\ucc3e\uae30",translate:"FAVORITE_COLLAPSE",type:"collapse",icon:"favorite",children:JSON.parse(localStorage.getItem("favorites")||"[]")}];e=""!==a?[...e,...Pa(t,a)]:[...e,...t],l(e)}),[a]),Object(g.jsx)(ha,{className:Object(G.a)("navigation",e.className),navigation:c,layout:e.layout,dense:e.dense,active:e.active,searchText:a,setSearchText:n})}const Pa=(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};wa.defaultProps={layout:"vertical"};var Ia=s.a.memo(wa);const Da=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 Ma(e){const t=Da();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)(Ia,{layout:"vertical"})})]})}var ka=s.a.memo(Ma);const Ga=300,Ua=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:Ga,minWidth:Ga}},wrapperFolded:{[e.breakpoints.up("lg")]:{width:64,minWidth:64}},navbar:{display:"flex",overflow:"hidden",flexDirection:"column",flex:"1 1 auto",width:Ga,minWidth:Ga,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:Ga,minWidth:Ga},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 Fa(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=Ua(),{t:r}=Object(jt.a)("docbase"),{folded:i}=a.navbar,o=i&&!s.foldedOpen,d=i&&s.foldedOpen,b=Object(ye.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)(ka,{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)(Ke.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)(ka,{className:l.navbarContent})})})]})}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var Wa=s.a.memo(Fa),Ha=a(120),za=a(6),Ba=a(12),Ya=a(14);const Ka=Object(ne.b)("setting/getProductKeyInfo",(async()=>{const e=await za.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}})),Va=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:{[Ka.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:Xa,setAdminSetup:qa,setProductKey:Ja}=Va.actions;var Za=Va.reducer;var Qa=Object(Ha.c)({user:Ne,login:ut.b,initial:Za});var $a=Object(Ha.c)({navigation:La,settings:ce.a,navbar:st,message:U.a,dialog:R.b});const en=Object(ne.d)({name:"i18n",initialState:{language:o.options.lng},reducers:{languageChanged:(e,t)=>{e.language=t.payload}}});var tn=en.reducer,an=a(34),nn=a(19),sn=a(15),cn=a(25);Object(ne.b)("setting/getAccessLog",(async e=>{let{startID:t}=e;const a=await za.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 ln=Object(ne.d)({name:"etc",initialState:{},reducers:{},extraReducers:{}}).reducer;var rn=Object(Ha.c)({account:an.f,folder:nn.d,setting:sn.h,system:cn.g,etc:ln}),on=a(104);var dn=Object(Ha.c)({file:on.g});var bn=Object(Ha.c)({admin:rn,wc:dn});var jn=e=>(t,a)=>{const n=Object(Ha.c)(Object(d.a)({auth:Qa,fuse:$a,i18n:tn,docbase:bn},e));return"auth/user/userLoggedOut"===a.type&&(t=void 0),n(t,a)};const un=[];const On=Object(ne.a)({reducer:jn(),middleware:e=>e({immutableCheck:!1,serializableCheck:{ignoredActions:["dialog/openDialog","dialog/closeDialog","message/showMessage","message/hideMessage"]}}).concat(un),devTools:!1});On.asyncReducers={};var pn=On;var hn=(e,t)=>a=>(((e,t)=>{!On.asyncReducers[e]&&(On.asyncReducers[e]=t,On.replaceReducer(jn(On.asyncReducers)))})(e,t),e=>Object(g.jsx)(a,Object(d.a)({},e)));const mn=Object(ne.d)({name:"quickPanel/state",initialState:!1,reducers:{toggleQuickPanel:(e,t)=>!e,openQuickPanel:(e,t)=>!0,closeQuickPanel:(e,t)=>!1}}),{toggleQuickPanel:_n,openQuickPanel:fn,closeQuickPanel:gn}=mn.actions;var En=mn.reducer;const xn=Object(ne.b)("quickPanel/data/getData",(async()=>{const e=await re.a.get("/api/quick-panel/data");return await e.data}));var Nn=Object(ne.d)({name:"quickPanel/data",initialState:null,reducers:{},extraReducers:{[xn.fulfilled]:(e,t)=>t.payload}}).reducer;var Sn=Object(Ha.c)({data:Nn,state:En});const Tn=Object(M.a)((e=>({root:{width:280}})));function vn(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{quickPanel:t}=e;return t.state})),n=Tn();return Object(g.jsx)(Ke.a,{classes:{paper:n.root},open:a,anchor:"right",onOpen:e=>{},onClose:e=>t(_n()),disableSwipeToOpen:!0,children:Object(g.jsx)(B.a,{children:Object(g.jsx)(k.a,{children:"Quick Panel"})})})}var Rn=hn("quickPanel",Sn)(s.a.memo(vn));function Cn(e){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Rn,{})})}var yn=s.a.memo(Cn);function An(e){const t=Object(m.b)();return Object(g.jsx)(P.a,{className:e.className,onClick:e=>t(tt()),color:"inherit",disableRipple:!0,children:e.children})}An.defaultProps={children:Object(g.jsx)(w.a,{color:"action",children:"menu"})};var Ln=An;const wn=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 Pn(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=wn(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)(Ln,{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)(Ln,{})})]})})})}var In=s.a.memo(Pn);let Dn=!1;if(null===sessionStorage.getItem("device")){new T.a(window.navigator.userAgent).mobile()&&(sessionStorage.setItem("device","mobile"),Dn=!0)}else Dn="mobile"===sessionStorage.getItem("device");const Mn=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 kn(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(n.useContext)(h),s=Mn(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)(Ye,{}),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)(In,{}),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)(In,{}),Object(g.jsxs)("div",{className:s.wrapper,children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(Wa,{}),Object(g.jsxs)("div",{className:s.contentWrapper,children:[t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(In,{}),Object(g.jsxs)("div",{className:s.content,children:[Object(g.jsx)(C,{}),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)(Wa,{})]}),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)(yn,{}),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)(Ye,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(In,{}),Object(g.jsxs)("div",{className:s.wrapper,children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(Wa,{}),Object(g.jsxs)("div",{className:s.contentWrapper,children:[t.toolbar.display&&"below"===t.toolbar.position&&"fixed"===t.toolbar.style&&Object(g.jsx)(In,{}),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)(In,{}),Object(g.jsx)(C,{}),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)(Wa,{})]}),t.footer.display&&"above"===t.footer.position&&Object(g.jsx)(ze,{})]}),t.rightSidePanel.display&&Object(g.jsx)(yn,{}),Object(g.jsx)(z,{})]})}var Gn=s.a.memo(kn);function Un(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 Fn=s.a.memo(Un);function Wn(){return Object(g.jsx)(g.Fragment,{})}var Hn=s.a.memo(Wn);function zn(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current}));return Object(g.jsx)(P.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})}zn.defaultProps={children:Object(g.jsx)(w.a,{fontSize:"inherit",children:"push_pin"})};var Bn=zn,Yn=a(970);const Kn=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 Vn=function(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user})),a=Kn();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)(Yn.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 Xn=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=Xn(e),a=Object(ye.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)(Bn,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ln,{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)(Vn,{}),Object(g.jsx)(Ia,{layout:"vertical"})]})]})}var Jn=s.a.memo(qn);function Zn(){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)(Ia,{className:"w-full",layout:"horizontal"})})]})}var Qn=s.a.memo(Zn);const $n=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 es(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=$n(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)(yt.a,{className:Object(G.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(Qn,{})})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ke.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)(Jn,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var ts=s.a.memo(es);function as(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Rn,{})})}var ns=s.a.memo(as),ss=a(183);a(473);const cs={animation:"transition.fadeIn",stagger:50,duration:200,display:null,visibility:"visible",delay:0},ls={stagger:50,duration:200,display:null,visibility:"visible",delay:0};function rs(e){return Object(g.jsx)(ss.VelocityTransitionGroup,Object(d.a)(Object(d.a)({},e),{},{enter:Object(d.a)(Object(d.a)({},cs),e.enter),leave:Object(d.a)(Object(d.a)({},ls),e.leave)}))}rs.defaultProps={enter:cs,leave:ls,easing:[.4,0,.2,1],runOnMount:!0,enterHideStyle:{opacity:1},enterShowStyle:{opacity:0}};var is=s.a.memo(rs),os=a(537),ds=a(947),bs=a(533);const js=Object(M.a)({root:{"&.horizontal":{},"&.vertical":{flexDirection:"column"}},item:{textDecoration:"none!important",color:"inherit"},addIcon:{color:L.a[600]}});function us(e){const t=Object(m.b)(),a=Object(m.c)((e=>{let{auth:t}=e;return t.user.data.shortcuts})),s=Object(m.c)(Ra),c=js(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)(vt.a,{to:t.url,className:c.item,role:"button",children:Object(g.jsxs)(Q.a,{children:[Object(g.jsx)(ds.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)(P.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)(is,{enter:{animation:"transition.expandIn"},className:Object(G.a)("flex flex-1","vertical"===e.variant&&"flex-col"),children:[_.map((t=>t&&Object(g.jsx)(vt.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)(P.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)(P.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)(bs.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)(os.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)(ht.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)))]})]})}us.defaultProps={variant:"horizontal"};var Os=s.a.memo(us);const ps=Object(M.a)((e=>({root:{}})));function hs(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(m.c)(ce.g),n=ps(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)(Ln,{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)(Os,{})})}),Object(g.jsx)("div",{className:"flex items-center px-16"})]})})})}var ms=s.a.memo(hs);const _s=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 fs(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=_s(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)(Hn,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(ms,{}),t.navbar.display&&Object(g.jsx)(ts,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(ms,{}),Object(g.jsxs)(B.a,{className:a.content,scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(C,{}),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)(Fn,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(Fn,{}),Object(g.jsx)(Ge,{})]}),t.rightSidePanel.display&&Object(g.jsx)(ns,{}),Object(g.jsx)(z,{})]})}})}var gs=s.a.memo(fs);function Es(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 xs=s.a.memo(Es);const Ns=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 Ss(e){const t=Ns(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)(yt.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)(P.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)(Ke.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"})})})]})]})}Ss.defaultProps={position:"left",opened:!0};var Ts=s.a.memo(Ss);function vs(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Ts,{children:Object(g.jsx)(Os,{className:"py-16 px-8",variant:"vertical"})})})}var Rs=s.a.memo(vs);function Cs(){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)(Ia,{className:"w-full",layout:"horizontal",dense:!0})})})}var ys=s.a.memo(Cs);const As=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 Ls(e){const t=As(e),a=Object(ye.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)(Bn,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ln,{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)(Vn,{}),Object(g.jsx)(Ia,{layout:"vertical"})]})]})}var ws=s.a.memo(Ls);const Ps=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 Is(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=Ps(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)(yt.a,{className:Object(G.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(ys,{})})}),Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(Ke.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)(ws,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(Ve.a,{lgUp:!0,children:Object(g.jsx)(rt,{})})]})}var Ds=s.a.memo(Is);function Ms(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Rn,{})})}var ks=s.a.memo(Ms),Gs=a(11),Us=a(881),Fs=a(890),Ws=a(353),Hs=a.n(Ws),zs=a(520),Bs=a.n(zs),Ys=a(354),Ks=a.n(Ys);const Vs=["variant","classes","inputRef","ref"];function Xs(e){const{variant:t,classes:a,inputRef:n=()=>{},ref:s}=e,c=Object(Gs.a)(e,Vs);return Object(g.jsx)("div",{className:"w-full relative",children:"basic"===t?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(St.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)(St.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=Hs()(e.title,a),c=Bs()(e.title,s);return Object(g.jsxs)(Q.a,{selected:n,component:"div",children:[Object(g.jsx)(ds.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 Js(e){return e.title}const Zs=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}}}))),Qs={searchText:"",search:!1,navigation:null,suggestions:[],noSuggestions:!1};function $s(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&&Hs()(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 ec(e){const t=Object(m.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(m.c)(Ra),[s,c]=Object(n.useReducer)($s,Qs),l=Zs(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:Xs,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:Js,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)(Ks.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)(Fs.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)(yt.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)(Us.a,{onClickAway:e=>{return t=e,s.opened&&(!r.current||!r.current.contains(t.target))&&j();var t},children:Object(g.jsx)(yt.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)(Ks.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)(Fs.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)(yt.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)(P.a,{onClick:e=>j(),className:"mx-8",children:Object(g.jsx)(w.a,{children:"close"})})]})})})]});default:return null}}ec.defaultProps={trigger:Object(g.jsx)(P.a,{className:"w-40 h-40",children:Object(g.jsx)(w.a,{children:"search"})}),variant:"full",placeholder:"Search",noResults:"No results.."};var tc=Object(f.h)(s.a.memo(ec));const ac=Object(M.a)((e=>({root:{}})));function nc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(m.c)(ce.g),n=ac(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)(Ln,{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)(tc,{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)(tc,{})})})]})})})}var sc=s.a.memo(nc);const cc=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 lc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=cc(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)(Rs,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(sc,{}),t.navbar.display&&Object(g.jsx)(Ds,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(sc,{}),Object(g.jsxs)(B.a,{className:Object(G.a)(a.content),scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(C,{}),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)(xs,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(xs,{}),Object(g.jsx)(Ge,{})]}),t.rightSidePanel.display&&Object(g.jsx)(ks,{}),Object(g.jsx)(z,{})]})}})}var rc={layout1:Gn,layout2:gs,layout3:s.a.memo(lc)},ic=a(275),oc=a(80);const dc=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(oc.fade)(e.palette.secondary.main,.2),color:"inherit",borderBottom:"1px solid ".concat(e.palette.divider),textDecoration:"none","&:hover":{background:Object(oc.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 bc(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=dc(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"),ic.mock=!1):(document.body.classList.add("no-animate"),ic.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)((()=>rc[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 jc=s.a.memo(bc);const uc="undefined"===typeof window?n.useEffect:n.useLayoutEffect;function Oc(e){const t=Object(m.c)((e=>{let{fuse:t}=e;return t.settings.defaults.direction})),a=Object(m.c)(ce.e);return uc((()=>{document.body.dir=t}),[t]),Object(g.jsx)(Fe.a,{theme:a,children:e.children})}var pc=s.a.memo(Oc),hc=a(541),mc=a(879),_c=a(930),fc=a(78),gc=a(521),Ec=a(522),xc=a(523),Nc=a.n(xc),Sc=a(252);var Tc=a(536),vc=a(948);let Rc,Cc=0;class yc extends n.Component{componentDidMount(){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;Cc=e.getTime(),window.addEventListener("click",(e=>{const t=new Date;Cc=t.getTime()})),Rc||(Rc=setInterval((()=>{const e=(new Date).getTime()-Cc;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))}render(){return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Tc.a,{className:"global-backdrop",open:this.props.showBackdrop,children:Object(g.jsx)(vc.a,{color:"inherit"})}),this.props.children]})}}var Ac=Object(m.a)((function(e){let{docbase:t}=e;return{showBackdrop:t.admin.setting.showBackdrop}}),{initialSetup:()=>async e=>{za.a.sendPost("/api/initialSetup",{}).then((t=>t.result?e(Xa({product_registered:t.product_registered,administrator_setup:t.administrator_setup})):(za.a.printError(t),e(Xa({product_registered:!0,administrator_setup:!0})))))},getProductInfo:Ka,getSysConfigure:sn.y})(yc);const Lc=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)(ss.VelocityComponent,Object(d.a)(Object(d.a)({ref:t},e),{},{children:a}))}));Lc.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 wc=s.a.memo(Lc),Pc=a(542),Ic=a(97),Dc=a(950),Mc=a(951),kc=a(884);const Gc=[{id:"ko",title:"\ud55c\uad6d\uc5b4",flag:"ko"}],Uc=Object(M.a)((e=>({popover:{background:"#fff",padding:0,"& .lan-title>span":{color:"#222",fontFamily:"S-CoreDream-Regu"}}})));var Fc=function(e){const t=Uc(),a=Object(m.b)(),s=Object(m.c)((e=>{let{i18n:t}=e;return t.language})),c=Gc.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(en.actions.languageChanged(t))}))})),sessionStorage.setItem("coodoc-language",e.id),i()}return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Ic.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:Gc.map((e=>Object(g.jsxs)(Q.a,{onClick:()=>d(e),children:[Object(g.jsx)(ds.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)))})]})},Wc=a(8),Hc=a(86),zc=a.n(Hc),Bc=a(474),Yc=(a(856),a(283)),Kc=a(223),Vc=a(949);const Xc=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),qc=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 Jc(e){const t=Object(m.b)(),a=qc(),{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:Xc,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)(Yc.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("PRINT_PASSWORD_AUTH")})}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Vc.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)(St.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.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===Wc.gb?a=n("PRINT_PASSWORD_ERROR_MESSAGE_1"):e.error===Wc.nb&&(a=n("PRINT_PASSWORD_ERROR_MESSAGE_2")),t(Object(U.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}const Zc="mobile"===sessionStorage.getItem("device")||window.ReactNativeWebView,Qc=Object(M.a)((e=>({root:{position:"relative",backgroundImage:'url("assets/brand/login_bg.png")',backgroundRepeat:"unset",width:"100%!important",height:"100%","&>div":Zc?{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 $c=function(e){let{history:t,location:a}=e;const c=Qc(),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,C]=s.a.useState({open:!1,question:""}),y=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)((()=>{let e=null;if(window.ReactNativeWebView&&(e=e=>{const{eventID:t,eventData:a}=JSON.parse(e.data);if(t===Wc.Q)a.result?Object(ut.e)(Ba.a.decryptAESCTR(window.coodocWB.mbRemeID),Ba.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===Wc.nb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):e.error===Wc.hb?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))},document.addEventListener("message",e),window.addEventListener("message",e)),window.ReactNativeWebView&&window.coodocWB.isFirst){let e=!1,t=!1,a="",n="";window.coodocWB.mbRemeID&&""!==window.coodocWB.mbRemeID&&(a=Ba.a.decryptAESCTR(window.coodocWB.mbRemeID),M("userID",a),M("remember",!0),e=!0),window.coodocWB.mbRemePW&&""!==window.coodocWB.mbRemePW&&(n=Ba.a.decryptAESCTR(window.coodocWB.mbRemePW),M("password",n),F(!0),t=!0),e&&t&&(window.coodocWB.mbBiometrics?window.ReactNativeWebView.postMessage(JSON.stringify({eventID:Wc.L,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===Wc.nb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_1")})):e.error===Wc.kb?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",Ba.a.encryptAESCTR(w.password)),H(e.two_factor_authentication_flag),window.ReactNativeWebView&&W()))})).catch((e=>{console.log(e),e.error===Wc.nb?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",Ba.a.encryptAESCTR(e.password)),sessionStorage.setItem("user_id",Ba.a.encryptAESCTR(e.id)),t.push("/wc/main")}))}))}},errorCallback(e){console.error(e)}})})()}return()=>{document.removeEventListener("message",e),window.removeEventListener("message",e)}}),[]),Object(n.useEffect)((()=>{}),[l]),Object(n.useEffect)((()=>{y.product_registered?y.administrator_setup||t.push("/register"):t.push("/regProduct")}),[y]),Object(n.useEffect)((()=>{2===j?o.current.focus():1===j&&i.current.focus()}),[j]);const{form:w,handleChange:I,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(e,t){window.ReactNativeWebView.postMessage(JSON.stringify({eventID:Wc.R,eventData:{userID:w.remember?Ba.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(Ba.a.decryptAES(e.aes,e.secret_key,"hex","utf8")),S("data:image/bmp;base64,".concat(btoa(String.fromCharCode.apply(null,Ba.a.hexToArray(Ba.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",Ba.a.encryptAESCTR(w.password)),H(e.two_factor_authentication_flag),window.ReactNativeWebView&&(W(),sessionStorage.setItem("user_id",Ba.a.encryptAESCTR(w.userID))))):1===e.privilege?(t.push("/dashboard"),l(Object(sn.y)())):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_6")}))})).catch((e=>{console.log(e),e.error===Wc.nb?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)(St.a,{className:"user-id",placeholder:r("ID"),autoFocus:!0,type:"text",name:"userID",value:w.userID,onChange:I,variant:"standard",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off",autoComplete:"off"},size:"small"}),Object(g.jsx)(St.a,{className:"passwd",placeholder:r("PASSWORD"),type:"password",name:"password",value:w.password,onChange:I,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)(Pc.a,{name:"remember",checked:w.remember,onChange:I}),label:r("REMEMBER_ME")}),window.ReactNativeWebView?Object(g.jsx)(J.a,{className:"ml-0",control:Object(g.jsx)(Pc.a,{name:"remember",disabled:!w.remember,checked:k,onClick:e=>{F(!k)}}),label:r("REMEMBER_PW")}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)(Fc,{style:{marginLeft:"auto",minWidth:"inherit",width:56,padding:0}})]}),Object(g.jsx)(Ic.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)(St.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===Wc.mb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===Wc.bb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_4")})):l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_5")}))}))}}),Object(g.jsx)(Ic.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===Wc.mb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===Wc.bb?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)(Jc,{open:R.open,question:R.question,fnHandleClose:()=>C({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)(St.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===Wc.mb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===Wc.bb?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)(Ic.a,{variant:"contained",className:"defalut","aria-label":"Paper OTP",type:"button",onClick:e=>{Object(ut.j)().then((e=>{C({open:!0,question:e})})).catch((e=>{e.error===Wc.gb?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)(Ic.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===Wc.mb?l(Object(U.c)({message:r("LOGIN_ERROR_MESSAGE_3")})):e.error===Wc.bb?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")})]})]})),Zc){if(!L.mobile_web_support)return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"info-wrapper",children:Object(g.jsxs)(Mc.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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"info-wrapper",children:Object(g.jsxs)(Mc.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)(Dc.a,{className:"login-wrapper",children:[Object(g.jsx)(Bc.a,{open:T,curPassword:w.password,fnHandleClose:()=>v(!1),fnHandleComplete:()=>{v(!1),H(j),W()}}),Object(g.jsxs)(Mc.a,{className:Object(G.a)(Zc?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,Zc?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"client-download-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(St.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 x86",children:"Windows x86"}),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)(P.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)(Qt.a,{className:"small",type:"client-download",fill:"#333d4b"})})})]})]})]})})})};var el={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/admin",component:$c},{path:"/login",component:$c},{path:"/mv",component:$c}]};const tl=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(oc.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var al=function(e){let{history:t}=e;const a=tl(),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(sn.T)({name:e.target.name,value:e.target.value})).then((()=>{c(Object(sn.y)())}))};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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Mc.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(Ya.d)(((c,l)=>{za.a.sendPost("/api/setAdministrator",{administrator_id:Ba.a.encryptAES(c,a,"utf8","hex"),password:Ba.a.encryptAES(c,n,"utf8","hex"),name:s,email:r||"",token:l}).then((a=>{a.result?e(a):(za.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===Wc.bb&&(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)(St.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)(St.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)(St.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)(St.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)(St.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)(St.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)(St.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)(Ic.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 nl={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/register",component:al}]},sl=a(31),cl=a(38),ll=a(961),rl=a(524),il=a(280);var ol=new class{constructor(){this.excelDownload=async(e,t,a,n,s)=>{const c=il.a.aoa_to_sheet([t]);a.map((e=>{const t=[];return Object.keys(e).forEach((a=>{t.push(e[a])})),il.a.sheet_add_aoa(c,[t],{origin:-1}),n&&n.length>0&&(c["!cols"]=n),!1}));const l={Sheets:{data:c},SheetNames:["data"]},r=il.b(l,{bookType:"xlsx",type:"array"}),i=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"}),o=3e3-(Date.now()-s);o>0&&await new Promise((e=>setTimeout(e,o))),rl.saveAs(i,"".concat(e).concat(".xlsx"))}}},dl=a(28);const bl=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 jl(e){const{t:t}=Object(jt.a)("docbase"),a=bl(),{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)(Yc.a,{className:a.title,id:"form-dialog-title",children:t("USER_MENU_1")}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Vc.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)(St.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)(St.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)(Vc.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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 ul=a(359),Ol=a(964);const pl=Object(M.a)((e=>({titleWrapper:{"padding-bottom":"0"},actionsWrapper:{padding:"16px 24px 24px"},backdrop:{zIndex:100,color:"#fff"}})));function hl(e){let{open:t,openBackdrop:a,users:n,selectedMap:c,fnHandleClose:l,fnHandleOK:r}=e;const{t:i}=Object(jt.a)("docbase"),o=pl(),{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)(Yc.a,{className:o.titleWrapper,id:"alert-dialog-slide-title",children:i("DELETE_CONTENT_USER")}),Object(g.jsxs)(Kc.a,{className:"overflow-y-hidden",children:[Object(g.jsxs)(Vc.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)(Nt.a,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,mb:1,children:[Object(g.jsx)(Nt.a,{style:{width:"30%"},children:"".concat(b[e].name,"(").concat(b[e].user_id,")")}),Object(g.jsx)(Ol.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)(St.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)(ul.a,{className:o.actionsWrapper,children:[Object(g.jsx)(Ic.a,{onClick:l,color:"primary",variant:"contained",className:"w-full mx-auto","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"w-full mx-auto",type:"button",onClick:()=>{r(j)},children:i("DELETE")})]}),Object(g.jsx)(Tc.a,{className:o.backdrop,open:a,children:Object(g.jsx)(vc.a,{color:"inherit"})})]})})}var ml=a(88),_l=a(84),fl=a(952),gl=a(41),El=a(953),xl=a(894),Nl=a(895),Sl=a(896),Tl=a(954),vl=a(33);var Rl=e=>{let{folderType:t}=e;const{t:a}=Object(jt.a)("docbase");switch(t){case Wc.D:return Object(g.jsx)(Je.a,{title:a("ORG_FOLDER"),arrow:!0,children:Object(g.jsx)(vl.a,{type:"org",className:"small"})});case Wc.G:return Object(g.jsx)(Je.a,{title:a("SHARED_FOLDER"),arrow:!0,children:Object(g.jsx)(vl.a,{type:"shared",className:"small"})});case Wc.E:return Object(g.jsx)(Je.a,{title:a("ORGSHARED_FOLDER"),arrow:!0,children:Object(g.jsx)(vl.a,{type:"org-shared",className:"small"})});case Wc.C:return Object(g.jsx)(Je.a,{title:a("COLLECTOR_FOLDER"),arrow:!0,children:Object(g.jsx)(vl.a,{type:"folder",className:"small"})});case Wc.F:return Object(g.jsx)(Je.a,{title:a("PRIVATE_FOLDER"),arrow:!0,children:Object(g.jsx)(vl.a,{type:"folder",className:"small"})});default:return""}};const Cl=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"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:13},"&>.content>.row>.title.required>span:after":{color:"#00cfe2",content:'"*"',marginLeft:"5px"},"&>.content>.row>.input-area":{width:"100%",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}},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 yl(e){const t=Cl(),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 C(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(sn.S)({show:!0})),Object(an.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):"").then((async s=>{N.length>0&&await(async(e,t,s)=>{a(Object(sn.S)({show:!0}));try{let a={};for(let n=0;n{e.error===Wc.bb?a(Object(U.c)({message:n("USER_ERROR_MESSAGE_8")})):e.error===Wc.fb?a(Object(U.c)({message:n("USER_ERROR_MESSAGE_10")})):e.error===Wc.db&&a(Object(U.c)({message:n("USER_ERROR_MESSAGE_13")}))})).finally((()=>{a(Object(sn.S)({show:!1}))})))}function y(e){S((t=>t.some((t=>t.fid===e.fid))?t.filter((t=>t.fid!==e.fid)):[...t,e]))}const A=c.dataleak_control&&!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)(Yc.a,{className:t.title,id:"form-dialog-title",children:n("USER_ADD")}),Object(g.jsx)(ml.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:e=>C(e),validationErrors:i,ref:T,children:Object(g.jsx)(Kc.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)(_l.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)(_l.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)(_l.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)(_l.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)(_l.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)(_l.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.jsxs)("div",{className:"input-area",children:[Object(g.jsxs)(_l.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)("p",{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)(_l.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)(_l.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)(_l.a,{name:"use-expire",value:u,onChange:e=>O(e.target.checked),style:{"&>.MuiFormControlLabel-root":{marginLeft:"-5px"}}}),Object(g.jsx)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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",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)(Ol.a,{id:"autocomplete-permission-search",options:E,getOptionLabel:e=>e.path?e.folder_type===Wc.E?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)(St.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{_&&null!==_&&13===e.keyCode&&y(_)}})),fullWidth:!0,size:"small"}),Object(g.jsx)("div",{children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{_&&null!==_&&y(_)},style:{width:"auto",marginLeft:10},children:n("ADD")})})]}),Object(g.jsx)("div",{children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:n("FOLDER_NAME")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",style:{width:40,minWidth:40},children:n("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:N&&N.length>0?N.map(((e,t)=>e.folder_type!==Wc.C&&e.folder_type!==Wc.F?Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Rl,{folderType:e.folder_type}),Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:e.folder_type===Wc.E||e.folder_type===Wc.D?e.disp_path:e.path,children:Object(g.jsx)("span",{className:"folder-name",children:bt.a.pathToName(e.disp_path)})})]})}),Object(g.jsx)(Sl.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)(P.a,{"aria-label":"release_permission",onClick:t=>S((t=>t.filter((t=>t.fid!==e.fid)))),children:Object(g.jsx)(vl.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)(Ic.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n("ADD")})]})]})})})]})})}var Al=a(899);const Ll=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"},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}}})));function wl(e){const t=Ll(),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=s.a.useRef(!0),[x,N]=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(an.n)(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,N(t),f(a.permissions)}})()}),[e.currentUserID]),s.a.useEffect((()=>{E.current?E.current=!1:e.open||h(r)}),[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 S=(e,t)=>{if("expire_at"===e.target.name)console.log(t),isNaN(t.getTime())||null!==x.expire_at&&""!==x.expire_at&&x.expire_at.getTime()===t.getTime()||N(Object(d.a)(Object(d.a)({},x),{},{expire_at:t}));else if("private_capacity_unit"===e.target.name){let e=0;e=x.privateSizeUnit?1024*x.privateMaxSize:x.privateMaxSize<1024?x.privateMaxSize:Math.floor(x.privateMaxSize/1024),N(Object(d.a)(Object(d.a)({},x),{},{privateSizeUnit:!x.privateSizeUnit,privateMaxSize:e}))}else if("collect_capacity_unit"===e.target.name){let e=0;e=x.collectorSizeUnit?1024*x.collectorMaxSize:x.collectorMaxSize<1024?x.collectorMaxSize:Math.floor(x.collectorMaxSize/1024),N(Object(d.a)(Object(d.a)({},x),{},{collectorSizeUnit:!x.collectorSizeUnit,collectorMaxSize:e}))}else N(Object(d.a)(Object(d.a)({},x),{},{[e.target.name]:e.target.value}))},T=async t=>{if(o(!0),"expire_at_release"===t)return Object(an.o)(l[e.currentUserID],t,"").then((e=>{a(Object(U.d)({message:n("EXPIRE_AT_RELEASE_MESSAGE_2")})),N(Object(d.a)(Object(d.a)({},x),{},{expire_at:null}))})).catch((e=>{a(Object(U.c)({message:n("FAILED")}))})).finally((()=>{o(!1)})),!1;if(""===x.name)return a(Object(U.c)({message:n("USER_ERROR_MESSAGE_4")})),!1;const s=x.privateSizeUnit?x.privateMaxSize:1024*x.privateMaxSize,c=x.collectorSizeUnit?x.collectorMaxSize:1024*x.collectorMaxSize;let r=!1;return x.privateSize!==s&&(Object(nn.E)(x.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),x.collectorSize!==c&&(Object(nn.E)(x.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),x.expire_at&&""!==x.expire_at&&(x.expire_at=bt.a.getDateString(x.expire_at)),Object(an.p)(x).then((()=>{a(Object(U.d)({message:n("USER_MESSAGE_2")})),a(Object(an.h)()),e.fnHandleClose()})).catch((e=>{a(Object(U.c)({message:n("FAILED")}))})).finally((()=>{o(!1)})),!0},C=async t=>{console.log(t),a(Object(sn.S)({show:!0}));try{if(t.folder_type===Wc.D&&t.org_type===Wc.W)await Object(nn.F)(t.fid,x.user_id,Wc.B,Wc.Ab,Wc.K,0);else{const e=await Object(nn.n)(t.fid);if(!e.find((e=>e.obj_type===Wc.ab&&e.obj_id===x.user_id))){const a={name:"".concat(x.name,"(").concat(x.user_id,")"),obj_id:x.user_id,obj_type:Wc.ab,file_permission:Wc.B,trash_permission:Wc.Ab,manage_type:Wc.K,manage_priority:0};await Object(nn.G)(t.fid,[...e,a])}}a(Object(U.d)({message:n("PERM_MESSAGE_1")}));const s=await Object(an.i)(x.user_id);f(s),e.fnChangeFolderPerm()}catch(s){console.error(s)}finally{a(Object(sn.S)({show:!1}))}},y=async(e,t,s,c,l,r,i)=>{a(Object(sn.S)({show:!0}));try{if(r===Wc.D||r===Wc.G||r===Wc.E||r===Wc.F||r===Wc.C){if(i===Wc.W||r===Wc.F||r===Wc.C){await Object(nn.F)(e,x.user_id,t,s,c,l);const a=await Object(an.i)(x.user_id);f(a)}else{const a=Object(nn.n)(e);a.find((e=>e.obj_type===Wc.ab&&e.obj_id===x.user_id))||(a.push({obj_type:Wc.ab,obj_id:x.user_id,file_permission:t,trash_permission:s,manage_type:c,manage_priority:l}),await Object(nn.G)(e,a))}a(Object(U.d)({message:n("PERM_MESSAGE_1")}))}else a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_1")}))}catch(o){console.error(o)}finally{a(Object(sn.S)({show:!1}))}},A=c.dataleak_control&&!e.isDlp,L=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)(Tc.a,{className:t.backdrop,open:i,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(Yc.a,{className:t.title,id:"form-dialog-title",children:x.user_id}),Object(g.jsxs)(Kc.a,{className:t.body,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)(St.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:x.name,onChange:e=>S(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)(St.a,{className:"",variant:"outlined",type:"text",name:"email",fullWidth:!0,value:x.email,onChange:e=>S(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:x.access_level,onChange:e=>S(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:x.no_sync_osr.toString(),onChange:e=>S(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:x.local_account.toString(),onChange:e=>S(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:x.allow_multiple_logins,onChange:e=>S(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"})]})})]}),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:x.locked.toString(),onChange:e=>S(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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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:x.expire_at,onChange:e=>{e&&!isNaN(e.getTime())?S({target:{name:"expire_at"}},e):S({target:{name:"expire_at"}},x.expire_at)},KeyboardButtonProps:{"aria-label":"change date start"}})}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:n("EXPIRE_AT_RELEASE"),content:n("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{T("expire_at_release")}})}))},children:n("RELEASE")})]})]}),e.isDlp?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsxs)("div",{className:"inputTitle",children:[Object(g.jsx)("p",{children:n("DYNAMIC_SECURITY_MODE")}),Object(g.jsx)("span",{className:t.hint_span,style:{marginTop:"-10px",paddingLeft:0},children:n("\uc0ac\uc6a9\uc2dc COODOC\uc774 \uc885\ub8cc \ub41c \uacbd\uc6b0 \ubcf4\uc548\uae30\ub2a5\uc744 \uc0ac\uc6a9 \uc548 \ud568")})]}),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:x.support_dynamic_security_mode.toString(),onChange:e=>S(e),children:[Object(g.jsx)(Q.a,{value:"true",children:n("USE")}),Object(g.jsx)(Q.a,{value:"false",children:n("UNUSED")})]})})]})]}),L?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:x.dataleak_control.toString(),onChange:e=>S(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,{}),A?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:x.allow_takeout_private_folder,onChange:e=>S(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:x.allow_takeout.toString(),onChange:e=>S(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.jsxs)("div",{className:"inputTitle",children:[Object(g.jsx)("p",{children:n("PRIVATE_MAX_CAPACITY")}),Object(g.jsx)("span",{className:t.hint_span,children:n("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Al.a,{type:"number",name:"privateMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(Tt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"private_capacity_unit",name:"private_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:x.privateSizeUnit,onChange:e=>S(e),children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:x.privateMaxSize,onChange:e=>S(e)})})]}),Object(g.jsxs)("div",{className:"inputRow",children:[Object(g.jsxs)("div",{className:"inputTitle",children:[Object(g.jsx)("p",{children:n("COLLECT_MAX_CAPACITY")}),Object(g.jsx)("span",{className:t.hint_span,children:n("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsx)(Al.a,{type:"number",name:"collectorMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsxs)(te.a,{id:"collect_capacity_unit",name:"collect_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:x.collectorSizeUnit,onChange:e=>S(e),children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})}),value:x.collectorMaxSize,onChange:e=>S(e)})})]})]}),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)(Ol.a,{id:"autocomplete-permission-search",options:p,getOptionLabel:e=>e.path?e.folder_type===Wc.E?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)(St.a,Object(d.a)(Object(d.a)({},e),{},{variant:"outlined",onKeyDown:e=>{u&&null!==u&&13===e.keyCode&&C(u)}})),fullWidth:!0,size:"small"}),Object(g.jsx)("div",{children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{C(u)},style:{width:"auto",marginLeft:10},children:n("ADD")})})]}),Object(g.jsx)("div",{children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:n("FOLDER_NAME")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:n("PERM_READ_WRITE")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-2",children:n("PERM_TRASH")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",style:{width:40,minWidth:40},children:n("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:_&&_.length>0?_.map(((t,s)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Rl,{folderType:t.folder_type}),Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:t.folder_type===Wc.E||t.folder_type===Wc.D?t.disp_path:t.path,children:Object(g.jsx)("span",{className:"folder-name",children:t.folder_type===Wc.C||t.folder_type===Wc.F?bt.a.findFolderType(t.folder_type):bt.a.pathToName(t.disp_path)})})]})}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{className:"font-size-initial",arrow:!0,title:t.file_permission===Wc.A?n("PERM_READ"):n("PERM_READ_WRITE"),children:Object(g.jsx)(P.a,{onClick:e=>y(t.fid,t.file_permission===Wc.A?Wc.B:Wc.A,t.trash_permission,t.manage_type,t.manage_priority,t.folder_type,t.org_type),children:t.file_permission===Wc.A?Object(g.jsx)(vl.a,{type:"readonly",className:""}):Object(g.jsx)(vl.a,{type:"write",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{className:"font-size-initial",arrow:!0,title:t.trash_permission===Wc.Ab?n("PERM_TRASH_IMPOSSIBLE"):n("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(P.a,{onClick:e=>y(t.fid,t.file_permission,t.trash_permission===Wc.Ab?Wc.Bb:Wc.Ab,t.manage_type,t.manage_priority,t.folder_type,t.org_type),children:t.trash_permission===Wc.Ab?Object(g.jsx)(vl.a,{type:"trash-delete",className:""}):Object(g.jsx)(vl.a,{type:"trash",className:""})})})}),Object(g.jsx)(Sl.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)(P.a,{"aria-label":"release_permission",onClick:s=>(async(t,s,c)=>{a(Object(sn.S)({show:!0}));try{if(s===Wc.F||s===Wc.C)return void a(Object(U.c)({message:n("\uac1c\uc778/\uc218\uc9d1 \ud3f4\ub354\ub294 \uc81c\uac70 \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4")}));if(s===Wc.D&&c===Wc.W){await Object(nn.u)(t,x.user_id);const a=await Object(an.i)(x.user_id);f(a),e.fnChangeFolderPerm()}else{const s=await Object(nn.n)(t),c=[];let l=!1;if(s.forEach((e=>{e.obj_type===Wc.ab&&e.obj_id===x.user_id?l=!0:c.push(e)})),l){await Object(nn.G)(t,c);const s=await Object(an.i)(x.user_id);f(s),a(Object(U.d)({message:n("PERM_MESSAGE_2")})),e.fnChangeFolderPerm()}else a(Object(U.c)({message:n('\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.')}))}}catch(l){console.error(l),l.error===Wc.bb&&a(Object(U.c)({message:n("PERM_ERROR_MESSAGE_2")}))}finally{a(Object(sn.S)({show:!1}))}})(t.fid,t.folder_type,t.org_type),children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})]}),Object(g.jsx)(ul.a,{style:{padding:0},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Ic.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",onClick:()=>T("all"),children:n("CHANGE")})]})})]})})}const Pl=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 Il(e){let{open:t,fnHandleClose:a}=e;const{t:n}=Object(jt.a)("docbase"),c=Pl(),l=Object(m.b)(),[r,i]=s.a.useState(""),[o,d]=s.a.useState("");s.a.useEffect((()=>{i(""),d("")}),[t]);return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:c.root,open:t,onClose:a,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Yc.a,{className:c.title,id:"form-dialog-title",children:n("\uba54\uc138\uc9c0 \uc804\uc1a1")}),Object(g.jsx)(Kc.a,{className:c.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("\uc81c\ubaa9")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(St.a,{className:"",type:"text",name:"msg",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:n("\ub0b4\uc6a9")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsx)(St.a,{className:"",type:"text",name:"msg",fullWidth:!0,value:r,variant:"outlined",onChange:e=>i(e.target.value),size:"small",multiline:!0,rows:6})})]}),Object(g.jsxs)("div",{className:c.buttonWrapper,children:[Object(g.jsx)(Ic.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>(async()=>{try{const e=await Object(cn.T)(o,r);l(e?Object(U.d)({message:n("\uba54\uc138\uc9c0 \uc804\uc1a1 \uc694\uccad \uc131\uacf5")}):Object(U.d)({message:n("\uba54\uc138\uc9c0 \uc804\uc1a1 \uc694\uccad \uc2e4\ud328")}))}catch(e){console.error(e)}finally{a()}})(),children:n("CHANGE")})]})]})})]})})}var Dl=a(972);var Ml=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)(Sl.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)(Sl.a,{id:a,className:Object(G.a)(n,"customCell"),align:s,component:"td",scope:"row",children:l})},kl=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(cn.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)(El.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.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)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:h.length>0&&h.lengthj(),onClick:e=>j()})}):Object(g.jsx)(Sl.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)(Dl.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)(Tl.a,{children:a.map((e=>{const a=e.user_id in l;return Object(g.jsx)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,children:t.map((t=>"check_id"===t.id?Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>i(e.user_id)})}):"user_id"===t.id?Object(g.jsx)(Sl.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)(Sl.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)(Sl.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)(Sl.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)(Ml,{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 Gl=[{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}],Ul=[{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}],Fl=[{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}],Wl=[{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}],Hl=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 zl(e){let{open:t,fnHandleClose:a,openBackdrop:n,pickedCol:s,fnSelectedCol:c,fnSetColumn:l}=e;const r=Hl(),{t:i}=Object(jt.a)("docbase");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)(Tc.a,{className:r.backdrop,open:n,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(Yc.a,{className:r.title,id:"form-dialog-title",children:i("USER_DEFINED")}),Object(g.jsxs)(Kc.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:Gl.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.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:Ul.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.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:Fl.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.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:Wl.map((e=>"check_id"===e.id||e.default?"":Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)})))})]}),Object(g.jsx)(ul.a,{style:{padding:0,marginTop:10},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Ic.a,{onClick:a,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",onClick:()=>l(),children:i("SAVE")})]})})]})})}var Bl=a(477),Yl=a(22),Kl=a(955),Vl=a(75);const Xl=["children","classes","onClose"],ql=Object(Yl.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(Gs.a)(e,Xl);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),Jl=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 Zl(e){const t=Jl(),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(""),[d,b]=s.a.useState({}),[j,u]=s.a.useState(-1);function O(){const e=Array.isArray(null===l||void 0===l?void 0:l.children)?l.children.filter((e=>e.org_type===Wc.W||e.org_type===Wc.X)):[];b(e)}s.a.useEffect((()=>{e.open?(l.children&&0===l.children.length&&a(Object(nn.f)()),p("")):(o(""),O(),u(-1))}),[e.open]),s.a.useEffect((()=>{O()}),[l]),s.a.useEffect((()=>(p(i),()=>{p.cancel()})),[i]);const p=Object(n.useCallback)(Object(cl.debounce)((e=>{const t=[],a={};e.length>0?(r.forEach((n=>{n.name.toLowerCase().includes(e.toLowerCase())&&(t.push(n),a[n.fid]=!1)})),b({children:t})):O()}),100));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)(ql,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(ul.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(St.a,{className:"",type:"text",placeholder:c("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:i,variant:"outlined",size:"small",InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:i&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>o(""),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>o(e.target.value)})}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>e.fnselectedOrg(j),children:c("SELECTED")})]})}),Object(g.jsx)(Kc.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)(Vl.a,{className:"full",useExpand:!0,orgs:d,fid:j,fnOnClickHandler:e=>u(e)})})})})})]})})}const Ql=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 $l(){const e=Ql(),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)(Gl),[T,v]=Object(n.useState)([]),[C,y]=Object(n.useState)([]),[A,L]=Object(n.useState)({id:"user_id",direction:"desc"}),[w,I]=Object(n.useState)(""),[D,M]=Object(n.useState)(0),[k,F]=Object(n.useState)({}),[W,H]=Object(n.useState)({}),[z,K]=Object(n.useState)({}),[V,X]=Object(n.useState)({client:0,versionLock:0,lock:0}),[q,J]=Object(n.useState)(20),[Z,$]=Object(n.useState)(0),[ee,ae]=Object(n.useState)(void 0),[ne,se]=Object(n.useState)({}),[ce,le]=Object(n.useState)(""),[re,ie]=Object(n.useState)({}),[oe,de]=Object(n.useState)(!1),[be,je]=Object(n.useState)(!1),[ue,Oe]=Object(n.useState)(!1),[pe,he]=Object(n.useState)(!1),[me,_e]=Object(n.useState)(!1),[fe,ge]=Object(n.useState)(0);Object(n.useEffect)((()=>{K(bt.a.getLocalStorage("user_col")),c.length>0||t(Object(an.h)()).then((()=>{t(Object(nn.e)())}))}),[t]),Object(n.useEffect)((()=>{I("")}),[D]);const Ee=Object(n.useRef)(w);Object(n.useEffect)((()=>{c.length>0&&Ne(w,!1),se({}),$(0)}),[w,D,A,l,fe]),Object(n.useEffect)((()=>{v(C.slice(q*Z,q*(Z+1)))}),[Z,q,C]),Object(n.useEffect)((()=>{const e=Gl.filter((e=>e.default));Object.keys(z).forEach((t=>{e.push(z[t])})),S(e)}),[z]);const xe=async(e,t,a)=>{f(!0);const n=Ee.current!==e;let r={},i={};if(n)r=Object(d.a)({},k),i=Object(d.a)({},W);else{const e=await Object(cn.I)("");r=e.reduce(((e,t)=>(t.last_logged_in_user_id&&(!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(cn.B)("",0)).forEach((e=>{i[e.user_id]=e.recommend_type})),F(r),H(i)}let o={};!ee||t?(o=await Object(sn.k)(!0),ae(Object(d.a)({},o))):o=Object(d.a)({},ee);const b=Object.keys(o);let j=0,u=0,O=0;const p=[];let h=[...c];if(a&&a>0){h=(await Object(on.o)(a)).filter((e=>e.direct_permission)).map((e=>l[e.user_id]))}console.log(h),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.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&&(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 m=[...p].sort(((e,t)=>{const{id:a,direction:n}=A,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:s{xe(e,t,fe)}),500),[c,D,A,ee,fe]);function Se(e){let a="";return 0===Object.keys(ne).length?(t(Object(U.c)({message:s("UPDATE_NEW_CLIENT_MESSAGE_5")})),!1):(a=0===e?s("UPDATE_NEW_CLIENT_MESSAGE_1").replace("%d",Object.keys(ne).length):s("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",Object.keys(ne).length),t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:s("UPDATE_NEW_CLIENT_LOCK"),content:a,fnHandleOK:()=>{!async function(e){f(!0);const t=Object.keys(ne);for(let a=0;a{j(!1)}})," ",Object(g.jsx)(wl,{open:u,currentUserID:ce,fnChangeSize:(e,t,a)=>{h({id:e,privateSize:t,collectSize:a})},fnHandleClose:e=>{le(""),O(!1)},fnChangeFolderPerm:e=>{Ne(w,!0)}}),Object(g.jsx)(hl,{users:c,selectedMap:ne,open:i,openBackdrop:E,fnHandleClose:()=>o(!1),fnHandleOK:e=>{ie(e),Oe(!0)}}),Object(g.jsx)(jl,{selectedUsers:ne,open:oe,fnHandleClose:()=>de(!1),fnHandleOK:e=>{(async()=>{let a=!1;for(const t of Object.keys(ne))try{(await Object(an.l)(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")})),de(!1))})()}}),Object(g.jsx)(zl,{open:be,pickedCol:z,fnSelectedCol:e=>{const t=Object(d.a)({},z);e.id in t?delete t[e.id]:t[e.id]=e,K(t)},fnHandleClose:()=>je(!1),fnSetColumn:()=>{console.log(z),bt.a.setLocalStorage("user_col",z),je(!1)}}),Object(g.jsx)(Bl.a,{open:ue,title:s("AUDIT_TYPE_REMOVE_USER"),content:Object(g.jsxs)(Nt.a,{className:e.confirmModal,children:["\uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\uc790\ub97c \uc0ad\uc81c \ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",Object.keys(re).map((e=>Object(g.jsxs)(Nt.a,{className:"user-item",children:[Object(g.jsx)(Nt.a,{className:"user-left",children:"".concat(l[e].name,"(").concat(l[e].user_id,")")}),Object(g.jsxs)(Nt.a,{className:"arrow",children:[" ",s("\u226b")," "]}),Object(g.jsx)(Nt.a,{className:"user-right",children:re[e].id?"".concat(re[e].name,"(").concat(re[e].id,")"):s("DELETE")})]})))]}),ok:s("DELETE"),disabledCancel:!1,cancel:s("CANCEL"),fnHandleOK:()=>{!async function(){x(!0);let e=!1;const a=Object.keys(re);for(const c of a)try{await Object(an.k)(c,re[c].id)}catch(n){e=!0,n.error===Wc.lb?"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||(ie({}),se({}),t(Object(U.d)({message:s("USER_MESSAGE_9")})),t(Object(an.h)()),x(!1),Oe(!1),o(!1))}()},fnHandleCancel:()=>{Oe(!1)},fnHandleClose:()=>{Oe(!1)}}),Object(g.jsx)(Il,{open:pe,fnHandleClose:()=>{he(!1)}}),Object(g.jsx)(Zl,{open:me,fnHandleClose:()=>_e(!1),fnselectedOrg:e=>{ge(e),_e(!1)}}),Object(g.jsx)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:w,placeholder:s("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:w&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>I(""),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>I(e.target.value)})})}),Object(g.jsxs)("div",{className:"searchValue",children:[Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{_e(!0)},style:{width:"auto",marginRight:5},children:s("ORG_TITLE")})}),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(V.client,")")}),Object(g.jsx)(Q.a,{value:2,children:"".concat(s("NOT_INSTALLED"),"(").concat(c.length-V.client,")")}),Object(g.jsx)(Q.a,{value:3,children:"".concat(s("VERSION_LOCK"),"(").concat(V.versionLock,")")}),Object(g.jsx)(Q.a,{value:4,children:"".concat(s("VERSION_UNLOCK"),"(").concat(c.length-V.versionLock,")")}),Object(g.jsx)(Q.a,{value:5,children:"".concat(s("USER_LOCK"),"(").concat(V.lock,")")}),Object(g.jsx)(Q.a,{value:6,children:"".concat(s("USER_UNLOCK"),"(").concat(c.length-V.lock,")")})]})})]}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto"},children:Object(g.jsxs)("div",{className:"inputItem",children:[Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{je(!0)},style:{width:"auto",marginRight:5},children:s("USER_DEFINED")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{he(!0)},style:{width:"auto",marginRight:5},children:s("\uba54\uc138\uc9c0\uc804\uc1a1")}),Object(g.jsx)(Ic.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)(P.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 C){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 ol.excelDownload("".concat(n),t,a,null,e),f(!1)})()},children:Object(g.jsx)(Qt.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:q,size:"small",variant:"outlined",className:"dropdown",onChange:e=>J(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:C.length}),s("CNT"),")"]}),Te>0?Object(g.jsxs)("span",{children:["(",s("SELECTED")," ",Object(g.jsx)("span",{className:"count",children:Te}),s("CNT"),")"]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)("div",{className:"btnGroup",children:[Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{0===Te?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):o(!0)},children:s("DELETE")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Te?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):de(!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)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Te?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_12")})):Te>1?t(Object(U.d)({message:s("USER_ERROR_MESSAGE_21")})):Object(an.e)(Object.keys(ne)[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)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{t(0===Te?Object(U.d)({message:s("USER_ERROR_MESSAGE_12")}):Object(R.c)({children:Object(g.jsx)(dl.a,{title:s("USER_TOTP_TITLE"),content:s("USER_TOTP_CONTENT"),fnHandleOK:()=>{(async()=>{const e=Object.keys(ne),a=[];await e.reduce((async(e,t)=>{await e;try{await Object(an.m)(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)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>Se(0),children:s("UPDATE_NEW_CLIENT_LOCK")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>Se(1),children:s("UPDATE_NEW_CLIENT_UNLOCK")})]})]})]})}),Object(g.jsx)(yt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:_?Object(g.jsx)(Nt.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Y.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(B.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(kl,{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:ne,popUserModify:e=>(e=>{ce!==e&&(le(e),O(!0))})(e),changedSize:p,selectUser:e=>{const t=Object(d.a)({},ne);e in t?delete t[e]:t[e]="",se(t)},selectAll:()=>{if(Object.keys(ne).length>0)se({});else{const e={};C.forEach((t=>{e[t.user_id]=""})),se(e)}},handleChange:(e,a)=>{Object(an.o)(l[a],e.target.name,e.target.value).then((n=>{y((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)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(C.length/q),color:"primary",onChange:(e,t)=>{$(t-1)}})]})})]})}var er=s.a.memo($l),tr=a(274),ar=a.n(tr),nr=a(531),sr=a.n(nr),cr=a(481),lr=a.p+"static/media/header_home.f5aaf448.svg",rr=a(482);const ir=Object(M.a)((e=>({root:{padding:"40px 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 or=function(e){const t=ir(),a=Object(m.c)(Ra),[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)(P.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)(ar.a,{style:{color:"#fbc02d"}}):Object(g.jsx)(sr.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:cr.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)(P.a,{children:Object(g.jsx)(vt.a,{to:"/dashboard",children:Object(g.jsx)("img",{className:t.icon,src:lr,alt:"header-home-icon"})})}),Object(g.jsx)(Fc,{style:{minWidth:"inherit",width:56,height:56,padding:12}}),Object(g.jsx)(P.a,{className:"cursor-pointer",onClick:e=>{Object(ut.f)().then((e=>{window.location.href="/admin"}))},children:Object(g.jsx)("img",{className:t.icon,src:rr.a,alt:"header-logout-icon"})})]})]})};var dr={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/users",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(er,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const br=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 jr(e){let{open:t,fnHandleClose:a,fnHandleOk:n}=e;const{t:c}=Object(jt.a)("docbase"),l=br(),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)(Yc.a,{className:l.title,id:"form-dialog-title",children:c("PARTNERSHIP_ADD")}),Object(g.jsx)(Kc.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)(St.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)(St.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)(St.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)(St.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)(St.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)(St.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)(Ic.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Ic.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 ur=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 Or(e){let{open:t,parentCode:a,fnHandleClose:n,fnHandleOk:c}=e;const{t:l}=Object(jt.a)("docbase"),r=ur(),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=Math.floor(1e5*Math.random());j("".concat(a,"-NHF").concat(e))}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)(Yc.a,{className:r.title,id:"form-dialog-title",children:l("\uc5c5\ubb34\uc2dc\uc2a4\ud15c \ucd94\uac00")}),Object(g.jsx)(Kc.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)(St.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)(St.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)(St.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)(Ic.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Ic.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 pr=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}})));let hr=!0;var mr=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=pr(),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,C]=Object(n.useState)(!0),[y,A]=Object(n.useState)(new Set),[L,w]=Object(n.useState)({fid:0,show:!1}),[I,D]=Object(n.useState)({fid:0,show:!1,baseFid:-1});Object(n.useEffect)((()=>{bt.a.infoLog("orgTable selectedID end")}),[h]),Object(n.useEffect)((()=>(p.length>0&&M(x),()=>{M.cancel()})),[x]);const M=Object(n.useCallback)(Object(cl.debounce)((e=>{try{let t=Wc.W;if(l?t=Wc.Y:i&&(t=Wc.X),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)}else k()}catch(t){console.error(t)}finally{C(!1)}}),500),[p]);async function k(){if(r){var e;let t={};console.log(E),t=0===Object.keys(E).length?await Object(nn.L)():E;const a=H(null===_||void 0===_?void 0:_.children,"\uc5c5\ubb34\uc2dc\uc2a4\ud15c\ud3f4\ub354",t);D(Object(d.a)(Object(d.a)({},I),{},{baseFid:null===a||void 0===a||null===(e=a[0])||void 0===e?void 0:e.fid})),T(a)}else{let e=Wc.W;l?e=Wc.Y:i&&(e=Wc.X);const t=Array.isArray(null===_||void 0===_?void 0:_.children)?_.children.filter((t=>t.org_type===e)):[];T(t)}C(!1)}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=_);e.length>0?k():C(!1)}),[_,E]),Object(n.useEffect)((()=>(hr=!1,C(!0),b(Object(nn.p)()),()=>{hr=!0,b(Object(nn.C)({fid:-1,original:c})).then((()=>{b(Object(nn.q)())}))})),[b]);const F=async(e,t)=>{if(b(Object(sn.S)({show:!0})),!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{let n=Wc.W;l?n=Wc.Y:i&&(n=Wc.X);const s=await Object(nn.b)(t,e,n,b);i||r||(b(Object(U.d)({message:u("FOLDER_ADD")})),b(Object(nn.f)()),b(Object(sn.S)({show:!1}))),a=s.fid}catch(n){console.error(n),n.error===Wc.bb&&b(Object(U.c)({message:u("FOLDER_ERROR_MESSAGE_2")}))}finally{C(!1)}return a},W=e=>{var t;b(Object(R.c)({children:Object(g.jsx)(dl.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(sn.S)({show:!0})),Object(nn.x)(t,b).then((e=>{b(Object(U.d)({message:u("ORG_MESSAGE_1")})),b(Object(nn.f)()).then((()=>C(!1)))})).catch((e=>{b(Object(U.c)({message:u("ORG_ERROR_MESSAGE_1")}))}))}})}))},H=(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=>z(e,t)))),n};return v?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(o.root,"w-full p-0 h-full"),children:[Object(g.jsx)(jr,{open:L.show,fnHandleClose:e=>w(Object(d.a)(Object(d.a)({},L),{},{show:!1})),fnHandleOk:(e,t)=>(async(e,t)=>{const a=await F(L.fid,e);let n=!0;try{if(a>-1){const e=Object.keys(t);for(let s=0;sD(Object(d.a)(Object(d.a)({},I),{},{show:!1})),fnHandleOk:(e,t,a)=>(async(e,t,a)=>{const n=await F(0===I.fid?I.baseFid:I.fid,e);let s=!0;try{n>-1&&(s=await Object(nn.t)(t,n,a)),b(s?Object(U.d)({message:u("FOLDER_ADD")}):Object(U.c)({message:u("\ud3f4\ub354 \ucd94\uac00 \uc2e4\ud328")})),b(Object(nn.f)())}catch(c){console.error(c)}finally{b(Object(sn.S)({show:!1})),D(Object(d.a)(Object(d.a)({},I),{},{show:!1}))}})(e,t,a)}),Object(g.jsxs)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:x,placeholder:u("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:x&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>N(""),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>N(e.target.value)})})}),Object(g.jsx)("div",{className:"total-cnt-info"})]}),Object(g.jsx)(B.a,{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)(Vl.a,Object(d.a)(Object(d.a)({className:"",orgs:S,expandedFids:y,setExpandedFids:A,isPartnership:i,useAdd:!0,useRemove:!0,useExpand:!0,fnCreateFolder:(e,t)=>F(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=>W(e),fnOnClickHandler:e=>function(e){h!==e&&(b(Object(nn.C)({fid:e,original:c})),t())}(e)}))})})]})]})},_r=a(957),fr=a(962),gr=a(956);const Er=["children","classes","onClose"],xr=Object(Yl.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(Gs.a)(e,Er);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),Nr=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 Sr=!1;function Tr(e){const t=Nr(),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(l),[E,x]=s.a.useState({}),[N,S]=s.a.useState({}),[T,R]=s.a.useState(!1),[C,y]=s.a.useState(0),[A,L]=s.a.useState({}),[w,P]=s.a.useState({direction:"asc"});function I(){const e=Array.isArray(null===j||void 0===j?void 0:j.children)?j.children.filter((e=>e.org_type===Wc.W||e.org_type===Wc.X)):[];x(e)}s.a.useEffect((()=>{e.open?("0"===e.type&&e.original?j.children&&0===j.children.length&&a(Object(nn.f)()):a(Object(nn.s)()),D("")):(f([]),h(""),S({}),I())}),[e.open]),s.a.useEffect((()=>{h(""),D(""),R(!1)}),[l,C]),s.a.useEffect((()=>{I()}),[j]),s.a.useEffect((()=>(D(p),()=>{D.cancel()})),[p]);const D=Object(n.useCallback)(Object(cl.debounce)((t=>{const a=[],n={};if("0"===e.type&&e.original)0===C?t.length>0?(u.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),x({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:"".concat(s.name,"(").concat(s.user_id,")"),path:""}),n[s.user_id]=!1)}));else if(0===C){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)})),L(s),""!==t?(u.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),x({children:a})):I()}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))})),L(s)}S(n),f(a)}),100));function M(){const e={};if(_.forEach((t=>{e[t.id]=!T})),R(!T),S(e),0===C){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=!T,t}));e[a]={children:t}}t.push(Number(a))})),x(e)}}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)(xr,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(ul.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(St.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)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>M(),children:c("CHECK_ALL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!Sr){Sr=!0;const n=Object.keys(N);if(n.length>0){let s=!0;try{if(a(Object(sn.S)({show:!0})),"0"===e.type&&e.original)if(0===C){const t=await Object(sn.k)();for(let a=0;a{N[e]&&t.push(Object(d.a)(Object(d.a)({},A[e]),{},{file_permission:Wc.B,trash_permission:Wc.Ab,manage_type:Wc.K,manage_priority:100}))})),await Object(nn.G)(e.fid,t)}}catch(t){s=!1}s?e.fnSetPermComplete():a(Object(U.c)({message:c("PERM_ERROR_MESSAGE_1")})),a(Object(sn.S)({show:!1}))}Sr=!1}}(),children:c("ADD")})]})}),Object(g.jsx)(Kc.a,{className:t.body,children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(fr.a,{value:C,onChange:(e,t)=>{y(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(gr.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===C?Object(g.jsx)("div",{children:Object(g.jsx)(Vl.a,{className:"full",useCheckBox:!0,useExpand:!0,orgs:E,checks:N,setChecks:S,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsx)(vr,{data:_,allCheck:T,checkedList:N,sysConfigure:i,sortObj:w,setSortObj:e=>P(e),handleCheckAllBox:()=>M(),handleCheckBox:e=>{return t=e,R(!1),void S(Object(d.a)(Object(d.a)({},N),{},{[t]:!N[t]}));var t},handleUserSyncOsr:(e,t)=>{e.stopPropagation(),Object(an.o)(r[t],"no_sync_osr",!0).then((e=>{a(Object(U.d)({message:c("USER_MESSAGE_10")})),a(Object(an.h)())}))},t:c})})})]})})]})})}const vr=s.a.memo((e=>{let{data:t,allCheck:a,checkedList:n,sortObj:s,sysConfigure:c,handleCheckAllBox:l,setSortObj:r,handleCheckBox:i,handleUserSyncOsr:o,t:d}=e;return Object(g.jsxs)(El.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"cell-check",align:"center",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:!a&&Object.values(n).filter((e=>e)).length>0,checked:a,onChange:e=>l()})}),Object(g.jsx)(Sl.a,{padding:"none",className:"left",align:"left",children:Object(g.jsx)(Dl.a,{active:!0,direction:s.direction,onClick:e=>{r({direction:"asc"===s.direction?"desc":"asc"})},children:d("USER")})})]})}),Object(g.jsx)(Tl.a,{children:j.a.orderBy(t,[e=>e.name],[s.direction]).map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>i(e.id),children:[Object(g.jsx)(Sl.a,{className:"",padding:"none",align:"center",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:n[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{i(e.id)}})}),Object(g.jsxs)(Sl.a,{className:"left cell-name",component:"td",scope:"row",children:[Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(vl.a,{type:"person",className:"small"}),Object(g.jsx)("span",{children:e.name})]}),c.OSR_support?e.local_account||e.no_sync_osr?Object(g.jsx)("div",{className:"etc",children:Object(g.jsx)(Ic.a,{color:"inherit",size:"small",onClick:e=>{},disabled:!0,children:d("NO_SYNC_TARGET")})}):Object(g.jsx)("div",{className:"etc",children:Object(g.jsx)(Ic.a,{style:{color:"#666"},color:"inherit",size:"small",onClick:t=>o(t,e.id),children:d("NO_SYNC_OSR")})}):""]})]},e.id)))})]})}),((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))),Rr=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Cr=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 yr(e){const t=Object(m.b)(),a=Cr(),{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(cl.debounce)((e=>{try{if(e.length>0){const t=[];l.forEach((a=>{a.org_type===Wc.W&&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.filter((e=>e.org_type===Wc.W)))}}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:Rr,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsxs)(Yc.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:[n("TRANSFER_ORG"),"[",_,"]"]}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(Dc.a,{children:[Object(g.jsx)("div",{className:"search-form",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",name:"org-name-text",value:j,placeholder:n("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:j&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(xt.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)(Vl.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.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)(dl.a,{title:n("TRANSFER_ORG"),content:n("TRANSFER_ORG_MESSAGE_1"),fnHandleOK:()=>{t(Object(sn.S)({show:!0})),Object(nn.I)("".concat(f).concat(e.targetPath),"".concat(d.path,"/").concat(_)).then((a=>{t(Object(nn.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(sn.S)({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 Ar=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Lr=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 wr(e){const t=Object(m.b)(),a=Lr(),{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(cl.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===Wc.W&&(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)(dl.a,{title:n("MOVE_ORG_DATA_TITLE"),content:n("MOVE_ORG_DATA_MESSAGE_1"),fnHandleOK:()=>{Object(nn.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)(Dc.a,{children:[Object(g.jsx)("div",{className:"search-form",children:0===e?Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:O.sourceText,placeholder:n("SOURCE_ORG_NAME"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:O.sourceText&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{sourceText:""})),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{sourceText:e.target.value}))}):Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:O.targetText,placeholder:n("TARGET_ORG_NAME"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:O.targetText&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>p(Object(d.a)(Object(d.a)({},O),{},{targetText:""})),edge:"end",children:Object(g.jsx)(xt.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)(Vl.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)(Vl.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:Ar,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)(Yc.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("MOVE_ORG_DATA_TITLE")}),Object(g.jsx)(Kc.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)(Ic.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"action",type:"button",onClick:e=>{E()},children:n("TRANSFER")})]})]})})]})})}const Pr=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},"&>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 - 510px)",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 Ir=function(e){const{pathname:t}=Object(f.g)(),a="/orgs"===t,n="/qv"===t,c="/partnership"===t,l=Pr(),r=Object(m.b)(),i=s.a.useRef(),{t:o}=Object(jt.a)("docbase"),[b,j]=s.a.useState(window.innerHeight),{sysConfigure:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{orgPerms:O,orgsObj:p,selectedOrgID:h,capacity:_,parentPerms:E,codeObj:x}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[N,S]=s.a.useState(!1),[T,v]=s.a.useState(!1),[C,y]=s.a.useState(!1),[A,L]=s.a.useState({}),[I,D]=s.a.useState(""),[M,F]=s.a.useState(0),[W,H]=s.a.useState(_),[z,B]=s.a.useState(!0),[Y,K]=s.a.useState(!0),[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(""),[pe,he]=s.a.useState({code:"",subPath:"",fixCode:""}),[me,_e]=s.a.useState([]),[fe,ge]=s.a.useState(""),[Ee,xe]=s.a.useState({id:"user_name",direction:"asc"}),[Ne,Se]=s.a.useState("");s.a.useEffect((()=>{b>=754&&(i.current.style.height="".concat(b-140,"px")),window.addEventListener("resize",(()=>j(window.innerHeight)))}),[b]);const Te=s.a.useRef(!0);s.a.useEffect((async()=>{if(Te.current)Te.current=!1;else{bt.a.infoLog("detail selectedID start");try{var e;if(h&&h>0){if(D(p[h].name),_&&_>=1024?(F(Math.floor(_/1024)),B(!1)):(F(_||0),B(!0)),H(_),K(p[h].allow_takeout),c){var t,a,s,l,r,i,o,d,b,j;const e=await Object(nn.j)(h);J(null!==(t=null===e||void 0===e?void 0:e.business_number)&&void 0!==t?t:""),X(null!==(a=null===e||void 0===e?void 0:e.business_number)&&void 0!==a?a:""),ae(null!==(s=null===e||void 0===e?void 0:e.ceo)&&void 0!==s?s:""),$(null!==(l=null===e||void 0===e?void 0:e.ceo)&&void 0!==l?l:""),de(null!==(r=null===e||void 0===e?void 0:e.email)&&void 0!==r?r:""),ie(null!==(i=null===e||void 0===e?void 0:e.email)&&void 0!==i?i:""),le(null!==(o=null===e||void 0===e?void 0:e.phone)&&void 0!==o?o:""),se(null!==(d=null===e||void 0===e?void 0:e.phone)&&void 0!==d?d:""),Oe(null!==(b=null===e||void 0===e?void 0:e.fax)&&void 0!==b?b:""),je(null!==(j=null===e||void 0===e?void 0:e.fax)&&void 0!==j?j:"")}if(n){const e=x[h];he(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 D(""),F(0),B(!0),K(!0),J(""),X(""),ae(""),$(""),de(""),ie(""),le(""),se(""),Oe(""),je(""),ge("");Se(null===(e=p[h])||void 0===e?void 0:e.real_path),bt.a.infoLog("detail selectedID end")}catch(u){console.error(u)}}}),[h]),s.a.useEffect((()=>{if(n&&h>0){const e=x[h];he({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})}}),[x]),s.a.useEffect((()=>{bt.a.infoLog("detail orgs Obj useeffect start")}),[p]),s.a.useEffect((()=>{ve(fe)}),[O,fe]);const ve=s.a.useCallback(Object(cl.debounce)((e=>{const t={},n=[];if(O.forEach((e=>{t[e.user_id]=!0,n.push(Object(d.a)(Object(d.a)({},e),{},{isParent:!1}))})),p[h]){bt.a.splitPreDelimiter(p[h].fid_path).split("/").reverse().forEach((e=>{""!==e&&E[e]&&E[e].forEach((e=>{t[e.user_id]||(n.push(Object(d.a)(Object(d.a)({},e),{},{isParent:!0})),t[e.user_id]=!0)}))}))}if(L(t),a){let t=[];t=""===e?n:n.filter((t=>t.user_name.indexOf(e)>=0)),_e(t.sort(((e,t)=>e.file_permission!==t.file_permission?t.file_permission-e.file_permission: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.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)),_e(t.sort(((e,t)=>e.file_permission!==t.file_permission?t.file_permission-e.file_permission: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.name-t.name)))}}),500),[O]);function Re(e,t,n,s,c,l){if(r(Object(sn.S)({show:!0})),a)Object(nn.F)(e,t.user_id,n,s,c,-1===l?0:l).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(nn.C)({fid:h,original:a}))})).catch((e=>{e.error===Wc.bb&&("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(sn.S)({show:!1}))}));else{if(O.some((e=>e.manage_type===Wc.J&&e.manage_priority===l)))return r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_4")})),void r(Object(sn.S)({show:!0}));const i=[];O.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})):i.push(e)})),Object(nn.G)(e,i).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(nn.C)({fid:h,original:a}))})).catch((e=>{e.error===Wc.bb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_1")}))})).finally((()=>{r(Object(sn.S)({show:!1}))}))}}function Ce(e,t){if(r(Object(sn.S)({show:!0})),a)Object(nn.u)(e,t.user_id).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_2")})),r(Object(nn.C)({fid:h,original:a}))})).catch((e=>{e.error===Wc.bb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{r(Object(sn.S)({show:!1}))}));else{const n=[];O.forEach((e=>{(e.obj_type!==t.obj_type||e.obj_type===t.obj_type&&e.obj_id!==t.obj_id)&&n.push(e)})),Object(nn.G)(e,n).then((e=>{r(Object(U.d)({message:o("PERM_MESSAGE_2")})),r(Object(nn.C)({fid:h,original:a}))})).catch((e=>{e.error===Wc.bb&&r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{r(Object(sn.S)({show:!1}))}))}}const ye=e=>{if(!a&&e.obj_type===Wc.Z)return Object(g.jsx)(g.Fragment,{});if(e.manage_type!==Wc.J)return Object(g.jsx)(Je.a,{title:o("MANAGE_TYPE_NONE"),placement:"left",arrow:!0,children:Object(g.jsx)(P.a,{className:"perm-icon-btn",onClick:t=>{let a=0,n=0;O.forEach((e=>{e.manage_type===Wc.J&&n++,e.manage_priority<100&&e.manage_priority>=a&&(a=e.manage_priority+1)})),n>10?r(Object(U.c)({message:"\ubd80\uc11c\uc2b9\uc778\uc790\ub294 10\uba85\uae4c\uc9c0\ub9cc \uc9c0\uc815 \uac00\ub2a5\ud569\ub2c8\ub2e4"})):Re(h,e,e.file_permission,e.trash_permission,e.manage_type!==Wc.J?Wc.J:Wc.K,a)},children:Object(g.jsx)(Qt.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)(P.a,{children:Object(g.jsx)(Je.a,{arrow:!0,placement:"left",title:t,children:Object(g.jsxs)(St.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=>Re(h,e,e.file_permission,e.trash_permission,-1===t.target.value?Wc.K:e.manage_type,t.target.value),SelectProps:{MenuProps:{classes:{paper:l.menuPaper}}},fullWidth:!0,children:[Object(g.jsx)(Q.a,{className:"justify-center",value:-1,children:Object(g.jsx)(Qt.a,{className:"",type:"user-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:0,children:Object(g.jsx)(Qt.a,{className:"",type:"manager-0",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:1,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:2,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-2",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:3,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-3",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:4,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-4",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:5,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-5",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:6,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-6",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:7,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-7",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:8,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-8",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:9,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-9",fill:"#202020"})})]})})})})};return Object(g.jsxs)("div",{className:"",ref:i,children:[Object(g.jsx)(Tr,{open:C,type:"0",original:a,permsObj:A,fid:h,fnHandleClose:()=>y(!1),fnSetPermComplete:()=>{r(Object(U.d)({message:o("PERM_MESSAGE_1")})),r(Object(nn.C)({fid:h,original:a})),y(!1)}}),Object(g.jsx)(wr,{open:N,fnHandleClose:()=>{S(!1)}}),Object(g.jsx)(yr,{open:T,targetPath:h<=0?"":p[h].path,fnResetList:()=>{r(Object(nn.k)({parentFid:h}))},fnHandleClose:()=>v(!1)}),Object(g.jsxs)(Dc.a,{className:l.cardInfo,children:[Object(g.jsxs)(_r.a,{disableSpacing:!0,children:[Object(g.jsx)(P.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:h<=0?"":"[".concat(p[h].name,"]")})]})]}),Object(g.jsxs)(Mc.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)(St.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:I,onChange:e=>D(e.target.value)})}),Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{h<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):p[h].name!==I?r(Object(R.c)({children:Object(g.jsx)(dl.a,{title:o("NAME_CHANGE"),content:o("ORG_CHANGE_MESSAGE"),fnHandleOK:()=>{r(Object(sn.S)({show:!0})),Object(nn.A)(h,I).then((e=>{r(Object(nn.k)({parentFid:h}))})).finally((()=>{r(Object(sn.S)({show:!1}))}))}})})):r(Object(U.d)({message:o("EXTERNAL_ERROR_MESSAGE_6")}))},children:o("CHANGE")})})]}),u.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:Y,onChange:e=>{Object(nn.J)(h,e.target.value).then((()=>{K(e.target.value),r(Object(nn.k)({parentFid:h})),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)(St.a,{className:"",variant:"outlined",type:"text",name:"code",fullWidth:!0,value:pe.code,onChange:e=>he(Object(d.a)(Object(d.a)({},pe),{},{code:e.target.value}))})}),Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{h<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):pe.fixCode!==pe.code?r(Object(R.c)({children:Object(g.jsx)(dl.a,{title:o("\ucf54\ub4dc \ubcc0\uacbd"),content:o("\ucf54\ub4dc\ub97c \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{(async()=>{r(Object(sn.S)({show:!0}));try{await Object(nn.v)(pe.fixCode)&&(await Object(nn.t)(pe.code,h,pe.subPath)?(r(Object(U.d)({message:o("SECUREDOC_DIALOG_MESSAGE_3")})),r(Object(nn.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(sn.S)({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)(St.a,{className:"",variant:"outlined",type:"text",name:"sup_path",fullWidth:!0,value:pe.subPath,onChange:e=>he(Object(d.a)(Object(d.a)({},pe),{},{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)(os.a,{type:"number",name:"capacity",disableUnderline:!0,className:l.customInput,endAdornment:Object(g.jsx)(Tt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(l.selectTextAlignRight,""),value:z,onChange:e=>{let t=0;t=z?1024*M:M<1024?M:Math.floor(M/1024),Object(nn.E)(p[h].disp_path,t).then((()=>{B(!z),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:M,onChange:e=>F(e.target.value),onBlur:e=>{e.preventDefault();const t=z?M:1024*M;return t<0?(r(Object(U.c)({message:o("NUMBER_ERROR_MESSAGE")})),W&&W>=1024?(F(Math.floor(W/1024)),B(!1)):(F(W||0),B(!0)),!1):(W!==t&&Object(nn.E)(p[h].disp_path,t).then((()=>{H(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)(St.a,{className:"",variant:"outlined",type:"text",name:"business_number",fullWidth:!0,value:q,onChange:e=>J(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(V!==e.target.value)try{if(await Object(nn.w)(h,"business_number")){await Object(nn.a)(h,"business_number",e.target.value)&&(X(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)(St.a,{className:"",variant:"outlined",type:"text",name:"ceo",fullWidth:!0,value:ee,onChange:e=>ae(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(Z!==e.target.value)try{if(await Object(nn.w)(h,"ceo")){await Object(nn.a)(h,"ceo",e.target.value)&&($(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)(St.a,{className:"",variant:"outlined",type:"text",name:"email",fullWidth:!0,value:oe,onChange:e=>de(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(re!==e.target.value)try{if(await Object(nn.w)(h,"email")){await Object(nn.a)(h,"email",e.target.value)&&(ie(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)(St.a,{className:"",variant:"outlined",type:"text",name:"phone",fullWidth:!0,value:ce,onChange:e=>le(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(ne!==e.target.value)try{if(await Object(nn.w)(h,"phone")){await Object(nn.a)(h,"phone",e.target.value)&&(se(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)(St.a,{className:"",variant:"outlined",type:"text",name:"fax",fullWidth:!0,value:ue,onChange:e=>Oe(e.target.value),onBlur:e=>{e.preventDefault(),(async()=>{if(be!==e.target.value)try{if(await Object(nn.w)(h,"fax")){await Object(nn.a)(h,"fax",e.target.value)&&(X(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,{})]}),a?Object(g.jsx)(_r.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)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{h<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):v(!0)},children:o("MOVE")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:e=>{h<=0?r(Object(U.c)({message:o("ORG_ERROR_MESSAGE_2")})):S(!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)(St.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:Ne,onChange:e=>Se(e.target.value)}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{Ne.length>0&&Object(cn.J)(Ne).then((()=>{r(Object(U.d)({message:o("SEARCH_INDEXING_MESSAGE_1")}))}))},children:o("SEARCH_INDEXING")})]})]})}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)(Dc.a,{className:l.paperPerm,children:[Object(g.jsxs)(Mc.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:fe,placeholder:o("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:fe&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>r(ge("")),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>ge(e.target.value)})}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{h<=0?r(Object(U.c)({message:o("PERM_ERROR_MESSAGE_3")})):y(!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:me.length}),o("CNT"),")"]})})]}),Object(g.jsx)(Mc.a,{className:l.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:o("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-2",children:o("MANAGE_PRIORITY")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_READ_WRITE")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-2",children:o("PERM_TRASH")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:o("PERM_DELETE")})]})}),Object(g.jsx)(Tl.a,{children:me&&me.length>0?me.map(((e,t)=>e.file_permission===Wc.z?Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(vl.a,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:e.user_name})]})}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center"}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===Wc.z?o("PERM_NONE"):o("PERM_NOT_NONE"),children:Object(g.jsx)(P.a,{onClick:t=>Ce(h,e),children:e.file_permission===Wc.z?Object(g.jsx)(vl.a,{type:"visibility_off",className:""}):Object(g.jsx)(vl.a,{type:"visibility",className:""})})})})]}):e.isParent?Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",colSpan:2,children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Qt.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===Wc.A?o("PERM_READ"):o("PERM_READ_WRITE"),children:Object(g.jsx)(P.a,{onClick:t=>Re(h,e,e.file_permission===Wc.A?Wc.B:Wc.A,e.trash_permission,e.manage_type,e.manage_priority),children:e.file_permission===Wc.A?Object(g.jsx)(vl.a,{type:"readonly",className:""}):Object(g.jsx)(vl.a,{type:"write",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===Wc.Ab?o("PERM_TRASH_IMPOSSIBLE"):o("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(P.a,{onClick:t=>Re(h,e,e.file_permission,e.trash_permission===Wc.Ab?Wc.Bb:Wc.Ab,e.manage_type,e.manage_priority),children:e.trash_permission===Wc.Ab?Object(g.jsx)(vl.a,{type:"trash-delete",className:""}):Object(g.jsx)(vl.a,{type:"trash",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===Wc.z?o("PERM_NONE"):o("PERM_NOT_NONE"),children:Object(g.jsx)(P.a,{onClick:t=>Re(h,e,e.file_permission===Wc.z?Wc.B:Wc.z,e.trash_permission,e.manage_type,e.manage_priority),children:e.file_permission===Wc.z?Object(g.jsx)(vl.a,{type:"visibility_off",className:""}):Object(g.jsx)(vl.a,{type:"visibility",className:""})})})})]}):Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Qt.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)(Sl.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:ye(e)}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===Wc.A?o("PERM_READ"):o("PERM_READ_WRITE"),children:Object(g.jsx)(P.a,{onClick:t=>Re(h,e,e.file_permission===Wc.A?Wc.B:Wc.A,e.trash_permission,e.manage_type,e.manage_priority),children:e.file_permission===Wc.A?Object(g.jsx)(vl.a,{type:"readonly",className:""}):Object(g.jsx)(vl.a,{type:"write",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===Wc.Ab?o("PERM_TRASH_IMPOSSIBLE"):o("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(P.a,{onClick:t=>Re(h,e,e.file_permission,e.trash_permission===Wc.Ab?Wc.Bb:Wc.Ab,e.manage_type,e.manage_priority),children:e.trash_permission===Wc.Ab?Object(g.jsx)(vl.a,{type:"trash-delete",className:""}):Object(g.jsx)(vl.a,{type:"trash",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:o("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{"aria-label":"releasePerm",onClick:t=>Ce(h,e),children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Dr=function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(mr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Ir,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};const Mr=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 kr=function(e){let{fnToggleRightSidebar:t}=e;const{pathname:a}=Object(f.g)(),c="/orgs"===a,l="/partner"===a,r=Mr(),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),[C,y]=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]);const A=Object(n.useCallback)(Object(cl.debounce)((e=>{try{if(e.length>0){const t=[];u.forEach((a=>{a.org_type===Wc.Y&&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)}else L()}catch(t){console.error(t)}finally{v(!1)}}),500),[u]);Object(n.useEffect)((()=>{(null===p||void 0===p?void 0:p.length)>0?L():v(!1)}),[p]);const L=async()=>{const e=Array.isArray(null===p||void 0===p?void 0:p.children)?p.children:[],t=e.filter((e=>e.org_type===Wc.W)),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===Wc.Y)),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(nn.p)()),()=>{i(Object(nn.C)({fid:-1,original:c})).then((()=>{i(Object(nn.q)())}))})),[i]);const I=e=>{var t;i(Object(R.c)({children:Object(g.jsx)(dl.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(sn.S)({show:!0})),Object(nn.x)(t,i).then((e=>{i(Object(U.d)({message:b("ORG_MESSAGE_1")})),i(Object(nn.f)()).then((()=>v(!1)))})).catch((e=>{i(Object(U.c)({message:b("ORG_ERROR_MESSAGE_1")}))}))}})}))};return T?Object(g.jsx)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(r.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:E,placeholder:b("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:E&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>x(""),edge:"end",children:Object(g.jsx)(xt.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)(Vl.a,{className:"",orgs:N,expandedFids:C,setExpandedFids:y,isPartner:l,useAdd:!0,useRemove:!0,useExpand:!0,fnCreateFolder:(e,t)=>(async(e,t)=>{if(i(Object(sn.S)({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!==Wc.Y?a=0:(console.log(h[e]),n=h[e]);const s=await Object(nn.b)(t,a,Wc.Y,i);await Object(nn.a)(s.fid,"manage_org",n),i(Object(U.d)({message:b("FOLDER_ADD")})),i(Object(nn.f)()),i(Object(sn.S)({show:!1}))}catch(a){console.error(a),a.error===Wc.bb&&i(Object(U.c)({message:b("FOLDER_ERROR_MESSAGE_2")}))}finally{v(!1)}return-1})(e,t),fnRemoveFolder:e=>I(e),fnOnClickHandler:e=>function(e){O!==e&&(i(Object(nn.C)({fid:e,original:c})),t())}(e)})})})]})})};var Gr={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/orgs",component:Dr},{path:"/partner",component:Dr},{path:"/partnership",component:Dr},{path:"/qv",component:Dr},{path:"/collabo",component:function(){const e=s.a.useRef(null);return console.log("collabo"),Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(kr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Ir,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var Ur=function(e){const{t:t}=Object(jt.a)("docbase");return Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",children:t("FOLDER_NAME")}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:t("DELETE")})]})})};const Fr=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},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 Wr=function(e){const t=Fr(),a=Object(m.b)(),c=s.a.useRef(),l=s.a.useRef(null),{t:r}=Object(jt.a)("docbase"),[i,o]=s.a.useState(window.innerHeight),{orgsObj:d,sharedFolders:b,sharedsObj:j,selectedSharedID:u}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),O=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder.searchTextShared})),[h,_]=s.a.useState(0),[f,E]=Object(n.useState)(!0),[x,N]=Object(n.useState)(b),[S,T]=Object(n.useState)(!1),[v,C]=s.a.useState({});s.a.useEffect((()=>{bt.a.infoLog("detail selectedID start"),bt.a.infoLog("detail selectedID end")}),[u]),Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-228,"px")),window.addEventListener("resize",(()=>o(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>(a(Object(nn.f)()).then((()=>{a(Object(nn.o)()).then((()=>{a(Object(an.h)()).then((()=>{})),E(!1)}))})),()=>{a(Object(nn.D)({fid:-1}))})),[a]),Object(n.useEffect)((()=>{y(O)}),[b,O]);const y=Object(n.useCallback)(Object(cl.debounce)((e=>{N(p.filterFoldersByString(b,e))}),500),[b]);if(f)return Object(g.jsx)(Y.a,{});const A=x.filter((e=>0===h?e.folder_type===Wc.G:1!==h||e.folder_type===Wc.E));return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:O,placeholder:r("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:O&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>a(Object(nn.H)("")),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>a(Object(nn.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:A.length}),r("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsx)("div",{children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",disabled:0!==h,onClick:e=>T(!0),children:r("NEW_REGISTRATION")})})})]}),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)(fr.a,{value:h,onChange:(e,t)=>{_(t),a(Object(nn.H)(""))},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:r("SHARED_TITLE")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:r("ORGSHARED")})]})}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ur,{}),Object(g.jsxs)(Tl.a,{children:[x.map((t=>{d[t.parent_fid]&&bt.a.splitLastDelimiterString(d[t.parent_fid].disp_path);return 0===h&&t.folder_type!==Wc.G||1===h&&t.folder_type!==Wc.E?"":Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:u===t.fid,onClick:n=>{return s=t.fid,void(u!==s&&(a(Object(nn.D)({fid:s})),e.fnToggleRightSidebar()));var s},children:[Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,interactive:!0,title:t.folder_type===Wc.E?t.disp_path:t.path,children:Object(g.jsx)("span",{children:t.name})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{onClick:e=>{e.stopPropagation(),t.folder_type===Wc.E?a(Object(U.d)({message:r("FOLDER_ERROR_MESSAGE_5")})):a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:r("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(r("DELETE_CONTENT_FOLDER")),fnHandleOK:()=>{var e;e=t.fid,a(Object(nn.D)({fid:-1})),j[e].folder_type===Wc.E?Object(nn.y)(e,a).then((e=>{a(Object(U.d)({message:r("SHARED_MESSAGE_1")})),a(Object(nn.o)()).then((()=>E(!1)))})).catch((e=>{a(Object(U.c)({message:r("SHARED_ERROR_MESSAGE_1")}))})):Object(nn.z)(e,a).then((e=>{a(Object(U.d)({message:r("SHARED_MESSAGE_1")})),a(Object(nn.o)()).then((()=>E(!1)))})).catch((e=>{a(Object(U.c)({message:r("SHARED_ERROR_MESSAGE_1")}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)})),S&&0===h?Object(g.jsxs)(Nl.a,{className:"cursor-pointer",children:[Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)(ml.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="",C(t),""===t.name&&(Object(nn.c)(e.name,a).then((e=>{a(Object(U.d)({message:r("SHARED_ERROR_MESSAGE_2")})),a(Object(nn.o)()).then((()=>E(!1))),l.current.reset(),C({name:""})})).catch((e=>{e.error===Wc.bb&&(C({name:r("FOLDER_ERROR_MESSAGE_2")}),a(Object(U.c)({message:r("FOLDER_ERROR_MESSAGE_2")})))})),!0)}(e),validationErrors:v,ref:l,children:Object(g.jsxs)("div",{className:t.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(_l.c,{className:"",placeholder:r("FOLDER_NAME"),type:"text",name:"name",variant:"outlined",validations:{idCheck:(e,t)=>(t?t.trim().length>30?C({name:r("FOLDER_ERROR_MESSAGE_3")}):/[\\/:*?\\"<>|]/.test(t.trim())?C({name:r("PATTERN_ERROR_MESSAGE")}):C({name:""}):C({name:""}),!0)},size:"small",autoFocus:!0,fullWidth:!0})}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"submit",children:r("CREATE")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",onClick:e=>(T(!1),void C({name:""})),children:r("CLOSE")})]})]})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"right"})]}):""]})]})]})]})})};const Hr=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},"&>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 - 510px)",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: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"},"& .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 zr=function(e){const t=Hr(),a=Object(m.b)(),n=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(window.innerHeight),{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),[C,y]=s.a.useState(!1),[A,L]=s.a.useState(!0),[I,D]=s.a.useState([]),[M,F]=s.a.useState(""),[W,H]=s.a.useState({id:"user_name",direction:"asc"});s.a.useEffect((()=>{l>=754&&(n.current.style.height="".concat(l-140,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),s.a.useEffect((()=>{o&&o>0&&b[o]?(f(b[o].name),y(b[o].folder_type===Wc.E),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),y(!1),L(!0),F(""))}),[o,b]),s.a.useEffect((()=>{z(M)}),[i,M]);const z=s.a.useCallback(Object(cl.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.name-t.name)))}),500),[i]);function B(e,t,n,s,l,r){a(Object(sn.S)({show:!0}));const b=[];i.forEach((e=>{e.obj_type===t.obj_type&&e.obj_id===t.obj_id?b.push(Object(d.a)(Object(d.a)({},e),{},{file_permission:n,trash_permission:s,manage_type:l,manage_priority:r})):b.push(e)})),Object(nn.G)(e,b).then((e=>{a(Object(U.d)({message:c("PERM_MESSAGE_1")})),a(Object(nn.D)({fid:o}))})).catch((e=>{e.error===Wc.bb&&a(Object(U.c)({message:c("PERM_ERROR_MESSAGE_1")}))})).finally((()=>{a(Object(sn.S)({show:!1}))}))}const Y=e=>{if(e.obj_type===Wc.Z)return Object(g.jsx)(g.Fragment,{});if(e.manage_type!==Wc.J)return Object(g.jsx)(Je.a,{title:c("MANAGE_TYPE_NONE"),placement:"left",arrow:!0,children:Object(g.jsx)(P.a,{className:"perm-icon-btn",onClick:t=>{let n=0,s=0;i.forEach((e=>{e.manage_type===Wc.J&&s++,e.manage_priority<100&&e.manage_priority>=n&&(n=e.manage_priority+1)})),s>10?a(Object(U.c)({message:"\ubd80\uc11c\uc2b9\uc778\uc790\ub294 10\uba85\uae4c\uc9c0\ub9cc \uc9c0\uc815 \uac00\ub2a5\ud569\ub2c8\ub2e4"})):B(o,e,e.file_permission,e.trash_permission,e.manage_type!==Wc.J?Wc.J:Wc.K,n)},children:Object(g.jsx)(Qt.a,{className:"",type:"user-1",fill:"#202020"})})});let n="";return n=0===e.manage_priority?c("\ud3f4\ub354\uad00\ub9ac\uc790"):"".concat(c("\ud558\uc704\ud3f4\ub354\uad00\ub9ac\uc790"),"-").concat(e.manage_priority),Object(g.jsx)("div",{className:t.manage_type,children:Object(g.jsx)(P.a,{children:Object(g.jsx)(Je.a,{arrow:!0,placement:"left",title:n,children:Object(g.jsxs)(St.a,{select:!0,className:Object(G.a)(t.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?Wc.K:e.manage_type,t.target.value)},SelectProps:{MenuProps:{classes:{paper:t.menuPaper}}},fullWidth:!0,children:[Object(g.jsx)(Q.a,{className:"justify-center",value:-1,children:Object(g.jsx)(Qt.a,{className:"",type:"user-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:0,children:Object(g.jsx)(Qt.a,{className:"",type:"manager-0",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:1,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-1",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:2,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-2",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:3,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-3",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:4,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-4",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:5,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-5",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:6,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-6",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:7,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-7",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:8,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-8",fill:"#202020"})}),Object(g.jsx)(Q.a,{className:"justify-center",value:9,children:Object(g.jsx)(Qt.a,{className:"big",type:"manager-9",fill:"#202020"})})]})})})})};return Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(Tr,{open:u,type:"1",permsObj:p,fid:o,fnHandleClose:()=>O(!1),fnSetPermComplete:()=>{a(Object(U.d)({message:c("PERM_MESSAGE_1")})),a(Object(nn.D)({fid:o})),O(!1)}}),Object(g.jsxs)(Dc.a,{className:t.cardInfo,children:[Object(g.jsxs)(_r.a,{className:"",disableSpacing:!0,children:[Object(g.jsx)(P.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{a(Object(nn.D)({fid:0})),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:o<=0?"":"[".concat(b[o].name,"]")})]})]}),Object(g.jsxs)(Mc.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("FOLDER_NAME")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:C?Object(g.jsx)("span",{children:_}):Object(g.jsx)(St.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:_,onChange:e=>f(e.target.value)})}),C?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)("div",{className:Object(G.a)("align-middle items-center flex"),children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{a(o<=0?Object(U.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("NAME_CHANGE"),content:c("SHARED_CHANGE_MESSAGE"),fnHandleOK:()=>{Object(nn.B)(o,_).then((e=>{a(Object(nn.o)())}))}})}))},children:c("CHANGE")})})]}),C?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{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("EXPIRE_AT")})}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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,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)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60,marginRight:10},onClick:()=>{a(o<=0?Object(U.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("EXPIRE_AT_CHANGE"),content:c("EXPIRE_AT_CHANGE_MESSAGE_1"),fnHandleOK:()=>{Object(nn.K)(o,bt.a.getDateString(E)).then((e=>{a(Object(nn.o)()),a(Object(U.d)({message:c("EXPIRE_AT_CHANGE_MESSAGE_2")}))}))}})}))},children:c("CHANGE")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{a(o<=0?Object(U.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("EXPIRE_AT_RELEASE"),content:c("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{Object(nn.K)(o,"").then((e=>{a(Object(nn.o)()),a(Object(U.d)({message:c("EXPIRE_AT_RELEASE_MESSAGE_2")}))}))}})}))},children:c("RELEASE")})]})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsxs)("div",{className:t.filedTitle,children:[Object(g.jsx)("p",{className:Object(G.a)("text-left"),children:c("MAX_CAPACITY")}),Object(g.jsx)("span",{className:t.hint_span,children:c("FOLDER_SIZE_HELP_TEXT")})]}),Object(g.jsx)("div",{className:Object(G.a)(t.filedInput,""),children:Object(g.jsx)(os.a,{type:"number",name:"capacity",disableUnderline:!0,className:t.customInput,endAdornment:Object(g.jsx)(Tt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(t.selectTextAlignRight,""),value:A,onChange:e=>{let t=0;t=A?1024*N:N<1024?N:Math.floor(N/1024),Object(nn.E)(b[o].real_path,t).then((()=>{L(!A),a(Object(U.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(U.c)({message:c("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?(a(Object(U.c)({message:c("NUMBER_ERROR_MESSAGE")})),T&&T>=1024?(S(Math.floor(T/1024)),L(!1)):(S(T||0),L(!0)),!1):(T!==t&&Object(nn.E)(b[o].real_path,t).then((()=>{v(t),a(Object(U.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(U.c)({message:c("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),!0)}})})]})]})]}),C?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)(_r.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)(t.h_29,"inline-block align-middle ml-5 w-100"),style:{display:"none"},children:Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{o<=0?a(Object(U.c)({message:c("ORG_ERROR_MESSAGE_2")})):Object(cn.J)(b[o].real_path).then((()=>{a(Object(U.d)({message:c("SEARCH_INDEXING_MESSAGE_1")}))}))},children:c("SEARCH_INDEXING")})})})})]}),Object(g.jsxs)(Dc.a,{className:t.paperPerm,children:[Object(g.jsxs)(Mc.a,{className:t.paperPermHeader,children:[Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsx)("div",{className:"input-item mr-5",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:M,placeholder:c("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:M&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>a(F("")),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>F(e.target.value)})}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{o<=0?a(Object(U.c)({message:c("PERM_ERROR_MESSAGE_3")})):O(!0)},children:c("PERM_FOLDER_TITLE")})]}),Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:["(",c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:I.length}),c("CNT"),")"]})})]}),Object(g.jsx)(Mc.a,{className:t.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.th,children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-2",children:c("MANAGE_PRIORITY")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_READ_WRITE")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-2",children:c("PERM_TRASH")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_DELETE")})]})}),Object(g.jsx)(Tl.a,{className:t.tbody,children:I&&I.length>0?I.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Qt.a,{className:"big",type:"user-1",fill:"#202020"}),Object(g.jsx)("span",{className:"folder-name",children:e.name})]})}),Object(g.jsx)(Sl.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:Y(e)}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.file_permission===Wc.A?c("PERM_READ"):c("PERM_READ_WRITE"),children:Object(g.jsx)(P.a,{onClick:t=>B(o,e,e.file_permission===Wc.A?Wc.B:Wc.A,e.trash_permission),children:e.file_permission===Wc.A?Object(g.jsx)(vl.a,{type:"readonly",className:""}):Object(g.jsx)(vl.a,{type:"write",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{arrow:!0,title:e.trash_permission===Wc.Ab?c("PERM_TRASH_IMPOSSIBLE"):c("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(P.a,{onClick:t=>B(o,e,e.file_permission,e.trash_permission===Wc.Ab?Wc.Bb:Wc.Ab),children:e.trash_permission===Wc.Ab?Object(g.jsx)(vl.a,{type:"trash-delete",className:""}):Object(g.jsx)(vl.a,{type:"trash",className:""})})})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{"aria-label":"releasePerm",onClick:t=>function(e,t){a(Object(sn.S)({show:!0}));const n=[];i.forEach((e=>{(e.obj_type!==t.obj_type||e.obj_type===t.obj_type&&e.obj_id!==t.obj_id)&&n.push(e)})),Object(nn.G)(e,n).then((e=>{a(Object(U.d)({message:c("PERM_MESSAGE_2")})),a(Object(nn.D)({fid:o}))})).catch((e=>{e.error===Wc.bb&&a(Object(U.c)({message:c("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{a(Object(sn.S)({show:!1}))}))}(o,e),children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Br={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/shareds",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Wr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(zr,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Yr=["children","classes","onClose"],Kr=Object(Yl.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(Gs.a)(e,Yr);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),Vr=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 Xr(e){const{t:t}=Object(jt.a)("docbase"),a=Vr(),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)(Kr,{className:a.title,onClose:e.fnHandleClose,children:e.title}),Object(g.jsxs)(Kc.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)(St.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)(ul.a,{className:a.actions,children:[Object(g.jsx)(Ic.a,{onClick:e.fnHandleCancel,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:e.cancelTitle}),Object(g.jsx)(Ic.a,{className:"",color:"secondary",type:"button",variant:"contained","aria-label":"ok",onClick:e.fnHandleOK,children:e.okTitle})]})]})}const qr=["children","classes","onClose"],Jr=Object(Yl.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(Gs.a)(e,qr);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),Zr=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 Qr(e){const{t:t}=Object(jt.a)("docbase"),a=Zr(),[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)(Jr,{id:"confirm-start-restore",className:a.title,children:t("RESTORE")}),Object(g.jsxs)(Kc.a,{className:a.content,children:[Object(g.jsx)(Vc.a,{id:"alert-dialog-slide-description",children:t("RESTORE_MESSAGE_3")}),Object(g.jsx)(St.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)(ul.a,{className:a.actions,children:[Object(g.jsx)(Ic.a,{onClick:e.fnHandleClose,color:"",variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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 $r=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}}))),ei="last_recent",ti="today",ai="date";let ni;var si=function(){const e=$r(),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(sn.m)()),t(Object(sn.v)())}),[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(ni),ni=void 0,N(!1),0===r.mode?E({emergencyBtn:1,restoreBtn:1,isChange:!0}):E({emergencyBtn:3,restoreBtn:1,isChange:!1})):1===r.status&&(ni||(ni=setInterval((()=>{t(Object(sn.m)())}),2e3)),E(x?{emergencyBtn:0,restoreBtn:2,isChange:!1}:{emergencyBtn:2,restoreBtn:0,isChange:!1})):2===r.process_type?0===r.status?(clearInterval(ni),ni=void 0,N(!1),E({emergencyBtn:1,restoreBtn:1,isChange:!0})):1===r.status&&(ni||(ni=setInterval((()=>{t(Object(sn.m)())}),2e3)),E({emergencyBtn:0,restoreBtn:2,isChange:!1})):0===r.process_type?(ni&&clearInterval(ni),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)(vc.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)(Ic.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)(Ic.a,{className:"",variant:"contained",color:"secondary","aria-label":"emergency-mode",onClick:e=>{3===f.emergencyBtn&&t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:a("RESTORE_TEMP"),content:a("RESTORE_MESSAGE_2"),fnHandleOK:()=>{Object(sn.j)().then((e=>{t(Object(sn.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)(Ic.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)(Ic.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)(Ic.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)(yt.a,{className:e.mainPaper,children:[Object(g.jsx)(Xr,{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=ei;else if(3===j)e=ai;else{if(2!==j)return t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_3")})),void p(!1);e=ti}Object(sn.W)(e,d,bt.a.getDateString(i)).then((e=>{t(Object(sn.m)()),p(!1)})).catch((e=>t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_4")}))))})(),fnHandleOK:()=>{_(!0),p(!1)}}),Object(g.jsx)(Qr,{open:h,fnHandleClose:()=>_(!1),fnHandleOK:()=>{let e="last_recent";if(1===j)e=ei;else if(3===j)e=ai;else{if(2!==j)return t(Object(U.c)({message:a("RESTORE_ERROR_MESSAGE_6")})),void _(!1);e=ti}Object(sn.M)(e,d,bt.a.getDateString(i)).then((e=>{t(Object(sn.m)()),_(!1)}))}}),Object(g.jsx)("div",{children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left",children:a("RESTORE_SUB_TITLE")}),Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left",children:a("STATUS")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:""})]})}),Object(g.jsxs)(Tl.a,{children:[Object(g.jsxs)(Nl.a,{className:Object(G.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left date",align:"left",component:"td",scope:"row",children:bt.a.getDateString(new Date)}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:S("today")}),Object(g.jsx)(Sl.a,{className:"action-btn",component:"td",scope:"row",align:"center",children:T("today")})]}),r.days.map(((t,a)=>Object(g.jsxs)(Nl.a,{className:Object(G.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.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)(Sl.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 ci={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/restore",component:function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(si,{}),innerScroll:!0,sidebarInner:!0})}}]};const li=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 ri=e=>{const t=li();return Object(g.jsx)(ae.a,{classes:t,name:e.name,checked:e.checked,disabled:e.disabled,onChange:t=>e.onChange(t)})};const ii=["children","value","index"],oi=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 di(e){const{children:t,value:a,index:n}=e,s=Object(Gs.a)(e,ii);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)(Nt.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function bi(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}let ji,ui={};var Oi=function(){const e=oi(),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,C]=s.a.useState({size:0,unit:!1}),[y,A]=s.a.useState(0);function L(e){e.target.value!==String(o[e.target.name])&&D(e.target.name,e.target.value)}function I(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){ui[e]=a,"sync_solution_consumer_folder_accessible"===e&&(ui.sync_solution_integrated=!0),clearTimeout(ji),ji=setTimeout((()=>{"default_volume_label"===e&&(ui.lock_volume_label=h.lock_volume_label),"lock_volume_label"===e&&(ui.default_volume_label=h.default_volume_label),t(Object(sn.T)({setConf:ui,succMsg:l("TAKEOUT_APPROVE_MESSAGE_1")})).then((()=>{ui={},t(Object(sn.y)())}))}),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);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}),N(o.approving_timeout)}),[o]),s.a.useEffect((()=>{}),[b]),s.a.useEffect((()=>{t(Object(sn.y)()).then((()=>{t(Object(sn.x)())}))}),[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)(Tc.a,{className:e.backdrop,open:O,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsxs)(yt.a,{className:e.mainPaper,children:[Object(g.jsx)(Ue.a,{position:"static",className:e.tabsBar,children:Object(g.jsxs)(fr.a,{value:y,indicatorColor:"",onChange:(e,t)=>{y!==t&&A(t)},children:[Object(g.jsx)(gr.a,Object(d.a)({label:l("DEFAULT_SETTING")},bi(0))),Object(g.jsx)(gr.a,Object(d.a)({label:l("SETUP_SETTING")},bi(1))),Object(g.jsx)(gr.a,Object(d.a)({label:l("FOLDER_SIZE_SETTING")},bi(2))),Object(g.jsx)(gr.a,Object(d.a)({label:l("WEBLINK_SETTING")},bi(3))),Object(g.jsx)(gr.a,Object(d.a)({label:l("SETTING_PII_DETECT")},bi(4))),Object(g.jsx)(gr.a,Object(d.a)({label:l("SETTING_CENTRALIZED_DOC")},bi(5))),Object(g.jsx)(gr.a,Object(d.a)({label:l("SERVER_INFO")},bi(6)))]})}),Object(g.jsxs)(di,{className:e.tabPanel,value:y,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)(ri,{name:"strong_password",checked:h.strong_password,onChange:e=>I(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)(ri,{name:"two_factor_authentication",checked:h.two_factor_authentication,onChange:e=>I(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)(ri,{name:"dup_detect_enable",checked:h.dup_detect_enable,onChange:e=>I(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)(os.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)(Tt.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)(ri,{name:"preserve_last_revision",checked:h.preserve_last_revision,onChange:e=>I(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)(os.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)(Tt.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)(ri,{name:"desktop_web_support",checked:h.desktop_web_support,onChange:e=>I(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)(ri,{name:"mobile_web_support",checked:h.mobile_web_support,onChange:e=>I(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)(ri,{name:"allow_admin_access_users_folders",checked:h.allow_admin_access_users_folders,onChange:e=>I(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)(ri,{name:"private_folder_support",checked:h.private_folder_support,onChange:e=>I(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)(ri,{name:"no_shell_menu",checked:h.no_shell_menu,onChange:e=>I(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)(ri,{name:"no_tray_icon_menu",checked:h.no_tray_icon_menu,onChange:e=>I(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)(os.a,{type:"number",disableUnderline:!0,className:e.customInput,name:"restrict_file_size",value:v.size,onChange:e=>C(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)(Tt.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,C({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)(os.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)(ri,{name:"restrict_file_exts_remove_at_batch",checked:!h.restrict_file_exts_remove_at_batch,onChange:e=>I(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)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("FACTORY_RESET"),content:l("FACTORY_RESET_CONFIRM"),fnHandleOK:()=>{p(!0),Object(sn.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)(Ic.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(sn.cb)(e.target.files[0]).then((e=>t(Object(U.d)({message:l("SETTING_UPDATE_MESSAGE_1")})))).catch((e=>{e.error===Wc.eb?t(Object(U.c)({message:l("SETTING_UPDATE_ERROR_MESSAGE_1")})):e.error===Wc.bb?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)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(Object(sn.x)())},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)(P.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)(di,{className:e.tabPanel,value:y,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)(os.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)(ri,{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)(ri,{name:"silent_setup",checked:h.silent_setup,onChange:e=>I(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)(ri,{name:"disable_connect_button_webadmin",checked:h.disable_connect_button_webadmin,onChange:e=>I(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)(ri,{name:"auto_start",checked:h.auto_start,onChange:e=>I(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)(ri,{name:"disable_save_password",checked:h.disable_save_password,onChange:e=>I(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)(ri,{name:"force_setup_perform",checked:h.force_setup_perform,onChange:e=>I(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)(ri,{name:"lock_volume_label",checked:h.lock_volume_label,onChange:e=>I(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)(os.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)(di,{className:e.tabPanel,value:y,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)(os.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)(Tt.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)(os.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)(Tt.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)(os.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)(Tt.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)(os.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)(Tt.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)(di,{className:e.tabPanel,value:y,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)(ri,{name:"weblink_service_support",checked:h.weblink_service_support,onChange:e=>I(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)(os.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)(os.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)(ri,{name:"weblink_forced_use_password",checked:h.weblink_forced_use_password,onChange:e=>I(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)(os.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)(os.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)(os.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)(os.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)(os.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)(Tt.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)(os.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)(Tt.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)(di,{className:e.tabPanel,value:y,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)(ri,{name:"pii_detect_enable",checked:h.pii_detect_enable,onChange:e=>I(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)(ri,{name:"async_ocr",checked:h.async_ocr,onChange:e=>I(e)})})]})]})})]}),2!==h.menu_support_type&&(u.supportDataleakControl||u.supportSavingControl||u.supportAccessControl)?Object(g.jsxs)(di,{className:e.tabPanel,value:y,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)(ri,{name:"dataleak_control",checked:h.dataleak_control,onChange:e=>u.supportDataleakControl?(I(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)(ri,{name:"access_control",checked:h.access_control,onChange:e=>u.supportAccessControl?(I(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)(ri,{name:"saving_control",checked:h.saving_control,onChange:e=>u.supportSavingControl?(I(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)(ri,{name:"sync_solution_integrated",checked:h.sync_solution_integrated,onChange:e=>I(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)(os.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)(ri,{name:"sync_solution_consumer_folder_accessible",checked:h.sync_solution_consumer_folder_accessible,onChange:e=>I(e)})})]})]}):Object(g.jsx)(g.Fragment,{})]})}),Object(g.jsx)("div",{className:e.settingTitle,children:l("APPROVING_TIMEOUT")}),Object(g.jsx)("div",{className:"flex setting",children:Object(g.jsx)("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("APPROVING_TIMEOUT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(St.a,{className:"",variant:"outlined",type:"text",name:"approving_timeout",fullWidth:!0,value:x,onChange:e=>N(e.target.value),onBlur:e=>L(e)})})]})})})]}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)(di,{className:e.tabPanel,value:y,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)(El.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"left secondary",align:"left",padding:"none",children:l("SEEDKEY")}),Object(g.jsx)(Sl.a,{className:"left secondary",align:"left",padding:"none",children:l("USER_LICENSES")}),Object(g.jsx)(Sl.a,{className:"left secondary",align:"left",padding:"none",children:l("EXPIRE_DATE")}),Object(g.jsx)(Sl.a,{className:"left secondary",align:"left",padding:"none",children:l("MAINTENANCE_AT")})]})}),Object(g.jsxs)(Tl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:j}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:u.userLicenses}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(u.expireAt,"yyyy-mm-dd")}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:M})]})]})})]})]})]})})};var pi=function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Oi,{}),innerScroll:!0,sidebarInner:!0})};const 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)"}},contentWrapper:{height:"".concat(window.innerHeight-200,"px"),borderRadius:6},selectTextAlignRight:{"padding-right":"25px","& .MuiSelect-select":{"text-align":"right"}}})));let mi,_i={};var fi=function(){const e=hi(),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){_i[e]=a,"sync_solution_consumer_folder_accessible"===e&&(_i.sync_solution_integrated=!0),clearTimeout(mi),mi=setTimeout((()=>{"default_volume_label"===e&&(_i.lock_volume_label=j.lock_volume_label),"lock_volume_label"===e&&(_i.default_volume_label=j.default_volume_label),t(Object(sn.T)({setConf:_i,succMsg:n("TAKEOUT_APPROVE_MESSAGE_1")})).then((()=>{_i={},t(Object(sn.y)())}))}),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(sn.y)())}),[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)(Tc.a,{className:e.backdrop,open:o,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(yt.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)(os.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)(Tt.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)(os.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)(ri,{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 gi=function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(fi,{}),innerScroll:!0,sidebarInner:!0})};const Ei=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 xi=function(){const e=Ei(),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(sn.y)()),t(Object(sn.x)())}),[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)(Tc.a,{className:e.backdrop,open:d,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(yt.a,{className:e.mainPaper,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"commonTable-1","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"none",children:n("SEEDKEY")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"none",children:n("USER_LICENSES")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"none",children:n("EXPIRE_DATE")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"none",children:n("MAINTENANCE_AT")})]})}),Object(g.jsxs)(Tl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:i}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:o.userLicenses}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(o.expireAt,"yyyy-mm-dd")}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:j})]})]})})]})})};var Ni={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/settings",component:pi},{path:"/restrict",component:gi},{path:"/info",component:function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(xi,{}),innerScroll:!0,sidebarInner:!0})}}]};const Si=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(oc.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var Ti=function(e){let{history:t,location:a}=e;const c=Si(),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(Ya.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(Ya.a)(e)}(i.get("id")),_({enable:!0,code:""})):t.password_protected||e||E()}))}function E(){Object(Ya.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(Ba.a.encryptAES(e,o,"utf8","hex"))),h.enable&&(n+="&otp=".concat(Ba.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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Mc.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)(St.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)(Ic.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)(St.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)(Ic.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"download",onClick:e=>{x(e)},children:r("DOWNLOAD")})]}):""]})})})})})};const vi=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(oc.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var Ri={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/weblink",component:Ti},{path:"/weblinkError",component:function(e){let{location:t}=e;const a=vi(),{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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Mc.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})]})})})})})}}]},Ci=a(973);const yi=Object(M.a)((e=>({tr:{"& .seq":{width:100},"& .level":{width:100},"& .delete":{width:80}}})));var Ai=function(e){const{t:t}=Object(jt.a)("docbase"),a=yi(),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)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:a.tr,children:[n.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Sl.a,{className:"delete",padding:"none",sortDirection:!1})]})})};const Li=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-276,"px"),padding:"0 20px"}})));var wi=function(e){const t=Li(),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(sn.P)({page:1})).then((()=>{a(Object(an.h)()),e.setLoading(!1)}))}),[a]),Object(n.useEffect)((()=>{d.forEach((e=>{e.doc_id===o.doc_id&&a(Object(sn.D)({docObj:e}))}))}),[d]),e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ai,{}),Object(g.jsx)(Tl.a,{children:d.map((t=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:o.doc_id===t.doc_id,onClick:n=>{return s=t,a(Object(sn.C)({docObj:s})),void e.fnToggleRightSidebar();var s},children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:t.level<1e4?t.level:"NONE"}),Object(g.jsx)(Sl.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)(Sl.a,{className:"left",component:"td",scope:"row",align:"right",children:Object(g.jsx)(Je.a,{title:i("RELEASE"),arrow:!0,children:Object(g.jsx)(P.a,{onClick:n=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:i("SECUREDOC_RELEASE_TITLE"),content:i("SECUREDOC_RELEASE_CONTENT"),fnHandleOK:()=>{Object(sn.H)(t.doc_id).then((t=>{a(Object(U.d)({message:i("SECUREDOC_MESSAGE_3")})),a(Object(sn.P)({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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)))})]})}),Object(g.jsx)(Ci.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(sn.w)({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{!function(t){e.setLoading(!0),a(Object(sn.f)({value:t.target.value})),a(Object(sn.P)({page:1})).then((()=>e.setLoading(!1)))}(t),c.current.scrollTop=0}})]})})};const Pi=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 Ii=function(e){const t=Pi(),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(sn.Z)(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(sn.P)({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)(Dc.a,{className:t.cardInfo,children:[Object(g.jsxs)(_r.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:[Object(g.jsx)(P.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)(Mc.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)(Dc.a,{className:t.paperPerm,children:[Object(g.jsxs)(Mc.a,{className:t.paperPermHeader,children:[Object(g.jsx)("div",{children:Object(g.jsx)(Ol.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)(St.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)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>S(),children:c("ADD")})})]}),Object(g.jsx)(Mc.a,{className:t.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"delete",children:c("PERM_DELETE")})]})}),Object(g.jsx)(Tl.a,{children:b.users&&b.users.length>0?b.users.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(vl.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)(Sl.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)(P.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)(vl.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Di={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(wi,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Ii,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]},Mi=a(958),ki=a(39),Gi=a(128),Ui=a(93);ki.f.register(ki.a,ki.s,ki.i,Gi.a);const Fi=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 Wi(e){const t=Fi(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)(yt.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)(Ui.b,{data:a,options:n})})]})}var Hi=s.a.memo(Wi);ki.f.register(ki.a,ki.s,ki.i,Gi.a);const zi=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 Bi(e){const t=zi(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)(yt.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)(Ui.b,{data:a,options:n})})]})}var Yi=s.a.memo(Bi),Ki=a(932);const Vi=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 Xi(e){const{t:t}=Object(jt.a)("docbase"),a=Vi(),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)(Yc.a,{id:"alert-dialog-slide-title",className:a.titleWrapper,children:"".concat(e.title).concat(t("CHANGE_CAPACYTI_TITLE"))}),Object(g.jsx)(Kc.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)(os.a,{type:"number",name:"capacity",disableUnderline:!0,className:a.customInput,endAdornment:Object(g.jsx)(Tt.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)(ul.a,{className:a.actions,children:[Object(g.jsx)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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(nn.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 qi=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 Ji(e){const t=qi(),{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)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:r,placeholder:a("SEARCH_WITHIN_RESULT"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:r&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>i(""),edge:"end",children:Object(g.jsx)(xt.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)(Ki.a,{className:"w-xs max-w-full",color:"secondary"})]}):Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Xi,{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)(El.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"",align:"center",children:Object(g.jsx)("span",{})}),e.data.titles.map(((e,t)=>{return Object(g.jsx)(Sl.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)(Dl.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)(Tl.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)(Nl.a,{children:[Object(g.jsxs)(Sl.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)(Sl.a,{className:"left",children:s.name}),Object(g.jsx)(Sl.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)(Sl.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)(Sl.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 Zi=s.a.memo(Ji);ki.f.register(ki.a,ki.s,ki.i,Gi.a);const Qi=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 $i(e){const t=Qi(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)(yt.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)(Ui.b,{data:a,options:n})})]})}var eo=s.a.memo($i);ki.f.register(ki.a,ki.s,ki.i,Gi.a);const to=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 ao(e){const t=to(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)(yt.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===Wc.D?bt.a.splitLastDelimiterString(e.obj.title):e.obj.title}),Object(g.jsx)(P.a,{"aria-label":"close",className:t.closeButton,onClick:()=>e.fnDeleteFolderInfo(e.obj.fid),children:Object(g.jsx)(Kl.a,{})})]}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Ui.b,{data:a,options:n})})]})}var no=s.a.memo(ao);const so=Object(M.a)((e=>({selectedProject:{background:Object(oc.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"8px 0 0 0"},projectMenuButton:{background:Object(oc.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 co;var lo=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=so(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,C]=Object(n.useState)({}),[y,A]=Object(n.useState)(0),[L,w]=Object(n.useState)({title:a("ORG_FOLDER"),series:[],labels:[]}),[P,I]=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:Wc.C,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===Wc.D?a=!0:t[e].folderType===Wc.G?n=!0:t[e].folderType===Wc.F?s=!0:t[e].folderType===Wc.C&&(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)((()=>()=>{co&&clearInterval(co)}),[]),Object(n.useEffect)((()=>{p||bt.a.setLocalStorage("dashboard_selected_object",F)}),[F]),Object(n.useEffect)((()=>{if(t(Object(nn.f)()).then((()=>{t(Object(cn.C)()).then((()=>{co||(co=setInterval((()=>{t(Object(cn.C)())}),6e4)),t(Object(an.h)()).then((()=>{t(Object(nn.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:[]}]}})),C(l),0===y)I(Object(d.a)(Object(d.a)({},P),{},{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===y){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)),I(Object(d.a)(Object(d.a)({},P),{},{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,y]),Object(n.useEffect)((()=>{H(_)}),[R]),Object(g.jsx)(sl.a,{classes:{content:"flex"},innerScroll:!0,sidebarInner:!0,header:Object(g.jsx)(or,{}),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)(Mi.a,{className:O.btnGroup,color:"primary","aria-label":"outlined primary button group",children:[Object(g.jsx)(Ic.a,{className:Object(G.a)("default",0===y?"active":""),onClick:e=>A(0),children:a("ALL")}),Object(g.jsx)(Ic.a,{className:Object(G.a)("default",1===y?"active":""),onClick:e=>A(1),children:a("DETAIL")}),Object(g.jsx)(Ic.a,{className:Object(G.a)("default",2===y?"active":""),onClick:e=>A(2),children:"\u2605"})]})}),Object(g.jsx)(ro,{graphPage:y,dataObj:{totalDataObj:E,unitDataObj:N,privateDetailData:P,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)(fr.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)(gr.a,{className:"list-tab",disableRipple:!0,label:a("ORG_FOLDER")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:a("SHARED_FOLDER")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:a("USER")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:a("COLLECTOR_FOLDER")})]})}),Object(g.jsx)("div",{className:O.listTabContent,children:Object(g.jsx)(Zi,{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 ro=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)(Hi,{obj:a.totalDataObj})}),Object(g.jsx)("div",{className:"unit-widget flex sm:w-1/3",children:Object(g.jsx)(Yi,{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)(eo,{obj:a.privateDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(eo,{obj:a.orgDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(eo,{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)(no,{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 io={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dashboard",component:lo}]};const oo=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(oc.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var bo=function(e){let{history:t,location:a}=e;const s=oo(),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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Mc.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(Ya.d)(((a,s)=>{za.a.sendPost("/api/registerPreorderedProduct",{uuid:Ba.a.encryptAES(a,n,"utf8","hex"),token:s}).then((a=>{a.result?e(a):(za.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)(St.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)(Ic.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"Register",disabled:!(""!==i.uuid),type:"submit",children:l("REGISTER")})]})]})})})})})};var jo={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/regProduct",component:bo},{path:"/regProductEx",component:bo}]};var uo={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,979))))}]};ki.f.register(ki.e,ki.l,ki.n,ki.k,ki.r,ki.s,ki.h,ki.i);const Oo=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 po,ho;function mo(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=Oo(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),[C,y]=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(cn.Y)()).then((()=>{ho||(ho=setInterval((()=>{t(Object(cn.Y)())}),3e3))})),()=>{ho&&(clearInterval(ho),ho=void 0),po&&(clearInterval(po),po=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(C.series[0].data[a]?C.series[0].data[a]:0),o.push(C.series[1].data[a]?C.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}]})),y(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)(sl.a,{classes:{content:"flex"},innerScroll:!0,sidebarInner:!0,header:Object(g.jsx)(or,{}),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)(yt.a,{className:l.graphWrapper,children:Object(g.jsx)("div",{className:"flex w-full content",style:{width:"100%",height:"350px"},children:Object(g.jsx)(Ui.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)(yt.a,{className:Object(G.a)(l.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Ui.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)(yt.a,{className:Object(G.a)(l.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Ui.c,{options:w,data:{labels:r,datasets:[{label:C.series[0].name,data:C.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:C.series[1].name,data:C.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsx)(yt.a,{className:Object(G.a)(l.graphWrapper,"short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Ui.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)(yt.a,{className:Object(G.a)(l.graphWrapper,"mr","middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Ui.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)(yt.a,{className:Object(G.a)(l.graphWrapper,"middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Ui.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 _o={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/logs",component:s.a.memo(mo)}]};var fo={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(Ya.d)(((n,s)=>{za.a.sendPost("/api/getContentSiteInfo",{token:s,name:t}).then((t=>{t.result?e(Object(d.a)(Object(d.a)({},t),{},{id:Ba.a.decryptAES(n,t.id,"hex","utf8"),password:Ba.a.decryptAES(n,t.password,"hex","utf8")})):(za.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)(St.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)(St.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"})})]})})})]})]})})}}]},go=a(959),Eo="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=",xo="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 No=Object(M.a)((e=>({root:{},mainPaper:{borderRadius:6,padding:40,"&>.flex":{flexWrap:"wrap",justifyContent:"center"}},wrapperList:{color:"#353b48",marginRight:30,"&>.row":{display:"flex",width:690,justifyContent:"center",borderTop:"1px solid #e3e3e3","&:last-child":{borderBottom:"1px solid #e3e3e3"},"&>div":{display:"flex",alignItems:"center",paddingLeft:30}},"&>.row>.title":{width:277,height:45,background:"#f5f7fa","& span":{cursor:"default",display:"block"}},"&>.row>.content":{width:413},"&>.row.tall>div":{height:"auto"},"&>.row.tall>.content":{display:"block",padding:"5px 30px"}},hintSpan:{display:"block",marginTop:10,fontSize:12,color:"#9e9e9e"},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},inputForm:{width:"100%",maxWidth:265},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"},"&.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}},targetList:{height:"100%",maxHeight:350,overflow:"auto","&>ul":{padding:0},"&>ul>li":{height:44,display:"flex",alignItems:"center"},"&>ul>li:nth-of-type(odd)":{background:"#f5f7fa"},"&>ul>li>div":{padding:0},"&>ul>li>div.ext":{paddingLeft:25},"&>ul>li>.MuiListItemSecondaryAction-root":{borderLeft:"1px solid #e0e0e0"},"& .MuiTypography-body1":{fontSize:13,cursor:"default"}},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 auto"},pathWrapper:{marginTop:10}})));let So,To={};var vo=function(){const e=No(),t=Object(m.b)(),a=s.a.useRef(),{t:n}=Object(jt.a)("docbase"),[c,l]=s.a.useState(window.innerHeight),{sysConfigure:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[i,o]=s.a.useState(r),[b,j]=s.a.useState([]),[u,O]=s.a.useState([]),[p,h]=s.a.useState([]),[_,f]=s.a.useState([]),[E,x]=s.a.useState(0),[N,S]=s.a.useState(!0),[T,v]=s.a.useState(r.collect_interval_transfer/1e3),[R,C]=s.a.useState(""),[y,A]=s.a.useState(""),[L,I]=s.a.useState(""),[D,M]=s.a.useState(""),[k,F]=s.a.useState(""),[W,H]=s.a.useState(""),[z,Y]=s.a.useState(""),[K,V]=s.a.useState("");function X(e){e.target.value!==String(i[e.target.name])&&(o(Object(d.a)(Object(d.a)({},i),{},{[e.target.name]:"true"===e.target.value})),$(e.target.name,e.target.value))}function q(e){const a=[];r.collect_config.forEach((t=>{e.target_type===t.target_type&&e.value===t.value||a.push(t)})),t(Object(sn.T)({setConf:{collect_config:a}})).then((()=>{t(Object(sn.y)())}))}function J(e,a,s,c){if(a.trim().length>0){if(e===Wc.y&&r.collect_inclusive_pattern_support&&0===s.trim().length)return t(Object(U.d)({message:n("FOLDER_ERROR_MESSAGE_1")})),!1;t(Object(sn.T)({setConf:{collect_config:[...r.collect_config,{target_type:e,value:a,name:s,target_client:e===Wc.v||e===Wc.x?Wc.s:c}]}})).then((()=>{C(""),A(""),I(""),M(""),F(""),H(""),Y(""),V(""),t(Object(sn.y)())}))}return!0}function Z(e){o(Object(d.a)(Object(d.a)({},i),{},{[e.target.name]:!i[e.target.name]})),$(e.target.name,!i[e.target.name])}function $(e,a){To[e]=a,clearTimeout(So),So=setTimeout((()=>{t(Object(sn.T)({setConf:To})).then((()=>{To={},t(Object(sn.y)())}))}),500)}return s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(c-140,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[c]),s.a.useEffect((()=>{Number(r.collect_transfer_size)>=1073741824?(S(!1),x(Math.floor(Number(r.collect_transfer_size)/1024/1024/1024))):(S(!0),x(Math.floor(Number(r.collect_transfer_size)/1024/1024)));const e=[],t=[],a=[],n=[];r.collect_config.forEach((s=>{s.target_type===Wc.w?e.push(s):s.target_type===Wc.x?t.push(s):s.target_type===Wc.y?a.push(s):s.target_type===Wc.v&&n.push(s)})),j(a),O(e),h(t),f(n),o(r),v(r.collect_interval_transfer/1e3)}),[r]),s.a.useEffect((()=>{t(Object(sn.y)())}),[t]),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,"overflow-x-auto"),ref:a,children:Object(g.jsxs)(yt.a,{className:e.mainPaper,children:[Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsxs)("div",{className:e.wrapperList,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_USE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collector_support",checked:i.collector_support,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_SYNC_REMOVE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_sync_remove_support",checked:i.collect_sync_remove_support,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECTOR_TRANSFER_SIZE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(os.a,{type:"number",name:"collect_transfer_size",disableUnderline:!0,className:e.customInput,value:E,onChange:e=>x(Number(e.target.value)),onBlur:e=>{e.preventDefault();const a=N?E:1024*E;return a<0?(t(Object(U.c)({message:n("NUMBER_ERROR_MESSAGE")})),Number(r.collect_transfer_size)>=1073741824?(S(!1),x(Math.floor(Number(r.collect_transfer_size)/1024/1024/1024))):(S(!0),x(Math.floor(Number(r.collect_transfer_size)/1024/1024))),!1):(r.collect_transfer_size!==String(1024*a*1024)&&$("collect_transfer_size",1024*a*1024),!0)},endAdornment:Object(g.jsx)(Tt.a,{position:"end",className:"",children:Object(g.jsxs)(te.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(G.a)(e.selectTextAlignRight,""),value:N,onChange:e=>{x(N?E<1024?0:Math.floor(E/1024):1024*E),S(!N)},children:[Object(g.jsx)(Q.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(Q.a,{value:"true",children:"Mbyte"})]})})})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("div",{children:Object(g.jsx)("span",{children:n("COLLECTOR_INTERVAL_TRANSFER")})})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsx)(P.a,{className:Object(G.a)(e.customIconBtn,"left"),onClick:e=>{const t=Number(T);t>0&&(v(t-1),o(Object(d.a)(Object(d.a)({},i),{},{collect_interval_transfer:1e3*(t-1)})),$("collect_interval_transfer",1e3*(t-1)))},children:Object(g.jsx)(w.a,{children:"remove"})}),Object(g.jsx)(os.a,{type:"text",name:"collect_interval_transfer",className:e.customInputInterval,disableUnderline:!0,value:T,onChange:e=>{bt.a.isNumber(e.target.value)&&(v(Number(e.target.value)),o(Object(d.a)(Object(d.a)({},i),{},{[e.target.name]:1e3*Number(e.target.value)})))},onBlur:e=>{bt.a.isNumber(i.collect_interval_transfer)&&$(e.target.name,i.collect_interval_transfer)},endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:n("SEC")})}),Object(g.jsx)(P.a,{className:Object(G.a)(e.customIconBtn,"right"),onClick:e=>{const t=Number(T);v(t+1),o(Object(d.a)(Object(d.a)({},i),{},{collect_interval_transfer:1e3*(t+1)})),$("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")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_FIXED")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_fixed",checked:i.collect_drive_fixed,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_REMOVABLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_removable",checked:i.collect_drive_removable,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_CDROM")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_cdrom",checked:i.collect_drive_cdrom,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_RAMDISK")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_ramdisk",checked:i.collect_drive_ramdisk,onChange:e=>Z(e)})})]})]}),Object(g.jsxs)("div",{className:e.wrapperList,children:[Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_PATH_SETTING")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsxs)(te.a,{variant:"outlined",className:Object(G.a)(e.select,""),name:"collect_inclusive_pattern_support",value:String(i.collect_inclusive_pattern_support),onChange:e=>{X(e)},children:[Object(g.jsx)(Q.a,{value:"true",children:n("INCLUSIVE")}),Object(g.jsx)(Q.a,{value:"false",children:n("EXCLUSIVE")})]})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("div",{children:Object(g.jsx)("span",{children:n("COLLECT_EXCLUSIVE_EXT_SETTING")})})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsxs)(te.a,{variant:"outlined",className:Object(G.a)(e.select,""),name:"collect_exclusive_extension_support",value:String(i.collect_exclusive_extension_support),onChange:e=>{X(e)},children:[Object(g.jsx)(Q.a,{value:"true",children:n("EXCLUSIVE_EXT")}),Object(g.jsx)(Q.a,{value:"false",children:n("INCLUSIVE_EXT")})]})}),Object(g.jsx)("span",{className:Object(G.a)(e.hintSpan),children:n("COLLECT_EXCLUSIVE_EXT_SETTING_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_REMOTE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_remote",checked:i.collect_drive_remote,onChange:e=>Z(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:n("COLLECT_DRIVE_FIXED_HOTPLUG")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(ri,{name:"collect_drive_fixed_hotplug",checked:i.collect_drive_fixed_hotplug,onChange:e=>Z(e)})})]})]})]}),Object(g.jsxs)("div",{className:Object(G.a)(e.pathWrapper,"flex"),children:[i.collect_inclusive_pattern_support?Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:"".concat(n("COLLECT_INCLUSIVE")," (windows)")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_inclusive_value",value:R,FormHelperTextProps:n("COLLECT_INCLUSIVE"),variant:"outlined",disableUnderline:!0,onChange:e=>C(e.target.value),onKeyDown:e=>{13===e.keyCode&&R.length>0&&y.length>0&&J(Wc.y,e.target.value,y,Wc.u)}}),Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_inclusive_name",value:y,FormHelperTextProps:n("COLLECT_INCLUSIVE_NAME"),variant:"outlined",disableUnderline:!0,onChange:e=>A(e.target.value),onKeyDown:e=>{13===e.keyCode&&R.length>0&&y.length>0&&J(Wc.y,R,e.target.value,Wc.u)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>J(Wc.y,R,y,Wc.u),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:b.map(((t,a)=>t.target_client===Wc.u?Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(ds.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:xo,alt:"file-icon"})}),Object(g.jsx)(dt.a,{id:"target_inclusive_path_win_".concat(a),primary:"".concat(t.value," \u27f9 ").concat(t.name)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>q(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}):Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:n("COLLECT_IGNORE")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_ignore_value",value:k,FormHelperTextProps:n("COLLECT_IGNORE"),variant:"outlined",disableUnderline:!0,onChange:e=>F(e.target.value),onKeyDown:e=>{13===e.keyCode&&J(Wc.w,e.target.value,"",Wc.u)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>J(Wc.w,k,"",Wc.u),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:u.map(((t,a)=>t.target_client===Wc.u?Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(ds.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:xo,alt:"file-icon"})}),Object(g.jsx)(dt.a,{id:"target_ignore_win_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>q(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}),2===i.menu_support_type?Object(g.jsx)(g.Fragment,{}):i.collect_inclusive_pattern_support?Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:"".concat(n("COLLECT_INCLUSIVE")," (Mac)")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_inclusive_value",value:L,FormHelperTextProps:n("COLLECT_INCLUSIVE"),variant:"outlined",disableUnderline:!0,onChange:e=>I(e.target.value),onKeyDown:e=>{13===e.keyCode&&L.length>0&&D.length>0&&J(Wc.y,e.target.value,D,Wc.t)}}),Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_inclusive_name",value:D,FormHelperTextProps:n("COLLECT_INCLUSIVE_NAME"),variant:"outlined",disableUnderline:!0,onChange:e=>M(e.target.value),onKeyDown:e=>{13===e.keyCode&&L.length>0&&D.length>0&&J(Wc.y,L,e.target.value,Wc.t)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>J(Wc.y,L,D,Wc.t),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:b.map(((t,a)=>t.target_client===Wc.t?Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(ds.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:Eo,alt:"file-icon"})}),Object(g.jsx)(dt.a,{id:"target_inclusive_path_mac_".concat(a),primary:"".concat(t.value," \u27f9 ").concat(t.name)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>q(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}):Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:n("COLLECT_IGNORE")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_ignore_value",value:W,FormHelperTextProps:n("COLLECT_IGNORE"),variant:"outlined",disableUnderline:!0,onChange:e=>H(e.target.value),onKeyDown:e=>{13===e.keyCode&&J(Wc.w,e.target.value,"",Wc.t)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>J(Wc.w,W,"",Wc.t),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:u.map(((t,a)=>t.target_client===Wc.t?Object(g.jsxs)(ot.a,{secondaryAction:Object(g.jsx)(P.a,{className:e.fileIcon,onClick:e=>q(t),children:Object(g.jsx)("img",{className:e.fileIcon,src:Eo,alt:"file-icon"})}),disablePadding:!0,children:[Object(g.jsx)(ds.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:Eo,alt:"file-icon"})}),Object(g.jsx)(dt.a,{id:"target_ignore_path_mac_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>q(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}),i.collect_exclusive_extension_support?Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:n("COLLECT_EXCLUSIVE_EXT")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_exts_value",value:K,FormHelperTextProps:n("COLLECT_EXCLUSIVE_EXT"),variant:"outlined",disableUnderline:!0,onChange:e=>V(e.target.value),onKeyDown:e=>{13===e.keyCode&&J(Wc.v,e.target.value,"",Wc.s)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>J(Wc.v,K,"",Wc.s),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:_.map(((e,t)=>Object(g.jsxs)(ot.a,{disablePadding:!0,children:[Object(g.jsx)(dt.a,{id:"target_excluext_".concat(t),primary:"".concat(e.value)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",onClick:t=>q(e),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},t)))})})]}):Object(g.jsxs)("div",{className:Object(G.a)(e.targetWrapperList,2===i.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:i.collect_exclusive_extension_support?n("RANSOMWARE_EXT"):n("COLLECT_EXT")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(St.a,{className:"",type:"text",name:"collect_exts_value",value:z,FormHelperTextProps:n(i.collect_exclusive_extension_support?"RANSOMWARE_EXT":"COLLECT_EXT"),variant:"outlined",disableUnderline:!0,onChange:e=>Y(e.target.value),onKeyDown:e=>{13===e.keyCode&&J(Wc.x,e.target.value,"",Wc.s)}}),Object(g.jsx)(Ic.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",style:{"margin-left":"10px"},onClick:e=>J(Wc.x,z,"",Wc.s),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(it.a,{children:p.map(((t,a)=>Object(g.jsxs)(ot.a,{className:"ext",secondaryAction:Object(g.jsx)(P.a,{className:e.fileIcon,onClick:e=>q(t),children:Object(g.jsx)("img",{className:e.fileIcon,src:Eo,alt:"file-icon"})}),disablePadding:!0,children:[Object(g.jsx)(dt.a,{id:"target_ignore_path_mac_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(go.a,{children:Object(g.jsx)(P.a,{edge:"end","aria-label":"remove",onClick:e=>q(t),children:Object(g.jsx)(w.a,{children:"remove_circle"})})})]},a)))})})]})]})]})})})};var Ro=function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(vo,{}),innerScroll:!0,sidebarInner:!0})},Co=a(960);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 Ao(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Lo(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=Ao(m,t.map((e=>e.user_id))),c=s.length>0&&s.lengthN(e),onClick:t=>N(e)})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",children:i("USER")}),e?Object(g.jsx)(Sl.a,{padding:"none",className:"text-center z-99",children:i("COLLECT_USE_REMOVE_SOURCE")}):Object(g.jsx)(g.Fragment,{})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-default",hover:!0,role:"checkbox","aria-checked":r,tabIndex:-1,selected:r,children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.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)(Sl.a,{className:"left",component:"td",scope:"row",children:[Object(g.jsx)(Qt.a,{className:"small",type:"person",fill:"#333d4b"}),Object(g.jsx)("span",{children:"".concat(t.name,"(").concat(t.user_id,")[").concat(t.orgs,"]")})]}),e?Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.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)(yt.a,{className:r.paper,children:[Object(g.jsx)("div",{className:"title",children:t}),Object(g.jsx)(ht.a,{}),Object(g.jsxs)("div",{className:"insert-wrapper",children:[Object(g.jsx)("div",{className:"input",children:Object(g.jsx)(St.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)(Ic.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)(Co.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)(Ic.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)(Ic.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===Ao(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)(Ic.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===Ao(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)(Ic.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 wo=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 Po(e){const t=wo(),{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(cl.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)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:b,placeholder:a("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:b&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(xt.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.tr,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:!0,children:Object(g.jsx)(Dl.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)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_STATUS")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_RESTART")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PRESCANNED_FOLDERS")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FOLDERS")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FILES")}),Object(g.jsx)(Sl.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_REQUEST_AT")}),Object(g.jsx)(Sl.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_PRESCAN_FINISHED_AT")}),Object(g.jsx)(Sl.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_FINISHED_AT")})]})}),Object(g.jsx)(Tl.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)(Ic.a,{className:"default",variant:"contained",color:"",onClick:t=>{e.fnRestartFullScan(n)},children:a("COLLECT_FULL_SCAN_RESTART")}))),Object(g.jsxs)(Nl.a,{className:t.tr,hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",children:"".concat(n.name,"(").concat(n.user_id,")")}),Object(g.jsxs)(Sl.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)(Sl.a,{className:"",align:"center",padding:"default",children:l}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.prescanned_folders):"-"}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_folders):"-"}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_files):"-"}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:bt.a.getDateStringToLocalDate(n.full_scan_requested_at)}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?bt.a.getDateStringToLocalDate(n.full_prescan_finished_at):"-"}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?bt.a.getDateStringToLocalDate(n.full_scan_finished_at):"-"})]},n.user_id)}))})]})})]})}const Io=["children","value","index"],Do=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 Mo(e){const{children:t,value:a,index:n}=e,s=Object(Gs.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)(Nt.a,{p:2,className:"h-full p-0",style:{"margin-top":"-4px"},children:t})}))}function ko(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const Go="mobile"===sessionStorage.getItem("device");var Uo=function(){const e=Do(),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(an.h)()).then((()=>{t(Object(nn.f)()).then((()=>{Object(sn.k)().then((e=>{_(e),Object(sn.z)().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;a0){const t=r.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1));for(let c=0;c{r!==t&&(p(!0),i(t))},children:[Object(g.jsx)(gr.a,Object(d.a)({label:n("COLLECT_USE")},ko(0))),Object(g.jsx)(gr.a,Object(d.a)({label:n("COLLECT_USE_FULL_SCAN")},ko(1)))]})}),Object(g.jsx)(Mo,{className:Go?"":e.tabPanel,value:r,index:0,children:Object(g.jsx)(Lo,{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(sn.z)().then((e=>{E(e.obj),N(e.list)}))}))},fnCollectRemoveSource:async(e,a)=>{Object(sn.U)(e,f[e].enabled,f[e].full_scan,a,!1).then((()=>{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(sn.z)().then((e=>{E(e.obj),N(e.list)}))}))}})}),Object(g.jsx)(Mo,{className:Go?"":e.tabPanel,value:r,index:1,children:Object(g.jsx)(Po,{tabType:r,userPolicyInfos:x,fnDoSearch:()=>{Object(sn.z)().then((e=>{E(e.obj),N(e.list)}))},fnCollectFullScan:async(e,a)=>{Object(sn.U)(e,f[e].enabled,a,f[e].remove_source,!1).then((()=>{t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})),Object(sn.z)().then((e=>{E(e.obj),N(e.list)}))}))},fnRestartFullScan:e=>{(e=>{Object(sn.V)([{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(sn.z)().then((e=>{E(e.obj),N(e.list)}))}))})(e)}})})]})})})};var Fo={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/g_collector",component:Ro},{path:"/p_collector",component:function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Uo,{}),innerScroll:!0,sidebarInner:!0})}}]};var Wo=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{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}],[n,c]=s.a.useState({path:{show:""!==e.searchObj.searchName,value:e.searchObj.searchName}}),l=e=>{e.preventDefault()};return Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.a,{children:a.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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.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)})})};const Ho=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 zo(e){let{open:t,pid:a,fnHandleClose:n,fnHandleOk:c}=e;const{t:l}=Object(jt.a)("docbase"),r=Ho(),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(sn.s)(a),t=await Object(sn.t)(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(sn.E)(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)(Yc.a,{className:r.title,id:"form-dialog-title",children:l("FPOD_TITLE")}),Object(g.jsx)(Kc.a,{className:r.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Vc.a,{className:"text-1",id:"alert-dialog-slide-description",children:l("FPOD_TEXT_1")}),Object(g.jsx)("div",{className:"row",children:Object(g.jsx)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:Object(g.jsx)(Tl.a,{children:o.map((e=>Object(g.jsx)(Nl.a,{className:"cursor-pointer",hover:!0,tabIndex:-1,children:Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_name,"(").concat(e.user_id,")")})},e.user_id)))})})}),Object(g.jsx)(Vc.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)(Ic.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>O(!1),children:l("TAKEOUT_REJECTED")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>O(!0),children:l("TAKEOUT_APPROVED")})]})]})})]})})}const Bo=["children","classes","onClose"],Yo="mobile"===sessionStorage.getItem("device"),Ko=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Vo=Object(Yl.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(Gs.a)(e,Bo);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),Xo=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 qo(e){let{open:t,fnHandleClose:a}=e;Object(m.b)();const n=Xo(),{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(""),C())}),[t,x]),s.a.useEffect((()=>{R.current?R.current=!1:y(l)}),[l]);const C=async()=>{O(!0);try{const e=await Object(cn.v)(bt.a.getDateString(x.startDate),bt.a.getDateString(x.endDate));e.total_rows>0?(j(e.total_rows),await y(1)):h([])}catch(e){console.error(e)}finally{O(!1)}},y=async e=>{const t=await Object(cn.w)(e);h(t)};return Object(g.jsxs)(v.a,{className:Object(G.a)(n.root,Yo?"mobile":""),open:t,TransitionComponent:Ko,keepMounted:!0,fullWidth:!0,onClose:a,children:[Object(g.jsx)(Vo,{className:n.title,id:"form-dialog-title",onClose:a,children:c("\uacfc/\uc624\ud0d0 \ucc98\ub9ac \ubaa9\ub85d")}),Object(g.jsx)(Kc.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{},children:Object(g.jsx)(Qt.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)(Y.a,{className:"h-full"}):Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:n.tr,children:[Object(g.jsx)(Sl.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)(Sl.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)(Sl.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)(Sl.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)(Tl.a,{children:p.slice(l*i,l*i+i).map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.registered_username,"(").concat(e.registered_by,")")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.registered_at)}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.expire_at)})]},t)))})]})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(b/i),color:"primary",page:l,onChange:(e,t)=>{r(t-1)}})]})})]})}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 - 295px)",padding:"0 20px"}})));var Zo=function(e){const t=Jo(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{docs:r,rowsPerPage:i,currentPage:o,totalRows:d}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting.piiDocObj})),[b,j]=s.a.useState({open:!1,pid:-1}),[u,O]=s.a.useState(!1);return Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(zo,{open:b.open,pid:b.pid,fnHandleClose:()=>{j({open:!1,pid:-1})},fnHandleOk:()=>{j({open:!1,pid:-1}),Object(sn.O)({page:o,startDate:bt.a.getDateString(e.searchObj.startDate),endDate:bt.a.getDateString(e.searchObj.endDate),searchName:e.searchObj.searchName})}}),Object(g.jsx)(qo,{open:u,fnHandleClose:()=>{O(!1)}}),Object(g.jsxs)(yt.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:d}),l("CNT")]}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{O(!0)},style:{width:"auto",marginLeft:10},children:l("\uacfc/\uc624\ud0d0 \ucc98\ub9ac \ubaa9\ub85d")})]}),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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Wo,{searchObj:e.searchObj,fnSearch:t=>{e.searchObj.searchName!==t&&e.fnSetSearchObj("searchName",t)}}),Object(g.jsx)(Tl.a,{children:r.map((e=>Object(g.jsxs)(Nl.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>{return n=e,void a(Object(sn.C)({docObj:n}));var n},children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",children:e.pii&&e.pii.map(((e,t)=>t>0?" | ".concat(e.name):e.name))}),Object(g.jsx)(Sl.a,{className:"left",align:"left",children:e.pii_elements.map((e=>Object(g.jsx)("p",{children:"".concat(e.name,": ").concat(e.hits)})))}),Object(g.jsx)(Sl.a,{className:"center",align:"center",children:e.fpod_requested?Object(g.jsx)("span",{className:"tableLink",onClick:t=>{t.stopPropagation(),j({open:!0,pid:e.pid})},children:l("REQUESTED")}):""}),Object(g.jsx)(Sl.a,{className:"left",align:"left",children:e.registered_at})]},e.fid)))})]})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(d/i),color:"primary",page:o,onChange:(t,n)=>{o!==n&&function(t,n){e.setLoading(!0),a(Object(sn.r)({page:n+1})).then((()=>e.setLoading(!1)))}(),c.current.scrollTop=0}})]})]})};var Qo={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(sn.O)({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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Zo,{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 $o=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)(xl.a,{children:Object(g.jsx)(Nl.a,{children:a.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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)})})};ki.f.register(ki.e,ki.l,ki.c,ki.r,ki.s,ki.i,Gi.a);const ed=Object(M.a)((e=>({contentWrapper:{height:"calc(100vh - 365px)",padding:"0 20px"}})));var td=function(e){const t=ed(),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(sn.N)({page:1,path:x.path})).then((()=>{E(!1)}))}s.a.useEffect((()=>{S()}),[x]);const[T,v]=s.a.useState({used:0,free:0}),[R,C]=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]}]}),y={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;C({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)(Y.a,{});const A=Object(Yl.a)((e=>({root:{"&.bg":{backgroundColor:"#eaf4fd"}}})))(Nl.a);let L="";return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(Ui.a,{data:R,options:y})}),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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>S(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)($o,{searchObj:x,fnSearch:e=>{x.path!==e&&N(Object(d.a)(Object(d.a)({},x),{},{path:e}))}}),Object(g.jsx)(Tl.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(sn.C)({docObj:n}));var n},children:[n?"":Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Sl.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)(Sl.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)(Sl.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)(ll.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(sn.l)({page:e+1})).then((()=>E(!1)))}(t-1)}})]})})};var ad={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dupDocs",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(td,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const nd=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),sd=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 cd(e){const t=Object(m.b)(),a=sd(),{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(cn.z)();console.log(e),l(e.split(","))};return Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{open:e.open,TransitionComponent:nd,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsx)(Yc.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("OSR_ORG_TITLE")})}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:!1,children:n("OSR_ORG_CODE")}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:n("REMOVE")})]})}),Object(g.jsxs)(Tl.a,{children:[c.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:e}),Object(g.jsx)(Sl.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)(P.a,{onClick:t=>{t.stopPropagation(),l(c.filter((t=>t!==e)))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t))),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",children:[Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:a.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(St.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)(Ic.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)(Sl.a,{className:"",component:"td",scope:"row",align:"right"})]})]})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"btn-send",type:"button",onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(dl.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(cn.W)(e)).result&&t(Object(U.d)({message:n("COLLECT_MESSAGE_1")})).then((()=>{o()}))})()})}))},children:n("APPLY")})]})]})})]})})}const ld=["children","classes","onClose"],rd=Object(Yl.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(Gs.a)(e,ld);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),id=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 - 300px)",background:"#fff"},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:"0px",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 od(e){const t=id(),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(nn.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===Wc.W)):[]];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(cl.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()}),100));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)(rd,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(Kc.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)(Vl.a,{className:"full",useExpand:!0,expandedFids:u,setExpandedFids:O,orgs:b})})})})}),Object(g.jsx)(ul.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)(Ic.a,{className:"default",onClick:()=>e.fnHandleClose(),children:c("NO")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>e.fnHandleOk(),children:c("YES")})]})]})})]})})}const dd=["children","value","index"],bd=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:"".concat(window.innerHeight-296,"px")},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 jd(e){const{children:t,value:a,index:n}=e,s=Object(Gs.a)(e,dd);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)(Nt.a,{className:"",children:t})}))}var ud=function(e){const t=bd(),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([]),[C,y]=s.a.useState(!1),[A,L]=s.a.useState(!1),[w,P]=s.a.useState(0),[I,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?P(0):0===r.remove_organizations.length&&r.remove_users.length>0?P(2):P(1),clearTimeout(F),r.error?(j(!0),r.exists?(O(l("OSR_ERROR_MESSAGE_4")),F=setTimeout((()=>{a(Object(cn.A)()).then((()=>{j(!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(an.h)()).then((()=>{a(Object(nn.f)()).then((()=>{a(Object(cn.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)(Y.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)(cd,{open:I,fnHandleClose:()=>D(!1)}),Object(g.jsx)(od,{open:M.open,newObj:_.newObj,moveObj:_.moveObj,removeObj:_.removeObj,fnHandleClose:()=>k(Object(d.a)(Object(d.a)({},M),{},{open:!1})),fnHandleOk:()=>{Object(cn.R)(_.newObj,_.moveObj,_.removeObj,_.removeUserObj).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)(fr.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(),P(t)),!0),indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_ADD_ORG"),"(").concat(r.new_organizations.length,")")},z(0))),Object(g.jsx)(gr.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_REMOVE_ORG"),"(").concat(r.remove_organizations.length,")")},z(1))),Object(g.jsx)(gr.a,Object(d.a)({className:"list-tab",label:"".concat(l("OSR_REMOVE_USER"),"(").concat(r.remove_users.length,")")},z(2)))]}),Object(g.jsx)(Ic.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)(jd,{className:t.tabPanel,value:w,index:0,children:Object(g.jsxs)(yt.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)(Ic.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Ic.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.jsx)(B.a,{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:l("ORG_NAME")}),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(),y(!1)),"osr_removeorg_1"===t&&(y(!0),W()),"osr_removeorg_2"===t){const e={};r.remove_organizations.forEach((t=>{e[t.path]={path:"#DELETE#",id:1}})),y(!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)(Ic.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("OSR"),content:l("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(cn.R)(_.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)(B.a,{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)||C)&&(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)(jd,{className:t.tabPanel,value:w,index:2,children:Object(g.jsxs)(yt.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)(Ic.a,{onClick:e=>{W()},className:"default",children:l("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("OSR"),content:l("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(cn.R)(_.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)(B.a,{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)(St.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 Od={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/osr",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(ud,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const pd=Object(M.a)((e=>({tr:{"& .delete":{width:100},"& .approve":{width:100},"& .process_type":{width:140}}})));var hd=function(e){const t=pd(),{t:a}=Object(jt.a)("docbase"),n=[{id:"whiteprocess_name",align:"left",className:"left",disablePadding:!1,label:a("NAME"),sort:!1},{id:"program_rename",align:"left",className:"left",disablePadding:!1,label:a("WHITE_PROCESS_PROGRAM_NAME"),sort:!1},{id:"verify_type",align:"left",className:"left",disablePadding:!1,label:a("WHITE_PROCESS_VERIFY_TYPE"),sort:!1},{id:"process_type",align:"left",className:"left process_type",disablePadding:!1,label:a("WHITE_PROCESS_TYPE"),sort:!1},{id:"approved",align:"center",className:"approve",disablePadding:!1,label:a("TAKEOUT_APPROVED"),sort:!1},{id:"regdate",align:"center",className:"table_col_date",disablePadding:!1,label:a("REGIST_DATE"),sort:!1},{id:"process_delete",align:"center",className:"delete",disablePadding:!1,label:a("DELETE"),sort:!1}];return Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const md=Object(M.a)((e=>({tr:{"& .delete":{width:100}}})));var _d=function(e){const t=md(),{t:a}=Object(jt.a)("docbase"),n=[{id:"white_url_name",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_NAME"),sort:!1},{id:"set_type",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_SET_TYPE"),sort:!1},{id:"white_url_url",align:"left",className:"left",disablePadding:!1,label:a("WHITE_URL_URL"),sort:!1},{id:"process_delete",align:"center",className:"delete",disablePadding:!1,label:a("DELETE"),sort:!1}];return Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const fd=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 gd(e){const{t:t}=Object(jt.a)("docbase"),a=fd(),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)(Yc.a,{className:a.title,id:"form-dialog-title",children:t("WHITE_URL_MODAL_1")}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Vc.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)(St.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)(St.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)(St.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)(Vc.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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 Ed=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"}}))),xd=s.a.memo((e=>{let{dispatch:t,t:a,tabValue:n,whiteProcessList:s,whiteURLList:c,handleRowClick:l,doApprove:r,deleteConfirm:i,deleteWhiteURLConfirm:o}=e,d=Object(g.jsx)(El.a,{});return d=0===n?Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(hd,{}),Object(g.jsx)(Tl.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)(Nl.a,{className:Object(G.a)("cursor-default"),hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>l(e),children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.program_name}),Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.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)(Qt.a,{type:"stamper",className:"",fill:"#575757"})})}),Object(g.jsx)(Je.a,{title:a("TAKEOUT_REJECTED"),arrow:!0,children:Object(g.jsx)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.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)(Qt.a,{type:"reject",className:"",fill:"#575757"})})})]})}),Object(g.jsx)(Sl.a,{className:"relative",component:"td",scope:"row",children:bt.a.getDateTimeString(e.registered_at)}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:a("PROCESS_DELETE_TITLE"),content:a("PROCESS_DELETE_CONTENT").replace("%s",e.name),fnHandleOK:()=>{i(n,e.name)}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)}))})]}):Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(_d,{}),Object(g.jsx)(Tl.a,{children:c.map((e=>Object(g.jsxs)(Nl.a,{className:"cursor-default",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>l(e),children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:"regex"===e.set_type?a("WHITE_URL_REGEX"):a("WHITE_URL_PLAIN")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.url}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:a("URL_DELETE_TITLE"),content:a("URL_DELETE_CONTENT").replace("%s",e.url),fnHandleOK:()=>{o(n,e.name)}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)))})]}),d}));var Nd=function(e){const t=Ed(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),[i,o]=s.a.useState(window.innerWidth),{t:d}=Object(jt.a)("docbase"),{whiteProcessList:b,whiteURLList:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[u,O]=s.a.useState(0),[p,h]=s.a.useState(!1);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-274,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{window.addEventListener("resize",(()=>o(window.innerWidth)))}),[i]),Object(n.useEffect)((()=>{e.setLoading(!0),a(Object(sn.A)()).then((()=>{a(Object(sn.B)()),e.setLoading(!1)}))}),[a]),e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(gd,{open:p,fnHandleClose:()=>{h(!1)},fnHandleChange:(e,t,n)=>{Object(sn.G)(e,t,n).then((e=>{a(Object(sn.B)()),a(Object(U.d)({message:d("WHITE_PROCESS_MESSAGE_3")})),h(!1)})).catch((e=>{a(Object(U.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_5")}))}))}}),Object(g.jsxs)(yt.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:[d("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:b.length}),d("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{h(!0)},children:d("URL_REGISTRATION")})}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:d("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.setLoading(!0),a(Object(sn.A)()).then((()=>{e.setLoading(!1)}))},children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(fr.a,{value:u,onChange:(e,t)=>{O(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:d("PROCESS")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:d("URL")})]})}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(xd,{dispatch:a,t:d,tabValue:u,whiteProcessList:b,whiteURLList:j,handleRowClick:e=>{},doApprove:(e,t)=>function(e,t){Object(sn.c)(e,t).then((e=>{a(Object(sn.A)()),a(Object(U.d)({message:d(t?"APPROVED":"REJECTED")}))})).catch((e=>{a(Object(U.c)({message:d("FAILED")}))}))}(e,t),deleteConfirm:(e,t)=>function(e,t){e.stopPropagation(),Object(sn.X)(t).then((e=>{a(Object(sn.A)()),a(Object(U.d)({message:d("WHITE_PROCESS_MESSAGE_1")}))})).catch((e=>{a(Object(U.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_1")}))}))}(e,t),deleteWhiteURLConfirm:(e,t)=>function(e,t){e.stopPropagation(),Object(sn.Y)(t).then((e=>{a(Object(sn.B)()),a(Object(U.d)({message:d("WHITE_PROCESS_MESSAGE_2")}))})).catch((e=>{a(Object(U.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_2")}))}))}(e,t)})})]})]})};var Sd=function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Nd,{loading:e,setLoading:t}),innerScroll:!0,sidebarInner:!0,ref:a})};var Td={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/whiteProcesses",component:Sd},{path:"/secureProcesses",component:Sd}]};const vd=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 Rd=function(e){const t=vd(),{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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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 Cd=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=Cd(),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)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(sn.S)({show:!0}));const t=await Object(cn.m)(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)})})),ol.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(sn.S)({show:!1}))}})()},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Rd,{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)(Tl.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 Wc.r:a="windows86";break;case Wc.q:a="windows64";break;case Wc.o:a="MAC";break;case Wc.p:a="Web";break;default:a="..."}return 33===e.audit_type&&(n=l("AUDIT_TYPE_ARCHIVE_COPY"),a=""),Object(g.jsxs)(Nl.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.opreator}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.new_object}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.performed_at)})]},t)}))})]})}),Object(g.jsx)(ll.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(cn.l)({page:t+1})).then((()=>e.setLoading(!1)))}(n-1)}})]})})};var Ad={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(cn.k)({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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),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})}}]},Ld=a(483),wd=a(484);const Pd=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"}}))),Id=[{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"}],Dd={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 Md=function(e){const t=Pd(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),{logs:r}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.accessLogObj})),[i,o]=s.a.useState({id:"user_id",direction:"asc"}),[d,b]=s.a.useState(100),[j,u]=s.a.useState(0),[O,p]=s.a.useState(!1),[h,_]=s.a.useState(""),[f,E]=s.a.useState("");return Object(n.useEffect)((()=>{}),[a]),Object(n.useEffect)((()=>{u(0)}),[r]),e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(wd.a,{open:O,accessType:Id,selectedTypes:h,fnHandleClose:()=>p(!1),fnHandleOK:t=>{let a="",n="";t.indexOf("0")>-1?(n=l("ALL"),a=""):t.forEach(((e,t)=>{0!==t&&(a+=",",n+=","),a+=e,n+=l(Dd[Number(e)])})),_(a),E(n),e.fnSetSearchObj("accessType",a),p(!1)}}),Object(g.jsxs)(yt.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.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("span",{className:"title",children:l("ACCESS_TYPE")}),Object(g.jsx)(St.a,{onClick:e=>p(!0),name:"modal",className:"align-middle",variant:"outlined",siae:"small",InputProps:{readOnly:!0},value:""!==f?f:l("ALL")})]}),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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[l("DIVISION"),l("EXISTING_FILE"),l("NEW_FILE"),l("USER"),l("DATE")],a=[];r.forEach((t=>{a.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)})})),ol.excelDownload("".concat(l("FILE_LOG_EXCEL")).concat(bt.a.getDateString(e.searchObj.startDate),"-").concat(bt.a.getDateString(e.searchObj.endDate)),t,a,[{wpx:80},{wpx:400},{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ld.a,{order:i,searchObj:e.searchObj,rowCount:r.length,fnSearch:(t,a)=>{e.searchObj.path!==t&&e.fnSetSearchObj("path",t),e.searchObj.operator!==a&&e.fnSetSearchObj("operator",a)}}),Object(g.jsx)(Tl.a,{children:r.slice(j*d,j*d+d).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===Wc.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)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.fnCheckAccessType(t.access_type)}),Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(t.user_name,"(").concat(t.user_id,")")}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(t.accessed_at)})]},t.id)}))})]})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(r.length/d),color:"primary",onChange:(e,t)=>{u(t-1)}})]})]})};var kd={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(cn.h)({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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Md,{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 Wc.b:return l("ACCESS_TYPE_CREATE");case Wc.f:return l("ACCESS_TYPE_READ");case Wc.d:return l("ACCESS_TYPE_MOVE");case Wc.k:return l("ACCESS_TYPE_UPDATE");case Wc.c:return l("ACCESS_TYPE_HOLD");case Wc.h:return l("ACCESS_TYPE_REMOVE");case Wc.i:return l("ACCESS_TYPE_REMOVE_TRASH");case Wc.g:return l("ACCESS_TYPE_RECOVERY_TRASH");case Wc.e:return l("ACCESS_TYPE_PURGE_TRASH");case Wc.l:return l("ACCESS_TYPE_VIEWING");case Wc.m:return l("ACCESS_TYPE_WEB_CREATE");case Wc.n:return l("ACCESS_TYPE_WEB_DOWNLOAD");case Wc.a:return l("ACCESS_TYPE_COLLECT_FILE");case Wc.j:return l("ACCESS_TYPE_START_VIEWING");default:return l("ETC")}}(e)}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const Gd=Object(M.a)((e=>({root:{background:"radial-gradient(".concat(Object(oc.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 Ud={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=Gd(),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)(wc,{animation:"transition.expandIn",children:Object(g.jsx)(Dc.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(Mc.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)(St.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)(St.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)(St.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)(Ic.a,{onClick:e=>{Object(cn.o)(r.userID,r.startdate,r.enddate,r.rows_per_page).then((e=>{console.log(e)}))},children:"\ub85c\uadf8\uc694\uccad"})]}),Object(g.jsx)(Ic.a,{onClick:e=>{Object(cn.p)().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)(St.a,{className:"",variant:"outlined",type:"text",name:"includes",fullWidth:!0,value:o,onChange:e=>b(e.target.value)}),Object(g.jsx)(Ic.a,{onClick:e=>{Object(cn.p)(o).then((e=>{console.log(e)}))},children:"\ubaa9\ub85d\uc870\ud68c"})]})]})})})})})}}]};var Fd=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)(xl.a,{children:Object(g.jsx)(Nl.a,{children:a.map((a=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:a.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[a.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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 Wd=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 Hd=function(e){const t=Wd(),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(sn.C)({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)(Y.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)(yt.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)(St.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Fd,{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)(Tl.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)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:Object(g.jsxs)(Sl.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)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.user_id}),Object(g.jsx)(Sl.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.client_address.split(":")[0]}),Object(g.jsxs)(Sl.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)(Sl.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)(Sl.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:bt.a.getDateStringToLocalDate(e.detected_at)})]},e.id)}))})]})}),Object(g.jsx)(Ci.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(sn.u)({page:s+1})).then((()=>e.setLoading(!1))),c.current.scrollTop=0},onChangeRowsPerPage:t=>{var n;n=t,e.setLoading(!0),a(Object(sn.e)({value:n.target.value})),a(Object(sn.F)({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 zd=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(sn.F)({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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Hd,{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 Bd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/ransom",component:zd}]};var Yd=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:"status",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_STATUS"),sort:!1}];return Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[a.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Sl.a,{className:"",padding:"none",sortDirection:!1})]})})};const Kd=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var Vd=function(e){const t=Kd(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{takeouts:o,rowsPerPage:d,currentPage:b,totalRows:j}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.takeoutsObj}));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(Object(cn.G)({page:1})).then((()=>{e.setLoading(!1)}))}),[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:""})}),[b]),e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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:j}),i("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{a(Object(cn.G)({page:1})).then((()=>{e.setLoading(!1)}))},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Yd,{}),Object(g.jsx)(Tl.a,{children:o.map((a=>{let n=i("TAKEOUT_DOC"),s=i("TAKEOUT_REQUEST");switch(a.request_type){case Wc.yb:n=i("TAKEOUT_PRINT");break;case Wc.zb:n=i("TAKEOUT_WEBLINK")}switch(a.status){case Wc.rb:s=i("TAKEOUT_APPROVED");break;case Wc.vb:s=i("TAKEOUT_REQUEST_PENDING");break;case Wc.sb:s=i("TAKEOUT_APPROVED_AUTO");break;case Wc.tb:s=i("TAKEOUT_REJECTED");break;case Wc.wb:s=i("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)(Nl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:s})]},a.toid)}))})]})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(j/d),color:"primary",page:b,onChange:(t,n)=>{b!==n&&function(t){e.setLoading(!0),a(Object(cn.H)({page:t+1})).then((()=>e.setLoading(!1)))}(n-1)}})]})})},Xd=a(285);const qd=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 Jd=function(e){const t=qd(),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===Wc.tb?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 Wc.xb:p=c("TAKEOUT_DOC");break;case Wc.yb:p=c("TAKEOUT_PRINT");break;case Wc.zb:p=c("TAKEOUT_WEBLINK")}let h="";switch(e.selectedObj.status){case Wc.rb:h=c("TAKEOUT_APPROVED");break;case Wc.vb:h=c("TAKEOUT_REQUEST_PENDING");break;case Wc.sb:h=c("TAKEOUT_APPROVED_AUTO");break;case Wc.tb:h=c("TAKEOUT_REJECTED");break;case Wc.wb:h=c("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)("div",{className:"",ref:a,children:[Object(g.jsxs)(Dc.a,{className:t.cardInfo,children:[Object(g.jsx)(_r.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(P.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})})}),Object(g.jsxs)(Mc.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)(St.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)(St.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)(St.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)(St.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)(St.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===Wc.ub?Object(g.jsxs)(St.a,{select:!0,className:"",variant:"outlined",value:e.selectedObj.status,name:"status",fullWidth:!0,onChange:t=>(console.log(t.target.value),t.target.value===Wc.tb&&""===b?(n(Object(U.c)({message:c("\ubc18\ub824\uc0ac\uc720\ub97c \uc785\ub825\ud558\uc138\uc694")})),!1):(n(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("TAKEOUT_DOC"),content:t.target.value===Wc.tb?c("\ubc18\ub824\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"):c("\uc2b9\uc778\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?"),fnHandleOK:()=>{Object(cn.a)(e.selectedObj.toid,t.target.value,b).then((t=>{n(Object(U.d)({message:c("\ubc18\uc601\ub418\uc5c8\uc2b5\ub2c8\ub2e4")})),n(Object(cn.G)({page:r})).then((()=>{e.setLoading(!1)}))})).catch((e=>{console.error(e)}))}})})),!0)),children:[Object(g.jsx)(Q.a,{value:Wc.ub,children:c("TAKEOUT_REQUEST")}),Object(g.jsx)(Q.a,{value:Wc.vb,children:c("TAKEOUT_REQUEST")}),Object(g.jsx)(Q.a,{value:Wc.rb,children:c("TAKEOUT_APPROVED")}),Object(g.jsx)(Q.a,{value:Wc.tb,children:c("TAKEOUT_REJECTED")})]}):Object(g.jsx)(St.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)(St.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)(St.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:b,inputProps:{readOnly:!(e.selectedObj.status===Wc.ub)},onChange:e=>j(e.target.value)})})]})]})]}),Object(g.jsx)(Dc.a,{className:t.paperPerm,children:Object(g.jsx)(Mc.a,{className:t.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:c("FILE_NAME")}),Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:t.downloadCell})]})}),Object(g.jsx)(Tl.a,{children:e.selectedObj.requested_files&&e.selectedObj.requested_files.length>0?e.selectedObj.requested_files.map(((a,n)=>{const s=Ba.a.decryptAES(l,a.path,"hex","utf8").replaceAll("[_ORG_].","");return Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Xd.a,{targetName:s,secureDocInfo:!1})}),Object(g.jsx)("span",{children:s})]})}),Object(g.jsx)(Sl.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)(P.a,{onClick:()=>{Object(on.m)(e.selectedObj.toid,a.seq,a.archive_id)},children:Object(g.jsx)(Qt.a,{className:"small",type:"download",fill:"#333d4b"})})})})]})})):Object(g.jsx)(g.Fragment,{})})]})})})]})};var Zd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/takeouts",component:function(){const[e,t]=s.a.useState(!0),[a,n]=s.a.useState({requester_name:"",requester:"",approver_name:"",approver:"",requested_at:"",approved_at:"",request_type:0,status:0,reason_requested:"",reason_rejected:""}),c=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Vd,{loading:e,setLoading:t,selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Jd,{loading:e,setLoading:t,selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const Qd=Object(M.a)((e=>({tr:{"& .sincesec":{width:95},"& .user-id":{width:200},"& .release-icon":{width:50}}})));var $d=function(e){const{t:t}=Object(jt.a)("docbase"),a=Qd(),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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:a.tr,children:n.map((t=>{return Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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)(Dl.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 eb=Object(M.a)((e=>({deleteIcon:{color:"#ff6565"},contentWrapper:{height:"calc(100vh - 300px)",padding:"0 20px"}})));let tb;var ab=function(e){const t=eb(),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:"document_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?tb||(tb=setInterval((()=>{e.fnDoSearch(!1)}),3e3)):(clearInterval(tb),tb=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)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)($d,{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)(Tl.a,{children:h.map(((n,s)=>Object(g.jsxs)(Nl.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:n.scheduled_release?Object(g.jsx)("div",{style:{padding:"12px"},children:Object(g.jsx)(vc.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)(P.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("[".concat(n.user_name,"(").concat(n.user_id,")] ").concat(l("HOLD_FILES_CONF_CONTENT"))),fnHandleOK:()=>{Object(cn.S)(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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(n.user_name,"(").concat(n.user_id,")")}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:"".concat(bt.a.getSecToTime(n.since_secs))}),Object(g.jsx)(Sl.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)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(r.length/d),color:"primary",onChange:(e,t)=>{u(t-1)}})]})})};var nb=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(an.h)()).then((()=>{e(Object(cn.x)({userID:r.userID})).then((()=>{a(!1)}))})):e(Object(cn.x)({userID:r.userID})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{o(!0)}),[r]),Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(ab,{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 sb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/holdFiles",component:nb}]};const cb=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"}}))),lb=(e,t)=>{let a="win64";return 1===e?a="win32":3===e&&(a="mac"),Object(g.jsx)("p",{children:"".concat(t,"(").concat(a,")")})},rb=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)(El.a,{});return b=0===a?Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.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)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.a,{active:"id"===l.id,direction:l.direction,onClick:e=>i(e,"id"),children:t("USER")})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.a,{active:"org"===l.id,direction:l.direction,onClick:e=>i(e,"org"),children:t("ORG_NAME")})}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.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)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Sl.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_INSTALL_AT")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Sl.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_LAST_LOGIN_AT")})]})}),Object(g.jsx)(Tl.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)(Nl.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)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>o(t,e.user_id)})}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_id,"(").concat(e.name,")")}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.orgs}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:0===e.recommend_type?t("LOCK"):t("UNLOCK")}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?lb(e.client_info.client_type,e.client_info.installed_version):""}),Object(g.jsx)(Sl.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)(Sl.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)(Sl.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)(Sl.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)(Vl.a,{className:"full",orgs:d,useExpand:!0,useCheckBox:!0,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.a,{active:"client_info"===l.id,direction:l.direction,onClick:e=>i(e,"client_info"),children:t("CLIENT_INFO_VERSION")})}),Object(g.jsx)(Sl.a,{className:"table_col_short",align:"center",padding:"default",sortDirection:l.direction,children:t("OS")}),Object(g.jsx)(Sl.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Sl.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.a,{active:"install_at"===l.id,direction:l.direction,onClick:e=>i(e,"install_at"),children:t("CLIENT_INFO_INSTALL_AT")})}),Object(g.jsx)(Sl.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Sl.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.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)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:l.direction,children:Object(g.jsx)(Dl.a,{active:"id"===l.id,direction:l.direction,onClick:e=>i(e,"id"),children:t("USER")})})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>o(t,e.user_id),children:[Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.installed_version}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:t}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.mac_address}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:bt.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.ip_address}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:bt.a.getDateStringToLocalDate(e.last_logged_at)}),Object(g.jsx)(Sl.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 ib=function(e){const t=cb(),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,C]=Object(n.useState)({id:"user_id",direction:"asc"}),[y,A]=s.a.useState(""),[L,w]=Object(n.useState)([]),[P,I]=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(an.h)()).then((()=>{}))}),[o,a]),Object(n.useEffect)((()=>(O.length>0&&W(y),()=>{W.cancel()})),[y]),Object(n.useEffect)((()=>{_(O)}),[O]);const W=Object(n.useCallback)(Object(cl.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(cn.B)("",0),a=await Object(cn.I)(""),n=await Object(sn.k)(!0),s=await Object(nn.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)(Y.a,{});function z(e,t){let n="";return e||0!==L.length||0!==P.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",P.length):0===d?l("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",L.length):l("UPDATE_NEW_CLIENT_MESSAGE_7").replace("%d",P.length),a(Object(R.c)({children:Object(g.jsx)(dl.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)(Ic.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)(Ic.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)(Ic.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)(Ic.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)(fr.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)(gr.a,{className:"list-tab",disableRipple:!0,label:l("USER")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:l("ORG_TITLE")}),Object(g.jsx)(gr.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)(rb,{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"),C({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=P.indexOf(t);let n=[];-1===a?n=n.concat(P,t):0===a?n=n.concat(P.slice(1)):a===P.length-1?n=n.concat(P.slice(0,-1)):a>0&&(n=n.concat(P.slice(0,a),P.slice(a+1))),I(n)}(0,t)})})]})})};var ob={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(ib,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const db=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 bb=function(e){const t=db(),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,C]=Object(n.useState)([]),[y,A]=Object(n.useState)(new Set);Object(n.useEffect)((()=>(_.length>0&&L(j,_,N,E,O),()=>{L.cancel()})),[j,_,N,E,O,o]),Object(n.useEffect)((()=>(i(!0),I(),()=>{u("")})),[a]);const L=Object(n.useCallback)(Object(cl.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 C(p.filterFoldersNameByString(a,e));else 0===o?(v(s),i(!1)):C(a)}catch(c){console.error(c)}finally{i(!1)}}),500),[o]);if(r)return Object(g.jsx)(Y.a,{});async function I(){var e;const t=await Object(cn.j)(),a={};t.forEach((e=>{a[e.fid]=e.manage_type}));const n=await Object(nn.g)(),s=D((null===(e=n.orgChildren)||void 0===e?void 0:e.children)||[],a),c=await Object(nn.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(cn.U)(n).then((e=>{e&&(a(Object(U.d)({message:l("TAKEOUT_APPROVE_MESSAGE_1")})),I())}))}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(cn.U)(t).then((e=>{e&&(a(Object(U.d)({message:l("TAKEOUT_APPROVE_MESSAGE_1")})),I())}))}return Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:j,placeholder:l("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:j&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>u(""),edge:"end",children:Object(g.jsx)(xt.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)(Ic.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)(Ic.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)(fr.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)(gr.a,{className:"list-tab",disableRipple:!0,label:l("ORG_TITLE")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:l("SHARED_TITLE")})]})}),0===o?Object(g.jsx)("div",{children:Object(g.jsx)(Vl.a,{className:"",orgs:T,useApproveLock:!0,useExpand:!0,expandedFids:y,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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"left",children:l("FOLDER_NAME")}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:l("LOCK")})]})}),Object(g.jsx)(Tl.a,{children:R.map((t=>(console.log(t),Object(g.jsxs)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:Object(g.jsx)("span",{children:t.name})}),Object(g.jsx)(Sl.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)(P.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 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}},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 ub=function(e){const t=jb(),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([]);function b(t,n){const s=i.map((e=>e.user_id===t?Object(d.a)(Object(d.a)({},e),{},{[n.target.name]:n.target.value}):e));Object(cn.V)(e.selected,s).then((t=>{t&&(a(Object(U.d)({message:c("TAKEOUT_APPROVE_MESSAGE_1")})),Object(cn.n)(e.selected).then((e=>{o(e)})))}))}return s.a.useEffect((()=>{l>=754&&(n.current.style.height="".concat(l-140,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),s.a.useEffect((()=>{e.selected>0&&Object(cn.n)(e.selected).then((e=>{o(e)}))}),[e.selected]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(Dc.a,{className:t.cardInfo,children:Object(g.jsxs)(_r.a,{disableSpacing:!0,children:[Object(g.jsx)(P.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)(Dc.a,{className:t.paperPerm,children:Object(g.jsx)(Mc.a,{className:t.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_DOC")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_PRINT")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_WEBLINK")})]})}),Object(g.jsx)(Tl.a,{children:i.map((e=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(vl.a,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_id,"(").concat(e.user_name,")")})]})}),Object(g.jsx)(Sl.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:Wc.pb,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(Q.a,{className:"justify-center",value:Wc.ob,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:Wc.qb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Sl.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:Wc.ob,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:Wc.qb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Sl.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:Wc.pb,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(Q.a,{className:"justify-center",value:Wc.ob,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(Q.a,{className:"justify-center",value:Wc.qb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})})]})))})]})})})]})};var Ob={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("");return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(bb,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(ub,{selected:t,path:n,fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]},pb=a(538),hb=a(967);const mb=Object(M.a)((e=>({tr:{"& .file_types":{width:105},"& .log_types":{width:50}}})));var _b=function(e){const{t:t}=Object(jt.a)("docbase"),a=mb(),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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Sl.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 fb=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 gb(e){const{t:t}=Object(jt.a)("docbase"),a=fb(),[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)(Pc.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)(Yc.a,{className:a.title,id:"form-dialog-title",children:t("INSTANT_LOGS_TITLE")}),Object(g.jsx)(Kc.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(pb.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)(pb.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)(St.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)(St.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:t=>{e.fnHandleOK(n)},children:t("APPLY")})]})]})})]})})}const Eb=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 xb=function(e){const t=Eb(),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)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(gb,{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)(yt.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)(os.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)(Ic.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)(Ic.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)(pb.a,{row:!0,className:"row",children:Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(hb.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(hb.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(j),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(_b,{}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.log_type}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateTimeString(e.logged_at)}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.message})]},e.id)}))})]})})]}),Object(g.jsx)(Ci.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 Nb={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(cn.q)(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(cn.r)(e).then((e=>{b(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(xb,{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(cn.e)(c.userID,bt.a.getDateString(c.startDate),bt.a.getDateString(c.endDate),c.omitServer)).result&&(j=setInterval((()=>{Object(cn.f)().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 Sb=Object(M.a)((e=>({tr:{"& .log_types":{width:120},"& .ip_addr":{width:162},"& .date_time":{width:195}}})));var Tb=function(e){const{t:t}=Object(jt.a)("docbase"),a=Sb(),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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Sl.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 vb=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 Rb=function(e){const t=vb(),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)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.a,{name:"userID",placeholder:i("ID"),variant:"outlined",fullWidth:!0,className:"search-input",value:e.searchObj.userID,InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:e.searchObj.userID&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>e.fnSetSearchObj("userID",""),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:t=>e.fnSetSearchObj(t.target.name,t.target.value)})})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)(Ic.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(hb.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(hb.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Tb,{}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.logged_at)}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ref}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ip_address})]},e.id)}))})]})}),Object(g.jsx)(Ci.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 Cb={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(cn.p)(e).then((e=>{j(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Rb,{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(cn.o)(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(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/removeClient",{user_id:Ba.a.encryptAES(s,e,"utf8","hex"),mac_address:Ba.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.result):(za.a.printError(e),n(e))})).finally((()=>{}))}))})),Ab=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.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))):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),Lb=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((l,r)=>{za.a.sendPost("/dlpapi/setStorageAccess",{storage_type:e,read:t,write:a,execute:n,token:r}).then((e=>{e.result?s(e.result):(za.a.printError(e),c(e))})).finally((()=>{}))}))})),wb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getPathStorageAccess",{token:n}).then((n=>{n.result?e(n.storages.map((e=>(e.path=Ba.a.decryptAES(a,e.path,"hex","utf8"),e.path_regex=Ba.a.decryptAES(a,e.path_regex,"hex","utf8"),e)))):(za.a.printError(n),t(n))})).finally((()=>{}))}))})),Pb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getPrograms",{token:n}).then((a=>{a.result?e(a.programs):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),Ib=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.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=Ba.a.decryptAES(n,t.name,"hex","utf8"),t.name=t.name_ex.replace("".concat(e,"_"),""),l=Ba.a.decryptAES(n,t.url,"hex","utf8"),r=Ba.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 za.a.printError(s),a(s)})).finally((()=>{}))}))})),Db=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((l,r)=>{za.a.sendPost("/dlpapi/registerWhiteURL",{name:Ba.a.encryptAES(l,"".concat(t,"_").concat(e),"utf8","hex"),group_id:t&&""!==t?t:0,url:Ba.a.encryptAES(l,a,"utf8","hex"),url_regex:Ba.a.encryptAES(l,n,"utf8","hex"),token:r}).then((e=>{e.result?s(e.result):(za.a.printError(e),c(e))})).finally((()=>{}))}))})),Mb=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/removeWhiteURL",{name:Ba.a.encryptAES(s,e,"utf8","hex"),group_id:t&&""!==t?t:0,token:c}).then((e=>{e.result?a(e.result):(za.a.printError(e),n(e))})).finally((()=>{}))}))})),kb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getNetworks",{token:n}).then((a=>{a.result?e(a.networks):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),Gb=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/getDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),Ub=(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(Ya.d)(((T,v)=>{za.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):(za.a.printError(e),S(e))})).finally((()=>{}))}))})),Fb=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e.result):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),Wb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getExecuteControls",{token:n}).then((a=>{a.result?e(a.controls):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),Hb=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/setExecuteControl",{group_id:e,program:t,token:c}).then((e=>{e.result?a(e.control_id):(za.a.printError(e),n(e))})).finally((()=>{}))}))})),zb=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeExecuteControl",{control_id:e,token:s}).then((e=>{e.result?t(e.control_id):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),Bb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getNetworkControls",{token:n}).then((a=>{a.result?e(a.controls):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),Yb=(e,t,a,n,s)=>new Promise(((c,l)=>{Object(Ya.d)(((r,i)=>{za.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):(za.a.printError(e),l(e))})).finally((()=>{}))}))})),Kb=(e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Ya.d)(((i,o)=>{za.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):(za.a.printError(e),r(e))})).finally((()=>{}))}))})),Vb=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeNetworkControl",{control_id:e,token:s}).then((e=>{e.result?t(e.result):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),Xb=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getGrantAccesses",{token:n}).then((a=>{a.result?e(a.grants):(za.a.printError(a),t(a))})).finally((()=>{}))}))})),qb=(e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Ya.d)(((i,o)=>{za.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):(za.a.printError(e),r(e))})).finally((()=>{}))}))})),Jb=(e,t,a,n,s,c,l)=>new Promise(((r,i)=>{Object(Ya.d)(((o,d)=>{za.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):(za.a.printError(e),i(e))})).finally((()=>{}))}))})),Zb=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeGrantAccess",{grant_id:e,token:s}).then((e=>{e.result?t(e.grant_id):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),Qb=(e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,l)=>{za.a.sendPost("/dlpapi/approveReleaseBlocking",{rid:e,approve:t,reason_rejected:a?Ba.a.encryptAES(c,a,"utf8","hex"):"",token:l}).then((e=>{e.result?n(e.result):(za.a.printError(e),s(e))})).finally((()=>{}))}))})),$b=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/stopReleaseBlocking",{rid:e,token:s}).then((e=>{e.result?t(e.result):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),ej=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/inquiryPrintLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Ba.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Ba.a.decryptAES(n,e.user_name,"hex","utf8"),e.job_name=Ba.a.decryptAES(n,e.job_name,"hex","utf8"),e.printer_uri=Ba.a.decryptAES(n,e.printer_uri,"hex","utf8"),e.job_state_message=Ba.a.decryptAES(n,e.job_state_message,"hex","utf8"),e.job_state_reasons=Ba.a.decryptAES(n,e.job_state_reasons,"hex","utf8"),e.control_info=Ba.a.decryptAES(n,e.control_info,"hex","utf8"),e.exec_path=e.exec_path?Ba.a.decryptAES(n,e.exec_path,"hex","utf8"):"-",e.signing_id=e.signing_id?Ba.a.decryptAES(n,e.signing_id,"hex","utf8"):"-",e)))):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),tj=(e,t,a,n,s,c,l,r,i)=>new Promise(((o,d)=>{Object(Ya.d)(((b,j)=>{za.a.sendPost("/dlpapi/inquiryClientAccessLogs",{user_id:e&&""!==e?Ba.a.encryptAES(b,e,"utf8","hex"):"",user_name:a&&""!==a?Ba.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}):(za.a.printError(e),d(e))})).finally((()=>{}))}))})),aj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/inquiryClientAccessLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Ba.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Ba.a.decryptAES(n,e.user_name,"hex","utf8"),e.args=e.args.map((e=>Ba.a.decryptAES(n,e,"hex","utf8"))),e.path=Ba.a.decryptAES(n,e.path,"hex","utf8"),e.source_path=Ba.a.decryptAES(n,e.source_path,"hex","utf8"),e.dest_path=Ba.a.decryptAES(n,e.dest_path,"hex","utf8"),e.signing_id=Ba.a.decryptAES(n,e.signing_id,"hex","utf8"),e.hash=Ba.a.decryptAES(n,e.hash,"hex","utf8"),e.parent_signing_id=Ba.a.decryptAES(n,e.parent_signing_id,"hex","utf8"),e.parent_hash=Ba.a.decryptAES(n,e.parent_hash,"hex","utf8"),e.parent_args=e.parent_args.map((e=>Ba.a.decryptAES(n,e,"hex","utf8"))),e.local_endpoint=Ba.a.decryptAES(n,e.local_endpoint,"hex","utf8"),e.remote_endpoint=Ba.a.decryptAES(n,e.remote_endpoint,"hex","utf8"),e.url=Ba.a.decryptAES(n,e.url,"hex","utf8"),e.files=e.files.map((e=>Ba.a.decryptAES(n,e,"hex","utf8"))),e.log=Ba.a.decryptAES(n,e.log,"hex","utf8"),e)))):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),nj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getUserGroups",{token:n}).then((n=>{n.result?e(n.groups.map((e=>(e.name=Ba.a.decryptAES(a,e.name,"hex","utf8"),e.desc=Ba.a.decryptAES(a,e.desc,"hex","utf8"),e)))):(za.a.printError(n),t(n))})).finally((()=>{}))}))})),sj=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/registerUserGroup",{name:Ba.a.encryptAES(s,e,"utf8","hex"),desc:Ba.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e):(za.a.printError(e),n(e))})).finally((()=>{}))}))})),cj=(e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,l)=>{za.a.sendPost("/dlpapi/updateUserGroup",{group_id:e,name:Ba.a.encryptAES(c,t,"utf8","hex"),desc:Ba.a.encryptAES(c,a,"utf8","hex"),token:l}).then((e=>{e.result?n(e):(za.a.printError(e),s(e))})).finally((()=>{}))}))})),lj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.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 za.a.printError(e),a(e)})).finally((()=>{}))}))})),rj=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/registerUserGroupMember",{group_id:e,user_id:Ba.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.result):(za.a.printError(e),n(e))})).finally((()=>{}))}))})),ij=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{za.a.sendPost("/dlpapi/getNonLoggingApps",{token:n}).then((n=>{n.result?e(n.signing_ids.map((e=>(e.signing_id=Ba.a.decryptAES(a,e.signing_id,"hex","utf8"),e.desc=Ba.a.decryptAES(a,e.description,"hex","utf8"),e.regex=""!==e.regex?Ba.a.decryptAES(a,e.regex,"hex","utf8"):"",e.word=""!==e.word?Ba.a.decryptAES(a,e.word,"hex","utf8"):"",e)))):(za.a.printError(n),t(n))})).finally((()=>{}))}))})),oj=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((l,r)=>{za.a.sendPost("/dlpapi/registerNonLoggingApp",{signing_id:Ba.a.encryptAES(l,e,"utf8","hex"),desc:Ba.a.encryptAES(l,t,"utf8","hex"),word:""!==a?Ba.a.encryptAES(l,a,"utf8","hex"):"",regex:""!==n?Ba.a.encryptAES(l,n,"utf8","hex"):"",token:r}).then((e=>{e.result?s(e.result):(za.a.printError(e),c(e))})).finally((()=>{}))}))})),dj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/unregisterNonLoggingApp",{id:e,token:s}).then((e=>{e.result?t(e.result):(za.a.printError(e),a(e))})).finally((()=>{}))}))})),bj=Object(ne.d)({name:"dlp",initialState:{holdFiles:[]},reducers:{testReducers:(e,t)=>{e.auditLogObj.rowsPerPage=t.payload.value}},extraReducers:{}}),{testReducers:jj}=bj.actions;bj.reducer;const uj=["children","classes","onClose"],Oj=Object(Yl.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(Gs.a)(e,uj);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),pj=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 hj(e){const t=pj(),{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)(Oj,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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 mj=["children","classes","onClose"],_j=Object(Yl.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(Gs.a)(e,mj);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),fj=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 gj(e){const t=fj(),{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)(_j,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc124\uce58 \ubaa9\ub85d")}),Object(g.jsx)(Kc.a,{children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:t.table,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy table_col_date",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_LOGGED_AT")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:a("TYPE")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_PATH")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_SIGNING_ID")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_HASH")})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Sl.a,{className:"type",align:"center",component:"td",scope:"row",children:e.install?a("INSTALL"):a("DELETE")}),Object(g.jsx)(Sl.a,{className:"path left",align:"left",component:"td",scope:"row",children:t}),Object(g.jsx)(Sl.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.signing_id})}),Object(g.jsx)(Sl.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.hash})})]})}))})]})})]})})}var Ej=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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.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)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:j.length>0&&j.lengtho(),onClick:e=>o()})}):Object(g.jsx)(Sl.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)(Dl.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)(Tl.a,{children:a.map((e=>{const a="".concat(e.client_id,"#").concat(e.user_id)in c;return Object(g.jsx)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,children:t.map((t=>"check_id"===t.id?Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.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)(Sl.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)(Sl.a,{className:"left",component:"td",scope:"row",children:e.shared_pc?"Y":"N"}):"orgs"===t.id?Object(g.jsx)(Sl.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)(Ml,{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 xj=[{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:"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}],Nj=[{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}],Sj=[{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}],Tj=[{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}],vj=Object(M.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{position:"relative",height:"calc(100vh - 300px)",borderRadius:6},icon:{width:20,height:20}})));var Rj=function(){const e=vj(),t=Object(m.b)(),a=s.a.useRef(),{t:c}=Object(jt.a)("docbase"),[l,r]=s.a.useState(window.innerHeight),{users:i,usersObj:o}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.account})),[b,j]=Object(n.useState)(!0),[u,O]=Object(n.useState)({id:"user_id",direction:"asc"}),[p,h]=Object(n.useState)(xj),[_,f]=Object(n.useState)(void 0),[E,x]=Object(n.useState)(void 0),[N,S]=Object(n.useState)(0),[T,v]=Object(n.useState)({}),[C,y]=Object(n.useState)(!1),[A,L]=Object(n.useState)([]),[w,I]=Object(n.useState)([]),[D,M]=Object(n.useState)({client:0,connected:0,loginPC:0,defaultPC:0}),[k,F]=Object(n.useState)(0),[W,H]=Object(n.useState)(0),[z,K]=Object(n.useState)(20),[V,X]=Object(n.useState)(0),[q,J]=Object(n.useState)(""),[Z,$]=Object(n.useState)(0),[ee,ae]=Object(n.useState)({}),[ne,se]=Object(n.useState)(""),[ce,le]=s.a.useState({open:!1,logObj:{}}),[re,ie]=Object(n.useState)(!1),[oe,de]=Object(n.useState)(!1),[be,je]=s.a.useState({open:!1,list:[]}),[ue,Oe]=s.a.useState([]);c("NAME"),c("ID"),c("ORG_NAME"),Object(n.useEffect)((()=>{a.current&&(a.current.style.height="".concat(l-538,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>{i.length>0?he(""):(v(bt.a.getLocalStorage("user_col")),t(Object(an.h)()))}),[t,o]),Object(n.useEffect)((()=>{J("")}),[Z]),Object(n.useEffect)((()=>{_&&pe(q),ae({})}),[q,k,W,u]),Object(n.useEffect)((()=>{L(w.slice(z*V,z*(V+1)))}),[V,z,w]);const pe=Object(n.useCallback)(Object(cl.debounce)((e=>{he(e)}),500),[i,Z,k,W,u]);Object(n.useEffect)((()=>{if(0===N){const e=[...xj];Object.keys(T).forEach((t=>{e.push(T[t])})),h(e)}else if(1===N)h(Nj);else if(2===N)h(Sj);else if(3===N)h(Tj);else if(1===N||4===N){const e=xj.filter((e=>e.default));Object.keys(T).forEach((t=>{e.push(T[t])})),h(e)}}),[N,T]);const he=async e=>{j(!0);const t=await(a="",new Promise(((e,t)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/clientsInfo",{user_id:a&&""!==a?Ba.a.encryptAES(n,a,"utf8","hex"):"",token:s}).then((a=>{if(a.result){const t={};for(const e of a.clients)t[Ba.a.decryptAES(n,e.user_id,"hex","utf8")]=e.clients.map((e=>{const t=Object(d.a)({},e);return t.mac_address=Ba.a.decryptAES(n,e.mac_address,"hex","utf8"),t}));e(t)}else za.a.printError(a),t(a)})).finally((()=>{}))}))})));var a;let n={};_?n=Object(d.a)({},_):(n=await Object(sn.k)(!0),f(Object(d.a)({},n)));let s={};if(E)s=Object(d.a)({},E);else{const e=await nj();for(const t of e){const e=await lj(t.id);for(const a of e.users)s[a.user_id]=t.name}x(s)}const l=Object.keys(n);let r=0,o=0,b=0,O=0;const p=[];i.forEach((a=>{const i=t[a.user_id];if(i&&i.length>0)i.forEach((t=>{const i=Object(d.a)(Object(d.a)({},a),t);i.client_info=c("INSTALL"),i.policy_name=s[i.user_id]||"",i.logged_in=i.logged_in?c("LOGIN"):"-",i.connected=t.connected?c("CONNECTED"):c("NOT_CONNECTED"),t.connected?(i.health_module_secure=1===i.health_module_secure?c("CLIENT_RUNNING_TYPE_START"):c("CLIENT_RUNNING_TYPE_STOP"),i.health_module_eps=1===i.health_module_eps?c("ACTIVE"):c("INACTIVE"),i.health_module_network=1===i.health_module_network?c("ACTIVE"):c("INACTIVE"),i.health_module_chrome=i.health_module_chrome<0?c("NOT_INSTALLED"):1===i.health_module_chrome?c("ACTIVE"):c("INACTIVE")):(i.health_module_secure="-",i.health_module_eps="-",i.health_module_network="-",i.health_module_chrome="-"),i.last_logged_in_at=bt.a.getDateStringToLocalDate(i.last_logged_in_at),i.last_logged_off_at=bt.a.getDateStringToLocalDate(i.last_logged_off_at),r++,t.connected&&o++,t.shared_pc?b++:O++;const j=[];let u="";l.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===i.user_id&&(u+="".concat(bt.a.splitLastDelimiterString(e.disp_path)," | "),j.push(e))}))})),i.orgs=j,""!==e&&-1===i.name.indexOf(e)&&-1===i.user_id.indexOf(e)&&-1===u.indexOf(e)||2!==k&&(3!==k||t.connected)&&(4!==k||t.connected)&&(5!==k||t.shared_pc)&&(6===k&&t.shared_pc||p.push(i))}));else{if(1===k)return;if(W>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 r="";if(l.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===t.user_id&&(r+="".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;p.push(t)}}));const h=[...p].sort(((e,t)=>{const{id:a,direction:n}=u,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:sle({open:!1,logObj:{}})}),Object(g.jsx)(gj,{open:be.open,list:be.list,fnHandleClose:()=>je({open:!1,list:[]})}),Object(g.jsx)(yl,{open:oe,isDlp:!0,fnHandleClose:()=>{de(!1)}}),Object(g.jsx)(wl,{open:re,currentUserID:ne,isDlp:!0,fnChangeSize:(e,t,a)=>{},fnHandleClose:e=>{se(""),ie(!1)}}),Object(g.jsx)(zl,{open:C,pickedCol:T,fnSelectedCol:e=>{const t=Object(d.a)({},T);e.id in t?delete t[e.id]:t[e.id]=e,v(t)},fnHandleClose:()=>y(!1),fnSetColumn:()=>{bt.a.setLocalStorage("user_col",T),y(!1)}}),Object(g.jsx)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:q,placeholder:c("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:q&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>J(""),edge:"end",children:Object(g.jsx)(xt.a,{})})})},onChange:e=>J(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:k,onChange:e=>F(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(D.client,")")}),Object(g.jsx)(Q.a,{value:2,children:"".concat(c("NOT_INSTALLED"),"(").concat(i.length-D.client,")")}),Object(g.jsx)(Q.a,{value:3,children:"".concat(c("ONLINE"),"(").concat(D.connected,")")}),Object(g.jsx)(Q.a,{value:4,children:"".concat(c("OFFLINE"),"(").concat(i.length-D.connected,")")}),Object(g.jsx)(Q.a,{value:5,children:"".concat(c("LOGIN_PC"),"(").concat(D.loginPC,")")}),Object(g.jsx)(Q.a,{value:6,children:"".concat(c("DEFAULT_PC"),"(").concat(D.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)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{j(!0),(async()=>{const e=Date.now(),t=[];p.forEach((e=>{"check_id"!==e.id&&t.push(c(e.labelKey))}));const a=[];for(const s of w){const e={};for(const t of p)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 ol.excelDownload("".concat(n),t,a,null,e),j(!1)})()},children:Object(g.jsx)(Qt.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:z,size:"small",variant:"outlined",className:"dropdown",onChange:e=>K(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:w.length}),c("CNT"),")"]}),me>0?Object(g.jsxs)("span",{children:["(",c("SELECTED")," ",Object(g.jsx)("span",{className:"count",children:me}),c("CNT"),")"]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)("div",{className:"btnGroup",children:[Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{y(!0)},children:c("USER_DEFINED")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_CLIENT_DELETE_TITLE"),content:c("DLP_CLIENT_DELETE_CONTENT"),fnHandleOK:async()=>{let e=!1;for(const t of Object.keys(ee))if(""!==ee[t].macAddress){await yb(ee[t].userID,ee[t].macAddress)||(e=!0)}t(e?Object(U.c)({message:c("DLP_CLIENT_DELETE_FAIL")}):Object(U.d)({message:c("DLP_CLIENT_DELETE_SUCCESS")})),he(q)}})}))},children:c("DLP_CLIENT_DELETE_TITLE")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_CLIENT_TITLE_2"),content:c("DLP_CLIENT_MESSAGE_7"),fnHandleOK:()=>{new Promise(((e,t)=>{za.a.sendPost("/dlpapi/updateClient",{}).then((a=>{a.result?e(a.result):(za.a.printError(a),t(a))})).finally((()=>{}))}))}})}))},children:c("FORCED_UPDATE")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:()=>{de(!0)},children:c("NEW_REGISTRATION")})]})]})]})}),Object(g.jsx)(yt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:b?Object(g.jsx)(Nt.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Y.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(B.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Ej,{customCols:p,data:A,order:u,handleRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";u.id===t&&"desc"===u.direction&&(n="asc"),O({direction:n,id:a})}(0,t),selectedMap:ee,popUserModify:e=>(e=>{ne!==e&&(se(e),ie(!0))})(e),selectUser:(e,t,a)=>{const n=Object(d.a)({},ee);"".concat(e,"#").concat(t)in n?delete n["".concat(e,"#").concat(t)]:n["".concat(e,"#").concat(t)]={clientID:e,userID:t,macAddress:a},ae(n)},selectAll:()=>{if(Object.keys(ee).length>0)ae({});else{const e={};w.forEach((t=>{e["".concat(t.client_id,"#").concat(t.user_id)]={clientID:t.client_id,userID:t.user_id,macAddress:t.mac_address}})),ae(e)}},handleChang:(e,t)=>{}})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(w.length/z),color:"primary",onChange:(e,t)=>{X(t-1)}})]})})]})};var Cj={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_client",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Rj,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const yj=["children","classes","onClose"],Aj=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Lj=Object(Yl.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(Gs.a)(e,yj);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),wj=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 Pj(e){const t=Object(m.b)(),a=wj(),{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:Aj,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Lj,{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)(Kc.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)(St.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)(St.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)(St.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)(St.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)(St.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.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)(dl.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 Ij=["children","classes","onClose"],Dj=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Mj=Object(Yl.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(Gs.a)(e,Ij);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),kj=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 Gj(e){const t=Object(m.b)(),a=kj(),{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:Dj,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Mj,{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)(Kc.a,{className:Object(G.a)(a.body,"modal-body"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Vc.a,{className:"text-1",id:"alert-dialog-slide-description",children:n("\ub4f1\ub85d\ubc29\ubc95.")}),Object(g.jsx)(Vc.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)(St.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)(St.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)(Vc.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)(St.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)(Vc.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)(St.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)(St.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.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)(dl.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 Uj=["children","classes","onClose"],Fj=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Wj=Object(Yl.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(Gs.a)(e,Uj);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(xt.a,{})}):null]}))})),Hj=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 zj(e){const t=Object(m.b)(),a=Hj(),{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:Fj,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Wj,{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)(Kc.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)(St.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)(St.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)(St.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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.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)(dl.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 Bj=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 Yj=function(e){const t=Bj(),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,C]=Object(n.useState)({id:"user_id",direction:"asc"}),[y,A]=s.a.useState(""),[L,w]=Object(n.useState)({});async function I(){const e=await Ab();E(e);const t=await wb(),a=await Pb(),n=await kb();N({storages:t,programs:a,networks:n}),_(!1)}function D(){Ab().then((e=>{E(e)}))}function M(e,t){const a=t;let n="desc";v.id===t&&"desc"===v.direction&&(n="asc"),C({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(an.h)()).then((()=>{I()})):I()}),[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,y]),h?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Pj,{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(Ya.d)(((r,i)=>{za.a.sendPost("/dlpapi/addPathStorageAccess",{path:e&&""!==e?Ba.a.encryptAES(r,e,"utf8","hex"):"",path_regex:t&&""!==t?Ba.a.encryptAES(r,t,"utf8","hex"):"",read:a,write:n,execute:s,token:i}).then((e=>{e.result?c(e.result):(za.a.printError(e),l(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(U.d)({message:l("PATH_STORAGE_MESSAGE_3")})),wb().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(Ya.d)(((i,o)=>{za.a.sendPost("/dlpapi/updatePathStorageAccess",{storage_id:e,path:t&&""!==t?Ba.a.encryptAES(i,t,"utf8","hex"):"",path_regex:a&&""!==a?Ba.a.encryptAES(i,a,"utf8","hex"):"",read:n,write:s,execute:c,token:o}).then((e=>{e.result?l(e.result):(za.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")})),wb().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)(Gj,{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(Ya.d)(((r,i)=>{za.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):(za.a.printError(e),l(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_3")})),Pb().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(Ya.d)(((i,o)=>{za.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):(za.a.printError(e),r(e))})).finally((()=>{}))}))})))(e,t,n,s,c,r).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_5")})),Pb().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)(zj,{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(Ya.d)(((c,l)=>{za.a.sendPost("/dlpapi/registerNetwork",{name:e,inbound_ports:t,outbound_destinations:a,token:l}).then((e=>{e.result?n(e.result):(za.a.printError(e),s(e))})).finally((()=>{}))}))})))(e,t,n).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_3")})),kb().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(Ya.d)(((l,r)=>{za.a.sendPost("/dlpapi/updateNetwork",{network_id:e,name:t,inbound_ports:a,outbound_destinations:n,token:r}).then((e=>{e.result?s(e.result):(za.a.printError(e),c(e))})).finally((()=>{}))}))})))(e,t,n,s).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_5")})),Pb().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)(yt.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)(St.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)(St.a,{select:!0,className:"",label:"",value:e.write,fullWidth:!0,onChange:t=>{Lb(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)(St.a,{select:!0,className:"",label:"",value:e.execute,fullWidth:!0,onChange:t=>{Lb(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)(os.a,{placeholder:l("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:y,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)(Ic.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)(Ic.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)(Ic.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)(fr.a,{value:b,onChange:(e,t)=>{u(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:l("PATH_STORAGE")}),Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:l("PROGRAM")}),Object(g.jsx)(gr.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)(El.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Dl.a,{active:"path"===v.id,direction:v.direction,onClick:e=>M(0,"path"),children:l("PATH")})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Dl.a,{active:"path_regex"===v.id,direction:v.direction,onClick:e=>M(0,"path_regex"),children:l("PATH_REG")})}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("AVERAGE_READ")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("AVERAGE_WRITE")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("CLIENT_RUNNING_TYPE_START")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.path}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.path_regex}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.read?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.write?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:e.execute?l("PERMIT"):l("BLOCK")}),Object(g.jsx)(Sl.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)(P.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.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(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removePathStorageAccess",{storage_id:t,token:s}).then((t=>{t.result?e(t.result):(za.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("PATH_STORAGE_MESSAGE_1")})),wb().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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.storage_id)}))})]});break;case 1:e=Object(g.jsxs)(El.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Dl.a,{active:"name"===v.id,direction:v.direction,onClick:e=>M(0,"name"),children:l("DLP_PROGRAM_MANAGE_NAME")})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:l("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_PROGRAM_HASH")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Dl.a,{active:"program_name"===v.id,direction:v.direction,onClick:e=>M(0,"program_name"),children:l("DLP_PROGRAM_NAME")})}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_PROCESS_TYPE")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.signing_id}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",align:"",children:e.hash}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",align:"",children:e.program_name}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",align:"",children:n}),Object(g.jsx)(Sl.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)(P.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.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(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/removeProgram",{program_id:t,force_remove:n,token:c}).then((t=>{t.result?e(t.result):(za.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("PROGRAM_MESSAGE_1")})),Pb().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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]});break;case 2:e=Object(g.jsxs)(El.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:Object.keys(L).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:Object(g.jsx)(Dl.a,{active:"name"===v.id,direction:v.direction,onClick:e=>M(0,"name"),children:l("DLP_NETWORK_MANAGE_NAME")})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",padding:"default",sortDirection:v.direction,children:l("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction,children:l("DLP_NETWORK_OUTBOUND_DESTINATION")}),Object(g.jsx)(Sl.a,{className:"",align:"center",padding:"default",sortDirection:v.direction})]})}),Object(g.jsx)(Tl.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)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>w(t?{}:e),children:[Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>w(t?{}:e)})}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:e.inbound_ports}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",align:"",children:e.outbound_destinations}),Object(g.jsx)(Sl.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)(P.a,{onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("NETWORK_TITLE_1"),content:l("NETWORK_CONTENT_1"),fnHandleOK:()=>{var t;(t=e.id,new Promise(((e,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeNetwork",{network_id:t,token:s}).then((t=>{t.result?e(t.result):(za.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(U.d)({message:l("NETWORK_MESSAGE_1")})),kb().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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]})}return e}()})]})]})};var Kj={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_policy_setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Yj,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Vj=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 Xj=function(e){Vj(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)(xl.a,{children:Object(g.jsx)(Nl.a,{children:a.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const qj=["children","classes","onClose"],Jj=Object(Yl.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(Gs.a)(e,qj);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),Zj=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 Qj(e){const t=Zj(),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)(Jj,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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)(St.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)(Ic.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)(dl.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:()=>{Qb(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)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.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:()=>{Qb(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)(Ic.a,{color:"primary",variant:"contained",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(R.c)({children:Object(g.jsx)(dl.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:()=>{$b(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 $j=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-228,"px"),padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10}})));var eu=function(e){const t=$j(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,u]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[O,p]=s.a.useState({open:!1,requestObj:{}}),[h,_]=s.a.useState({userID:"",status:0,startDate:bt.a.getLastWeek(),endDate:new Date}),[f,E]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-228,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>(b(!0),x(j.rows_per_page),()=>{_({userID:"",status:0,startDate:bt.a.getLastWeek(),endDate:new Date})})),[a]),o)return Object(g.jsx)(Y.a,{});async function x(e,t){b(!0);const a=await((e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((l,r)=>{za.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}):(za.a.printError(e),c(e))})).finally((()=>{}))}))})))(bt.a.getDateString(h.startDate),bt.a.getDateString(h.endDate),h.status,e),n=t||1;a.rows>0?await async function(e){const t=await(e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/inquiryReleaseBlockingsPage",{page:e,token:s}).then((e=>{e.result?t(e.requests.map((e=>(e.inbound_ports=Ba.a.decryptAES(n,e.inbound_ports,"hex","utf8"),e.outbound_destinations=Ba.a.decryptAES(n,e.outbound_destinations,"hex","utf8"),e.program_signing_id=Ba.a.decryptAES(n,e.program_signing_id,"hex","utf8"),e.program_hash=Ba.a.decryptAES(n,e.program_hash,"hex","utf8"),e.program_ref_path=Ba.a.decryptAES(n,e.program_ref_path,"hex","utf8"),e.urls=Ba.a.decryptAES(n,e.urls,"hex","utf8"),e.requester=Ba.a.decryptAES(n,e.requester,"hex","utf8"),e.requester_name=Ba.a.decryptAES(n,e.requester_name,"hex","utf8"),e.reason_request=Ba.a.decryptAES(n,e.reason_request,"hex","utf8"),e.approver=Ba.a.decryptAES(n,e.approver,"hex","utf8"),e.approver_name=Ba.a.decryptAES(n,e.approver_name,"hex","utf8"),e.reason_rejected=Ba.a.decryptAES(n,e.reason_rejected,"hex","utf8"),e)))):(za.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);E(t)}(n):E([]),u(Object(d.a)(Object(d.a)({},j),{},{total_rows:a.rows,total_pages:a.pages,rows_per_page:e,current_page:n})),b(!1)}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Qj,{open:O.open,requestObj:O.requestObj,fnReset:()=>{x(j.rows_per_page,j.current_page),p({open:!1,requestObj:{}})},fnHandleClose:()=>p({open:!1,requestObj:{}})}),Object(g.jsxs)(yt.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.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:f.length}),l("CNT")]})]}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(os.a,{placeholder:l("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:h.userID,inputProps:{"aria-label":"Search"},onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{userID:e.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(os.a,{placeholder:l("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:h.clientID,inputProps:{"aria-label":"Search"},onChange:e=>_(Object(d.a)(Object(d.a)({},h),{},{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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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:h.startDate,onChange:e=>{isNaN(e.getTime())||h.startDate.getTime()!==e.getTime()&&_(Object(d.a)(Object(d.a)({},h),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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:h.endDate,onChange:e=>{isNaN(e.getTime())||h.endDate.getTime()!==e.getTime()&&_(Object(d.a)(Object(d.a)({},h),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{children:Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(j.rows_per_page)},children:l("SEARCH")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Xj,{}),Object(g.jsx)(Tl.a,{children:f.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)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:s}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.set_expire_at?"":a.duration}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:1!==a.status?bt.a.getDateStringToLocalDate(a.expire_at):""}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:a.reason_request}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.approved_at)}),Object(g.jsx)(Sl.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)(P.a,{onClick:e=>{p({open:!0,requestObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]})]})};var tu={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(eu,{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 au=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)(xl.a,{children:Object(g.jsx)(Nl.a,{children:a.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const nu=["children","classes","onClose"],su=Object(Yl.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(Gs.a)(e,nu);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),cu=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 lu(e){const t=cu(),{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)(su,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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)(Ic.a,{className:"default",variant:"contained",type:"button",onClick:t=>(n(Object(R.c)({children:Object(g.jsx)(dl.a,{title:a("DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_TITLE"),content:a("DLP_CLIENT_LOG_PRINT_FILE_DOWNLOAD_CONTENT"),fnHandleOK:()=>{Object(Ya.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 ru=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:"".concat(window.innerHeight-328,"px"),padding:"0 20px"},icon:{width:20,height:20},btn01:{marginRight:10}})));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),[o,b]=Object(n.useState)(!0),[j,u]=s.a.useState({open:!1,logObj:{}}),[O,p]=s.a.useState({userID:"",clientID:"",userName:"",startDate:bt.a.getLastWeek(),endDate:new Date}),[h,_]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[f,E]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-328,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>(b(!0),x(h.rows_per_page),()=>{p({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),o)return Object(g.jsx)(Y.a,{});async function x(e){b(!0);const t=await((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Ya.d)(((i,o)=>{za.a.sendPost("/dlpapi/inquiryPrintLogs",{user_id:e&&""!==e?Ba.a.encryptAES(i,e,"utf8","hex"):"",user_name:a&&""!==a?Ba.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}):(za.a.printError(e),r(e))})).finally((()=>{}))}))})))(O.userID,O.clientID,O.userName,bt.a.getDateString(O.startDate),bt.a.getDateString(O.endDate),e);t.rows>0?await N(1):E([]),_(Object(d.a)(Object(d.a)({},h),{},{total_rows:t.rows,total_pages:t.pages,rows_per_page:e,current_page:1})),b(!1)}async function N(e){const t=await ej(e);E(t),_(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(lu,{open:j.open,logObj:j.logObj,fnHandleClose:()=>u({open:!1,logObj:{}})}),Object(g.jsxs)(yt.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:h.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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userID,inputProps:{"aria-label":"Search"},onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(h.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.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<=h.total_pages;a++)(await ej(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)})}));ol.excelDownload("".concat(l("\ud504\ub9b0\ud2b8\ub85c\uadf8")).concat(bt.a.getDateString(O.startDate),"-").concat(bt.a.getDateString(O.endDate)),e,t,[{wpx:80},{wpx:80},{wpx:80},{wpx:150},{wpx:80},{wpx:80},{wpx:80},{wpx:80}])}()},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(au,{}),Object(g.jsx)(Tl.a,{children:f.map((a=>Object(g.jsxs)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.registered_at)}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.doc_format}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.job_name}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.copies}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_created_at)}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_processing_at)}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.job_completed_at)}),Object(g.jsx)(Sl.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)(P.a,{onClick:e=>{u({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)))})]})})]}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:h.total_rows,rowsPerPage:h.rows_per_page,rowsPerPageOptions:[100,250,500],page:h.current_page,labelRowsPerPage:l("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":l("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":l("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{N(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{_(Object(d.a)(Object(d.a)({},h),{},{rows_per_page:Number(e.target.value),current_page:0})),c.current.scrollTop=0}})]})};var ou={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(iu,{selected:t,fnSetSelectedFid:e=>a(e),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:"300px",maxWidth:"300px"},"& .identifier":{minWidth:"250px",width:"250px",maxWidth:"250px"}}})));var bu=function(e){const t=du(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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.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(Yl.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(Gs.a)(e,ju);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.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%)"}},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 pu(e){const t=Ou(),{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)(uu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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 hu=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:"".concat(window.innerHeight-388,"px"),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"}}}))),mu=[{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"}],_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 fu=!0;var gu=function(e){const t=hu(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,u]=s.a.useState({open:!1,logObj:{}}),[O,p]=s.a.useState({userID:"",clientID:"",userName:"",orderAscending:!1,startDate:bt.a.getLastWeek(),endDate:new Date}),[h,_]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[f,E]=Object(n.useState)([]),[x,N]=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}),[S,T]=s.a.useState(!0);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-388,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>(fu=!1,b(!0),v(h.rows_per_page),()=>{fu=!0,p({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),o)return Object(g.jsx)(Y.a,{});async function v(e){b(!0);let t="";Object.keys(x).forEach(((e,a)=>{x[e]&&(t+=""===t?e:", ".concat(e))}));const a=await tj(O.userID,O.clientID,O.userName,1,bt.a.getDateString(O.startDate),bt.a.getDateString(O.endDate),O.orderAscending,t,e);a.rows>0?await R(1):E([]),_(Object(d.a)(Object(d.a)({},h),{},{total_rows:a.rows,total_pages:a.pages,rows_per_page:e,current_page:1})),b(!1)}async function R(e){const t=await aj(e);E(t),_(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}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,logObj:j.logObj,fnHandleClose:()=>u({open:!1,logObj:{}})}),Object(g.jsxs)(yt.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:h.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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userID,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(St.a,{variant:"outlined",select:!0,className:"",label:"",value:O.orderAscending,fullWidth:!0,size:"small",onChange:e=>{p(Object(d.a)(Object(d.a)({},O),{},{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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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: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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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: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",{className:"content",style:{padding:"0 30px 0 10px"},children:Object(g.jsxs)(pb.a,{row:!0,children:[Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.a,{checked:S,onChange:e=>{const t={};S?Object.keys(x).forEach((e=>{t[e]=!1})):Object.keys(x).forEach((e=>{t[e]=!0})),N(t),T(!S)},name:"allCheck"}),label:l("CHECK_ALL")}),mu.map((e=>Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.a,{checked:x[e.type],onChange:t=>{const a=Object(d.a)({},x);a[e.type]=!a[e.type],N(a)},name:"at_".concat(e.cons)}),label:l(e.cons)})))]})})]}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Ic.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{v(h.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.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<=h.total_pages;n++)(await aj(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]),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");ol.excelDownload("".concat(a).concat(bt.a.getDateString(O.startDate),"-").concat(bt.a.getDateString(O.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)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(bu,{}),Object(g.jsx)(Tl.a,{children:f.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)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:s}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Sl.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)(P.a,{onClick:e=>{u({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:h.total_rows,rowsPerPage:h.rows_per_page,rowsPerPageOptions:[100,250,500],page:h.current_page,labelRowsPerPage:l("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":l("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":l("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{R(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{v(Number(e.target.value)),c.current.scrollTop=0}})]})};var Eu={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(gu,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const xu=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 Nu=function(e){const t=xu(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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.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 Su=["children","classes","onClose"],Tu=Object(Yl.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(Gs.a)(e,Su);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.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},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 Ru(e){const t=vu(),{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)(Tu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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 Cu=["children","classes","onClose"],yu=Object(Yl.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(Gs.a)(e,Cu);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),Au=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 Lu(e){const t=Au(),{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 ij(),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)(Kc.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)(St.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)(St.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)(St.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)(St.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)(Ic.a,{variant:"contained",color:"secondary",className:"first-btn",type:"button",onClick:e=>{oj(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)(Ic.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)(Nl.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)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.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)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.signing_id}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.desc}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.word}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.regex})]},e.idx)))})]})})})]})]})})}const wu=Object(M.a)((e=>({})));function Pu(e){let{type:t,cons:a,icon:n,types:c,setTypes:l}=e;wu();const{t:r}=Object(jt.a)("docbase"),i=s.a.useRef(null);return Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.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)(P.a,{style:{padding:0},onClick:e=>{e.stopPropagation(),i.current&&i.current.click()},children:Object(g.jsx)(Qt.a,{className:"large",type:n,fill:"#333d4b"})})})})}const Iu=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:"".concat(window.innerHeight-393,"px"),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 Du=[{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 Mu={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 ku=0;var Gu=function(e){const t=Iu(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,u]=s.a.useState({open:!1,logObj:{},nonLogging:!1}),[O,p]=s.a.useState({userID:"",clientID:"",userName:"",logGroup:2,isMonitoring:!1,isBlocking:!0,orderAscending:!1,startDate:bt.a.getLastWeek(),endDate:new Date}),[h,_]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[f,E]=Object(n.useState)([]),[x,N]=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}),[S,T]=s.a.useState(!0);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-393,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{if("/clientStorageLog"===window.location.pathname)ku=1,Du=[{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 ku=0,Du=[{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 b(!0),v(h.rows_per_page),()=>{p({userID:"",clientID:"",logGroup:2,isMonitoring:!1,isBlocking:!0,startDate:new Date,endDate:new Date})}}),[a]),o)return Object(g.jsx)(Y.a,{});async function v(e){b(!0);let t="",a="";Object.keys(x).forEach(((e,a)=>{x[e]&&(t+=""===t?e:", ".concat(e))})),a=O.isMonitoring?"1, 3":"1",O.isBlocking&&(a+=", 2");const n=await tj(O.userID,O.clientID,O.userName,a,bt.a.getDateString(O.startDate),bt.a.getDateString(O.endDate),O.orderAscending,t,e);n.rows>0?await R(1):E([]),_(Object(d.a)(Object(d.a)({},h),{},{total_rows:n.rows,total_pages:n.pages,rows_per_page:e,current_page:1})),b(!1)}async function R(e){const t=await aj(e);E(t),_(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Ru,{open:j.open,logObj:j.logObj,fnHandleClose:()=>u(Object(d.a)(Object(d.a)({},j),{},{open:!1,logObj:{}}))}),Object(g.jsx)(Lu,{open:j.nonLogging,fnHandleClose:()=>u(Object(d.a)(Object(d.a)({},j),{},{nonLogging:!1}))}),Object(g.jsxs)(yt.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:h.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)(Pc.a,{checked:O.isMonitoring,onChange:e=>{p(Object(d.a)(Object(d.a)({},O),{},{isMonitoring:!O.isMonitoring}))},name:"isMonitoring"}),label:l("DLP_CLIENT_MONITORING_LOG")}),Object(g.jsx)(J.a,{control:Object(g.jsx)(Pc.a,{checked:O.isBlocking,onChange:e=>{p(Object(d.a)(Object(d.a)({},O),{},{isBlocking:!O.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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userID,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(os.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},O),{},{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)(St.a,{variant:"outlined",select:!0,className:"",label:"",value:O.orderAscending,fullWidth:!0,onChange:e=>{p(Object(d.a)(Object(d.a)({},O),{},{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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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: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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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: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",{className:"content",children:Object(g.jsxs)(pb.a,{row:!0,children:[Object(g.jsx)(J.a,{className:Object(G.a)(t.text12),control:Object(g.jsx)(Pc.a,{checked:S,onChange:e=>{const t={};S?Object.keys(x).forEach((e=>{t[e]=!1})):Object.keys(x).forEach((e=>{t[e]=!0})),N(t),T(!S)},name:"allCheck"}),label:l("\uc804\uccb4\uc120\ud0dd")}),Du.map((e=>Object(g.jsx)(Pu,{type:e.type,cons:e.cons,icon:e.icon,types:x,setTypes:e=>{N(e)}})))]})})]}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Ic.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{v(h.rows_per_page)},children:l("SEARCH")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.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<=h.total_pages;n++)(await aj(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(Mu[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===ku&&(a="\ub9e4\uccb4 \ub85c\uadf8"),ol.excelDownload("".concat(a).concat(bt.a.getDateString(O.startDate),"-").concat(bt.a.getDateString(O.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)(Qt.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Ic.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{u(Object(d.a)(Object(d.a)({},j),{},{nonLogging:!0}))},style:{width:80},children:l("\uc81c\uc678 \uc571")})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Nu,{pageType:ku}),Object(g.jsx)(Tl.a,{children:f.map((a=>{let n=Object(g.jsx)(Je.a,{title:l(Mu[a.log_type].title),placement:"bottom",arrow:!0,children:Object(g.jsx)(P.a,{onClick:e=>{},style:{padding:0},children:Object(g.jsx)(Qt.a,{className:"big",type:Mu[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)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:110},children:"".concat(s)}),Object(g.jsx)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:70},children:n}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:r}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:c}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Sl.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)(P.a,{onClick:e=>{u({open:!0,logObj:a})},children:Object(g.jsx)(w.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:h.total_rows,rowsPerPage:h.rows_per_page,rowsPerPageOptions:[100,250,500],page:h.current_page,labelRowsPerPage:l("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":l("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":l("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{R(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{v(Number(e.target.value)),c.current.scrollTop=0}})]})};var Uu=function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1),[n,c]=s.a.useState("");return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Gu,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};var Fu={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientStorageLog",component:Uu},{path:"/dlpMonitoringLogs",component:Uu}]};const Wu=Object(M.a)((e=>({tr:{"& .col-name":{minWidth:210},"& .col-desc":{minWidth:350}}})));var Hu=function(e){const t=Wu(e),{t:a}=Object(jt.a)("docbase");return Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.tr,children:[Object(g.jsx)(Sl.a,{className:"left col-name",children:a("POLICY_NAME")}),Object(g.jsx)(Sl.a,{className:"left col-desc",children:a("EXPLANATION")}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:a("DELETE")})]})})};const zu=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 Bu(e){const t=zu(),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 sj(t.name,t.desc);s.result?1===e.type?(await async function(t){const a=await Gb(e.selectedID),n=[],s=[],c=[],l=[],r=[],i=await Ib();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 Xb()).forEach((t=>{t.group_id===e.selectedID&&c.push(t)}));(await Wb()).forEach((t=>{t.group_id===e.selectedID&&l.push(t)}));(await Bb()).forEach((t=>{t.group_id===e.selectedID&&r.push(t)})),await Ub(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)(Kc.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)(_l.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)(_l.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)(Ic.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n(0===e.type?"ADD":"COPY")})]})]})})})]})})}const Yu=["children","value","index"],Ku=["children","classes","onClose"];function Vu(e){const{children:t,value:a,index:n}=e,s=Object(Gs.a)(e,Yu);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)(Nt.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function Xu(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const qu=Object(Yl.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(Gs.a)(e,Ku);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),Ju=s.a.forwardRef((function(e,t){return Object(g.jsx)(Ce.a,Object(d.a)({direction:"up",ref:t},e))})),Zu=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}}}))),Qu=[0,1,2,3,4,5,6,7,8,9,10,11,12],$u=[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],eO=[0,1,2,3,4,5,6,7,8,9,10,11,12],tO=[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 aO(e){const t=Object(m.b)(),a=Zu(),{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,C]=s.a.useState({name:"",url:"",urlRegex:""}),[y,A]=s.a.useState({execute:[],network:[]}),[L,w]=s.a.useState([]),[I,D]=s.a.useState([]),[M,k]=s.a.useState([]),[F,W]=s.a.useState([]),[H,z]=s.a.useState([]),[B,Y]=s.a.useState(""),[K,V]=s.a.useState(""),[X,q]=s.a.useState(0);s.a.useEffect((()=>{e.open&&async function(){const t=await Pb(),a=await kb(),n=await wb(),s=await Wb(),c=await Bb();A({execute:ee(s),network:ee(c)});const l=await Xb();w(ee(l));const i=await Ib(e.groupID);i.uploadURL&&D(i.uploadURL);i.blockURL&&k(i.blockURL);$();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:""}),C({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((()=>{J(I,""),Y("")}),[I]),s.a.useEffect((()=>{Z(M,""),V("")}),[M]);const J=Object(n.useCallback)(Object(cl.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),[]),Z=Object(n.useCallback)(Object(cl.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 $(){Gb(e.groupID).then((e=>{r(Object(d.a)(Object(d.a)({},e),{},{isGroup:!0}))})).catch((e=>{console.log(e),6===e.error&&Gb(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 ee(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 te(e,a,n,s,l,r){t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_1"),fnHandleOK:()=>{Kb(e,a,n,s,l,r).then((()=>{Bb().then((e=>{A(Object(d.a)(Object(d.a)({},y),{},{network:ee(e)}))}))}))}})}))}function ae(e,a,n,s,l,r,i){t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_1"),fnHandleOK:()=>{Jb(e,a,n,s,l,r,i).then((()=>{Xb().then((e=>{w(ee(e))}))}))}})}))}function ne(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)}return s.a.useEffect((()=>{}),[]),Object(g.jsx)("div",{children:Object(g.jsxs)(v.a,{className:a.root,open:e.open,TransitionComponent:Ju,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)(qu,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("DLP_POLICY_GROUP_SETTING")}),Object(g.jsx)(Kc.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)(fr.a,{value:X,indicatorColor:"",onChange:(e,t)=>{X!==t&&q(t)},children:[Object(g.jsx)(gr.a,Object(d.a)({label:c("DEFAULT_POLICY")},Xu(0))),Object(g.jsx)(gr.a,Object(d.a)({label:c("DLP_POLICY_GROUP_RELEASE")},Xu(1))),Object(g.jsx)(gr.a,Object(d.a)({label:c("DLP_EXECUTE_PROGRAM")},Xu(2))),Object(g.jsx)(gr.a,Object(d.a)({label:c("DLP_ALLOW_RELEASE_NETWORK")},Xu(3))),Object(g.jsx)(gr.a,Object(d.a)({label:c("DLP_POLICY_GROUP_GRANT")},Xu(4))),Object(g.jsx)(gr.a,Object(d.a)({label:c("DLP_POLICY_WHITE_URL_MANAGEMENT")},Xu(5))),Object(g.jsx)(gr.a,Object(d.a)({label:c("\uc811\uc18d\ucc28\ub2e8 URL \uad00\ub9ac")},Xu(5)))]})}),Object(g.jsxs)(Vu,{className:a.tabPanel,value:X,index:0,children:[Object(g.jsx)("div",{className:"header-title",children:c("DEFAULT_POLICY")}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_PAIRING")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_FILE")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MESSENGER")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_AIRDROP")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_INSTALL")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MOUNT")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PRINTING")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_TAKEOUT_APPROVING")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(Tl.a,{children:Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:[Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_1"),fnHandleOK:()=>{Ub(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((()=>{$()}))}})}))},children:c("MODIFY")}),l.isGroup?Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_2"),fnHandleOK:()=>{Fb(e.groupID).then((()=>{$()}))}})}))},children:c("RESET")}):Object(g.jsx)(g.Fragment,{})]})]})})]})]}),Object(g.jsxs)(Vu,{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)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_STORAGE")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_EXECUTE")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_UPLOAD_URL")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_BLUETOOTH")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_MESSENGER")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_AIRDROP")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_PRINTING")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(Tl.a,{children:Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_RELEASE_TITLE"),content:c("DLP_POLICY_GROUP_RELEASE_CONTENT_1"),fnHandleOK:()=>{Ub(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((()=>{$()}))}})}))},children:c("MODIFY")})})]})})]}),Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_RELEASE_DURATION")}),Object(g.jsx)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:Object(g.jsx)(Tl.a,{children:Object(g.jsx)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:Object(g.jsxs)(Sl.a,{className:a.max_release_duration,align:"center",component:"td",scope:"row",children:[Object(g.jsx)(St.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:Qu.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("MONTH")}),Object(g.jsx)(St.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:$u.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("DAY")}),Object(g.jsx)(St.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:eO.map((e=>Object(g.jsx)(Q.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("HOUR")}),Object(g.jsx)(St.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:tO.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)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_RELEASE_DURATION_TITLE"),content:c("DLP_POLICY_RELEASE_DURATION_CONTENT_1"),fnHandleOK:()=>{Ub(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((()=>{$()}))}})}))},children:c("\uc218\uc815")})]})})})})]}),Object(g.jsxs)(Vu,{className:a.tabPanel,value:X,index:2,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_HASH")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROCESS_TYPE")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Tl.a,{children:[y.execute.map((e=>{const a=i.object[e.program];return a?Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.signing_id}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.hash}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.program_name}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.process_type}),Object(g.jsx)(Sl.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)(P.a,{onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_DELETE_CONTENT"),fnHandleOK:()=>{zb(e.id).then((()=>{Wb().then((e=>{A(Object(d.a)(Object(d.a)({},y),{},{execute:ee(e)}))}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]}):Object(g.jsx)(g.Fragment,{})})),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",colSpan:5,children:Object(g.jsx)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_CONTENT"),fnHandleOK:()=>{Hb(e.groupID,p).then((()=>{Wb().then((e=>{A(Object(d.a)(Object(d.a)({},y),{},{execute:ee(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Vu,{className:a.tabPanel,value:X,index:3,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_MANAGE_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Tl.a,{children:[y.network.map((a=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{te(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.network_name,fullWidth:!0,onChange:t=>{te(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.a,{className:"",label:"",value:a.inboundPortsEx,fullWidth:!0,onChange:e=>{A(Object(d.a)(Object(d.a)({},y),{},{network:y.network.map((t=>(t.id===a.id&&(t.inboundPortsEx=e.target.value),t)))}))},onBlur:()=>{te(a.id,e.groupID,a.program,a.network_name,a.inboundPortsEx,a.outbound_destinations)}})}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.a,{className:"",label:"",value:a.outboundDestinationsEx,fullWidth:!0,onChange:e=>{A(Object(d.a)(Object(d.a)({},y),{},{network:y.network.map((t=>(t.id===a.id&&(t.outboundDestinationsEx=e.target.value),t)))}))},onBlur:()=>{te(a.id,e.groupID,a.program,a.network_name,a.inbound_ports,a.outboundDestinationsEx)}})}),Object(g.jsx)(Sl.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)(P.a,{onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_2"),fnHandleOK:()=>{Vb(a.id).then((()=>{Bb().then((e=>{A(Object(d.a)(Object(d.a)({},y),{},{network:ee(e)}))}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_3"),fnHandleOK:()=>{Yb(e.groupID,_.program,_.network_name,_.inbound_ports,_.outbound_destinations).then((()=>{Bb().then((e=>{A(Object(d.a)(Object(d.a)({},y),{},{network:ee(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Vu,{className:a.tabPanel,value:X,index:4,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_GROUP_GRANT")}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("STORAGE_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_READ")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_WRITE")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_EXECUTE")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Tl.a,{children:[L.map((a=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{ae(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.storage,fullWidth:!0,onChange:t=>{ae(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.readable,fullWidth:!0,onChange:t=>{ae(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.writable,fullWidth:!0,onChange:t=>{ae(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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.a,{select:!0,className:"",label:"",value:a.executable,fullWidth:!0,onChange:t=>{ae(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)(Sl.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)(P.a,{onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_2"),fnHandleOK:()=>{Zb(a.id).then((()=>{Xb().then((e=>{w(ee(e))}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_3"),fnHandleOK:()=>{qb(e.groupID,E.program,E.storage,E.readable,E.writable,E.executable).then((()=>{Xb().then((e=>{w(ee(e))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Vu,{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)(St.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:B,onChange:e=>{Y(e.target.value),J(I,e.target.value)}})]}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Tl.a,{children:[F.map((a=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{Mb(a.name_ex,e.groupID).then((()=>{Ib(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL)}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.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)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.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)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.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):(Db(N.name,e.groupID,N.url,N.urlRegex.replaceAll("*","(.+)?")).then((()=>{S({name:"",url:"",urlRegex:""}),Ib(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Vu,{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)(St.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:K,onChange:e=>{V(e.target.value),Z(M,e.target.value)}})]}),Object(g.jsxs)(El.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Sl.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Sl.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Tl.a,{children:[H.map((a=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{Mb(a.name_ex,e.groupID).then((()=>{Ib(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))}))}})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.a,{className:"",label:"",value:T.name,fullWidth:!0,onChange:e=>{C(Object(d.a)(Object(d.a)({},T),{},{name:e.target.value}))}})}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.a,{className:"",label:"",value:T.url,fullWidth:!0,onChange:e=>{C(Object(d.a)(Object(d.a)({},T),{},{url:e.target.value}))}})}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(St.a,{className:"",label:"",value:T.urlRegex,placeholder:c("DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER"),fullWidth:!0,onChange:e=>{C(Object(d.a)(Object(d.a)({},T),{},{urlRegex:e.target.value}))}})}),Object(g.jsx)(Sl.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(R.c)({children:Object(g.jsx)(dl.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):(Db(T.name,e.groupID,ne(1,T.url),ne(1,T.urlRegex).replaceAll("*","(.+)?")).then((()=>{C({name:"",url:"",urlRegex:""}),Ib(e.groupID).then((e=>{e.uploadURL&&D(e.uploadURL),e.blockURL&&k(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]})]})})]})})}const nO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},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 sO=function(e){const t=nO(),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]),Object(n.useEffect)((()=>(j(!0),e.fnGetGroups(),()=>{})),[a]),b?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Bu,{open:u.open,type:u.type,selectedID:e.selectedID,fnHandleClose:()=>{O({open:!1,type:0})},fnHandleOK:()=>{e.fnGetGroups()}}),Object(g.jsx)(aO,{open:e.DLPPolicy.open,groupID:e.DLPPolicy.selectedID,fnHandleClose:()=>e.fnCloseDLPPolicy()}),Object(g.jsxs)(yt.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)(os.a,{placeholder:l("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:o,inputProps:{"aria-label":"Search"},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)(Ic.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:t=>{e.fnOpenDLPPolicy()},children:l("DEFAULT_POLICY_SETTING")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:e=>{O({open:!0,type:0})},children:l("NEW_REGISTRATION")}),Object(g.jsx)(Ic.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)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Hu,{}),Object(g.jsx)(Tl.a,{children:p.map((t=>Object(g.jsxs)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.name}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.desc}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(l("DELETE_CONTENT_USER")),fnHandleOK:()=>e.fnRemoveGroups(t.id)})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t.id)))})]})})]})]})};const cO=["children","classes","onClose"],lO=Object(Yl.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(Gs.a)(e,cO);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),rO=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 iO=!1;function oO(e){const t=rO(),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(l),[O,p]=s.a.useState({}),[h,_]=s.a.useState({}),[f,E]=s.a.useState(!1),[x,N]=s.a.useState(0),[S,T]=s.a.useState({direction:"asc"}),[R,C]=s.a.useState(10),[y,A]=s.a.useState(0);function L(){const e=[];Object.keys(r).forEach((t=>{e.push(Number(t))})),p(r)}s.a.useEffect((()=>{e.open?(a(Object(nn.f)()).then((()=>{a(Object(an.h)())})),w("")):(u([]),b(""),_({}),L())}),[e.open]),s.a.useEffect((()=>{b(""),w(""),E(!1)}),[x,l]),s.a.useEffect((()=>{L()}),[r]),s.a.useEffect((()=>(w(o),()=>{w.cancel()})),[o]);const w=Object(n.useCallback)(Object(cl.debounce)((t=>{const a=[],n={};0===x?t.length>0?(i.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),p({0:{children:a}})):L():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)})),_(n),u(a)}),100));function P(e){E(!1),_(Object(d.a)(Object(d.a)({},h),{},{[e]:!h[e]}))}function I(){const e={};if(j.forEach((t=>{e[t.id]=!f})),E(!f),_(e),0===x){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=!f,t}));e[a]={children:t}}t.push(Number(a))})),p(e)}}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)(lO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(ul.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(St.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)(Ic.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>I(),children:c("CHECK_ALL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!iO){iO=!0;const t=Object.keys(h);if(0===x){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{N(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(gr.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(gr.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===x?Object(g.jsx)("div",{children:Object(g.jsx)(Vl.a,{className:"full",useCheckBox:!0,useExpand:!0,orgs:O,checks:h,setChecks:_,fnOnClickHandler:(e,t)=>{}})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(El.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{className:"cell-check",align:"center",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:!f&&Object.values(h).filter((e=>e)).length>0,checked:f,onChange:e=>I()})}),Object(g.jsx)(Sl.a,{className:"left",align:"left",children:c("USER")})]})}),Object(g.jsx)(Tl.a,{children:j.slice(y*R,y*R+R).map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>P(e.id),children:[Object(g.jsx)(Sl.a,{className:"cell-check",align:"center",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:h[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{P(e.id)}})}),Object(g.jsx)(Sl.a,{className:"left cell-name",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(vl.a,{type:"person",className:"small"}),Object(g.jsx)("span",{children:"".concat(e.name,"(").concat(e.id,")")})]})})]},e.id)))})]}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:j.length,rowsPerPage:R,rowsPerPageOptions:[10,25,50],page:y,labelRowsPerPage:c("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":c("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":c("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{A(t)},onChangeRowsPerPage:e=>{C(Number(e.target.value)),A(0)}})]})})})]})})]})})}const dO=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","&.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 bO=function(e){const t=dO(),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(!1),[d,b]=s.a.useState([]),[j,u]=s.a.useState({}),[O,p]=s.a.useState(""),[h,_]=s.a.useState("");function f(t){a(Object(sn.S)({show:!0})),((e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{za.a.sendPost("/dlpapi/removeUserGroupMember",{group_id:e,user_id:Ba.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.users):(za.a.printError(e),n(e))})).finally((()=>{}))}))})))(e.selectedID,t).then((t=>{lj(e.selectedID).then((e=>{b(e.users),u(e.usersObj),a(Object(sn.S)({show:!1}))}))}))}return s.a.useEffect((()=>{l>=754&&(n.current.style.height="".concat(l-140,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[l]),s.a.useEffect((()=>{e.selectedID>0?lj(e.selectedID).then((e=>{b(e.users),u(e.usersObj)})):b([])}),[e.selectedID]),s.a.useEffect((()=>{p(e.selectedObj.name),_(e.selectedObj.desc)}),[e.selectedObj]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(oO,{open:i,permsObj:j,fnHandleClose:()=>o(!1),fnSetPerm:t=>{!function(t){a(Object(sn.S)({show:!0})),(async()=>{let n=!0;for(let a=0;a{b(e.users),u(e.usersObj)})),o(!1),a(Object(sn.S)({show:!1}))})()}(t)}}),Object(g.jsxs)(Dc.a,{className:t.cardInfo,children:[Object(g.jsxs)(_r.a,{disableSpacing:!0,children:[Object(g.jsx)(P.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)(Mc.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)(St.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&&cj(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)(St.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&&cj(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)(_r.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)(Ic.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)(Dc.a,{className:t.paperPerm,children:[Object(g.jsx)(Mc.a,{className:t.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Ic.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")})):o(!0)},children:c("\uc0ac\uc6a9\uc790 \ucd94\uac00")})})}),Object(g.jsx)(Mc.a,{className:t.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:c("\uc0ad\uc81c")})]})}),Object(g.jsx)(Tl.a,{children:d&&d.length>0?d.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(vl.a,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_name,"(").concat(e.user_id,")")})]})}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{"aria-label":"releasePerm",onClick:t=>f(e.user_id),children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var jO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_groups",component:function(){const e=s.a.useRef(null),[t,a]=s.a.useState(0),[n,c]=s.a.useState([]),[l,r]=s.a.useState({name:"",desc:"",id:0}),[i,o]=s.a.useState({open:!1,selectedID:0});s.a.useEffect((()=>{0===t?r({name:"",desc:"",id:0}):n.forEach((e=>{e.id===t&&r(e)})),o(Object(d.a)(Object(d.a)({},i),{},{selectedID:t}))}),[t,n]);const b=()=>{nj().then((e=>{c(e)}))},j=e=>{var t;(t=e,new Promise(((e,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/removeUserGroup",{group_id:t,token:s}).then((t=>{t.result?e(t.result):(za.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{nj().then((e=>{c(e)}))}))};return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(sO,{selectedID:t,groups:n,DLPPolicy:i,fnSetSelectedID:e=>a(e),fnGetGroups:()=>b(),fnRemoveGroups:e=>j(e),fnOpenDLPPolicy:()=>{o({open:!0,selectedID:0})},fnCloseDLPPolicy:()=>{o(Object(d.a)(Object(d.a)({},i),{},{open:!1}))},fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(bO,{selectedID:t,selectedObj:l,fnGetGroups:()=>b(),fnOpenDLPPolicy:()=>{o({open:!0,selectedID:t})},fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const uO=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 OO=function(e){const t=uO(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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const pO=["children","classes","onClose"],hO=Object(Yl.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(Gs.a)(e,pO);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),mO=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 _O(e){const t=mO(),{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)(Tc.a,{className:t.backdrop,open:!1,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(hO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Kc.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 fO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-298,"px"),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=fO(),a=Object(m.b)(),c=s.a.useRef(),{t:l}=Object(jt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,u]=s.a.useState({open:!1,logObj:{}}),[O,p]=s.a.useState({userID:"",clientID:"",startDate:bt.a.getLastWeek(),endDate:new Date}),[h,_]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[f,E]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-298,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>(b(!0),x(h.rows_per_page),()=>{p({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),Object(n.useEffect)((()=>{console.log(h.current_page)}),[h]),o)return Object(g.jsx)(Y.a,{});async function x(e){const t=await((e,t,a,n,s,c)=>new Promise(((l,r)=>{Object(Ya.d)(((i,o)=>{za.a.sendPost("/dlpapi/inquiryClientAlertLogs",{user_id:e&&""!==e?Ba.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}):(za.a.printError(e),r(e))})).finally((()=>{}))}))})))(O.userID,O.clientID,2,bt.a.getDateString(O.startDate),bt.a.getDateString(O.endDate),e);t.rows>0?await N(1):E([]),_(Object(d.a)(Object(d.a)({},h),{},{total_rows:t.rows,total_pages:t.pages,rows_per_page:e,current_page:1})),b(!1)}async function N(e){const t=await(e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{za.a.sendPost("/dlpapi/inquiryClientAlertLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=Ba.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=Ba.a.decryptAES(n,e.user_name,"hex","utf8"),e)))):(za.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);E(t),_(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(_O,{open:j.open,logObj:j.logObj,fnHandleClose:()=>u({open:!1,logObj:{}})}),Object(g.jsxs)(yt.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:h.total_rows}),l("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(os.a,{placeholder:l("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.userID,inputProps:{"aria-label":"Search"},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)(os.a,{placeholder:l("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:O.clientID,inputProps:{"aria-label":"Search"},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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(h.rows_per_page)},children:l("SEARCH")})})]})]}),Object(g.jsx)(B.a,{className:Object(G.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(OO,{}),Object(g.jsx)(Tl.a,{children:f.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)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:bt.a.getDateStringToLocalDate(a.happend_at)}),Object(g.jsx)(Sl.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)(Sl.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.alert_info})]},a.fid)}))})]})})]}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:h.total_rows,rowsPerPage:h.rows_per_page,rowsPerPageOptions:[100,250,500],page:h.current_page,labelRowsPerPage:l("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":l("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":l("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{N(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{x(Number(e.target.value)),c.current.scrollTop=0}})]})};var EO={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(gO,{selected:t,fnSetSelectedFid:e=>a(e)}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var xO=function(e){const{t:t}=Object(jt.a)("docbase"),a=[{id:"requester",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REQUESTER"),sort:!1},{id:"requested_at",align:"center",className:"table_col_date",disablePadding:!1,label:t("TAKEOUT_REQ_AT"),sort:!1},{id:"status",align:"center",className:"",disablePadding:!1,label:t("TAKEOUT_STATUS"),sort:!1},{id:"request_type",align:"left",className:"left",disablePadding:!1,label:t("TAKEOUT_REASON_REQ"),sort:!1},{id:"status",align:"center",className:"table_col_date",disablePadding:!1,label:t("EXPIRE_DATE"),sort:!1}];return Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[a.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Sl.a,{className:"",padding:"none",sortDirection:!1})]})})};const NO=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var SO=function(e){const t=NO(),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([]),[b,j]=s.a.useState(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()}),[a]);const u=async()=>{const t=await Object(an.j)(),a=await Object(an.a)();a.result&&(d(a.requests.map((e=>{let n="";switch(e.status){case 0:n=i("TAKEOUT_REQUEST");break;case 1:n=i("TAKEOUT_APPROVED");break;case 2:n=i("TAKEOUT_REJECTED")}return e.user_id=Ba.a.decryptAES(a.aes,e.user_id,"hex","utf8"),e.offline_map_path=Ba.a.decryptAES(a.aes,e.offline_map_path,"hex","utf8"),e.reason=Ba.a.decryptAES(a.aes,e.reason,"hex","utf8"),e.statusTxt=n,e.userName=t[e.user_id].name,e}))),j(a.requests.length),e.setLoading(!1))};return e.loading?Object(g.jsx)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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}),i("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{u()},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xO,{}),Object(g.jsx)(Tl.a,{children:o.map((a=>{let n=i("TAKEOUT_REQUEST");switch(a.status){case 0:n=i("TAKEOUT_REQUEST");break;case 1:n=i("TAKEOUT_APPROVED")}return Object(g.jsxs)(Nl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.userName,"(").concat(a.user_id,")")}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.a,{className:"left",component:"td",scope:"row",children:a.reason}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(a.expire_at)})]},a.offline_drive_id)}))})]})})]})})};const TO=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 vO=function(e){const t=TO(),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,d]=s.a.useState(window.innerHeight);s.a.useEffect((()=>{o>=754&&(a.current.style.height="".concat(o-140,"px")),window.addEventListener("resize",(()=>d(window.innerHeight)))}),[o]),s.a.useEffect((()=>{}),[]);let b="";switch(e.selectedObj.request_type){case Wc.xb:b=l("TAKEOUT_DOC");break;case Wc.yb:b=l("TAKEOUT_PRINT");break;case Wc.zb:b=l("TAKEOUT_WEBLINK")}const j=async(e,t,a)=>{if(2===t&&""===a)return n(Object(U.c)({message:l("ENTER_REASON")})),!1;return(await Object(an.c)(e,t,a)).result&&n(Object(U.d)({message:l(1===t?"APPROVED":"REJECTED")})),!0};return Object(g.jsx)("div",{className:"",ref:a,children:Object(g.jsxs)(Dc.a,{className:t.cardInfo,children:[Object(g.jsx)(_r.a,{className:Object(G.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(P.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(w.a,{children:"arrow_back"})})}),Object(g.jsxs)(Mc.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)(St.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)(St.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)(St.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)(St.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)(St.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)(St.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:r,onChange:e=>i(e.target.value)})})]})]}),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)(_r.a,{className:Object(G.a)(t.buttonGroup,"block"),children: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)(Ic.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)(dl.a,{title:l("OFFLINE_DRIVE"),content:l("OFFLINE_DRIVE_CONFIRM_1"),fnHandleOK:()=>{j(e.selectedObj.offline_drive_id,2,r)}})}))},children:l("TAKEOUT_REJECTED")}),Object(g.jsx)(Ic.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)(dl.a,{title:l("OFFLINE_DRIVE"),content:l("OFFLINE_DRIVE_CONFIRM_2"),fnHandleOK:()=>{j(e.selectedObj.offline_drive_id,1,"")}})}))},children:l("TAKEOUT_APPROVED")})]})})}):Object(g.jsx)(g.Fragment,{})]})})};var RO={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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(SO,{loading:e,setLoading:e=>t(e),selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(vO,{loading:e,setLoading:t,selectedObj:a,fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const CO=Object(M.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:220}}})));var yO=function(e){const{t:t}=Object(jt.a)("docbase"),a=CO(),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("TAKEOUT_REQ_AT"),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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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 AO=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 LO=function(e){const t=AO(),a=Object(m.b)(),c=s.a.useRef(),[l,r]=s.a.useState(window.innerHeight),{t:i}=Object(jt.a)("docbase"),{takeouts:o,rowsPerPage:d,currentPage:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.system.offlineTakeoutsObj}));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)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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:o.length}),i("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:i("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:i("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[i("PATH"),i("USER"),i("TAKEOUT_REQ_AT")],a=[];o.forEach((e=>{a.push({path:e.path,user:"".concat(e.user_name,"(").concat(e.user_id,")"),copied_at:bt.a.getDateStringToLocalDate(e.copied_at)})})),ol.excelDownload("".concat(i("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)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(yO,{searchObj:e.searchObj,rowCount:o.length,fnSearch:t=>{e.searchObj.operator!==t&&e.fnSetSearchObj(t)}}),Object(g.jsx)(Tl.a,{children:o.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.user_name,"(").concat(e.user_id,")")}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.copied_at)})]},e.id)))})]})}),Object(g.jsx)(Ci.a,{className:"flex-shrink-0",component:"div",count:o.length,rowsPerPage:d,rowsPerPageOptions:[100,250,500],page:b-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,a)=>{e.fnHandleChangePage(t,a),c.current.scrollTop=0},onChangeRowsPerPage:t=>{e.fnHandleChangeRowsPerPage(t),c.current.scrollTop=0}})]})})};var wO={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(cn.K)({page:1,day:0,userID:i.operator})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{b()}),[i]),Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(LO,{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(cn.L)({page:s+1})).then((()=>a(!1)));var s},fnHandleChangeRowsPerPage:t=>{return n=t,a(!0),e(Object(cn.c)({value:n.target.value})),void e(Object(cn.K)({page:1,day:0,userID:i.operator})).then((()=>a(!1)));var n}}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const PO=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 IO(e){const t=PO(),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)(Tc.a,{className:t.backdrop,open:i,children:Object(g.jsx)(vc.a,{color:"inherit"})}),Object(g.jsx)(Yc.a,{className:t.title,id:"form-dialog-title",children:c("POLICY_GROUP_TITLE")}),Object(g.jsx)(ml.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(sn.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)(Kc.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)(_l.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)(_l.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)(Nt.a,{className:"ip-range",children:[Object(g.jsx)(St.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)(Ic.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)(Ic.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:c("REGISTER")})]})]})})})]})})}const DO=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 MO=function(e){const t=DO(),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)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(IO,{open:u.open,fnHandleClose:()=>{O({open:!1})},fnHandleOK:()=>{e.fnGetGroups()}}),Object(g.jsxs)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:o,placeholder:l("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:o&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>d(""),edge:"end",children:Object(g.jsx)(xt.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)(Ic.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.tr,children:[Object(g.jsx)(Sl.a,{className:"left col-name",children:l("\uadf8\ub985\uba85")}),Object(g.jsx)(Sl.a,{className:"left col-desc",children:l("\uc124\uba85")}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:l("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:p.map((t=>Object(g.jsxs)(Nl.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)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.name}),Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.desc}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(dl.a,{title:l("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(l("DELETE_CONTENT_USER")),fnHandleOK:()=>e.fnRemoveGroups(t.id)})}))},children:Object(g.jsx)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t.id)))})]})})]})]})};const kO=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 GO=function(e){var t;const a=kO(),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)(oO,{open:d,permsObj:j,fnHandleClose:()=>b(!1),fnSetPerm:t=>{!function(t){n(Object(sn.S)({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)(Mc.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)(Dc.a,{className:a.paperPerm,children:[Object(g.jsx)(Mc.a,{className:a.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Ic.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)(Mc.a,{className:a.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:l("USER")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:l("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:e.selectedObj.users?e.selectedObj.users.split(",").map(((t,a)=>{var s,c;return Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(vl.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)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:l("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{"aria-label":"releasePerm",onClick:a=>function(t){n(Object(sn.S)({show:!0})),Object(sn.L)(e.selectedID,t).then((t=>{e.fnGetGroups(),n(Object(sn.S)({show:!1}))}))}(t),children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]})})):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var UO=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(an.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(sn.n)().then((e=>{r(e)}))};return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(MO,{selectedID:n,groups:l,fnSetSelectedID:e=>c(e),fnGetGroups:()=>d(),fnRemoveGroups:e=>(e=>{Object(sn.I)(e).then((e=>{Object(sn.n)().then((e=>{r(e)}))}))})(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(GO,{selectedID:n,selectedObj:i,fnGetGroups:()=>d(),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};var FO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/ip_groups",component:UO}]};const WO=Object(M.a)((e=>({tr:{"& .delete":{width:100},"& .approve":{width:100},"& .process_type":{width:140}}})));var HO=function(e){const t=WO(),{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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Sl.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const zO=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 BO(e){const{t:t}=Object(jt.a)("docbase"),a=zO(),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)(Yc.a,{className:a.title,id:"form-dialog-title",children:t("MANDATORY_APP_REGISTER")}),Object(g.jsx)(Kc.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)(St.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)(St.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)(St.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)(St.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_2"),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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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 YO=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"}}))),KO=s.a.memo((e=>{let{dispatch:t,t:a,selectedObj:n,data:s,handleRowClick:c,deleteConfirm:l}=e;return Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(HO,{}),Object(g.jsx)(Tl.a,{children:s.map((e=>Object(g.jsxs)(Nl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.mandatory_app_id}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.windows_program_name}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.macos_program_name}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.description}),Object(g.jsx)(Sl.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)(P.a,{onClick:n=>{t(Object(R.c)({children:Object(g.jsx)(dl.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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.mandatory_app_id)))})]})}));var VO=function(e){const t=YO(),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)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(BO,{open:o,fnHandleClose:()=>{d(!1)},fnHandleChange:async(t,n,s,c)=>{(await Object(sn.Q)(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("MANDATORY_APP_ERROR_MESSAGE_1")}))}}),Object(g.jsxs)(yt.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)(Ic.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.getTableData()},children:Object(g.jsx)(Qt.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)(KO,{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(sn.J)(n)).result?(e.getTableData(),a(Object(U.d)({message:i("MANDATORY_APP_MESSAGE_2")}))):a(Object(U.c)({message:i("REGISTER_ERROR_MESSAGE_1")}))})(t,n)})})]})]})};const XO=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 qO(e){const{t:t}=Object(jt.a)("docbase"),a=XO(),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)(Yc.a,{className:a.title,id:"form-dialog-title",children:t("MANDATORY_APP_REGISTER")}),Object(g.jsx)(Kc.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)(St.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_1"),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)(St.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_2"),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)(St.a,{className:"",placeholder:t("MANDATORY_APP_PLACEHOLDER_2"),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)(Ic.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Ic.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 JO=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 ZO=function(e){let{selectedObj:t,fnToggleRightSidebar:a,getTableData:n}=e;const c=JO(),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))}),[t]);const x=async()=>{try{const e=await Object(sn.o)(t.id);p(e)}catch(e){p([])}},N=async(e,a,n,s)=>{l(Object(sn.S)({show:!0}));await Object(sn.a)(t.id,e,a,n,s);x(),u(!1),l(Object(sn.S)({show:!1}))};return Object(g.jsxs)("div",{className:"",ref:r,children:[Object(g.jsx)(qO,{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)(Dc.a,{className:c.cardInfo,children:[Object(g.jsxs)(_r.a,{disableSpacing:!0,children:[Object(g.jsx)(P.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)(Mc.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)(St.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)(St.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)(St.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)(St.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)(_r.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)(Ic.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(sn.ab)(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)(Dc.a,{className:c.paperPerm,children:[Object(g.jsx)(Mc.a,{className:c.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Ic.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)(Mc.a,{className:c.paperPermContent,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:i("OS")}),Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:i("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:i("DLP_PROGRAM_HASH")}),Object(g.jsx)(Sl.a,{padding:"none",align:"left",className:"left title",children:i("MIN_VERSION")}),Object(g.jsx)(Sl.a,{padding:"none",align:"center",className:"perm-col-1",children:i("REMOVE")})]})}),Object(g.jsx)(Tl.a,{children:null===O||void 0===O?void 0:O.map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>h===e.check_id?_(0):_(e.check_id),children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:1===e.type?"Windows":"macOS"}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.signing_id}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.hash}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:e.min_version}),Object(g.jsx)(Sl.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(Je.a,{title:i("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(P.a,{"aria-label":"releasePerm",onClick:t=>{t.stopPropagation(),(async(e,t)=>{l(Object(sn.S)({show:!0})),await Object(sn.K)(e,t),x(),l(Object(sn.S)({show:!1}))})(e.check_id,e.type)},children:Object(g.jsx)(vl.a,{type:"delete",className:""})})})})]})))})]})})]})]})};var QO={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(sn.p)();l(e)}catch(e){l([])}finally{n(!1)}};return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(VO,{selectedObj:r,loading:a,apps:c,getTableData:o,setLoading:n,setSelectedObj:i}),rightSidebarContent:Object(g.jsx)(ZO,{selectedObj:r,getTableData:o,fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const $O=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 ep(e){let{open:t,piiList:a,fnHandleRegister:n,fnHandleClose:c}=e;const{t:l}=Object(jt.a)("docbase"),r=$O(),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)(Yc.a,{className:r.title,id:"form-dialog-title",children:l("\uc815\ucc45 \ub4f1\ub85d")}),Object(g.jsx)(Kc.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)(St.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)(Ic.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)(Ic.a,{onClick:c,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:l("CANCEL")}),Object(g.jsx)(Ic.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 tp=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 ap(e){let{open:t,fnHandleRegister:a,fnHandleClose:n}=e;const{t:c}=Object(jt.a)("docbase"),l=tp(),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)(Yc.a,{className:l.title,id:"form-dialog-title",children:c("\ud328\ud134 \ub4f1\ub85d")}),Object(g.jsx)(Kc.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)(St.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)(St.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)(Ic.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Ic.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 cp(e){const{children:t,value:a,index:n}=e,s=Object(Gs.a)(e,np);return Object(g.jsx)(yt.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)(Nt.a,{p:2,className:"h-full p-0",style:{"margin-top":"-4px"},children:t})}))}function lp(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(sn.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(sn.R)(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)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ap,{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)(ep,{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)(yt.a,{className:t.mainPaper,children:[Object(g.jsx)(Ue.a,{position:"static",className:t.tabsBar,children:Object(g.jsxs)(fr.a,{value:O,indicatorColor:"",onChange:(e,t)=>{O!==t&&(u(!1),p(t))},children:[Object(g.jsx)(gr.a,Object(d.a)({label:i("\ud328\ud134")},lp(0))),Object(g.jsx)(gr.a,Object(d.a)({label:i("\uc815\ucc45")},lp(1)))]})}),Object(g.jsxs)(cp,{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)(Ic.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:t.contentWrapper,ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.tr,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",padding:"default",children:Object(g.jsx)("span",{className:"align-middle",children:"\ud328\ud134"})}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:i("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:f.map(((e,t)=>Object(g.jsxs)(Nl.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"center",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.name,InputProps:{readOnly:!0}})}),Object(g.jsx)(Sl.a,{className:"center",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.regex,InputProps:{readOnly:!0}})}),Object(g.jsx)(Sl.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)(P.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)(dl.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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t)))})]})})]}),Object(g.jsxs)(cp,{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)(Ic.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(B.a,{className:t.contentWrapper,ref:c,children:Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{className:t.tr,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",padding:"default",children:Object(g.jsx)("span",{className:"align-middle",children:"\uac80\ucd9c \ud328\ud134"})}),Object(g.jsx)(Sl.a,{className:"center",align:"center",padding:"default",style:{width:120},children:Object(g.jsxs)("span",{className:"align-middle",children:[" ",i("USE")]})}),Object(g.jsx)(Sl.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:i("DELETE")})]})}),Object(g.jsx)(Tl.a,{children:x.map(((e,t)=>Object(g.jsxs)(Nl.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"center",children:Object(g.jsx)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:e.name,InputProps:{readOnly:!0}})}),Object(g.jsx)(Sl.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)(Sl.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)(Sl.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)(P.a,{onClick:n=>{n.stopPropagation(),a(Object(R.c)({children:Object(g.jsx)(dl.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)(Qt.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t)))})]})})]})]})]})};var ip={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/piiPolicy",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(rp,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const op=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 dp=function(e){const t=op(),{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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:t.tr,children:n.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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 bp=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 jp=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"),{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)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(dp,{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)(Tl.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)(Nl.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.creator,"(").concat(e.created_by)}),Object(g.jsx)(Sl.a,{className:"center",align:"center",component:"td",scope:"row",children:a}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:s}),Object(g.jsx)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.registered_at)}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.expired_at)}),Object(g.jsx)(Sl.a,{className:"center",align:"center",component:"td",scope:"row",children:e.limit_downloads}),Object(g.jsx)(Sl.a,{className:"center",align:"center",component:"td",scope:"row",children:0===e.limit_downloads?"-":e.remain_downloads})]},t)}))})]})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(u/b),color:"primary",onChange:(t,n)=>{e.setLoading(!0),a(Object(cn.F)({page:n-1})).then((()=>e.setLoading(!1)))}})]})})};var up={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(cn.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)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(jp,{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 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>.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){let{open:t,folders:a,users:n,excludedList:c,fnHandleOK:l,fnHandleClose:r}=e;const{t:i}=Object(jt.a)("docbase"),o=Op(),{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,C]=s.a.useState(null),[y,A]=s.a.useState(""),[L,w]=s.a.useState(""),[P,I]=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(""),I(""),M(""),N(null),T(null),C(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(an.g)(S.user_id))}),[S]),s.a.useEffect((async()=>{R&&""!==R.user_id&&F(await Object(an.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)(Yc.a,{className:o.title,id:"form-dialog-title",children:i("\uc608\uc678 \uacbd\ub85c \ub4f1\ub85d")}),Object(g.jsx)(Kc.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)(Ol.a,{id:"autocomplete-permission-search",options:O,getOptionLabel:e=>e.path?e.folder_type===Wc.E?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:y,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)(St.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)(Ol.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)(St.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)(Ol.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)=>{C(t||null)},inputValue:P,onInputChange:(e,t,a)=>{"input"===a&&I(t),"reset"===a&&"blur"!==(null===e||void 0===e?void 0:e.type)&&I(t),"clear"===a&&I("")},renderInput:e=>Object(g.jsx)(St.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)(St.a,{className:"",type:"text",placeholder:i("\ucf64\ub9c8 ','\ub85c \uad6c\ubd84"),name:"exts",fullWidth:!0,value:D,variant:"outlined",onChange:e=>M(e.target.value),size:"small"})})]}),Object(g.jsx)(Vc.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)(Ic.a,{onClick:r,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>W(),children:i("ADD")})]})]})})]})})}const hp=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 mp(e){let{open:t,fnHandleOK:a,fnHandleClose:n}=e;const{t:c}=Object(jt.a)("docbase"),l=hp(),[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(cn.P)(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)(Yc.a,{className:l.title,id:"form-dialog-title",children:c("\uc554/\ubcf5\ud638\ud654")}),Object(g.jsx)(Kc.a,{className:l.body,children:r?Object(g.jsx)(Nt.a,{style:{position:"relative",height:"calc(130px)",borderRadius:6},children:Object(g.jsx)(Y.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)(St.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)(Vc.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)(Ic.a,{onClick:n,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:c("CANCEL")}),Object(g.jsx)(Ic.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(cn.Q)("drm_path.xml",n)){const e=await Object(cn.N)("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(cn.O)("encrypt");O(n)}else console.log("failed to xml wirte")}catch(e){console.error(e)}finally{i(!1)}return!0})(),children:c("APPLY")})]})]})})]})})}var _p=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(cn.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",indeterminate:O.length>0&&O.lengtho(),onClick:e=>o()})}),Object(g.jsx)(Sl.a,{id:"path",className:"left",align:"left",padding:"default",sortDirection:"path"===n.id&&n.direction,children:Object(g.jsx)(Dl.a,{active:"path"===n.id,direction:n.direction,onClick:e=>c(e,"path"),children:u("EXCLUDED_PATH")})}),Object(g.jsx)(Sl.a,{id:"ext",className:"center",align:"center",padding:"default",sortDirection:"name"===n.id&&n.direction,children:u("EXCLUDED_EXT")})]})}),Object(g.jsx)(Tl.a,{children:a.map((e=>{const t=e.fid in l;return Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,children:[Object(g.jsx)(Sl.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(Pc.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:t=>r(e.fid)})}),Object(g.jsx)(Sl.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)(Sl.a,{className:"center",align:"center",children:e.ext})]},e.user_id)}))})]})}));const fp=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 gp(){const e=fp(),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),[C,y]=Object(n.useState)({}),[A,L]=Object(n.useState)({}),[w,I]=Object(n.useState)({regist:!1,decripty:!1}),D=Object(n.useRef)(!0);Object(n.useEffect)((()=>{0===i.length?t(Object(nn.e)()).then((()=>{0===c.length&&t(Object(an.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(cl.debounce)((e=>{(async e=>{var t;j(!0);let a="";(await Object(cn.M)("")).includes("drm_excluded.xml")&&(a=await Object(cn.N)("drm_excluded.xml"));const n=bt.a.xmlToJson(a);y(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].path}))}else{var p;const t=await Object(nn.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:sI(Object(d.a)(Object(d.a)({},w),{},{decripty:!1})),fnHandleOK:e=>{}}),Object(g.jsx)(pp,{open:w.regist,folders:i,users:c,excludedList:p,fnHandleClose:()=>I(Object(d.a)(Object(d.a)({},w),{},{regist:!1})),fnHandleOK:e=>{var t;const a=Object(d.a)({},C);(null!==(t=a.exclude)&&void 0!==t?t:a.exclude=[]).push(e),y(a);const n=bt.a.jsonToXml(a,"excluded");Object(cn.Q)("drm_excluded.xml",n).then((e=>{M(""),I(Object(d.a)(Object(d.a)({},w),{},{regist:!1}))}))}}),Object(g.jsx)(yt.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)(St.a,{variant:"outlined",fullWidth:!0,className:"search-input",value:E,placeholder:s("SEARCH"),InputProps:{endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:E&&Object(g.jsx)(P.a,{className:"p-0","aria-label":"clear search",onClick:()=>x(""),edge:"end",children:Object(g.jsx)(xt.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)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:e=>I(Object(d.a)(Object(d.a)({},w),{},{decripty:!0})),style:{width:"auto",marginRight:5},children:s("\uc554/\ubcf5\ud638\ud654")}),Object(g.jsx)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:e=>I(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)(Ic.a,{variant:"contained",className:"default",type:"button",onClick:e=>{t(Object(R.c)({children:Object(g.jsx)(dl.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)({},C);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]}y(t),L(a);const n=bt.a.jsonToXml(t,"excluded");Object(cn.Q)("drm_excluded.xml",n).then((e=>{M("")}))}})}))},children:s("DELETE")})})]})]})}),Object(g.jsx)(yt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:b?Object(g.jsx)(Nt.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Y.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(B.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(_p,{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)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(p.length/N),color:"primary",onChange:(e,t)=>{v(t-1)}})]})})]})}var Ep=s.a.memo(gp);var xp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/drm_excluded",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Ep,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const Np=Object(M.a)((e=>({tr:{"& .size":{width:120}}})));var Sp=function(e){const{t:t}=Object(jt.a)("docbase"),a=Np(),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)(xl.a,{children:Object(g.jsx)(Nl.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Sl.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)(yt.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)(os.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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 Tp=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 vp=function(e){const t=Tp(),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((()=>{C(T)}),[T]);const R=s.a.useRef(!0);s.a.useEffect((()=>{R.current?R.current=!1:A(f)}),[f]);const C=Object(n.useCallback)(Object(cl.debounce)((e=>{y(e)}),1500),[]),y=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(cn.s)(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(cn.t)(e);N(t)};return r?Object(g.jsx)(Y.a,{}):Object(g.jsx)("div",{className:Object(G.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(yt.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)(St.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)(os.a,{type:"number",name:"search_size",disableUnderline:!0,className:t.customInput,endAdornment:Object(g.jsx)(Tt.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(fc.a,{utils:gl.a,className:"flex-1",children:Object(g.jsx)(fl.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>y(T),children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{(async()=>{try{a(Object(sn.S)({show:!0}));const e=await Object(cn.u)(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)})})),ol.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(sn.S)({show:!1}))}})()},children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Sp,{order:o,searchObj:T,rowCount:j}),Object(g.jsx)(Tl.a,{children:x.slice(f*h,f*h+h).map(((e,t)=>Object(g.jsxs)(Nl.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.a,{className:"left",align:"left",component:"td",scope:"row",children:bt.a.changeByteToString(e.size)}),Object(g.jsx)(Sl.a,{className:"",align:"center",component:"td",scope:"row",children:bt.a.getDateStringToLocalDate(e.last_updated_at)})]},t)))})]})}),Object(g.jsx)(ll.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 Rp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/foi",component:function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(vp,{}),innerScroll:!0,sidebarInner:!0})}}]},Cp=a(344);var yp=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 Ap=["children","classes","onClose"],Lp=Object(Yl.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(Gs.a)(e,Ap);return Object(g.jsxs)(Yc.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)(P.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Kl.a,{})}):null]}))})),wp=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 Pp(e){let{open:t,fnHandleClose:a,fnHandleOk:c}=e;const l=wp(),{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===Wc.W)):[];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(cl.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()}),100));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)(Lp,{className:l.title,id:"form-dialog-title",onClose:a,children:r("PERM_FOLDER_TITLE")}),Object(g.jsx)(ul.a,{className:l.head,children:Object(g.jsx)("div",{className:"search-wrapper",children:Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(St.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)(Kc.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)(Vl.a,{className:"full",useExpand:!0,orgs:j,fnOnClickHandler:e=>{p(e)}})})})}),Object(g.jsxs)("div",{className:l.buttonWrapper,children:[Object(g.jsx)(Ic.a,{onClick:a,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:r("CANCEL")}),Object(g.jsx)(Ic.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{c(O)},children:r("MOVE")})]})]})})]})})}const Ip=Object(M.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},navi:{padding:20,alignItems:"center",justifyContent:"space-between",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"}}})));let Dp=!0;var Mp=function(){const e=Ip(),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:Wc.D,fid_path:""},files:[],structFolders:[]}),[f,E]=Object(n.useState)({}),[x,N]=Object(n.useState)([]),[S,T]=Object(n.useState)(!1),[v,C]=Object(n.useState)(-1),[y,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&&C(y.length),T(!0)):-1!==v&&y.length((Dp||-1===h.folderInfo.fid)&&(t(Object(nn.f)()).then((()=>{L(0)})),Dp=!1),()=>{Dp=!0})),[t]);const L=async e=>{const t=await Object(nn.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=Wc.D;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:Wc.D,disp_path:"/\uc870\uc9c1",fid_path:""},structFolders:n,files:[]})),A([{fid:0,folder_type:Wc.D,disp_path:"/\uc870\uc9c1",name:"\uc870\uc9c1"}])):await I(a[e],n),i(!1)},I=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(on.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:Wc.D,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(on.k)(t),s=h.folderInfo.fid_path.split("/").map((e=>""===e?{fid:0,folder_type:Wc.D,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===Wc.W)||(0===e.name.indexOf(".fuse")||(5===e.folder_type||2===e.type||""!==j.text&&e.name.indexOf(j.text)<0)),M=(e,t,a)=>("click"===e.type&&e.stopPropagation(),"\ud734\uc9c0\ud1b5"!==t.name&&"Trash"!==t.name&&(a&&"click"===e.type?N(x.filter((e=>e.name!==t.name))):e.ctrlKey?N([...x,t]):N([t]),!0)),k=(e,t)=>{u(Object(d.a)(Object(d.a)({},j),{},{text:""})),t.isStruct?L(t.fid):I(t)},F=()=>{h.folderInfo.userPath===h.path?L(h.folderInfo.fid):I({name:h.path,direct:!0})};return r?Object(g.jsx)(Y.a,{}):Object(g.jsxs)("div",{className:Object(G.a)(e.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Pp,{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(on.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)(dl.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;t{e.isStruct?L(e.fid):I({name:"".concat(h.folderInfo.userPath,"/").concat(e.path),direct:!0})}})}),Object(g.jsxs)("div",{children:[Object(g.jsx)(Ic.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)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>F(),children:Object(g.jsx)(Qt.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)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsx)(Nl.a,{children:Object(g.jsx)(Sl.a,{className:Object(G.a)("search-cell",j.show?"show":""),align:"left",padding:"default",sortDirection:!1,children:j.show?Object(g.jsxs)(yt.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)(os.a,{placeholder:l("FOLDER_NAME"),className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:j.text,endAdornment:Object(g.jsx)(Tt.a,{position:"end",children:Object(g.jsx)(P.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)(Tl.a,{children:[h.depth>=1?Object(g.jsx)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onDoubleClick:e=>{N([]),(()=>{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(),I({name:"".concat(h.folderInfo.userPath,"/").concat(e.join("/")),direct:!0}))}})()},children:Object(g.jsx)(Sl.a,{className:"cursor-pointer left",component:"td",scope:"row",children:0===h.depth?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)(Qt.a,{className:"",type:"backspace",fill:"#000000"})})}):Object(g.jsx)(g.Fragment,{}),h.structFolders.map((t=>{if(D(t))return"";const a=!!x.find((e=>e.name===t.name));let n="folder";return t.folder_type===Wc.H?n="delete":t.folder_type===Wc.F?n="private":t.folder_type===Wc.C?n="collect":t.folder_type===Wc.D?n="org":t.folder_type===Wc.G&&(n="shared"),Object(g.jsx)(Nl.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)(Sl.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)(Cp.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===Wc.H?n="delete":t.folder_type===Wc.F?n="private":t.folder_type===Wc.C?n="collect":t.folder_type===Wc.D?n="org":t.folder_type===Wc.G&&(n="shared"),Object(g.jsx)(Nl.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)(Sl.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)(Cp.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}),Object(g.jsx)("div",{className:"datetime",children:bt.a.getDateStringToLocalDate(t.last_modified)})]})},t.fid)}))]})]})})]})]})};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:{"&>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"},"& svg":{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"}})));var kp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/folderTransfer",component:function(){return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Mp,{}),innerScroll:!0,sidebarInner:!0})}}]},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,p]=s.a.useState(null);return s.a.useEffect((()=>{O||(async()=>{const e=await Object(cn.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})})),p(t)})()}),[O]),Object(g.jsxs)(El.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xl.a,{children:Object(g.jsxs)(Nl.a,{children:[Object(g.jsx)(Sl.a,{id:"path",className:"left",align:"left",padding:"default",sortDirection:"path"===n.id&&n.direction,children:Object(g.jsx)(Dl.a,{active:"path"===n.id,direction:n.direction,onClick:e=>c(e,"path"),children:u("EXCLUDED_PATH")})}),Object(g.jsx)(Sl.a,{id:"ext",className:"center",align:"center",padding:"default",sortDirection:"name"===n.id&&n.direction,children:u("EXCLUDED_EXT")})]})}),Object(g.jsx)(Tl.a,{children:a.map((e=>{const t=e.fid in l;return Object(g.jsxs)(Nl.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,children:[Object(g.jsx)(Sl.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)(Sl.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,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 Fp(){const e=Up(),t=Object(m.b)(),a=Object(n.useRef)(),{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})),{folders:o,foldersObj:b}=Object(m.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[j,u]=Object(n.useState)(!0),[O,p]=Object(n.useState)([]),[h,_]=Object(n.useState)([]),[f,E]=Object(n.useState)({id:"path",direction:"desc"}),[x,N]=Object(n.useState)(""),[S,T]=Object(n.useState)(20),[v,R]=Object(n.useState)(0),C=new Date,[y,A]=s.a.useState({startDate:new Date(C.getFullYear(),C.getMonth(),C.getDate()),path:""}),L=Object(n.useRef)(!0);Object(n.useEffect)((()=>{0===o.length?t(Object(nn.e)()).then((()=>{0===l.length&&t(Object(an.h)())})):w(x)}),[o]),Object(n.useEffect)((()=>{L.current?L.current=!1:(w(x),R(0))}),[x,f]),Object(n.useEffect)((()=>{p(h.slice(S*v,S*(v+1)))}),[v,S,h]);const w=Object(n.useCallback)(Object(cl.debounce)((e=>{(async()=>{u(!0);const e=await Object(cn.M)("");let t="";const a="nonencrypt_".concat(bt.a.getDateString(y.startDate));e.includes(a)&&(t=await Object(cn.N)(a));const n=bt.a.xmlToJson(t),s=[];if(n.path)for(let l=0;l{const{id:a,direction:n}=f,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let l=0;return s>c?l=1:s{isNaN(e.getTime())||y.startDate.getTime()!==e.getTime()&&A(Object(d.a)(Object(d.a)({},y),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Je.a,{title:c("REFRESH"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{},children:Object(g.jsx)(Qt.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(Je.a,{title:c("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(P.a,{"aria-label":"download",color:"secondary",onClick:()=>{const e=[c("DIVISION"),c("EXISTING_FILE"),c("NEW_FILE"),c("USER"),c("DATE")],t=[];O.forEach((e=>{t.push({path:e.path,dest_path:e.dest_path,user:"".concat(e.user_name,"(").concat(e.user_id,")"),accessed_at:bt.a.getDateStringToLocalDate(e.accessed_at)})})),ol.excelDownload("".concat(c("FILE_LOG_EXCEL")).concat(bt.a.getDateString(y.startDate),"}"),e,t,[{wpx:80},{wpx:400},{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(Qt.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]})}),Object(g.jsx)(yt.a,{className:Object(G.a)("mx-auto print:p-8 print:shadow-none rounded-8 relative"),children:j?Object(g.jsx)(Nt.a,{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Y.a,{className:"fuseLoading"})}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)("div",{className:e.contentWrapper,ref:a,children:Object(g.jsx)(Gp,{data:O,order:f,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";f.id===t&&"desc"===f.direction&&(n="asc"),E({direction:n,id:a})})(0,t)})}),Object(g.jsx)(ll.a,{className:"flex justify-center pt-10 pb-10",count:Math.ceil(h.length/S),color:"primary",onChange:(e,t)=>{R(t-1)}})]})})]})}var Wp=s.a.memo(Fp);var Hp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/drm_nonencrypts",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(sl.a,{classes:{content:"flex"},header:Object(g.jsx)(or,{}),content:Object(g.jsx)(Wp,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var zp={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",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 \uc601\uad6c\uc0ad\uc81c",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_NONE:"\uc228\uae40",PERM_NOT_NONE:"\ub178\ucd9c",PERM_DELETE:"\uad8c\ud55c\uc0ad\uc81c",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_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",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:"\ub300\uc0c1\uacbd\ub85c \ubc29\uc2dd",EXCLUSIVE:"\uc81c\uc678\uacbd\ub85c \ubc29\uc2dd",COLLECT_EXCLUSIVE_EXT_SETTING:"\uc218\uc9d1 \ud655\uc7a5\uc790",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:"\ud655\uc7a5\uc790 \uc9c0\uc815 \ubc29\uc2dd",EXCLUSIVE_EXT:"\ud655\uc7a5\uc790 \uc81c\uc678 \ubc29\uc2dd",COLLECT_EXCLUSIVE_EXT:"\uc218\uc9d1 \uc81c\uc678 \ud655\uc7a5\uc790",COLLECT_EXT:"\uc218\uc9d1 \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",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 \uc218\uc9d1 \uc5ec\ubd80",COLLECT_DRIVE_REMOVABLE:"\uc774\ub3d9\ud615 \ub514\uc2a4\ud06c \uc218\uc9d1 \uc5ec\ubd80",COLLECT_DRIVE_CDROM:"CDROM \ub4dc\ub77c\uc774\ube0c \uc218\uc9d1 \uc5ec\ubd80",COLLECT_DRIVE_RAMDISK:"RAM \ub4dc\ub77c\uc774\ube0c \uc218\uc9d1 \uc5ec\ubd80",COLLECT_DRIVE_REMOTE:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \ub4dc\ub77c\uc774\ube0c \uc218\uc9d1 \uc5ec\ubd80",COLLECT_DRIVE_FIXED_HOTPLUG:"USB\uc5f0\uacb0 \uace0\uc815\ud615 \ub514\uc2a4\ud06c \uc218\uc9d1 \uc5ec\ubd80",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 \uc6b0\uc120\uc21c\uc704",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 \ubaa8\ub4c8",DLP_HEALTH_MODULE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c \ubaa8\ub4c8",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"};var Bp={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)",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_TRASH:"Purge the 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_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_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",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:"",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",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:"Collecting from the fixed storage",COLLECT_DRIVE_REMOVABLE:"Collecting from the removable storage",COLLECT_DRIVE_CDROM:"Collecting from CD-ROM",COLLECT_DRIVE_RAMDISK:"Collecting from RAMDISK",COLLECT_DRIVE_REMOTE:"Collecting from the remote drive",COLLECT_DRIVE_FIXED_HOTPLUG:"Collecting from the 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:"Manage priority",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:"\ucc98\ub9ac\uc911",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 \ubaa8\ub4c8",DLP_HEALTH_MODULE_NETWORK:"\ub124\ud2b8\uc6cc\ud06c \ubaa8\ub4c8",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"};var Yp={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 Kp={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",zp),r.a.addResourceBundle("en","docbase",Bp),r.a.addResourceBundle("ko","brand",Yp),r.a.addResourceBundle("en","brand",Kp);const Vp=[el,nl,dr,Gr,Br,ci,Ni,Ri,Di,Qo,ad,Td,io,jo,uo,_o,kd,Ad,fo,Fo,Od,Ud,Bd,Zd,sb,ob,Ob,Nb,Cb,Cj,Kj,tu,ou,Eu,jO,Fu,EO,RO,wO,FO,QO,ip,up,xp,Rp,kp,Hp];let Xp=sessionStorage.getItem("coodoc-language");null!==Xp&&0!==Xp.length||(Xp="ko");const qp=new T.a(window.navigator.userAgent);(window.ReactNativeWebView||qp.mobile())&&sessionStorage.setItem("device","mobile"),o.changeLanguage(Xp).then((()=>{})),document.title=Yp.BROWSER_TITLE;var Jp=[...p.generateRoutesFromConfigs(Vp),{path:"/",component:()=>Object(g.jsx)(f.a,{to:"/login"})},{path:"/admin",component:()=>Object(g.jsx)(f.a,{to:"/admin"})}];const Zp=Object(gc.a)(Object(d.a)(Object(d.a)({},Object(hc.a)()),{},{plugins:[...Object(hc.a)().plugins,Object(Ec.a)(),Nc()()],insertionPoint:document.getElementById("jss-insertion-point")})),Qp=Object(mc.a)();var $p=()=>Object(g.jsx)(h.Provider,{value:{routes:Jp},children:Object(g.jsx)(_c.b,{jss:Zp,generateClassName:Qp,children:Object(g.jsx)(Sc.a,{store:pn,children:Object(g.jsx)(fc.a,{utils:b.a,children:Object(g.jsx)(Ac,{children:Object(g.jsx)(f.c,{history:se.a,children:Object(g.jsx)(x,{children:Object(g.jsx)(pc,{children:Object(g.jsx)(jc,{})})})})})})})})});var eh=e=>{e&&e instanceof Function&&a.e(4).then(a.bind(null,978)).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)($p,{}),document.getElementById("root")),eh()}},[[877,1,2]]]); //# sourceMappingURL=main.79617beb.chunk.js.map