(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[0],{10:function(e,t,a){"use strict";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 0:return"Unknown";case 1:return"\uc870\uc9c1 \ud3f4\ub354";case 2:return"\uacf5\uc720 \ud3f4\ub354";case 3:return"\ud504\ub85c\uc81d\ud2b8 \ud3f4\ub354";case 4:return"\uac1c\uc778 \ud3f4\ub354";case 5: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))}))}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])),r=c.getHours()>9?"".concat(c.getHours()):"0".concat(c.getHours()),i=c.getMinutes()>9?"".concat(c.getMinutes()):"0".concat(c.getMinutes()),l=c.getSeconds()>9?"".concat(c.getSeconds()):"0".concat(c.getSeconds());return"".concat(this.getDateString(c,t)," ").concat(r,":").concat(i,":").concat(l)}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"),r=String(t.getMinutes()).padStart(2,"0"),i=String(t.getSeconds()).padStart(2,"0"),l=String(t.getMilliseconds()).padStart(3,"0"),o="".concat(a,"-").concat(n,"-").concat(s," ").concat(c,":").concat(r,":").concat(i,".").concat(l);console.log("[".concat(o,"] ").concat(e))}}},12:function(e,t,a){"use strict";a.d(t,"y",(function(){return n})),a.d(t,"z",(function(){return s})),a.d(t,"A",(function(){return c})),a.d(t,"pb",(function(){return r})),a.d(t,"qb",(function(){return i})),a.d(t,"H",(function(){return l})),a.d(t,"C",(function(){return o})),a.d(t,"F",(function(){return d})),a.d(t,"E",(function(){return b})),a.d(t,"B",(function(){return j})),a.d(t,"G",(function(){return O})),a.d(t,"D",(function(){return u})),a.d(t,"v",(function(){return p})),a.d(t,"w",(function(){return h})),a.d(t,"x",(function(){return _})),a.d(t,"u",(function(){return m})),a.d(t,"r",(function(){return E})),a.d(t,"t",(function(){return g})),a.d(t,"s",(function(){return f})),a.d(t,"db",(function(){return x})),a.d(t,"Z",(function(){return N})),a.d(t,"U",(function(){return S})),a.d(t,"eb",(function(){return T})),a.d(t,"W",(function(){return R})),a.d(t,"cb",(function(){return v})),a.d(t,"X",(function(){return L})),a.d(t,"V",(function(){return A})),a.d(t,"Y",(function(){return C})),a.d(t,"ab",(function(){return y})),a.d(t,"bb",(function(){return P})),a.d(t,"b",(function(){return I})),a.d(t,"f",(function(){return w})),a.d(t,"d",(function(){return D})),a.d(t,"j",(function(){return M})),a.d(t,"c",(function(){return k})),a.d(t,"h",(function(){return G})),a.d(t,"i",(function(){return U})),a.d(t,"g",(function(){return F})),a.d(t,"e",(function(){return W})),a.d(t,"k",(function(){return H})),a.d(t,"l",(function(){return B})),a.d(t,"m",(function(){return z})),a.d(t,"a",(function(){return Y})),a.d(t,"J",(function(){return V})),a.d(t,"I",(function(){return K})),a.d(t,"S",(function(){return X})),a.d(t,"Q",(function(){return q})),a.d(t,"R",(function(){return J})),a.d(t,"N",(function(){return Z})),a.d(t,"L",(function(){return Q})),a.d(t,"K",(function(){return $})),a.d(t,"M",(function(){return ee})),a.d(t,"P",(function(){return te})),a.d(t,"O",(function(){return ae})),a.d(t,"T",(function(){return ne})),a.d(t,"mb",(function(){return se})),a.d(t,"nb",(function(){return ce})),a.d(t,"ob",(function(){return re})),a.d(t,"ib",(function(){return ie})),a.d(t,"jb",(function(){return le})),a.d(t,"kb",(function(){return oe})),a.d(t,"lb",(function(){return de})),a.d(t,"gb",(function(){return be})),a.d(t,"fb",(function(){return je})),a.d(t,"hb",(function(){return Oe})),a.d(t,"q",(function(){return ue})),a.d(t,"p",(function(){return pe})),a.d(t,"n",(function(){return he})),a.d(t,"o",(function(){return _e}));const n=0,s=1,c=2,r=0,i=1,l=0,o=1,d=2,b=3,j=4,O=5,u=9,p=1,h=2,_=3,m=4,E=0,g=1,f=2,x=3,N=6,S=7,T=9,R=10,v=17,L=18,A=21,C=22,y=24,P=25,I=1,w=2,D=3,M=4,k=5,G=6,U=7,F=8,W=9,H=10,B=11,z=12,Y=13,V=0,K=1,X=1,q=2,J=3,Z=4,Q=5,$=6,ee=7,te=1,ae=2,ne=3,se=1,ce=2,re=3,ie=100,le=110,oe=200,de=300,be=1,je=2,Oe=3,ue=1,pe=2,he=3,_e=5},13:function(e,t,a){"use strict";(function(e){var n=a(366),s=a.n(n),c=a(68),r=a.n(c);t.a=new class{encryptAES(t,a,n,s){let c=t;e.isBuffer(t)||(c=r.a.utils.hex.toBytes(t));let i=[];i="hex"===n?r.a.utils.hex.toBytes(a):"arrayBuffer"===n?new Uint8Array(a):r.a.utils.utf8.toBytes(a);const l=new r.a.ModeOfOperation.ecb(c);let o;if(i.length%16===0)o=l.encrypt(i);else{const t=i.length%16>0?Math.floor(i.length/16+1):i.length/16,a=e.alloc(16*t);e.from(i).copy(a,0,0,i.length),o=l.encrypt(a)}let d="";return d="utf8"===s?r.a.utils.utf8.fromBytes(o):r.a.utils.hex.fromBytes(o),d}decryptAES(t,a,n,s,c){let i=t;e.isBuffer(t)||(i=r.a.utils.hex.toBytes(t));const l=new r.a.ModeOfOperation.ecb(i);let o=[];o="hex"===n?r.a.utils.hex.toBytes(a):r.a.utils.utf8.toBytes(a);const d=l.decrypt(o);if("arrayBuffer"===s)return c?d.slice(0,c):d;let b="";b="utf8"===s?r.a.utils.utf8.fromBytes(d):r.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)))},r=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")}},i=async e=>await s.a.sendPost("/api/getWeblinkInfo",{id:e}),l=async e=>await s.a.sendPost("/api/generateWeblinkEmailOTP",{id:e})},21:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var n=a(105),s=a(2),c=a(185),r=a.n(c),i=a(510),l=(a(664),a(1)),o=a.n(l),d=a(7),b=a(3),j=a(9),O=a(61),u=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(u.jsx)(e,Object(b.a)(Object(b.a)({},n),{},{ref:a}))}}const a=Object(O.h)(t,{withRef:!0});return o.a.forwardRef(((e,t)=>Object(u.jsx)(a,Object(b.a)(Object(b.a)({},e),{},{forwardRef:t}))))};const _=new r.a(window.navigator.userAgent).mobile(),m={"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(m);const E=Object(n.a)((e=>({root:{}}))),g=o.a.forwardRef(((e,t)=>{t=t||Object(l.createRef)();const a=Object(l.useRef)(null),n=Object(l.useRef)(new Map),c=E(),{customScrollbars:r}=e,o=Object(l.useCallback)((()=>{Object.keys(m).forEach((a=>{const s=e[m[a]];if(s){const e=()=>s(t.current);n.current.set(a,e),t.current.addEventListener(a,e,!1)}}))}),[t]),d=Object(l.useCallback)((()=>{n.current.forEach(((e,a)=>{t.current&&t.current.removeEventListener(a,e,!1)})),n.current.clear()}),[t]),b=Object(l.useCallback)((()=>{d(),a.current&&(a.current.destroy(),a.current=null)}),[d]),j=Object(l.useCallback)((()=>{_||!t||a.current||(a.current=new i.a(t.current,e.option),o())}),[o,e.option,t]);Object(l.useEffect)((()=>{a.current&&a.current.update()})),Object(l.useEffect)((()=>{r?j():b()}),[j,r,b]);const O=Object(l.useCallback)((()=>{t&&t.current&&(t.current.scrollTop=0)}),[t]);return Object(l.useEffect)((()=>{e.scrollToTopOnChildChange&&O()}),[O,e.children,e.scrollToTopOnChildChange]),Object(l.useEffect)((()=>e.history.listen((()=>{e.scrollToTopOnRouteChange&&O()}))),[O,e.history,e.scrollToTopOnRouteChange]),Object(l.useEffect)((()=>()=>{b()}),[b]),Object(u.jsx)("div",{id:e.id,className:Object(s.a)(c.root,e.className),style:e.customScrollbars&&(e.enable,1)&&!_?{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 f=Object(d.a)((function(e){let{fuse:t}=e;return{customScrollbars:t.settings.current.customScrollbars}}),null,null,{forwardRef:!0})(h(g))},227: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},228:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var n=a(99).a()},238:function(e,t,a){"use strict";a.d(t,"c",(function(){return b})),a.d(t,"i",(function(){return j})),a.d(t,"a",(function(){return O})),a.d(t,"j",(function(){return u})),a.d(t,"v",(function(){return p})),a.d(t,"n",(function(){return h})),a.d(t,"C",(function(){return _})),a.d(t,"B",(function(){return m})),a.d(t,"l",(function(){return E})),a.d(t,"e",(function(){return g})),a.d(t,"H",(function(){return x})),a.d(t,"h",(function(){return S})),a.d(t,"d",(function(){return R})),a.d(t,"x",(function(){return v})),a.d(t,"p",(function(){return L})),a.d(t,"z",(function(){return A})),a.d(t,"u",(function(){return C})),a.d(t,"r",(function(){return y})),a.d(t,"I",(function(){return P})),a.d(t,"w",(function(){return I})),a.d(t,"F",(function(){return w})),a.d(t,"s",(function(){return D})),a.d(t,"t",(function(){return k})),a.d(t,"y",(function(){return G})),a.d(t,"q",(function(){return U})),a.d(t,"f",(function(){return F})),a.d(t,"b",(function(){return W})),a.d(t,"m",(function(){return H})),a.d(t,"k",(function(){return B})),a.d(t,"o",(function(){return V})),a.d(t,"A",(function(){return J})),a.d(t,"D",(function(){return te})),a.d(t,"E",(function(){return ae})),a.d(t,"G",(function(){return ne}));var n=a(204),s=a.n(n),c=a(22),r=a(6),i=a(13),l=a(10),o=a(12),d=a(15);const b=Object(c.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(V()),!1;const i=n?"/".concat(a.name):"".concat("/"===c().docbase.wc.file.curPath?"":c().docbase.wc.file.curPath,"/").concat(a.name),l=await r.a.sendPost("/wcapi/fileList",{path:i});return l.result?(s(X({fileInfo:a,isFirst:n})),s(K({files:l.files,curPath:i})),!0):("\uacf5\uc720"!==i&&"Shared"!==i?s(V()):(s(X({fileInfo:a,isFirst:n})),s(K({files:[],curPath:i}))),!1)})),O=Object(c.b)("wc/file/fileList",(async(e,t)=>{let{dispatch:a,getState:n}=t;const s=l.a.splitPreDelimiter(n().docbase.wc.file.curPath);if(""===s)return a(V()),a(Z({isInitial:!0})),!1;const c=await r.a.sendPost("/wcapi/fileList",{path:s});return c.result?(a(K({files:c.files,curPath:s})),a(Z({isInitial:!1})),!0):(a(V()),a(Z({isInitial:!0})),!1)})),u=Object(c.b)("wc/file/fileList",(async(e,t)=>{let{targetPath:a,isRefresh:n}=e,{dispatch:s,getState:c}=t;if(""===a||"/"===a)return s(V()),!1;const i=await r.a.sendPost("/wcapi/fileList",{path:a});return i.result?(s(K({files:i.files,curPath:a})),n||s(q({reqPath:a})),!0):(s(V()),!1)})),p=Object(c.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(K({files:s.files,curPath:n().docbase.wc.file.curPath})),!0):(a(V()),!1)})),h=Object(c.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:[]})),_=Object(c.b)("wc/file/secureDocumentInfo",(async e=>{let{targetPath:t}=e;const a=await Object(d.c)(),n=await r.a.sendPost("/wcapi/secureDocumentInfo",{path:t,token:a.token});return n.result?n:{}})),m=Object(c.b)("wc/file/searchFile",(async e=>{let{targetPath:t,searchVal:a,excludeVal:n,findOption:s,exts:c}=e;const i=await r.a.sendPost("/wcapi/searchFile",{base_path:t,search_string:a,exclude_string:n,find_option:s,exts:c});return i.result?i.files:[]})),E=Object(c.b)("wc/file/findDeleteFiles",(async e=>{let{targetPath:t,searchVal:a,userName:n,userID:s,startDate:c,endDate:i}=e;const l=await r.a.sendPost("/wcapi/searchTrashFile",{path:t,text:a,user_name:n,user_id:s,start_date:c,end_date:i});return l.result?l.files:[]})),g=(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))}))})),f=1048576,x=Object(c.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(Q());const s=new FileReader;let c;if(t.size{n(Q()),r.a.sendPostMultipartForm("/wcapi/uploadFile",{path:e},[t],["file"],(e=>{e.data.result&&n(u({targetPath:a,isRefresh:!0})),n(ee())}))},S=async(e,t,a)=>{if(a&&a.enable)for(let n=0;n{const s=a.prefix.replace("##FILE_NAME##",encodeURIComponent(l.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 l.a.sleep(100);else if(window.isSecureContext)for(let n=0;n{Object(d.d)(((t,a)=>{const n=document.createElement("a");n.href="/wcapi/downloadFile?token=".concat(a,"&path=").concat(encodeURIComponent(e)),n.download=l.a.pathToName(e),n.click()}))},R=e=>new Promise(((t,a)=>{Object(d.d)(((n,s)=>{r.a.sendPost("/wcapi/createInstantDownloadURL",{path:e,token:s}).then((e=>{e.result?t(e.url):(r.a.printError(e),a())}))}))})),v=(e,t)=>new Promise(((a,n)=>{let s="/wcapi/removeFile";1===t&&(s="/wcapi/removeFolder"),r.a.sendPost(s,{path:e}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),L=(e,t,a)=>new Promise(((n,s)=>{1===a?r.a.sendPost("/wcapi/copyFile",{source_path:t,dest_path:"".concat(e,"/").concat(l.a.pathToName(t))}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))})):2===a?r.a.sendPost("/wcapi/moveFile",{source_path:t,dest_path:"".concat(e,"/").concat(l.a.pathToName(t))}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))})):s()})),A=(e,t)=>new Promise(((a,n)=>{r.a.sendPost("/wcapi/moveFile",{source_path:e,dest_path:"".concat(l.a.splitPreDelimiter(e),"/").concat(t)}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),C=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/recoveryTrashFile",{path:e}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))})),y=e=>new Promise(((t,a)=>{r.a.sendPost("/wcapi/purgeTrashFile",{path:e}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))})),P=(e,t,a)=>new Promise(((n,s)=>{Object(d.d)(((c,i)=>{let l="";a.forEach(((e,t)=>{l+=0===t?e.user_id:",".concat(e.user_id)})),r.a.sendPost("/wcapi/updateSecureDocument",{path:e,access_level:t,access_users:l,token:i}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))}))}))})),I=e=>new Promise(((t,a)=>{Object(d.d)(((n,s)=>{r.a.sendPost("/wcapi/releaseSecureDocument",{path:e,token:s}).then((e=>{e.result?t(e):(r.a.printError(e),a(e))}))}))})),w=(e,t,a)=>new Promise(((n,s)=>{Object(d.d)(((c,i)=>{let l="";a.forEach(((e,t)=>{l+=0===t?e.user_id:",".concat(e.user_id)})),r.a.sendPost("/wcapi/setSecureDocument",{path:e,access_level:t,access_users:l,token:i}).then((e=>{e.result?n(e):(r.a.printError(e),s(e))}))}))})),D=(e,t,a)=>new Promise(((n,s)=>{M(e,t,a)?n({result:!0}):s()})),M=async(e,t,a)=>{const n=s.a.createWriteStream(l.a.splitLastDelimiterString(e),{size:a});if(aa?a-o:f,token:s.token}),window.writer.write(new Uint8Array(i.a.decryptAES(s.aesKey,c.data,"hex","arrayBuffer",c.data_size))),o+=c.data_size,await l.a.sleep(50)}while(onew Promise(((a,n)=>{r.a.sendPost("/wcapi/recoveryByRevision",{path:e,tag:t}).then((e=>{e.result?a(e):(r.a.printError(e),n(e))}))})),G=(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))}))})),U=e=>new Promise(((t,a)=>{Object(d.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))}))}))})),F=(e,t,a,n,s)=>new Promise(((c,l)=>{Object(d.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))}))}))})),W=e=>new Promise(((t,a)=>{Object(d.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))}))}))})),H=(e,t,a)=>new Promise(((n,s)=>{Object(d.d)(((n,c)=>{r.a.sendPost("/api/getArchiveCopy",{toid:e,seq:t,archive_id:a,token:c}).then((e=>{e.result?T(e.target_path):(r.a.printError(e),s(e))}))}))})),B=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))}))})),z=[{accessible:!1,name:"\uc870\uc9c1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:o.C},{accessible:!1,name:"\uacf5\uc720",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:o.F},{accessible:!1,name:"\uac1c\uc778",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:o.E},{accessible:!1,name:"\uc218\uc9d1",purge_trash_file:!1,secure_document:!1,size:82,trash_file:!1,type:1,folder_type:o.B}],Y=Object(c.d)({name:"wc/file",initialState:{structFolders:[],isSettingPage:!1,curPath:"/",curPathInfo:{},navigator:[],curFileList:z,pasteTargets:[],pasteTargetPath:"",pasteTargetType:0,searchFileList:[],revisionFileList:[],secureDocInfo:{},uploadInfo:{uploading:!1,percent:0}},reducers:{initFileList:(e,t)=>{e.curFileList=z,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:{[m.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[E.fulfilled]:(e,t)=>{e.searchFileList=t.payload},[h.fulfilled]:(e,t)=>{e.revisionFileList=t.payload},[_.fulfilled]:(e,t)=>{e.secureDocInfo=t.payload},[b.fulfilled]:(e,t)=>{e.structFolders=t.payload}}}),{initFileList:V,setFileList:K,setCurPathInfo:X,setCurPathInfoByPath:q,resetSearchList:J,setBackSpace:Z,startUpload:Q,uploadingFile:$,finishUpload:ee,setCopyPath:te,setCutPath:ae,setSettingPage:ne}=Y.actions;t.g=Y.reducer},24:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(54);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},25:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return r}));var n=a(22);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:r}=s.actions;t.b=s.reducer},26:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));a(1);var n=a(7),s=a(567),c=a(105),r=a(564),i=a(376),l=a(565),o=a(132),d=a(25),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 O(e){const t=j(),a=Object(n.b)(),{t:c}=Object(s.a)("docbase");return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(r.a,{className:t.title,children:e.title}),Object(b.jsx)(i.a,{className:t.content,children:e.content}),Object(b.jsxs)(l.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")})]})]})}},27:function(e,t,a){"use strict";a.d(t,"u",(function(){return l})),a.d(t,"p",(function(){return o})),a.d(t,"I",(function(){return d})),a.d(t,"g",(function(){return b})),a.d(t,"i",(function(){return j})),a.d(t,"j",(function(){return O})),a.d(t,"s",(function(){return u})),a.d(t,"q",(function(){return p})),a.d(t,"w",(function(){return h})),a.d(t,"x",(function(){return _})),a.d(t,"C",(function(){return m})),a.d(t,"r",(function(){return E})),a.d(t,"G",(function(){return g})),a.d(t,"D",(function(){return f})),a.d(t,"z",(function(){return x})),a.d(t,"H",(function(){return N})),a.d(t,"t",(function(){return S})),a.d(t,"y",(function(){return T})),a.d(t,"h",(function(){return R})),a.d(t,"E",(function(){return v})),a.d(t,"k",(function(){return L})),a.d(t,"F",(function(){return A})),a.d(t,"d",(function(){return C})),a.d(t,"e",(function(){return y})),a.d(t,"n",(function(){return P})),a.d(t,"o",(function(){return I})),a.d(t,"l",(function(){return w})),a.d(t,"m",(function(){return D})),a.d(t,"A",(function(){return M})),a.d(t,"B",(function(){return k})),a.d(t,"v",(function(){return G})),a.d(t,"a",(function(){return F})),a.d(t,"c",(function(){return W})),a.d(t,"b",(function(){return H}));var n=a(22),s=a(6),c=a(13),r=(a(8),a(15)),i=a(12);const l=Object(n.b)("system/getStorageDashboard",(async()=>{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 i=await Object(r.c)(),l=await s.a.sendPost("/api/holdFiles",{user_id:a,token:i.token});if(l.result){if(""===a){const e=[];return l.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:l.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:r,operator:i,accessType:l,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:r,operator:i,access_types:l});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:i,object:l,user:o}=e,{dispatch:d,getState:b}=t;const j=await Object(r.c)(),u=await s.a.sendPost("/api/getAuditLog",{rows_per_page:b().docbase.admin.system.auditLogObj.rowsPerPage,audit_type:n,start_date:c,end_date:i,user:o,path:l,token:j.token});return u.result?(d(O({page:a})),{total_rows:u.total_rows,total_pages:u.total_pages}):{total_rows:0,total_pages:0}})),O=Object(n.b)("system/getAuditLogPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const i=await Object(r.c)(),l=await s.a.sendPost("/api/getAuditLogPage",{page:a,token:i.token});return l.result?{logs:l.logs,page:a,aes:i.aesKey}:{logs:[],page:1,aes:""}})),u=Object(n.b)("system/getOsrInfo",(async(e,t)=>{let{dispatch:a,getState:n}=t;const c=await Object(r.c)(),l=await s.a.sendPost("/api/OSR",{token:c.token});return l.result?l.remains:{new_organizations:[],remove_organizations:[],remove_users:[],error:!0,exists:l.error===i.U}})),p=Object(n.b)("system/getLegacyIntegrateMethod",(async()=>{const e=await Object(r.c)();return(await s.a.sendPost("/wcapi/getLegacyIntegrateMethod",{name:"web:change_download_url",token:e.token})).method})),h=Object(n.b)("system/inquiryTakeouts",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const r=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 r.result?(n(_({page:a})),{total_rows:r.total_rows,total_pages:r.total_pages}):{total_rows:0,total_pages:0}})),_=Object(n.b)("system/inquiryTakeoutsPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const i=await Object(r.c)(),l=await s.a.sendPost("/api/inquiryTakeoutsPage",{page:a,token:i.token});return l.result?{takeouts:l.takeouts,page:a,aes:i.aesKey}:{takeouts:[],page:1,aes:""}})),m=(e,t,a,n)=>new Promise(((c,i)=>{Object(r.d)(((r,l)=>{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 O={new_organizations:b,move_organizations:o.map((e=>({id:Number(e),old_path:t[e].path}))),remove_organizations:d,remove_users:j};s.a.sendPost("/api/OSRProcess",{process:O,token:l}).then((e=>{e.result?c(e):(s.a.printError(e),i(e))}))}))})),E=()=>new Promise(((e,t)=>{s.a.sendPost("/api/getOSROrgs",{}).then((a=>{a.result?e(a.ids):(s.a.printError(a),t(a))}))})),g=e=>new Promise(((t,a)=>{s.a.sendPost("/api/setOSROrgs",{ids:e}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))})),f=e=>new Promise(((t,a)=>{Object(r.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))}))}))})),x=e=>new Promise(((t,a)=>{Object(r.d)(((n,c)=>{s.a.sendPost("/api/naturalizeFiles",{path:e,token:c}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))}))})),N=(e,t,a)=>new Promise(((n,c)=>{Object(r.d)(((r,i)=>{s.a.sendPost("/api/setRecommendUpdateNewClient",{user_id:e,fid:t,recommend_type:a,token:i}).then((e=>{e.result?n(e):(s.a.printError(e),c(e))}))}))})),S=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((c,r)=>{s.a.sendPost("/api/getRecommendUpdateNewClient",{user_id:e,fid:t,token:r}).then((e=>{e.result?a(e.users):(s.a.printError(e),n(e))}))}))})),T=e=>new Promise(((t,a)=>{Object(r.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))}))}))})),R=()=>new Promise(((e,t)=>{s.a.sendPost("/api/getApprovalTakeoutManageTypes",{}).then((a=>{a.result?e(a.folders):(s.a.printError(a),t(a))}))})),v=e=>new Promise(((t,a)=>{Object(r.d)(((n,c)=>{s.a.sendPost("/api/setApprovalTakeoutManageTypes",{folders:e}).then((e=>{e.result?t(e.result):(s.a.printError(e),a(e))}))}))})),L=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))}))})),A=(e,t)=>new Promise(((a,n)=>{Object(r.d)(((c,r)=>{s.a.sendPost("/api/setAutoApprovalSettingsForFolder",{fid:e,users:t,token:r}).then((e=>{e.result?a(e.result):(s.a.printError(e),n(e))}))}))})),C=(e,t,a,n)=>new Promise(((c,i)=>{Object(r.d)(((r,l)=>{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),i(e))}))}))})),y=()=>new Promise(((e,t)=>{Object(r.d)(((a,n)=>{s.a.sendPost("/api/collectLogsStatus",{}).then((a=>{a.result?e(a):(s.a.printError(a),t(a))}))}))})),P=e=>new Promise(((t,a)=>{Object(r.d)(((n,c)=>{s.a.sendPost("/api/getCollectedLogs",{conditions:e}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))}))})),I=e=>new Promise(((t,a)=>{Object(r.d)(((n,c)=>{s.a.sendPost("/api/getCollectedLogsPage",{page:e}).then((e=>{e.result?t(e.logs):(s.a.printError(e),a(e))}))}))})),w=(e,t,a,n)=>new Promise(((c,r)=>{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),r(e))}))})),D=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))}))})),M=Object(n.b)("system/offlineDriveTakeoutFiles",(async(e,t)=>{let{page:a,day:n,userID:c}=e,{dispatch:i,getState:l}=t;const o=await Object(r.c)(),d=await s.a.sendPost("/api/offlineDriveTakeoutFiles",{rows_per_page:l().docbase.admin.system.offlineTakeoutsObj.rowsPerPage,duration:n,duration_type:4,user_id:c,token:o.token});return d.result?(i(k({page:a})),{total_rows:d.total_rows,total_pages:d.total_pages}):{total_rows:0,total_pages:0}})),k=Object(n.b)("system/offlineDriveTakeoutFilesPage",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:c}=t;const i=await Object(r.c)(),l=await s.a.sendPost("/api/offlineDriveTakeoutFilesPage",{page:a,token:i.token});return l.result?{takeouts:l.takeouts,page:a,aes:i.aesKey}:{takeouts:[],page:1,aes:""}})),G=async()=>{const e=await s.a.sendPost("/api/storageDashboard",{});return e.result?e.values[0]:{total:{},types:{},organizes:[],shareds:[],privates:[],collects:[]}},U=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:[]},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:{[l.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},[O.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},[u.fulfilled]:(e,t)=>{e.osrObj=t.payload},[p.fulfilled]:(e,t)=>{e.legacyObj=t.payload},[h.fulfilled]:(e,t)=>{e.takeoutsObj.totalRows=t.payload.total_rows,e.takeoutsObj.totalPages=t.payload.total_pages},[_.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},[M.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.totalRows=t.payload.total_rows,e.offlineTakeoutsObj.totalPages=t.payload.total_pages},[k.fulfilled]:(e,t)=>{e.offlineTakeoutsObj.takeouts=t.payload.takeouts.map((e=>(e.user_id=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:F,changeTakeoutsRowsPerPage:W,changeOfflineTakeoutsRowsPerPage:H}=U.actions;t.f=U.reducer},28:function(e,t,a){"use strict";var n,s,c=a(105),r=a(2),i=a(1),l=a(993),o=a(515),d=a.n(o),b=a(516),j=a.n(b),O=a(517),u=a.n(O),p=a(518),h=a.n(p),_=a(519),m=a.n(_),E=a(520),g=a.n(E),f=a(521),x=a.n(f),N=a(522),S=a.n(N),T=a(523),R=a.n(T),v=a(524),L=a.n(v),A=a(525),C=a.n(A),y=a(526),P=a.n(y),I=a(527),w=a.n(I),D=a(528),M=a.n(D),k=a(529),G=a.n(k),U=a(530),F=a.n(U),W=a(531),H=a.n(W),B=a(532),z=a.n(B),Y=a(533),V=a.n(Y),K=a(534),X=a.n(K),q=a(535),J=a.n(q),Z=a(536),Q=a.n(Z),$=a(537),ee=a.n($),te=a(538),ae=a.n(te),ne=a(539),se=a.n(ne),ce=a(540),re=a.n(ce);const ie=["title","titleId"];function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t({toggleSidebar:i})));const i=()=>{n(!a)};return Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)(h.a,{lgUp:"permanent"===e.variant,children:Object(j.jsx)(_.a,{variant:"temporary",anchor:e.position,open:a,onOpen:e=>{},onClose:e=>i(),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)(m,Object(u.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)(m,Object(u.a)({},e))})})]})}var g=i.a.forwardRef(E);const f=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:"40px 0px 30px"},"&>div":{height:70}},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:f},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:f,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=i.a.forwardRef(((e,t)=>{const a=Object(r.useRef)(null),s=Object(r.useRef)(null),l=Object(r.useRef)(null),o=x(e);return i.a.useImperativeHandle(t,(()=>({rootRef:l,toggleLeftSidebar:()=>{a.current.toggleSidebar()},toggleRightSidebar:()=>{s.current.toggleSidebar()}}))),Object(j.jsx)("div",{className:Object(c.a)(o.root,e.innerScroll&&o.innerScroll),ref:l,children:Object(j.jsxs)("div",{className:"flex flex-auto flex-col container z-10 h-full",children:[e.header&&e.sidebarInner&&Object(j.jsx)(O,{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:l}),Object(j.jsxs)(n.a,{className:o.contentWrapper,enable:e.innerScroll&&!e.sidebarInner,children:[e.header&&!e.sidebarInner&&Object(j.jsx)(O,{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:l})]})]})})}));N.defaultProps={};var S=i.a.memo(N)},34:function(e,t,a){"use strict";a.d(t,"g",(function(){return o})),a.d(t,"b",(function(){return b})),a.d(t,"j",(function(){return j})),a.d(t,"n",(function(){return O})),a.d(t,"o",(function(){return u})),a.d(t,"k",(function(){return p})),a.d(t,"e",(function(){return h})),a.d(t,"l",(function(){return _})),a.d(t,"d",(function(){return m})),a.d(t,"h",(function(){return E})),a.d(t,"i",(function(){return g})),a.d(t,"a",(function(){return f})),a.d(t,"c",(function(){return x})),a.d(t,"m",(function(){return N}));var n=a(3),s=a(22),c=a(6),r=a(13),i=a(15),l=a(12);const o=Object(s.b)("account/getUserList",(async()=>{const e=await Object(i.c)(),t=await c.a.sendPost("/api/userList",{token:e.token});return t.result?{users:t.users,aes:e.aesKey}:(c.a.printError(t),[])})),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 r=await Object(i.c)(),o=await c.a.sendPost("/api/userPermissionList",{user_id:a,token:r.token}),d={privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};if(o.permissions.length>0)for(let i=0;inew Promise(((O,u)=>{Object(i.d)(((i,p)=>{c.a.sendPost("/api/addUser",{user_id:r.a.encryptAES(i,e,"utf8","hex"),password:r.a.encryptAES(i,t,"utf8","hex"),name:a,privilege:n,access_level:s,email:l||"",local_account:JSON.parse(o),no_sync_osr:!1,allow_multiple_logins:d,expire_at:b,dataleak_control:j,token:p}).then((e=>{e.result?O(e):(c.a.printError(e),u(e))}))}))})),j=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,i)=>{c.a.sendPost("/api/removeUser",{user_id:r.a.encryptAES(s,e,"utf8","hex"),handover_user_id:t?r.a.encryptAES(s,t,"utf8","hex"):"",token:i}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),O=(e,t,a)=>new Promise(((s,l)=>{Object(i.d)(((i,o)=>{const d=Object(n.a)(Object(n.a)({},e),{},{[t]:a,token:o});d.user_id=r.a.encryptAES(i,e.user_id,"utf8","hex"),c.a.sendPost("/api/updateUser",d).then((e=>{e.result?s(e):(c.a.printError(e),l(e))}))}))})),u=e=>new Promise(((t,a)=>{Object(i.d)(((s,i)=>{const l=Object(n.a)(Object(n.a)({},e),{},{token:i});l.user_id=r.a.encryptAES(s,e.user_id,"utf8","hex"),c.a.sendPost("/api/updateUser",l).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),p=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,i)=>{c.a.sendPost("/api/resetPassword",{user_id:r.a.encryptAES(s,e,"utf8","hex"),password:r.a.encryptAES(s,t,"utf8","hex"),token:i}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),h=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/createPaperPassword",{user_id:r.a.encryptAES(n,e,"utf8","hex"),token:s}).then((e=>{e.result?(e.passwords=r.a.decryptAES(n,e.passwords,"hex","utf8"),t(e)):(c.a.printError(e),a(e))}))}))})),_=e=>new Promise(((t,a)=>{Object(i.d)(((n,s)=>{c.a.sendPost("/api/resetTOTP",{user_id:r.a.encryptAES(n,e,"utf8","hex"),token:s}).then((e=>{e.result?t(e):(c.a.printError(e),a(e))}))}))})),m=(e,t)=>new Promise(((a,n)=>{Object(i.d)(((s,i)=>{c.a.sendPost("/api/changePassword",{current_password:r.a.encryptAES(s,e,"utf8","hex"),new_password:r.a.encryptAES(s,t,"utf8","hex"),token:i}).then((e=>{e.result?a(e):(c.a.printError(e),n(e))}))}))})),E=()=>new Promise(((e,t)=>{Object(i.d)(((a,n)=>{c.a.sendPost("/api/userList",{token:n}).then((n=>{n.result?e(n.users.map((e=>(e.user_id=r.a.decryptAES(a,e.user_id,"hex","utf8"),e)))):t(n)}))}))})),g=()=>new Promise(((e,t)=>{Object(i.d)(((a,s)=>{c.a.sendPost("/api/userList",{token:s}).then((s=>{if(s.result){const t={};s.users.forEach((e=>{const s=r.a.decryptAES(a,e.user_id,"hex","utf8");t[s]=Object(n.a)(Object(n.a)({},e),{},{user_id:s,id:s,name:r.a.decryptAES(a,e.name,"hex","utf8")})})),e(t)}else t(s)}))}))})),f=()=>new Promise(((e,t)=>{Object(i.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)}))}))})),x=(e,t,a)=>new Promise(((n,s)=>{Object(i.d)(((i,l)=>{c.a.sendPost("/api/approveOfflineDrive",{token:l,offline_drive_id:e,approve:t,reason:2===t&&""!==a?r.a.encryptAES(i,a,"utf8","hex"):""}).then((e=>{e.result?n(e):s(e)}))}))})),N=async e=>{if(""===e)return{privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};const t=await Object(i.c)(),a=await c.a.sendPost("/api/userPermissionList",{user_id:e,token:t.token}),n={privateSize:0,privatePath:"",collectorSize:0,collectorPath:""};if(a.permissions.length>0)for(let s=0;s{const a={};if(t.payload.users){let n=0;const s=t.payload.users.map(((e,s)=>(e.user_id=r.a.decryptAES(t.payload.aes,e.user_id,"hex","utf8"),e.name=r.a.decryptAES(t.payload.aes,e.name,"hex","utf8"),e.email=r.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=S.reducer},378:function(e,t,a){"use strict";var n=a(105),s=a(2),c=(a(1),a(10)),r=a.p+"static/media/wc_avi.6e971ffa.svg",i=a.p+"static/media/wc_doc.267e5869.svg",l=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",O=a.p+"static/media/wc_psd.708f3f0b.svg",u=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",_=a.p+"static/media/wc_lock.57744f5b.svg",m=a.p+"static/media/wc_unlock.d61dd626.svg",E=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(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:m,alt:"file-icon"}):Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:_,alt:"file-icon"});else switch(a){case"avi":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:r,alt:"file-icon"});break;case"doc":case"docx":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:i,alt:"file-icon"});break;case"jpg":case"jpeg":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:o,alt:"file-icon"});break;case"pdf":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:d,alt:"file-icon"});break;case"png":n=Object(E.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(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:j,alt:"file-icon"});break;case"psd":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:O,alt:"file-icon"});break;case"txt":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:u,alt:"file-icon"});break;case"xls":case"xlsx":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:p,alt:"file-icon"});break;case"zip":n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:h,alt:"file-icon"});break;default:n=Object(E.jsx)("img",{className:Object(s.a)(e.className,e.isFileList?t.fileListIcon:t.fileIcon),src:l,alt:"file-icon"})}return Object(E.jsx)("div",{className:e.className,children:n})}},45:function(e,t,a){"use strict";a.d(t,"b",(function(){return S})),a.d(t,"c",(function(){return L})),a.d(t,"e",(function(){return A})),a.d(t,"f",(function(){return P})),a.d(t,"g",(function(){return I})),a.d(t,"d",(function(){return w})),a.d(t,"h",(function(){return W})),a.d(t,"i",(function(){return H})),a.d(t,"j",(function(){return B}));var n=a(3),s=a(555),c=a(75),r=a(274),i=a(22),l=a(24);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(395),j=a(188),O=a(512),u=a.n(O);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"}}}},_={typography:{htmlFontSize:10,body1:{fontSize:"1.4rem"},body2:{fontSize:"1.4rem"}}},m={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 E(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:l.a.merge({},e,{palette:{type:"dark",background:{paper:"#1E2125",default:"#121212"}}}),mainThemeLight:l.a.merge({},e,{palette:{type:"light",background:{paper:"#FFFFFF",default:"#F7F7F7"}}})}}var f={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(227);function S(e,t){const a=l.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,R=e=>e.fuse.settings.current.direction;function v(e,t,a){const n=l.a.merge({},h,e[t],_);return Object(s.a)(l.a.merge({},n,{mixins:E(n),direction:a}))}const L=e=>{return t=e,Object(c.getContrastRatio)(t,"#ffffff")>=3?C:y;var t},A=Object(r.a)([T,R,e=>e.fuse.settings.current.theme.main],((e,t,a)=>v(e,a,t))),C=Object(r.a)([T,R],((e,t,a)=>v(e,"mainThemeDark",t))),y=Object(r.a)([T,R],((e,t,a)=>v(e,"mainThemeLight",t))),P=Object(r.a)([T,R,e=>e.fuse.settings.current.theme.navbar],((e,t,a)=>v(e,a,t))),I=Object(r.a)([T,R,e=>e.fuse.settings.current.theme.toolbar],((e,t,a)=>v(e,a,t))),w=Object(r.a)([T,R,e=>e.fuse.settings.current.theme.footer],((e,t,a)=>v(e,a,t))),D=0!==Object.keys(x).length?x:m,M=function(){const e=f.layout&&f.layout.style?f.layout.style:"layout1",t={style:e,config:N.a[e].defaults};return l.a.merge({},p,{layout:t},f,function(){const e=u.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:l.a.merge({},M),current:l.a.merge({},M),themes:k},U=Object(i.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:l.a.merge({},a),current:l.a.merge({},a),themes:s})},setInitialSettings:(e,t)=>l.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:l.a.merge({},e.defaults),current:l.a.merge({},e.defaults),themes:a})}}}),{resetSettings:F,setDefaultSettings:W,setInitialSettings:H,setSettings:B}=U.actions;t.a=U.reducer},491:function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var n=a(3),s=a(1),c=a.n(s),r=a(567),i=a(105),l=a(563),o=a(559),d=a(564),b=a(376),j=a(236),O=a(132),u=a(12),p=a(7),h=a(13),_=a(8),m=a(34),E=a(2),g=a(0);const f="mobile"===sessionStorage.getItem("device"),x=c.a.forwardRef((function(e,t){return Object(g.jsx)(l.a,Object(n.a)({direction:"up",ref:t},e))})),N=Object(i.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"}},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(r.a)("docbase"),s=c.a.useRef(null),[i,l]=c.a.useState(""),[S,T]=c.a.useState(""),[R,v]=c.a.useState("");return c.a.useEffect((()=>{T(""),v("")}),[e.open]),c.a.useEffect((()=>{e.curPassword&&""!==e.curPassword&&(l(e.curPassword),e.open&&s.current.focus())}),[e.curPassword]),Object(g.jsx)("div",{children:Object(g.jsxs)(o.a,{className:Object(E.a)(a.root,f?"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:"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:i,onChange:e=>l(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:R,onChange:e=>v(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)(O.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(O.a,{variant:"contained",color:"secondary",className:"",disabled:!S&&S.length<=0||!R&&R.length<=0,type:"button",onClick:a=>{S!==R?t(Object(_.c)({message:n("CHANGE_PASSWORD_ERROR_MESSAGE_1")})):Object(m.d)(i,S).then((t=>{localStorage.setItem("auth",h.a.encryptAESCTR(S)),e.fnHandleComplete()})).catch((e=>{let a="";e.error===u.bb?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_2"):e.error===u.eb?a=n("CHANGE_PASSWORD_ERROR_MESSAGE_3"):e.error===u.ab&&(a=n("CHANGE_PASSWORD_ERROR_MESSAGE_4")),t(Object(_.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}},494:function(e,t,a){"use strict";t.a=a.p+"static/media/header_profile.78c8b41d.svg"},495:function(e,t,a){"use strict";t.a=a.p+"static/media/header_logout.5427545f.svg"},6:function(e,t,a){"use strict";var n=a(76),s=a.n(n),c=a(204),r=a.n(c),i=a(13);const l=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||(localStorage.setItem("doc_user",""),localStorage.setItem("two_auth_flag",0),window.location.href=0===window.location.pathname.indexOf("/wc")?"/login":"/admin")),e)),(e=>(void 0===e.response&&console.error(e.message),Promise.reject(e)))),t.a=new class{constructor(){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;s{const c=this.jsonToParameter(t);s.a.post(l+e,c,{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0}).then((e=>{a(e.data)})).catch((e=>{console.error(e),n(e)})).finally((()=>{}))}))}sendGet(e,t){return new Promise(((a,n)=>{const c=this.jsonToParameter(t);s.a.get("".concat(l+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 r=this.jsonToFormData(t,a,n);s.a.post(e,r,{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}r.a.createWriteStream(t)}))}))}printError(e){console.error("error code: ".concat(e.error)),console.error("error msg : ".concat(e.message))}}},604:function(e,t,a){},69:function(e,t,a){"use strict";a.d(t,"e",(function(){return j})),a.d(t,"g",(function(){return O})),a.d(t,"i",(function(){return u})),a.d(t,"c",(function(){return p})),a.d(t,"a",(function(){return h})),a.d(t,"j",(function(){return _})),a.d(t,"h",(function(){return m})),a.d(t,"f",(function(){return E})),a.d(t,"d",(function(){return g}));var n=a(22),s=a(6),c=a(13),r=a(15);const i=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:{}}),l={doLogin:(e,t,a)=>new Promise(((n,i)=>{Object(r.d)(((r,l)=>{s.a.sendPost("/api/login",{user_id:c.a.encryptAES(r,e,"utf8","hex"),password:c.a.encryptAES(r,t,"utf8","hex"),client_type:5,pc_id:"qq",version:"2.0.0.0",token:l,domain:c.a.encryptAES(r,a,"utf8","hex")||""}).then((t=>{t.result?(s.a.sendPost("/api/loginInfo",{}).then((t=>{t.result&&(localStorage.setItem("doc_name",t.user_name),localStorage.setItem("doc_user",e),localStorage.setItem("login","true"))})),localStorage.setItem("two_auth_flag",t.two_factor_authentication_flag),n(t)):(s.a.printError(t),i(t))}))}))})),getTOTPSecretKey:e=>new Promise(((t,a)=>{Object(r.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(r.d)(((r,i)=>{s.a.sendPost("/api/registerTOTP",{key:c.a.encryptAES(r,e,"utf8","hex"),value:c.a.encryptAES(r,t,"utf8","hex"),token:i}).then((e=>{e.result?a(e):(s.a.printError(e),n(e))}))}))})),directRegisterTOTP:(e,t)=>new Promise(((a,n)=>{Object(r.d)(((r,i)=>{s.a.sendPost("/api/registerTOTP",{key:c.a.encryptAES(r,e,"utf8","hex"),value:c.a.encryptAES(r,t,"utf8","hex"),password:c.a.encryptAES(r,c.a.decryptAESCTR(localStorage.getItem("auth")),"utf8","hex"),token:i}).then((e=>{e.result?a(e):(s.a.printError(e),n(e))}))}))})),authTOTP:e=>new Promise(((t,a)=>{Object(r.d)(((n,r)=>[s.a.sendPost("/api/totpAuth",{value:c.a.encryptAES(n,e,"utf8","hex"),token:r}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))]))})),requestPaperPassword:()=>new Promise(((e,t)=>{Object(r.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(r.d)(((n,r)=>[s.a.sendPost("/wcapi/paperPasswordAuth",{answer:c.a.encryptAES(n,e,"utf8","hex"),token:r}).then((e=>{e.result?t(e):(s.a.printError(e),a(e))}))]))})),doLogout:()=>new Promise(((e,t)=>{Object(r.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))}))}))},{loginSuccess:o,loginError:d,test:b}=i.actions,{doLogin:j,getTOTPSecretKey:O,registerTOTP:u,directRegisterTOTP:p,authTOTP:h,requestPaperPassword:_,paperPasswordAuth:m,doLogout:E,doIntegratedLogin:g}=l;t.b=i.reducer},694:function(e,t){},696:function(e,t){},708:function(e,t){},710:function(e,t){},737:function(e,t){},739:function(e,t){},740:function(e,t){},745:function(e,t){},747:function(e,t){},766:function(e,t){},778:function(e,t){},781:function(e,t){},8:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return o}));var n=a(3),s=a(22);const c={state:null,options:{anchorOrigin:{vertical:"top",horizontal:"center"},autoHideDuration:3e3,message:"Hi",variant:null}},r=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:i,showMessage:l,showErrorMessage:o}=r.actions;t.a=r.reducer},901:function(e,t,a){"use strict";a.r(t);var n=a(1),s=a.n(n),c=a(38),r=a.n(c),i=(a(602),a(103)),l=a(235);i.a.use(l.e).init({resources:{en:{translation:{"Welcome to React":"Welcome to React and react-i18next"}}},lng:"ko",keySeparator:!1,interpolation:{escapeValue:!1}});var o=i.a,d=(a(604),a(3)),b=a(503),j=a(24),O=a(164);class u{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))}}u.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),r=0;r1?t-1:0),n=1;n{e.persist(),s((t=>j.a.setIn(Object(d.a)({},t),e.target.name,"checkbox"===e.target.type?e.target.checked:e.target.value)))}),[]),r=Object(n.useCallback)((()=>{j.a.isEqual(e,a)||s(e)}),[a,e]),i=Object(n.useCallback)(((e,t)=>{s((a=>j.a.setIn(a,e,t)))}),[]),l=Object(n.useCallback)((e=>{e&&e.preventDefault(),t&&t()}),[t]);return{form:a,handleChange:c,handleSubmit:l,resetForm:r,setForm:s,setInForm:i}};var S=function(e,t,a){return Object(n.useRef)(j.a.debounce(e,t,a)).current};var T=function(e,t){const a=Object(n.useRef)(e);Object(n.useEffect)((()=>{a.current=e}),[e]),Object(n.useEffect)((()=>{let n;return t&&e&&"function"===typeof e&&(n=setTimeout(a.current,t||0)),()=>{n&&clearTimeout(n)}}),[e,t])};var R=a(264),v=a.n(R);function L(e){const t=s.a.useRef();return v()(e,t.current)||(t.current=e),t.current}var A=function(e,t){s.a.useEffect(e,L(t))};var C=a(185),y=a.n(C),P=a(559),I=a(25);var w=function(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.dialog.state})),n=Object(_.c)((e=>{let{fuse:t}=e;return t.dialog.options}));return Object(g.jsx)(P.a,Object(d.a)({open:a,onClose:e=>t(Object(I.a)()),"aria-labelledby":"fuse-dialog-title",classes:{paper:"rounded-8"}},n))},D=a(192),M=a(191),k=a(396),G=a(993),U=a(374),F=a(992),W=a(907),H=a(105),B=a(106),z=a(2),Y=a(8);const V=Object(H.a)((e=>({root:{},success:{backgroundColor:D.a[600],color:"#FFFFFF"},error:{backgroundColor:e.palette.error.dark,color:e.palette.getContrastText(e.palette.error.dark)},info:{backgroundColor:M.a[600],color:"#FFFFFF"},warning:{backgroundColor:k.a[600],color:"#FFFFFF"}}))),K={success:"check_circle",warning:"warning",error:"error_outline",info:"info"};function X(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.message.state})),n=Object(_.c)((e=>{let{fuse:t}=e;return t.message.options})),s=V();return Object(g.jsx)(F.a,Object(d.a)(Object(d.a)({},n),{},{open:a,onClose:(e,a)=>{"clickaway"===a&&"/users"===e.view.location.pathname||t(Object(Y.b)())},classes:{root:s.root},ContentProps:{variant:"body2",headlineMapping:{body1:"div",body2:"div"}},children:Object(g.jsx)(W.a,{className:Object(z.a)(s[n.variant]),message:Object(g.jsxs)("div",{className:"flex items-center",children:[K[n.variant]&&Object(g.jsx)(G.a,{color:"inherit",children:K[n.variant]}),Object(g.jsx)(B.a,{className:"mx-8",children:n.message})]}),action:[Object(g.jsx)(U.a,{"aria-label":"Close",color:"inherit",onClick:()=>t(Object(Y.b)()),children:Object(g.jsx)(G.a,{children:"close"})},"close")]})}))}var q=s.a.memo(X),J=a(21),Z=a(994);function Q(e){const[t,a]=Object(n.useState)(!e.delay);return T((()=>{a(!0)}),e.delay),t?Object(g.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-12",children:[Object(g.jsx)(B.a,{className:"text-20 mb-16",color:"textSecondary",children:e.msg&&""!==e.msg?e.msg:"Loading..."}),Object(g.jsx)(Z.a,{className:"w-xs max-w-full",color:"secondary"})]}):null}Q.defaultProps={delay:!1};var $=Q;function ee(e){return Object(g.jsx)(s.a.Suspense,{fallback:Object(g.jsx)($,Object(d.a)({},e.loadingProps)),children:e.children})}ee.defaultProps={loadingProps:{delay:0}};var te=ee,ae=a(227),ne=a(912),se=a(998),ce=a(913),re=a(996),ie=a(1038),le=a(997),oe=a(923),de=a(999),be=a(22),je=(a(409),a(228)),Oe=a(45),ue=a(76),pe=a.n(ue),he=a(286),_e=a.n(he);var me=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;pe.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 pe.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=_e()(e);return t||null}}init(e){this.handleAuthentication(),e(!0)}},Ee=a(172);a(688);var ge={};var fe=new class{constructor(){this.getUserData=e=>!!Ee.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=>!!Ee.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(ge).length||ge.constructor!==Object?Ee.a.apps.length||(Ee.a.initializeApp(ge),this.db=Ee.a.database(),this.auth=Ee.a.auth(),e(!0)):e(!1)}};class xe extends p.EventEmitter{constructor(){super(...arguments),this.setInterceptors=()=>{pe.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)=>{pe.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)=>{pe.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)=>{pe.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=>pe.a.post("/api/auth/user/update",{user:e}),this.setSession=e=>{e?(localStorage.setItem("jwt_access_token",e),pe.a.defaults.headers.common.Authorization="Bearer ".concat(e)):(localStorage.removeItem("jwt_access_token"),delete pe.a.defaults.headers.common.Authorization)},this.logout=()=>{this.setSession(null)},this.isAuthTokenValid=e=>{if(!e)return!1;const t=_e()(e),a=Date.now()/1e3;return!(t.expwindow.localStorage.getItem("jwt_access_token")}init(){this.setInterceptors(),this.handleAuthentication()}}var Ne=new xe;const Se=e=>async(t,a)=>{je.a.location.state={redirectUrl:e.redirectUrl},t(Ae(e))},Te=e=>async(t,a)=>{const n=a().auth.user,s=j.a.merge({},n,{data:{settings:e}});return t(Re(s)),t(Se(s))},Re=e=>async(t,a)=>{if(e.role&&0!==e.role.length)switch(e.from){case"firebase":fe.updateUserData(e).then((()=>{t(Object(Y.d)({message:"User data saved to firebase"}))})).catch((e=>{t(Object(Y.d)({message:e.message}))}));break;case"auth0":me.updateUserData({settings:e.data.settings,shortcuts:e.data.shortcuts}).then((()=>{t(Object(Y.d)({message:"User data saved to auth0"}))})).catch((e=>{t(Object(Y.d)({message:e.message}))}));break;default:Ne.updateUserData(e).then((()=>{t(Object(Y.d)({message:"User data saved with api"}))})).catch((e=>{t(Object(Y.d)({message:e.message}))}))}},ve={role:[],data:{displayName:"John Doe",photoURL:"assets/images/avatars/Velazquez.jpg",email:"johndoe@withinpixels.com",shortcuts:["calendar","mail","contacts","todo"]}},Le=Object(be.d)({name:"auth/user",initialState:ve,reducers:{setUser:(e,t)=>t.payload,userLoggedOut:(e,t)=>ve},extraReducers:{}}),{setUser:Ae,userLoggedOut:Ce}=Le.actions;var ye=Le.reducer;const Pe=Object(H.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 Ie(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{auth:t}=e;return t.user})),n=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.themes})),s=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current})),c=Pe(e);function r(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(Oe.h)(n)):t(Te(n))}const i=e=>{let{value:t,name:a,handleThemeChange:s}=e;return Object(g.jsx)(oe.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)(re.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)}))})},l=()=>Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Style"}),Object(g.jsx)(le.a,{"aria-label":"Layout Style",name:"layout.style",className:c.group,value:s.layout.style,onChange:e=>r(e),children:Object.entries(ae.a).map((e=>{let[t,a]=e;return Object(g.jsx)(se.a,{value:t,control:Object(g.jsx)(ie.a,{}),label:a.title},t)}))})]}),o=()=>Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Direction"}),Object(g.jsxs)(le.a,{"aria-label":"Layout Style",name:"direction",className:c.group,value:s.direction,onChange:e=>r(e),row:!0,children:[Object(g.jsx)(se.a,{value:"rtl",control:Object(g.jsx)(ie.a,{}),label:"RTL"},"rtl"),Object(g.jsx)(se.a,{value:"ltr",control:Object(g.jsx)(ie.a,{}),label:"LTR"},"ltr")]})]}),d=(e,t)=>Object.entries(e).map((e=>{let[a,n]=e;const i=t?"".concat(t,".").concat(a):a;switch(n.type){case"radio":return Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:n.title}),Object(g.jsx)(le.a,{"aria-label":n.title,name:"layout.config.".concat(i),className:c.group,value:j.a.get(s.layout.config,i),onChange:e=>r(e),row:n.options.length<4,children:n.options.map((e=>Object(g.jsx)(se.a,{value:e.value,control:Object(g.jsx)(ie.a,{}),label:e.name},e.value)))})]},i);case"switch":return Object(g.jsx)(ne.a,{component:"fieldset",className:c.formControl,children:Object(g.jsx)(se.a,{classes:{},control:Object(g.jsx)(de.a,{name:"layout.config.".concat(i),checked:j.a.get(s.layout.config,i),onChange:e=>r(e),"aria-label":n.title}),label:Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:n.title})})},i);case"group":return Object(g.jsxs)("div",{className:c.formGroup,children:[Object(g.jsx)(B.a,{className:c.formGroupTitle,color:"textSecondary",children:n.title}),d(n.children,a)]},i);default:return""}}));function b(){const{form:e}=ae.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)(B.a,{className:c.formGroupTitle,color:"textSecondary",children:"Layout"}),Object(g.jsx)(l,{}),Object(g.jsx)(b,{}),Object(g.jsx)(B.a,{className:"my-16 text-12 italic",color:"textSecondary",children:"*Not all option combinations are available"})]}),Object(g.jsxs)("div",{className:Object(z.a)(c.formGroup,"pb-16"),children:[Object(g.jsx)(B.a,{className:c.formGroupTitle,color:"textSecondary",children:"Theme"}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Main"}),Object(g.jsx)(i,{value:s.theme.main,name:"theme.main",handleThemeChange:e=>r(e)})]}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Navbar"}),Object(g.jsx)(i,{value:s.theme.navbar,name:"theme.navbar",handleThemeChange:e=>r(e)})]}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Toolbar"}),Object(g.jsx)(i,{value:s.theme.toolbar,name:"theme.toolbar",handleThemeChange:e=>r(e)})]}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Footer"}),Object(g.jsx)(i,{value:s.theme.footer,name:"theme.footer",handleThemeChange:e=>r(e)})]})]}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Custom Scrollbars"}),Object(g.jsx)(de.a,{checked:s.customScrollbars,onChange:e=>r(e),"aria-label":"Custom Scrollbars",name:"customScrollbars"})]}),Object(g.jsxs)(ne.a,{component:"fieldset",className:c.formControl,children:[Object(g.jsx)(ce.a,{component:"legend",className:"text-14",children:"Animations"}),Object(g.jsx)(de.a,{checked:s.animations,onChange:e=>r(e),"aria-label":"Animations",name:"animations"})]}),Object(g.jsx)(o,{})]})}var we=s.a.memo(Ie),De=a(188),Me=a(563),ke=a(55);const Ge=Object(H.a)((e=>({root:{}})));function Ue(e){let{theme:t,className:a,id:n,onSelect:s}=e;const c=Object(ke.a)(),r=t.palette.primary[500]?t.palette.primary[500]:t.palette.primary.main,i=c.palette.getContrastText(r),l=t.palette.secondary[500]?t.palette.secondary[500]:t.palette.secondary.main,o=c.palette.getContrastText(l),d=t.palette.background.default,b=c.palette.getContrastText(t.palette.background.default),j=t.palette.background.paper,O=c.palette.getContrastText(t.palette.background.paper);return Object(g.jsxs)("div",{className:Object(z.a)(a,"mb-8"),children:[Object(g.jsxs)("button",{className:Object(z.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:r,color:i},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:l,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:O},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)(B.a,{className:"font-bold w-full text-center mt-12",children:n})]})}function Fe(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{auth:t}=e;return t.user})),n=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.themes})),s=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current})),c=Ge(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)(Ue,{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(Oe.h)(n)):t(Te(n))}(e)})},n)}))})})}var We=s.a.memo(Fe),He=a(365);const Be=s.a.forwardRef((function(e,t){const a=Object(ke.a)();return Object(g.jsx)(Me.a,Object(d.a)({direction:"ltr"===a.direction?"left":"right",ref:t},e))})),ze=Object(H.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(De.a[500]),backgroundColor:De.a[500],"&:hover":{backgroundColor:De.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 Ye(){const e=ze(),t=Object(ke.a)(),[a,s]=Object(n.useState)(!1),c={onSwipedLeft:()=>a&&"rtl"===t.direction&&l(),onSwipedRight:()=>a&&"ltr"===t.direction&&l()},r=Object(He.useSwipeable)(c),i=Object(He.useSwipeable)(c),l=()=>{s(!1)};return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(P.a,Object(d.a)(Object(d.a)({TransitionComponent:Be,"aria-labelledby":"settings-panel","aria-describedby":"settings",open:"settings"===a,keepMounted:!0,onClose:l,BackdropProps:{invisible:!0},classes:{paper:Object(z.a)(e.dialogPaper,"shadow-lg")}},r),{},{children:Object(g.jsxs)(J.a,{className:"p-16 sm:p-32",children:[Object(g.jsx)(U.a,{className:"fixed top-0 ltr:right-0 rtl:left-0 z-10",onClick:l,children:Object(g.jsx)(G.a,{children:"close"})}),Object(g.jsx)(B.a,{className:"mb-32",variant:"h6",children:"Theme Settings"}),Object(g.jsx)(we,{})]})})),Object(g.jsx)(P.a,Object(d.a)(Object(d.a)({TransitionComponent:Be,"aria-labelledby":"schemes-panel","aria-describedby":"schemes",open:"schemes"===a,keepMounted:!0,onClose:l,BackdropProps:{invisible:!0},classes:{paper:Object(z.a)(e.dialogPaper,"shadow-lg")}},i),{},{children:Object(g.jsxs)(J.a,{className:"p-16 sm:p-32",children:[Object(g.jsx)(U.a,{className:"fixed top-0 ltr:right-0 rtl:left-0 z-10",onClick:l,children:Object(g.jsx)(G.a,{children:"close"})}),Object(g.jsx)(B.a,{className:"mb-32",variant:"h6",children:"Theme Color Schemes"}),Object(g.jsx)(B.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)(We,{})]})}))]})}var Ve=s.a.memo(Ye),Ke=a(1001),Xe=a(1e3),qe=a(915);function Je(e){const t=Object(_.c)(Oe.d);return Object(g.jsx)(Xe.a,{theme:t,children:Object(g.jsx)(Ke.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(qe.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)(B.a,{children:"Footer"})})})})}var Ze=s.a.memo(Je);function Qe(){return Object(g.jsx)(g.Fragment,{})}var $e=s.a.memo(Qe),et=a(1042),tt=a(1041),at=a(917),nt=a(1003),st=a(1002);const ct=Object(be.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:rt,navbarOpenFolded:it,navbarCloseFolded:lt,navbarToggleMobile:ot,navbarOpenMobile:dt,navbarCloseMobile:bt}=ct.actions;var jt=ct.reducer;const Ot=Object(H.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 ut(e){const t=Ot(e),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(_.b)();return Object(g.jsx)(st.a,{title:"Show Navigation",placement:"left"===a.navbar.position?"right":"left",children:Object(g.jsx)(nt.a,{className:Object(z.a)(t.mobileButton,a.navbar.position,e.className),onClick:e=>n(ot()),disableRipple:!0,children:Object(g.jsx)(G.a,{className:t.buttonIcon,color:"action",children:"menu"})})})}ut.defaultProps={};var pt=ut,ht=a(995),_t=a(911),mt=a(1005),Et=a(10),gt=a(567),ft=a(69);const xt=Object(H.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 Nt=function(){const e=xt(),{t:t}=Object(gt.a)("brand");return Object(g.jsxs)("div",{className:Object(z.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")})]})]})},St=a(1009),Tt=a(14),Rt=a.n(Tt),vt=a(73);var Lt=s.a.forwardRef(((e,t)=>Object(g.jsx)(vt.b,Object(d.a)({innerRef:t},e)))),At=a(373),Ct=a(207),yt=a(288),Pt=a(1004),It=a(1006);const wt=Object(H.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 Dt(e){const t=wt(e),{className:a,badge:n}=e;return Object(g.jsx)("div",{className:Object(z.a)(t.root,a,"item-badge"),style:{backgroundColor:n.bg,color:n.fg},children:n.title})}Dt.defaultProps={};var Mt=s.a.memo(Dt);const kt={};function Gt(e,t){kt[e]=t}function Ut(e){const t=kt[e.type];return t?Object(g.jsx)(t,Object(d.a)({},e)):null}const Ft=Object(H.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 Wt(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Ft(e),[s,r]=Object(n.useState)(!1),{item:i,nestedLevel:l,dense:o}=e,b=Object(ke.a)(),j=S((e=>{r(e)}),150);if(!Object(n.useMemo)((()=>p.hasPermission(i.auth,t)),[i.auth,t]))return null;function O(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)(_t.a,{button:!0,className:Object(z.a)("list-item",a.button,s&&"open",O(i,e.location.pathname)&&"active"),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-owns":s?"menu-list-grow":null,"aria-haspopup":"true",component:i.url?Lt:"li",to:i.url,role:"button",children:[i.icon&&Object(g.jsx)(G.a,{color:"action",className:"list-item-icon text-16 flex-shrink-0",children:i.icon}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:i.title,classes:{primary:"text-14"}}),i.badge&&Object(g.jsx)(Mt,{className:"mx-4",badge:i.badge}),Object(g.jsx)(U.a,{disableRipple:!0,className:"w-16 h-16 ltr:ml-4 rtl:mr-4 p-0",color:"inherit",children:Object(g.jsx)(G.a,{className:"text-16 arrow-icon",children:"ltr"===b.direction?"keyboard_arrow_right":"keyboard_arrow_left"})})]})})}}),c.createPortal(Object(g.jsx)(It.a,{placement:"ltr"===b.direction?"right":"left",eventsEnabled:s,positionFixed:!0,children:e=>{let{ref:t,style:n,placement:c,arrowProps:r}=e;return s&&Object(g.jsx)("div",{ref:t,style:Object(d.a)(Object(d.a)({},n),{},{zIndex:999+l+1}),"data-placement":c,className:Object(z.a)(a.popper,{[a.popperClose]:!s}),children:Object(g.jsx)(At.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(Ct.a,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:i.children&&Object(g.jsx)("ul",{className:Object(z.a)(a.children,"popper-navigation-list",o&&"dense","px-0"),children:i.children.map((e=>Object(g.jsx)(Ut,{type:"horizontal-".concat(e.type),item:e,nestedLevel:l+1,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})})}Wt.defaultProps={};var Ht=Object(E.h)(s.a.memo(Wt));const Bt=Object(H.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(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Bt(e),[s,r]=Object(n.useState)(!1),{item:i,nestedLevel:l,dense:o}=e,b=Object(ke.a)(),j=S((e=>{r(e)}),150);if(!Object(n.useMemo)((()=>p.hasPermission(i.auth,t)),[i.auth,t]))return null;function O(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)(_t.a,{button:!0,className:Object(z.a)("list-item ",a.root,"relative","level-".concat(l),O(i,e.location.pathname)&&"active"),onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),"aria-owns":s?"menu-list-grow":null,"aria-haspopup":"true",component:i.url?Lt:"li",to:i.url,role:"button",children:[i.icon&&Object(g.jsx)(G.a,{color:"action",className:"list-item-icon text-16 flex-shrink-0",children:i.icon}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:i.title,classes:{primary:"text-14"}}),l>0&&Object(g.jsx)(U.a,{disableRipple:!0,className:"w-16 h-16 ltr:ml-4 rtl:mr-4 p-0",color:"inherit",children:Object(g.jsx)(G.a,{className:"text-16 arrow-icon",children:"ltr"===b.direction?"keyboard_arrow_right":"keyboard_arrow_left"})})]})})}}),c.createPortal(Object(g.jsx)(It.a,{placement:0===l?"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:r}=e;return s&&Object(g.jsx)("div",{ref:t,style:Object(d.a)(Object(d.a)({},n),{},{zIndex:999+l}),"data-placement":c,className:Object(z.a)(a.popper,{[a.popperClose]:!s}),children:Object(g.jsx)(At.a,{in:s,id:"menu-list-grow",style:{transformOrigin:"0 0 0"},children:Object(g.jsx)(Ct.a,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),children:i.children&&Object(g.jsx)("ul",{className:Object(z.a)(a.children,"popper-navigation-list",o&&"dense","px-0"),children:i.children.map((e=>Object(g.jsx)(Ut,{type:"horizontal-".concat(e.type),item:e,nestedLevel:l,dense:o},e.id)))})})})})}}),document.querySelector("#root"))]})}zt.defaultProps={};var Yt=Object(E.h)(s.a.memo(zt));const Vt=Object(H.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(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Vt(e),{item:s}=e;return Object(n.useMemo)((()=>p.hasPermission(s.auth,t)),[s.auth,t])?Object(g.jsxs)(_t.a,{button:!0,component:Lt,to:s.url,activeClassName:"active",className:Object(z.a)("list-item",a.root),exact:s.exact,children:[s.icon&&Object(g.jsx)(G.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:s.icon}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:s.title,classes:{primary:"text-14 list-item-text-primary"}}),s.badge&&Object(g.jsx)(Mt,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}Kt.defaultProps={};var Xt=Object(E.h)(s.a.memo(Kt));const qt=Object(H.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 Jt(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=qt(e),{item:s}=e;return Object(n.useMemo)((()=>p.hasPermission(s.auth,t)),[s.auth,t])?Object(g.jsxs)(_t.a,{button:!0,component:"a",href:s.url,target:s.target?s.target:"_blank",className:Object(z.a)("list-item",a.root),role:"button",children:[s.icon&&Object(g.jsx)(G.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:s.icon}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:s.title,classes:{primary:"text-14 list-item-text-primary"}}),s.badge&&Object(g.jsx)(Mt,{className:"ltr:ml-8 rtl:mr-8",badge:s.badge})]}):null}Jt.defaultProps={};var Zt=Object(E.h)(s.a.memo(Jt)),Qt=a(1007);const $t=Object(H.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"}})})));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:r}=e,i=$t({itemPadding:r>0?40+16*r:24}),{sysConfigure:l}=Object(_.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])?l.support_macos_dlp||"dlp_policy_group"!==c.id&&"dlp_log_group"!==c.id?Object(g.jsxs)("ul",{className:Object(z.a)(i.root,a&&"open"),children:[Object(g.jsxs)(_t.a,{button:!0,className:Object(z.a)(i.item,"list-item"),onClick:e=>{s(!a)},component:c.url?Lt:"li",to:c.url,role:"button",children:[c.icon&&Object(g.jsx)(G.a,{color:"action",className:"list-item-icon text-16 flex-shrink-0",children:c.icon}),Object(g.jsx)(mt.a,{className:"list-item-text list-subheader-text",primary:c.title}),c.badge&&Object(g.jsx)(Mt,{className:"mx-4",badge:c.badge}),Object(g.jsx)(U.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)(G.a,{className:"text-16 arrow-icon",children:a?"expand_less":"expand_more"})})]}),c.children&&Object(g.jsx)(Qt.a,{in:a,className:"collapse-children",children:c.children.map((e=>Object(g.jsx)(Ut,{type:"vertical-".concat(e.type),item:e,nestedLevel:r+1},e.id)))})]}):Object(g.jsx)(g.Fragment,{}):null}aa.defaultProps={};var na=Object(E.h)(s.a.memo(aa)),sa=a(1008);const ca=Object(H.a)((e=>({item:e=>({height:60,width:"100%",paddingLeft:30,"& > .list-subheader-text":{fontSize:16,color:"#8b95a1"}})})));function ra(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(_.b)(),s=Object(ke.a)(),c=Object(at.a)(s.breakpoints.down("md")),{item:r,nestedLevel:i}=e,l=ca({itemPadding:i>0?40+16*i:24});return Object(n.useMemo)((()=>p.hasPermission(r.auth,t)),[r.auth,t])?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(sa.a,{disableSticky:!0,className:Object(z.a)(l.item,"list-subheader flex items-center",!r.url&&"cursor-default"),onClick:e=>c&&a(bt()),component:r.url?Lt:"li",to:r.url,role:"button",children:Object(g.jsx)("span",{className:"list-subheader-text uppercase",children:r.title})}),r.children&&Object(g.jsx)(g.Fragment,{children:r.children.map((e=>Object(g.jsx)(Ut,{type:"vertical-".concat(e.type),item:e,nestedLevel:i},e.id)))})]}):null}ra.defaultProps={};var ia=Object(E.h)(s.a.memo(ra)),la=a(28);const oa=Object(H.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 da(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(_.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),s=Object(_.b)(),c=Object(ke.a)(),r=Object(at.a)(c.breakpoints.down("md")),{item:i,nestedLevel:l,location:o}=e,d=oa({itemPadding:l>0?40+16*l:24}),b=Object(n.useMemo)((()=>p.hasPermission(i.auth,t)),[i.auth,t]),{sysConfigure:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting}));return b?(j.OSR_support||"osr_management"!==i.id)&&(j.dataleak_control||j.access_control||j.saving_control||"takeout_management"!==i.id&&"export_approval_management"!==i.id&&"offline_drive_management"!==i.id&&"offline_takeout_management"!==i.id&&"export_approval_management"!==i.id)&&(a.supportDataleakControl||a.supportAccessControl||a.supportSavingControl||"white_process_management"!==i.id)&&(2!==j.menu_support_type||"white_process_management"!==i.id&&"setup_info"!==i.id&&"holdFiles"!==i.id&&"instantLog"!==i.id&&"clientRunningLog"!==i.id)?Object(g.jsxs)(_t.a,{button:!0,component:Lt,to:i.url,activeClassName:"active",className:Object(z.a)(d.item,"list-item"),onClick:e=>r&&s(bt()),exact:i.exact,children:[Object(g.jsx)(la.a,{className:"list-item-icon",type:i.icon,fill:o.pathname===i.url?"#00cfe2":"#dadbdd"}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:i.title}),i.badge&&Object(g.jsx)(Mt,{badge:i.badge})]}):Object(g.jsx)(g.Fragment,{}):null}da.defaultProps={};var ba=Object(E.h)(s.a.memo(da));const ja=Object(H.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 Oa(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),s=Object(ke.a)(),c=Object(at.a)(s.breakpoints.down("md")),{item:r,nestedLevel:i}=e,l=ja({itemPadding:i>0?40+16*i:24});return Object(n.useMemo)((()=>p.hasPermission(r.auth,a)),[r.auth,a])?Object(g.jsxs)(_t.a,{button:!0,component:"a",href:r.url,target:r.target?r.target:"_blank",className:Object(z.a)(l.item,"list-item"),onClick:e=>c&&t(bt()),role:"button",children:[r.icon&&Object(g.jsx)(G.a,{className:"list-item-icon text-16 flex-shrink-0",color:"action",children:r.icon}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:r.title,classes:{primary:"text-14 list-item-text-primary"}}),r.badge&&Object(g.jsx)(Mt,{badge:r.badge})]}):null}Oa.defaultProps={};var ua=Object(E.h)(s.a.memo(Oa));Gt("vertical-group",ia),Gt("vertical-collapse",na),Gt("vertical-item",ba),Gt("vertical-link",ua),Gt("horizontal-group",Yt),Gt("horizontal-collapse",Ht),Gt("horizontal-item",Xt),Gt("horizontal-link",Zt),Gt("vertical-divider",(()=>Object(g.jsx)(St.a,{className:"my-16"}))),Gt("horizontal-divider",(()=>Object(g.jsx)(St.a,{className:"my-16"})));const pa=Object(H.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"}}}}}})));function ha(e){const t=pa(e),{navigation:a,layout:n,active:s,dense:c,className:r}=e,i=Object(g.jsx)(ht.a,{className:Object(z.a)("navigation whitespace-nowrap",t.navigation,t.verticalNavigation,"active-".concat(s,"-list"),c&&"dense",r),children:a.map((e=>Object(g.jsx)(Ut,{type:"vertical-".concat(e.type),item:e,nestedLevel:0},e.id)))}),l=Object(g.jsx)(ht.a,{className:Object(z.a)("navigation whitespace-nowrap flex p-0",t.navigation,t.horizontalNavigation,"active-".concat(s,"-list"),c&&"dense",r),children:a.map((e=>Object(g.jsx)(Ut,{type:"horizontal-".concat(e.type),item:e,nestedLevel:0,dense:c},e.id)))});return a.length>0?"horizontal"===n?l:i:null}ha.propTypes={navigation:Rt.a.array.isRequired},ha.defaultProps={layout:"vertical"};var _a=s.a.memo(ha),ma=a(274);var Ea={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",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(\ubbf8\uad6c\ud604)",ITEM_WEBLINK_MANAGEMENT:"\uc6f9\ub9c1\ud06c \uad00\ub9ac(\ubbf8\uad6c\ud604)",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)"};var ga={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\ud0c0",ACCESSLOG:"\uc2e4\uc2dc\uac04 \uc0ac\uc6a9 \ub0b4\uc5ed",GLOBAL_SETTING:"\uc218\uc9d1\uae30",PRIVATE_SETTING:"\uc0ac\uc6a9\uc790\ubcc4 \uc218\uc9d1",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",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(\ubbf8\uad6c\ud604)",ITEM_WEBLINK_MANAGEMENT:"\uc6f9\ub9c1\ud06c \uad00\ub9ac(\ubbf8\uad6c\ud604)",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"};i.a.addResourceBundle("en","navigation",Ea),i.a.addResourceBundle("ko","navigation",ga);var fa=[{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:"org_management",title:"ORG_MANAGEMENT",translate:"ORG_MANAGEMENT",type:"item",icon:"org-folder",url:"/orgs"},{id:"osr_management",title:"OSR_MANAGEMENT",translate:"OSR_MANAGEMENT",type:"item",icon:"osr",url:"/osr"},{id:"setup_info",title:"SETUP_INFO",translate:"SETUP_INFO",type:"item",icon:"laptop_windows",url:"/setup"}]},{id:"folders",title:"COLLAPSE_FOLDERS",translate:"COLLAPSE_FOLDERS",type:"collapse",children:[{id:"org_management",title:"ORG_MANAGEMENT",translate:"ORG_MANAGEMENT",type:"item",icon:"org-folder",url:"/orgs"},{id:"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:"weblink",title:"COLLAPSE_WEBLINK",translate:"COLLAPSE_WEBLINK",type:"collapse",children:[{id:"weblinkg_management",title:"ITEM_WEBLINK_MANAGEMENT",translate:"ITEM_WEBLINK_MANAGEMENT",type:"item",icon:"collect-global",url:"/admin"},{id:"weblink_setting",title:"ITEM_WEBLINK_SETTING",translate:"ITEM_WEBLINK_SETTING",type:"item",icon:"collect-private",url:"/admin"}]},{id:"ecm",title:"COLLAPSE_ECM",translate:"COLLAPSE_ECM",type:"collapse",children:[{id:"ecm_policy",title:"ITEM_WEBLINK_MANAGEMENT",translate:"ITEM_WEBLINK_MANAGEMENT",type:"item",icon:"collect-global",url:"/admin"},{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:"/whiteProcesses"},{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:"etc",title:"COLLAPSE_ETC",translate:"COLLAPSE_ETC",type:"collapse",children:[{id:"server_setting",title:"SERVER_SETTING",translate:"SERVER_SETTING",type:"item",icon:"settings",url:"/settings"},{id:"restriction",title:"ITEM_RESTRICT",translate:"ITEM_RESTRICT",type:"item",icon:"settings",url:"/settings"},{id:"server_info",title:"ITEM_SERVER_INFO",translate:"ITEM_SERVER_INFO",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:"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:"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:"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 xa=Object(be.c)(),Na=xa.getInitialState(),Sa=xa.upsertMany(Na,fa),{selectAll:Ta,selectIds:Ra,selectById:va}=xa.getSelectors((e=>e.fuse.navigation)),La=Object(ma.a)([Ta,e=>{let{i18n:t}=e;return t.language}],((e,t)=>function e(t){return t.map((t=>(t.translate&&t.title&&(t.title=i.a.t("navigation:".concat(t.translate))),t.children&&(t.children=e(t.children)),t)))}(j.a.merge([],e)))),Aa=Object(be.d)({name:"navigation",initialState:Sa,reducers:{setNavigation:xa.setAll,resetNavigation:(e,t)=>Sa}}),{setNavigation:Ca,resetNavigation:ya}=Aa.actions;var Pa=Aa.reducer;function Ia(e){const t=Object(_.c)(La);return Object(g.jsx)(_a,{className:Object(z.a)("navigation",e.className),navigation:t,layout:e.layout,dense:e.dense,active:e.active})}Ia.defaultProps={layout:"vertical"};var wa=s.a.memo(Ia);const Da=Object(H.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(z.a)("flex flex-col overflow-hidden h-full",t.root,e.className),children:[Object(g.jsx)(Ke.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)(Nt,{})})}),Object(g.jsx)(J.a,{className:Object(z.a)(t.content),option:{suppressScrollX:!0},children:Object(g.jsx)(wa,{layout:"vertical"})})]})}var ka=s.a.memo(Ma);const Ga=300,Ua=Object(H.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(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(_.c)(Oe.f),s=Object(_.c)((e=>{let{fuse:t}=e;return t.navbar})),c=Object(_.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),r=Ua(),{t:i}=Object(gt.a)("docbase"),{folded:l}=a.navbar,o=l&&!s.foldedOpen,d=l&&s.foldedOpen,b=Object(ke.a)(),j=Object(at.a)(b.breakpoints.down("md"));return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Xe.a,{theme:n,children:Object(g.jsxs)("div",{id:"fuse-navbar",className:Object(z.a)(r.wrapper,l&&r.wrapperFolded),children:[Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsxs)("div",{className:Object(z.a)(r.navbar,r[a.navbar.position],l&&r.folded,d&&r.foldedAndOpened,o&&r.foldedAndClosed),onMouseEnter:()=>o&&t(it()),onMouseLeave:()=>d&&t(lt()),style:{backgroundColor:n.palette.background.default},children:[Object(g.jsx)(ka,{className:r.navbarContent}),Object(g.jsxs)(ht.a,{component:"nav",className:Object(z.a)(r.naviBottom),"aria-label":"secondary mailbox folders",children:[Object(g.jsxs)(_t.a,{button:!0,className:Object(z.a)(r.item,"list-item"),onClick:e=>{Object(ft.f)().then((e=>{window.location.href="/admin"})),j&&t(bt())},children:[Object(g.jsx)(G.a,{className:"list-item-icon flex-shrink-0",children:"exit_to_app"}),Object(g.jsx)(mt.a,{className:"list-item-text",primary:i("LOGOUT")})]}),Object(g.jsx)(_t.a,{className:r.productInfoLi,children:Object(g.jsx)(mt.a,{className:r.productInfoTextDiv,primary:"".concat(i("LICENSES_TITLE"))})}),Object(g.jsx)(_t.a,{className:r.productInfoLi,children:Object(g.jsx)(mt.a,{className:r.productInfoTextDiv,primary:"".concat(i("PRODUCTKEY_STATE"),": ").concat(c.validProductKey?i("VALID"):i("INVALID"))})}),Object(g.jsx)(_t.a,{className:r.productInfoLi,children:Object(g.jsx)(mt.a,{className:r.productInfoTextDiv,primary:"".concat(i("USER_LICENSES"),": ").concat(c.userLicenses)})}),Object(g.jsx)(_t.a,{className:r.productInfoLi,children:Object(g.jsx)(mt.a,{className:r.productInfoTextDiv,primary:"".concat(i("EXPIRE_AT"),": ").concat(Et.a.getDateStringToLocalDate(c.expireAt))})}),Object(g.jsx)(_t.a,{className:r.productInfoLi,children:Object(g.jsx)(mt.a,{className:r.productInfoTextDiv,primary:"".concat(i("MAINTENANCE_AT"),": ").concat(Et.a.getDateStringToLocalDate(c.settledExpireMaintenance?c.expireMaintenanceAt:c.expireAt))})})]})]})}),Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(et.a,{anchor:a.navbar.position,variant:"temporary",open:s.mobileOpen,classes:{paper:r.navbar},onClose:()=>t(bt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)(ka,{className:r.navbarContent})})})]})}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(pt,{})})]})}var Wa=s.a.memo(Fa),Ha=a(118),Ba=a(6),za=a(13),Ya=a(15);const Va=Object(be.b)("setting/getProductKeyInfo",(async()=>{const e=await Ba.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}})),Ka=Object(be.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:{[Va.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}=Ka.actions;var Za=Ka.reducer;var Qa=Object(Ha.c)({user:ye,login:ft.b,initial:Za});var $a=Object(Ha.c)({navigation:Pa,settings:Oe.a,navbar:jt,message:Y.a,dialog:I.b});const en=Object(be.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(12),sn=a(27);const cn=Object(be.b)("setting/getEmergencyMode",(async()=>{const e=await Ba.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}:(Ba.a.printError(e),{mode:0,back_hours:0,date:"2021-02-05",process_type:1,status:0})})),rn=Object(be.b)("setting/recoveryAvailableDays",(async()=>{const e=await Ba.a.sendPost("/api/recoveryAvailableDays",{});return e.result?e.days:[]})),ln={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,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},on=Object(be.b)("setting/getSysConfigure",(async()=>{const e=await Ba.a.sendPost("/api/getSysConfigure",{});return e.result?e:(Ba.a.printError(e),ln)})),dn=Object(be.b)("setting/setSysConfigure",(async(e,t)=>{let{setConf:a,succMsg:n}=e,{dispatch:s,getState:c}=t;const r=await Object(Ya.c)();"collector_support"in a||(a.collector_support=c().docbase.admin.setting.sysConfigure.collector_support);const i=Object(d.a)(Object(d.a)({},a),{},{token:r.token});await Ba.a.sendPost("/api/setSysConfigure",i),s(Object(Y.d)({message:n}))})),bn=Object(be.b)("setting/searchSecureDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Ba.a.sendPost("/api/secureDocuments",{rows_per_page:s().docbase.admin.setting.secureDocObj.rowsPerPage});return c.result?(n(jn({page:a})),{total_rows:c.total_rows,total_pages:c.total_pages}):{total_rows:0,total_pages:0}})),jn=Object(be.b)("setting/getSecureDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Ba.a.sendPost("/api/secureDocumentsPage",{page:a});return c.result?{docs:c.docs,page:a}:{docs:[],page:1}})),On=Object(be.b)("setting/getAlienConnection",(async()=>{const e=await Ba.a.sendPost("/api/getAlienConnection",{});return e.result?{enabled:e.enabled,name:e.name}:{enabled:!1,name:""}})),un=Object(be.b)("setting/getSeedKey",(async()=>{const e=await Ba.a.sendPost("/api/getSeedKey",{});return e.result?{seedKey:e.seed_key}:{seedKey:""}})),pn=Object(be.b)("setting/searchPiiDocs",(async(e,t)=>{let{page:a,startDate:n,endDate:s,searchName:c}=e,{dispatch:r,getState:i}=t;const l=await Ba.a.sendPost("/api/piiDocuments",{rows_per_page:i().docbase.admin.setting.piiDocObj.rowsPerPage,start_date:n,end_date:s,search_name:c});return l.result?(r(hn({page:a})),{total_rows:l.total_rows,total_pages:l.total_pages}):{total_rows:0,total_pages:0}})),hn=Object(be.b)("setting/piiDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Object(Ya.c)(),r=await Ba.a.sendPost("/api/piiDocumentsPage",{page:a,token:c.token});return r.result?{docs:r.docs,page:a}:{docs:[],page:1}})),_n=Object(be.b)("setting/ransomHistory",(async(e,t)=>{let{page:a,status:n,day:s,user:c,path:r,clientAddress:i,infectedFilePath:l}=e,{dispatch:o,getState:d}=t;const b=await Ba.a.sendPost("/api/ransomHistory",{rows_per_page:d().docbase.admin.setting.ransomObj.rowsPerPage,duration:s,duration_type:1,status:n,user:c,path:r,client_address:i,infected_file_path:l});return b.result?(o(mn({page:a})),{total_rows:b.total_rows,total_pages:b.total_pages}):{total_rows:0,total_pages:0}})),mn=Object(be.b)("setting/getRansomHistory",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Object(Ya.c)(),r=await Ba.a.sendPost("/api/ransomHistoryPage",{page:a,token:c.token});return r.result?{events:r.events,page:a}:{event:[],page:1}})),En=Object(be.b)("setting/searchDupDocs",(async(e,t)=>{let{page:a,path:n}=e,{dispatch:s,getState:c}=t;const r=await Ba.a.sendPost("/api/dupDocuments",{rows_per_page:c().docbase.admin.setting.dupDocObj.rowsPerPage,path:n});if(r.result){if(s(gn({page:a})),""===n){await s(Object(sn.u)());const e=await Nn(r.total_pages);return Object(d.a)({total_rows:r.total_rows,total_pages:r.total_pages},e)}return{total_rows:r.total_rows,total_pages:r.total_pages,totalSize:-1,oriSize:-1}}return{total_rows:0,total_pages:0,totalSize:-1,oriSize:-1}})),gn=Object(be.b)("setting/dupDocs",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Ba.a.sendPost("/api/dupDocumentsPage",{page:a});return c.result?{docs:c.docs,page:a}:{docs:[],page:1}})),fn=Object(be.b)("setting/searchSecureFolders",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Ba.a.sendPost("/api/secureDocumentFolders",{rows_per_page:s().docbase.admin.setting.secureDocObj.rowsPerPage});return c.result?(n(xn({page:a})),{total_rows:c.total_rows,total_pages:c.total_pages}):{total_rows:0,total_pages:0}})),xn=Object(be.b)("setting/getSecureFolders",(async(e,t)=>{let{page:a}=e,{dispatch:n,getState:s}=t;const c=await Ba.a.sendPost("/api/secureDocumentFoldersPage",{page:a});return c.result?{docs:c.docs,page:a}:{docs:[],page:1}})),Nn=async e=>{let t=0,a=0,n="",s={};console.log(e);for(let c=1;c<=e;c++)if(s=await Ba.a.sendPost("/api/dupDocumentsPage",{page:c}),s.result){console.log("page length: ".concat(s.docs.length));for(let e=0;e0&&(console.log(n),a+=s.docs[e].file_size,n=s.docs[e].file_hash)}return{totalSize:t,oriSize:a}},Sn=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/api/getUsersWithCollectInfo",{token:n}).then((n=>{if(n.result){const t={};n.users.forEach((e=>{e.user_id=za.a.decryptAES(a,e.user_id,"hex","utf8"),e.name=za.a.decryptAES(a,e.user_name,"hex","utf8"),t[e.user_id]=e})),e({obj:t,list:n.users})}else Ba.a.printError(n),t(n)}))}))})),Tn=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{const c=e.map((e=>({user_id:za.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})));Ba.a.sendPost("/api/setUsersWithCollectInfo",{users:c,token:s}).then((e=>{e.result?t(e):(Ba.a.printError(e),a(e))}))}))})),Rn=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/api/foldersPermissions",{token:s}).then((n=>{if(n.result){const a={};n.folders.forEach((t=>{e?nn.C===t.folder_type&&(a[t.fid]=t.permissions):a[t.fid]=t.permissions})),t(a)}else Ba.a.printError(n),a(n)}))}))})),vn=Object(be.b)("setting/getWhiteProcessList",(async()=>{const e=await Ba.a.sendPost("/api/whiteProcessList",{});return e.result?e.processes:(Ba.a.printError(e),[])})),Ln=Object(be.b)("setting/getWhiteURLList",(async()=>{const e=await Object(Ya.c)(),t=await Ba.a.sendPost("/api/getRegisteredURLs",{token:e.token});return t.result?t.urls.map((t=>(t.url=za.a.decryptAES(e.aesKey,t.url,"hex","utf8"),t))):(Ba.a.printError(t),[])})),An=Object(be.d)({name:"setting",initialState:{showBackdrop:!1,restoreObj:{mode:0,back_hours:0,date:"2021-02-05",days:[]},sysConfigure:ln,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:{[cn.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},[rn.fulfilled]:(e,t)=>{e.restoreObj.days=t.payload.reverse()},[on.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;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},[bn.fulfilled]:(e,t)=>{e.secureDocObj.total_pages=t.payload.total_pages,e.secureDocObj.totalRows=t.payload.total_rows},[jn.fulfilled]:(e,t)=>{e.secureDocObj.docs=t.payload.docs.map((e=>Object(d.a)(Object(d.a)({},e),{},{path:Et.a.changeAccessibleFolder(e.path)}))),e.secureDocObj.currentPage=t.payload.page},[fn.fulfilled]:(e,t)=>{e.secureFolderObj.total_pages=t.payload.total_pages,e.secureFolderObj.totalRows=t.payload.total_rows},[xn.fulfilled]:(e,t)=>{e.secureFolderObj.docs=t.payload.docs.map((e=>Object(d.a)(Object(d.a)({},e),{},{path:Et.a.changeAccessibleFolder(e.path)}))),e.secureFolderObj.currentPage=t.payload.page},[On.fulfilled]:(e,t)=>{e.alienConObj.enabled=t.payload.enabled,e.alienConObj.name=t.payload.name},[un.fulfilled]:(e,t)=>{e.seedKey=t.payload.seedKey},[pn.fulfilled]:(e,t)=>{e.piiDocObj.total_pages=t.payload.total_pages,e.piiDocObj.totalRows=t.payload.total_rows},[hn.fulfilled]:(e,t)=>{e.piiDocObj.docs=t.payload.docs.map((e=>Object(d.a)(Object(d.a)({},e),{},{registered_at:Et.a.getDateStringToLocalDate(e.registered_at)}))),e.piiDocObj.currentPage=t.payload.page},[En.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)},[gn.fulfilled]:(e,t)=>{e.dupDocObj.docs=t.payload.docs,e.dupDocObj.currentPage=t.payload.page},[vn.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},[mn.fulfilled]:(e,t)=>{e.ransomObj.events=t.payload.events,e.ransomObj.currentPage=t.payload.page},[Ln.fulfilled]:(e,t)=>{e.whiteURLList=t.payload}}}),{onClickDoc:Cn,onClickDocEx:yn,changeRowsPerPage:Pn,changePiiRowsPerPage:In,changeDupRowsPerPage:wn,setShowBackdrop:Dn}=An.actions;var Mn=An.reducer;const kn=Object(be.b)("folder/getAllFolderList",(async()=>{const e=await Object(Ya.c)(),t=await Ba.a.sendPost("/api/organizationFolders",{token:e.token}),a=await Object(Ya.c)(),n=await Ba.a.sendPost("/api/sharedFolderList",{token:a.token}),s=await Object(Ya.c)(),c=await Ba.a.sendPost("/api/orgSharedFolderList",{token:s.token});return{folderObj:{orgs:t.folders,shareds:n.folders,orgshareds:c.folders}}})),Gn=Object(be.b)("folder/getAllOrgFolderList",(async()=>{const e=await Object(Ya.c)(),t=await Ba.a.sendPost("/api/organizationFolders",{token:e.token});return t.result?{folders:t.folders}:{folders:[]}})),Un=Object(be.b)("folder/getOrgFolderList",(async(e,t)=>{let{parentFid:a}=e,{dispatch:n,getState:s}=t;const c=await Object(Ya.c)();return{folders:(await Ba.a.sendPost("/api/organizationFolderList",{parent_fid:a,token:c.token})).folders}})),Fn=Object(be.b)("folder/updOrgsObj",(async e=>{let{parentFid:t}=e;const a=await Object(Ya.c)();return{folders:(await Ba.a.sendPost("/api/organizationFolders",{parent_fid:t,token:a.token})).folders}})),Wn=Object(be.b)("folder/selectedOrgFolderID",(async(e,t)=>{let{fid:a}=e,{dispatch:n,getState:s}=t;if(a<=0)return{permissions:[],selectedOrgID:0,capacity:0,parentPerms:{}};const c=await Object(Ya.c)(),r=await Ba.a.sendPost("/api/folderPermissionList",{fid:a,token:c.token}),i=await Ba.a.sendPost("/api/getFolderMaxSize",{fid:a}),l=Et.a.splitPreDelimiter(s().docbase.admin.folder.orgsObj[a].fid_path).split("/"),o={};for(let d=0;d{let{dispatch:a,getState:n}=t;return await a(Object(an.g)()),await a(Gn()),{}})),Bn=Object(be.b)("folder/getSharedFolderList",(async()=>{const e=await Object(Ya.c)(),t=await Ba.a.sendPost("/api/sharedFolderList",{token:e.token}),a=await Object(Ya.c)(),n=await Ba.a.sendPost("/api/orgSharedFolderList",{token:a.token});return{folderObj:{shareds:t.folders,orgshareds:n.folders}}})),zn=Object(be.b)("folder/readableFolderPermissionObjects",(async()=>(await Ba.a.sendPost("/api/readableFolderPermissionObjects",{})).objects)),Yn=Object(be.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 c=await Object(Ya.c)(),r=await Ba.a.sendPost("/api/getReadableFolderPermissions",{fid:a,token:c.token}),i=await Ba.a.sendPost("/api/getFolderMaxSize",{fid:a});return{permissions:r.permissions,selectedSharedID:a,capacity:i.size}})),Vn=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/updateSharedFolder",{fid:e,expire_at:t,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))}))}))})),Kn=(e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.a.sendPost("/api/setFolderPermission",{fid:e,user_id:t,file_permission:a,trash_permission:n,manage_type:s,manage_priority:c,token:o}).then((e=>{e.result?r(e.result):(Ba.a.printError(e),i(e))}))}))})),Xn=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/setReadableFolderPermissions",{fid:e,permissions:t,token:c}).then((e=>{e&&e.result?a(e.result):(Ba.a.printError(e),n(e||new Error("error")))})).catch((e=>{console.log(e)}))}))})),qn=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/api/organizationFolders",{token:n}).then((a=>{if(a.result){const t={0:{children:[]}},n=a.folders.sort(((e,t)=>e.disp_path>t.disp_path?1:e.disp_path===t.disp_path?0:-1)).map((e=>(e.path=e.disp_path,e.name=e.name.replace("[_ORG_].",""),void 0===t[e.parent_fid]?t[e.parent_fid]={children:[e]}:t[e.parent_fid].children.push(e),e)));e({orgs:n,orgChildren:t})}else Ba.a.printError(a),t(a)}))}))})),Jn=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/moveOrganizationData",{source_fid:e,target_fid:t,token:c}).then((e=>{e.result?a(e):(Ba.a.printError(e),n(e))}))}))})),Zn=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/transferOrganizationFolder",{source_path:e,dest_path:t,token:c}).then((e=>{e.result?a(e):(Ba.a.printError(e),n(e))}))}))})),Qn=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/api/folderPermissionList",{fid:e,token:s}).then((e=>{e.result?t(e.permissions):(Ba.a.printError(e),a(e))}))}))})),$n=(e,t)=>new Promise(((a,n)=>{Ba.a.sendPost("/api/setFolderMaxSize",{path:e,size:t}).then((e=>{e.result?a():(Ba.a.printError(e),n(e))}))})),es=Object(be.d)({name:"folder",initialState:{folders:[],foldersObj:{},orgFolders:[],orgsObj:{},orgPerms:[],parentPerms:{},selectedOrgID:-1,orgsChildren:{0:[]},sharedFolders:[],sharedsObj:{},sharedPerms:[],readablePermObjs:[],selectedSharedID:0,searchTextShared:"",capacity:0,sharedCapacity:0},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:{[kn.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=nn.C,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=nn.F,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=nn.D,a[e.fid]=e,n.push(e)})),e.folders=n,e.foldersObj=a)},[Gn.fulfilled]:(e,t)=>{const a={},n={0:{children:[]}};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,void 0===n[e.parent_fid]?n[e.parent_fid]={children:[e]}:n[e.parent_fid].children.push(e),e))),e.orgsObj=Object(d.a)(Object(d.a)({},e.orgsObj),a),e.orgsChildren=n)},[Un.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(d.a)(Object(d.a)({},e.orgsObj),a),e.orgFolders=t.payload.folders.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1)))},[Fn.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(d.a)(Object(d.a)({},e.orgsObj),a)},[Wn.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(d.a)(Object(d.a)({},e.parentPerms),t.payload.parentPerms)},[Bn.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=nn.F,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=nn.D,n.push(e)})),e.sharedsObj=a,e.sharedFolders=n.sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1))},[Yn.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},[zn.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:ts,initOrgSearchText:as}=es.actions;var ns=es.reducer;Object(be.b)("setting/getAccessLog",(async e=>{let{startID:t}=e;const a=await Ba.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 ss=Object(be.d)({name:"etc",initialState:{},reducers:{},extraReducers:{}}).reducer;var cs=Object(Ha.c)({account:an.f,folder:ns,setting:Mn,system:sn.f,etc:ss}),rs=a(238);var is=Object(Ha.c)({file:rs.g});var ls=Object(Ha.c)({admin:cs,wc:is});var os=e=>(t,a)=>{const n=Object(Ha.c)(Object(d.a)({auth:Qa,fuse:$a,i18n:tn,docbase:ls},e));return"auth/user/userLoggedOut"===a.type&&(t=void 0),n(t,a)};const ds=[];const bs=Object(be.a)({reducer:os(),middleware:e=>e({immutableCheck:!1,serializableCheck:{ignoredActions:["dialog/openDialog","dialog/closeDialog","message/showMessage","message/hideMessage"]}}).concat(ds),devTools:!1});bs.asyncReducers={};var js=bs;var Os=(e,t)=>a=>(((e,t)=>{!bs.asyncReducers[e]&&(bs.asyncReducers[e]=t,bs.replaceReducer(os(bs.asyncReducers)))})(e,t),e=>Object(g.jsx)(a,Object(d.a)({},e)));const us=Object(be.d)({name:"quickPanel/state",initialState:!1,reducers:{toggleQuickPanel:(e,t)=>!e,openQuickPanel:(e,t)=>!0,closeQuickPanel:(e,t)=>!1}}),{toggleQuickPanel:ps,openQuickPanel:hs,closeQuickPanel:_s}=us.actions;var ms=us.reducer;const Es=Object(be.b)("quickPanel/data/getData",(async()=>{const e=await pe.a.get("/api/quick-panel/data");return await e.data}));var gs=Object(be.d)({name:"quickPanel/data",initialState:null,reducers:{},extraReducers:{[Es.fulfilled]:(e,t)=>t.payload}}).reducer;var fs=Object(Ha.c)({data:gs,state:ms});const xs=Object(H.a)((e=>({root:{width:280}})));function Ns(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{quickPanel:t}=e;return t.state})),n=xs();return Object(g.jsx)(et.a,{classes:{paper:n.root},open:a,anchor:"right",onOpen:e=>{},onClose:e=>t(ps()),disableSwipeToOpen:!0,children:Object(g.jsx)(J.a,{children:Object(g.jsx)(B.a,{children:"Quick Panel"})})})}var Ss=Os("quickPanel",fs)(s.a.memo(Ns));function Ts(e){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Ss,{})})}var Rs=s.a.memo(Ts);function vs(e){const t=Object(_.b)();return Object(g.jsx)(U.a,{className:e.className,onClick:e=>t(ot()),color:"inherit",disableRipple:!0,children:e.children})}vs.defaultProps={children:Object(g.jsx)(G.a,{color:"action",children:"menu"})};var Ls=vs;const As=Object(H.a)((e=>({root:{},productInfoLi:{"padding-top":0,"padding-bottom":0},productInfoTextDiv:{"margin-top":"0","margin-bottom":"0","&>span":{"font-size":"11px",cursor:"default"}}})));function Cs(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(_.c)(Oe.g),n=Object(_.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),s=As(e),{t:c}=Object(gt.a)("docbase");return Object(g.jsx)(Xe.a,{theme:a,children:Object(g.jsx)(Ke.a,{id:"fuse-toolbar",className:Object(z.a)(s.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(qe.a,{className:"p-0 min-h-48 md:min-h-64",children:[t.navbar.display&&"left"===t.navbar.position&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{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)(ht.a,{component:"nav","aria-label":"secondary mailbox folders",children:[Object(g.jsx)(_t.a,{className:s.productInfoLi,children:Object(g.jsx)(mt.a,{className:s.productInfoTextDiv,primary:"".concat(c("LICENSES_TITLE"))})}),Object(g.jsx)(_t.a,{className:s.productInfoLi,children:Object(g.jsx)(mt.a,{className:s.productInfoTextDiv,primary:"".concat(c("PRODUCTKEY_STATE"),": ").concat(n.validProductKey?c("VALID"):c("INVALID"))})}),Object(g.jsx)(_t.a,{className:s.productInfoLi,children:Object(g.jsx)(mt.a,{className:s.productInfoTextDiv,primary:"".concat(c("USER_LICENSES"),": ").concat(n.userLicenses)})}),Object(g.jsx)(_t.a,{className:s.productInfoLi,children:Object(g.jsx)(mt.a,{className:s.productInfoTextDiv,primary:"".concat(c("EXPIRE_AT"),": ").concat(Et.a.getDateStringToLocalDate(n.expireAt))})}),Object(g.jsx)(_t.a,{className:s.productInfoLi,children:Object(g.jsx)(mt.a,{className:s.productInfoTextDiv,primary:"".concat(c("MAINTENANCE_AT"),": ").concat(Et.a.getDateStringToLocalDate(n.settledExpireMaintenance?n.expireMaintenanceAt:n.expireAt))})})]})}),t.navbar.display&&"right"===t.navbar.position&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{})})]})})})}var ys=s.a.memo(Cs);let Ps=!1;if(null===sessionStorage.getItem("device")){new y.a(window.navigator.userAgent).mobile()&&(sessionStorage.setItem("device","mobile"),Ps=!0)}else Ps="mobile"===sessionStorage.getItem("device");const Is=Object(H.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 ws(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(n.useContext)(h),s=Is(e),{routes:c}=a;return"body"===t.scroll?Object(g.jsxs)("div",{id:"fuse-layout",className:Object(z.a)(s.root,t.mode,"scroll-".concat(t.scroll)),children:[t.leftSidePanel.display&&Object(g.jsx)($e,{}),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)(ys,{}),Object(g.jsxs)(J.a,{className:"overflow-auto",scrollToTopOnRouteChange:!0,children:[t.toolbar.display&&"fixed"!==t.toolbar.style&&"above"===t.toolbar.position&&Object(g.jsx)(ys,{}),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)(ys,{}),Object(g.jsxs)("div",{className:s.content,children:[Object(g.jsx)(w,{}),Object(g.jsx)(te,{children:Object(m.b)(c)}),e.children]}),t.footer.display&&"below"===t.footer.position&&Object(g.jsx)(Ze,{}),Object(g.jsx)(Ve,{})]}),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)(Rs,{}),Object(g.jsx)(q,{})]}):Object(g.jsxs)("div",{id:"fuse-layout",className:Object(z.a)(s.root,t.mode,"scroll-".concat(t.scroll)),children:[t.leftSidePanel.display&&Object(g.jsx)($e,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(ys,{}),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)(ys,{}),Object(g.jsxs)(J.a,{className:s.content,scrollToTopOnRouteChange:!0,children:[t.toolbar.display&&"below"===t.toolbar.position&&"fixed"!==t.toolbar.style&&Object(g.jsx)(ys,{}),Object(g.jsx)(w,{}),Object(g.jsx)(te,{children:Object(m.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)(Ve,{})]}),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)(Rs,{}),Object(g.jsx)(q,{})]})}var Ds=s.a.memo(ws);function Ms(e){const t=Object(_.c)(Oe.d);return Object(g.jsx)(Xe.a,{theme:t,children:Object(g.jsx)(Ke.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(qe.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)(B.a,{children:"Footer"})})})})}var ks=s.a.memo(Ms);function Gs(){return Object(g.jsx)(g.Fragment,{})}var Us=s.a.memo(Gs);function Fs(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current}));return Object(g.jsx)(U.a,{className:e.className,onClick:()=>{t(Object(Oe.h)(j.a.set({},"layout.config.navbar.folded",!a.layout.config.navbar.folded)))},color:"inherit",size:"small",children:e.children})}Fs.defaultProps={children:Object(g.jsx)(G.a,{fontSize:"inherit",children:"push_pin"})};var Ws=Fs,Hs=a(1046);const Bs=Object(H.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 zs=function(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user})),a=Bs();return Object(g.jsxs)(Ke.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)(B.a,{className:"username text-16 whitespace-nowrap",color:"inherit",children:t.data.displayName}),Object(g.jsx)(B.a,{className:"email text-13 mt-8 opacity-50 whitespace-nowrap",color:"inherit",children:t.data.email}),Object(g.jsx)(Hs.a,{className:Object(z.a)(a.avatar,"avatar"),alt:"user photo",src:t.data.photoURL&&""!==t.data.photoURL?t.data.photoURL:"assets/images/avatars/profile.jpg"})]})};const Ys=Object(H.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 Vs(e){const t=Ys(e),a=Object(ke.a)();return Object(g.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[Object(g.jsxs)(Ke.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)(Nt,{})}),Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)(Ws,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{className:"w-40 h-40 p-0",children:Object(g.jsxs)(G.a,{children:["ltr"===a.direction?"arrow_back":"arrow_forward",'"']})})})]}),Object(g.jsxs)(J.a,{className:Object(z.a)(t.content),children:[Object(g.jsx)(zs,{}),Object(g.jsx)(wa,{layout:"vertical"})]})]})}var Ks=s.a.memo(Vs);function Xs(){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)(Nt,{})}),Object(g.jsx)(J.a,{className:"flex h-full items-center",children:Object(g.jsx)(wa,{className:"w-full",layout:"horizontal"})})]})}var qs=s.a.memo(Xs);const Js=Object(H.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 Zs(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(_.c)(Oe.f),s=Object(_.c)((e=>{let{fuse:t}=e;return t.navbar})),c=Js(e);return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Xe.a,{theme:n,children:[Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)(Ct.a,{className:Object(z.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(qs,{})})}),Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(et.a,{anchor:"left",variant:"temporary",open:s.mobileOpen,classes:{paper:c.navbarMobile},onClose:()=>t(bt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)(Ks,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(pt,{})})]})}var Qs=s.a.memo(Zs);function $s(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Ss,{})})}var ec=s.a.memo($s),tc=a(289);a(490);const ac={animation:"transition.fadeIn",stagger:50,duration:200,display:null,visibility:"visible",delay:0},nc={stagger:50,duration:200,display:null,visibility:"visible",delay:0};function sc(e){return Object(g.jsx)(tc.VelocityTransitionGroup,Object(d.a)(Object(d.a)({},e),{},{enter:Object(d.a)(Object(d.a)({},ac),e.enter),leave:Object(d.a)(Object(d.a)({},nc),e.leave)}))}sc.defaultProps={enter:ac,leave:nc,easing:[.4,0,.2,1],runOnMount:!0,enterHideStyle:{opacity:1},enterShowStyle:{opacity:0}};var cc=s.a.memo(sc),rc=a(908),ic=a(1011),lc=a(558);const oc=Object(H.a)({root:{"&.horizontal":{},"&.vertical":{flexDirection:"column"}},item:{textDecoration:"none!important",color:"inherit"},addIcon:{color:k.a[600]}});function dc(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{auth:t}=e;return t.user.data.shortcuts})),s=Object(_.c)(La),c=oc(e),r=Object(n.useRef)(null),[i,l]=Object(n.useState)(null),[o,b]=Object(n.useState)(""),[j,O]=Object(n.useState)(null),[u,h]=Object(n.useState)(null),m=a?a.map((e=>p.findById(s,e))):[];function E(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(Re(n)),t(Se(s))})(n))}function f(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)(re.a,{children:[Object(g.jsx)(ic.a,{className:"min-w-40",children:t.icon?Object(g.jsx)(G.a,{children:t.icon}):Object(g.jsx)("span",{className:"text-20 font-bold uppercase text-center",children:t.title[0]})}),Object(g.jsx)(mt.a,{primary:t.title}),Object(g.jsx)(U.a,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n(t.id)},children:Object(g.jsx)(G.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(z.a)(c.root,e.variant,"flex flex-1","vertical"===e.variant&&"flex-grow-0 flex-shrink",e.className),children:[Object(g.jsxs)(cc,{enter:{animation:"transition.expandIn"},className:Object(z.a)("flex flex-1","vertical"===e.variant&&"flex-col"),children:[m.map((t=>t&&Object(g.jsx)(vt.a,{to:t.url,className:c.item,role:"button",children:Object(g.jsx)(st.a,{title:t.title,placement:"horizontal"===e.variant?"bottom":"left",children:Object(g.jsx)(U.a,{className:"w-40 h-40 p-0",children:t.icon?Object(g.jsx)(G.a,{children:t.icon}):Object(g.jsx)("span",{className:"text-20 font-bold uppercase",children:t.title[0]})})})},t.id))),Object(g.jsx)(st.a,{title:"Click to add/remove shortcut",placement:"horizontal"===e.variant?"bottom":"left",children:Object(g.jsx)(U.a,{className:"w-40 h-40 p-0","aria-owns":i?"add-menu":null,"aria-haspopup":"true",onClick:e=>{l(e.currentTarget)},children:Object(g.jsx)(G.a,{className:c.addIcon,children:"star"})})})]}),Object(g.jsxs)(lc.a,{id:"add-menu",anchorEl:i,open:Boolean(i),onClose:e=>{l(null)},classes:{paper:"mt-48"},onEntered:()=>{r.current.focus()},onExited:()=>{b("")},children:[Object(g.jsx)("div",{className:"p-16 pt-8",children:Object(g.jsx)(rc.a,{inputRef:r,value:o,onChange:e=>function(e){const t=e.target.value;b(t),0!==t.length&&u?O(u.filter((e=>e.title.toLowerCase().includes(t.toLowerCase())))):O(null)}(e),placeholder:"Search for an app or page",className:"",fullWidth:!0,inputProps:{"aria-label":"Search"}})}),Object(g.jsx)(St.a,{}),0!==o.length&&j&&j.map((e=>Object(g.jsx)(f,{item:e,onToggle:()=>E(e.id)},e.id))),0!==o.length&&0===j.length&&Object(g.jsx)(B.a,{color:"textSecondary",className:"p-16 pb-8",children:"No results.."}),0===o.length&&m.map((e=>e&&Object(g.jsx)(f,{item:e,onToggle:()=>E(e.id)},e.id)))]})]})}dc.defaultProps={variant:"horizontal"};var bc=s.a.memo(dc);const jc=Object(H.a)((e=>({root:{}})));function Oc(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(_.c)(Oe.g),n=jc(e);return Object(g.jsx)(Xe.a,{theme:a,children:Object(g.jsx)(Ke.a,{id:"fuse-toolbar",className:Object(z.a)(n.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(qe.a,{className:"container p-0 lg:px-24 min-h-48 md:min-h-64",children:[t.navbar.display&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{className:"w-40 h-40 p-0 mx-0 sm:mx-8"})}),Object(g.jsx)("div",{className:"flex flex-1",children:Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)(bc,{})})}),Object(g.jsx)("div",{className:"flex items-center px-16"})]})})})}var uc=s.a.memo(Oc);const pc=Object(H.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 hc(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=pc(e);return Object(g.jsx)(h.Consumer,{children:n=>{let{routes:s}=n;return Object(g.jsxs)("div",{id:"fuse-layout",className:Object(z.a)(a.root,t.mode),children:[t.leftSidePanel.display&&Object(g.jsx)(Us,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(uc,{}),t.navbar.display&&Object(g.jsx)(Qs,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(uc,{}),Object(g.jsxs)(J.a,{className:a.content,scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(w,{}),Object(g.jsxs)("div",{className:"flex flex-auto flex-col relative h-full",children:[Object(g.jsx)(te,{children:Object(m.b)(s)}),e.children,t.footer.display&&"static"===t.footer.style&&Object(g.jsx)(ks,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(ks,{}),Object(g.jsx)(Ve,{})]}),t.rightSidePanel.display&&Object(g.jsx)(ec,{}),Object(g.jsx)(q,{})]})}})}var _c=s.a.memo(hc);function mc(e){const t=Object(_.c)(Oe.d);return Object(g.jsx)(Xe.a,{theme:t,children:Object(g.jsx)(Ke.a,{id:"fuse-footer",className:"relative z-10 shadow-md",color:"default",style:{backgroundColor:t.palette.background.paper},children:Object(g.jsx)(qe.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)(B.a,{children:"Footer"})})})})}var Ec=s.a.memo(mc);const gc=Object(H.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 fc(e){const t=gc(e),[a,s]=Object(n.useState)(e.opened),[c,r]=Object(n.useState)(!1);function i(){r(!c)}return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsxs)(Ct.a,{className:Object(z.a)(t.root,t.paper,e.className,a?"opened":"closed",e.position,"shadow-lg"),square:!0,children:[Object(g.jsx)(J.a,{className:Object(z.a)("content",t.content),children:e.children}),Object(g.jsx)("div",{className:t.buttonWrapper,children:Object(g.jsx)(st.a,{title:"Toggle side panel",placement:(e.position,"right"),children:Object(g.jsx)(U.a,{className:t.button,onClick:e=>{s(!a)},disableRipple:!0,children:Object(g.jsx)(G.a,{className:t.buttonIcon,children:"keyboard_arrow_left"})})})})]})}),Object(g.jsxs)(tt.a,{lgUp:!0,children:[Object(g.jsx)(et.a,{classes:{paper:Object(z.a)(t.paper,e.className)},anchor:e.position,open:c,onOpen:e=>{},onClose:e=>i(),disableSwipeToOpen:!0,children:Object(g.jsx)(J.a,{className:Object(z.a)("content",t.content),children:e.children})}),Object(g.jsx)(st.a,{title:"Hide side panel",placement:(e.position,"right"),children:Object(g.jsx)(nt.a,{className:Object(z.a)(t.mobileButton,e.position),onClick:e=>i(),disableRipple:!0,children:Object(g.jsx)(G.a,{className:t.buttonIcon,color:"action",children:"keyboard_arrow_right"})})})]})]})}fc.defaultProps={position:"left",opened:!0};var xc=s.a.memo(fc);function Nc(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(xc,{children:Object(g.jsx)(bc,{className:"py-16 px-8",variant:"vertical"})})})}var Sc=s.a.memo(Nc);function Tc(){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)(J.a,{className:"flex h-full items-center",children:Object(g.jsx)(wa,{className:"w-full",layout:"horizontal",dense:!0})})})}var Rc=s.a.memo(Tc);const vc=Object(H.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 Lc(e){const t=vc(e),a=Object(ke.a)();return Object(g.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[Object(g.jsxs)(Ke.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)(Nt,{})}),Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)(Ws,{className:"w-40 h-40 p-0"})}),Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{className:"w-40 h-40 p-0",children:Object(g.jsxs)(G.a,{children:["ltr"===a.direction?"arrow_back":"arrow_forward",'"']})})})]}),Object(g.jsxs)(J.a,{className:Object(z.a)(t.content),children:[Object(g.jsx)(zs,{}),Object(g.jsx)(wa,{layout:"vertical"})]})]})}var Ac=s.a.memo(Lc);const Cc=Object(H.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 yc(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),n=Object(_.c)(Oe.f),s=Object(_.c)((e=>{let{fuse:t}=e;return t.navbar})),c=Cc(e);return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Xe.a,{theme:n,children:[Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)(Ct.a,{className:Object(z.a)(c.navbar,"shadow-md"),square:!0,children:Object(g.jsx)(Rc,{})})}),Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(et.a,{anchor:"left",variant:"temporary",open:s.mobileOpen,classes:{paper:c.navbarMobile},onClose:()=>t(bt()),onOpen:()=>{},disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},children:Object(g.jsx)(Ac,{})})})]}),a.navbar.display&&!a.toolbar.display&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(pt,{})})]})}var Pc=s.a.memo(yc);function Ic(){return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(Ss,{})})}var wc=s.a.memo(Ic),Dc=a(9),Mc=a(906),kc=a(916),Gc=a(236),Uc=a(369),Fc=a.n(Uc),Wc=a(541),Hc=a.n(Wc),Bc=a(370),zc=a.n(Bc);const Yc=["variant","classes","inputRef","ref"];function Vc(e){const{variant:t,classes:a,inputRef:n=()=>{},ref:s}=e,c=Object(Dc.a)(e,Yc);return Object(g.jsx)("div",{className:"w-full relative",children:"basic"===t?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Gc.a,Object(d.a)({fullWidth:!0,InputProps:{inputRef:e=>{s(e),n(e)},classes:{input:Object(z.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)(G.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)(Gc.a,Object(d.a)({fullWidth:!0,InputProps:{disableUnderline:!0,inputRef:e=>{s(e),n(e)},classes:{input:Object(z.a)(a.input,"py-0 px-16 h-48 md:h-64")}},variant:"standard"},c))})}function Kc(e,t){let{query:a,isHighlighted:n}=t;const s=Fc()(e.title,a),c=Hc()(e.title,s);return Object(g.jsxs)(re.a,{selected:n,component:"div",children:[Object(g.jsx)(ic.a,{className:"min-w-40",children:e.icon?Object(g.jsx)(G.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)(mt.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 Xc(e){return e.title}const qc=Object(H.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}}}))),Jc={searchText:"",search:!1,navigation:null,suggestions:[],noSuggestions:!1};function Zc(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&&Fc()(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 Qc(e){const t=Object(_.c)((e=>{let{auth:t}=e;return t.user.role})),a=Object(_.c)(La),[s,c]=Object(n.useReducer)(Zc,Jc),r=qc(e),i=Object(n.useRef)(null),l=Object(n.useRef)(null),o=Object(n.useRef)(null);function b(e){e.stopPropagation(),c({type:"open"}),document.addEventListener("keydown",O,!1)}function j(){c({type:"close"}),document.removeEventListener("keydown",O,!1)}function O(e){27===e.keyCode&&j()}function u(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:Vc,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:Xc,renderSuggestion:Kc};switch(e.variant){case"basic":return Object(g.jsx)("div",{className:Object(z.a)("flex items-center w-full",e.className),ref:l,children:Object(g.jsx)(zc.a,Object(d.a)(Object(d.a)({},h),{},{inputProps:{variant:e.variant,classes:r,placeholder:e.placeholder,value:s.searchText,onChange:u,onFocus:b,InputLabelProps:{shrink:!0},autoFocus:!1},theme:{container:"flex flex-1 w-full",suggestionsList:r.suggestionsList,suggestion:r.suggestion},renderSuggestionsContainer:t=>Object(g.jsx)(kc.a,{anchorEl:l.current,open:Boolean(t.children)||s.noSuggestions,popperOptions:{positionFixed:!0},className:"z-9999",children:Object(g.jsx)("div",{ref:i,children:Object(g.jsxs)(Ct.a,Object(d.a)(Object(d.a)({className:"shadow-lg rounded-8 overflow-hidden"},t.containerProps),{},{style:{width:l.current?l.current.clientWidth:null},children:[t.children,s.noSuggestions&&Object(g.jsx)(B.a,{className:"px-16 py-12",children:e.noResults})]}))})})}))});case"full":return Object(g.jsxs)("div",{className:Object(z.a)(r.root,"flex",e.className),children:[Object(g.jsx)(st.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)(Mc.a,{onClickAway:e=>{return t=e,s.opened&&(!i.current||!i.current.contains(t.target))&&j();var t},children:Object(g.jsx)(Ct.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:l,children:[Object(g.jsx)(zc.a,Object(d.a)(Object(d.a)({},h),{},{inputProps:{classes:r,placeholder:e.placeholder,value:s.searchText,onChange:u,InputLabelProps:{shrink:!0},autoFocus:!0},theme:{container:"flex flex-1 w-full",suggestionsList:r.suggestionsList,suggestion:r.suggestion},renderSuggestionsContainer:t=>Object(g.jsx)(kc.a,{anchorEl:l.current,open:Boolean(t.children)||s.noSuggestions,popperOptions:{positionFixed:!0},className:"z-9999",children:Object(g.jsx)("div",{ref:i,children:Object(g.jsxs)(Ct.a,Object(d.a)(Object(d.a)({className:"shadow-lg",square:!0},t.containerProps),{},{style:{width:l.current?l.current.clientWidth:null},children:[t.children,s.noSuggestions&&Object(g.jsx)(B.a,{className:"px-16 py-12",children:e.noResults})]}))})})})),Object(g.jsx)(U.a,{onClick:e=>j(),className:"mx-8",children:Object(g.jsx)(G.a,{children:"close"})})]})})})]});default:return null}}Qc.defaultProps={trigger:Object(g.jsx)(U.a,{className:"w-40 h-40",children:Object(g.jsx)(G.a,{children:"search"})}),variant:"full",placeholder:"Search",noResults:"No results.."};var $c=Object(E.h)(s.a.memo(Qc));const er=Object(H.a)((e=>({root:{}})));function tr(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=Object(_.c)(Oe.g),n=er(e);return Object(g.jsx)(Xe.a,{theme:a,children:Object(g.jsx)(Ke.a,{id:"fuse-toolbar",className:Object(z.a)(n.root,"flex relative z-10 shadow-md"),color:"default",style:{backgroundColor:a.palette.background.paper},children:Object(g.jsxs)(qe.a,{className:"container p-0 lg:px-24 min-h-48 md:min-h-64",children:[t.navbar.display&&Object(g.jsx)(tt.a,{lgUp:!0,children:Object(g.jsx)(Ls,{className:"w-40 h-40 p-0 mx-0 sm:mx-8"})}),Object(g.jsx)(tt.a,{mdDown:!0,children:Object(g.jsx)("div",{className:Object(z.a)("flex flex-shrink-0 items-center"),children:Object(g.jsx)(Nt,{})})}),Object(g.jsx)("div",{className:"flex flex-1",children:Object(g.jsx)(tt.a,{xsDown:!0,children:Object(g.jsx)($c,{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)(tt.a,{smUp:!0,children:Object(g.jsx)($c,{})})})]})})})}var ar=s.a.memo(tr);const nr=Object(H.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 sr(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current.layout.config})),a=nr(e);return Object(g.jsx)(h.Consumer,{children:n=>{let{routes:s}=n;return Object(g.jsxs)("div",{id:"fuse-layout",className:Object(z.a)(a.root,t.mode),children:[t.leftSidePanel.display&&Object(g.jsx)(Sc,{}),Object(g.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden relative",children:[t.toolbar.display&&"above"===t.toolbar.position&&Object(g.jsx)(ar,{}),t.navbar.display&&Object(g.jsx)(Pc,{}),t.toolbar.display&&"below"===t.toolbar.position&&Object(g.jsx)(ar,{}),Object(g.jsxs)(J.a,{className:Object(z.a)(a.content),scrollToTopOnRouteChange:!0,children:[Object(g.jsx)(w,{}),Object(g.jsxs)("div",{className:"flex flex-auto flex-col relative h-full",children:[Object(g.jsx)(te,{children:Object(m.b)(s)}),e.children,t.footer.display&&"static"===t.footer.style&&Object(g.jsx)(Ec,{})]})]}),t.footer.display&&"fixed"===t.footer.style&&Object(g.jsx)(Ec,{}),Object(g.jsx)(Ve,{})]}),t.rightSidePanel.display&&Object(g.jsx)(wc,{}),Object(g.jsx)(q,{})]})}})}var cr={layout1:Ds,layout2:_c,layout3:s.a.memo(sr)},rr=a(290),ir=a(75);const lr=Object(H.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(ir.fade)(e.palette.secondary.main,.2),color:"inherit",borderBottom:"1px solid ".concat(e.palette.divider),textDecoration:"none","&:hover":{background:Object(ir.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 or(e){const t=Object(_.b)(),a=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.current})),s=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.defaults})),c=Object(n.useContext)(h),{routes:r}=c,i=lr(e),l=Object(E.g)(),{pathname:o}=l,b=Object(m.a)(r,o)[0],O=Object(n.useRef)(null);Object(n.useCallback)((()=>{let e;if(b&&b.route.settings){const t=b.route.settings;e=Object(Oe.b)(s,t)}else e=j.a.isEqual(O.current,s)?O.current:j.a.merge({},s);j.a.isEqual(O.current,e)||(O.current=e),e.animations?(document.body.classList.remove("no-animate"),rr.mock=!1):(document.body.classList.add("no-animate"),rr.mock=!0)}),[s,b])(),A((()=>{j.a.isEqual(O.current,a)||t(Object(Oe.j)(O.current))}),[t,O.current,a]);const u=Object(n.useMemo)((()=>cr[a.layout.style]),[a.layout.style]);return j.a.isEqual(O.current,a)?Object(g.jsx)(u,Object(d.a)({classes:{root:i.root}},e)):null}var dr=s.a.memo(or);const br="undefined"===typeof window?n.useEffect:n.useLayoutEffect;function jr(e){const t=Object(_.c)((e=>{let{fuse:t}=e;return t.settings.defaults.direction})),a=Object(_.c)(Oe.e);return br((()=>{document.body.dir=t}),[t]),Object(g.jsx)(Xe.a,{theme:a,children:e.children})}var Or=s.a.memo(jr),ur=a(566),pr=a(904),hr=a(991),_r=a(72),mr=a(542),Er=a(543),gr=a(544),fr=a.n(gr),xr=a(263);var Nr=a(562),Sr=a(1012);let Tr,Rr=0;class vr 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;Rr=e.getTime(),window.addEventListener("click",(e=>{const t=new Date;Rr=t.getTime()})),Tr||(Tr=setInterval((()=>{const e=(new Date).getTime()-Rr;this.props.getSysConfigure(),e>36e5&&"/admin"!==window.location.pathname&&"/login"!==window.location.pathname&&Object(ft.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)(Nr.a,{className:"global-backdrop",open:this.props.showBackdrop,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),this.props.children]})}}var Lr=Object(_.a)((function(e){let{docbase:t}=e;return{showBackdrop:t.admin.setting.showBackdrop}}),{initialSetup:()=>async e=>{Ba.a.sendPost("/api/initialSetup",{}).then((t=>t.result?e(Xa({product_registered:t.product_registered,administrator_setup:t.administrator_setup})):(Ba.a.printError(t),e(Xa({product_registered:!0,administrator_setup:!0})))))},getProductInfo:Va,getSysConfigure:on})(vr);const Ar=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)(tc.VelocityComponent,Object(d.a)(Object(d.a)({ref:t},e),{},{children:a}))}));Ar.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 Cr=s.a.memo(Ar),yr=a(1039),Pr=a(132),Ir=a(1014),wr=a(1015),Dr=a(910);const Mr=[{id:"ko",title:"\ud55c\uad6d\uc5b4",flag:"ko"}],kr=Object(H.a)((e=>({popover:{background:"#fff",padding:0,"& .lan-title>span":{color:"#222",fontFamily:"S-CoreDream-Regu"}}})));var Gr=function(e){const t=kr(),a=Object(_.b)(),s=Object(_.c)((e=>{let{i18n:t}=e;return t.language})),c=Mr.find((e=>e.id===s)),[r,i]=Object(n.useState)(null),l=()=>{i(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(Oe.h)({direction:s})),o.changeLanguage(t).then((()=>{e(en.actions.languageChanged(t))}))})),sessionStorage.setItem("coodoc-language",e.id),l()}return Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Pr.a,{className:"",onClick:e=>{i(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)(Dr.a,{open:Boolean(r),anchorEl:r,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},classes:{paper:t.popover},children:Mr.map((e=>Object(g.jsxs)(re.a,{onClick:()=>d(e),children:[Object(g.jsx)(ic.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)(mt.a,{className:"lan-title",primary:e.title})]},e.id)))})]})},Ur=a(77),Fr=a.n(Ur),Wr=a(491),Hr=(a(887),a(564)),Br=a(376),zr=a(1013);const Yr=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),Vr=Object(H.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 Kr(e){const t=Object(_.b)(),a=Vr(),{t:n}=Object(gt.a)("docbase"),c=s.a.useRef(null),[r,i]=s.a.useState("");return s.a.useEffect((()=>{i("")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{open:e.open,TransitionComponent:Yr,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)(Hr.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("PRINT_PASSWORD_AUTH")})}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(zr.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)(Gc.a,{className:"",type:"password",name:"cur-password",placeholder:n("PRINT_PASSWORD"),value:r,onChange:e=>i(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputRef:c})}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"btn-send",type:"button",onClick:a=>{r&&r.length>0&&Object(ft.h)(r).then((t=>{e.fnHandleComplete()})).catch((e=>{let a="";e.error===nn.Z?a=n("PRINT_PASSWORD_ERROR_MESSAGE_1"):e.error===nn.eb&&(a=n("PRINT_PASSWORD_ERROR_MESSAGE_2")),t(Object(Y.c)({message:a}))}))},children:n("CHANGE")})]})]})})]})})}const Xr="mobile"===sessionStorage.getItem("device")||window.ReactNativeWebView,qr=Object(H.a)((e=>({root:{position:"relative",backgroundImage:'url("assets/brand/login_bg.png")',backgroundRepeat:"unset",width:"100%!important",height:"100%","&>div":Xr?{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 Jr=function(e){let{history:t,location:a}=e;const c=qr(),r=Object(_.b)(),{t:i}=Object(gt.a)(["docbase","brand"]),l=s.a.useRef(null),o=s.a.useRef(null),[d,b]=s.a.useState("-"),[j,O]=s.a.useState(0),[u,p]=s.a.useState(""),[h,m]=s.a.useState(""),[E,f]=s.a.useState(""),[x,S]=s.a.useState(""),[T,R]=s.a.useState(!1),[v,L]=s.a.useState({open:!1,question:""}),A=Object(_.c)((e=>{let{auth:t}=e;return t.initial})),C="/admin"!==a.pathname,{sysConfigure:y}=Object(_.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===nn.P)a.result?Object(ft.e)(za.a.decryptAESCTR(window.coodocWB.mbRemeID),za.a.decryptAESCTR(window.coodocWB.mbRemePW),"").then((async e=>{window.coodocWB.isFirst=!1,O(e.two_factor_authentication_flag),sessionStorage.setItem("user_id",window.coodocWB.mbRemeID),sessionStorage.setItem("auth",window.coodocWB.mbRemePW),e.need_password_change?R(!0):F(e.two_factor_authentication_flag)})).catch((e=>{e.error===nn.eb?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_1")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_2")}))})):(D("userID",""),D("remember",!1),D("password",""),k(!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=za.a.decryptAESCTR(window.coodocWB.mbRemeID),D("userID",a),D("remember",!0),e=!0),window.coodocWB.mbRemePW&&""!==window.coodocWB.mbRemePW&&(n=za.a.decryptAESCTR(window.coodocWB.mbRemePW),D("password",n),k(!0),t=!0),e&&t&&(window.coodocWB.mbBiometrics?window.ReactNativeWebView.postMessage(JSON.stringify({eventID:nn.K,eventData:{}})):Object(ft.e)(a,n,"").then((async e=>{window.coodocWB.isFirst=!1,O(e.two_factor_authentication_flag),e.need_password_change?R(!0):F(e.two_factor_authentication_flag)})).catch((e=>{e.error===nn.eb?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_1")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_2")}))})))}if("/mv"===a.pathname){new URLSearchParams(a.search);Object(ft.d)().then((async e=>{C&&(O(e.two_factor_authentication_flag),e.need_password_change?R(!0):(sessionStorage.setItem("auth",za.a.encryptAESCTR(P.password)),F(e.two_factor_authentication_flag),window.ReactNativeWebView&&G()))})).catch((e=>{console.log(e),e.error===nn.eb?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_1")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_2")}))}))}return()=>{document.removeEventListener("message",e),window.removeEventListener("message",e)}}),[]),Object(n.useEffect)((()=>{}),[r]),Object(n.useEffect)((()=>{A.product_registered?A.administrator_setup||t.push("/register"):t.push("/regProduct")}),[A]),Object(n.useEffect)((()=>{2===j?o.current.focus():1===j&&l.current.focus()}),[j]);const{form:P,handleChange:I,resetForm:w,setInForm:D}=N({userID:C?Fr.a.get("doc_id")&&""!==Fr.a.get("doc_id")?Fr.a.get("doc_id"):"":Fr.a.get("doc_admin_id")&&""!==Fr.a.get("doc_admin_id")?Fr.a.get("doc_admin_id"):"",password:"",remember:C?Fr.a.get("doc_id")&&""!==Fr.a.get("doc_id"):Fr.a.get("doc_admin_id")&&""!==Fr.a.get("doc_admin_id")}),[M,k]=s.a.useState(!1);function G(e,t){window.ReactNativeWebView.postMessage(JSON.stringify({eventID:nn.Q,eventData:{userID:P.remember?za.a.encryptAESCTR(P.userID):"",passwd:M?sessionStorage.getItem("auth"):""}}))}function F(e){0===e?t.push("/wc/main"):1===e&&Object(ft.g)(P.userID).then((e=>{f(za.a.decryptAES(e.aes,e.secret_key,"hex","utf8")),S("data:image/bmp;base64,".concat(btoa(String.fromCharCode.apply(null,za.a.hexToArray(za.a.decryptAES(e.aes,e.qrcode,"hex","utf8"))))))})).catch((e=>console.error(e)))}let W=Object(g.jsx)(g.Fragment,{});if(0===j?W=Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"login-form",onSubmit:function(e){return e.preventDefault(),""===P.userID.trim()?(r(Object(Y.c)({message:i("USER_ERROR_MESSAGE_3")})),!1):""===P.password.trim()?(r(Object(Y.c)({message:i("USER_ERROR_MESSAGE_5")})),!1):(Object(ft.e)(P.userID,P.password,"").then((async e=>{if(P.remember?Fr.a.set(C?"doc_id":"doc_admin_id",P.userID,{expires:365}):Fr.a.remove(C?"doc_id":"doc_admin_id"),C)O(e.two_factor_authentication_flag),e.need_password_change?R(!0):(sessionStorage.setItem("auth",za.a.encryptAESCTR(P.password)),F(e.two_factor_authentication_flag),window.ReactNativeWebView&&(G(),sessionStorage.setItem("user_id",za.a.encryptAESCTR(P.userID))));else{const e=(await Object(an.h)()).find((e=>e.user_id===P.userID));e&&1===e.privilege?t.push("/dashboard"):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_6")}))}})).catch((e=>{console.log(e),e.error===nn.eb?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_1")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_2")}))})),w(),!0)},children:[Object(g.jsx)(Gc.a,{className:"user-id",placeholder:i("ID"),autoFocus:!0,type:"text",name:"userID",value:P.userID,onChange:I,variant:"standard",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off",autoComplete:"off"},size:"small"}),Object(g.jsx)(Gc.a,{className:"passwd",placeholder:i("PASSWORD"),type:"password",name:"password",value:P.password,onChange:I,variant:"standard",required:!0,fullWidth:!0,size:"small"}),Object(g.jsxs)("div",{className:"flex",children:[Object(g.jsxs)(ne.a,{className:"inline",style:{lineHeight:"35px"},children:[Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{name:"remember",checked:P.remember,onChange:I}),label:i("REMEMBER_ME")}),window.ReactNativeWebView?Object(g.jsx)(se.a,{className:"ml-0",control:Object(g.jsx)(yr.a,{name:"remember",disabled:!P.remember,checked:M,onClick:e=>{k(!M)}}),label:i("REMEMBER_PW")}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)(Gr,{style:{marginLeft:"auto",minWidth:"inherit",width:56,padding:0}})]}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"submit-btn","aria-label":"LOG IN",fullWidth:!0,type:"submit",children:i("LOGIN")})]}):1===j?W=Object(g.jsxs)("form",{name:"loginForm",noValidate:!0,className:"login-form",children:[Object(g.jsx)("img",{className:Object(z.a)(c.imgQrcode),width:"200",height:"200",alt:"qrcode",src:x}),Object(g.jsx)(Gc.a,{className:"totp",placeholder:i("TOTP_VALUE"),autoFocus:!0,type:"text",name:"regTotp",value:h,onChange:e=>m(e.target.value),variant:"standard",required:!0,fullWidth:!0,inputProps:{autoComplete:"off"},inputRef:l,size:"small",onKeyDown:e=>{13===e.keyCode&&h.trim().length>0&&6===h.trim().length&&Object(ft.i)(E,h).then((e=>{t.push("/wc/main")})).catch((e=>{e.error===nn.db?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_3")})):e.error===nn.U?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_4")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_5")}))}))}}),Object(g.jsx)(Pr.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(ft.i)(E,h).then((e=>{t.push("/wc/main")})).catch((e=>{e.error===nn.db?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_3")})):e.error===nn.U?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_4")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_5")}))}))},children:i("REGISTER")})]}):2===j&&(W=Object(g.jsxs)("div",{name:"loginForm",noValidate:!0,className:"login-form",children:[Object(g.jsx)(Kr,{open:v.open,question:v.question,fnHandleClose:()=>L({open:!1,question:""}),fnHandleComplete:()=>{P.remember?Fr.a.set("doc_id",P.userID,{expires:365}):Fr.a.remove("doc_id"),t.push("/wc/main")}}),Object(g.jsx)(Gc.a,{className:"",placeholder:i("TOTP_VALUE"),autoFocus:!0,type:"text",name:"totp",value:u,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(ft.a)(u).then((e=>{P.remember?Fr.a.set("doc_id",P.userID,{expires:365}):Fr.a.remove("doc_id"),t.push("/wc/main")})).catch((e=>{e.error===nn.db?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_3")})):e.error===nn.U?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_4")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_5")}))}))}}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"defalut","aria-label":"Paper OTP",type:"button",onClick:e=>{Object(ft.j)().then((e=>{L({open:!0,question:e})})).catch((e=>{e.error===nn.Z?r(Object(Y.c)({message:i("PRINT_PASSWORD_ERROR_MESSAGE_1")})):(r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_5")})),console.error(e))}))},children:i("PRINT_PASSWORD")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"LOG IN",onClick:e=>{Object(ft.a)(u).then((e=>{P.remember?Fr.a.set("doc_id",P.userID,{expires:365}):Fr.a.remove("doc_id"),t.push("/wc/main")})).catch((e=>{e.error===nn.db?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_3")})):e.error===nn.U?r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_4")})):r(Object(Y.c)({message:i("LOGIN_ERROR_MESSAGE_5")}))}))},type:"button",children:i("CONFIRM")})]})]})),Xr){if(!y.mobile_web_support)return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"info-wrapper",children:Object(g.jsxs)(wr.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:i("DESKTOP_WEB_NOT_SUPPORT")})]})})})})})}else if(!y.desktop_web_support&&"/admin"!==a.pathname)return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"info-wrapper",children:Object(g.jsxs)(wr.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:i("DESKTOP_WEB_NOT_SUPPORT")})]})})})})});return Object(g.jsx)("div",{className:c.root,children:Object(g.jsx)("div",{className:"",children:Object(g.jsxs)(Ir.a,{className:"login-wrapper",children:[Object(g.jsx)(Wr.a,{open:T,curPassword:P.password,fnHandleClose:()=>R(!1),fnHandleComplete:()=>{R(!1),F(j),G()}}),Object(g.jsxs)(wr.a,{className:Object(z.a)(Xr?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:C?"":i("brand:PRODUCT_NAME_ADMIN")}),W,Xr?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)("div",{className:"client-download-wrapper",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(Gc.a,{select:!0,className:"",value:d,variant:"outlined",size:"small",fullWidth:!0,onChange:e=>b(e.target.value),children:[Object(g.jsx)(re.a,{value:"-",children:i("DOWNLOAD_CLIENT")}),Object(g.jsx)(re.a,{value:"online_win x86",children:"Windows x86"}),Object(g.jsx)(re.a,{value:"online_win x64",children:"Windows x64"}),Object(g.jsx)(re.a,{value:"online_mac_arm",children:"MAC"}),Object(g.jsx)(re.a,{value:"online_mac_amd",children:"MAC(Intel)"}),y.support_windows_dlp?Object(g.jsx)(re.a,{value:"windows_dlp",children:"Win DLP"}):""]})}),Object(g.jsx)("div",{children:Object(g.jsx)(U.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"):r(Object(Y.d)({message:i("DOWNLOAD_ERROR")}))},children:Object(g.jsx)(la.a,{className:"small",type:"client-download",fill:"#333d4b"})})})]})]})]})})})};var Zr={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/admin",component:Jr},{path:"/login",component:Jr},{path:"/mv",component:Jr}]};const Qr=Object(H.a)((e=>({root:{background:"radial-gradient(".concat(Object(ir.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var $r=function(e){let{history:t}=e;const a=Qr(),c=Object(_.b)(),{t:r}=Object(gt.a)("docbase"),i=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),l=Object(_.c)((e=>{let{auth:t}=e;return t.initial})),{form:o,handleChange:d,resetForm:b}=N({userid:"",name:"",password:"",passwordConfirm:"",email:""}),[j,O]=s.a.useState(i?i.language:"korean"),[u,p]=s.a.useState(i?String(i.server_side_encryption):"true");Object(n.useEffect)((()=>{}),[c]),Object(n.useEffect)((()=>{l.administrator_setup&&t.push("/admin")}),[l]),Object(n.useEffect)((()=>{O(i.language),p(String(i.server_side_encryption))}),[i]);const h=e=>{c(dn({name:e.target.name,value:e.target.value})).then((()=>{c(on())}))};return Object(g.jsx)("div",{className:Object(z.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)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(wr.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)(B.a,{variant:"h6",className:"mt-10 mb-12 font-bold text-20 sm:text-24",color:"primary",children:r("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,i;e.preventDefault(),(a=o.userid,n=o.password,s=o.name,i=o.email,new Promise(((e,t)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/api/setAdministrator",{administrator_id:za.a.encryptAES(c,a,"utf8","hex"),password:za.a.encryptAES(c,n,"utf8","hex"),name:s,email:i||"",token:r}).then((a=>{a.result?e(a):(Ba.a.printError(a),t(a))}))}))}))).then((e=>{if(e.result)c(qa(!0)),Object(ft.e)(o.userid,o.password,"").then((e=>{t.replace("/dashboard")})).catch((e=>{console.error(e)}));else{let t=r("ADMIN_ERROR_MESSAGE_1");e.error===nn.U&&(t=r("ADMIN_ERROR_MESSAGE_2")),c(qa(!1)),c(Object(Y.d)({message:t,variant:"error"}))}})).catch((e=>{})),b()},children:[2===i.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(Gc.a,{select:!0,className:"mb-16",name:"server_side_encryption",value:u,label:r("SERVER_ENCRYPT"),fullWidth:!0,onChange:e=>h(e),children:[Object(g.jsx)(re.a,{value:"true",children:r("USE")}),Object(g.jsx)(re.a,{value:"false",children:r("UNUSED")})]}),Object(g.jsxs)(Gc.a,{name:"language",value:j,label:r("LANGUAGE"),fullWidth:!0,onChange:e=>h(e),children:[Object(g.jsx)(re.a,{value:"korean",children:"\ud55c\uad6d\uc5b4"}),Object(g.jsx)(re.a,{value:"english",children:"English"})]})]}),Object(g.jsx)(Gc.a,{className:"mb-16",label:r("ID"),type:"text",name:"userid",value:o.userid,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Gc.a,{className:"mb-16",label:r("NAME"),autoFocus:!0,type:"text",name:"name",value:o.name,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Gc.a,{className:"mb-16",label:r("EMAIL"),type:"email",name:"email",value:o.email,onChange:d,variant:"outlined",fullWidth:!0,size:"small"}),Object(g.jsx)(Gc.a,{className:"mb-16",label:r("PASSWORD"),type:"password",name:"password",value:o.password,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Gc.a,{className:"mb-16",label:r("PASSWORD_CONFIRM"),type:"password",name:"passwordConfirm",value:o.passwordConfirm,onChange:d,variant:"outlined",required:!0,fullWidth:!0,size:"small"}),Object(g.jsx)(Pr.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:r("CREATE")})]})]})})})})})};var ei={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/register",component:$r}]},ti=a(30),ai=a(54),ni=a.n(ai),si=a(1036),ci=a(1022),ri=a(1049),ii=a(26);const li=Object(H.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 oi(e){const{t:t}=Object(gt.a)("docbase"),a=li(),{usersObj:n}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[c,r]=s.a.useState(""),[i,l]=s.a.useState(""),[o,d]=s.a.useState(""),[b,j]=s.a.useState("");s.a.useEffect((()=>{r(""),l(""),d(""),j("")}),[e.open]);const O="(".concat(Object.keys(e.selectedUsers).map((e=>n[e].name)).join(", "),")");return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{className:a.title,id:"form-dialog-title",children:t("USER_MENU_1")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(zr.a,{className:"text-1",id:"alert-dialog-slide-description",children:"".concat(O).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)(Gc.a,{className:"",type:"password",placeholder:t("USER_ERROR_MESSAGE_5"),name:"password",fullWidth:!0,value:c,variant:"outlined",error:""!==o,helperText:o,onChange:e=>r(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)(Gc.a,{className:"",type:"password",placeholder:t("USER_ERROR_MESSAGE_5"),name:"passwordConfirm",fullWidth:!0,value:i,variant:"outlined",error:""!==b,helperText:b,onChange:e=>l(e.target.value),size:"small"})})]}),Object(g.jsx)(zr.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)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.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===i&&(n=t("RESET_PASSWORD_ERROR_MESSAGE_2")),i!==c&&(a=t("RESET_PASSWORD_ERROR_MESSAGE_3"),n=t("RESET_PASSWORD_ERROR_MESSAGE_3")),d(a),j(n),""===a&&""===n&&(e.fnHandleOK(c),r(""),l(""))}(),children:t("CHANGE")})]})]})})]})})}var di=a(565),bi=a(1040);const ji=Object(H.a)((e=>({titleWrapper:{"padding-bottom":"0"},actionsWrapper:{padding:"16px 24px 24px"},backdrop:{zIndex:100,color:"#fff"}})));function Oi(e){const{t:t}=Object(gt.a)("docbase"),a=ji(),[n,c]=s.a.useState([]);return s.a.useEffect((()=>{c([{user_id:"-",label:t("DELETE")},...e.users.filter((t=>t.user_id!==e.deleteID))])}),[e.users,e.deleteID]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{className:a.titleWrapper,id:"alert-dialog-slide-title",children:"".concat(e.userID,"(").concat(e.name,")").concat(t("DELETE_CONTENT"))}),Object(g.jsxs)(Br.a,{className:"overflow-y-hidden",children:[Object(g.jsxs)(zr.a,{id:"alert-dialog-slide-description",children:[t("USER_DELETE_CONTENT_1"),Object(g.jsx)("br",{}),t("USER_DELETE_CONTENT_2")]}),Object(g.jsx)(bi.a,{id:"handover-auto",options:n,getOptionLabel:e=>""===e?"":"-"===e.user_id?t("DELETE"):"".concat(e.name,"(").concat(e.user_id,")"),autoComplete:!0,includeInputInList:!0,value:"",onChange:(t,a)=>{a&&e.selectedHandoverUserID(a)},renderInput:e=>Object(g.jsx)(Gc.a,Object(d.a)(Object(d.a)({},e),{},{label:t("USER_SELECT"),variant:"outlined"})),fullWidth:!0,size:"small"})]}),Object(g.jsxs)(di.a,{className:a.actionsWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,color:"primary",variant:"contained",className:"w-full mx-auto","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"w-full mx-auto",type:"button",onClick:e.fnHandleOK,children:t("DELETE")})]}),Object(g.jsx)(Nr.a,{className:a.backdrop,open:e.openBackdrop,children:Object(g.jsx)(Sr.a,{color:"inherit"})})]})})}var ui=a(87);var pi=s.a.memo(Object(ui.b)((function(e){const t=j.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,n=e.value||"";return Object(g.jsx)(Gc.a,Object(d.a)(Object(d.a)({},t),{},{onChange:t=>{return a=t,e.setValue(a.currentTarget.value),void(e.onChange&&e.onChange(a));var a},value:n,error:Boolean(!e.isPristine&&e.showRequired||a),helperText:a}))}))),hi=a(919);var _i=s.a.memo(Object(ui.b)((function(e){const t=j.a.pick(e,["checkedIcon","classes","color","disabled","disableRipple","icon","id","indeterminate","indeterminateIcon","inputProps","inputRef","onChange","variant"]),{errorMessage:a,value:n}=e;return Object(g.jsxs)(ne.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,children:[Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,Object(d.a)(Object(d.a)({},t),{},{type:"checkbox",checked:n,onChange:t=>{return a=t,e.setValue(a.target.checked),void(e.onChange&&e.onChange(a));var a}})),label:e.label}),Boolean(a)&&Object(g.jsx)(hi.a,{children:a})]})})));Object(ui.b)((function(e){const t=j.a.pick(e,["children","name","onBlur","onChange","onKeyDown","variant","color"]),{errorMessage:a,value:n}=e;return Object(g.jsx)(ne.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,children:Object(g.jsxs)(ne.a,{component:"fieldset",required:e.required,error:Boolean(a),children:[e.label&&Object(g.jsx)(ce.a,{component:"legend",children:e.label}),Object(g.jsx)(le.a,Object(d.a)(Object(d.a)({},t),{},{value:n||null,onChange:(t,a)=>function(t,a){e.setValue(a),e.onChange&&e.onChange(t)}(t,a)})),Boolean(a)&&Object(g.jsx)(hi.a,{children:a})]})})}));var mi=a(909),Ei=a(918),gi=a(924);var fi=s.a.memo(Object(ui.b)((function(e){const t=j.a.pick(e,["autoWidth","children","classes","displayEmpty","input","inputProps","MenuProps","multiple","native","onChange","onClose","onOpen","open","renderValue","SelectDisplayProps","value","variant","color"]),{errorMessage:a,value:n}=e;return Object(g.jsxs)(ne.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:e.className,variant:t.variant,children:[e.label&&Object(g.jsx)(Ei.a,{htmlFor:e.name,children:e.label}),Object(g.jsx)(oe.a,Object(d.a)(Object(d.a)({},t),{},{value:n,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(g.jsx)(gi.a,{labelWidth:8*e.label.length,id:e.name});case"filled":return Object(g.jsx)(mi.a,{id:e.name});default:return Object(g.jsx)(rc.a,{id:e.name})}}()})),Boolean(a)&&Object(g.jsx)(hi.a,{children:a})]})}))),xi=a(1047),Ni=a(556),Si=a(549);const Ti=["inputRef"],Ri=Object(H.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(ir.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 vi(e){let{inputRef:t}=e,a=Object(Dc.a)(e,Ti);return Object(g.jsx)("div",Object(d.a)({ref:t},a))}const Li={Control:function(e){const t=Ri();return Object(g.jsx)(Gc.a,Object(d.a)({fullWidth:!0,className:Object(z.a)(t.root,e.selectProps.textFieldProps.variant),required:e.selectProps.required,error:e.selectProps.error,InputProps:{inputComponent:vi,inputProps:Object(d.a)({className:t.input,inputRef:e.innerRef,children:e.children},e.innerProps)}},e.selectProps.textFieldProps))},Menu:function(e){const t=Ri();return Object(g.jsx)(Ct.a,Object(d.a)(Object(d.a)({square:!0,className:t.paper},e.innerProps),{},{children:e.children}))},MultiValue:function(e){const t=Ri();return Object(g.jsx)(xi.a,{tabIndex:-1,label:e.children,className:Object(z.a)(t.chip,{[t.chipFocused]:e.isFocused},e.data.class),onDelete:t=>{e.removeProps.onClick(),e.removeProps.onMouseDown(t)}})},NoOptionsMessage:function(e){const t=Ri();return Object(g.jsx)(B.a,Object(d.a)(Object(d.a)({color:"textSecondary",className:t.noOptionsMessage},e.innerProps),{},{children:e.children}))},Option:function(e){return Object(g.jsx)(re.a,Object(d.a)(Object(d.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=Ri();return Object(g.jsx)(B.a,Object(d.a)(Object(d.a)({color:"textSecondary",className:t.placeholder},e.innerProps),{},{children:e.children}))},SingleValue:function(e){const t=Ri();return Object(g.jsx)(B.a,Object(d.a)(Object(d.a)({className:t.singleValue},e.innerProps),{},{children:e.children}))},ValueContainer:function(e){const t=Ri();return Object(g.jsx)("div",{className:t.valueContainer,children:e.children})}};function Ai(e){const t=t=>{null===t&&(t=[]),e.onChange&&e.onChange(t)};return"fixed"===e.variant?Object(g.jsx)(Ni.a,Object(d.a)(Object(d.a)({classNamePrefix:"fuse-chip-select"},e),{},{components:Li,onChange:t})):Object(g.jsx)(Si.a,Object(d.a)(Object(d.a)({classNamePrefix:"fuse-chip-select"},e),{},{components:Li,onChange:t}))}var Ci=s.a.memo(Ai);Object(ui.b)((function(e){const t=j.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:n}=e;return Object(g.jsxs)(ne.a,{error:Boolean(!e.isPristine&&e.showRequired||a),className:Object(z.a)(e.className,"z-10",e.showRequired?"required":"",e.showError?"error":null),variant:t.variant,children:[e.label&&Object(g.jsx)(Ei.a,{htmlFor:e.name,children:e.label}),Object(g.jsx)(Ci,Object(d.a)(Object(d.a)({},t),{},{value:n,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(g.jsx)(hi.a,{children:a})]})}));var yi=a(1016),Pi=a(44);const Ii=Object(H.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%",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}},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 wi(e){const t=Ii(),a=Object(_.b)(),{t:n}=Object(gt.a)("docbase"),c=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),[r,i]=s.a.useState({}),[l,o]=s.a.useState(!1),[d,b]=s.a.useState(null),[j,O]=s.a.useState(!1),u=s.a.useRef(null);return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Nr.a,{className:t.backdrop,open:l,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),Object(g.jsx)(Hr.a,{className:t.title,id:"form-dialog-title",children:n("USER_ADD")}),Object(g.jsx)(ui.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:t=>function(t){const s={};let r=!0;!t.userID||t.userID.trim().length<=0?(s.userID=n("USER_ERROR_MESSAGE_3"),r=!1):/[\\/:*?\\"<>|]/.test(t.userID.trim())&&(s.userID=n("PATTERN_ERROR_MESSAGE"),r=!1),(!t.name||t.name.trim().length<=0)&&(s.name=n("USER_ERROR_MESSAGE_4"),r=!1),!t.password||t.password.length<=0?(s.password=n("USER_ERROR_MESSAGE_5"),r=!1):!t.passwordConfirm||t.passwordConfirm.length<=0?(s.passwordConfirm=n("USER_ERROR_MESSAGE_6"),r=!1):t.password!==t.passwordConfirm?(s.passwordConfirm=n("USER_ERROR_MESSAGE_7"),r=!1):s.passwordConfirm="",c.OSR_support&&"-"===t.local_account&&(a(Object(Y.c)({message:n("USER_ERROR_MESSAGE_20")})),r=!1),j&&null===d&&(a(Object(Y.c)({message:n("EXPIRE_AT_ERROR_MESSAGE_1")})),r=!1),i(s),r&&!l&&(o(!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,j?Et.a.getDateString(d):"").then((t=>{a(Object(Y.d)({message:n("USER_MESSAGE_1")})),a(Object(an.g)()),e.fnHandleClose()})).catch((e=>{e.error===nn.U?a(Object(Y.c)({message:n("USER_ERROR_MESSAGE_8")})):e.error===nn.Y?a(Object(Y.c)({message:n("USER_ERROR_MESSAGE_10")})):e.error===nn.W&&a(Object(Y.c)({message:n("USER_ERROR_MESSAGE_13")}))})).finally((()=>{o(!1)})))}(t),validationErrors:r,ref:u,children:Object(g.jsx)(Br.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)(pi,{className:"",placeholder:n("ENTER_ID"),type:"text",name:"userID",variant:"outlined",validations:{idCheck:(e,t)=>(t?t.trim().length>30?i({userID:n("USER_ERROR_MESSAGE_9")}):/[\\/:*?\\"<>|]/.test(t.trim())?i({userID:n("PATTERN_ERROR_MESSAGE")}):i({userID:""}):i({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)(pi,{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)(pi,{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)(pi,{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)(pi,{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)(fi,{className:"w-full",name:"access_level",label:"",value:"10000",variant:"outlined",size:"small",children:[Object(g.jsx)(re.a,{value:"10000",children:"-"}),Object(g.jsx)(re.a,{value:"1",children:"1"}),Object(g.jsx)(re.a,{value:"2",children:"2"}),Object(g.jsx)(re.a,{value:"3",children:"3"}),Object(g.jsx)(re.a,{value:"4",children:"4"}),Object(g.jsx)(re.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)(fi,{className:"w-full",name:"local_account",label:"",value:"-",variant:"outlined",size:"small",children:[Object(g.jsx)(re.a,{value:"-",children:"-"}),Object(g.jsx)(re.a,{value:"true",children:n("YES")}),Object(g.jsx)(re.a,{value:"false",children:n("NO")})]}),Object(g.jsx)("p",{className:"hint",children:n("LOCAL_ACCOUNT_HELP")})]})]}):Object(g.jsx)(g.Fragment,{}),2===c.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:n("MULTIPLE_LOGINS")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(fi,{className:"w-full",name:"allow_multiple_logins",label:"",value:"0",variant:"outlined",size:"small",children:[Object(g.jsx)(re.a,{value:0,children:n("UNUSED")}),Object(g.jsx)(re.a,{value:"2",children:"2"}),Object(g.jsx)(re.a,{value:"3",children:"3"}),Object(g.jsx)(re.a,{value:"4",children:"4"}),Object(g.jsx)(re.a,{value:"5",children:"5"})]})})]}),c.dataleak_control?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)(fi,{className:"w-full",name:"dataleak_control",label:"",value:"-",variant:"outlined",size:"small",children:[Object(g.jsx)(re.a,{value:"false",children:n("NO")}),Object(g.jsx)(re.a,{value:"true",children:n("YES")})]})})]}):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("EXPIRE_AT")})}),Object(g.jsxs)("div",{className:"input-area flex",style:{gab:1,alignItems:"center"},children:[Object(g.jsx)(_i,{name:"use-expire",value:j,onChange:e=>O(e.target.checked),style:{"&>.MuiFormControlLabel-root":{marginLeft:"-5px"}}}),Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.a,{className:t.datePicker,fullWidth:!0,disabled:!j,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:d,onChange:e=>{isNaN(e.getTime())||null!==d&&d.getTime()===e.getTime()||b(e)},KeyboardButtonProps:{"aria-label":"change date start"}})})]})]})]}),Object(g.jsxs)("div",{className:t.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n("ADD")})]})]})})})]})})}var Di=a(920);const Mi=Object(H.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 ki(e){const t=Mi(),a=Object(_.b)(),{t:n}=Object(gt.a)("docbase"),c=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.sysConfigure})),{usersObj:r}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[i,l]=s.a.useState(!1),[o,b]=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:""};e.currentUserID&&""!==e.currentUserID&&(t=Object(d.a)({},r[e.currentUserID])),t.expire_at&&""!==t.expire_at&&(t.expire_at=Et.a.getDateStringToDate(t.expire_at));const a=await Object(an.m)(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,b(t)})()}),[e.currentUserID]);const j=(e,t)=>{if("expire_at"===e.target.name)isNaN(t.getTime())||null!==o.expire_at&&""!==o.expire_at&&o.expire_at.getTime()===t.getTime()||b(Object(d.a)(Object(d.a)({},o),{},{expire_at:t}));else if("private_capacity_unit"===e.target.name){let e=0;e=o.privateSizeUnit?1024*o.privateMaxSize:o.privateMaxSize<1024?o.privateMaxSize:Math.floor(o.privateMaxSize/1024),b(Object(d.a)(Object(d.a)({},o),{},{privateSizeUnit:!o.privateSizeUnit,privateMaxSize:e}))}else if("collect_capacity_unit"===e.target.name){let e=0;e=o.collectorSizeUnit?1024*o.collectorMaxSize:o.collectorMaxSize<1024?o.collectorMaxSize:Math.floor(o.collectorMaxSize/1024),b(Object(d.a)(Object(d.a)({},o),{},{collectorSizeUnit:!o.collectorSizeUnit,collectorMaxSize:e}))}else b(Object(d.a)(Object(d.a)({},o),{},{[e.target.name]:e.target.value}))},O=async t=>{if(l(!0),"expire_at"===t)return Object(an.n)(r[e.currentUserID],t,Et.a.getDateString(o.expire_at)).then((e=>{a(Object(Y.d)({message:n("EXPIRE_AT_CHANGE_MESSAGE_2")}))})).catch((e=>{a(Object(Y.c)({message:n("FAILED")}))})).finally((()=>{l(!1)})),!1;if("expire_at_release"===t)return Object(an.n)(r[e.currentUserID],t,"").then((e=>{a(Object(Y.d)({message:n("EXPIRE_AT_RELEASE_MESSAGE_2")})),b(Object(d.a)(Object(d.a)({},o),{},{expire_at:null}))})).catch((e=>{a(Object(Y.c)({message:n("FAILED")}))})).finally((()=>{l(!1)})),!1;if(""===o.name)return a(Object(Y.c)({message:n("USER_ERROR_MESSAGE_4")})),!1;const s=o.privateSizeUnit?o.privateMaxSize:1024*o.privateMaxSize,c=o.collectorSizeUnit?o.collectorMaxSize:1024*o.collectorMaxSize;let i=!1;return o.privateSize!==s&&($n(o.privatePath,s).then((()=>{a(Object(Y.d)({message:n("CHANGE_CAPACITY_MESSAGE_1")}))})).catch((e=>{a(Object(Y.c)({message:n("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),i=!0),o.collectorSize!==c&&($n(o.collectorPath,c).then((()=>{a(Object(Y.d)({message:n("CHANGE_CAPACITY_MESSAGE_1")}))})).catch((e=>{a(Object(Y.c)({message:n("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),i=!0),e.fnChangeSize(e.currentUserID,1024*s*1024,1024*c*1024),Object(an.o)(o).then((()=>{a(Object(Y.d)({message:n("USER_MESSAGE_2")})),a(Object(an.g)()),e.fnHandleClose()})).catch((e=>{a(Object(Y.c)({message:n("FAILED")}))})).finally((()=>{l(!1)})),!0};return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Nr.a,{className:t.backdrop,open:i,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),Object(g.jsx)(Hr.a,{className:t.title,id:"form-dialog-title",children:o.user_id}),Object(g.jsxs)(Br.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)(Gc.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:o.name,onChange:e=>j(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)(Gc.a,{className:"",variant:"outlined",type:"text",name:"email",fullWidth:!0,value:o.email,onChange:e=>j(e)})})]}),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)(oe.a,{id:"access_level",variant:"outlined",name:"access_level",className:"w-full",value:o.access_level,onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:1e4,children:"-"}),Object(g.jsx)(re.a,{value:1,children:"1"}),Object(g.jsx)(re.a,{value:2,children:"2"}),Object(g.jsx)(re.a,{value:3,children:"3"}),Object(g.jsx)(re.a,{value:4,children:"4"}),Object(g.jsx)(re.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)(oe.a,{id:"no_sync_osr",name:"no_sync_osr",variant:"outlined",className:"w-full",value:o.no_sync_osr.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("NO_SYNC_OSR")}),Object(g.jsx)(re.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)(oe.a,{id:"local_account",name:"local_account",variant:"outlined",className:"w-full",value:o.local_account.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("MANUAL")}),Object(g.jsx)(re.a,{value:"false",children:n("AUTO")})]})})]})]}):Object(g.jsx)(g.Fragment,{}),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("MULTIPLE_LOGINS")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(oe.a,{id:"allow_multiple_logins",name:"allow_multiple_logins",variant:"outlined",className:"w-full",value:o.allow_multiple_logins,onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:0,children:n("UNUSED")}),Object(g.jsx)(re.a,{value:2,children:"2"}),Object(g.jsx)(re.a,{value:3,children:"3"}),Object(g.jsx)(re.a,{value:4,children:"4"}),Object(g.jsx)(re.a,{value:5,children:"5"})]})})]}),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)(oe.a,{id:"locked",name:"locked",variant:"outlined",className:"w-full",value:o.locked.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("LOCK")}),Object(g.jsx)(re.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:o.expire_at,onChange:e=>{j({target:{name:"expire_at"}},e)},KeyboardButtonProps:{"aria-label":"change date start"}})}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60,marginRight:5,marginLeft:5},onClick:()=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:n("EXPIRE_AT_CHANGE"),content:n("EXPIRE_AT_CHANGE_MESSAGE_1"),fnHandleOK:()=>{O("expire_at")}})}))},children:n("CHANGE")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:n("EXPIRE_AT_RELEASE"),content:n("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{O("expire_at_release")}})}))},children:n("RELEASE")})]})]}),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)(oe.a,{id:"support_dynamic_security_mode",name:"support_dynamic_security_mode",variant:"outlined",className:"w-full",value:o.support_dynamic_security_mode.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("USE")}),Object(g.jsx)(re.a,{value:"false",children:n("UNUSED")})]})})]})]}),c.dataleak_control?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("DATALEAK_CONTROL_USE")})}),Object(g.jsx)("div",{className:"inputField",children:Object(g.jsxs)(oe.a,{id:"dataleak_control",name:"dataleak_control",variant:"outlined",className:"w-full",value:o.dataleak_control.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("USE")}),Object(g.jsx)(re.a,{value:"false",children:n("UNUSED")})]})})]}),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)(oe.a,{id:"allow_takeout_private_folder",name:"allow_takeout_private_folder",variant:"outlined",className:"w-full",value:o.allow_takeout_private_folder,onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"true",children:n("PERMIT")}),Object(g.jsx)(re.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)(oe.a,{id:"allow_takeout",name:"allow_takeout",variant:"outlined",className:"w-full",value:o.allow_takeout.toString(),onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:1,children:n("PERMIT")}),Object(g.jsx)(re.a,{value:0,children:n("UNAVAILABLE")}),Object(g.jsx)(re.a,{value:2,children:n("FOLLOWS_FOLDER_MASTER_POLICIES")})]})})]})]}):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("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)(gi.a,{type:"number",name:"privateMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"private_capacity_unit",name:"private_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:o.privateSizeUnit,onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})}),value:o.privateMaxSize,onChange:e=>j(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)(gi.a,{type:"number",name:"collectorMaxSize",disableUnderline:!0,className:"w-full",endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsxs)(oe.a,{id:"collect_capacity_unit",name:"collect_capacity_unit",disableUnderline:!0,variant:"standard",className:"",value:o.collectorSizeUnit,onChange:e=>j(e),children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})}),value:o.collectorMaxSize,onChange:e=>j(e)})})]})]}),Object(g.jsx)(di.a,{style:{padding:0},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",onClick:()=>O("all"),children:n("CHANGE")})]})})]})})}var Gi=a(1018),Ui=a(1019),Fi=a(1020),Wi=a(1017),Hi=a(1048),Bi=a(1021);var zi=e=>{let{isUpdatable:t,id:a,className:n,align:s,name:c,value:r,items:i,onChange:l}=e;const{t:o}=Object(gt.a)("docbase");return t?Object(g.jsx)(Wi.a,{className:Object(z.a)(n,"customCell"),align:s,component:"td",scope:"row",children:Object(g.jsx)(oe.a,{id:a,name:c,variant:"standard",className:"w-full",value:r,onChange:e=>l(e),children:i.map((e=>Object(g.jsx)(re.a,{value:e.value,children:o(e.title)})))})}):Object(g.jsx)(Wi.a,{id:a,className:Object(z.a)(n,"customCell"),align:s,component:"td",scope:"row",children:r})},Yi=s.a.memo((e=>{let{customCols:t,data:a,order:n,handleRequestSort:c,selectedMap:r,popUserModify:i,selectUser:l,changedSize:o}=e;const{sysConfigure:b}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{t:j}=Object(gt.a)("docbase"),O=Object.keys(r),[u,p]=s.a.useState(null);return s.a.useEffect((()=>{u||(async()=>{const e=await Object(sn.v)(),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)})()}),[u]),s.a.useEffect((()=>{if(u&&""!==o.id){const e=u[o.id];e.private===o.privateSize&&e.collect===o.collectSize||p(Object(d.a)(Object(d.a)({},u),{},{[o.id]:{private:o.privateSize,collect:o.collectSize}}))}}),[o]),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:t.map((e=>b.OSR_support||"no_sync_osr"!==e.id&&"local_account"!==e.id?2===b.menu_support_type&&"allow_multiple_logins"===e.id?"":"check_id"===e.id?Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:O.length>0&&O.length{}})}):Object(g.jsx)(Wi.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)(Hi.a,{active:n.id===e.id,direction:n.direction,onClick:t=>c(t,e.id),children:j(e.labelKey)}):j(e.labelKey)},e.id):""),void 0)})}),Object(g.jsx)(Bi.a,{children:a.map((e=>{const a=e.user_id in r;return Object(g.jsx)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":a,tabIndex:-1,selected:a,onClick:t=>l(e.user_id),children:t.map((t=>"check_id"===t.id?Object(g.jsx)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>l(e.user_id)})}):"user_id"===t.id?Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)("span",{className:"tableLink",onClick:t=>{t.stopPropagation(),i(e.user_id)},children:e.user_id})}):"private_capacity"===t.id||"collector_capacity"===t.id?Object(g.jsx)(Wi.a,{id:t.id,name:t.name,className:t.className,align:t.align,children:Object(g.jsx)("span",{className:"tableLink",onClick:t=>{t.stopPropagation(),i(e.user_id)},children:(()=>{const a=null===u||void 0===u?void 0:u[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"})()})}):Object(g.jsx)(zi,{id:t.id,name:t.name,className:t.className,align:t.align,isUpdatable:t.isUpdatable,value:e[t.id],onChange:e=>{console.log(e.target.value),console.log(e.target.name)},items:t.items})))},e.user_id)}))})]})}));const Vi=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1},{id:"version",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_VERSION",sort:!0,isUpdatable:!1},{id:"mac_address",align:"center",className:"center",disablePadding:!1,labelKey:"MAC_ADDRESS",sort:!0,isUpdatable:!1},{id:"ip_address",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_IP",sort:!0,isUpdatable:!1},{id:"installed_at",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_INSTALL_AT",sort:!0,isUpdatable:!1},{id:"last_logged_at",align:"center",className:"center",disablePadding:!1,labelKey:"CLIENT_INFO_LAST_LOGIN_AT",sort:!0,isUpdatable:!1},{id:"no_sync_osr",name:"no_sync_osr",align:"center",className:"",disablePadding:!1,labelKey:"NO_SYNC_OSR",sort:!0,isUpdatable:!0,items:[{value:!0,titleKey:"NO_SYNC_OSR"},{value:!1,titleKey:"SYNC_OSR"}]}],Ki=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1},{id:"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"}]},{id:"access_level",align:"center",className:"",disablePadding:!1,labelKey:"ACCESS_LEVEL",sort:!0,isUpdatable:!0,items:[{value:1e4,title:"-"},{value:0,title:"0"},{value:1,title:"1"},{value:2,title:"2"},{value:3,title:"3"},{value:4,title:"4"},{value:5,title:"5"}]},{id:"locked",align:"center",className:"",disablePadding:!1,labelKey:"USER_LOCK",sort:!0,isUpdatable:!0,items:[{value:!0,title:"LOCK"},{value:!1,title:"UNLOCK"}]},{id:"expire_at",align:"center",className:"center",disablePadding:!1,labelKey:"EXPIRE_AT",sort:!0,isUpdatable:!1}],Xi=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1},{id:"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"}]},{id:"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"}]},{id:"private_capacity",align:"center",className:"",disablePadding:!1,labelKey:"PRIVATE_MAX_CAPACITY",sort:!0,isUpdatable:!0,items:[{value:!0,title:"LOCK"},{value:!1,title:"UNLOCK"}]},{id:"collector_capacity",align:"center",className:"",disablePadding:!1,labelKey:"COLLECT_MAX_CAPACITY",sort:!0,isUpdatable:!1}],qi=[{id:"check_id",align:"",className:"",sort:!1,isUpdatable:!1},{id:"user_id",align:"left",className:"left",disablePadding:!1,labelKey:"ID",sort:!0,isUpdatable:!1},{id:"name",align:"left",className:"left",disablePadding:!1,labelKey:"NAME",sort:!0,isUpdatable:!1},{id:"orgs",align:"left",className:"left",disablePadding:!1,labelKey:"ORG_NAME",sort:!0,isUpdatable:!1},{id:"client_info",align:"center",className:"center",disablePadding:!1,labelKey:"STATUS",sort:!0,isUpdatable:!1},{id:"dataleak_control",align:"center",className:"",disablePadding:!1,labelKey:"DATALEAK_CONTROL_USE",sort:!0,isUpdatable:!0,items:[{value:!0,title:"USE"},{value:!1,title:"UNUSED"}]},{id:"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"}]},{id:"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"}]}],Ji=Object(H.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 Zi(e){let{open:t,fnHandleClose:a,openBackdrop:n,pickedCol:s,fnSelectedCol:c}=e;const r=Ji(),{t:i}=(Object(_.b)(),Object(gt.a)("docbase"));return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:r.root,open:t,onClose:a,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Nr.a,{className:r.backdrop,open:n,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),Object(g.jsx)(Hr.a,{className:r.title,id:"form-dialog-title",children:"\uc0ac\uc6a9\uc790\uc815\uc758"}),Object(g.jsx)(Br.a,{className:r.body,children:Object(g.jsx)("div",{style:{display:"flex"},children:Vi.map((e=>"check_id"===e.id?"":Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{checked:!!s[e.id],onChange:t=>c(e),name:e.id}),label:i(e.labelKey)})))})}),Object(g.jsx)(di.a,{style:{padding:0},children:Object(g.jsxs)("div",{className:"btnWrapper",children:[Object(g.jsx)(Pr.a,{onClick:a,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:i("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"change",type:"button",children:i("CHANGE")})]})})]})})}const Qi=Object(H.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-428,"px"),borderRadius:6},icon:{width:20,height:20}})));let $i=0;function el(e){const t=Qi(),a=Object(_.b)(),s=Object(n.useRef)(),{t:c}=Object(gt.a)("docbase"),[r,i]=Object(n.useState)(window.innerHeight),{users:l,usersObj:o,selectedID:b}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[O,u]=Object(n.useState)(!1),[p,h]=Object(n.useState)(!1),[m,E]=Object(n.useState)(!1),[f,x]=Object(n.useState)({id:"",privateSize:0,collectSize:0}),[N,S]=Object(n.useState)(""),[T,R]=Object(n.useState)("-"),[v,L]=Object(n.useState)(!0),[A,C]=Object(n.useState)(!1),[y,P]=Object(n.useState)(Vi),[w,D]=Object(n.useState)([]),[M,k]=Object(n.useState)([]),[G,U]=Object(n.useState)({id:"user_id",direction:"desc"}),[F,W]=Object(n.useState)(""),[H,B]=Object(n.useState)(0),[V,K]=Object(n.useState)(0),[X,q]=Object(n.useState)({}),[Z,Q]=Object(n.useState)({client:0,versionLock:0,lock:0}),[ee,te]=Object(n.useState)(0),[ae,ce]=Object(n.useState)(0),[de,be]=Object(n.useState)(0),[je,Oe]=Object(n.useState)(10),[ue,pe]=Object(n.useState)(0),[he,_e]=Object(n.useState)(void 0),[me,Ee]=Object(n.useState)({}),[ge,fe]=Object(n.useState)(""),[xe,Ne]=Object(n.useState)(!1),[Se,Te]=Object(n.useState)(!1),Re=[{id:0,name:c("NAME")},{id:1,name:c("ID")},{id:2,name:c("ORG_NAME")}];Object(n.useEffect)((()=>{s.current&&(s.current.style.height="".concat(r-428,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{l.length>0?ve(""):a(Object(an.g)())}),[a,o]),Object(n.useEffect)((()=>{W("")}),[H]),Object(n.useEffect)((()=>{he&&Ae(F)}),[F,ee,de,ae,G]),Object(n.useEffect)((()=>{D(M.slice(je*ue,je*(ue+1)))}),[ue,je,M]),Object(n.useEffect)((()=>{0===V?P(Vi):1===V?P(Ki):2===V?P(Xi):3===V&&P(qi)}),[V]);const ve=async e=>{L(!0);const t=(await Object(sn.y)("")).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)),{}),a={};(await Object(sn.t)("",0)).forEach((e=>{a[e.user_id]=e.recommend_type}));let n={};he?n=Object(d.a)({},he):(n=await Rn(!0),_e(Object(d.a)({},n)));const s=Object.keys(n);let r=0,i=0,o=0;const b=[];l.forEach((l=>{const j=t[l.user_id],O=Object(d.a)(Object(d.a)({},l),j);if(O.client_info=c("NOT_INSTALLED"),j){let e="win64";1===j.client_type?e="win32":3===j.client_type&&(e="mac");const t=Et.a.getDateStringToLocalDate(j.installed_at);O.client_info=c("INSTALL"),O.version="".concat(j.installed_version,"(").concat(e,")"),O.installed_at=t.indexOf("2020-01-01")>=0?"-":t,O.last_logged_at=Et.a.getDateStringToLocalDate(j.last_logged_at),r++}let u="";if(s.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===O.user_id&&(u+="".concat(Et.a.splitLastDelimiterString(e.disp_path)," | "))}))})),O.orgs=u.substring(0,u.length-2),O.recommend_type=a[O.user_id],O.locked&&o++,1===O.recommend_type&&i++,""!==e){if(0===H&&-1===O.name.indexOf(e))return;if(1===H&&-1===O.user_id.indexOf(e))return;if(2===H&&-1===O.orgs.indexOf(e))return}(1!==ee||j)&&(2===ee&&j||1===ae&&0===O.recommend_type||2===ae&&1===O.recommend_type||1===de&&O.locked||(2!==de||O.locked)&&b.push(O))}));const j=[...b].sort(((e,t)=>{const{id:a,direction:n}=G,s=e[a]?e[a]:"",c=t[a]?t[a]:"";let r=0;return s>c?r=1:s{a(Object(Y.d)({message:c("USER_MESSAGE_9")})),a(Object(an.g)()),C(!1),u(!1)})).catch((e=>{e.error===nn.cb?"can't remove the user in the samba"===e.message&&($i<3?($i++,setTimeout((()=>{Le()}),1e3)):($i=0,a(Object(Y.c)({message:c("USER_ERROR_MESSAGE_19")})),C(!1))):(a(Object(Y.c)({message:c("USER_ERROR_MESSAGE_2")})),C(!1))}))}const Ae=Object(n.useCallback)(Object(ai.debounce)((e=>{ve(e)}),500),[l,H,ee,de,ae,G]);function Ce(e,t){let n="";return e||0!==Object.keys(me).length?(n=e?c(0===t?"UPDATE_NEW_CLIENT_MESSAGE_3":"UPDATE_NEW_CLIENT_MESSAGE_4"):0===t?c("UPDATE_NEW_CLIENT_MESSAGE_1").replace("%d",Object.keys(me).length):c("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",Object.keys(me).length),a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("UPDATE_NEW_CLIENT_LOCK"),content:n,fnHandleOK:()=>{!async function(e,t){if(L(!0),e)for(let a=0;a{K(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("\uae30\ubcf8")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("\uc5f0\ub3d9\uc0c1\ud0dc")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("\ubcf4\uc548")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("\ubb38\uc11c\uc911\uc559\ud654")})]})}),Object(g.jsx)(Ct.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:"inputItem",children:Object(g.jsx)(oe.a,{variant:"outlined",value:H,onChange:e=>B(e.target.value),children:Re.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))})})}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsx)(Gc.a,{variant:"outlined",fullWidth:!0,value:F,onChange:e=>W(e.target.value)})})}),Object(g.jsx)("div",{className:"searchValue",style:{marginLeft:"auto",minWidth:150},children:Object(g.jsx)("div",{className:"inputItem",children:Object(g.jsxs)(oe.a,{value:je,size:"small",variant:"outlined",className:"dropdown",onChange:e=>Oe(e.target.value),children:[Object(g.jsx)(re.a,{value:10,children:"10\uac74 \ubcf4\uae30"}),Object(g.jsx)(re.a,{value:20,children:"20\uac74 \ubcf4\uae30"}),Object(g.jsx)(re.a,{value:50,children:"50\uac74 \ubcf4\uae30"}),Object(g.jsx)(re.a,{value:100,children:"100\uac74 \ubcf4\uae30"})]})})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:c("STATUS")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)(ne.a,{component:"fieldset",children:Object(g.jsxs)(le.a,{row:!0,value:ee,name:"status",onChange:(e,t)=>{te(Number(t))},children:[Object(g.jsx)(se.a,{value:0,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("ALL"),"(").concat(l.length,")")}),Object(g.jsx)(se.a,{value:1,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("INSTALL"),"(").concat(Z.client,")")}),Object(g.jsx)(se.a,{value:2,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("NOT_INSTALLED"),"(").concat(l.length-Z.client,")")})]})})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:c("VERSION")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)(ne.a,{component:"fieldset",children:Object(g.jsxs)(le.a,{row:!0,value:ae,name:"status_version",onChange:(e,t)=>{ce(Number(t))},children:[Object(g.jsx)(se.a,{value:0,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("ALL"),"(").concat(l.length,")")}),Object(g.jsx)(se.a,{value:1,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("LOCK"),"(").concat(Z.versionLock,")")}),Object(g.jsx)(se.a,{value:2,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("UNLOCK"),"(").concat(l.length-Z.versionLock,")")})]})})})]}),Object(g.jsxs)("div",{className:"searchRow",children:[Object(g.jsx)("div",{className:"searchTitle",children:c("USER_LOCK")}),Object(g.jsx)("div",{className:"searchValue",children:Object(g.jsx)(ne.a,{component:"fieldset",children:Object(g.jsxs)(le.a,{row:!0,value:de,name:"status_locked",onChange:(e,t)=>{be(Number(t))},children:[Object(g.jsx)(se.a,{value:0,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("ALL"),"(").concat(l.length,")")}),Object(g.jsx)(se.a,{value:1,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("LOCK"),"(").concat(Z.lock,")")}),Object(g.jsx)(se.a,{value:2,control:Object(g.jsx)(ie.a,{}),label:"".concat(c("UNLOCK"),"(").concat(l.length-Z.lock,")")})]})})})]}),Object(g.jsxs)("div",{className:"searchBtnwrapper",children:[Object(g.jsx)("div",{className:"info",children:Object(g.jsxs)("span",{children:["(",c("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:M.length}),c("CNT"),")"]})}),Object(g.jsxs)("div",{className:"btnGroup",children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{Te(!0)},children:c("\uc0ac\uc6a9\uc790 \uc815\uc758")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Object.keys(me).length?a(Object(Y.d)({message:c("USER_ERROR_MESSAGE_12")})):Ne(!0)},size:"small",children:c("USER_MENU_1")}),2===j.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{const t=Object.keys(me);0===t.length?a(Object(Y.d)({message:c("USER_ERROR_MESSAGE_12")})):t.length>1?a(Object(Y.d)({message:c("USER_ERROR_MESSAGE_21")})):Object(an.e)(Object.keys(me)[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 r=0;r<11;r++){const e=document.createElement("td");r>0&&(e.innerText="".concat(r-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=>{a(Object(Y.c)({message:c("USER_ERROR_MESSAGE_17")}))}))},size:"small",children:c("USER_MENU_2")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:e=>{0===Object.keys(me).length?a(Object(Y.d)({message:c("USER_ERROR_MESSAGE_12")})):a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("USER_TOTP_TITLE"),content:c("USER_TOTP_CONTENT"),fnHandleOK:()=>{(async()=>{const e=Object.keys(me),t=[];await e.reduce((async(e,a)=>{await e;try{await Object(an.l)(a)}catch(n){t.push(a)}}),Promise.resolve()),t.length>0?(console.warn("TOTP reset failed for IDs:",t.map((e=>e.id))),a(Object(Y.c)({message:c("USER_ERROR_MESSAGE_18")}))):a(Object(Y.d)({message:c("USER_MESSAGE_8")}))})()}})}))},size:"small",children:c("USER_MENU_3")})]}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ce(!1,0),children:c("UPDATE_NEW_CLIENT_LOCK")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ce(!1,1),children:c("UPDATE_NEW_CLIENT_UNLOCK")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>Ce(!0,0),children:c("UPDATE_NEW_CLIENT_ALL_LOCK")}),Object(g.jsx)(Pr.a,{variant:"contained",className:Object(z.a)(t.btn,"default"),type:"button",style:{fontSize:11},onClick:()=>Ce(!0,1),children:c("UPDATE_NEW_CLIENT_ALL_UNLOCK")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:()=>{h(!0)},children:c("NEW_REGISTRATION")})]})]})]})}),Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsx)(wi,{open:p,fnHandleClose:()=>{h(!1)}}),Object(g.jsx)(ki,{open:m,currentUserID:ge,fnChangeSize:(e,t,a)=>{x({id:e,privateSize:t,collectSize:a})},fnHandleClose:e=>{fe(""),E(!1)}}),Object(g.jsx)(Oi,{userID:o[N]?o[N].user_id:"",name:o[N]?o[N].name:"",users:l,deleteID:N,open:O,openBackdrop:A,fnHandleClose:()=>u(!1),selectedHandoverUserID:e=>R(e.user_id),fnHandleOK:()=>Le()}),Object(g.jsx)(oi,{selectedUsers:me,open:xe,fnHandleClose:()=>Ne(!1),fnHandleOK:e=>{(async()=>{let t=!1;for(const a of Object.keys(me))try{(await Object(an.k)(a,e)).result||(t=!0)}catch(n){t=!0}t?a(Object(Y.c)({message:c("USER_ERROR_MESSAGE_16")})):(a(Object(Y.d)({message:c("USER_MESSAGE_7")})),Ne(!1))})()}}),Object(g.jsx)(Zi,{open:Se,pickedCol:X,fnSelectedCol:e=>{const t=Object(d.a)({},X);e.id in t?delete t[e.id]:t[e.id]=e,q(t)},fnHandleClose:()=>Te(!1)}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:s,children:v?Object(g.jsx)($,{}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Yi,{customCols:y,data:w,order:G,handleRequestSort:(e,t)=>((e,t)=>{const a=t;let n="desc";G.id===t&&"desc"===G.direction&&(n="asc"),U({direction:n,id:a})})(0,t),selectedMap:me,popUserModify:e=>(e=>{ge!==e&&(fe(e),E(!0))})(e),changedSize:f,selectUser:e=>{const t=Object(d.a)({},me);e in t?delete t[e]:t[e]="",Ee(t)}}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:M.length,page:ue,labelRowsPerPage:"",labelDisplayedRows:e=>"".concat(e.count," \uc911 ").concat(e.from,"-").concat(e.to),rowsPerPage:je,rowsPerPageOptions:[],backIconButtonProps:{"aria-label":c("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":c("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{pe(t)},showFirstButton:!0,showLastButton:!0})]})})]})]})}var tl=s.a.memo(el),al=a(494),nl=a.p+"static/media/header_home.f5aaf448.svg",sl=a(495);const cl=Object(H.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 rl=function(e){const t=cl(),a=Object(_.c)(La),[n,c]=s.a.useState("");s.a.useEffect((()=>{if(a&&a.length>0)for(let e=0;e0)for(let t=0;t>").concat(a[e].children[t].title));break}}),[window.location.pathname]);const r=n.split(">>");return Object(g.jsxs)("div",{className:Object(z.a)("sm:flex sm:flex-1 w-full items-center justify-between",t.root),children:[Object(g.jsx)("div",{className:"flex items-center",children:r.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)})}),r.length>a+1?Object(g.jsx)("span",{children:"> "}):""]})))}),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:al.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:Et.a.getDateString(new Date)})]}),Object(g.jsx)(U.a,{children:Object(g.jsx)(vt.a,{to:"/dashboard",children:Object(g.jsx)("img",{className:t.icon,src:nl,alt:"header-home-icon"})})}),Object(g.jsx)(Gr,{style:{minWidth:"inherit",width:56,height:56,padding:12}}),Object(g.jsx)(U.a,{className:"cursor-pointer",onClick:e=>{Object(ft.f)().then((e=>{window.location.href="/admin"}))},children:Object(g.jsx)("img",{className:t.icon,src:sl.a,alt:"header-logout-icon"})})]})]})};var il={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/users",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(tl,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]},ll=a(1035),ol=a(553),dl=a(557),bl=a(1027),jl=a(1051),Ol=a(1033),ul=a(1050),pl=a(1034);const hl=["id","itemId","label","manageType","disabled","checked","selected","onClickDelete","onClickAction","onClickAdd","onChangeInput","onChangeChecked","children"],_l=Object(H.a)({root:{color:"#202020",fontSize:"13px!important",width:"100%",padding:"0 20px!important","&.full":{padding:"0!important"},"&>li:first-child":{borderTop:"1px dotted #aaa"},"& .tree-item-root":{position:"relative",height:40,"&:after":{position:"absolute",bottom:0,height:0,width:"calc(100% - 8px)",borderBottom:"1px dotted #aaa",content:'""',padding:"0px 28px 0 0"}}}}),ml=Object(dl.a)(pl.b)((e=>{let{theme:t}=e;return{color:"#202020","&.selected":{backgroundColor:"rgba(0, 207, 226, 0.2)!important",color:"#202020"},"&:hover":{backgroundColor:"#f5f7fa",color:"#202020"}}})),El=s.a.forwardRef((function(e,t){const{t:a}=Object(gt.a)("docbase"),{id:n,itemId:c,label:r,manageType:i,disabled:l,checked:o,selected:b,onClickDelete:j,onClickAction:O,onClickAdd:u,onChangeInput:p,onChangeChecked:h,children:_}=e,m=Object(Dc.a)(e,hl),{getRootProps:E,getContentProps:f,getIconContainerProps:x,getCheckboxProps:N,getLabelProps:S,getGroupTransitionProps:T,status:R}=Object(ul.a)({id:n,itemId:c,children:_,label:r,disabled:l,rootRef:t});b&&(R.selected=!0);const[v,L]=s.a.useState(r);return Object(g.jsx)(bl.a,{itemId:c,children:Object(g.jsxs)(pl.f,Object(d.a)(Object(d.a)({},E(m)),{},{children:[Object(g.jsxs)(ml,Object(d.a)(Object(d.a)({},f({className:Object(z.a)("content tree-item-root",{expanded:R.expanded,selected:R.selected,focused:R.focused})})),{},{children:[Object(g.jsx)(pl.d,Object(d.a)(Object(d.a)({},x()),{},{children:Object(g.jsx)(jl.a,{status:R})})),c<0?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(ll.a,{sx:{flexGrow:1,display:"flex",gap:10,marginLeft:5},children:Object(g.jsx)(Gc.a,{className:"",type:"text",fullWidth:!0,value:v,variant:"outlined",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation()},onChange:e=>{L(e.target.value),p(e),e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}})}),Object(g.jsx)(ll.a,{sx:{flexGrow:1,display:"flex",gap:1,flexDirection:"row",paddingRight:10},children:Object(g.jsx)(st.a,{title:a("CREATE"),arrow:!0,children:Object(g.jsx)(U.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{u(e,v),e.preventDefault(),e.stopPropagation()},children:Object(g.jsx)(G.a,{color:"primary",fontSize:"default",children:"create_new_folder"})})})})]}):Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(pl.a,Object(d.a)({},N({checked:o,onChange(e){console.log(e),h(e.target.checked)}}))),Object(g.jsxs)(ll.a,{sx:{flexGrow:1,display:"flex",gap:10,marginLeft:5},children:[Object(g.jsx)(la.a,{className:"",type:"org-folder",fill:"#202020"}),Object(g.jsx)(pl.e,Object(d.a)(Object(d.a)({},S()),{},{style:{fontSize:"13px",fontFamily:"S-CoreDream-Regu"}}))]}),j instanceof Function?Object(g.jsx)(ll.a,{sx:{flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",marginRight:40},children:Object(g.jsx)(st.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{j(e)},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})}):Object(g.jsx)(g.Fragment,{}),O instanceof Function?Object(g.jsx)(ll.a,{sx:{flexGrow:1,display:"flex",gap:1,flexDirection:"row-reverse",marginRight:10},children:Object(g.jsx)(st.a,{title:a("TAKEOUT_APPROVE_MANAGE_LOCK"),arrow:!0,children:Object(g.jsx)(U.a,{style:{padding:0,cursor:"pointer"},onClick:e=>{O(e)},children:0===i?Object(g.jsx)(G.a,{className:"",children:"lock_open"}):Object(g.jsx)(G.a,{className:"",children:"lock"})})})}):Object(g.jsx)(g.Fragment,{})]})]})),_&&Object(g.jsx)(pl.c,Object(d.a)({},T()))]}))})})),gl=s.a.memo((e=>{let{node:t,childrenObj:a,fnOnClickHandler:n,fnOnClickDelete:s,fnOnClickAction:c,fnOnClickAdd:r,fnOnChangeInput:i,fnOnChangeChecked:l}=e;return Object(g.jsx)(El,{itemId:t.fid,label:t.name,checked:t.checked,selected:t.selected,manageType:t.manage_type,className:"",onChangeChecked:l?e=>l(t.fid,t.parent_fid,e):null,onChangeInput:i?e=>i(e,t.fid,t.parent_fid):null,onClickAdd:r?(e,t)=>r(e,t):null,onClickDelete:s?e=>{s(e,t),e.stopPropagation()}:null,onClickAction:c?e=>{c(e,t),e.stopPropagation()}:null,onClick:e=>{t.fid>0&&(n(e,t),e.stopPropagation())},children:a[t.fid]&&a[t.fid].children.map((e=>Object(g.jsx)(gl,{node:e,childrenObj:a,fnOnClickHandler:n,fnOnChangeChecked:l,fnOnChangeInput:i,fnOnClickAdd:r,fnOnClickDelete:s,fnOnClickAction:c},e.fid)))})}));var fl=s.a.memo((e=>{let{childrenObj:t,fnOnClickHandler:a,fnOnClickDelete:n,fnOnClickAction:c,fnOnClickAdd:r,fnOnChangeInput:i,fnOnChangeChecked:l,apiRef:o,expandedItems:d,checkbox:b,className:j,showTop:O}=e;const u=_l(),[p,h]=s.a.useState([]);s.a.useEffect((()=>{h(d)}),[d]);const _=(e,t)=>{h(t)};return O&&t[0]?Object(g.jsx)(Ol.a,{className:Object(z.a)(u.root,j),checkboxSelection:b,multiSelect:!0,apiRef:o,expandedItems:p,onExpandedItemsChange:_,children:Object(g.jsx)(gl,{node:t[0],childrenObj:t,fnOnClickHandler:a,fnOnClickDelete:n,fnOnClickAction:c,fnOnClickAdd:r,fnOnChangeInput:i,fnOnChangeChecked:l})}):Object(g.jsx)(Ol.a,{className:Object(z.a)(u.root,j),checkboxSelection:b,multiSelect:!0,apiRef:o,expandedItems:p,onExpandedItemsChange:_,children:t[0]&&t[0].children&&t[0].children.length>0&&t[0].children.map((e=>Object(g.jsx)(gl,{node:e,childrenObj:t,fnOnClickHandler:a,fnOnClickDelete:n,fnOnClickAction:c,fnOnClickAdd:r,fnOnChangeInput:i,fnOnChangeChecked:l})))})}));const xl=Object(H.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-228,"px"),"&>.insert-form":{padding:"0 0 10px 20px"}},icon:{width:20,height:20}}))),Nl={};let Sl=!0;var Tl=function(e){const t=xl(),a=Object(_.b)(),c=(s.a.useRef(null),s.a.useRef()),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),{orgFolders:o,selectedOrgID:b,orgsChildren:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[O,u]=Object(n.useState)(""),[p,h]=Object(n.useState)(!0),[m,E]=Object(n.useState)({}),[f,x]=Object(n.useState)([]),N=Object(ol.a)();Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-228,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>{Et.a.infoLog("orgTable selectedID end")}),[b]),Object(n.useEffect)((()=>(o.length>0&&S(O),()=>{S.cancel()})),[O]);const S=Object(n.useCallback)(Object(ai.debounce)((e=>{try{e.length>0?(E({0:{children:o.filter((t=>t.name.toLowerCase().includes(e.toLowerCase())))}}),x([0])):T()}catch(t){console.error(t)}finally{h(!1)}}),500),[o]);function T(){const e=Object(d.a)({},j),t=[];Object.keys(j).forEach((a=>{if(Nl[a]&&j[a]){const t=[...j[a].children];t.push(Nl[a].children[0]),e[a]={children:t}}t.push(Number(a))})),E(e),x(t),h(!1)}function R(e){a(Dn({show:!0})),((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(Dn({show:!0})),Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/removeOrganizationFolder",{fid:e,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{t(Dn({show:!1}))}))}))})))(e,a).then((e=>{a(Object(Y.d)({message:r("ORG_MESSAGE_1")})),delete Nl[b],a(Gn()).then((()=>h(!1)))})).catch((e=>{a(Object(Y.c)({message:r("ORG_ERROR_MESSAGE_1")}))}))}function v(e){if(!e||e.trim().length<=0)return a(Object(Y.c)({message:r("FOLDER_ERROR_MESSAGE_1")})),!1;if(e.trim().length>30)return a(Object(Y.c)({message:r("FOLDER_ERROR_MESSAGE_3")})),!1;if(/[\\/:*?\\"<>|]/.test(e.trim()))return a(Object(Y.c)({message:r("PATTERN_ERROR_MESSAGE")})),!1;a(Dn({show:!0}));const t=b>-1?b:0;return((e,t,a)=>(a(Dn({show:!0})),new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/api/createOrganizationFolder",{name:e,parent_fid:t||"0",token:r}).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))})).finally((()=>{a(Dn({show:!1}))}))}))}))))(e,t,a).then((e=>{a(Object(Y.d)({message:r("ORG_ADD")})),delete Nl[t],a(Gn()).then((()=>h(!1)))})).catch((e=>{e.error===nn.U&&a(Object(Y.c)({message:r("FOLDER_ERROR_MESSAGE_2")}))})),!0}return Object(n.useEffect)((()=>{T()}),[j]),Object(n.useEffect)((()=>(Sl=!1,h(!0),a(Hn()),()=>{Sl=!0,a(Wn({fid:-1})).then((()=>{a(as())}))})),[a]),p?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(z.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)(rc.a,{placeholder:r("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:O,inputProps:{"aria-label":"Search"},onChange:e=>{u(e.target.value)}})})}),Object(g.jsx)("div",{className:"total-cnt-info"}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Pr.a,{onClick:e=>function(){if(0===f.length){const e=Object(d.a)({},j),t=[];Object.keys(j).forEach((a=>{if(Nl[a]&&j[a]){const t=[...j[a].children];t.push(Nl[a].children[0]),e[a]={children:t}}t.push(Number(a))})),x(t)}else x([])}(),children:0===f.length?r("EXPAND_ALL"):r("COLLAPSE_ALL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>{const t=-1===b?0:b;if(Nl[t])return a(Object(Y.c)({message:r("FOLDER_ERROR_MESSAGE_6")})),!1;const n=m[t]?[...m[t].children]:[],s={fid:-1*Date.now(),name:""};return n.unshift(s),E(Object(d.a)(Object(d.a)({},m),{},{[t]:{children:n}})),Nl[t]={children:[s]},N.current.setItemExpansion(e,t,!0),!0},children:r("NEW_REGISTRATION")})]})})]}),Object(g.jsxs)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-hidden flex flex-col"),ref:c,children:[Object(g.jsx)("div",{children:Object(g.jsx)(fl,{className:"",childrenObj:m,apiRef:N,expandedItems:f,fnOnChangeInput:(e,t,a)=>{const n=[...Nl[a||0].children];n.forEach((a=>{a.fid===t&&(a.name=e.target.value)})),Nl[b]={children:n}},fnOnClickAdd:(e,t)=>{v(t)},fnOnClickDelete:(e,t)=>((e,t)=>{e.stopPropagation(),a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(r("DELETE_CONTENT")),fnHandleOK:()=>{R(t.fid)}})}))})(e,t),fnOnClickHandler:(t,n)=>{return s=n.fid,void(b!==s&&(a(Wn({fid:s})),e.fnToggleRightSidebar()));var s}})}),Object(g.jsx)(ll.a,{style:{height:"inherit"},onClick:e=>{a(Wn({fid:-1}))}})]})]})})},Rl=a(1029),vl=a(18),Ll=a(1028),Al=a.p+"static/media/icon_shared.112eedba.svg",Cl=a.p+"static/media/icon_delete.050bb60e.svg",yl=a.p+"static/media/icon_trash.6350bc03.svg",Pl=a.p+"static/media/icon_write.4081ceca.svg",Il=a.p+"static/media/icon_org.27ecc3b5.svg",wl=a.p+"static/media/icon_person.50ce10ae.svg";const Dl=Object(H.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"}});var Ml=function(e){const t=Dl();let a;switch(e.type){case"write":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:Pl,alt:"file-icon"});break;case"delete":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:Cl,alt:"file-icon"});break;case"readonly":a=Object(g.jsx)(G.a,{className:Object(z.a)(t.fileIcon,e.className),children:"article"});break;case"trash":a=Object(g.jsx)(G.a,{className:Object(z.a)(t.fileIcon,e.className),children:"delete_forever"});break;case"trash-delete":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:yl,alt:"file-icon"});break;case"org":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:Il,alt:"file-icon"});break;case"shared":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:Al,alt:"file-icon"});break;case"person":a=Object(g.jsx)("img",{className:Object(z.a)(t.fileIcon,e.className),src:wl,alt:"file-icon"});break;case"org-shared":default:a=Object(g.jsx)(G.a,{className:Object(z.a)(t.fileIcon,e.className),children:"snippet_folder"});break;case"visibility-off":a=Object(g.jsx)(G.a,{className:Object(z.a)(t.fileIcon,e.className),children:"visibility_off"});break;case"visibility":a=Object(g.jsx)(G.a,{className:Object(z.a)(t.fileIcon,e.className),children:"visibility"})}return Object(g.jsx)("div",{className:Object(z.a)(t.root,e.className),children:a})};const kl=["children","classes","onClose"],Gl=Object(vl.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(Dc.a)(e,kl);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),Ul=Object(H.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":{fontSzie: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 Fl=!1;function Wl(e){const t=Ul(),a=Object(_.b)(),{t:c}=Object(gt.a)("docbase"),{users:r,usersObj:i}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{sysConfigure:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{readablePermObjs:o,sharedPerms:b,orgsChildren:j,orgFolders:O}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[u,p]=s.a.useState(""),[h,m]=s.a.useState(r),[E,f]=s.a.useState({}),[x,N]=s.a.useState([]),[S,T]=s.a.useState({}),[R,v]=s.a.useState(!1),[L,A]=s.a.useState(0),[C,y]=s.a.useState({}),[I,w]=s.a.useState({direction:"asc"});function D(){const e=[];Object.keys(j).forEach((t=>{e.push(Number(t))})),f(j),N(e)}s.a.useEffect((()=>{e.open?("0"===e.type?a(Gn()):a(zn()),M("")):(m([]),p(""),T({}),D())}),[e.open]),s.a.useEffect((()=>{p(""),M(""),v(!1)}),[r,L]),s.a.useEffect((()=>{D()}),[j]),s.a.useEffect((()=>(M(u),()=>{M.cancel()})),[u]);const M=Object(n.useCallback)(Object(ai.debounce)((t=>{const a=[],n={};if("0"===e.type)0===L?t.length>0?(O.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),f({0:{children:a}}),N([])):D():r.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===L){const e={};O.forEach((t=>{const a={obj_type:2,obj_id:String(t.fid)};e[t.fid]=a})),y(e)}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))})),y(s)}T(n),m(a)}),100));function k(e){v(!1),T(Object(d.a)(Object(d.a)({},S),{},{[e]:!S[e]}))}function G(){const e={};if(h.forEach((t=>{e[t.id]=!R})),v(!R),T(e),0===L){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=!R,t}));e[a]={children:t}}t.push(Number(a))})),f(e),N(t)}}return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(Gl,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(di.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Gc.a,{className:"",type:"text",placeholder:c("SEARCH_KEYWORD"),name:"search_val",fullWidth:!0,value:u,variant:"outlined",size:"small",onChange:e=>p(e.target.value)})}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>G(),children:c("CHECK_ALL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!Fl){Fl=!0;const n=Object.keys(S);if(n.length>0){let s=!0;try{if(a(Dn({show:!0})),"0"===e.type)if(0===L){const t=await Rn();for(let a=0;a{S[e]&&t.push(Object(d.a)(Object(d.a)({},C[e]),{},{file_permission:nn.A,trash_permission:nn.pb,manage_type:nn.J,manage_priority:100}))})),await Xn(e.fid,t)}}catch(t){s=!1}s?e.fnSetPermComplete():a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_1")})),a(Dn({show:!1}))}Fl=!1}}(),children:c("ADD")})]})}),Object(g.jsx)(Br.a,{className:t.body,children:Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(si.a,{value:L,onChange:(e,t)=>{A(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("USER")})]})}),Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:0===L?Object(g.jsx)("div",{children:Object(g.jsx)(fl,{className:"full",childrenObj:E,expandedItems:x,checkbox:!0,fnOnChangeChecked:(e,t,a)=>{Object(d.a)({},E);const n=E[t].children.map((t=>{const n=Object(d.a)({},t);return n.fid===e&&(n.checked=a),n}));f(Object(d.a)(Object(d.a)({},E),{},{[t]:{children:n}})),k(e)},fnOnClickHandler:(e,t)=>{}})}):Object(g.jsx)(Hl,{data:h,allCheck:R,checkedList:S,sysConfigure:l,sortObj:I,setSortObj:e=>w(e),handleCheckAllBox:()=>G(),handleCheckBox:e=>k(e),handleUserSyncOsr:(e,t)=>{e.stopPropagation(),Object(an.n)(i[t],"no_sync_osr",!0).then((e=>{a(Object(Y.d)({message:c("USER_MESSAGE_10")})),a(Object(an.g)())}))},t:c})})})]})})]})})}const Hl=s.a.memo((e=>{let{data:t,allCheck:a,checkedList:n,sortObj:s,sysConfigure:c,handleCheckAllBox:r,setSortObj:i,handleCheckBox:l,handleUserSyncOsr:o,t:d}=e;return Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"cell-check",align:"center",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:!a&&Object.values(n).filter((e=>e)).length>0,checked:a,onChange:e=>r()})}),Object(g.jsx)(Wi.a,{padding:"none",className:"left",align:"left",children:Object(g.jsx)(Hi.a,{active:!0,direction:s.direction,onClick:e=>{i({direction:"asc"===s.direction?"desc":"asc"})},children:d("USER")})})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(t,[e=>e.name],[s.direction]).map(((e,t)=>(console.log(e),Object(g.jsxs)(Fi.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>l(e.id),children:[Object(g.jsx)(Wi.a,{className:"",padding:"none",align:"center",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:n[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{l(e.id)}})}),Object(g.jsxs)(Wi.a,{className:"left cell-name",component:"td",scope:"row",children:[Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(Ml,{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)(Pr.a,{color:"inherit",size:"small",onClick:e=>{},disabled:!0,children:d("NO_SYNC_TARGET")})}):Object(g.jsx)("div",{className:"etc",children:Object(g.jsx)(Pr.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))),Bl=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),zl=Object(H.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 Yl(e){const t=Object(_.b)(),a=zl(),{t:n}=Object(gt.a)("docbase"),{sysConfigure:c}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{orgFolders:r,selectedOrgID:i,orgsChildren:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,d]=s.a.useState({fid:-1,path:""}),[b,j]=s.a.useState(""),[O,u]=s.a.useState({}),[p,h]=s.a.useState([]);s.a.useEffect((()=>{e.open&&(E(),j(""),d({fid:-1,path:""}))}),[e.open]),s.a.useEffect((()=>(r.length>0&&m(b),()=>{m.cancel()})),[b]);const m=s.a.useCallback(Object(ai.debounce)((e=>{try{e.length>0?(u({0:{children:r.filter((t=>t.name.toLowerCase().includes(e.toLowerCase())))}}),h([0])):E()}catch(t){console.error(t)}}),500),[r]);function E(){const e={},t=[];Object.keys(l).forEach((a=>{t.push(Number(a));const n=[];l[a].children.forEach((e=>{e.fid!==i&&n.push(e)})),e[a]={children:n}})),u(e),h(t)}const f=Et.a.splitLastDelimiterString(e.targetPath),x="".concat("korean"===c.language?"/\uc870\uc9c1":"/Organization");return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:a.root,open:e.open,TransitionComponent:Bl,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsxs)(Hr.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:[n("TRANSFER_ORG"),"[",f,"]"]}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{children:Object(g.jsxs)(Ir.a,{children:[Object(g.jsx)("div",{className:"search-form",children:Object(g.jsx)(Gc.a,{className:"",placeholder:n("ORG_NAME"),type:"text",name:"org-name-text",variant:"outlined",value:b,onChange:e=>j(e.target.value),fullWidth:!0})}),Object(g.jsx)(J.a,{className:Object(z.a)(a.contentWrapper,"flex-grow overflow-x-auto"),children:Object(g.jsxs)("div",{className:"flex flex-col",children:[Object(g.jsx)(Pr.a,{onClick:e=>function(){if(0===p.length){const e=[];Object.keys(l).forEach((t=>{e.push(Number(t))})),h(e)}else h([])}(),style:{alignSelf:"flex-end"},children:0===p.length?n("EXPAND_ALL"):n("COLLAPSE_ALL")}),Object(g.jsx)(fl,{className:"full",childrenObj:O,expandedItems:p,fnOnClickHandler:(e,t)=>{d({fid:t.fid,path:t.disp_path})}})]})})]})}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"action",type:"button",onClick:a=>{if(o.fid<0)return void t(Object(Y.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_1")}));const s="".concat(x).concat(e.targetPath),c="".concat(o.path,"/").concat(f);c!==s?0!==c.indexOf(s)?t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:n("TRANSFER_ORG"),content:n("TRANSFER_ORG_MESSAGE_1"),fnHandleOK:()=>{t(Dn({show:!0})),Zn("".concat(x).concat(e.targetPath),"".concat(o.path,"/").concat(f)).then((a=>{t(Gn()).then((()=>{t(Object(Y.d)({message:n("TRANSFER_ORG_MESSAGE_2")})),e.fnResetList(),e.fnHandleClose()}))})).catch((e=>t(Object(Y.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_2")})))).finally((()=>{t(Dn({show:!1}))}))}})})):t(Object(Y.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_4")})):t(Object(Y.c)({message:n("TRANSFER_ORG_ERROR_MESSAGE_3")}))},children:n("MOVE")})]})]})})]})})}const Vl=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),Kl=Object(H.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 Xl(e){const t=Object(_.b)(),a=Kl(),{t:n}=Object(gt.a)("docbase"),{selectedOrgID:c,orgsObj:r,orgFolders:i,orgsChildren:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,b]=s.a.useState({sourceID:0,targetID:0,sourcePath:"",targetPath:""}),[j,O]=s.a.useState({sourceOrgs:{},targetOrgs:{}}),[u,p]=s.a.useState([]),[h,m]=s.a.useState([]),[E,f]=s.a.useState({sourceText:"",targetText:""}),x=s.a.useRef(E);s.a.useEffect((()=>{e.open?(S(3),c>0&&b(Object(d.a)(Object(d.a)({},o),{},{sourceID:c,sourcePath:r[c].disp_path}))):x.current={sourceText:"",targetText:""}}),[e.open]),s.a.useEffect((()=>(x.current.sourceText!==E.sourceText&&N(E.sourceText,0),x.current.targetText!==E.targetText&&N(E.targetText,1),x.current=E,()=>{N.cancel()})),[E]);const N=s.a.useCallback(Object(ai.debounce)(((e,t)=>{try{if(e.length>0){const a={0:{children:i.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}))}};0===t?(O(Object(d.a)(Object(d.a)({},j),{},{sourceOrgs:a})),p([0])):(O(Object(d.a)(Object(d.a)({},j),{},{targetOrgs:a})),m([0]))}else S(t)}catch(a){console.error(a)}}),500),[i,j]);async function S(e){const t=[],a={},n={};Object.keys(l).forEach((e=>{t.push(Number(e));const s=[],r=[];l[e].children.forEach((e=>{e.fid===c?s.push(Object(d.a)(Object(d.a)({},e),{},{selected:!0})):(s.push(e),r.push(e))})),a[e]={children:s},n[e]={children:r}})),0===e?(O(Object(d.a)(Object(d.a)({},j),{},{sourceOrgs:a})),p(t),f(Object(d.a)(Object(d.a)({},E),{},{sourceText:""})),b(Object(d.a)(Object(d.a)({},o),{},{sourceID:0,sourcePath:""}))):1===e?(O(Object(d.a)(Object(d.a)({},j),{},{targetOrgs:n})),m(t),f(Object(d.a)(Object(d.a)({},E),{},{targetText:""})),b(Object(d.a)(Object(d.a)({},o),{},{targetID:0,targetPath:""}))):(O({sourceOrgs:a,targetOrgs:n}),p(t),m(t),f({sourceText:"",targetText:""}),b({sourceID:0,targetID:0,sourcePath:"",targetPath:""}))}function T(e){const t=[];0===e?0===u.length?(Object.keys(l).forEach((e=>{t.push(Number(e))})),p(t)):p([]):0===h.length?(Object.keys(l).forEach((e=>{t.push(Number(e))})),m(t)):m([])}function R(){if(!(o.sourceID<=0||o.targetID<=0))if(o.sourceID===o.targetID)t(Object(Y.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_1")}));else{if(0===o.targetPath.indexOf(o.sourcePath))return void t(Object(Y.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_4")}));t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:n("MOVE_ORG_DATA_TITLE"),content:n("MOVE_ORG_DATA_MESSAGE_1"),fnHandleOK:()=>{Jn(o.sourceID,o.targetID).then((e=>{t(Object(Y.d)({message:n("MOVE_ORG_DATA_MESSAGE_2")}))})).catch((e=>{t(Object(Y.c)({message:n("MOVE_ORG_DATA_ERROR_MESSAGE_2")}))}))}})}))}}const v=e=>Object(g.jsxs)(Ir.a,{children:[Object(g.jsx)("div",{className:"search-form",children:0===e?Object(g.jsx)(Gc.a,{className:"",placeholder:n("SOURCE_ORG_NAME"),type:"text",name:"source-text",variant:"outlined",value:E.sourceText,onChange:e=>f(Object(d.a)(Object(d.a)({},E),{},{sourceText:e.target.value})),fullWidth:!0}):Object(g.jsx)(Gc.a,{className:"",placeholder:n("TARGET_ORG_NAME"),type:"text",name:"target-text",variant:"outlined",value:E.targetText,onChange:e=>f(Object(d.a)(Object(d.a)({},E),{},{targetText:e.target.value})),fullWidth:!0})}),Object(g.jsx)(J.a,{className:Object(z.a)(a.contentWrapper,"flex-grow overflow-x-auto"),children:0===e?Object(g.jsxs)("div",{className:"flex flex-col",children:[Object(g.jsx)(Pr.a,{onClick:e=>T(0),style:{alignSelf:"flex-end"},children:0===u.length?n("EXPAND_ALL"):n("COLLAPSE_ALL")}),Object(g.jsx)(fl,{className:"full",childrenObj:j.sourceOrgs,expandedItems:u})]}):Object(g.jsxs)("div",{className:"flex flex-col",children:[Object(g.jsx)(Pr.a,{onClick:e=>T(1),style:{alignSelf:"flex-end"},children:0===h.length?n("EXPAND_ALL"):n("COLLAPSE_ALL")}),Object(g.jsx)(fl,{className:"full",childrenObj:j.targetOrgs,expandedItems:h,fnOnClickHandler:(e,t)=>{b(Object(d.a)(Object(d.a)({},o),{},{targetID:t.fid,targetPath:t.disp_path}))}})]})})]});return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:a.root,open:e.open,TransitionComponent:Vl,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)(Hr.a,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("MOVE_ORG_DATA_TITLE")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{children:v(0)}),Object(g.jsx)("div",{className:"btn",children:Object(g.jsx)(Pr.a,{variant:"outlined",size:"small",className:a.button,onClick:e=>{R()},disabled:o.sourceID<=0||o.targetID<=0,"aria-label":"move selected right",children:">"})}),Object(g.jsx)("div",{children:v(1)})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"action",type:"button",onClick:e=>{R()},children:n("TRANSFER")})]})]})})]})})}const ql=Object(H.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:"24px",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 Jl=function(e){const t=ql(),a=Object(_.b)(),n=s.a.useRef(),{t:c}=Object(gt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),{sysConfigure:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{orgPerms:o,orgsObj:b,selectedOrgID:j,capacity:O,parentPerms:u}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[p,h]=s.a.useState(!1),[m,E]=s.a.useState(!1),[f,x]=s.a.useState(!1),[N,S]=s.a.useState({}),[T,R]=s.a.useState(""),[v,L]=s.a.useState(0),[A,C]=s.a.useState(O),[y,P]=s.a.useState(!0),[w,D]=s.a.useState(!0),[M,k]=s.a.useState([]),[F,W]=s.a.useState({id:"user_name",direction:"asc"});function H(e,t,n,s,r,i){a(Dn({show:!0})),Kn(e,t,n,s,r,-1===i?0:i).then((e=>{a(Object(Y.d)({message:c("PERM_MESSAGE_1")})),a(Wn({fid:j}))})).catch((e=>{e.error===nn.U&&("the manage priority is not unique"===e.message?a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_4")})):a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_1")})))})).finally((()=>{a(Dn({show:!1}))}))}function V(e,t){a(Dn({show:!0})),((e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/releaseFolderPermission",{fid:e,user_id:t,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))}))}))})))(e,t).then((e=>{a(Object(Y.d)({message:c("PERM_MESSAGE_2")})),a(Wn({fid:j}))})).catch((e=>{e.error===nn.U&&a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{a(Dn({show:!1}))}))}return s.a.useEffect((()=>{r>=754&&(n.current.style.height="".concat(r-140,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{Et.a.infoLog("detail selectedID start"),j&&j>0?(R(b[j].name),O&&O>=1024?(L(Math.floor(O/1024)),P(!1)):(L(O||0),P(!0)),C(O),D(b[j].allow_takeout)):(R(""),L(0),P(!0),D(!0)),Et.a.infoLog("detail selectedID end")}),[j]),s.a.useEffect((()=>{Et.a.infoLog("detail orgs Obj useeffect start")}),[b]),s.a.useEffect((()=>{const e={},t=[];if(o.forEach((a=>{e[a.user_id]=!0,t.push(Object(d.a)(Object(d.a)({},a),{},{isParent:!1}))})),b[j]){Et.a.splitPreDelimiter(b[j].fid_path).split("/").reverse().forEach((a=>{""!==a&&u[a]&&u[a].forEach((a=>{e[a.user_id]||(t.push(Object(d.a)(Object(d.a)({},a),{},{isParent:!1})),e[a.user_id]=!0)}))}))}S(e),k(t)}),[o]),s.a.useEffect((()=>{}),[a]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(Wl,{open:f,type:"0",permsObj:N,fid:j,fnHandleClose:()=>x(!1),fnSetPermComplete:()=>{a(Object(Y.d)({message:c("PERM_MESSAGE_1")})),a(Wn({fid:j})),x(!1)}}),Object(g.jsx)(Xl,{open:p,fnHandleClose:()=>{h(!1)}}),Object(g.jsx)(Yl,{open:m,targetPath:j<=0?"":b[j].path,fnResetList:()=>{a(Un({parentFid:j}))},fnHandleClose:()=>E(!1)}),Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rl.a,{disableSpacing:!0,children:[Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})}),Object(g.jsxs)(B.a,{className:Object(z.a)(t.cardDetailInfo,"noto-bold"),variant:"h6",children:[Object(g.jsx)("span",{children:c("DETAIL_INFO")}),Object(g.jsx)("span",{children:j<=0?"":"[".concat(b[j].name,"]")})]})]}),Object(g.jsxs)(wr.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(z.a)("text-left"),children:c("FOLDER_NAME")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:T,onChange:e=>R(e.target.value)})}),Object(g.jsx)("div",{className:Object(z.a)("align-middle items-center flex"),children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{j<=0?a(Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")})):b[j].name!==T?a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("NAME_CHANGE"),content:c("ORG_CHANGE_MESSAGE"),fnHandleOK:()=>{var e,t;a(Dn({show:!0})),(e=j,t=T,new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/renameOrganizationFolder",{fid:e,name:t,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))}))}))}))).then((e=>{a(Un({parentFid:j}))})).finally((()=>{a(Dn({show:!1}))}))}})})):a(Object(Y.d)({message:c("EXTERNAL_ERROR_MESSAGE_6")}))},children:c("CHANGE")})})]}),l.dataleak_control?Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:c("ALLOW_TAKEOUT_FOLDER")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsxs)(oe.a,{id:"allow_takeout",variant:"outlined",className:Object(z.a)(t.select,""),value:w,onChange:e=>{((e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/updateOrganizationFolder",{fid:e,allow_takeout:t,token:c}).then((e=>{e.result?a():(Ba.a.printError(e),n(e))}))}))})))(j,e.target.value).then((()=>{D(e.target.value),a(Un({parentFid:j})),a(Object(Y.d)({message:c("SAVED")}))})).catch((e=>{a(Object(Y.c)({message:c("SETTING_UPDATE_ERROR_MESSAGE_3")}))}))},children:[Object(g.jsx)(re.a,{value:"true",children:c("PERMIT")}),Object(g.jsx)(re.a,{value:"false",children:c("UNAVAILABLE")})]})})]})}):Object(g.jsx)(g.Fragment,{}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsxs)("div",{className:t.filedTitle,children:[Object(g.jsx)("p",{className:Object(z.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(z.a)(t.filedInput,""),children:Object(g.jsx)(rc.a,{type:"number",name:"capacity",disableUnderline:!0,className:t.customInput,endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(t.selectTextAlignRight,""),value:y,onChange:e=>{let t=0;t=y?1024*v:v<1024?v:Math.floor(v/1024),$n(b[j].disp_path,t).then((()=>{P(!y),a(Object(Y.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(Y.c)({message:c("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))}))},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})}),value:v,onChange:e=>L(e.target.value),onBlur:e=>{e.preventDefault();const t=y?v:1024*v;return t<0?(a(Object(Y.c)({message:c("NUMBER_ERROR_MESSAGE")})),A&&A>=1024?(L(Math.floor(A/1024)),P(!1)):(L(A||0),P(!0)),!1):(A!==t&&$n(b[j].disp_path,t).then((()=>{C(t),a(Object(Y.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(Y.c)({message:c("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),!0)}})})]})]}),Object(g.jsx)(Rl.a,{className:Object(z.a)(t.buttonGroup,"block"),children:Object(g.jsxs)("div",{className:"w-full flex",children:[Object(g.jsxs)("div",{className:Object(z.a)("inline-block align-middle"),children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{j<=0?a(Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")})):E(!0)},children:c("MOVE")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:e=>{j<=0?a(Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")})):h(!0)},children:c("MOVE_ORG_DATA_TITLE")})]}),Object(g.jsx)("div",{className:Object(z.a)(t.h_29,"inline-block align-middle ml-5 w-100"),style:{display:"none"},children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{j<=0?a(Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")})):Object(sn.z)(b[j].real_path).then((()=>{a(Object(Y.d)({message:c("SEARCH_INDEXING_MESSAGE_1")}))}))},children:c("SEARCH_INDEXING")})})]})})]}),Object(g.jsxs)(Ir.a,{className:t.paperPerm,children:[Object(g.jsx)(wr.a,{className:t.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{j<=0?a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_3")})):x(!0)},children:c("PERM_FOLDER_TITLE")})})}),Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:Object(g.jsx)(Hi.a,{active:"user_name"===F.id,direction:F.direction,onClick:(K="user_name",e=>{!function(e,t){const a=t;let n="desc";F.id===t&&"desc"===F.direction&&(n="asc"),W({direction:n,id:a})}(0,K)}),children:c("USER")})}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-2",children:c("MANAGE_PRIORITY")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_READ_WRITE")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-2",children:c("PERM_TRASH")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_DELETE")})]})}),Object(g.jsxs)(Bi.a,{children:[M&&M.length>0?ni.a.orderBy(M,[e=>"user_name"===F.id?e.user_name:e[F.id]],[F.direction]).map(((e,a)=>e.file_permission===nn.y?Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:e.user_name})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row"}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center"}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{arrow:!0,title:e.file_permission===nn.y?c("PERM_NONE"):c("PERM_NOT_NONE"),children:Object(g.jsx)(U.a,{onClick:t=>V(j,e.user_id),children:e.file_permission===nn.y?Object(g.jsx)(Ml,{type:"visibility_off",className:""}):Object(g.jsx)(Ml,{type:"visibility",className:""})})})})]}):(e.isParent&&(Fi.a,Wi.a,e.user_name,Wi.a,st.a,e.file_permission===nn.z?c("PERM_READ"):c("PERM_READ_WRITE"),U.a,e.file_permission,nn.z,Wi.a,st.a,e.trash_permission===nn.pb?c("PERM_TRASH_IMPOSSIBLE"):c("PERM_TRASH_POSSIBLE"),U.a,e.trash_permission,nn.pb,Wi.a,st.a,e.file_permission===nn.y?c("PERM_NONE"):c("PERM_NOT_NONE"),U.a,e.file_permission,nn.y),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:e.user_name})]})}),Object(g.jsx)(Wi.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:e.manage_type!==nn.I?Object(g.jsx)(U.a,{onClick:t=>{let a=1;o.forEach((e=>{e.manage_priority>=a&&(a=e.manage_priority+1)})),H(j,e.user_id,e.file_permission,e.trash_permission,e.manage_type!==nn.I?nn.I:nn.J,a)},children:Object(g.jsx)("span",{children:c("MANAGE_TYPE_NONE")})}):Object(g.jsx)("div",{className:t.manage_type,children:Object(g.jsx)(U.a,{children:Object(g.jsx)(st.a,{arrow:!0,title:c("MANAGE_PRIORITY"),children:Object(g.jsxs)(Gc.a,{select:!0,className:t.manage_priority,name:"manage_type",value:e.manage_priority,onChange:t=>H(j,e.user_id,e.file_permission,e.trash_permission,-1===t.target.value?nn.J:e.manage_type,t.target.value),fullWidth:!0,children:[Object(g.jsx)(re.a,{value:-1,children:Object(g.jsx)(G.a,{children:"perm_identity"})}),Object(g.jsx)(re.a,{className:"justify-center",value:0,children:"0"}),Object(g.jsx)(re.a,{className:"justify-center",value:1,children:"1"}),Object(g.jsx)(re.a,{className:"justify-center",value:2,children:"2"}),Object(g.jsx)(re.a,{className:"justify-center",value:3,children:"3"}),Object(g.jsx)(re.a,{className:"justify-center",value:4,children:"4"}),Object(g.jsx)(re.a,{className:"justify-center",value:5,children:"5"}),Object(g.jsx)(re.a,{className:"justify-center",value:6,children:"6"}),Object(g.jsx)(re.a,{className:"justify-center",value:7,children:"7"}),Object(g.jsx)(re.a,{className:"justify-center",value:8,children:"8"}),Object(g.jsx)(re.a,{className:"justify-center",value:9,children:"9"})]})})})})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(st.a,{arrow:!0,title:e.file_permission===nn.z?c("PERM_READ"):c("PERM_READ_WRITE"),children:Object(g.jsx)(U.a,{onClick:t=>H(j,e.user_id,e.file_permission===nn.z?nn.A:nn.z,e.trash_permission,e.manage_type,e.manage_priority),children:e.file_permission===nn.z?Object(g.jsx)(Ml,{type:"readonly",className:""}):Object(g.jsx)(Ml,{type:"write",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{arrow:!0,title:e.trash_permission===nn.pb?c("PERM_TRASH_IMPOSSIBLE"):c("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(U.a,{onClick:t=>H(j,e.user_id,e.file_permission,e.trash_permission===nn.pb?nn.qb:nn.pb,e.manage_type,e.manage_priority),children:e.trash_permission===nn.pb?Object(g.jsx)(Ml,{type:"trash-delete",className:""}):Object(g.jsx)(Ml,{type:"trash",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{"aria-label":"releasePerm",onClick:t=>V(j,e.user_id),children:Object(g.jsx)(Ml,{type:"delete",className:""})})})})]})))):Object(g.jsx)(g.Fragment,{}),function(){if(b[j]){const e=Et.a.splitPreDelimiter(b[j].fid_path).split("/"),t={};return e.forEach((e=>{""!==e&&u[e]&&u[e].forEach((e=>{t[e.user_id]=e}))})),o.forEach((e=>{delete t[e.user_id]})),Object(g.jsx)(g.Fragment,{children:Object.keys(t).map(((e,a)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",colSpan:2,children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:t[e].user_name})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(st.a,{arrow:!0,title:t[e].file_permission===nn.z?c("PERM_READ"):c("PERM_READ_WRITE"),children:Object(g.jsx)(U.a,{onClick:a=>H(j,t[e].user_id,t[e].file_permission===nn.z?nn.A:nn.z,t[e].trash_permission,t[e].manage_type,t[e].manage_priority),children:t[e].file_permission===nn.z?Object(g.jsx)(Ml,{type:"readonly",className:""}):Object(g.jsx)(Ml,{type:"write",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{arrow:!0,title:t[e].trash_permission===nn.pb?c("PERM_TRASH_IMPOSSIBLE"):c("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(U.a,{onClick:a=>H(j,t[e].user_id,t[e].file_permission,t[e].trash_permission===nn.pb?nn.qb:nn.pb,t[e].manage_type,t[e].manage_priority),children:t[e].trash_permission===nn.pb?Object(g.jsx)(Ml,{type:"trash-delete",className:""}):Object(g.jsx)(Ml,{type:"trash",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{arrow:!0,title:t[e].file_permission===nn.y?c("PERM_NONE"):c("PERM_NOT_NONE"),children:Object(g.jsx)(U.a,{onClick:a=>H(j,t[e].user_id,t[e].file_permission===nn.y?nn.A:nn.y,t[e].trash_permission,t[e].manage_type,t[e].manage_priority),children:t[e].file_permission===nn.y?Object(g.jsx)(Ml,{type:"visibility_off",className:""}):Object(g.jsx)(Ml,{type:"visibility",className:""})})})})]})))})}return Object(g.jsx)(g.Fragment,{})}()]})]})})]})]});var K};var Zl={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/orgs",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Tl,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Jl,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var Ql=function(e){const{t:t}=Object(gt.a)("docbase");return Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"left",children:t("FOLDER_NAME")}),Object(g.jsx)(Wi.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:t("DELETE")})]})})};const $l=Object(H.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 eo=function(e){const t=$l(),a=Object(_.b)(),c=s.a.useRef(),r=s.a.useRef(null),{t:i}=Object(gt.a)("docbase"),[l,o]=s.a.useState(window.innerHeight),{orgsObj:d,sharedFolders:b,sharedsObj:j,selectedSharedID:O}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),u=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder.searchTextShared})),[h,m]=Object(n.useState)(!0),[E,f]=Object(n.useState)(b),[x,N]=Object(n.useState)(!1),[S,T]=s.a.useState({});s.a.useEffect((()=>{Et.a.infoLog("detail selectedID start"),Et.a.infoLog("detail selectedID end")}),[O]),Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(l-228,"px")),window.addEventListener("resize",(()=>o(window.innerHeight)))}),[l]),Object(n.useEffect)((()=>(a(Gn()).then((()=>{a(Bn()).then((()=>{a(Object(an.g)()).then((()=>{})),m(!1)}))})),()=>{a(Yn({fid:-1}))})),[a]),Object(n.useEffect)((()=>{R(u)}),[b,u]);const R=Object(n.useCallback)(Object(ai.debounce)((e=>{f(p.filterFoldersByString(b,e))}),500),[b]);function v(e){a(Yn({fid:-1})),j[e].folder_type===nn.D?((e,t)=>(t(Dn({show:!0})),new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/removeOrgSharedFolder",{fid:e,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{t(Dn({show:!1}))}))}))}))))(e,a).then((e=>{a(Object(Y.d)({message:i("SHARED_MESSAGE_1")})),a(Bn()).then((()=>m(!1)))})).catch((e=>{a(Object(Y.c)({message:i("SHARED_ERROR_MESSAGE_1")}))})):((e,t)=>new Promise(((a,n)=>{e||n(new Error("\uc0ad\uc81c\ud560 \ud3f4\ub354\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694.")),t(Dn({show:!0})),Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/removeSharedFolder",{fid:e,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{t(Dn({show:!1}))}))}))})))(e,a).then((e=>{a(Object(Y.d)({message:i("SHARED_MESSAGE_1")})),a(Bn()).then((()=>m(!1)))})).catch((e=>{a(Object(Y.c)({message:i("SHARED_ERROR_MESSAGE_1")}))}))}function L(e){const t={};return!e.name||e.name.trim().length<=0?t.name=i("FOLDER_ERROR_MESSAGE_1"):e.name.trim().length>30?t.name=i("FOLDER_ERROR_MESSAGE_3"):/[\\/:*?\\"<>|]/.test(e.name.trim())?t.name=i("PATTERN_ERROR_MESSAGE"):t.name="",T(t),""===t.name&&(((e,t,a)=>(t(Dn({show:!0})),new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{const i={name:e,token:r};a&&""!==a&&(i.expire_at=a),Ba.a.sendPost("/api/createSharedFolder",i).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))})).finally((()=>{t(Dn({show:!1}))}))}))}))))(e.name,a).then((e=>{a(Object(Y.d)({message:i("SHARED_ERROR_MESSAGE_2")})),a(Bn()).then((()=>m(!1))),r.current.reset(),T({name:""})})).catch((e=>{e.error===nn.U&&(T({name:i("FOLDER_ERROR_MESSAGE_2")}),a(Object(Y.c)({message:i("FOLDER_ERROR_MESSAGE_2")})))})),!0)}return h?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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)(rc.a,{placeholder:i("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:u,inputProps:{"aria-label":"Search"},onChange:e=>a(ts(e))})})}),Object(g.jsxs)("div",{className:"total-cnt-info",children:[Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[i("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:E.length}),i("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>N(!0),children:i("NEW_REGISTRATION")})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ql,{}),Object(g.jsxs)(Bi.a,{children:[E.map((t=>{d[t.parent_fid]&&Et.a.splitLastDelimiterString(d[t.parent_fid].disp_path);return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:O===t.fid,onClick:n=>{return s=t.fid,void(O!==s&&(a(Yn({fid:s})),e.fnToggleRightSidebar()));var s},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",children:Object(g.jsx)(st.a,{arrow:!0,interactive:!0,title:t.folder_type===nn.D?t.disp_path:t.path,children:Object(g.jsx)("span",{children:t.name})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{title:i("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{e.stopPropagation(),t.folder_type===nn.D?a(Object(Y.d)({message:i("FOLDER_ERROR_MESSAGE_5")})):a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:i("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(i("DELETE_CONTENT")),fnHandleOK:()=>{v(t.fid)}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)})),x?Object(g.jsxs)(Fi.a,{className:"cursor-pointer",children:[Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:Object(g.jsx)(ui.a,{name:"registerForm",className:"flex flex-col justify-center w-full",onSubmit:e=>L(e),validationErrors:S,ref:r,children:Object(g.jsxs)("div",{className:t.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(pi,{className:"",placeholder:i("FOLDER_NAME"),type:"text",name:"name",variant:"outlined",validations:{idCheck:(e,t)=>(t?t.trim().length>30?T({name:i("FOLDER_ERROR_MESSAGE_3")}):/[\\/:*?\\"<>|]/.test(t.trim())?T({name:i("PATTERN_ERROR_MESSAGE")}):T({name:""}):T({name:""}),!0)},size:"small",autoFocus:!0,fullWidth:!0})}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"submit",children:i("CREATE")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default",onClick:e=>(N(!1),void T({name:""})),children:i("CLOSE")})]})]})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"right"})]}):""]})]})})]})})};const to=Object(H.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%"},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}}})));var ao=function(e){const t=to(),a=Object(_.b)(),n=s.a.useRef(),{t:c}=Object(gt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),{sharedPerms:l,selectedSharedID:o,sharedsObj:b,sharedCapacity:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[O,u]=(new Date,s.a.useState(!1)),[p,h]=s.a.useState({}),[m,E]=s.a.useState(""),[f,x]=s.a.useState(null),[N,S]=s.a.useState(j),[T,R]=s.a.useState(j),[v,L]=s.a.useState(!1),[A,C]=s.a.useState(!0),[y,P]=s.a.useState([]),[w,D]=s.a.useState({id:"user_name",direction:"asc"});function M(e,t,n,s,r,i){a(Dn({show:!0}));const b=[];l.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:r,manage_priority:i})):b.push(e)})),Xn(e,b).then((e=>{a(Object(Y.d)({message:c("PERM_MESSAGE_1")})),a(Yn({fid:o}))})).catch((e=>{e.error===nn.U&&a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_1")}))})).finally((()=>{a(Dn({show:!1}))}))}return s.a.useEffect((()=>{r>=754&&(n.current.style.height="".concat(r-140,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{o&&o>0&&b[o]?(E(b[o].name),L(b[o].folder_type===nn.D),b[o].expire_at&&""!==b[o].expire_at?x(Et.a.getDateStringToDate(b[o].expire_at)):x(null),j&&j>=1024?(S(Math.floor(j/1024)),C(!1)):(S(j||0),C(!0)),R(j)):(E(""),S(0),L(!1),C(!0))}),[o,b]),s.a.useEffect((()=>{const e={};l.forEach((t=>{e[t.obj_id]=!0})),h(e)}),[l]),s.a.useEffect((()=>{}),[a]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(Wl,{open:O,type:"1",permsObj:p,fid:o,fnHandleClose:()=>u(!1),fnSetPermComplete:()=>{a(Object(Y.d)({message:c("PERM_MESSAGE_1")})),a(Yn({fid:o})),u(!1)}}),Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rl.a,{className:"",disableSpacing:!0,children:[Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{a(Yn({fid:0})),e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})}),Object(g.jsxs)(B.a,{className:Object(z.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)(wr.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(z.a)("text-left"),children:c("FOLDER_NAME")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:m,onChange:e=>E(e.target.value)})}),v?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)("div",{className:Object(z.a)("align-middle items-center flex"),children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{a(o<=0?Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("NAME_CHANGE"),content:c("SHARED_CHANGE_MESSAGE"),fnHandleOK:()=>{var e,t;(e=o,t=m,new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/api/renameSharedFolder",{fid:e,name:t,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))}))}))}))).then((e=>{a(Bn())}))}})}))},children:c("CHANGE")})})]}),v?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(z.a)("text-left"),children:c("EXPIRE_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:f,onChange:e=>{isNaN(e.getTime())||null!==f&&f.getTime()===e.getTime()||x(e)},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsxs)("div",{className:Object(z.a)("align-middle items-center flex"),children:[Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60,marginRight:10},onClick:()=>{a(o<=0?Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("EXPIRE_AT_CHANGE"),content:c("EXPIRE_AT_CHANGE_MESSAGE_1"),fnHandleOK:()=>{Vn(o,Et.a.getDateString(f)).then((e=>{a(Bn()),a(Object(Y.d)({message:c("EXPIRE_AT_CHANGE_MESSAGE_2")}))}))}})}))},children:c("CHANGE")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,style:{width:60,minWidth:60},onClick:()=>{a(o<=0?Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")}):Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("EXPIRE_AT_RELEASE"),content:c("EXPIRE_AT_RELEASE_MESSAGE_1"),fnHandleOK:()=>{Vn(o,"").then((e=>{a(Bn()),a(Object(Y.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(z.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(z.a)(t.filedInput,""),children:Object(g.jsx)(rc.a,{type:"number",name:"capacity",disableUnderline:!0,className:t.customInput,endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(t.selectTextAlignRight,""),value:A,onChange:e=>{let t=0;t=A?1024*N:N<1024?N:Math.floor(N/1024),$n(b[o].real_path,t).then((()=>{C(!A),a(Object(Y.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(Y.c)({message:c("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))}))},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.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(Y.c)({message:c("NUMBER_ERROR_MESSAGE")})),T&&T>=1024?(S(Math.floor(T/1024)),C(!1)):(S(T||0),C(!0)),!1):(T!==t&&$n(b[o].real_path,t).then((()=>{R(t),a(Object(Y.d)({message:c("CHANGE_CAPACITY_MESSAGE_3")}))})).catch((e=>{a(Object(Y.c)({message:c("CHANGE_CAPACITY_ERROR_MESSAGE_1")}))})),!0)}})})]})]})]}),v?Object(g.jsx)(g.Fragment,{}):Object(g.jsx)(Rl.a,{className:Object(z.a)(t.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsx)("div",{className:Object(z.a)(t.h_29,"inline-block align-middle ml-5 w-100"),style:{display:"none"},children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{o<=0?a(Object(Y.c)({message:c("ORG_ERROR_MESSAGE_2")})):Object(sn.z)(b[o].real_path).then((()=>{a(Object(Y.d)({message:c("SEARCH_INDEXING_MESSAGE_1")}))}))},children:c("SEARCH_INDEXING")})})})})]}),Object(g.jsxs)(Ir.a,{className:t.paperPerm,children:[Object(g.jsx)(wr.a,{className:t.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{o<=0?a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_3")})):u(!0)},children:c("PERM_FOLDER_TITLE")})})}),Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{className:t.th,children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:Object(g.jsx)(Hi.a,{active:"user_name"===w.id,direction:w.direction,onClick:(k="user_name",e=>{!function(e,t){const a=t;let n="desc";w.id===t&&"desc"===w.direction&&(n="asc"),D({direction:n,id:a})}(0,k)}),children:c("USER")})}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-2",children:c("MANAGE_PRIORITY")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_READ_WRITE")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-2",children:c("PERM_TRASH")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-1",children:c("PERM_DELETE")})]})}),Object(g.jsx)(Bi.a,{className:t.tbody,children:l&&l.length>0?ni.a.orderBy(l,[e=>"user_name"===w.id?e.name:e[w.id]],[w.direction]).map(((e,n)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:e.name})]})}),Object(g.jsx)(Wi.a,{className:"cell-approve",align:"center",component:"td",scope:"row",children:e.manage_type!==nn.I?Object(g.jsx)(U.a,{onClick:t=>{if(1===e.obj_type){let t=1;l.forEach((e=>{e.manage_priority<100&&e.manage_priority>=t&&(t=e.manage_priority+1)})),M(o,e,e.file_permission,e.trash_permission,e.manage_type!==nn.I?nn.I:nn.J,t)}},children:Object(g.jsx)("span",{children:c("MANAGE_TYPE_NONE")})}):Object(g.jsx)("div",{className:t.manage_type,children:Object(g.jsx)(U.a,{children:Object(g.jsx)(st.a,{arrow:!0,title:c("MANAGE_PRIORITY"),children:Object(g.jsxs)(Gc.a,{select:!0,className:t.manage_priority,name:"manage_type",value:e.manage_priority,onChange:t=>{1===e.obj_type&&M(o,e,e.file_permission,e.trash_permission,-1===t.target.value?nn.J:e.manage_type,t.target.value)},fullWidth:!0,children:[Object(g.jsx)(re.a,{value:-1,children:Object(g.jsx)(G.a,{children:"perm_identity"})}),Object(g.jsx)(re.a,{className:"justify-center",value:0,children:"0"}),Object(g.jsx)(re.a,{className:"justify-center",value:1,children:"1"}),Object(g.jsx)(re.a,{className:"justify-center",value:2,children:"2"}),Object(g.jsx)(re.a,{className:"justify-center",value:3,children:"3"}),Object(g.jsx)(re.a,{className:"justify-center",value:4,children:"4"}),Object(g.jsx)(re.a,{className:"justify-center",value:5,children:"5"}),Object(g.jsx)(re.a,{className:"justify-center",value:6,children:"6"}),Object(g.jsx)(re.a,{className:"justify-center",value:7,children:"7"}),Object(g.jsx)(re.a,{className:"justify-center",value:8,children:"8"}),Object(g.jsx)(re.a,{className:"justify-center",value:9,children:"9"})]})})})})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(st.a,{arrow:!0,title:e.file_permission===nn.z?c("PERM_READ"):c("PERM_READ_WRITE"),children:Object(g.jsx)(U.a,{onClick:t=>M(o,e,e.file_permission===nn.z?nn.A:nn.z,e.trash_permission),children:e.file_permission===nn.z?Object(g.jsx)(Ml,{type:"readonly",className:""}):Object(g.jsx)(Ml,{type:"write",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{arrow:!0,title:e.trash_permission===nn.pb?c("PERM_TRASH_IMPOSSIBLE"):c("PERM_TRASH_POSSIBLE"),children:Object(g.jsx)(U.a,{onClick:t=>M(o,e,e.file_permission,e.trash_permission===nn.pb?nn.qb:nn.pb),children:e.trash_permission===nn.pb?Object(g.jsx)(Ml,{type:"trash-delete",className:""}):Object(g.jsx)(Ml,{type:"trash",className:""})})})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{"aria-label":"releasePerm",onClick:t=>function(e,t){a(Dn({show:!0}));const n=[];l.forEach((e=>{(e.obj_type!==t.obj_type||e.obj_type===t.obj_type&&e.obj_id!==t.obj_id)&&n.push(e)})),Xn(e,n).then((e=>{a(Object(Y.d)({message:c("PERM_MESSAGE_2")})),a(Yn({fid:o}))})).catch((e=>{e.error===nn.U&&a(Object(Y.c)({message:c("PERM_ERROR_MESSAGE_2")}))})).finally((()=>{a(Dn({show:!1}))}))}(o,e),children:Object(g.jsx)(Ml,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]});var k};var no={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/shareds",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(eo,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(ao,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]},so=a(120),co=a.n(so);const ro=["children","classes","onClose"],io=Object(vl.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(Dc.a)(e,ro);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(co.a,{})}):null]}))})),lo=Object(H.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 oo(e){const{t:t}=Object(gt.a)("docbase"),a=lo(),n=[];for(let s=0;s<(new Date).getHours();s++)n.push(s);return Object(g.jsxs)(P.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",className:a.root,children:[Object(g.jsx)(io,{className:a.title,onClose:e.fnHandleClose,children:e.title}),Object(g.jsxs)(Br.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)(Gc.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)(re.a,{value:0,children:t("RESTORE_NOW")}):Object(g.jsx)(re.a,{value:e,children:"".concat(e).concat(t("RESTORE_HOUR_BEFORE"))})))})})]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsxs)(di.a,{className:a.actions,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleCancel,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:e.cancelTitle}),Object(g.jsx)(Pr.a,{className:"",color:"secondary",type:"button",variant:"contained","aria-label":"ok",onClick:e.fnHandleOK,children:e.okTitle})]})]})}const bo=["children","classes","onClose"],jo=Object(vl.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(Dc.a)(e,bo);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(co.a,{})}):null]}))})),Oo=Object(H.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 uo(e){const{t:t}=Object(gt.a)("docbase"),a=Oo(),[n,c]=s.a.useState(""),[r,i]=s.a.useState({error:!1,helperText:""});return Object(g.jsxs)(P.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",className:a.root,children:[Object(g.jsx)(jo,{id:"confirm-start-restore",className:a.title,children:t("RESTORE")}),Object(g.jsxs)(Br.a,{className:a.content,children:[Object(g.jsx)(zr.a,{id:"alert-dialog-slide-description",children:t("RESTORE_MESSAGE_3")}),Object(g.jsx)(Gc.a,{className:"",type:"text",name:"checkVal",fullWidth:!0,variant:"outlined",value:n,error:r.error,helperText:r.helperText,onChange:e=>c(e.target.value)})]}),Object(g.jsxs)(di.a,{className:a.actions,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,color:"",variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.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(""),i({error:!1,helperText:""})):i({error:!0,helperText:t("RESTORE_ERROR_MESSAGE_2")}):i({error:!0,helperText:t("RESTORE_ERROR_MESSAGE_1")})},children:t("CONFIRM")})]})]})}const po=Object(H.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}}))),ho="last_recent",_o="today",mo="date";let Eo;var go=function(){const e=po(),t=Object(_.b)(),{t:a}=Object(gt.a)("docbase"),n=s.a.useRef(),[c,r]=s.a.useState(window.innerHeight),i=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.restoreObj})),[l,o]=s.a.useState(Et.a.getDateString(new Date)),[d,b]=s.a.useState(0),[j,O]=s.a.useState(2),[u,p]=s.a.useState(!1),[h,m]=s.a.useState(!1),[E,f]=s.a.useState({emergencyBtn:0,restoreBtn:0,isChange:!1}),[x,N]=s.a.useState(!1);s.a.useEffect((()=>{t(cn()),t(rn())}),[t]),s.a.useEffect((()=>{n.current&&(n.current.style.height="".concat(c-200,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[c]),s.a.useEffect((()=>{0!==i.mode&&(O(i.mode),1===i.mode?b(i.back_hours):3===i.mode&&o(i.date)),1===i.process_type?0===i.status?(clearInterval(Eo),Eo=void 0,N(!1),0===i.mode?f({emergencyBtn:1,restoreBtn:1,isChange:!0}):f({emergencyBtn:3,restoreBtn:1,isChange:!1})):1===i.status&&(Eo||(Eo=setInterval((()=>{t(cn())}),2e3)),f(x?{emergencyBtn:0,restoreBtn:2,isChange:!1}:{emergencyBtn:2,restoreBtn:0,isChange:!1})):2===i.process_type?0===i.status?(clearInterval(Eo),Eo=void 0,N(!1),f({emergencyBtn:1,restoreBtn:1,isChange:!0})):1===i.status&&(Eo||(Eo=setInterval((()=>{t(cn())}),2e3)),f({emergencyBtn:0,restoreBtn:2,isChange:!1})):0===i.process_type?(Eo&&clearInterval(Eo),f({emergencyBtn:1,restoreBtn:1,isChange:!0})):f({emergencyBtn:0,restoreBtn:0,isChange:!1})}),[i]);const S=()=>{let e="last_recent";if(1===j)e=ho;else if(3===j)e=mo;else{if(2!==j)return t(Object(Y.c)({message:a("RESTORE_ERROR_MESSAGE_3")})),void p(!1);e=_o}((e,t,a)=>new Promise(((n,s)=>{Ba.a.sendPost("/api/startEmergencyMode",{mode:e,back_hours:t,date:a}).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))}))})))(e,d,Et.a.getDateString(l)).then((e=>{t(cn()),p(!1)})).catch((e=>t(Object(Y.c)({message:a("RESTORE_ERROR_MESSAGE_4")}))))},T=t=>{if((i.date===t||"-"===i.date&&"today"===t)&&0!==i.mode&&1===i.process_type){if(2===E.emergencyBtn||2===E.restoreBtn)return Object(g.jsx)("p",{});if(1===i.mode)return 0===Number(i.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(i.back_hours," ").concat(a("RESTORE_HOUR_BEFORE"),"]")]});if(2===i.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===i.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(i.date,"]")]})}return Object(g.jsx)(g.Fragment,{})},R=n=>{if(i.date===n||"-"===i.date&&"today"===n){if(2===E.emergencyBtn||2===E.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)(Sr.a,{className:Object(z.a)(e.circleProgress,"align-middle"),color:"secondary",size:30})]})});if(3===E.emergencyBtn)return Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Pr.a,{className:"default",variant:"contained",color:"","aria-label":"restore-mode",onClick:e=>{1===E.restoreBtn&&(N(!0),m(!0))},disabled:0===E.restoreBtn,children:a("RESTORE")}),Object(g.jsx)(Pr.a,{className:"",variant:"contained",color:"secondary","aria-label":"emergency-mode",onClick:e=>{3===E.emergencyBtn&&t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:a("RESTORE_TEMP"),content:a("RESTORE_MESSAGE_2"),fnHandleOK:()=>{new Promise(((e,t)=>{Ba.a.sendPost("/api/finishEmergencyMode",{}).then((a=>{a.result?e(a):(Ba.a.printError(a),t(a))}))})).then((e=>{t(cn())})).catch((e=>t(Object(Y.c)({message:a("RESTORE_ERROR_MESSAGE_5")})))).finally((()=>{t(Object(I.a)())}))}})}))},children:a("RESTORE_TEMP_FINISH")})]})}return"today"===n?Object(g.jsxs)("div",{children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===E.emergencyBtn,onClick:()=>{0===i.status?(O(2),p(!0)):t(Object(Y.d)({message:a("RESTORE_MESSAGE_8")}))},children:a("RESTORE_TODAY")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===E.emergencyBtn,onClick:()=>{0===i.status?(O(1),p(!0)):t(Object(Y.d)({message:a("RESTORE_MESSAGE_8")}))},children:a("RESTORE_ONE_TIME")})]}):Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default","aria-label":"ignore-add",size:"small",type:"button",disabled:3===E.emergencyBtn,onClick:()=>{0===i.status&&0===i.mode?(O(3),o(n),p(!0)):t(Object(Y.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(Et.a.getDateString(l)," ").concat(a("RESTORE_MESSAGE_5"))),Object(g.jsx)("div",{className:Object(z.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsx)(J.a,{className:Object(z.a)(e.contentWrapper,"w-full flex-grow overflow-x-auto"),ref:n,children:Object(g.jsxs)(Ct.a,{className:e.mainPaper,children:[Object(g.jsx)(oo,{open:u,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:()=>S(),fnHandleOK:()=>{m(!0),p(!1)}}),Object(g.jsx)(uo,{open:h,fnHandleClose:()=>m(!1),fnHandleOK:()=>{let e="last_recent";if(1===j)e=ho;else if(3===j)e=mo;else{if(2!==j)return t(Object(Y.c)({message:a("RESTORE_ERROR_MESSAGE_6")})),void m(!1);e=_o}((e,t,a)=>new Promise(((n,s)=>{Ba.a.sendPost("/api/restoreBackup",{mode:e,back_hours:t,date:a}).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))}))})))(e,d,Et.a.getDateString(l)).then((e=>{t(cn()),m(!1)}))}}),Object(g.jsx)("div",{children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left",children:a("RESTORE_SUB_TITLE")}),Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left",children:a("STATUS")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:""})]})}),Object(g.jsxs)(Bi.a,{children:[Object(g.jsxs)(Fi.a,{className:Object(z.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left date",align:"left",component:"td",scope:"row",children:Et.a.getDateString(new Date)}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:T("today")}),Object(g.jsx)(Wi.a,{className:"action-btn",component:"td",scope:"row",align:"center",children:R("today")})]}),i.days.map(((t,a)=>Object(g.jsxs)(Fi.a,{className:Object(z.a)(e.tr,"cursor-pointer"),hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.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)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:T("".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6)))}),Object(g.jsx)(Wi.a,{className:"action-btn",component:"td",scope:"row",align:"center",children:R("".concat(t.substring(0,4),"-").concat(t.substring(4,6),"-").concat(t.substring(6)))})]},a)))]})]})})]})})})};var fo={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/restore",component:function(){return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(go,{}),innerScroll:!0,sidebarInner:!0})}}]};const xo=Object(H.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 No=e=>{const t=xo();return Object(g.jsx)(de.a,{classes:t,name:e.name,checked:e.checked,disabled:e.disabled,onChange:t=>e.onChange(t)})};const So=["children","value","index"],To=Object(H.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:"flex",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 Ro(e){const{children:t,value:a,index:n}=e,s=Object(Dc.a)(e,So);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)(ll.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function vo(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}let Lo,Ao={};var Co=function(){const e=To(),t=Object(_.b)(),a=s.a.useRef(),c=Object(n.useRef)(null),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),{sysConfigure:o,alienConObj:b,seedKey:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),O=Object(_.c)((e=>{let{auth:t}=e;return t.initial.productInfo})),[u,p]=s.a.useState(!1),[h,m]=s.a.useState(o),[E,f]=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({size:0,unit:!1}),[S,T]=s.a.useState({fileSize:0,fileUnit:!1,totalSize:0,totalUnit:!1}),[R,v]=s.a.useState(0);function L(e){e.target.value!==String(o[e.target.name])&&C(e.target.name,e.target.value)}function A(e){m(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:!h[e.target.name]})),C(e.target.name,!h[e.target.name])}function C(e,a){Ao[e]=a,"sync_solution_consumer_folder_accessible"===e&&(Ao.sync_solution_integrated=!0),clearTimeout(Lo),Lo=setTimeout((()=>{"default_volume_label"===e&&(Ao.lock_volume_label=h.lock_volume_label),"lock_volume_label"===e&&(Ao.default_volume_label=h.default_volume_label),t(dn({setConf:Ao,succMsg:r("TAKEOUT_APPROVE_MESSAGE_1")})).then((()=>{Ao={},t(on())}))}),500)}return s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(i-200,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),s.a.useEffect((()=>{m(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),f(e),o.restrict_file_size&&o.restrict_file_size>=1073741824?N({size:Math.floor(o.restrict_file_size/1024/1024/1024),unit:!1}):N({size:o.restrict_file_size?Math.floor(o.restrict_file_size/1024/1024):0,unit:!0});const t=o.weblink_restrict_file_size>1073741824,a=o.weblink_restrict_total_size>1073741824;T({fileSize:t?Math.floor(o.weblink_restrict_file_size/1024/1024/1024):Math.floor(o.weblink_restrict_file_size/1024/1024),fileUnit:!t,totalSize:a?Math.floor(o.weblink_restrict_total_size/1024/1024/1024):Math.floor(o.weblink_restrict_total_size/1024/1024),totalUnit:!a})}),[o]),s.a.useEffect((()=>{}),[b]),s.a.useEffect((()=>{t(on())}),[t]),Object(g.jsx)("div",{className:Object(z.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsxs)(J.a,{className:Object(z.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:[Object(g.jsx)(Nr.a,{className:e.backdrop,open:u,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),Object(g.jsxs)(Ct.a,{className:e.mainPaper,children:[Object(g.jsx)(Ke.a,{position:"static",className:e.tabsBar,children:Object(g.jsxs)(si.a,{value:R,indicatorColor:"",onChange:(e,t)=>{R!==t&&v(t)},children:[Object(g.jsx)(ci.a,Object(d.a)({label:r("DEFAULT_SETTING")},vo(0))),Object(g.jsx)(ci.a,Object(d.a)({label:r("SETUP_SETTING")},vo(1))),Object(g.jsx)(ci.a,Object(d.a)({label:r("FOLDER_SIZE_SETTING")},vo(2))),Object(g.jsx)(ci.a,Object(d.a)({label:r("WEBLINK_SETTING")},vo(3))),Object(g.jsx)(ci.a,Object(d.a)({label:r("SETTING_PII_DETECT")},vo(4))),Object(g.jsx)(ci.a,Object(d.a)({label:r("RESTRICT_TITLE")},vo(5))),Object(g.jsx)(ci.a,Object(d.a)({label:r("SETTING_CENTRALIZED_DOC")},vo(6)))]})}),Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:0,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("SETTING_STRONG_PASSWORD")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"strong_password",checked:h.strong_password,onChange:e=>A(e)}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan),children:r("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:r("SETTING_TWO_FACTOR_AUTH")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"two_factor_authentication",checked:h.two_factor_authentication,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_DEFAULT_VOLUME_LABEL")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",name:"default_volume_label",disableUnderline:!0,className:e.customInput,value:h.default_volume_label,onChange:e=>m(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:r("SETTING_DUP_DETECT_ENABLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"dup_detect_enable",checked:h.dup_detect_enable,onChange:e=>A(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:r("SETTING_BACKUP_KEEPDAY")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(rc.a,{type:"text",name:"keep_days_backup_data",disableUnderline:!0,className:e.customInput,value:h.keep_days_backup_data,onChange:e=>m(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e),endAdornment:Object(g.jsx)(Di.a,{position:"end",style:{paddingRight:"5px"},children:r("DAY")})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("PRESERVE_LAST")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"preserve_last_revision",checked:h.preserve_last_revision,onChange:e=>A(e)}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan),children:r("PRESERVE_LAST_HELP")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("KEEP_DAYS_IN_TRASH")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(rc.a,{type:"text",name:"keep_days_in_trash",disableUnderline:!0,className:e.customInput,value:h.keep_days_in_trash,onChange:e=>m(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>{Number(h.keep_days_backup_data)A(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("MOBILE_WEB_SUPPORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"mobile_web_support",checked:h.mobile_web_support,onChange:e=>A(e)})})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("ALLOW_ADMIN_ACCESS_USERS_FOLDERS")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(No,{name:"allow_admin_access_users_folders",checked:h.allow_admin_access_users_folders,onChange:e=>A(e)}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan),children:r("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:r("PRIVATE_FOLDER_SUPPORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"private_folder_support",checked:h.private_folder_support,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_SECURE_DOCUMENT_USE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,name:"support_secure_document",value:h.support_secure_document?r("USE"):r("UNUSED"),readOnly:!0})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_RANSOMWARE_DETECT_USE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,name:"support_ransomware_detection",value:h.support_ransomware_detection?r("USE"):r("UNUSED"),readOnly:!0})})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_MIN_SMB_VERSION")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,name:"min_smb_protocol",value:"SMB3"===h.min_smb_protocol?"SMB 3.0":"SMB2"===h.min_smb_protocol?"SMB 2.0":"SMB 1.0",readOnly:!0})})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_SAMBA_PORT_USE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"support_default_smb_port",checked:h.support_default_smb_port,onChange:e=>A(e)}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan),children:r("SETTING_SAMBA_PORT_USE_HINT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_SMB_ENCRYPTION")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(No,{name:"smb_encryption",checked:h.smb_encryption,onChange:e=>A(e)}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan),children:r("SETTING_SMB_ENCRYPTION_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)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("FACTORY_RESET"),content:r("FACTORY_RESET_CONFIRM"),fnHandleOK:()=>{p(!0),new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/api/factoryReset",{token:n}).then((a=>{a.result?e(a):(Ba.a.printError(a),t(a))}))}))})).then((e=>{t(Object(Y.d)({message:r("FACTORY_RESET_MESAGE")})),p(!1),window.location.href="/"})).catch((e=>t(Object(Y.c)({message:r("FACTORY_RESET_FAILED")}))))}})}))},children:r("FACTORY_RESET")})}),Object(g.jsxs)("div",{children:[Object(g.jsxs)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{c.current.click()},children:[Object(g.jsx)(G.a,{fontSize:"default",color:"white",children:"publish"}),r("SETTING_UPDATE")]}),Object(g.jsx)("input",{className:"hidden",id:"button-file",type:"file",ref:c,onChange:e=>{var a;p(!0),(a=e.target.files[0],new Promise(((e,t)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPostMultipartForm("/api/updateSystem",{token:s},[a],["update_file"],(a=>a.data.result?e(a.data):(Ba.a.printError(a.data),t(a.data))))}))}))).then((e=>t(Object(Y.d)({message:r("SETTING_UPDATE_MESSAGE_1")})))).catch((e=>{e.error===nn.X?t(Object(Y.c)({message:r("SETTING_UPDATE_ERROR_MESSAGE_1")})):e.error===nn.U?t(Object(Y.c)({message:r("SETTING_UPDATE_ERROR_MESSAGE_2")})):t(Object(Y.c)({message:r("SETTING_UPDATE_ERROR_MESSAGE_3")}))})).finally((()=>{p(!1)})),c.current.value=""}})]}),Object(g.jsx)("div",{children:""===j?Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>{t(un())},children:r("SEEDKEY")}):Object(g.jsxs)(B.a,{className:"font-medium relative ",variant:"subtitle1",color:"textSecondary",style:{"line-height":"5rem"},children:[j,Object(g.jsx)(st.a,{className:"inline-block",arrow:!0,title:r("COPY"),children:Object(g.jsx)(U.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(Y.d)({message:r("SEEDKEY_COPY")}))},children:Object(g.jsx)(G.a,{children:"file_copy"})})})]})})]})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:1,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("CONNECT_SERVER_ADDRESS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,name:"connect_server_address",className:e.customInput,value:h.connect_server_address,onChange:e=>{m(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:r("MAP_MOUNT_DRIVE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)(oe.a,{variant:"outlined",className:Object(z.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])&&(m(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),C(e.target.name,e.target.value))}(e),""!==h.force_map_mount_drive&&C("force_map_mount_drive",e.target.value)},children:[Object(g.jsx)(re.a,{value:"",children:r("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)(re.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:r("FORCE_MAP_MOUNT_DRIVE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"force_map_mount_drive",checked:""!==h.force_map_mount_drive,onChange:e=>{C(e.target.name,""!==h.force_map_mount_drive?"":h.map_mount_drive)}}),Object(g.jsx)("span",{className:e.hintSpan,children:r("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:r("SILENT_SETUP")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(No,{name:"silent_setup",checked:h.silent_setup,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("SILENT_SETUP_HINT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("DISABLE_CONNECT_BUTTON_WEBADMIN")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(No,{name:"disable_connect_button_webadmin",checked:h.disable_connect_button_webadmin,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("AUTO_START")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(No,{name:"auto_start",checked:h.auto_start,onChange:e=>A(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:r("DISABLE_SAVE_PASSWORD")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(No,{name:"disable_save_password",checked:h.disable_save_password,onChange:e=>A(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:r("NO_SHELL_MENU")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(No,{name:"no_shell_menu",checked:h.no_shell_menu,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("NO_TRAY_ICON_MENU")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(No,{name:"no_tray_icon_menu",checked:h.no_tray_icon_menu,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("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:r("FORCE_SETUP_PERFORM")})}),Object(g.jsxs)("div",{className:"content ",children:[Object(g.jsx)(No,{name:"force_setup_perform",checked:h.force_setup_perform,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FORCE_SETUP_PERFORM_HINT")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_LOCK_VOLUME_LABEL")})}),Object(g.jsx)("div",{className:"content ",children:Object(g.jsx)(No,{name:"lock_volume_label",checked:h.lock_volume_label,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("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)(rc.a,{type:"text",name:"default_volume_label",disableUnderline:!0,className:e.customInput,value:h.default_volume_label,onChange:e=>m(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:r("INTEGRATED_WITH_AD")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,name:"integrated_with_AD",value:h.integrated_with_AD?r("USE"):r("UNUSED"),readOnly:!0})})})]})]})]})]}),Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:2,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("PRIVATEFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"number",name:"private_folder_size",disableUnderline:!0,className:e.customInput,value:E.privateObj.capacity,onChange:e=>{f(Object(d.a)(Object(d.a)({},E),{},{privateObj:Object(d.a)(Object(d.a)({},E.privateObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=E.privateObj.unit?E.privateObj.capacity:1024*E.privateObj.capacity;o[e.target.name]!==t&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:E.privateObj.unit,onChange:e=>{const t=Object(d.a)({},E);E.privateObj.unit?t.privateObj.capacity=E.privateObj.capacity<1024?0:Math.floor(E.privateObj.capacity/1024):t.privateObj.capacity=1024*E.privateObj.capacity,t.privateObj.unit=!E.privateObj.unit,f(t)},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("COLLECTFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"number",name:"collect_folder_size",disableUnderline:!0,className:e.customInput,value:E.collectObj.capacity,onChange:e=>{f(Object(d.a)(Object(d.a)({},E),{},{collectObj:Object(d.a)(Object(d.a)({},E.collectObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=E.collectObj.unit?E.collectObj.capacity:1024*E.collectObj.capacity;o[e.target.name]!==t&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:E.collectObj.unit,onChange:e=>{const t=Object(d.a)({},E);E.collectObj.unit?t.collectObj.capacity=E.collectObj.capacity<1024?0:Math.floor(E.collectObj.capacity/1024):t.collectObj.capacity=1024*E.collectObj.capacity,t.collectObj.unit=!E.collectObj.unit,f(t)},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("ORGFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"number",name:"organization_folder_size",disableUnderline:!0,className:e.customInput,value:E.orgObj.capacity,onChange:e=>{f(Object(d.a)(Object(d.a)({},E),{},{orgObj:Object(d.a)(Object(d.a)({},E.orgObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=E.orgObj.unit?E.orgObj.capacity:1024*E.orgObj.capacity;o[e.target.name]!==t&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:E.orgObj.unit,onChange:e=>{const t=Object(d.a)({},E);E.orgObj.unit?t.orgObj.capacity=E.orgObj.capacity<1024?0:Math.floor(E.orgObj.capacity/1024):t.orgObj.capacity=1024*E.orgObj.capacity,t.orgObj.unit=!E.orgObj.unit,f(t)},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SHAREDFOLDER_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"number",name:"shared_folder_size",disableUnderline:!0,className:e.customInput,value:E.sharedObj.capacity,onChange:e=>{f(Object(d.a)(Object(d.a)({},E),{},{sharedObj:Object(d.a)(Object(d.a)({},E.sharedObj),{},{capacity:Number(e.target.value)})}))},onBlur:e=>{e.preventDefault();const t=E.sharedObj.unit?E.sharedObj.capacity:1024*E.sharedObj.capacity;o[e.target.name]!==t&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:E.sharedObj.unit,onChange:e=>{const t=Object(d.a)({},E);E.sharedObj.unit?t.sharedObj.capacity=E.sharedObj.capacity<1024?0:Math.floor(E.sharedObj.capacity/1024):t.sharedObj.capacity=1024*E.sharedObj.capacity,t.sharedObj.unit=!E.sharedObj.unit,f(t)},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]})]})})]}),Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:3,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("WEBLINK_USED")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"weblink_service_support",checked:h.weblink_service_support,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("WEBLINK_COMMENT_1")})]})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("WEBLINK_SERVICE_ADDR")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_service_address",value:h.weblink_service_address,onChange:e=>m(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:r("WEBLINK_SERVICE_PORT")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_service_port",value:h.weblink_service_port,onChange:e=>m(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:r("WEBLINK_RESTRICT_EXTS")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"weblink_restrict_exts",value:h.weblink_restrict_exts,onChange:e=>m(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:r("WEBLINK_RESTRICT_FILE_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.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&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"weblink_restrict_file_size",disableUnderline:!0,variant:"standard",className:Object(z.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)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("WEBLINK_RESTRICT_TOTAL_SIZE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.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&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"weblink_restrict_total_size",disableUnderline:!0,variant:"standard",className:Object(z.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)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})]})]})]})]}),Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:4,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("SETTING_PII_DETECT_ENABLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"pii_detect_enable",checked:h.pii_detect_enable,onChange:e=>A(e)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SETTING_PII_DETECT_OCR")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"async_ocr",checked:h.async_ocr,onChange:e=>A(e)})})]})]})})]}),2===h.menu_support_type?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:5,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("RESTRICT_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:r("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)(rc.a,{type:"number",disableUnderline:!0,className:e.customInput,name:"restrict_file_size",value:x.size,onChange:e=>N(Object(d.a)(Object(d.a)({},x),{},{size:Number(e.target.value)})),onBlur:e=>{e.preventDefault();const t=x.unit?1024*x.size*1024:1024*x.size*1024*1024;o[e.target.name]!==t&&C([e.target.name],t)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:x.unit,onChange:e=>{let t=0;t=x.unit?x.size<1024?0:Math.floor(x.size/1024):1024*x.size,N({unit:!x.unit,size:t})},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})})})}),Object(g.jsx)("span",{className:e.hintSpan,children:r("FOLDER_SIZE_HELP_TEXT")})]})})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("RESTRICT_EXT_TITLE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",disableUnderline:!0,className:e.customInput,fullWidth:!0,name:"restrict_file_exts",value:h.restrict_file_exts,onChange:e=>m(Object(d.a)(Object(d.a)({},h),{},{[e.target.name]:e.target.value})),onBlur:e=>L(e)})}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan,"text-left"),children:r("RESTRICT_EXT_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("RESTRICT_EXT_REMOVE")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"restrict_file_exts_remove_at_batch",checked:!h.restrict_file_exts_remove_at_batch,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("RESTRICT_EXT_REMOVE_HELP_TEXT")})]})]})]})})]}),2!==h.menu_support_type&&(O.supportDataleakControl||O.supportSavingControl||O.supportAccessControl)?Object(g.jsxs)(Ro,{className:e.tabPanel,value:R,index:6,children:[Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("DATALEAK_CONTROL")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"dataleak_control",checked:h.dataleak_control,onChange:e=>O.supportDataleakControl?(A(e),!0):(t(Object(Y.d)({message:r("DATALEAK_MESSAGE_1")})),!1)})})]}),Object(g.jsxs)("div",{className:"row",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("ACCESS_CONTROL_USED")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"access_control",checked:h.access_control,onChange:e=>O.supportAccessControl?(A(e),!0):(t(Object(Y.d)({message:r("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:r("SAVING_CONTROL_USED")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"saving_control",checked:h.saving_control,onChange:e=>O.supportSavingControl?(A(e),!0):(t(Object(Y.d)({message:r("DATALEAK_MESSAGE_3")})),!1)})})]})})]}),Object(g.jsx)("div",{className:e.settingTitle,children:r("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:r("SYNC_SOLUTION_INTEGRATED")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(No,{name:"sync_solution_integrated",checked:h.sync_solution_integrated,onChange:e=>A(e)}),Object(g.jsx)("span",{className:e.hintSpan,children:r("SYNC_SOLUTION_INTEGRATED_HINT_1")}),Object(g.jsx)("span",{className:e.hintSpan,children:r("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:r("SYNC_SOLUTION_NAME")})}),Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)("div",{className:e.inputForm,children:Object(g.jsx)(rc.a,{type:"text",name:"sync_solution",className:Object(z.a)(e.inputRight,"no-border"),value:h.sync_solution,readOnly:!0})}),Object(g.jsx)("span",{className:Object(z.a)(e.hintSpan,"text-left"),children:r("RESTRICT_EXT_HELP_TEXT")})]})]}),Object(g.jsxs)("div",{className:"row tall",children:[Object(g.jsx)("div",{className:"title",children:Object(g.jsx)("span",{children:r("SYNC_SOLUTION_CONSUMER_FOLDER_ACCESSIBLE")})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(No,{name:"sync_solution_consumer_folder_accessible",checked:h.sync_solution_consumer_folder_accessible,onChange:e=>A(e)})})]})]}):Object(g.jsx)(g.Fragment,{})]})})]}):Object(g.jsx)(g.Fragment,{})]})]})})};var yo={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/settings",component:function(){return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Co,{})})}}]};const Po=Object(H.a)((e=>({root:{background:"radial-gradient(".concat(Object(ir.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var Io=function(e){let{history:t,location:a}=e;const c=Po(),r=Object(_.b)(),{t:i}=Object(gt.a)(["docbase","brand"]),l=new URLSearchParams(a.search),[o,b]=s.a.useState(""),[j,O]=s.a.useState(!0),[u,p]=s.a.useState(""),[h,m]=s.a.useState({enable:!1,code:""});function E(e){Object(Ya.b)(l.get("id")).then((t=>{O(t.password_protected),t.limit_downloads>0&&t.remain_downloads<=0?(p(i("WEBLINK_ERROR_MESSAGE_1")),O(!1)):1!==t.status?(6===t.error?p(i("WEBLINK_ERROR_MESSAGE_4")):p(i("WEBLINK_ERROR_MESSAGE_2")),O(!1)):(new Date).getTime()>new Date(t.expired_at).getTime()+864e5?(p(i("WEBLINK_ERROR_MESSAGE_3")),O(!1)):t.email_otp?(!async function(e){Object(Ya.a)(e)}(l.get("id")),m({enable:!0,code:""})):t.password_protected||e||f()}))}function f(){Object(Ya.d)(((e,t)=>{const a=document.createElement("a");let n="".concat(window.location.origin,"/api/downloadWeblink?id=").concat(l.get("id"),"&token=").concat(t);j&&(n+="&password=".concat(za.a.encryptAES(e,o,"utf8","hex"))),h.enable&&(n+="&otp=".concat(za.a.encryptAES(e,h.code,"utf8","hex"))),a.href=n,document.body.appendChild(a),a.click(),setTimeout((e=>{E(!0)}),300)}))}function x(e){let t=!0;h.enable?0===h.code.trim().length&&(r(Object(Y.c)({message:i("EMAIL_OTP_ERROR_MESSAGE_1")})),t=!1):0===o.trim().length&&(r(Object(Y.c)({message:i("USER_ERROR_MESSAGE_5")})),t=!1),t&&f(),e.stopPropagation(),e.preventDefault()}return Object(n.useEffect)((()=>{E(!1)}),[]),Object(g.jsx)("div",{className:Object(z.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)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(wr.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)(B.a,{variant:"h6",className:"mt-16 mb-16 font-bold",children:i("brand:WEBLINK_TITLE")}),""!==u?Object(g.jsx)("p",{style:{fontSize:12,color:"#e91414"},children:u}):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)(Gc.a,{label:i("EMAIL_OTP_CODE"),type:"text",name:"password",variant:"outlined",size:"small",required:!0,value:h.code,onChange:e=>m(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:i("EMAIL_OTP_HELP_1")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"download",onClick:e=>{x(e)},children:i("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)(Gc.a,{className:"mb-16",label:i("PASSWORD"),type:"password",name:"password",variant:"outlined",size:"small",required:!0,value:o,onChange:e=>b(e.target.value),fullWidth:!0}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"download",onClick:e=>{x(e)},children:i("DOWNLOAD")})]}):""]})})})})})};const wo=Object(H.a)((e=>({root:{background:"radial-gradient(".concat(Object(ir.darken)(e.palette.primary.dark,.5)," 0%, ").concat(e.palette.primary.dark," 80%)"),color:e.palette.primary.contrastText}})));var Do={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/weblink",component:Io},{path:"/weblinkError",component:function(e){let{location:t}=e;const a=wo(),{t:c}=Object(gt.a)(["docbase","brand"]),r=new URLSearchParams(t.search),[i,l]=s.a.useState("");return Object(n.useEffect)((()=>{switch(console.log(r),r.get("type")){case"1":default:l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_8"));break;case"2":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_1"));break;case"3":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_2"));break;case"4":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_3"));break;case"5":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_7"));break;case"6":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_4"));break;case"7":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_5"));break;case"8":l(c("WEBLINK_DOWNLOAD_ERROR_MESSAGE_6"))}}),[]),Object(g.jsx)("div",{className:Object(z.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)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(wr.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)(B.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:i})]})})})})})}}]};const Mo=Object(H.a)((e=>({tr:{"& .seq":{width:100},"& .level":{width:100},"& .delete":{width:80}}})));var ko=function(e){const{t:t}=Object(gt.a)("docbase"),a=Mo(),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)(Ui.a,{children:Object(g.jsxs)(Fi.a,{className:a.tr,children:[n.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Wi.a,{className:"delete",padding:"none",sortDirection:!1})]})})};const Go=Object(H.a)((e=>({root:{marginRight:30,borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-276,"px"),padding:"0 20px"}})));var Uo=function(e){const t=Go(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{selectedDocObj:o,docs:d,rowsPerPage:b,currentPage:j,totalRows:O}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureDocObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-276,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{a(bn({page:1})).then((()=>{a(Object(an.g)()),e.setLoading(!1)}))}),[a]),Object(n.useEffect)((()=>{d.forEach((e=>{e.doc_id===o.doc_id&&a(yn({docObj:e}))}))}),[d]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(z.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:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O}),l("CNT")]})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ko,{}),Object(g.jsx)(Bi.a,{children:d.map((t=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,selected:o.doc_id===t.doc_id,onClick:n=>(a(Cn({docObj:t})),void e.fnToggleRightSidebar()),children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:t.level<1e4?t.level:"NONE"}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(t.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(t.disp_path)})]})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",align:"right",children:Object(g.jsx)(st.a,{title:l("RELEASE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:l("SECUREDOC_RELEASE_TITLE"),content:l("SECUREDOC_RELEASE_CONTENT"),fnHandleOK:()=>{var n;(n=t.doc_id,new Promise(((e,t)=>{Object(Ya.d)(((a,s)=>{Ba.a.sendPost("/api/releaseSecureDocumentEx",{doc_id:n,token:s}).then((a=>{a.result?e(a):(Ba.a.printError(a),t(a))}))}))}))).then((t=>{a(Object(Y.d)({message:l("SECUREDOC_MESSAGE_3")})),a(bn({page:j})).then((()=>{e.setLoading(!1),a(Object(I.a)())}))})).catch((e=>{a(Object(Y.c)({message:l("SECUREDOC_ERROR_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})]},t.fid)))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:O,rowsPerPage:b,rowsPerPageOptions:[100,250,500],page:j-1,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:(t,n)=>{!function(t,n){e.setLoading(!0),a(jn({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{!function(t){e.setLoading(!0),a(Pn({value:t.target.value})),a(bn({page:1})).then((()=>e.setLoading(!1)))}(t),c.current.scrollTop=0}})]})})};const Fo=Object(H.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 Wo=function(e){const t=Fo(),a=Object(_.b)(),n=s.a.useRef(),{t:c}=Object(gt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[l,o]=s.a.useState(""),{selectedDocObj:b,currentPage:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.secureDocObj})),{users:O,usersObj:u}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[p,h]=s.a.useState(null),[m,E]=s.a.useState(O),[f,x]=s.a.useState(b.level);function N(t,n){((e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/api/updateSecureDocumentEx",Object(d.a)(Object(d.a)({},e),{},{[t]:a,token:r})).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))}))}))})))(b,t,n).then((s=>{let r=c("SECUREDOC_MESSAGE_1");"level"===t&&(r=c("SECUREDOC_MESSAGE_2")),a(Object(Y.d)({message:r})),e.setLoading(!0),a(bn({page:j})).then((t=>{x(n),e.setLoading(!1)}))})).catch((e=>{a(Object(Y.c)({message:c("SECUREDOC_ERROR_MESSAGE_1")}))}))}function S(){N("users",[...b.users,{user_id:p.user_id}])}return s.a.useEffect((()=>{r>=754&&(n.current.style.height="".concat(r-304,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{if(b.doc_id>0){const e={};b.users.forEach((t=>{e[t.user_id]=!0})),E(O.filter((t=>!e[t.user_id]))),x(b.level)}}),[b]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rl.a,{className:Object(z.a)(t.card_button_group,"md:"),disableSpacing:!0,children:[Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})}),Object(g.jsx)(st.a,{title:b.path,arrow:!0,children:Object(g.jsxs)(B.a,{className:t.card_userid,variant:"h6",children:[Object(g.jsx)("span",{children:c("DETAIL_INFO")}),Object(g.jsx)("span",{children:"[".concat(Et.a.pathToName(b.path),"]")})]})})]}),Object(g.jsx)(wr.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(z.a)("text-left"),children:c("ACCESS_LEVEL")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsxs)(oe.a,{id:"access_level",variant:"outlined",className:"",fullWidth:!0,value:Number(f),onChange:e=>N("level",e.target.value),children:[Object(g.jsx)(re.a,{value:1e4,children:"-"}),Object(g.jsx)(re.a,{value:1,children:"1"}),Object(g.jsx)(re.a,{value:2,children:"2"}),Object(g.jsx)(re.a,{value:3,children:"3"}),Object(g.jsx)(re.a,{value:4,children:"4"}),Object(g.jsx)(re.a,{value:5,children:"5"})]})})]})})]}),Object(g.jsxs)(Ir.a,{className:t.paperPerm,children:[Object(g.jsxs)(wr.a,{className:t.paperPermHeader,children:[Object(g.jsx)("div",{children:Object(g.jsx)(bi.a,{id:"autocomplete-permission-search",options:m,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:l,onInputChange:(e,t)=>{o(t)},renderInput:e=>Object(g.jsx)(Gc.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)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:e=>S(),children:c("ADD")})})]}),Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"delete",children:c("PERM_DELETE")})]})}),Object(g.jsx)(Bi.a,{children:b.users&&b.users.length>0?b.users.map(((e,t)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{className:"folder-name",children:u[e.user_id]?"".concat(u[e.user_id].name,"(").concat(e.user_id,")"):"john doe(".concat(e.user_id,")")})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{title:c("PERM_DELETE"),className:"font-size-initial",arrow:!0,children:Object(g.jsx)(U.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)(Ml,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var Ho={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Uo,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Wo,{loading:e,setLoading:t,fnToggleRightSidebar:e=>a.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]},Bo=a(1030),zo=a(35),Yo=a(127),Vo=a(84);zo.f.register(zo.a,zo.s,zo.i,Yo.a);const Ko=Object(H.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 Xo(e){const t=Ko(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=>Et.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)(Ct.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(B.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Vo.b,{data:a,options:n})})]})}var qo=s.a.memo(Xo);zo.f.register(zo.a,zo.s,zo.i,Yo.a);const Jo=Object(H.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 Zo(e){const t=Jo(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=>Et.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)(Ct.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(B.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Vo.b,{data:a,options:n})})]})}var Qo=s.a.memo(Zo);const $o=Object(H.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 ed(e){const{t:t}=Object(gt.a)("docbase"),a=$o(),n=Object(_.b)(),[c,r]=s.a.useState({capacity:0,unit:!1});return s.a.useEffect((()=>{let t=0;const a=Et.a.getLocalStorage("dashboardObj"),n=(new Date).getTime();t=a[e.path]&&a[e.path].timestamp-n<=3e5?a[e.path].size:e.capacity,r(t>=1024?{capacity:Math.floor(t/1024),unit:!1}:{capacity:t||0,unit:!0})}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{id:"alert-dialog-slide-title",className:a.titleWrapper,children:"".concat(e.title).concat(t("CHANGE_CAPACYTI_TITLE"))}),Object(g.jsx)(Br.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(z.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(z.a)(a.filedInput,""),children:Object(g.jsx)(rc.a,{type:"number",name:"capacity",disableUnderline:!0,className:a.customInput,endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.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),r({capacity:t,unit:!c.unit})},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.a,{value:"true",children:"Mbyte"})]})}),value:c.capacity,onChange:e=>r(Object(d.a)(Object(d.a)({},c),{},{capacity:Number(e.target.value)}))})})]})}),Object(g.jsxs)(di.a,{className:a.actions,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.a,{onClick:()=>{const a=c.unit?c.capacity:1024*c.capacity;return a<0?(n(Object(Y.c)({message:t("NUMBER_ERROR_MESSAGE")})),!1):($n(e.path,a).then((()=>{n(Object(Y.d)({message:t("CHANGE_CAPACITY_MESSAGE_4")}));const s=Et.a.getLocalStorage("dashboardObj"),c={timestamp:(new Date).getTime(),size:a};s[e.path]=c,Et.a.setLocalStorage("dashboardObj",s)})).catch((e=>{n(Object(Y.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 td=Object(H.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 ad(e){const t=td(),{t:a}=Object(gt.a)("docbase"),n=Object(_.b)(),[c,r]=s.a.useState({open:!1,capacity:0,title:"",path:""}),[i,l]=s.a.useState(""),[o,d]=s.a.useState(e.data.row),[b,O]=s.a.useState({id:"0",direction:"asc"});s.a.useEffect((()=>{d(""!==i?e.data.rows.filter((e=>e.name.toLowerCase().includes(i.toLowerCase()))):e.data.rows)}),[e.data,i]);return Object(g.jsxs)(Ct.a,{className:Object(z.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)(rc.a,{placeholder:"\uacb0\uacfc \ub0b4 \uac80\uc0c9",className:"search-input",disableUnderline:!0,fullWidth:!0,value:i,inputProps:{"aria-label":"Search"},onChange:e=>l(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)(B.a,{className:"text-20 mb-16",color:"textSecondary",children:"Loading..."}),Object(g.jsx)(Z.a,{className:"w-xs max-w-full",color:"secondary"})]}):Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(ed,{open:c.open,title:c.title,capacity:c.capacity/1024/1024,path:c.path,fnHandleClose:()=>{r({open:!1,capacity:0,title:"",path:""}),e.fnMakeUnitList()}}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"",align:"center",children:Object(g.jsx)("span",{})}),e.data.titles.map(((e,t)=>{return Object(g.jsx)(Wi.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)(Hi.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"),O({direction:n,id:t})}),children:e})});var a}))]})}),Object(g.jsx)(Bi.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 i=0;return s.used.trash_size>0&&(i=s.used.trash_size/s.used.size*100),Object(g.jsxs)(Fi.a,{children:[Object(g.jsxs)(Wi.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)(Wi.a,{className:"left",children:s.name}),Object(g.jsx)(Wi.a,{align:"center",className:"cell-size",children:Object(g.jsxs)("div",{className:Object(z.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(Et.a.changeByteToString(s.used.size<=0?0:s.used.size)," ").concat(0===s.used.capacity?"(\u221e)":" / ".concat(Et.a.changeByteToString(s.used.capacity))).concat(0===s.used.capacity?"":"(".concat(s.used.usage_percent.toFixed(2),"%)"))})})]})}),Object(g.jsx)(Wi.a,{align:"center",className:"cell-size",children:Object(g.jsxs)("div",{className:Object(z.a)(t.capacityWrapper),children:[Object(g.jsx)("div",{className:"size-bar",style:{width:"".concat(i>1?i>100?100:i:0,"%")}}),Object(g.jsx)("div",{className:"text-bar",children:Object(g.jsx)("span",{children:"".concat(Et.a.changeByteToString(s.used.trash_size<=0?0:s.used.trash_size)," / ").concat(Et.a.changeByteToString(s.used.size)," (").concat(i.toFixed(2),"%)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")})})]})}),Object(g.jsx)(Wi.a,{align:"center",className:"cell-setting",children:s.changed?Object(g.jsx)(G.a,{className:"align-middle cursor-default",onClick:()=>{n(Object(Y.d)({message:a("CHANGE_CAPACITY_MESSAGE_4")}))},children:"more_horiz"}):Object(g.jsx)(G.a,{className:"align-middle cursor-pointer",onClick:()=>{r({open:!0,capacity:s.used.capacity,title:s.name,path:s.used.path})},children:"settings"})})]},c)}))})]})]})]})}var nd=s.a.memo(ad);zo.f.register(zo.a,zo.s,zo.i,Yo.a);const sd=Object(H.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 cd(e){const t=sd(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),Et.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)(Ct.a,{className:t.root,children:[Object(g.jsx)("div",{className:"flex items-center justify-between header",children:Object(g.jsx)(B.a,{className:"",children:e.obj.title})}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Vo.b,{data:a,options:n})})]})}var rd=s.a.memo(cd);zo.f.register(zo.a,zo.s,zo.i,Yo.a);const id=Object(H.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 ld(e){const t=id(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=>Et.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)(Ct.a,{className:t.root,children:[Object(g.jsxs)("div",{className:"flex items-center justify-between header",children:[Object(g.jsx)(B.a,{className:"",children:e.obj.folderType===nn.C?Et.a.splitLastDelimiterString(e.obj.title):e.obj.title}),Object(g.jsx)(U.a,{"aria-label":"close",className:t.closeButton,onClick:()=>e.fnDeleteFolderInfo(e.obj.fid),children:Object(g.jsx)(Ll.a,{})})]}),Object(g.jsx)("div",{className:"content",children:Object(g.jsx)(Vo.b,{data:a,options:n})})]})}var od=s.a.memo(ld);const dd=Object(H.a)((e=>({selectedProject:{background:Object(ir.lighten)(e.palette.primary.dark,.1),color:e.palette.primary.contrastText,borderRadius:"8px 0 0 0"},projectMenuButton:{background:Object(ir.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 bd;var jd=function(e){const t=Object(_.b)(),{t:a}=Object(gt.a)("docbase"),c=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.dashboardObj})),{sysConfigure:r}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{usersObj:i}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgsObj:l,sharedsObj:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),b=s.a.useRef(),[j,O]=s.a.useState(window.innerHeight),u=dd(e),[p,h]=s.a.useState(!0),[m,E]=Object(n.useState)(0),[f,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,R]=Object(n.useState)({titles:[],rows:[]}),[v,L]=Object(n.useState)({}),[A,C]=Object(n.useState)(0),[y,P]=Object(n.useState)({title:a("ORG_FOLDER"),series:[],labels:[]}),[I,w]=Object(n.useState)({title:a("PRIVATE_FOLDER"),series:[],labels:[]}),[D,M]=Object(n.useState)({title:a("SHARED_FOLDER"),series:[],labels:[]}),[k,G]=Object(n.useState)(!1),[U,F]=Object(n.useState)({});async function W(e){let t=[];const n=[];G(!0);const s=Et.a.getLocalStorage("dashboardObj"),b=(new Date).getTime(),j=Object(d.a)({},U);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[l[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]:l.changed=!1),n.push(l),j[c.privates[e][t].fid]&&(j[c.privates[e][t].fid]=l)}break;case 3:t=[a("USER"),a("USAGE"),a("ACCESS_TYPE_REMOVE_TRASH"),a("CHANGE")];for(let e=0;e3e5?delete s[a]:l=!0);const o={changed:l,folderType:nn.B,name:"".concat(i[t]?i[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(G(!1),Et.a.setLocalStorage("dashboardObj",s),R({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===nn.C?a=!0:t[e].folderType===nn.F?n=!0:t[e].folderType===nn.E?s=!0:t[e].folderType===nn.B&&(b=!0)})),0!==e&&a)for(let r=0;r{b.current&&(b.current.style.height="".concat(j-141,"px")),window.addEventListener("resize",(()=>O(window.innerHeight)))}),[j]),Object(n.useEffect)((()=>()=>{bd&&clearInterval(bd)}),[]),Object(n.useEffect)((()=>{p||Et.a.setLocalStorage("dashboard_selected_object",U)}),[U]),Object(n.useEffect)((()=>{if(t(Gn()).then((()=>{t(Object(sn.u)()).then((()=>{bd||(bd=setInterval((()=>{t(Object(sn.u)())}),6e4)),t(Object(an.g)()).then((()=>{t(Bn())}))}))})),p){const e=Et.a.getLocalStorage("dashboard_selected_object");F(e),h(!1)}}),[t]),Object(n.useEffect)((()=>{const e=[];let t={},n=[];const s=c?[...c.organizes]:[],r={};if(s.splice(-1,1),Object.keys(l).length>0&&s.forEach(((a,s)=>{const c=Object.keys(a);t=l[a[c].fid],n=t.fid_path.split("/"),r[t.fid]={name:t.name,loc:a[c].size,capacity:a[c].capacity,children:r[t.fid]&&r[t.fid].children?r[t.fid].children:[]},n.length<=2?e.push(t.fid):r[n[n.length-2]]?r[n[n.length-2]]=Object(d.a)(Object(d.a)({},r[n[n.length-2]]),{},{loc:r[n[n.length-2]].loc-a[c].size,children:[...r[n[n.length-2]].children,{fid:t.fid,name:t.name,loc:a[c].size,children:[]}]}):r[n[n.length-2]]={name:l[n[n.length-2]].name,children:[{fid:t.fid,name:t.name,loc:a[c].size,children:[]}]}})),L(r),0===A)w(Object(d.a)(Object(d.a)({},I),{},{series:[],labels:[]})),P(Object(d.a)(Object(d.a)({},y),{},{series:[],labels:[]})),M(Object(d.a)(Object(d.a)({},D),{},{series:[],labels:[]}));else if(1===A){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 i=c.organizes[c.organizes.length-1].organize_names[s];r[a[i].fid].loc/c.types.organizes.size*100<=5?e+=r[a[i].fid].loc:(t.push(l[a[i].fid].disp_path),n.push(r[a[i].fid].loc))}})),t.push(a("ETC")),n.push(e)),P(Object(d.a)(Object(d.a)({},y),{},{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 r=c.privates[c.privates.length-1].private_names[s];a[r].percent<=5?e+=a[r].size:(t.push(i[r]?"".concat(i[r].name,"(").concat(r,")"):"-(".concat(r,")")),n.push(a[r].size))}})),t.push(a("ETC")),n.push(e)),w(Object(d.a)(Object(d.a)({},I),{},{series:n,labels:t}));let s=0;const o=[],b=[];c.shareds.length>1&&(c.shareds.forEach(((e,t)=>{if(c.shareds.length-1>t){const a=c.shareds[c.shareds.length-1].shared_names[t];e[a].percent<=10?s+=e[a].size:(o.push(a),b.push(e[a].size))}})),o.push(a("ETC")),b.push(s)),M(Object(d.a)(Object(d.a)({},D),{},{series:b,labels:o}))}c&&Object.keys(c.total).length>0&&(x({title:"".concat(a("TOTAL_CAPACITY")," [").concat(Et.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,A]),Object(n.useEffect)((()=>{W(m)}),[v]),Object(g.jsx)(ti.a,{classes:{content:"flex"},innerScroll:!0,sidebarInner:!0,header:Object(g.jsx)(rl,{}),content:Object(g.jsxs)(J.a,{className:Object(z.a)(u.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)(Bo.a,{className:u.btnGroup,color:"primary","aria-label":"outlined primary button group",children:[Object(g.jsx)(Pr.a,{className:Object(z.a)("default",0===A?"active":""),onClick:e=>C(0),children:a("ALL")}),Object(g.jsx)(Pr.a,{className:Object(z.a)("default",1===A?"active":""),onClick:e=>C(1),children:a("DETAIL")}),Object(g.jsx)(Pr.a,{className:Object(z.a)("default",2===A?"active":""),onClick:e=>C(2),children:"\u2605"})]})}),Object(g.jsx)(Od,{graphPage:A,dataObj:{totalDataObj:f,unitDataObj:N,privateDetailData:I,orgDetailData:y,sharedDetailData:D,selectedSizeInfo:U},deleteFolderInfo:e=>{""!==e&&(delete U[e.toString()],F(Object(d.a)({},U)))}})]}),Object(g.jsx)("div",{className:u.listTabHeader,children:Object(g.jsxs)(si.a,{value:m,onChange:(e,t)=>{return E(a=t),void W(a);var a},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:a("ORG_FOLDER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:a("SHARED_FOLDER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:a("USER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:a("COLLECTOR_FOLDER")})]})}),Object(g.jsx)("div",{className:u.listTabContent,children:Object(g.jsx)(nd,{tabValue:m,data:T,isLoading:k,selectedInfo:U,fnMakeUnitList:()=>W(m),fnSelectedInfo:e=>{Object.keys(U).includes(e.used.fid.toString())?(delete U[e.used.fid],F(Object(d.a)({},U))):F(Object(d.a)(Object(d.a)({},U),{},{[e.used.fid]:e}))}})})]})})};const Od=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)(qo,{obj:a.totalDataObj})}),Object(g.jsx)("div",{className:"unit-widget flex sm:w-1/3",children:Object(g.jsx)(Qo,{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)(rd,{obj:a.privateDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(rd,{obj:a.orgDetailData})}),Object(g.jsx)("div",{className:"widget flex sm:w-1/3",children:Object(g.jsx)(rd,{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)(od,{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 ud={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dashboard",component:jd}]};const pd=Object(H.a)((e=>({root:{background:"radial-gradient(".concat(Object(ir.darken)(e.palette.primary.main,.5)," 0%, ").concat(e.palette.primary.main," 80%)"),color:e.palette.primary.contrastText}})));var hd=function(e){let{history:t,location:a}=e;const s=pd(),c=Object(_.b)(),{t:r}=Object(gt.a)("docbase"),i=Object(_.c)((e=>{let{auth:t}=e;return t.initial})),{form:l,handleChange:o}=N({uuid:0});return Object(n.useEffect)((()=>{"/regProductEx"!==a.pathname&&i.product_registered&&(i.administrator_setup?t.push("/login"):t.push("/register"))}),[i]),Object(g.jsx)("div",{className:Object(z.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)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(wr.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)(B.a,{variant:"h6",className:"mt-10 mb-12 font-bold text-20 sm:text-24",color:"primary",children:r("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=l.uuid,new Promise(((e,t)=>{Object(Ya.d)(((a,s)=>{Ba.a.sendPost("/api/registerPreorderedProduct",{uuid:za.a.encryptAES(a,n,"utf8","hex"),token:s}).then((a=>{a.result?e(a):(Ba.a.printError(a),t(a))}))}))}))).then((e=>{if(e.result)"/regProductEx"===a.pathname?t.replace("/admin"):t.replace("/register");else{const e=r("REGISTER_ERROR_MESSAGE_1");c(Object(Y.d)({message:e,variant:"error"}))}})).catch((e=>{console.error(e)}))},children:[Object(g.jsx)(Gc.a,{className:"mb-16",label:"\uc120\uc8fc\ubb38 UUID",type:"text",name:"uuid",value:l.uuid,onChange:o,variant:"outlined",required:!0,fullWidth:!0}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"w-full mx-auto","aria-label":"Register",disabled:!(""!==l.uuid),type:"submit",children:r("REGISTER")})]})]})})})})})};var _d={settings:{layout:{config:{navbar:{display:!1},toolbar:{display:!1},footer:{display:!1},leftSidePanel:{display:!1},rightSidePanel:{display:!1}}}},routes:[{path:"/regProduct",component:hd},{path:"/regProductEx",component:hd}]};var md={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,1058))))}]};zo.f.register(zo.e,zo.l,zo.n,zo.k,zo.r,zo.s,zo.h,zo.i);const Ed=Object(H.a)((e=>({graphWrapper:{flex:"1 1 auto",marginTop:10,"&.mr":{marginRight:10},"&.short":{minWidth:520},"&.middle":{minWidth:780},"&>.content":{padding:"15px 15px"}}})));let gd,fd;function xd(e){const t=Object(_.b)(),{t:a}=Object(gt.a)("docbase"),{averageInfo:c}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system})),r=Ed(e),i=["","","","","","","","","","","","","","","","","","","",""],l=s.a.useRef(),[o,b]=s.a.useState(window.innerHeight),j={series:[{name:"web-api-call",data:[]}]},O={series:[{name:"connected",data:[]}]},u={series:[{name:"read",data:[]},{name:"write",data:[]}]},p={series:[{name:"create",data:[]},{name:"remove",data:[]}]},h={series:[{name:"create",data:[]},{name:"remove",data:[]}]},m={series:[{name:"rename",data:[]},{name:"update",data:[]},{name:"copy",data:[]}]},[E,f]=s.a.useState(u),[x,N]=s.a.useState(O),[S,T]=s.a.useState(j),[R,v]=s.a.useState(p),[L,A]=s.a.useState(h),[C,y]=s.a.useState(m);Object(n.useEffect)((()=>{l.current&&(l.current.style.height="".concat(o-141,"px")),window.addEventListener("resize",(()=>b(window.innerHeight)))}),[o]),Object(n.useEffect)((()=>(t(Object(sn.I)()).then((()=>{fd||(fd=setInterval((()=>{t(Object(sn.I)())}),3e3))})),()=>{fd&&(clearInterval(fd),fd=void 0),gd&&(clearInterval(gd),gd=void 0)})),[t]),Object(n.useEffect)((()=>{const e=[],t=[],n=[],s=[],r=[],i=[],l=[],o=[],b=[],_=[],g=[];for(let a=1;a<20;a++)e.push(E.series[0].data[a]?E.series[0].data[a]:0),t.push(E.series[1].data[a]?E.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),r.push(R.series[0].data[a]?R.series[0].data[a]:0),i.push(R.series[1].data[a]?R.series[1].data[a]:0),l.push(L.series[0].data[a]?L.series[0].data[a]:0),o.push(L.series[1].data[a]?L.series[1].data[a]:0),b.push(C.series[0].data[a]?C.series[0].data[a]:0),_.push(C.series[1].data[a]?C.series[1].data[a]:0),g.push(C.series[2].data[a]?C.series[2].data[a]:0);e.push(c.readBytes),t.push(c.writeBytes),n.push(c.average_webapi_calls),s.push(c.connected_clients),r.push(c.average_created_directories),i.push(c.average_removed_directories),l.push(c.average_created_files),o.push(c.average_removed_files),b.push(c.average_renamed_files),_.push(c.average_updated_files),g.push(c.average_copied_files),f(Object(d.a)(Object(d.a)({},u),{},{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)({},O),{},{series:[{name:a("AVERAGE_CONNECTED"),data:s}]})),v(Object(d.a)(Object(d.a)({},p),{},{series:[{name:a("AVERAGE_FOLDER_CREATE"),data:r},{name:a("AVERAGE_FOLDER_REMOVE"),data:i}]})),A(Object(d.a)(Object(d.a)({},h),{},{series:[{name:a("AVERAGE_FILE_CREATE"),data:l},{name:a("AVERAGE_FILE_REMOVE"),data:o}]})),y(Object(d.a)(Object(d.a)({},m),{},{series:[{name:a("AVERAGE_FILE_RENAME"),data:b},{name:a("AVERAGE_FILE_UPDATE"),data:_},{name:a("AVERAGE_FILE_COPY"),data:g}]}))}),[c]);const P={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!1},datalabels:{display:!1},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=>"".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:!1}}},elements:{line:{tension:.4,borderWidth:2,cubicInterpolationMode:"monotone"},point:{radius:.8,hitRadius:1.5,borderWidth:.3}}};return Object(g.jsx)(ti.a,{classes:{content:"flex"},sidebarInner:!0,header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(J.a,{className:Object(z.a)(r.contentWrapper,"w-full flex-grow overflow-x-auto"),ref:l,children:Object(g.jsxs)("div",{className:"w-full",children:[Object(g.jsx)(Ct.a,{className:r.graphWrapper,children:Object(g.jsx)("div",{className:"flex w-full content",style:{width:"100%",height:"350px"},children:Object(g.jsx)(Vo.c,{options:Object(d.a)(Object(d.a)({},P),{},{scales:{y:Object(d.a)(Object(d.a)({},P.scales.y),{},{display:!1})},plugins:Object(d.a)(Object(d.a)({},P.plugins),{},{tooltip:Object(d.a)(Object(d.a)({},P.plugins.tooltip),{},{callbacks:{label:e=>"".concat(e.dataset.label,": ").concat(Et.a.changeByteToString(e.raw||0))}})})}),data:{labels:i,datasets:[{label:E.series[0].name,data:E.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:E.series[1].name,data:E.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)(Ct.a,{className:Object(z.a)(r.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Vo.c,{options:P,data:{labels:i,datasets:[{label:R.series[0].name,data:R.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:R.series[1].name,data:R.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsx)(Ct.a,{className:Object(z.a)(r.graphWrapper,"mr","short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Vo.c,{options:P,data:{labels:i,datasets:[{label:L.series[0].name,data:L.series[0].data,borderColor:"rgb(1, 143, 251)",backgroundColor:"rgba(1, 143, 251, 0.5)"},{label:L.series[1].name,data:L.series[1].data,borderColor:"rgb(66, 227, 150)",backgroundColor:"rgba(66, 227, 150, 0.5)"}]}})})}),Object(g.jsx)(Ct.a,{className:Object(z.a)(r.graphWrapper,"short"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Vo.c,{options:P,data:{labels:i,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.jsxs)("div",{className:"flex flex-wrap",children:[Object(g.jsx)(Ct.a,{className:Object(z.a)(r.graphWrapper,"mr","middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Vo.c,{options:P,data:{labels:i,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)(Ct.a,{className:Object(z.a)(r.graphWrapper,"middle"),children:Object(g.jsx)("div",{className:"flex w-full content",children:Object(g.jsx)(Vo.c,{options:Object(d.a)(Object(d.a)({},P),{},{plugins:Object(d.a)(Object(d.a)({},P.plugins),{},{tooltip:Object(d.a)(Object(d.a)({},P.plugins.tooltip),{},{callbacks:{label:e=>e.raw||0}})})}),data:{labels:i,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 Nd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/logs",component:s.a.memo(xd)}]};var Sd={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(_.b)(),r=s.a.useRef(),[i,l]=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)=>{Ba.a.sendPost("/api/getContentSiteInfo",{token:s,name:t}).then((t=>{t.result?e(Object(d.a)(Object(d.a)({},t),{},{id:za.a.decryptAES(n,t.id,"hex","utf8"),password:za.a.decryptAES(n,t.password,"hex","utf8")})):(Ba.a.printError(t),a(t))}))}))}))).then((e=>{l({id:e.id,password:e.password,formID:e.form_id,formPasswd:e.form_password,url:e.login_url})}))}),[c]),Object(n.useEffect)((()=>{""!==i.url&&async function(){r.current.action=i.url,r.current[i.formID].value=i.id,r.current[i.formPasswd].value=i.password,r.current.submit()}()}),[i]),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:r,children:[Object(g.jsx)(Gc.a,{className:"mb-16",type:"text",name:i.formID,value:i.id,onChange:e=>l(Object(d.a)(Object(d.a)({},i),{},{id:e.target.value})),variant:"outlined",required:!0,fullWidth:!0}),Object(g.jsx)(Gc.a,{className:"mb-16",type:"text",name:i.formPasswd,value:i.password,onChange:e=>l(Object(d.a)(Object(d.a)({},i),{},{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"})})]})})})]})]})})}}]},Td=a(1031),Rd="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=",vd="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 Ld=Object(H.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 Ad,Cd={};var yd=function(){const e=Ld(),t=Object(_.b)(),a=s.a.useRef(),{t:n}=Object(gt.a)("docbase"),[c,r]=s.a.useState(window.innerHeight),{sysConfigure:i}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[l,o]=s.a.useState(i),[b,j]=s.a.useState([]),[O,u]=s.a.useState([]),[p,h]=s.a.useState([]),[m,E]=s.a.useState([]),[f,x]=s.a.useState(0),[N,S]=s.a.useState(!0),[T,R]=s.a.useState(i.collect_interval_transfer/1e3),[v,L]=s.a.useState(""),[A,C]=s.a.useState(""),[y,P]=s.a.useState(""),[I,w]=s.a.useState(""),[D,M]=s.a.useState(""),[k,F]=s.a.useState(""),[W,H]=s.a.useState(""),[B,V]=s.a.useState("");function K(e){e.target.value!==String(l[e.target.name])&&(o(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:"true"===e.target.value})),Q(e.target.name,e.target.value))}function X(e){const a=[];i.collect_config.forEach((t=>{e.target_type===t.target_type&&e.value===t.value||a.push(t)})),t(dn({setConf:{collect_config:a}})).then((()=>{t(on())}))}function q(e,a,s,c){if(a.trim().length>0){if(e===nn.x&&i.collect_inclusive_pattern_support&&0===s.trim().length)return t(Object(Y.d)({message:n("FOLDER_ERROR_MESSAGE_1")})),!1;t(dn({setConf:{collect_config:[...i.collect_config,{target_type:e,value:a,name:s,target_client:e===nn.u||e===nn.w?nn.r:c}]}})).then((()=>{L(""),C(""),P(""),w(""),M(""),F(""),H(""),V(""),t(on())}))}return!0}function Z(e){o(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:!l[e.target.name]})),Q(e.target.name,!l[e.target.name])}function Q(e,a){Cd[e]=a,clearTimeout(Ad),Ad=setTimeout((()=>{t(dn({setConf:Cd})).then((()=>{Cd={},t(on())}))}),500)}return s.a.useEffect((()=>{a.current&&(a.current.style.height="".concat(c-140,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[c]),s.a.useEffect((()=>{Number(i.collect_transfer_size)>=1073741824?(S(!1),x(Math.floor(Number(i.collect_transfer_size)/1024/1024/1024))):(S(!0),x(Math.floor(Number(i.collect_transfer_size)/1024/1024)));const e=[],t=[],a=[],n=[];i.collect_config.forEach((s=>{s.target_type===nn.v?e.push(s):s.target_type===nn.w?t.push(s):s.target_type===nn.x?a.push(s):s.target_type===nn.u&&n.push(s)})),j(a),u(e),h(t),E(n),o(i),R(i.collect_interval_transfer/1e3)}),[i]),s.a.useEffect((()=>{t(on())}),[t]),Object(g.jsx)("div",{className:Object(z.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsx)(J.a,{className:Object(z.a)(e.contentWrapper,"overflow-x-auto"),ref:a,children:Object(g.jsxs)(Ct.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)(No,{name:"collector_support",checked:l.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)(No,{name:"collect_sync_remove_support",checked:l.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)(rc.a,{type:"number",name:"collect_transfer_size",disableUnderline:!0,className:e.customInput,value:f,onChange:e=>x(Number(e.target.value)),onBlur:e=>{e.preventDefault();const a=N?f:1024*f;return a<0?(t(Object(Y.c)({message:n("NUMBER_ERROR_MESSAGE")})),Number(i.collect_transfer_size)>=1073741824?(S(!1),x(Math.floor(Number(i.collect_transfer_size)/1024/1024/1024))):(S(!0),x(Math.floor(Number(i.collect_transfer_size)/1024/1024))),!1):(i.collect_transfer_size!==String(1024*a*1024)&&Q("collect_transfer_size",1024*a*1024),!0)},endAdornment:Object(g.jsx)(Di.a,{position:"end",className:"",children:Object(g.jsxs)(oe.a,{id:"folder_capacity",disableUnderline:!0,variant:"standard",className:Object(z.a)(e.selectTextAlignRight,""),value:N,onChange:e=>{x(N?f<1024?0:Math.floor(f/1024):1024*f),S(!N)},children:[Object(g.jsx)(re.a,{value:"false",children:"Gbyte"}),Object(g.jsx)(re.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)(U.a,{className:Object(z.a)(e.customIconBtn,"left"),onClick:e=>{const t=Number(T);t>0&&(R(t-1),o(Object(d.a)(Object(d.a)({},l),{},{collect_interval_transfer:1e3*(t-1)})),Q("collect_interval_transfer",1e3*(t-1)))},children:Object(g.jsx)(G.a,{children:"remove"})}),Object(g.jsx)(rc.a,{type:"text",name:"collect_interval_transfer",className:e.customInputInterval,disableUnderline:!0,value:T,onChange:e=>{Et.a.isNumber(e.target.value)&&(R(Number(e.target.value)),o(Object(d.a)(Object(d.a)({},l),{},{[e.target.name]:1e3*Number(e.target.value)})))},onBlur:e=>{Et.a.isNumber(l.collect_interval_transfer)&&Q(e.target.name,l.collect_interval_transfer)},endAdornment:Object(g.jsx)(Di.a,{position:"end",children:n("SEC")})}),Object(g.jsx)(U.a,{className:Object(z.a)(e.customIconBtn,"right"),onClick:e=>{const t=Number(T);R(t+1),o(Object(d.a)(Object(d.a)({},l),{},{collect_interval_transfer:1e3*(t+1)})),Q("collect_interval_transfer",1e3*(t+1))},children:Object(g.jsx)(G.a,{children:"add"})})]}),Object(g.jsx)("span",{className:Object(z.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)(No,{name:"collect_drive_fixed",checked:l.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)(No,{name:"collect_drive_removable",checked:l.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)(No,{name:"collect_drive_cdrom",checked:l.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)(No,{name:"collect_drive_ramdisk",checked:l.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)(oe.a,{variant:"outlined",className:Object(z.a)(e.select,""),name:"collect_inclusive_pattern_support",value:String(l.collect_inclusive_pattern_support),onChange:e=>{K(e)},children:[Object(g.jsx)(re.a,{value:"true",children:n("INCLUSIVE")}),Object(g.jsx)(re.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)(oe.a,{variant:"outlined",className:Object(z.a)(e.select,""),name:"collect_exclusive_extension_support",value:String(l.collect_exclusive_extension_support),onChange:e=>{K(e)},children:[Object(g.jsx)(re.a,{value:"true",children:n("EXCLUSIVE_EXT")}),Object(g.jsx)(re.a,{value:"false",children:n("INCLUSIVE_EXT")})]})}),Object(g.jsx)("span",{className:Object(z.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)(No,{name:"collect_drive_remote",checked:l.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)(No,{name:"collect_drive_fixed_hotplug",checked:l.collect_drive_fixed_hotplug,onChange:e=>Z(e)})})]})]})]}),Object(g.jsxs)("div",{className:Object(z.a)(e.pathWrapper,"flex"),children:[l.collect_inclusive_pattern_support?Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.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)(Gc.a,{className:"",type:"text",name:"collect_inclusive_value",value:v,FormHelperTextProps:n("COLLECT_INCLUSIVE"),variant:"outlined",disableUnderline:!0,onChange:e=>L(e.target.value),onKeyDown:e=>{13===e.keyCode&&v.length>0&&A.length>0&&q(nn.x,e.target.value,A,nn.t)}}),Object(g.jsx)(Gc.a,{className:"",type:"text",name:"collect_inclusive_name",value:A,FormHelperTextProps:n("COLLECT_INCLUSIVE_NAME"),variant:"outlined",disableUnderline:!0,onChange:e=>C(e.target.value),onKeyDown:e=>{13===e.keyCode&&v.length>0&&A.length>0&&q(nn.x,v,e.target.value,nn.t)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>q(nn.x,v,A,nn.t),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:b.map(((t,a)=>t.target_client===nn.t?Object(g.jsxs)(_t.a,{disablePadding:!0,children:[Object(g.jsx)(ic.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:vd,alt:"file-icon"})}),Object(g.jsx)(mt.a,{id:"target_inclusive_path_win_".concat(a),primary:"".concat(t.value," \u27f9 ").concat(t.name)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>X(t),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}):Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.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)(Gc.a,{className:"",type:"text",name:"collect_ignore_value",value:D,FormHelperTextProps:n("COLLECT_IGNORE"),variant:"outlined",disableUnderline:!0,onChange:e=>M(e.target.value),onKeyDown:e=>{13===e.keyCode&&q(nn.v,e.target.value,"",nn.t)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>q(nn.v,D,"",nn.t),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:O.map(((t,a)=>t.target_client===nn.t?Object(g.jsxs)(_t.a,{disablePadding:!0,children:[Object(g.jsx)(ic.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:vd,alt:"file-icon"})}),Object(g.jsx)(mt.a,{id:"target_ignore_win_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>X(t),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}),2===l.menu_support_type?Object(g.jsx)(g.Fragment,{}):l.collect_inclusive_pattern_support?Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.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)(Gc.a,{className:"",type:"text",name:"collect_inclusive_value",value:y,FormHelperTextProps:n("COLLECT_INCLUSIVE"),variant:"outlined",disableUnderline:!0,onChange:e=>P(e.target.value),onKeyDown:e=>{13===e.keyCode&&y.length>0&&I.length>0&&q(nn.x,e.target.value,I,nn.s)}}),Object(g.jsx)(Gc.a,{className:"",type:"text",name:"collect_inclusive_name",value:I,FormHelperTextProps:n("COLLECT_INCLUSIVE_NAME"),variant:"outlined",disableUnderline:!0,onChange:e=>w(e.target.value),onKeyDown:e=>{13===e.keyCode&&y.length>0&&I.length>0&&q(nn.x,y,e.target.value,nn.s)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>q(nn.x,y,I,nn.s),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:b.map(((t,a)=>t.target_client===nn.s?Object(g.jsxs)(_t.a,{disablePadding:!0,children:[Object(g.jsx)(ic.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:Rd,alt:"file-icon"})}),Object(g.jsx)(mt.a,{id:"target_inclusive_path_mac_".concat(a),primary:"".concat(t.value," \u27f9 ").concat(t.name)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>X(t),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}):Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.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)(Gc.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&&q(nn.v,e.target.value,"",nn.s)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>q(nn.v,k,"",nn.s),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:O.map(((t,a)=>t.target_client===nn.s?Object(g.jsxs)(_t.a,{secondaryAction:Object(g.jsx)(U.a,{className:e.fileIcon,onClick:e=>X(t),children:Object(g.jsx)("img",{className:e.fileIcon,src:Rd,alt:"file-icon"})}),disablePadding:!0,children:[Object(g.jsx)(ic.a,{children:Object(g.jsx)("img",{className:e.fileIcon,src:Rd,alt:"file-icon"})}),Object(g.jsx)(mt.a,{id:"target_ignore_path_mac_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",color:"red",onClick:e=>X(t),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},a):Object(g.jsx)(g.Fragment,{})))})})]}),l.collect_exclusive_extension_support?Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.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)(Gc.a,{className:"",type:"text",name:"collect_exts_value",value:B,FormHelperTextProps:n("COLLECT_EXCLUSIVE_EXT"),variant:"outlined",disableUnderline:!0,onChange:e=>V(e.target.value),onKeyDown:e=>{13===e.keyCode&&q(nn.u,e.target.value,"",nn.r)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>q(nn.u,B,"",nn.r),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:m.map(((e,t)=>Object(g.jsxs)(_t.a,{disablePadding:!0,children:[Object(g.jsx)(mt.a,{id:"target_excluext_".concat(t),primary:"".concat(e.value)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",onClick:t=>X(e),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},t)))})})]}):Object(g.jsxs)("div",{className:Object(z.a)(e.targetWrapperList,2===l.menu_support_type?"tta_support":""),children:[Object(g.jsx)("div",{className:e.targetTitle,children:l.collect_exclusive_extension_support?n("RANSOMWARE_EXT"):n("COLLECT_EXT")}),Object(g.jsxs)("div",{className:e.targetInputWrapper,children:[Object(g.jsx)(Gc.a,{className:"",type:"text",name:"collect_exts_value",value:W,FormHelperTextProps:n(l.collect_exclusive_extension_support?"RANSOMWARE_EXT":"COLLECT_EXT"),variant:"outlined",disableUnderline:!0,onChange:e=>H(e.target.value),onKeyDown:e=>{13===e.keyCode&&q(nn.w,e.target.value,"",nn.r)}}),Object(g.jsx)(Pr.a,{variant:"contained",color:"primary",className:"","aria-label":"ignore-add",size:"small",type:"button",style:{"margin-left":"10px"},onClick:e=>q(nn.w,W,"",nn.r),children:n("ADD")})]}),Object(g.jsx)("div",{className:e.targetList,children:Object(g.jsx)(ht.a,{children:p.map(((t,a)=>Object(g.jsxs)(_t.a,{className:"ext",secondaryAction:Object(g.jsx)(U.a,{className:e.fileIcon,onClick:e=>X(t),children:Object(g.jsx)("img",{className:e.fileIcon,src:Rd,alt:"file-icon"})}),disablePadding:!0,children:[Object(g.jsx)(mt.a,{id:"target_ignore_path_mac_".concat(a),primary:"".concat(t.value)}),Object(g.jsx)(Td.a,{children:Object(g.jsx)(U.a,{edge:"end","aria-label":"remove",onClick:e=>X(t),children:Object(g.jsx)(G.a,{children:"remove_circle"})})})]},a)))})})]})]})]})})})};var Pd=function(){return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(yd,{})})},Id=a(1032);const wd=Object(H.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}},parentList:{padding:0,"& .icon":{minWidth:16,paddingLeft:0,paddingRight:10},"& .MuiListItem-root":{display:"flex",alignItems:"center",height:45,"& .MuiTypography-body1":{fontSize:13,fontFamily:"S-CoreDream-Regu"}},"& .MuiListItem-button:hover":{background:"rgb(0 0 0 / 40%)"}},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"}},userRow:{color:"#000000",paddingLeft:40,borderBottom:"1px dotted #e0e0e0","& .MuiCheckbox-root":{color:"#353b48"},"& .MuiCheckbox-colorSecondary.Mui-checked":{color:"#353b48"},"& .MuiCheckbox-colorSecondary>.MuiIconButton-label":{width:16,height:16,background:"initial"},"&:last-child":{borderBottom:0}},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}})));function Dd(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Md(e){const t=wd(),{t:a}=Object(gt.a)("docbase"),n=s.a.useRef(),[c,r]=s.a.useState(""),[i,l]=s.a.useState(""),[o,b]=s.a.useState(""),[j,O]=s.a.useState(""),[u,p]=s.a.useState(window.innerHeight),[h,_]=s.a.useState([]),[m,E]=s.a.useState([]),[f,x]=s.a.useState({orderList:[],orgObj:{}}),[N,S]=s.a.useState({orderList:[],orgObj:{}});window.addEventListener("resize",(()=>p(window.innerHeight))),s.a.useEffect((()=>{const t=[],a=[],n={},s={};e.leftList.forEach((e=>{e.isOrg&&(t.push(e.fid),n[e.fid]={open:!0})})),e.rightList.forEach((e=>{e.isOrg&&(a.push(e.fid),s[e.fid]={open:!0})})),e.leftObj.none&&(n.none={open:!0}),e.rightObj.none&&(s.none={open:!0}),x({orderList:t,orgObj:n}),S({orderList:a,orgObj:s})}),[e.leftObj,e.rightObj]);const T=Dd(h,e.leftList.map((e=>e.user_id))),R=Dd(h,e.rightList.map((e=>e.user_id))),v=()=>{_([]),E([])},L=[],A=[],C={},y={},P=(e,a)=>{const n=a?e.leftList:e.rightList;return Object(g.jsx)(g.Fragment,{children:n.map(((e,s)=>{if(a){if(""!==c){if(-1===e.user_id.indexOf(c)&&-1===e.name.indexOf(c)||C[e.user_id]){const t=L.indexOf(e.fid);if(-1===t)return e.isOrg&&L.splice(t,1),""}C[e.user_id]=!0,e.isOrg&&L.push(e.fid)}}else if(""!==i){if(-1===e.user_id.indexOf(i)&&-1===e.name.indexOf(i)||y[e.user_id]){const t=A.indexOf(e.fid);if(-1===t)return e.isOrg&&A.splice(t,1),""}y[e.user_id]=!0,e.isOrg&&A.push(e.fid)}const r="transfer-list-item-".concat(s,"-label");return e.isOrg?Object(g.jsxs)(_t.a,{className:Object(z.a)(t.orgRow),role:"listitem",button:!0,onClick:t=>{const a=[...h];if(e.isOrg){const t=m.findIndex((t=>t.fid===e.fid&&t.position===e.position));if(-1===t)E([...m,{fid:e.fid,position:e.position}]),n.forEach((t=>{e.fid===t.fid&&""!==t.user_id&&-1===h.indexOf(t.user_id)&&a.push(t.user_id)})),_(a);else{let s;n.forEach((t=>{e.fid===t.fid&&""!==t.user_id&&(s=a.indexOf(t.user_id),-1!==s&&a.splice(s,1))})),_(a);const c=[...m];c.splice(t,1),E(c)}}else{const t=h.indexOf(e.user_id);-1===t?_([...h,e.user_id]):(a.splice(t,1),_(a))}},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==m.findIndex((t=>t.fid===e.fid&&t.position===e.position)),tabIndex:-1,disableRipple:!0,onClick:t=>{t.stopPropagation();const a=[...h];if(e.isOrg){const t=m.findIndex((t=>t.fid===e.fid&&t.position===e.position));if(-1===t)E([...m,{fid:e.fid,position:e.position}]),n.forEach((t=>{e.fid===t.fid&&""!==t.user_id&&-1===h.indexOf(t.user_id)&&a.push(t.user_id)})),_(a);else{let s;n.forEach((t=>{e.fid===t.fid&&""!==t.user_id&&(s=a.indexOf(t.user_id),-1!==s&&a.splice(s,1))})),_(a);const c=[...m];c.splice(t,1),E(c)}}else{const t=h.indexOf(e.user_id);-1===t?_([...h,e.user_id]):(a.splice(t,1),_(a))}}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"org-folder",fill:"#ffffff"})}),Object(g.jsx)(mt.a,{id:r,primary:"".concat(e.name.substring(e.name.substring(1).indexOf("/")+1))})]}):Object(g.jsxs)(_t.a,{className:Object(z.a)(t.userRow),role:"listitem",button:!0,onClick:t=>{const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==h.indexOf(e.user_id),tabIndex:-1,disableRipple:!0,onClick:t=>{const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"person",fill:"#333d4b"})}),Object(g.jsx)(mt.a,{id:r,primary:"".concat(e.name)})]})}))})},I=a=>{const n=a?f.orderList:N.orderList,s=a?f.orgObj:N.orgObj,c=a?e.leftObj:e.rightObj;let r=Object(g.jsx)(g.Fragment,{}),i=Object(g.jsx)(g.Fragment,{});return n.length>0&&(r=n.map((e=>c[e]?Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(_t.a,{className:Object(z.a)(t.orgRow),role:"listitem",button:!0,onClick:t=>{a?x(Object(d.a)(Object(d.a)({},f),{},{orgObj:Object(d.a)(Object(d.a)({},f.orgObj),{},{[e]:{open:!f.orgObj[e].open}})})):S(Object(d.a)(Object(d.a)({},N),{},{orgObj:Object(d.a)(Object(d.a)({},N.orgObj),{},{[e]:{open:!N.orgObj[e].open}})}))},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==m.findIndex((t=>t.fid===e&&t.position===c[e][0].position)),tabIndex:-1,disableRipple:!0,onClick:t=>{t.stopPropagation();const a=[...h],n=m.findIndex((t=>t.fid===e&&t.position===c[e][0].position));if(-1===n)E([...m,{fid:e,position:c[e][0].position}]),c[e].forEach(((t,n)=>{n>0&&e===t.fid&&""!==t.user_id&&-1===h.indexOf(t.user_id)&&a.push(t.user_id)})),_(a);else{let t;c[e].forEach(((n,s)=>{s>0&&e===n.fid&&""!==n.user_id&&(t=a.indexOf(n.user_id),-1!==t&&a.splice(t,1))})),_(a);const s=[...m];s.splice(n,1),E(s)}}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"org-folder",fill:"#ffffff"})}),Object(g.jsx)(mt.a,{id:c[e][0].fid,primary:"".concat(c[e][0].name.substring(c[e][0].name.substring(1).indexOf("/")+1))})]}),Object(g.jsx)(Qt.a,{in:s[e].open,timeout:"auto",unmountOnExit:!0,children:Object(g.jsx)(ht.a,{component:"div",disablePadding:!0,children:c[e].map(((e,a)=>0===a?Object(g.jsx)(g.Fragment,{}):Object(g.jsxs)(_t.a,{className:Object(z.a)(t.userRow),role:"listitem",button:!0,onClick:t=>{const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==h.indexOf(e.user_id),tabIndex:-1,disableRipple:!0,onClick:t=>{const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"person",fill:"#333d4b"})}),Object(g.jsx)(mt.a,{id:e.fid,primary:"".concat(e.name)})]})))})})]}):Object(g.jsx)(g.Fragment,{})))),void 0!==s.none&&c.none.length>0&&(i=Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(_t.a,{className:Object(z.a)(t.orgRow),role:"listitem",button:!0,onClick:e=>{a?x(Object(d.a)(Object(d.a)({},f),{},{orgObj:Object(d.a)(Object(d.a)({},f.orgObj),{},{none:{open:!f.orgObj.none.open}})})):S(Object(d.a)(Object(d.a)({},N),{},{orgObj:Object(d.a)(Object(d.a)({},N.orgObj),{},{none:{open:!N.orgObj.none.open}})}))},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==m.findIndex((e=>"none"===e.fid&&e.position===(a?"left":"right"))),tabIndex:-1,disableRipple:!0,onClick:e=>{e.stopPropagation();const t=[...h],n=m.findIndex((e=>"none"===e.fid&&e.position===a?"left":"right"));if(-1===n)E([...m,{fid:"none",position:a?"left":"right"}]),c.none.forEach((e=>{""!==e.user_id&&-1===h.indexOf(e.user_id)&&t.push(e.user_id)})),_(t);else{let e;c.none.forEach((a=>{""!==a.user_id&&(e=t.indexOf(a.user_id),-1!==e&&t.splice(e,1))})),_(t);const a=[...m];a.splice(n,1),E(a)}}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"org-folder",fill:"#ffffff"})}),Object(g.jsx)(mt.a,{id:"none",primary:"\ubb34\uc18c\uc18d"})]}),Object(g.jsx)(Qt.a,{in:s.none.open,timeout:"auto",unmountOnExit:!0,children:Object(g.jsx)(ht.a,{component:"div",disablePadding:!0,children:c.none.map(((e,a)=>Object(g.jsxs)(_t.a,{className:Object(z.a)(t.userRow),role:"listitem",button:!0,onClick:t=>{const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))},children:[Object(g.jsx)(yr.a,{edge:"start",checked:-1!==h.indexOf(e.user_id),tabIndex:-1,disableRipple:!0,onClick:t=>{t.stopPropagation();const a=[...h],n=h.indexOf(e.user_id);-1===n?_([...h,e.user_id]):(a.splice(n,1),_(a))}}),Object(g.jsx)(ic.a,{className:"icon",children:Object(g.jsx)(la.a,{className:"small",type:"person",fill:"#333d4b"})}),Object(g.jsx)(mt.a,{id:e.fid,primary:"".concat(e.isOrg?e.name.substring(e.name.substring(1).indexOf("/")+1):e.name)})]})))})})]})),Object(g.jsxs)(g.Fragment,{children:[r,i]})},w=(s,d)=>{let p="";switch(e.tabType){case 0:p=a(d?"COLLECT_USED":"COLLECT_NOT_USE");break;case 1:p=a(d?"COLLECT_USED_REMOVE_SOURCE":"COLLECT_NOT_USED_REMOVE_SOURCE");break;case 2:p=a(d?"COLLECT_USED_FULL_SCAN":"COLLECT_NOT_USED_FULL_SCAN");break;default:p=""}return Object(g.jsxs)(Ct.a,{className:t.paper,children:[Object(g.jsx)("div",{className:"title",children:p}),Object(g.jsx)(St.a,{}),Object(g.jsxs)("div",{className:"insert-wrapper",children:[Object(g.jsx)("div",{className:"input",children:Object(g.jsx)(Gc.a,{type:"text",placeholder:a("SEARCH_KEYWORD"),name:"search-val",value:d?o:j,variant:"outlined",size:"small",onChange:e=>d?b(e.target.value):O(e.target.value),fullWidth:!0})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"ignore-add",size:"small",type:"button",onClick:e=>{d?r(o):l(j)},children:a("SEARCH")})})]}),Object(g.jsx)(ht.a,{className:t.parentList,component:"div",role:"list",ref:n,style:{height:"".concat(u-318,"px"),"overflow-y":"auto"},children:d&&c.trim().length>0||!d&&i.trim().length>0?P(s,d):I(d)})]})};return Object(g.jsxs)("div",{className:t.root,children:[Object(g.jsx)("div",{className:t.listWrapper,children:w(e,!0)}),Object(g.jsx)("div",{className:t.listButtonWrapper,children:Object(g.jsxs)(Id.a,{container:!0,direction:"column",alignItems:"center",children:[Object(g.jsx)(st.a,{title:a("COLLECT_ALL_UNAPPLIED"),arrow:!0,placement:"top",children:Object(g.jsx)(Pr.a,{variant:"outlined",size:"small",className:t.button,onClick:()=>{e.fnDoCollectPolicy(e.leftList.map((e=>e.user_id)),!1),v()},disabled:-1===e.leftList.findIndex((e=>!e.isOrg)),"aria-label":"move all right",children:"\u226b"})}),Object(g.jsx)(st.a,{title:a("UNAPPLIED"),arrow:!0,placement:"left",children:Object(g.jsx)(Pr.a,{variant:"outlined",size:"small",className:t.button,onClick:t=>{e.fnDoCollectPolicy(T,!1),v()},disabled:0===T.length,"aria-label":"move selected right",children:">"})}),Object(g.jsx)(st.a,{title:a("APPLY"),arrow:!0,placement:"right",children:Object(g.jsx)(Pr.a,{variant:"outlined",size:"small",className:t.button,onClick:t=>{e.fnDoCollectPolicy(R,!0),v()},disabled:0===R.length,"aria-label":"move selected left",children:"<"})}),Object(g.jsx)(st.a,{title:a("COLLECT_ALL_APPLY"),arrow:!0,placement:"bottom",children:Object(g.jsx)(Pr.a,{variant:"outlined",size:"small",className:t.button,onClick:t=>{e.fnDoCollectPolicy(e.rightList.map((e=>e.user_id)),!0),v()},disabled:-1===e.rightList.findIndex((e=>!e.isOrg)),"aria-label":"move all left",children:"\u226a"})})]})}),Object(g.jsx)("div",{className:t.listWrapper,children:w(e,!1)})]})}const kd=Object(H.a)((e=>({tr:{"& .MuiButton-root":{width:80},"& .datetime":{width:125}},contentWrapper:{height:"".concat(window.innerHeight-274,"px")}})));function Gd(e){const t=kd(),{t:a}=Object(gt.a)("docbase"),n=(s.a.useRef(),s.a.useRef()),[c,r]=s.a.useState(window.innerHeight),[i,l]=s.a.useState({id:"id",direction:"asc"}),[o,d]=s.a.useState([]),[b,O]=s.a.useState("");s.a.useEffect((()=>{n.current&&(n.current.style.height="".concat(c-274,"px")),window.addEventListener("resize",(()=>r(window.innerHeight)))}),[c]),s.a.useEffect((()=>{u(b)}),[e.userPolicyInfos,b]);const u=s.a.useCallback(Object(ai.debounce)((t=>{d(p.filterUsersByString(e.userPolicyInfos,t)),console.log(t)}),500),[e.userPolicyInfos]);return Object(g.jsxs)(Ct.a,{className:Object(z.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)(rc.a,{placeholder:a("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:b,inputProps:{"aria-label":"Search"},onChange:e=>O(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)(st.a,{title:a("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:n,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{className:t.tr,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:!0,children:Object(g.jsx)(Hi.a,{active:!0,direction:i.direction,onClick:e=>{let t="desc";"desc"===i.direction&&(t="asc"),l({direction:t,id:"id"})},children:a("USER")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_STATUS")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_RESTART")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PRESCANNED_FOLDERS")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FOLDERS")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_PENDING_FILES")}),Object(g.jsx)(Wi.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_REQUEST_AT")}),Object(g.jsx)(Wi.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_PRESCAN_FINISHED_AT")}),Object(g.jsx)(Wi.a,{className:"datetime",align:"center",padding:"default",sortDirection:!1,children:a("COLLECT_FULL_SCAN_FINISHED_AT")})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(o,[e=>(console.log(e),"id"===i.id?e.name:e[i.id])],[i.direction]).map(((n,s)=>{let c="-",r=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&&Et.a.getDateStringToDate(n.full_scan_requested_at).getTime()>Et.a.getDateStringToDate(n.full_scan_finished_at).getTime()?c=a("\uc694\uccad\uc911"):(c=a("COLLECT_FULL_SCAN_STATUS_FINISHED"),r=Object(g.jsx)(Pr.a,{className:"default",variant:"contained",color:"",onClick:t=>{e.fnRestartFullScan(n)},children:a("COLLECT_FULL_SCAN_RESTART")}))),Object(g.jsxs)(Fi.a,{className:t.tr,hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",children:"".concat(n.name,"(").concat(n.user_id,")")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan?c:"-"}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:r}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.prescanned_folders):"-"}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_folders):"-"}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=1?"".concat(n.pending_files):"-"}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:Et.a.getDateStringToLocalDate(n.full_scan_requested_at)}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?Et.a.getDateStringToLocalDate(n.full_prescan_finished_at):"-"}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",children:n.full_scan_status>=2?Et.a.getDateStringToLocalDate(n.full_scan_finished_at):"-"})]},n.user_id)}))})]})})]})}const Ud=["children","value","index"],Fd=Object(H.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 Wd(e){const{children:t,value:a,index:n}=e,s=Object(Dc.a)(e,Ud);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)(ll.a,{p:2,className:"h-full p-0",style:{"margin-top":"-4px"},children:t})}))}function Hd(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const Bd="mobile"===sessionStorage.getItem("device");var zd=function(){const e=Fd(),t=Object(_.b)(),a=s.a.useRef(),{t:n}=Object(gt.a)("docbase"),{usersObj:c}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgFolders:r}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[i,l]=s.a.useState(0),[o,b]=s.a.useState([]),[j,O]=s.a.useState([]),[u,p]=s.a.useState({}),[h,m]=s.a.useState({}),[E,f]=s.a.useState(!0),[x,N]=s.a.useState({}),[S,T]=s.a.useState({}),[R,v]=s.a.useState([]);s.a.useEffect((()=>{t(Object(an.g)()).then((()=>{t(Gn()).then((()=>{Rn().then((e=>{N(e),Sn().then((e=>{T(e.obj),v(e.list)}))}))}))}))}),[t]),s.a.useEffect((()=>{Object.keys(S).length>0&&function(){f(!0);const e=Object(d.a)({},c);let t,a;const n=[],s=[],l={},o={};let j={},u=!1,h=!1;const _=[...r].sort(((e,t)=>e.disp_path>t.disp_path?1:e.disp_path===t.disp_path?0:-1));for(let c=0;c<_.length;c++)if(t=x[_[c].fid],t&&t.length>0)for(let r=0;r0){l.none=[],o.none=[];for(let t=0;t0===i?e.enabled:2===i?e.full_scan:e.remove_source,A=(e,t)=>t?{fid:e.fid,name:e.disp_path,user_id:"",isOrg:!0,position:"left"}:{fid:e.fid,name:e.disp_path,user_id:"",isOrg:!0,position:"right"},C=async(e,a)=>{const s=[];for(let t=0;t{t(Object(Y.d)({message:n("COLLECT_MESSAGE_1")})),Sn().then((e=>{T(e.obj),v(e.list)}))}))};return E?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(e.root,"w-full p-0 h-full"),children:Object(g.jsx)(J.a,{className:Object(z.a)(e.contentWrapper,"w-full flex-grow overflow-x-auto"),ref:a,children:Object(g.jsxs)(Ct.a,{className:e.mainPaper,children:[Object(g.jsx)(Ke.a,{position:"static",className:e.tabsBar,children:Object(g.jsxs)(si.a,{value:i,indicatorColor:"",onChange:(e,t)=>{i!==t&&(f(!0),l(t))},children:[Object(g.jsx)(ci.a,Object(d.a)({label:n("COLLECT_USE")},Hd(0))),Object(g.jsx)(ci.a,Object(d.a)({label:n("COLLECT_USE_REMOVE_SOURCE")},Hd(1))),Object(g.jsx)(ci.a,Object(d.a)({label:n("COLLECT_USE_FULL_SCAN")},Hd(2))),Object(g.jsx)(ci.a,Object(d.a)({label:n("COLLECT_USE_FULL_SCAN_MANAGEMENT")},Hd(3)))]})}),Object(g.jsx)(Wd,{className:Bd?"":e.tabPanel,value:i,index:0,children:Object(g.jsx)(Md,{tabType:i,leftList:o,rightList:j,leftObj:u,rightObj:h,fnDoCollectPolicy:C})}),Object(g.jsx)(Wd,{className:Bd?"":e.tabPanel,value:i,index:1,children:Object(g.jsx)(Md,{tabType:i,leftList:o,rightList:j,leftObj:u,rightObj:h,fnDoCollectPolicy:C})}),Object(g.jsx)(Wd,{className:Bd?"":e.tabPanel,value:i,index:2,children:Object(g.jsx)(Md,{tabType:i,leftList:o,rightList:j,leftObj:u,rightObj:h,fnDoCollectPolicy:C})}),Object(g.jsx)(Wd,{className:Bd?"":e.tabPanel,value:i,index:3,children:Object(g.jsx)(Gd,{tabType:i,userPolicyInfos:R,fnDoSearch:()=>{Sn().then((e=>{T(e.obj),v(e.list)}))},fnRestartFullScan:e=>{(e=>{Tn([{userID:e.user_id,enabled:e.enabled,fullScan:e.full_scan,removeSource:e.remove_source,full_scan_restart:!0}]).then((()=>{t(Object(Y.d)({message:n("COLLECT_MESSAGE_1")})),Sn().then((e=>{T(e.obj),v(e.list)}))}))})(e)}})})]})})})};var Yd={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/g_collector",component:Pd},{path:"/p_collector",component:function(){return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(zd,{})})}}]};var Vd=function(e){const{t:t}=Object(gt.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:"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}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:a.map((t=>Object(g.jsx)(Wi.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.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:r,edge:"end",children:Object(g.jsx)(G.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)(G.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 Kd=Object(H.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 Xd=function(e){const t=Kd(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{docs:o,rowsPerPage:d,currentPage:b,totalRows:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.piiDocObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Vd,{searchObj:e.searchObj,fnSearch:t=>{e.searchObj.searchName!==t&&e.fnSetSearchObj("searchName",t)}}),Object(g.jsx)(Bi.a,{children:o.map((e=>Object(g.jsxs)(Fi.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>{a(Cn({docObj:e}))},children:[Object(g.jsx)(Wi.a,{className:"left",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(e.disp_path)})]})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",children:e.pii&&e.pii.map(((e,t)=>t>0?" | ".concat(e.name):e.name))}),Object(g.jsx)(Wi.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)(Wi.a,{className:"left",align:"left",children:e.registered_at})]},e.fid)))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:j,rowsPerPage:d,rowsPerPageOptions:[100,250,500],page:b-1,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:(t,n)=>{!function(t,n){e.setLoading(!0),a(hn({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{var n;n=t,e.setLoading(!0),a(In({value:n.target.value})),a(pn({page:1,startDate:Et.a.getDateString(e.searchObj.startDate),endDate:Et.a.getDateString(e.searchObj.endDate),searchName:e.searchObj.searchName})).then((()=>e.setLoading(!1))),c.current.scrollTop=0}})]})})};var qd={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(_.b)(),[c,r]=s.a.useState({searchName:"",startDate:Et.a.getLastWeek(),endDate:new Date});function i(){n(pn({page:1,startDate:Et.a.getDateString(c.startDate),endDate:Et.a.getDateString(c.endDate),searchName:c.searchName})).then((()=>{t(!1)}))}return s.a.useEffect((()=>{i()}),[c]),Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Xd,{loading:e,searchObj:c,setLoading:t,fnSetSearchObj:(e,t)=>r(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnDoSearch:()=>i()}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};var Jd=function(e){const{t:t}=Object(gt.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}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:a.map((t=>Object(g.jsx)(Wi.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.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:r,edge:"end",children:Object(g.jsx)(G.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)(G.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)})})};zo.f.register(zo.e,zo.l,zo.c,zo.r,zo.s,zo.i,Yo.a);const Zd=Object(H.a)((e=>({contentWrapper:{height:"".concat(window.innerHeight-366,"px"),padding:"0 20px"}})));var Qd=function(e){const t=Zd(),a=Object(_.b)(),{t:c}=Object(gt.a)("docbase"),{docs:r,rowsPerPage:i,currentPage:l,totalRows:o,total_pages:b,totalSize:j,oriSize:O}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.dupDocObj})),u=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.dashboardObj})),p=s.a.useRef(),[h,m]=s.a.useState(window.innerHeight),[E,f]=s.a.useState({}),[x,N]=s.a.useState(!0),[S,T]=s.a.useState({path:""});function R(){N(!0),a(En({page:1,path:S.path})).then((()=>{N(!1)}))}s.a.useEffect((()=>{R()}),[S]);const[v,L]=s.a.useState({used:0,free:0}),[A,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?Et.a.changeByteToString(j-O):"".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?Et.a.changeByteToString(O):2===t.datasetIndex?Et.a.changeByteToString(v.used-O):Et.a.changeByteToString(v.free):0===t.datasetIndex?"".concat(e.toFixed(2),"%"):Et.a.changeByteToString(v.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)((()=>{u.total.used&&L({used:u.total.used.size,free:u.total.free.size})}),[u]),Object(n.useEffect)((()=>{p.current&&(p.current.style.height="".concat(h-366,"px")),window.addEventListener("resize",(()=>m(window.innerHeight)))}),[h]),Object(n.useEffect)((()=>{const e={};r.forEach((t=>{e[t.file_hash]={count:e[t.file_hash]&&e[t.file_hash].count?e[t.file_hash].count+1:1}})),f(e)}),[r]),Object(n.useEffect)((()=>{if(O>0){const e=v.used+v.free,t=O/e*100,a=(v.used-O)/e*100,n=v.free/e*100,s=v.used+(j-O),c=(j-O)/s*100,r=v.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,r]},{label:"\ub0a8\uc740 \uc0ac\uc6a9\ub7c9",backgroundColor:"#8b95a1",data:[n,0]}]})}}),[j,O]),x)return Object(g.jsx)($,{});const P=Object(vl.a)((e=>({root:{"&.bg":{backgroundColor:"#eaf4fd"}}})))(Fi.a);let I="";return Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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)(Vo.a,{data:A,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)(st.a,{title:c("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>R(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:p,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Jd,{searchObj:S,fnSearch:e=>{S.path!==e&&T(Object(d.a)(Object(d.a)({},S),{},{path:e}))}}),Object(g.jsx)(Bi.a,{children:r.map(((e,t)=>{const n=e.file_hash===I;return I=e.file_hash,Object(g.jsxs)(P,{className:n?"":"row-span",role:"checkbox",tabIndex:-1,onClick:t=>{a(Cn({docObj:e}))},children:[n?"":Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",rowSpan:E[e.file_hash]?E[e.file_hash].count:0,children:Et.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",rowSpan:E[e.file_hash]?E[e.file_hash].count:0,style:{fontSize:11},children:Et.a.changeByteToString(e.file_size)})]}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(e.disp_path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(e.disp_path)})]})})]},e.fid)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:o,rowsPerPage:i,rowsPerPageOptions:[100,250,500],page:l-1,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)=>{!function(e,t){N(!0),a(gn({page:t+1})).then((()=>N(!1)))}(0,t),p.current.scrollTop=0},onChangeRowsPerPage:e=>{var t;t=e,N(!0),a(wn({value:t.target.value})),a(En({page:1,path:S.path})).then((()=>N(!1))),p.current.scrollTop=0}})]})})};var $d={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dupDocs",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Qd,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const eb=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),tb=Object(H.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 ab(e){const t=Object(_.b)(),a=tb(),{t:n}=Object(gt.a)("docbase"),[c,r]=s.a.useState([]),[i,l]=s.a.useState("");s.a.useEffect((()=>{e.open&&o()}),[e.open]);const o=async()=>{const e=await Object(sn.r)();console.log(e),r(e.split(","))};return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{open:e.open,TransitionComponent:eb,keepMounted:!0,fullWidth:!0,maxWidth:"sm",onClose:e.fnHandleClose,children:[Object(g.jsx)(Hr.a,{className:a.title,onClose:e.fnHandleClose,children:Object(g.jsx)("span",{className:"align-middle",children:n("OSR_ORG_TITLE")})}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:!1,children:n("OSR_ORG_CODE")}),Object(g.jsx)(Wi.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:n("REMOVE")})]})}),Object(g.jsxs)(Bi.a,{children:[c.map(((e,t)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",children:e}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(st.a,{title:n("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{t.stopPropagation(),r(c.filter((t=>t!==e)))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t))),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",children:[Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:a.insertForm,children:[Object(g.jsx)("div",{children:Object(g.jsx)(Gc.a,{className:"",placeholder:n("OSR_ORG_CODE"),type:"text",name:"osr_org_code",variant:"outlined",size:"small",autoFocus:!0,fullWidth:!0,value:i,onChange:e=>l(e.target.value)})}),Object(g.jsx)("div",{className:"button-group",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",onClick:e=>{var a;a=i,c.find((e=>a===e))?t(Object(Y.c)({message:n("OSR_ERROR_MESSAGE_6")})):(r([...c,a]),l(""))},children:n("ADD")})})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"right"})]})]})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"btn-cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"btn-send",type:"button",onClick:e=>{t(Object(I.c)({children:Object(g.jsx)(ii.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(sn.G)(e)).result&&t(Object(Y.d)({message:n("COLLECT_MESSAGE_1")})).then((()=>{o()}))})()})}))},children:n("APPLY")})]})]})})]})})}const nb=["children","value","index"],sb=Object(H.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 cb(e){const{children:t,value:a,index:n}=e,s=Object(Dc.a)(e,nb);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)(ll.a,{className:"",children:t})}))}var rb=function(e){const t=sb(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),{osrObj:i}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system})),{users:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgFolders:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[b,j]=s.a.useState(!0),[O,u]=s.a.useState(""),[p,h]=s.a.useState(window.innerHeight),[m,E]=s.a.useState({newObj:{},moveObj:{},removeObj:{},removeUserObj:{}}),[f,x]=s.a.useState([]),[N,S]=s.a.useState([]),[T,R]=s.a.useState([]),[v,L]=s.a.useState(!1),[A,C]=s.a.useState(!1),[y,P]=s.a.useState(0),[w,D]=s.a.useState(!1);s.a.useEffect((()=>{c.current&&(c.current.style.height="".concat(p-296,"px")),window.addEventListener("resize",(()=>h(window.innerHeight)))}),[p]);let M=0;Object(n.useEffect)((()=>{k(),i.new_organizations.length>0?P(0):0===i.remove_organizations.length&&i.remove_users.length>0?P(2):P(1),clearTimeout(M),i.error?(j(!0),i.exists?(u(r("OSR_ERROR_MESSAGE_4")),M=setTimeout((()=>{a(Object(sn.s)()).then((()=>{j(!1)}))}),1500)):u(r("OSR_ERROR_MESSAGE_5"))):(j(!1),u(""))}),[i]);const k=()=>{const e={},t={},a={};i.new_organizations.forEach((t=>{e[t.id]={path:t.path}})),i.remove_organizations.forEach((e=>{t[e.path]={id:0,path:""}})),i.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]={}})),E({newObj:e,moveObj:{},removeObj:t,removeUserObj:a}),R(i.remove_organizations)};function G(e){j(!0),u(e),a(Object(an.g)()).then((()=>{a(Gn()).then((()=>{a(Object(sn.s)()).then((()=>{j(!1)}))}))}))}if(Object(n.useEffect)((()=>{}),[m]),Object(n.useEffect)((()=>{x([...l].sort(((e,t)=>e.name>t.name?1:e.name===t.name?0:-1)))}),[l]),Object(n.useEffect)((()=>{S([...o].sort(((e,t)=>e.path>t.path?1:e.path===t.path?0:-1)))}),[o]),Object(n.useEffect)((()=>(G(""),()=>{clearTimeout(M)})),[a]),b)return Object(g.jsx)($,{msg:O});function U(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}return Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ab,{open:w,fnHandleClose:()=>D(!1)}),Object(g.jsxs)("div",{className:t.tabHeader,children:[Object(g.jsxs)(si.a,{value:y,onChange:(e,t)=>0!==t&&i.new_organizations.length>0?(a(Object(Y.c)({message:r("OSR_ERROR_MESSAGE_1")})),!1):(y!==t&&(k(),P(t)),!0),indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,Object(d.a)({className:"list-tab",label:"".concat(r("OSR_ADD_ORG"),"(").concat(i.new_organizations.length,")")},U(0))),Object(g.jsx)(ci.a,Object(d.a)({className:"list-tab",label:"".concat(r("OSR_REMOVE_ORG"),"(").concat(i.remove_organizations.length,")")},U(1))),Object(g.jsx)(ci.a,Object(d.a)({className:"list-tab",label:"".concat(r("OSR_REMOVE_USER"),"(").concat(i.remove_users.length,")")},U(2)))]}),Object(g.jsx)(Pr.a,{onClick:e=>{D(!0)},className:"default",style:{position:"absolute",right:0,width:"fit-content",height:"35px",marginBottom:"5px",fontSize:"12px"},children:r("OSR_ORG_TITLE")})]}),Object(g.jsxs)("div",{className:t.tabContent,children:[Object(g.jsx)(cb,{className:t.tabPanel,value:y,index:0,children:Object(g.jsxs)(Ct.a,{className:Object(z.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:r("OSR_ADD_ORG")}),Object(g.jsx)("div",{className:"hint-span",children:r("OSR_HINT_MESSAGE_1")}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Pr.a,{onClick:e=>{k()},className:"default",children:r("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("OSR"),content:r("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(sn.C)(m.newObj,m.moveObj,m.removeObj,m.removeUserObj).then((e=>{a(Object(Y.d)({message:r("OSR_ERROR_MESSAGE_4")})),G(r("OSR_ERROR_MESSAGE_4"))})).catch((e=>{a(Object(Y.c)({message:r("OSR_ERROR_MESSAGE_5")}))}))}})}))},children:r("APPLY")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(ht.a,{className:Object(z.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsx)(_t.a,{className:t.rowTitle,children:r("ORG_NAME")}),i.new_organizations.map(((e,a)=>{const n="transfer-list-all-item-".concat(a,"-label");let s=!1;const c=Object.keys(m.moveObj);for(let t=0;t{if("-"===t.target.value){const t=m.moveObj;delete t[e.id],E(Object(d.a)(Object(d.a)({},m),{},{newObj:Object(d.a)(Object(d.a)({},m.newObj),{},{[e.id]:{path:e.path}}),moveObj:t}))}else{const a=Object(d.a)({},m.removeObj),n={[e.id]:{path:t.target.value,newPath:e.path}};Object.keys(m.moveObj).forEach((t=>{m.moveObj[t].newPath.indexOf(e.path)<0&&(n[t]={path:m.moveObj[t].path,newPath:m.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);i.new_organizations.forEach((e=>{let t=!1;for(let a=0;a{const a=Object.keys(m.moveObj);let n=!1;for(let s=0;s{if("osr_removeorg_0"===t&&(k(),L(!1)),"osr_removeorg_1"===t&&(L(!0),k()),"osr_removeorg_2"===t){const e={};i.remove_organizations.forEach((t=>{e[t.path]={path:"#DELETE#",id:1}})),L(!1),E(Object(d.a)(Object(d.a)({},m),{},{removeObj:e}))}},children:[Object(g.jsx)(se.a,{value:"osr_removeorg_0",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_1")}),Object(g.jsx)(se.a,{value:"osr_removeorg_1",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_2")}),Object(g.jsx)(se.a,{value:"osr_removeorg_2",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_3")})]})})}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Pr.a,{onClick:e=>{k()},className:"default",children:r("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("OSR"),content:r("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(sn.C)(m.newObj,m.moveObj,m.removeObj,m.removeUserObj).then((e=>{a(Object(Y.d)({message:r("OSR_ERROR_MESSAGE_4")})),G(r("OSR_ERROR_MESSAGE_4"))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("OSR_ERROR_MESSAGE_5")}))}))}})}))},children:r("APPLY")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(ht.a,{className:Object(z.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsx)(_t.a,{className:t.rowTitle,children:"\uc870\uc9c1\uba85"}),i.remove_organizations.map(((e,n)=>{const s="transfer-list-all-item-".concat(n,"-label");let c=!1;const l=Object.keys(m.moveObj);for(let t=0;t{if("-"===t.target.value){if(m.removeObj[Et.a.splitPreDelimiter(e.path)]&&""!==m.removeObj[Et.a.splitPreDelimiter(e.path)].path)return a(Object(Y.c)({message:r("OSR_ERROR_MESSAGE_2")})),!1;E(Object(d.a)(Object(d.a)({},m),{},{removeObj:Object(d.a)(Object(d.a)({},m.removeObj),{},{[e.path]:{path:"",id:0}})}))}else{const{removeObj:a,moveObj:n}=m,s=Object.keys(n);Object.keys(a).forEach((n=>{(0===n.indexOf(e.path)||v)&&(a[n]={path:t.target.value,id:1})}));for(let t=0;t{let t=!1;for(let a=0;am.removeObj[e.disp_path]?"":Object(g.jsx)(re.a,{value:"".concat(e.disp_path),children:e.disp_path})))]})]},n)})),Object(g.jsx)(_t.a,{})]})})]})}),Object(g.jsx)(cb,{className:t.tabPanel,value:y,index:2,children:Object(g.jsxs)(Ct.a,{className:Object(z.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:r("OSR_REMOVE_USER")}),Object(g.jsx)("div",{className:"hint-span",children:r("OSR_HINT_MESSAGE_3")}),Object(g.jsx)("div",{className:"radio-group",children:Object(g.jsx)("span",{className:"inline-block",children:Object(g.jsxs)(le.a,{row:!0,"aria-labelledby":"demo-form-control",name:"osr_removeuser",defaultValue:"osr_removeuser_0",onChange:(e,t)=>{if("osr_removeuser_0"===t&&(k(),C(!1)),"osr_removeuser_1"===t&&(C(!0),k()),"osr_removeuser_2"===t){const e={};i.remove_users.forEach((t=>{e[t.user_id]={handover_user_id:"#DELETE#",handover_user_name:"#DELETE#",searchVal:"#DELETE#[#DELETE#]"}})),C(!1),E(Object(d.a)(Object(d.a)({},m),{},{removeUserObj:e}))}},children:[Object(g.jsx)(se.a,{value:"osr_removeuser_0",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_1")}),Object(g.jsx)(se.a,{value:"osr_removeuser_1",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_4")}),Object(g.jsx)(se.a,{value:"osr_removeuser_2",control:Object(g.jsx)(ie.a,{size:"small",color:"primary"}),label:r("OSR_BTN_3")})]})})}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Pr.a,{onClick:e=>{k()},className:"default",children:r("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"proc-confirm",type:"button",onClick:e=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("OSR"),content:r("OSR_CONFIRM_MESSAGE_1"),fnHandleOK:()=>{Object(sn.C)(m.newObj,m.moveObj,m.removeObj,m.removeUserObj).then((e=>{a(Object(Y.d)({message:r("OSR_ERROR_MESSAGE_4")})),G(r("OSR_ERROR_MESSAGE_4"))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("OSR_ERROR_MESSAGE_5")}))}))}})}))},children:r("APPLY")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(ht.a,{className:Object(z.a)(t.list),dense:!0,component:"div",role:"list",children:[Object(g.jsx)(_t.a,{className:t.rowTitle,children:"\uc0ac\uc6a9\uc790"}),i.remove_users.map(((e,a)=>{const n="transfer-list-all-item-".concat(a,"-label");return Object(g.jsxs)(_t.a,{className:t.row,role:"listitem",button:!0,onClick:e=>{},children:[Object(g.jsx)(mt.a,{id:n,className:"w-1/2",primary:"".concat(e.name,"[").concat(e.user_id,"]")}),Object(g.jsxs)(Gc.a,{select:!0,className:"w-1/2",name:"osr_remove_user",variant:"outlined",value:m.removeUserObj[e.user_id]&&m.removeUserObj[e.user_id].handover_user_id?m.removeUserObj[e.user_id].handover_user_id:"-",fullWidth:!0,onChange:t=>{if("-"===t.target.value)E(Object(d.a)(Object(d.a)({},m),{},{removeUserObj:Object(d.a)(Object(d.a)({},m.removeUserObj),{},{[e.user_id]:{handover_user_id:""}})}));else if(A){const e={};i.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,"]")}})),E(Object(d.a)(Object(d.a)({},m),{},{removeUserObj:e}))}else E(Object(d.a)(Object(d.a)({},m),{},{removeUserObj:Object(d.a)(Object(d.a)({},m.removeUserObj),{},{[e.user_id]:{handover_user_id:t.target.value}})}))},children:[Object(g.jsx)(re.a,{value:"-",children:r("OSR_NO_CHANGE")}),Object(g.jsx)(re.a,{value:"#DELETE#",children:r("CLEARANCE")}),f.map((t=>t.user_id===e.user_id||m.removeUserObj[t.user_id]?"":Object(g.jsxs)(re.a,{value:"".concat(t.user_id),children:[t.name,"[",t.user_id,"]"]})))]})]},a)})),Object(g.jsx)(_t.a,{})]})})]})})]})]})};var ib={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/osr",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(rb,{}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const lb=Object(H.a)((e=>({tr:{"& .delete":{width:100},"& .approve":{width:100},"& .process_type":{width:140}}})));var ob=function(e){const t=lb(),{t:a}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const db=Object(H.a)((e=>({tr:{"& .delete":{width:100}}})));var bb=function(e){const t=db(),{t:a}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this)})})};const jb=Object(H.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 Ob(e){const{t:t}=Object(gt.a)("docbase"),a=jb(),n=Object(_.b)(),[c,r]=s.a.useState(""),[i,l]=s.a.useState(""),[o,d]=s.a.useState("regex");return s.a.useEffect((()=>{r(""),l(""),d("regex")}),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{className:a.title,id:"form-dialog-title",children:t("WHITE_URL_MODAL_1")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(zr.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)(Gc.a,{className:"",placeholder:t("WHITE_URL_NAME_PLACEHOLDER"),name:"name",fullWidth:!0,value:c,variant:"outlined",onChange:e=>r(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)(Gc.a,{select:!0,className:"",name:"type",fullWidth:!0,value:o,variant:"outlined",onChange:e=>d(e.target.value),size:"small",children:[Object(g.jsx)(re.a,{value:"regex",children:t("WHITE_URL_REGEX")}),Object(g.jsx)(re.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)(Gc.a,{className:"",placeholder:t("WHITE_URL_URL_PLACEHOLDER"),name:"url",fullWidth:!0,value:i,variant:"outlined",onChange:e=>l(e.target.value),size:"small"})})]}),Object(g.jsx)(zr.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)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>0===c.trim().length?(n(Object(Y.c)({message:t("WHITE_PROCESS_ERROR_MESSAGE_3")})),!1):0===i.trim().length?(n(Object(Y.c)({message:t("WHITE_PROCESS_ERROR_MESSAGE_4")})),!1):(e.fnHandleChange(c,o,i),!0),children:t("REGISTER")})]})]})})]})})}const ub=Object(H.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"}}))),pb=s.a.memo((e=>{let{dispatch:t,t:a,tabValue:n,whiteProcessList:s,whiteURLList:c,handleRowClick:r,doApprove:i,deleteConfirm:l,deleteWhiteURLConfirm:o}=e,d=Object(g.jsx)(Gi.a,{});return d=0===n?Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ob,{}),Object(g.jsx)(Bi.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)(Fi.a,{className:Object(z.a)("cursor-default"),hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>r(e),children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.program_name}),Object(g.jsx)(Wi.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)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Wi.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)(st.a,{title:a("TAKEOUT_APPROVED"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:a("PROCESS_APPROVE_TITLE"),content:a("PROCESS_APPROVE_CONTENT").replace("%s",a("TAKEOUT_APPROVED")),fnHandleOK:()=>{i(e.id,!0)}})}))},children:Object(g.jsx)(la.a,{type:"stamper",className:"",fill:"#575757"})})}),Object(g.jsx)(st.a,{title:a("TAKEOUT_REJECTED"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:a("PROCESS_APPROVE_TITLE"),content:a("PROCESS_APPROVE_CONTENT").replace("%s",a("TAKEOUT_REJECTED")),fnHandleOK:()=>{i(e.id,!1)}})}))},children:Object(g.jsx)(la.a,{type:"reject",className:"",fill:"#575757"})})})]})}),Object(g.jsx)(Wi.a,{className:"relative",component:"td",scope:"row",children:Et.a.getDateTimeString(e.registered_at)}),Object(g.jsx)(Wi.a,{className:" ",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:a("PROCESS_DELETE_TITLE"),content:a("PROCESS_DELETE_CONTENT").replace("%s",e.name),fnHandleOK:()=>{l(n,e.name)}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)}))})]}):Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(bb,{}),Object(g.jsx)(Bi.a,{children:c.map((e=>Object(g.jsxs)(Fi.a,{className:"cursor-default",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>r(e),children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:"regex"===e.set_type?a("WHITE_URL_REGEX"):a("WHITE_URL_PLAIN")}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.url}),Object(g.jsx)(Wi.a,{className:" ",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:a("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:a("URL_DELETE_TITLE"),content:a("URL_DELETE_CONTENT").replace("%s",e.url),fnHandleOK:()=>{o(n,e.name)}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.id)))})]}),d}));var hb=function(e){const t=ub(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),[l,o]=s.a.useState(window.innerWidth),{t:d}=Object(gt.a)("docbase"),{whiteProcessList:b,whiteURLList:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),[O,u]=s.a.useState(0),[p,h]=s.a.useState(!1);function m(e,t){e.stopPropagation(),(e=>new Promise(((t,a)=>{Ba.a.sendPost("/api/unregisterWhiteProcess",{name:e}).then((e=>{e.result?t(e):(Ba.a.printError(e),a(e))}))})))(t).then((e=>{a(vn()),a(Object(Y.d)({message:d("WHITE_PROCESS_MESSAGE_1")}))})).catch((e=>{a(Object(Y.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_1")}))}))}function E(e,t){e.stopPropagation(),(e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/api/unregisterWhiteURL",{name:e,token:s}).then((e=>{e.result?t(e):(Ba.a.printError(e),a(e))}))}))})))(t).then((e=>{a(Ln()),a(Object(Y.d)({message:d("WHITE_PROCESS_MESSAGE_2")}))})).catch((e=>{a(Object(Y.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_2")}))}))}function f(e,t){((e,t)=>new Promise(((a,n)=>{Ba.a.sendPost("/api/approveRegisterWhiteProcess",{id:e,approve:t}).then((e=>{e.result?a(e):(Ba.a.printError(e),n(e))}))})))(e,t).then((e=>{a(vn()),a(Object(Y.d)({message:d(t?"APPROVED":"REJECTED")}))})).catch((e=>{a(Object(Y.c)({message:d("FAILED")}))}))}return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-274,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{window.addEventListener("resize",(()=>o(window.innerWidth)))}),[l]),Object(n.useEffect)((()=>{e.setLoading(!0),a(vn()).then((()=>{a(Ln()),e.setLoading(!1)}))}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Ob,{open:p,fnHandleClose:()=>{h(!1)},fnHandleChange:(e,t,n)=>{((e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/api/registerWhiteURL",{name:e,set_type:t,url:za.a.encryptAES(c,a,"utf8","hex"),token:r}).then((e=>{e.result?n(e):(Ba.a.printError(e),s(e))}))}))})))(e,t,n).then((e=>{a(Ln()),a(Object(Y.d)({message:d("WHITE_PROCESS_MESSAGE_3")})),h(!1)})).catch((e=>{a(Object(Y.c)({message:d("WHITE_PROCESS_ERROR_MESSAGE_5")}))}))}}),Object(g.jsxs)(Ct.a,{className:Object(z.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)(Pr.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)(st.a,{title:d("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{e.setLoading(!0),a(vn()).then((()=>{e.setLoading(!1)}))},children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(si.a,{value:O,onChange:(e,t)=>{u(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:d("PROCESS")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:d("URL")})]})}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(pb,{dispatch:a,t:d,tabValue:O,whiteProcessList:b,whiteURLList:j,handleRowClick:e=>{},doApprove:(e,t)=>f(e,t),deleteConfirm:(e,t)=>m(e,t),deleteWhiteURLConfirm:(e,t)=>E(e,t)})})]})]})};var _b={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/whiteProcesses",component:function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(hb,{loading:e,setLoading:t}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const mb=Object(H.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 Eb=function(e){const t=mb(),{t:a}=Object(gt.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,r]=s.a.useState({object:{show:""!==e.searchObj.object,value:e.searchObj.object},user:{show:""!==e.searchObj.user,value:e.searchObj.user}}),i=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((t=>Object(g.jsx)(Wi.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:i,edge:"end",children:Object(g.jsx)(G.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{r(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)(G.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const gb=Object(H.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 fb=function(e){const t=gb(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{sysConfigure:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting})),{logs:d,rowsPerPage:b,currentPage:j,totalRows:O}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.auditLogObj})),[u,p]=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!==o.menu_support_type&&p([{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: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"}])}),o),Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:O}),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)(Gc.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=>!o.support_macos_dlp&&e.type>100?"":Object(g.jsx)(re.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Eb,{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)(Bi.a,{children:d.map(((e,t)=>{let{extra:a}=e;if(1===e.audit_type)switch(Number(a)){case nn.q:a="windows86";break;case nn.p:a="windows64";break;case nn.n:a="MAC";break;case nn.o:a="Web";break;default:a="..."}return Object(g.jsxs)(Fi.a,{hover:!0,className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"korean"===o.language?e.audit_type_name_korean:e.audit_type_name}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.opreator}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.new_object}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(e.performed_at)})]},t)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:O,rowsPerPage:b,rowsPerPageOptions:[100,250,500],page:j-1,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:(t,n)=>{!function(t,n){e.setLoading(!0),a(Object(sn.j)({page:n+1})).then((()=>e.setLoading(!1)))}(0,n),c.current.scrollTop=0},onChangeRowsPerPage:t=>{!function(t){a(Object(sn.a)({value:t.target.value})),e.fnDoSearch()}(t),c.current.scrollTop=0}})]})})};var xb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/auditLogs",component:function(){const e=Object(_.b)(),[t,a]=s.a.useState(!0),n=s.a.useRef(null),[c,r]=s.a.useState({startDate:new Date,endDate:new Date,auditType:0,object:"",user:""});function i(){a(!0),e(Object(sn.i)({page:1,auditType:c.auditType,startDate:Et.a.getDateString(c.startDate),endDate:Et.a.getDateString(c.endDate),object:c.object,user:c.user})).then((()=>{a(!1)}))}return s.a.useEffect((()=>{i()}),[c]),Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(fb,{loading:t,searchObj:c,setLoading:a,fnSetSearchObj:(e,t)=>r(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnDoSearch:()=>i()}),innerScroll:!0,sidebarInner:!0,ref:n})}}]},Nb=a(554),Sb=a(297);var Tb=new class{constructor(){this.excelDownload=(e,t,a,n)=>{const s=Sb.a.aoa_to_sheet([t]);a.map((e=>{const t=[];return Object.keys(e).forEach((a=>{t.push(e[a])})),Sb.a.sheet_add_aoa(s,[t],{origin:-1}),n&&n.length>0&&(s["!cols"]=n),!1}));const c={Sheets:{data:s},SheetNames:["data"]},r=Sb.b(c,{bookType:"xlsx",type:"array"}),i=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});Nb.saveAs(i,"".concat(e).concat(".xlsx"))}}};const Rb=Object(H.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:220}}})));var vb=function(e){const{t:t}=Object(gt.a)("docbase"),a=Rb(),n=[{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}],[c,r]=s.a.useState({old_object:{show:""!==e.searchObj.path,value:e.searchObj.path},operator:{show:""!==e.searchObj.operator,value:e.searchObj.operator}}),i=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Wi.a,{className:Object(z.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:i,edge:"end",children:Object(g.jsx)(G.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{r(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)(G.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})},Lb=a(914);const Ab=Object(H.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: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 Cb(e){const{t:t}=Object(gt.a)("docbase"),a=Ab(),[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(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{className:a.title,id:"form-dialog-title",children:t("ACCESS_TYPE")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(Lb.a,{row:!0,children:e.accessType.map((a=>Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.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?e.splice(t,1):e.push(a.type.toString()),e.length<=10){const t=e.indexOf("0");t>-1&&e.splice(t,1)}c(e)}},name:"at_".concat(a.cons)}),label:t(a.cons)})))}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:t=>{e.fnHandleOK(n)},children:t("APPLY")})]})]})})]})})}const yb=Object(H.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"}}))),Pb=[{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: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"}],Ib={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"};var wb=function(e){const t=yb(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{logs:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.accessLogObj})),[d,b]=s.a.useState({id:"user_id",direction:"asc"}),[j,O]=s.a.useState(100),[u,p]=s.a.useState(0),[h,m]=s.a.useState(!1),[E,f]=s.a.useState(""),[x,N]=s.a.useState("");return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(Cb,{open:h,accessType:Pb,selectedTypes:E,fnHandleClose:()=>m(!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(Ib[Number(e)])})),f(a),N(n),e.fnSetSearchObj("accessType",a),m(!1)}}),Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:o.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)(Gc.a,{onClick:e=>m(!0),name:"modal",className:"align-middle",variant:"outlined",siae:"small",InputProps:{readOnly:!0},value:""!==x?x: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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(st.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[l("DIVISION"),l("EXISTING_FILE"),l("NEW_FILE"),l("USER"),l("DATE")],a=[];o.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:Et.a.getDateStringToLocalDate(t.accessed_at)})})),Tb.excelDownload("".concat(l("FILE_LOG_EXCEL")).concat(Et.a.getDateString(e.searchObj.startDate),"-").concat(Et.a.getDateString(e.searchObj.endDate)),t,a,[{wpx:80},{wpx:400},{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(la.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(vb,{order:d,searchObj:e.searchObj,rowCount:o.length,fnSearch:(t,a)=>{e.searchObj.path!==t&&e.fnSetSearchObj("path",t),e.searchObj.operator!==a&&e.fnSetSearchObj("operator",a)}}),Object(g.jsx)(Bi.a,{children:o.slice(u*j,u*j+j).map(((t,a)=>{let n=Object(g.jsx)(st.a,{title:t.dest_path,arrow:!0,children:Object(g.jsx)("span",{children:Et.a.splitLastDelimiterString(t.dest_path)})});return t.access_type===nn.d&&(n=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(t.dest_path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(t.dest_path)})]})),Object(g.jsxs)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.fnCheckAccessType(t.access_type)}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(t.path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(t.path)})]})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(t.user_name,"(").concat(t.user_id,")")}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(t.accessed_at)})]},t.id)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:o.length,rowsPerPage:j,rowsPerPageOptions:[100,250,500],page:u,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)=>{p(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{O(Number(e.target.value)),p(0),c.current.scrollTop=0}})]})]})};var Db={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/accessLogs",component:function(){const e=Object(_.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{t:r}=Object(gt.a)("docbase"),i=new Date,[l,o]=s.a.useState({startDate:new Date(i.getFullYear(),i.getMonth(),i.getDate()),endDate:new Date(i.getFullYear(),i.getMonth(),i.getDate()),accessType:0,path:"",operator:""});function b(){let t=Et.a.getDateDifference(l.startDate,l.endDate);t<=0?t=0:t++,a(!0),e(Object(sn.g)({startID:0,date:Et.a.getDateString(l.startDate),days:t,path:l.path,operator:l.operator,accessType:0===l.accessType?"":l.accessType,isToday:!1})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{b()}),[l]),Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(wb,{loading:t,searchObj:l,setLoading:a,fnSetSearchObj:(e,t)=>o(Object(d.a)(Object(d.a)({},l),{},{[e]:t})),fnDoSearch:()=>b(),fnCheckAccessType:e=>function(e){switch(e){case nn.b:return r("ACCESS_TYPE_CREATE");case nn.f:return r("ACCESS_TYPE_READ");case nn.d:return r("ACCESS_TYPE_MOVE");case nn.j:return r("ACCESS_TYPE_UPDATE");case nn.c:return r("ACCESS_TYPE_HOLD");case nn.h:return r("ACCESS_TYPE_REMOVE");case nn.i:return r("ACCESS_TYPE_REMOVE_TRASH");case nn.g:return r("ACCESS_TYPE_RECOVERY_TRASH");case nn.e:return r("ACCESS_TYPE_PURGE_TRASH");case nn.k:return r("ACCESS_TYPE_VIEWING");case nn.l:return r("ACCESS_TYPE_WEB_CREATE");case nn.m:return r("ACCESS_TYPE_WEB_DOWNLOAD");case nn.a:return r("ACCESS_TYPE_COLLECT_FILE");default:return r("ETC")}}(e)}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const Mb=Object(H.a)((e=>({root:{background:"radial-gradient(".concat(Object(ir.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 kb={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=Mb(),c=Object(_.b)(),{t:r}=Object(gt.a)(["docbase","brand"]),[i,l]=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(z.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)(Cr,{animation:"transition.expandIn",children:Object(g.jsx)(Ir.a,{className:"w-full max-w-384 rounded-8",children:Object(g.jsxs)(wr.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)(B.a,{variant:"h6",className:"mb-10 font-bold text-20 sm:text-24",color:"primary",children:r("brand:PRODUCT_NAME_ADMIN")}),Object(g.jsxs)("div",{children:[Object(g.jsx)(Gc.a,{className:"w-full",variant:"outlined",type:"text",name:"name",fullWidth:!0,value:i.userID,onChange:e=>l(Object(d.a)(Object(d.a)({},i),{},{userID:e.target.value}))}),Object(g.jsx)(Gc.a,{className:"w-full",variant:"outlined",type:"text",name:"startdate",fullWidth:!0,value:i.startdate,onChange:e=>l(Object(d.a)(Object(d.a)({},i),{},{startdate:e.target.value}))}),Object(g.jsx)(Gc.a,{className:"w-full",variant:"outlined",type:"text",name:"enddate",fullWidth:!0,value:i.enddate,onChange:e=>l(Object(d.a)(Object(d.a)({},i),{},{enddate:e.target.value}))}),Object(g.jsx)(Pr.a,{onClick:e=>{Object(sn.l)(i.userID,i.startdate,i.enddate,i.rows_per_page).then((e=>{console.log(e)}))},children:"\ub85c\uadf8\uc694\uccad"})]}),Object(g.jsx)(Pr.a,{onClick:e=>{Object(sn.m)().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)(Gc.a,{className:"",variant:"outlined",type:"text",name:"includes",fullWidth:!0,value:o,onChange:e=>b(e.target.value)}),Object(g.jsx)(Pr.a,{onClick:e=>{Object(sn.m)(o).then((e=>{console.log(e)}))},children:"\ubaa9\ub85d\uc870\ud68c"})]})]})})})})})}}]};var Gb=function(e){const{t:t}=Object(gt.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}}),r=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:a.map((a=>Object(g.jsx)(Wi.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:a.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:n[a.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.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:r,edge:"end",children:Object(g.jsx)(G.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)(G.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 Ub=Object(H.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 Fb=function(e){const t=Ub(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{rowsPerPage:o,currentPage:d,totalRows:b}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.ransomObj}));function j(e){a(Cn({docObj:e}))}if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading)return Object(g.jsx)($,{});let O=0;return Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.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:[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("ACCESS_TYPE")}),Object(g.jsxs)(Gc.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)(re.a,{value:0,children:l("RANSOMWARE_STATUS_NONE")}),Object(g.jsx)(re.a,{value:1,children:l("RANSOMWARE_STATUS_COM")}),Object(g.jsx)(re.a,{value:2,children:l("RANSOMWARE_STATUS_BLOCK")})]})]}),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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Gb,{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)(Bi.a,{children:e.data.map((e=>{const t=O===e.id;O=e.id;let a=l("RANSOMWARE_FILE_STATUS_COM");return 2===e.file_status?a=l("RANSOMWARE_FILE_STATUS_RESTORE"):3===e.file_status&&(a=l("RANSOMWARE_FILE_STATUS_INFECTION")),t?Object(g.jsx)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:Object(g.jsxs)(Wi.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)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,onClick:t=>j(e),children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.user_id}),Object(g.jsx)(Wi.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:e.client_address.split(":")[0]}),Object(g.jsxs)(Wi.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:[Object(g.jsxs)("div",{children:[Object(g.jsxs)("p",{className:"log-name",children:[Et.a.splitLastDelimiterString(e.ransomware_path),Object(g.jsx)("br",{}),Object(g.jsxs)("span",{children:["[",2===e.status?l("RANSOMWARE_STATUS_BLOCK"):l("RANSOMWARE_STATUS_COM"),"]"]})]}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(e.ransomware_path)})]}),Object(g.jsx)("span",{children:e.ransomware_path})]}),Object(g.jsxs)(Wi.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)(Wi.a,{className:"left",align:"left",rowSpan:e.infected_files.length,children:Et.a.getDateStringToLocalDate(e.detected_at)})]},e.id)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:b,rowsPerPage:o,rowsPerPageOptions:[100,250,500],page:d-1,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:(t,n)=>{var s;s=n,e.setLoading(!0),a(mn({page:s+1})).then((()=>e.setLoading(!1))),c.current.scrollTop=0},onChangeRowsPerPage:t=>{var n;n=t,e.setLoading(!0),a(In({value:n.target.value})),a(_n({page:1,status:e.searchObj.status,day:Et.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 Wb=function(){const[e,t]=s.a.useState(!0),a=s.a.useRef(null),n=Object(_.b)(),[c,r]=s.a.useState({startDate:Et.a.getLastWeek(),endDate:new Date,status:0,path:"",user:"",clientAddress:"",infectedFilePath:""}),{events:i}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.setting.ransomObj})),[l,o]=s.a.useState([]);return s.a.useEffect((()=>{const e=[];i.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)}),[i]),s.a.useEffect((()=>{t(!0),n(_n({page:1,status:c.status,day:Et.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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Fb,{data:l,loading:e,searchObj:c,setLoading:t,fnSetSearchObj:(e,t)=>r(Object(d.a)(Object(d.a)({},c),{},{[e]:t}))}),innerScroll:!0,sidebarInner:!0,ref:a})};var Hb={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/ransom",component:Wb}]};var Bb=function(e){const{t:t}=Object(gt.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)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[a.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Wi.a,{className:"",padding:"none",sortDirection:!1})]})})};const zb=Object(H.a)((e=>({root:{marginRight:30,borderRadius:6},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var Yb=function(e){const t=zb(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{takeouts:o,rowsPerPage:d,currentPage:b,totalRows:j}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.takeoutsObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{a(Object(sn.w)({page:1})).then((()=>{e.setLoading(!1)}))}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{a(Object(sn.w)({page:1})).then((()=>{e.setLoading(!1)}))},children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Bb,{}),Object(g.jsx)(Bi.a,{children:o.map((a=>{let n=l("TAKEOUT_DOC"),s=l("TAKEOUT_REQUEST");switch(a.request_type){case nn.nb:n=l("TAKEOUT_PRINT");break;case nn.ob:n=l("TAKEOUT_WEBLINK")}switch(a.status){case nn.ib:s=l("TAKEOUT_APPROVED");break;case nn.jb:s=l("TAKEOUT_APPROVED_AUTO");break;case nn.kb:s=l("TAKEOUT_REJECTED");break;case nn.lb:s=l("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)(Fi.a,{className:Object(z.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)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:n}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:s})]},a.toid)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0 border-t-1 mx-20",component:"div",count:j,rowsPerPage:d,rowsPerPageOptions:[100,250,500],page:b-1,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:(t,n)=>{var s;s=n,e.setLoading(!0),a(Object(sn.x)({page:s+1})).then((()=>e.setLoading(!1))),c.current.scrollTop=0},onChangeRowsPerPage:t=>{var n;n=t,e.setLoading(!0),a(Object(sn.c)({value:n.target.value})),a(Object(sn.w)({page:1})).then((()=>e.setLoading(!1))),c.current.scrollTop=0}})]})})},Vb=a(378);const Kb=Object(H.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 Xb=function(e){const t=Kb(),a=s.a.useRef(),{t:n}=Object(gt.a)("docbase"),{key:c}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.takeoutsObj})),[r,i]=s.a.useState(window.innerHeight);s.a.useEffect((()=>{r>=754&&(a.current.style.height="".concat(r-140,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{}),[]);let l="";switch(e.selectedObj.request_type){case nn.mb:l=n("TAKEOUT_DOC");break;case nn.nb:l=n("TAKEOUT_PRINT");break;case nn.ob:l=n("TAKEOUT_WEBLINK")}let o="";switch(e.selectedObj.status){case nn.ib:o=n("TAKEOUT_APPROVED");break;case nn.jb:o=n("TAKEOUT_APPROVED_AUTO");break;case nn.kb:o=n("TAKEOUT_REJECTED");break;case nn.lb:o=n("TAKEOUT_WITHDRAWN")}return Object(g.jsxs)("div",{className:"",ref:a,children:[Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsx)(Rl.a,{className:Object(z.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})})}),Object(g.jsxs)(wr.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(z.a)("text-left"),children:n("TAKEOUT_REQUESTER")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:n("TAKEOUT_APPROVER")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:n("TAKEOUT_REQ_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"requested_at",fullWidth:!0,value:Et.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(z.a)("text-left"),children:n("TAKEOUT_APP_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"approved_at",fullWidth:!0,value:Et.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(z.a)("text-left"),children:n("TAKEOUT_REQ_TYPE")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"req_type",fullWidth:!0,value:l,inputProps:{readOnly:!0}})})]}),Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:n("TAKEOUT_STATUS")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",value:o,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(z.a)("text-left"),children:n("TAKEOUT_REASON_REQ")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:n("TAKEOUT_REASON_REJ")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:e.selectedObj.reason_rejected,inputProps:{readOnly:!0}})})]})]})]}),Object(g.jsx)(Ir.a,{className:t.paperPerm,children:Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:n("FILE_NAME")}),Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:t.downloadCell})]})}),Object(g.jsx)(Bi.a,{children:e.selectedObj.requested_files&&e.selectedObj.requested_files.length>0?e.selectedObj.requested_files.map(((a,n)=>{const s=za.a.decryptAES(c,a.path,"hex","utf8").replaceAll("[_ORG_].","");return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,tabIndex:-1,children:[Object(g.jsx)(Wi.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)(Vb.a,{targetName:s,secureDocInfo:!1})}),Object(g.jsx)("span",{children:s})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(st.a,{arrow:!0,title:"\ud074\ub9ad\uc2dc \ub2e4\uc6b4\ub85c\ub4dc",children:Object(g.jsx)(U.a,{onClick:()=>{Object(rs.m)(e.selectedObj.toid,a.seq,a.archive_id)},children:Object(g.jsx)(la.a,{className:"small",type:"download",fill:"#333d4b"})})})})]})})):Object(g.jsx)(g.Fragment,{})})]})})})]})};var qb={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Yb,{loading:e,setLoading:t,selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Xb,{loading:e,setLoading:t,selectedObj:a,fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const Jb=Object(H.a)((e=>({tr:{"& .sincesec":{width:95},"& .user-id":{width:200},"& .release-icon":{width:50}}})));var Zb=function(e){const{t:t}=Object(gt.a)("docbase"),a=Jb(),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,r]=s.a.useState({user:{show:!1,value:""}}),i=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:a.tr,children:n.map((t=>{return Object(g.jsx)(Wi.a,{className:Object(z.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow mx-5",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:i,edge:"end",children:Object(g.jsx)(G.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{r(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)(Hi.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)(G.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{r(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)(G.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{r(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 Qb=Object(H.a)((e=>({deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));let $b;var ej=function(e){const t=Qb(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{holdFiles:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system})),[d,b]=s.a.useState({id:"document_path",direction:"asc"}),[O,u]=s.a.useState(100),[p,h]=s.a.useState(1);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),Object(n.useEffect)((()=>{let t=!1;o.forEach((e=>{e.scheduled_release&&(t=!0)})),t?$b||($b=setInterval((()=>{e.fnDoSearch(!1)}),3e3)):(clearInterval($b),$b=void 0)}),[o]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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:0}),l("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)(U.a,{onClick:t=>{e.fnDoSearch(!1)},children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Zb,{order:d,onRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";d.id===t&&"desc"===d.direction&&(n="asc"),b({direction:n,id:a})}(0,t),searchObj:e.searchObj,rowCount:o.length,fnSearch:t=>{e.searchObj.userID!==t&&e.fnSetSearchObj(t)}}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(o,[e=>{switch(d.id){case"document_path":return e.path;case"user":return e.user_name;case"start_time":return"".concat(e.year,"-").concat(e.month,"-").concat(e.day," ").concat(e.hour,":").concat(e.minute,":").concat(e.second);default:return e[d.id]}}],[d.direction]).map(((n,s)=>Object(g.jsxs)(Fi.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(n.path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(n.path)})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:n.scheduled_release?Object(g.jsx)("div",{style:{padding:"12px"},children:Object(g.jsx)(Sr.a,{className:"align-middle ml-5",style:{width:"24px",height:"24px"},color:"secondary"})}):Object(g.jsx)(st.a,{title:l("RELEASE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:l("[".concat(n.user_name,"(").concat(n.user_id,")] ").concat(l("HOLD_FILES_CONF_CONTENT"))),fnHandleOK:()=>{Object(sn.D)(n.user_id).then((()=>{a(Object(Y.d)({message:l("HOLD_FILES_MESSAGE_1")})),e.fnDoSearch(!1)})).catch((e=>{}))}})}))},children:Object(g.jsx)(G.a,{className:t.deleteIcon,children:"no_encryption"})})})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(n.user_name,"(").concat(n.user_id,")")}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:"".concat(Et.a.getSecToTime(n.since_secs))}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate("".concat(n.year,"-").concat(n.month,"-").concat(n.day," ").concat(n.hour,":").concat(n.minute,":").concat(n.second))})]},s)))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:o.length,rowsPerPage:O,rowsPerPageOptions:[100,250,500],page:p-1,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)=>{h(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{u(Number(e.target.value)),c.current.scrollTop=0}})]})})};var tj=function(){const e=Object(_.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{usersObj:r}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[i,l]=s.a.useState({userID:""});function o(t){a(t),Object.keys(r).length<=0?e(Object(an.g)()).then((()=>{e(Object(sn.p)({userID:i.userID})).then((()=>{a(!1)}))})):e(Object(sn.p)({userID:i.userID})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{o(!0)}),[i]),Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(ej,{loading:t,searchObj:i,setLoading:a,fnSetSearchObj:(e,t)=>l(Object(d.a)(Object(d.a)({},i),{},{[e]:t})),fnDoSearch:e=>o(e)}),innerScroll:!0,sidebarInner:!0,ref:c})};var aj={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/holdFiles",component:tj}]};const nj=Object(H.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"}}))),sj=(e,t)=>{let a="win64";return 1===e?a="win32":3===e&&(a="mac"),Object(g.jsx)("p",{children:"".concat(t,"(").concat(a,")")})},cj=s.a.memo((e=>{let{t:t,tabValue:a,selectedUsers:n,data:s,setupClientData:c,order:r,setSelectedUsers:i,handleRequestSort:l,selectUser:o,expandedItems:b,orgChildren:O,handleExpandClick:u,setOrgChildren:p,selectOrgs:h}=e,_=Object(g.jsx)(Gi.a,{});return _=0===a?Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:n.length>0&&n.length{const t=[];e.target.checked&&s.forEach((e=>{t.push(e.user_id)})),i(t)}})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"id"===r.id,direction:r.direction,onClick:e=>l(e,"id"),children:t("USER")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"org"===r.id,direction:r.direction,onClick:e=>l(e,"org"),children:t("ORG_NAME")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"recommend_type"===r.id,direction:r.direction,onClick:e=>l(e,"recommend_type"),children:t("UPDATE_NEW_CLIENT_LOCK").split(" ").map(((e,t,a)=>Object(g.jsxs)(g.Fragment,{children:[e,tl(e,"client_info"),children:"".concat(t("CLIENT_INFO_VERSION"),"(OS)")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:r.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Wi.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:r.direction,children:t("CLIENT_INFO_INSTALL_AT")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:r.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Wi.a,{className:"table_col_date",align:"center",padding:"default",sortDirection:r.direction,children:t("CLIENT_INFO_LAST_LOGIN_AT")})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(s,[e=>{switch(r.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[r.id]}}],[r.direction]).map((e=>{const a=n.indexOf(e.user_id)>=0;return Object(g.jsxs)(Fi.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)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:a,onClick:e=>e.stopPropagation(),onChange:t=>o(t,e.user_id)})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_id,"(").concat(e.name,")")}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.orgs}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:0===e.recommend_type?t("LOCK"):t("UNLOCK")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?sj(e.client_info.client_type,e.client_info.installed_version):""}),Object(g.jsx)(Wi.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)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsx)("p",{children:"".concat(Et.a.getDateStringToLocalDate(e.client_info.installed_at))}):""}),Object(g.jsx)(Wi.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)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.client_info?Object(g.jsx)("p",{children:"".concat(Et.a.getDateStringToLocalDate(e.client_info.last_logged_at))}):""})]},e.user_id)}))})]}):1===a?Object(g.jsxs)("div",{className:"flex flex-col",children:[Object(g.jsx)(Pr.a,{onClick:e=>u(),style:{alignSelf:"flex-end"},children:0===b.length?t("EXPAND_ALL"):t("COLLAPSE_ALL")}),Object(g.jsx)(fl,{className:"full",childrenObj:O,expandedItems:b,checkbox:!0,fnOnChangeChecked:(e,t,a)=>{const n=O[t].children.map((t=>{const n=Object(d.a)({},t);return n.fid===e&&(n.checked=a),n}));p(Object(d.a)(Object(d.a)({},O),{},{[t]:{children:n}})),h(j.a,e)},fnOnClickHandler:(e,t)=>{}})]}):Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"client_info"===r.id,direction:r.direction,onClick:e=>l(e,"client_info"),children:t("CLIENT_INFO_VERSION")})}),Object(g.jsx)(Wi.a,{className:"table_col_short",align:"center",padding:"default",sortDirection:r.direction,children:t("OS")}),Object(g.jsx)(Wi.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:r.direction,children:t("MAC_ADDRESS")}),Object(g.jsx)(Wi.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"install_at"===r.id,direction:r.direction,onClick:e=>l(e,"install_at"),children:t("CLIENT_INFO_INSTALL_AT")})}),Object(g.jsx)(Wi.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:r.direction,children:t("CLIENT_INFO_IP")}),Object(g.jsx)(Wi.a,{className:"table_col_medi",align:"center",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"login_at"===r.id,direction:r.direction,onClick:e=>l(e,"login_at"),children:t("CLIENT_INFO_LAST_LOGIN_AT")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:r.direction,children:Object(g.jsx)(Hi.a,{active:"id"===r.id,direction:r.direction,onClick:e=>l(e,"id"),children:t("USER")})})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(c,[e=>{switch(r.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[r.id]}}],[r.direction]).map((e=>{let t="win64";return 1===e.client_type?t="win32":3===e.client_type&&(t="mac"),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>o(t,e.user_id),children:[Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.installed_version}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:t}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.mac_address}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Et.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.ip_address}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Et.a.getDateStringToLocalDate(e.last_logged_at)}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:"".concat(e.last_logged_in_user_id,"(").concat(e.last_logged_in_user_name,")")})]},e.mac)}))})]}),_}));var rj=function(e){const t=nj(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),{usersObj:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[d,b]=s.a.useState(0),[j,O]=Object(n.useState)(!0),[u,p]=Object(n.useState)([]),[h,m]=Object(n.useState)([]),[E,f]=Object(n.useState)({}),[x,N]=Object(n.useState)({}),[S,T]=Object(n.useState)([]),[R,v]=Object(n.useState)([]),[L,A]=Object(n.useState)({id:"user_id",direction:"asc"}),[C,y]=s.a.useState(""),[P,w]=Object(n.useState)([]),[D,M]=Object(n.useState)([]),[k,G]=Object(n.useState)([]),[U,F]=Object(n.useState)(0);Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-274,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>{Object.keys(o).length>0?H():a(Object(an.g)()).then((()=>{}))}),[o,a]),Object(n.useEffect)((()=>(u.length>0&&W(C),()=>{W.cancel()})),[C]),Object(n.useEffect)((()=>{m(u)}),[u]);const W=Object(n.useCallback)(Object(ai.debounce)((e=>{try{if(e.length>0)if(0===d){const t=[];for(let a=0;at.name.toLowerCase().includes(e.toLowerCase())))}}),v([0]);else if(0===d)m(u);else{f(x);const e=[];Object.keys(x).forEach((t=>{e.push(Number(t))})),v(e)}}catch(t){console.error(t)}finally{O(!1)}}),500));async function H(){const e={},t=await Object(sn.t)("",0),a=await Object(sn.y)(""),n=await Rn(!0),s=await qn(),c=Object.keys(n),r=[];Object.keys(s.orgChildren).forEach((e=>{r.push(Number(e))})),f(s.orgChildren),N(s.orgChildren),T(s.orgs),v(r);let i=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&&i++;let s="";c.forEach((e=>{n[e]&&n[e].length>0&&n[e].forEach((e=>{e.user_id===t.user_id&&(s+="".concat(Et.a.splitLastDelimiterString(e.disp_path)," | "))}))})),t.orgs=s.substring(0,s.length-2),e[t.user_id]=t,s=""})),F(i),p(t),G(a),O(!1)}if(j)return Object(g.jsx)($,{});function B(e,t){let n="";return e||0!==P.length||0!==D.length?(n=e?r(0===t?"UPDATE_NEW_CLIENT_MESSAGE_3":"UPDATE_NEW_CLIENT_MESSAGE_4"):0===t?0===d?r("UPDATE_NEW_CLIENT_MESSAGE_1").replace("%d",P.length):r("UPDATE_NEW_CLIENT_MESSAGE_6").replace("%d",D.length):0===d?r("UPDATE_NEW_CLIENT_MESSAGE_2").replace("%d",P.length):r("UPDATE_NEW_CLIENT_MESSAGE_7").replace("%d",D.length),a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("UPDATE_NEW_CLIENT_LOCK"),content:n,fnHandleOK:()=>{!async function(e,t){if(O(!0),e)for(let a=0;ay(e.target.value)})})}),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:h.length}),r("CNT")]}),Object(g.jsx)("span",{className:"pipe",children:"|"}),Object(g.jsxs)("span",{children:[r("\uc124\uce58\ud55c \uc0ac\uc6a9\uc790")," ",Object(g.jsx)("span",{className:"count",children:U})]})]}),2!==d?Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>B(!1,0),children:r("UPDATE_NEW_CLIENT_LOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>B(!1,1),children:r("UPDATE_NEW_CLIENT_UNLOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>B(!0,0),children:r("UPDATE_NEW_CLIENT_ALL_LOCK")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:Object(z.a)(t.btn,"default"),type:"button",onClick:()=>B(!0,1),children:r("UPDATE_NEW_CLIENT_ALL_UNLOCK")})})]}):Object(g.jsx)(g.Fragment,{})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(si.a,{value:d,onChange:(e,t)=>{b(t),y("")},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("USER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("ORG_TITLE")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("SETUP_SETTING")})]})}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)(cj,{t:r,tabValue:d,selectedUsers:P,data:h,setupClientData:k,order:L,setSelectedUsers:e=>w(e),handleRequestSort:(e,t)=>function(e,t){const a=t;let n="desc";L.id===t&&"desc"===L.direction&&(n="asc"),A({direction:n,id:a})}(0,t),selectUser:(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))),w(n)}(0,t),expandedItems:R,orgChildren:E,handleExpandClick:()=>function(){if(0===R.length){const e=[];Object.keys(E).forEach((t=>{e.push(Number(t))})),v(e)}else v([])}(),setOrgChildren:e=>f(e),selectOrgs:(e,t)=>function(e,t){const a=D.indexOf(t);let n=[];-1===a?n=n.concat(D,t):0===a?n=n.concat(D.slice(1)):a===D.length-1?n=n.concat(D.slice(0,-1)):a>0&&(n=n.concat(D.slice(0,a),D.slice(a+1))),M(n)}(0,t)})})]})})};var ij={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(rj,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const lj=Object(H.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}})));let oj=!0;var dj=function(e){const t=lj(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState(""),[u,h]=s.a.useState({}),[m,E]=s.a.useState([]),[f,x]=Object(n.useState)([]),[N,S]=Object(n.useState)({});Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-228,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>(m.length>0&&T(j),()=>{T.cancel()})),[j]),Object(n.useEffect)((()=>(oj=!1,b(!0),R(),()=>{oj=!0,O("")})),[a]),Object(n.useEffect)((()=>{v()}),[u]);const T=Object(n.useCallback)(Object(ai.debounce)((e=>{try{e.length>0?(S({0:{children:p.filterFoldersNameByString(m,e)}}),x([0])):v()}catch(t){console.error(t)}finally{b(!1)}}),500));if(o)return Object(g.jsx)($,{});async function R(){const e=await Object(sn.h)(),t={};e.forEach((e=>{t[e.fid]=e.manage_type}));const a=await qn(),n={},s=[];Object.keys(a.orgChildren).forEach((e=>{if(a.orgChildren[e]){const s=a.orgChildren[e].children.map((e=>(e.manage_type=t[e.fid],e)));n[e]={children:s}}s.push(Number(e))})),E(a.orgs.map((e=>(e.manage_type=t[e.fid],e)))),h(n),b(!1)}function v(){const e=[];console.log(u),Object.keys(u).forEach((t=>{e.push(Number(t))})),S(u),x(e),b(!1)}function L(e){b(!0);const t=m.map((t=>({fid:t.fid,manage_type:e})));Object(sn.E)(t).then((e=>{e&&(a(Object(Y.d)({message:r("TAKEOUT_APPROVE_MESSAGE_1")})),R())}))}return Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(z.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)(rc.a,{placeholder:r("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:j,inputProps:{"aria-label":"Search"},onChange:e=>O(e.target.value)})})}),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:m.length}),r("CNT")]})]}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)(Pr.a,{onClick:e=>function(){if(0===f.length){const e=Object(d.a)({},u),t=[];Object.keys(u).forEach((a=>{if(u[a]){const t=[...u[a].children];e[a]={children:t}}t.push(Number(a))})),x(t)}else x([])}(),children:0===f.length?r("EXPAND_ALL"):r("COLLAPSE_ALL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"default",className:t.btn01,type:"button",onClick:e=>L(0),children:r("TAKEOUT_APPROVE_MANAGE_UNLOCK_ALL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:e=>L(1),children:r("TAKEOUT_APPROVE_MANAGE_LOCK_ALL")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsx)("div",{children:Object(g.jsx)(fl,{className:"full",childrenObj:N,expandedItems:f,fnOnClickAction:(e,t)=>{!function(e,t){b(!0);const n=m.map((a=>a.fid===e?Object(d.a)(Object(d.a)({},a),{},{manage_type:t}):a));Object(sn.E)(n).then((e=>{e&&(a(Object(Y.d)({message:r("TAKEOUT_APPROVE_MESSAGE_1")})),R())}))}(t.fid,0===t.manage_type?1:0)},fnOnClickHandler:(t,a)=>{e.fnSetSelectedFid(a.fid),e.fnSetPath(a.disp_path.substring(a.disp_path.indexOf("/",1)))}})})})]})})};const bj=Object(H.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 jj=function(e){const t=bj(),a=Object(_.b)(),n=s.a.useRef(),{t:c}=Object(gt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[l,o]=s.a.useState([]);function b(t,n){const s=l.map((e=>e.user_id===t?Object(d.a)(Object(d.a)({},e),{},{[n.target.name]:n.target.value}):e));Object(sn.F)(e.selected,s).then((t=>{t&&(a(Object(Y.d)({message:c("TAKEOUT_APPROVE_MESSAGE_1")})),Object(sn.k)(e.selected).then((e=>{o(e)})))}))}return s.a.useEffect((()=>{r>=754&&(n.current.style.height="".concat(r-140,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{e.selected>0&&Object(sn.k)(e.selected).then((e=>{o(e)}))}),[e.selected]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(Ir.a,{className:t.cardInfo,children:Object(g.jsxs)(Rl.a,{disableSpacing:!0,children:[Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})}),Object(g.jsx)(B.a,{className:Object(z.a)(t.cardDetailInfo,"noto-bold"),variant:"h6",children:Object(g.jsx)(st.a,{title:e.path,arrow:!0,children:Object(g.jsx)("span",{children:e.selected<=0?"":Et.a.splitLastDelimiterString(e.path)})})})]})}),Object(g.jsx)(Ir.a,{className:t.paperPerm,children:Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_DOC")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_PRINT")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"w-115",children:c("TAKEOUT_WEBLINK")})]})}),Object(g.jsx)(Bi.a,{children:l.map((e=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_id,"(").concat(e.user_name,")")})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(oe.a,{id:"document",name:"document",variant:"outlined",className:Object(z.a)(t.select,""),value:e.document,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(re.a,{className:"justify-center",value:nn.gb,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(re.a,{className:"justify-center",value:nn.fb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(re.a,{className:"justify-center",value:nn.hb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(oe.a,{id:"printer",name:"printer",variant:"outlined",className:Object(z.a)(t.select,""),value:e.printer,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(re.a,{className:"justify-center",value:nn.fb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(re.a,{className:"justify-center",value:nn.hb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsxs)(oe.a,{id:"weblink",name:"weblink",variant:"outlined",className:Object(z.a)(t.select,""),value:e.weblink,onChange:t=>{b(e.user_id,t)},children:[Object(g.jsx)(re.a,{className:"justify-center",value:nn.gb,children:c("TAKEOUT_APPROVE_TYPE_MANUAL")}),Object(g.jsx)(re.a,{className:"justify-center",value:nn.fb,children:c("TAKEOUT_APPROVE_TYPE_AUTO")}),Object(g.jsx)(re.a,{className:"justify-center",value:nn.hb,children:c("TAKEOUT_APPROVE_TYPE_UNAVAILABLE")})]})})]})))})]})})})]})};var Oj={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(dj,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(jj,{selected:t,path:n,fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]},uj=a(1043);const pj=Object(H.a)((e=>({tr:{"& .file_types":{width:105},"& .log_types":{width:50}}})));var hj=function(e){const{t:t}=Object(gt.a)("docbase"),a=pj(),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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:Object(z.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 _j=Object(H.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 mj(e){const{t:t}=Object(gt.a)("docbase"),a=_j(),[n,c]=s.a.useState({file_types:[],log_types:[],includes:"",excludes:""});function r(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)(se.a,{control:Object(g.jsx)(yr.a,{checked:n[e].indexOf(a)>=0,onChange:t=>{const s=n[e],r=s.indexOf(a);-1===r?s.push(a):s.splice(r,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)(P.a,{className:a.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Hr.a,{className:a.title,id:"form-dialog-title",children:t("INSTANT_LOGS_TITLE")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)(Lb.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:[r("file_types","engine"),r("file_types","collector"),r("file_types","agent"),r("file_types","server")]})]}),Object(g.jsxs)(Lb.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:[r("log_types","trace"),r("log_types","info"),r("log_types","warn"),r("log_types","err"),r("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)(Gc.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)(Gc.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)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:t("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:t=>{e.fnHandleOK(n)},children:t("APPLY")})]})]})})]})})}const Ej=Object(H.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 gj=function(e){const t=Ej(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),[o,b]=s.a.useState(!1),[j,O]=s.a.useState({file_types:["engine","collector","agent","server"],log_types:["trace","info","warn","err","critical"],includes:[],excludes:[],rows_per_page:100}),[u,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(r-314,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(mj,{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()));O(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)(Ct.a,{className:Object(z.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)(rc.a,{name:"userID",placeholder:l("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)(Pr.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>""===e.searchObj.userID?(a(Object(Y.d)({message:l("USER_ERROR_MESSAGE_3")})),!1):(e.fnGetUserLogs(),!0),children:l("SEARCH")}),Object(g.jsx)(Pr.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>e.totalInfo.isSearch?(b(!0),!0):(a(Object(Y.d)({message:l("INSTANT_LOGS_ERROR_MESSAGE_1")})),!1),children:l("INSTANT_LOGS_TITLE")}),Object(g.jsx)(Lb.a,{row:!0,className:"row",children:Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{checked:!e.searchObj.omitServer,onChange:t=>{e.fnSetSearchObj("omitServer",!e.searchObj.omitServer)},name:"omitServer"}),label:l("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:l("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(uj.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=Et.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(uj.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=Et.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)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(j),children:Object(g.jsx)(la.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:[l("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:[l("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:[l("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:[l("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)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(hj,{}),Object(g.jsx)(Bi.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)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.log_type}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Et.a.getDateTimeString(e.logged_at)}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.message})]},e.id)}))})]})})]}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:e.totalInfo.total_rows,rowsPerPage:j.rows_per_page,rowsPerPageOptions:[100,250,500],page:u,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:(t,a)=>{e.fnGetLogsPage(a),p(a),c.current.scrollTop=0},onChangeRowsPerPage:e=>{p(1),O(Object(d.a)(Object(d.a)({},j),{},{rows_per_page:Number(e.target.value)})),c.current.scrollTop=0}})]})};var fj={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,r]=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}),[i,l]=s.a.useState({total_rows:0,total_pages:0,isSearch:!1}),[o,b]=s.a.useState([]);let j=0;function O(e){Object(sn.n)(Object(d.a)(Object(d.a)({},e),{},{start_time:Et.a.getDateTimeString(c.startDate),end_time:Et.a.getDateTimeString(c.endDate)})).then((e=>{e.result&&e.total_rows>0?(l({total_rows:e.total_rows,total_pages:e.total_pages,isSearch:!0}),u(1)):(b([]),t(!1))})).catch((e=>{t(!1)}))}function u(e){Object(sn.o)(e).then((e=>{b(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(gj,{loading:e,searchObj:c,totalInfo:i,data:o,setLoading:t,fnGetLogsPage:e=>u(e),fnSetSearchObj:(e,t)=>r(Object(d.a)(Object(d.a)({},c),{},{[e]:t})),fnGetUserLogs:()=>{t(!0),(async()=>{(await Object(sn.d)(c.userID,Et.a.getDateString(c.startDate),Et.a.getDateString(c.endDate),c.omitServer)).result&&(j=setInterval((()=>{Object(sn.e)().then((e=>{console.log(e),e.client_status>=2&&e.server_status>=2&&(clearInterval(j),O({file_types:["engine","collector","agent","server"],log_types:["trace","info","warn","err","critical"],includes:[],excludes:[],rows_per_page:100}))}))}),1e3))})()},fnDoSearch:e=>{t(!0),O(e)}}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const xj=Object(H.a)((e=>({tr:{"& .log_types":{width:120},"& .ip_addr":{width:162},"& .date_time":{width:195}}})));var Nj=function(e){const{t:t}=Object(gt.a)("docbase"),a=xj(),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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:a.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:Object(z.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 Sj=Object(H.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 Tj=function(e){const t=Sj(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),[o,d]=s.a.useState(1);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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)(rc.a,{name:"userID",placeholder:l("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)(Pr.a,{variant:"contained",className:"default w-fit",type:"button",onClick:()=>""===e.searchObj.userID?(a(Object(Y.d)({message:l("USER_ERROR_MESSAGE_3")})),!1):(e.fnDoSearch(),!0),children:l("SEARCH")}),Object(g.jsxs)("div",{className:"date-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})}),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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(uj.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=Et.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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(uj.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=Et.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)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Nj,{}),Object(g.jsx)(Bi.a,{children:e.data.map(((e,t)=>{let a="";switch(e.log_type){case 1:a=l("CLIENT_RUNNING_TYPE_START");break;case 2:a=l("CLIENT_RUNNING_TYPE_STOP");break;case 3:a=l("CLIENT_RUNNING_TYPE_IGNORE");break;case 4:a=l("CLIENT_RUNNING_TYPE_LOGOFF");break;case 5:a=l("CLIENT_RUNNING_TYPE_ABORTED");break;default:a=""}return Object(g.jsxs)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(e.logged_at)}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:a}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ref}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:e.ip_address})]},e.id)}))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:e.totalInfo.total_rows,rowsPerPage:e.searchObj.rowsPerPage,rowsPerPageOptions:[100,250,500],page:o,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:(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 Rj={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientRunningLog",component:function(){Object(_.b)();const[e,t]=s.a.useState(!1),a=s.a.useRef(null),{t:n}=Object(gt.a)("docbase"),c=new Date,[r,i]=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}),[l,o]=s.a.useState({total_rows:0,total_pages:0}),[b,j]=s.a.useState([]);function O(e){Object(sn.m)(e).then((e=>{j(e),t(!1)})).catch((e=>{t(!1)}))}return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Tj,{loading:e,searchObj:r,totalInfo:l,data:b,setLoading:t,fnGetLogsPage:e=>O(e),fnSetSearchObj:(e,t)=>i(Object(d.a)(Object(d.a)({},r),{},{[e]:t})),fnDoSearch:()=>{t(!0),t(!0),(async()=>{const e=await Object(sn.l)(r.userID,Et.a.getDateTimeString(r.startDate),Et.a.getDateTimeString(r.endDate),r.rowsPerPage);console.log(e),e.result?(o({total_rows:e.total_rows,total_pages:e.total_pages}),O(1)):(j([]),t(!1))})()}}),innerScroll:!0,sidebarInner:!0,ref:a})}}]};const vj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/clientsInfo",{user_id:e&&""!==e?za.a.encryptAES(n,e,"utf8","hex"):"",token:s}).then((e=>{e.result?t({clients:e.clients,aes:n}):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Lj=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/allowClientInstall",{user_id:e&&""!==e?za.a.encryptAES(s,e,"utf8","hex"):"",allow:t,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})),Aj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.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))):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),Cj=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((r,i)=>{Ba.a.sendPost("/dlpapi/setStorageAccess",{storage_type:e,read:t,write:a,execute:n,token:i}).then((e=>{e.result?s(e.result):(Ba.a.printError(e),c(e))})).finally((()=>{}))}))})),yj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getPathStorageAccess",{token:n}).then((n=>{n.result?e(n.storages.map((e=>(e.path=za.a.decryptAES(a,e.path,"hex","utf8"),e.path_regex=za.a.decryptAES(a,e.path_regex,"hex","utf8"),e)))):(Ba.a.printError(n),t(n))})).finally((()=>{}))}))})),Pj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getPrograms",{token:n}).then((a=>{a.result?e(a.programs):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),Ij=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/getWhiteURLs",{group_id:e&&""!==e?e:0,token:s}).then((s=>{if(s.result){const a=[],c=[];let r="",i="";s.urls.forEach((t=>{t.name_ex=za.a.decryptAES(n,t.name,"hex","utf8"),t.name=t.name_ex.replace("".concat(e,"_"),""),r=za.a.decryptAES(n,t.url,"hex","utf8"),i=za.a.decryptAES(n,t.url_regex,"hex","utf8"),""!==r&&r.indexOf("##blocksite##")>=0||""!==i&&i.indexOf("##blocksite##")>=0?(t.url=r.replaceAll("##blocksite##",""),t.url_regex=i.replaceAll("##blocksite##",""),c.push(t)):(t.url=r.replaceAll("##whitesite##",""),t.url_regex=i.replaceAll("##whitesite##",""),a.push(t))})),t({uploadURL:a,blockURL:c})}else Ba.a.printError(s),a(s)})).finally((()=>{}))}))})),wj=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((r,i)=>{Ba.a.sendPost("/dlpapi/registerWhiteURL",{name:za.a.encryptAES(r,"".concat(t,"_").concat(e),"utf8","hex"),group_id:t&&""!==t?t:0,url:za.a.encryptAES(r,a,"utf8","hex"),url_regex:za.a.encryptAES(r,n,"utf8","hex"),token:i}).then((e=>{e.result?s(e.result):(Ba.a.printError(e),c(e))})).finally((()=>{}))}))})),Dj=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/removeWhiteURL",{name:za.a.encryptAES(s,e,"utf8","hex"),group_id:t&&""!==t?t:0,token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})),Mj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getNetworks",{token:n}).then((a=>{a.result?e(a.networks):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),kj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/getDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Gj=(e,t,a,n,s,c,r,i,l,o,d,b,j,O,u,p,h,_,m,E,g,f,x)=>new Promise(((N,S)=>{Object(Ya.d)(((T,R)=>{Ba.a.sendPost("/dlpapi/setDefaultUserPolicy",{group_id:e,execute_control:t,network_control:a,takeout_approving:n,bluetooth:c,bluetooth_pairing:r,messenger:i,install:l,mount:s,airdrop:o,printing:d,token:R,allow_release_storage:b,allow_release_network:j,allow_release_execute:O,allow_release_upload_url:u,allow_release_bluetooth:p,allow_release_messenger:h,allow_release_airdrop:_,allow_release_printing:m,max_release_duration_months:E,max_release_duration_days:g,max_release_duration_hours:f,max_release_duration_minutes:x}).then((e=>{e.result?N(e.result):(Ba.a.printError(e),S(e))})).finally((()=>{}))}))})),Uj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeDefaultUserPolicy",{group_id:e,token:s}).then((e=>{e.result?t(e.result):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Fj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getExecuteControls",{token:n}).then((a=>{a.result?e(a.controls):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),Wj=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/setExecuteControl",{group_id:e,program:t,token:c}).then((e=>{e.result?a(e.control_id):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})),Hj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeExecuteControl",{control_id:e,token:s}).then((e=>{e.result?t(e.control_id):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Bj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getNetworkControls",{token:n}).then((a=>{a.result?e(a.controls):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),zj=(e,t,a,n,s)=>new Promise(((c,r)=>{Object(Ya.d)(((i,l)=>{Ba.a.sendPost("/dlpapi/registerNetworkControl",{group_id:e,program:t,network_name:a,inbound_ports:n,outbound_destinations:s,token:l}).then((e=>{e.result?c(e.result):(Ba.a.printError(e),r(e))})).finally((()=>{}))}))})),Yj=(e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.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?r(e.result):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})),Vj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeNetworkControl",{control_id:e,token:s}).then((e=>{e.result?t(e.result):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Kj=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getGrantAccesses",{token:n}).then((a=>{a.result?e(a.grants):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))})),Xj=(e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.a.sendPost("/dlpapi/grantAccess",{group_id:e,program:t,storage:a,readable:n,writable:s,executable:c,token:o}).then((e=>{e.result?r(e.grant_id):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})),qj=(e,t,a,n,s,c,r)=>new Promise(((i,l)=>{Object(Ya.d)(((o,d)=>{Ba.a.sendPost("/dlpapi/updateGrantAccess",{grant_id:e,group_id:t,program:a,storage:n,readable:s,writable:c,executable:r,token:d}).then((e=>{e.result?i(e.grant_id):(Ba.a.printError(e),l(e))})).finally((()=>{}))}))})),Jj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeGrantAccess",{grant_id:e,token:s}).then((e=>{e.result?t(e.grant_id):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),Zj=(e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/dlpapi/approveReleaseBlocking",{rid:e,approve:t,reason_rejected:a?za.a.encryptAES(c,a,"utf8","hex"):"",token:r}).then((e=>{e.result?n(e.result):(Ba.a.printError(e),s(e))})).finally((()=>{}))}))})),Qj=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/stopReleaseBlocking",{rid:e,token:s}).then((e=>{e.result?t(e.result):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),$j=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/inquiryPrintLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=za.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=za.a.decryptAES(n,e.user_name,"hex","utf8"),e.job_name=za.a.decryptAES(n,e.job_name,"hex","utf8"),e.printer_uri=za.a.decryptAES(n,e.printer_uri,"hex","utf8"),e.job_state_message=za.a.decryptAES(n,e.job_state_message,"hex","utf8"),e.job_state_reasons=za.a.decryptAES(n,e.job_state_reasons,"hex","utf8"),e.control_info=za.a.decryptAES(n,e.control_info,"hex","utf8"),e.exec_path=e.exec_path?za.a.decryptAES(n,e.exec_path,"hex","utf8"):"-",e.signing_id=e.signing_id?za.a.decryptAES(n,e.signing_id,"hex","utf8"):"-",e)))):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),eO=(e,t,a,n,s,c,r,i,l)=>new Promise(((o,d)=>{Object(Ya.d)(((b,j)=>{Ba.a.sendPost("/dlpapi/inquiryClientAccessLogs",{user_id:e&&""!==e?za.a.encryptAES(b,e,"utf8","hex"):"",user_name:a&&""!==a?za.a.encryptAES(b,a,"utf8","hex"):"",client_id:t,log_group:n,start_date:s,end_date:c,order_ascending:r,rows_per_page:l,log_type:i,token:j}).then((e=>{e.result?o({rows:e.total_rows,pages:e.total_pages}):(Ba.a.printError(e),d(e))})).finally((()=>{}))}))})),tO=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/inquiryClientAccessLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=za.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=za.a.decryptAES(n,e.user_name,"hex","utf8"),e.args=e.args.map((e=>za.a.decryptAES(n,e,"hex","utf8"))),e.path=za.a.decryptAES(n,e.path,"hex","utf8"),e.source_path=za.a.decryptAES(n,e.source_path,"hex","utf8"),e.dest_path=za.a.decryptAES(n,e.dest_path,"hex","utf8"),e.signing_id=za.a.decryptAES(n,e.signing_id,"hex","utf8"),e.hash=za.a.decryptAES(n,e.hash,"hex","utf8"),e.parent_signing_id=za.a.decryptAES(n,e.parent_signing_id,"hex","utf8"),e.parent_hash=za.a.decryptAES(n,e.parent_hash,"hex","utf8"),e.parent_args=e.parent_args.map((e=>za.a.decryptAES(n,e,"hex","utf8"))),e.local_endpoint=za.a.decryptAES(n,e.local_endpoint,"hex","utf8"),e.remote_endpoint=za.a.decryptAES(n,e.remote_endpoint,"hex","utf8"),e.url=za.a.decryptAES(n,e.url,"hex","utf8"),e.files=e.files.map((e=>za.a.decryptAES(n,e,"hex","utf8"))),e.log=za.a.decryptAES(n,e.log,"hex","utf8"),e)))):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),aO=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getUserGroups",{token:n}).then((n=>{n.result?e(n.groups.map((e=>(e.name=za.a.decryptAES(a,e.name,"hex","utf8"),e.desc=za.a.decryptAES(a,e.desc,"hex","utf8"),e)))):(Ba.a.printError(n),t(n))})).finally((()=>{}))}))})),nO=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/registerUserGroup",{name:za.a.encryptAES(s,e,"utf8","hex"),desc:za.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})),sO=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.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 Ba.a.printError(e),a(e)})).finally((()=>{}))}))})),cO=(e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/registerUserGroupMember",{group_id:e,user_id:za.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.result):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})),rO=()=>new Promise(((e,t)=>{Object(Ya.d)(((a,n)=>{Ba.a.sendPost("/dlpapi/getNonLoggingApps",{token:n}).then((n=>{n.result?e(n.signing_ids.map((e=>(e.signing_id=za.a.decryptAES(a,e.signing_id,"hex","utf8"),e.desc=za.a.decryptAES(a,e.description,"hex","utf8"),e.regex=""!==e.regex?za.a.decryptAES(a,e.regex,"hex","utf8"):"",e.word=""!==e.word?za.a.decryptAES(a,e.word,"hex","utf8"):"",e)))):(Ba.a.printError(n),t(n))})).finally((()=>{}))}))})),iO=(e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((r,i)=>{Ba.a.sendPost("/dlpapi/registerNonLoggingApp",{signing_id:za.a.encryptAES(r,e,"utf8","hex"),desc:za.a.encryptAES(r,t,"utf8","hex"),word:""!==a?za.a.encryptAES(r,a,"utf8","hex"):"",regex:""!==n?za.a.encryptAES(r,n,"utf8","hex"):"",token:i}).then((e=>{e.result?s(e.result):(Ba.a.printError(e),c(e))})).finally((()=>{}))}))})),lO=e=>new Promise(((t,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/unregisterNonLoggingApp",{id:e,token:s}).then((e=>{e.result?t(e.result):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})),oO=Object(be.d)({name:"dlp",initialState:{holdFiles:[]},reducers:{testReducers:(e,t)=>{e.auditLogObj.rowsPerPage=t.payload.value}},extraReducers:{}}),{testReducers:dO}=oO.actions;oO.reducer;const bO=["children","classes","onClose"],jO=Object(vl.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(Dc.a)(e,bO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),OO=Object(H.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 uO(e){const t=OO(),{t:a}=Object(gt.a)("docbase");return console.log(e.logObj),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(jO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.a,{className:t.infoFiled,children:[Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("mac")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.mac_address||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("VERSION")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("LOGIN")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("CONNECTED")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("LOGGED_IN_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.last_logged_in_at?Et.a.getDateStringToLocalDate(e.logObj.last_logged_in_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("LOGGED_OFF_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.last_logged_off_at?Et.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(z.a)("text-left"),children:a("CHECKED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.health_last_checked_at?Et.a.getDateStringToLocalDate(e.logObj.health_last_checked_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_HEALTH_MODULE_SECURE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("SIP")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("EPS")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_HEALTH_MODULE_NETWORK")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_HEALTH_MODULE_CHROME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("BLUETOOTH_LIST")})}),Object(g.jsxs)("div",{className:Object(z.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 pO=["children","classes","onClose"],hO=Object(vl.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(Dc.a)(e,pO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),_O=Object(H.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 mO(e){const t=_O(),{t:a}=Object(gt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(hO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc124\uce58 \ubaa9\ub85d")}),Object(g.jsx)(Br.a,{children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:t.table,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy table_col_date",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_LOGGED_AT")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:a("TYPE")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_PATH")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_SIGNING_ID")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:a("DLP_CLIENT_LOG_HASH")})]})}),Object(g.jsx)(Bi.a,{children:e.list.map((e=>{const t=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(e.path)})]});return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(e.installed_at)}),Object(g.jsx)(Wi.a,{className:"type",align:"center",component:"td",scope:"row",children:e.install?a("INSTALL"):a("DELETE")}),Object(g.jsx)(Wi.a,{className:"path left",align:"left",component:"td",scope:"row",children:t}),Object(g.jsx)(Wi.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.signing_id})}),Object(g.jsx)(Wi.a,{className:"mid left",align:"left",component:"td",scope:"row",children:Object(g.jsx)("p",{className:"text",children:e.hash})})]})}))})]})})]})})}const EO=Object(H.a)((e=>({root:{borderRadius:6},deleteIcon:{color:"#ff6565"},contentWrapper:{height:"".concat(window.innerHeight-226,"px"),padding:"0 20px","& .health-module-title":{width:85,lineHeight:"14px"}},icon:{width:20,height:20},btn:{width:"155px!important"}})));var gO=function(e){const t=EO(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),{usersObj:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[b,O]=Object(n.useState)(!0),[u,p]=Object(n.useState)({id:"user_id",direction:"asc"}),[h,m]=Object(n.useState)([]),[E,f]=Object(n.useState)([]),[x,N]=s.a.useState(""),[S,T]=s.a.useState({open:!1,logObj:{}}),[R,v]=s.a.useState({open:!1,list:[]}),[L,A]=s.a.useState([]);function C(e,t){const a=t;let n="desc";u.id===t&&"desc"===u.direction&&(n="asc"),p({direction:n,id:a})}if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-226,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>{0===Object.keys(o).length?a(Object(an.g)()).then((()=>{vj().then((e=>{f(y(e.clients,e.aes)),O(!1)}))})):vj().then((e=>{f(y(e.clients,e.aes)),O(!1)}))}),[a]),b)return Object(g.jsx)($,{});function y(e,t){const a=[];return e.forEach((e=>{const n=za.a.decryptAES(t,e.user_id,"hex","utf8");0===e.clients.length||e.clients.forEach((s=>{s.mac_address=za.a.decryptAES(t,s.mac_address,"hex","utf8"),a.push(Object(d.a)(Object(d.a)({},s),{},{user_id:n,allow_client_install:e.allow_client_install,isRemove:!0}))}))})),console.log(a),a}function P(e,t){let n="";n=r(""===e?t?"DLP_CLIENT_MESSAGE_1":"DLP_CLIENT_MESSAGE_2":t?"DLP_CLIENT_MESSAGE_3":"DLP_CLIENT_MESSAGE_4"),a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("DLP_CLIENT_TITLE_1"),content:n,fnHandleOK:()=>{if(""!==h){let e=!1;h.forEach((a=>{Lj(a,t).then((t=>{t||(e=!0)})).catch((t=>{e=!0,console.log(t)}))})),e&&a(Object(Y.c)({message:r("DLP_CLIENT_MESSAGE_5")})),vj(x).then((e=>{f(y(e.clients,e.aes)),O(!1)}))}else Lj(e,t).then((e=>{e&&a(Object(Y.d)({message:r("DLP_CLIENT_MESSAGE_6")}))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("DLP_CLIENT_MESSAGE_5")}))})).finally((()=>{vj(x).then((e=>{f(y(e.clients,e.aes)),O(!1)}))}))}})}))}function w(e,t){const a=h.indexOf(t);let n=[];-1===a?n=n.concat(h,t):0===a?n=n.concat(h.slice(1)):a===h.length-1?n=n.concat(h.slice(0,-1)):a>0&&(n=n.concat(h.slice(0,a),h.slice(a+1))),m(n)}return console.log(E),Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(uO,{open:S.open,logObj:S.logObj,bluetoothDevices:L,fnHandleClose:()=>T({open:!1,logObj:{}})}),Object(g.jsx)(mO,{open:R.open,list:R.list,fnHandleClose:()=>v({open:!1,list:[]})}),Object(g.jsxs)(Ct.a,{className:Object(z.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)(rc.a,{placeholder:r("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:x,inputProps:{"aria-label":"Search"},onChange:e=>N(e.target.value)})})}),Object(g.jsx)("div",{style:{marginLeft:10},children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{vj(x).then((e=>{f(y(e.clients,e.aes)),O(!1)}))},children:r("SEARCH")})}),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:E.length}),r("CNT")]})]}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("DLP_CLIENT_TITLE_2"),content:r("DLP_CLIENT_MESSAGE_7"),fnHandleOK:()=>{new Promise(((e,t)=>{Ba.a.sendPost("/dlpapi/updateClient",{}).then((a=>{a.result?e(a.result):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))}})}))},children:r("FORCED_UPDATE")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{P(h,!0)},children:r("ALLOW_INSTALL")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{P(h,!1)},children:r("LOCK_INSTALL")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{P("",!0)},children:r("ALL_ALLOW_INSTALL")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:Object(z.a)(t.btn,"default"),type:"button",onClick:()=>{P("",!1)},children:r("ALL_LOCK_INSTALL")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:h.length>0&&h.length{const t=[];e.target.checked&&E.forEach((e=>{t.push(e.user_id)})),m(t)}})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:u.direction,children:Object(g.jsx)(Hi.a,{active:"id"===u.id,direction:u.direction,onClick:e=>C(0,"id"),children:r("USER")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:u.direction,style:{width:"100px"},children:Object(g.jsx)(Hi.a,{active:"lock"===u.id,direction:u.direction,onClick:e=>C(0,"lock"),children:r("INSTALL")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:u.direction,style:{width:"180px"},children:Object(g.jsx)(Hi.a,{active:"mac"===u.id,direction:u.direction,onClick:e=>C(0,"mac"),children:r("MAC")})}),Object(g.jsx)(Wi.a,{id:"version",className:"",align:"center",padding:"default",sortDirection:u.direction,style:{width:"100px"},children:Object(g.jsx)(Hi.a,{active:"version"===u.id,direction:u.direction,onClick:e=>C(0,"version"),children:r("VERSION")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:u.direction,children:r("LOGIN")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:u.direction,children:r("CONNECTED")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:u.direction,style:{width:"120px"},children:r("LOGGED_IN_AT")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:u.direction,style:{width:"120px"},children:r("LOGGED_OFF_AT")}),Object(g.jsx)(Wi.a,{className:"health-module-title",align:"center",padding:"default",sortDirection:u.direction,children:r("DLP_HEALTH_MODULE_SECURE")}),Object(g.jsx)(Wi.a,{className:"health-module-title",align:"center",padding:"default",sortDirection:u.direction,children:r("DLP_HEALTH_MODULE_EPS")}),Object(g.jsx)(Wi.a,{className:"health-module-title",align:"center",padding:"default",sortDirection:u.direction,children:r("DLP_HEALTH_MODULE_NETWORK")}),Object(g.jsx)(Wi.a,{className:"health-module-title",align:"center",padding:"default",sortDirection:u.direction,children:r("DLP_HEALTH_MODULE_CHROME").split(" ").map(((e,t,a)=>Object(g.jsxs)(g.Fragment,{children:[e,t{switch(u.id){case"id":return e.user_id;case"version":case"mac":return e.version;case"lock":return e.allow_client_install;default:return e[u.id]}}],[u.direction]).map((e=>{const t=h.indexOf(e.user_id)>=0;return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:t=>w(0,e.user_id),children:[Object(g.jsx)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:t=>w(0,e.user_id)})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:"".concat(e.user_id,"(").concat(o[e.user_id]?o[e.user_id].name:"",")")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.allow_client_install?r("PERMIT"):r("BLOCK")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.mac_address}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.version}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.logged_in?r("LOGIN"):"-"}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.connected?r("CONNECTED"):r("NOT_CONNECTED")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Et.a.getDateStringToLocalDate(e.last_logged_in_at)}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Et.a.getDateStringToLocalDate(e.last_logged_off_at)}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:1===e.health_module_secure?r("CLIENT_RUNNING_TYPE_START"):r("CLIENT_RUNNING_TYPE_STOP")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:1===e.health_module_eps?r("ACTIVE"):r("INACTIVE")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:1===e.health_module_network?r("ACTIVE"):r("INACTIVE")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.health_module_chrome<0?r("NOT_INSTALLED"):1===e.health_module_chrome?r("ACTIVE"):r("INACTIVE")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.isRemove?Object(g.jsxs)("div",{children:[Object(g.jsx)(st.a,{title:r("INSTALL_LIST"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{var a;(a=e.client_id,new Promise(((e,t)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/clientInstallApps",{client_id:a,token:s}).then((a=>{a.result?e(a.installs.map((e=>(e.path=za.a.decryptAES(n,e.path,"hex","utf8"),e.signing_id=za.a.decryptAES(n,e.signing_id,"hex","utf8"),e.hash=za.a.decryptAES(n,e.hash,"hex","utf8"),e)))):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))}))).then((e=>{v({open:!0,list:e})}))},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"list_alt;"})})}),Object(g.jsx)(st.a,{title:r("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{var a;(a=e.client_id,new Promise(((e,t)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/clientBluetoothDevices",{client_id:a,token:s}).then((a=>{a.result?e(a.devices.map((e=>(e.device_name=za.a.decryptAES(n,e.device_name,"hex","utf8"),e.device_address=za.a.decryptAES(n,e.device_address,"hex","utf8"),e.device_type=za.a.decryptAES(n,e.device_type,"hex","utf8"),e)))):(Ba.a.printError(a),t(a))})).finally((()=>{}))}))}))).then((e=>A(e))),T({open:!0,logObj:Object(d.a)(Object(d.a)({},e),{},{user_name:o[e.user_id]?o[e.user_id].name:""})})},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"pageview"})})}),Object(g.jsx)(st.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("DLP_CLIENT_DELETE_TITLE"),content:r("DLP_CLIENT_DELETE_CONTENT"),fnHandleOK:()=>{var t,n;(t=e.user_id,n=e.mac_address,new Promise(((e,a)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/removeClient",{user_id:za.a.encryptAES(s,t,"utf8","hex"),mac_address:za.a.encryptAES(s,n,"utf8","hex"),token:c}).then((t=>{t.result?e(t.result):(Ba.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&a(Object(Y.d)({message:r("DLP_CLIENT_DELETE_SUCCESS")}))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("DLP_CLIENT_DELETE_FAIL")}))})).finally((()=>{vj(x).then((e=>{f(y(e.clients,e.aes)),O(!1)}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})]}):Object(g.jsx)(g.Fragment,{})})]},e.user_id)}))})]})})]})]})};var fO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_client",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(gO,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const xO=["children","classes","onClose"],NO=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),SO=Object(vl.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(Dc.a)(e,xO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(co.a,{})}):null]}))})),TO=Object(H.a)((e=>({backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"},root:{padding:0,"& .MuiDialog-paper":{width:"100%",maxWidth:604}},title:{background:"#353b48",color:"#ffffff",fontSize:16,paddingLeft:30},body:{background:"#f2f3f5",padding:"24px 30px 30px",color:"#353b48","&>.content":{background:"#ffffff",borderRadius:6,padding:20},"&>.content>.row":{display:"flex",alignItems:"center",margin:"15px 0"},"&>.content>.row:first-child":{marginTop:0},"&>.content>.row:last-child":{marginBottom:0},"&>.content>.row>.title":{width:160,cursor:"default",fontSize:14},"&>.content>.row>.title>span:before":{color:"#00cfe2",content:'"*"',marginRight:"5px"},"&>.content>.row>.input-area":{width:"100%",maxWidth:382,cursor:"default",fontSize:14},"&>.content>.row>.input-area>.hint":{color:"#9f9f9f",fontSize:"1.2rem"}},buttonWrapper:{display:"flex",justifyContent:"center",marginTop:20,"& .MuiButton-root":{},"& .MuiButton-root:first-child":{marginRight:16}}})));function RO(e){const t=Object(_.b)(),a=TO(),{t:n}=Object(gt.a)("docbase"),c=s.a.useRef(null),[r,i]=s.a.useState(""),[l,o]=s.a.useState(""),[d,b]=s.a.useState(!1),[j,O]=s.a.useState(!1),[u,p]=s.a.useState(!1);return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(i(e.selectedObj.path),o(e.selectedObj.path_regex),b(e.selectedObj.read),O(e.selectedObj.write),p(e.selectedObj.execute))),()=>{i(""),o("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:Object(z.a)(a.root),open:e.open,TransitionComponent:NO,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(SO,{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)(Br.a,{className:Object(z.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)(Gc.a,{className:"",type:"text",name:"path",value:r,onChange:e=>i(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)(Gc.a,{className:"",type:"text",name:"path_regex",value:l,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)(Gc.a,{select:!0,className:"mb-24",label:n("\uc77d\uae30"),value:d,fullWidth:!0,onChange:e=>b(!d),children:[Object(g.jsx)(re.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(re.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)(Gc.a,{select:!0,className:"mb-24",label:n("\uc4f0\uae30"),value:j,fullWidth:!0,onChange:e=>O(!j),children:[Object(g.jsx)(re.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(re.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)(Gc.a,{select:!0,className:"mb-24",label:n("\uc2e4\ud589"),value:u,fullWidth:!0,onChange:e=>p(!u),children:[Object(g.jsx)(re.a,{value:!0,children:"\ud5c8\uc6a9"}),Object(g.jsx)(re.a,{value:!1,children:"\ucc28\ub2e8"})]})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(r,l,d,j,u):t(Object(I.c)({children:Object(g.jsx)(ii.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,r,l,d,j,u)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const vO=["children","classes","onClose"],LO=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),AO=Object(vl.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(Dc.a)(e,vO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(co.a,{})}):null]}))})),CO=Object(H.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 yO(e){const t=Object(_.b)(),a=CO(),{t:n}=Object(gt.a)("docbase"),c=s.a.useRef(null),[r,i]=s.a.useState(""),[l,o]=s.a.useState(""),[d,b]=s.a.useState(""),[j,O]=s.a.useState(""),[u,p]=s.a.useState(1);return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(i(e.selectedObj.name),o(e.selectedObj.signing_id),b(e.selectedObj.hash),O(e.selectedObj.program_name),p(e.selectedObj.process_type))),()=>{i(""),o(""),b(""),O("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:Object(z.a)(a.root),open:e.open,TransitionComponent:LO,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(AO,{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)(Br.a,{className:Object(z.a)(a.body,"modal-body"),children:Object(g.jsxs)("div",{className:"content",children:[Object(g.jsx)(zr.a,{className:"text-1",id:"alert-dialog-slide-description",children:n("\ub4f1\ub85d\ubc29\ubc95.")}),Object(g.jsx)(zr.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)(Gc.a,{className:"",type:"text",name:"name",value:r,onChange:e=>i(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)(Gc.a,{className:"",type:"text",name:"signing_id",value:l,onChange:e=>o(e.target.value),variant:"outlined",size:"small",required:!0,fullWidth:!0,inputProps:{autocapitalize:"off"},inputRef:c})})]}),Object(g.jsx)(zr.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)(Gc.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)(zr.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)(Gc.a,{className:"",type:"text",name:"program_name",value:j,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("\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785")})}),Object(g.jsx)("div",{className:"input-area",children:Object(g.jsxs)(Gc.a,{select:!0,className:"mb-24",label:n("\ud504\ub85c\uc138\uc2a4 \ud0c0\uc785"),value:u,fullWidth:!0,onChange:e=>p(e.target.value),children:[Object(g.jsx)(re.a,{value:1,children:"\uc77c\ubc18 \ud504\ub85c\uadf8\ub7a8"}),Object(g.jsx)(re.a,{value:2,children:"\uc2dc\uc2a4\ud0ec \ud504\ub85c\uadf8\ub7a8"}),Object(g.jsx)(re.a,{value:3,children:"\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800"}),Object(g.jsx)(re.a,{value:0,children:"\uc54c \uc218 \uc5c6\ub294 \ud504\ub85c\uadf8\ub7a8"})]})})]}),Object(g.jsxs)("div",{className:a.buttonWrapper,children:[Object(g.jsx)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(r,l,d,j,u):t(Object(I.c)({children:Object(g.jsx)(ii.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,r,l,d,j,u)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const PO=["children","classes","onClose"],IO=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),wO=Object(vl.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(Dc.a)(e,PO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(co.a,{})}):null]}))})),DO=Object(H.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 MO(e){const t=Object(_.b)(),a=DO(),{t:n}=Object(gt.a)("docbase"),c=s.a.useRef(null),[r,i]=s.a.useState(""),[l,o]=s.a.useState(""),[d,b]=s.a.useState("");return s.a.useEffect((()=>(e.open&&(c.current.focus(),1===e.mode&&(i(e.selectedObj.name),o(e.selectedObj.inbound_ports),b(e.selectedObj.outbound_destinations))),()=>{i(""),o(""),b("")})),[e.open]),Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:Object(z.a)(a.root),open:e.open,TransitionComponent:IO,keepMounted:!0,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)(wO,{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)(Br.a,{className:Object(z.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)(Gc.a,{className:"",type:"text",name:"name",value:r,onChange:e=>i(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)(Gc.a,{className:"",type:"text",name:"inbound_ports",value:l,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)(Gc.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)(Pr.a,{onClick:e.fnHandleClose,variant:"contained",className:"default","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",onClick:a=>{0===e.mode?e.fnHandleOk(r,l,d):t(Object(I.c)({children:Object(g.jsx)(ii.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,r,l,d)}})}))},children:0===e.mode?n("ADD"):n("\uc218\uc815")})]})]})})]})})}const kO=Object(H.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 GO=function(e){const t=kO(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),{usersObj:o}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),[b,O]=s.a.useState(0),[u,p]=s.a.useState({pathStorage:!1,program:!1,network:!1,mode:0}),[h,m]=Object(n.useState)(!0),[E,f]=s.a.useState([]),[x,N]=s.a.useState({programs:[],networks:[],storages:[]}),[S,T]=s.a.useState(0),[R,v]=Object(n.useState)({id:"user_id",direction:"asc"}),[L,A]=s.a.useState(""),[C,y]=Object(n.useState)({});async function P(){const e=await Aj();f(e);const t=await yj(),a=await Pj(),n=await Mj();N({storages:t,programs:a,networks:n}),m(!1)}function w(){Aj().then((e=>{f(e)}))}function D(e,t){const a=t;let n="desc";R.id===t&&"desc"===R.direction&&(n="asc"),v({direction:n,id:a})}return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-492,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>{0===Object.keys(o).length?a(Object(an.g)()).then((()=>{P()})):P()}),[a]),Object(n.useEffect)((()=>{switch(b){case 0:T(x.storages.length);break;case 1:T(x.programs.length);break;case 2:T(x.networks.length);break;default:T(0)}console.log(x),y({})}),[b,x,L]),h?Object(g.jsx)($,{}):Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(RO,{open:u.pathStorage,selectedObj:C,mode:u.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},u),{},{pathStorage:!1})),fnHandleOk:(e,t,n,s,c)=>{((e,t,a,n,s)=>new Promise(((c,r)=>{Object(Ya.d)(((i,l)=>{Ba.a.sendPost("/dlpapi/addPathStorageAccess",{path:e&&""!==e?za.a.encryptAES(i,e,"utf8","hex"):"",path_regex:t&&""!==t?za.a.encryptAES(i,t,"utf8","hex"):"",read:a,write:n,execute:s,token:l}).then((e=>{e.result?c(e.result):(Ba.a.printError(e),r(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(Y.d)({message:r("PATH_STORAGE_MESSAGE_3")})),yj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e})),O(0),p(Object(d.a)(Object(d.a)({},u),{},{pathStorage:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PATH_STORAGE_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s,c,i)=>{((e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.a.sendPost("/dlpapi/updatePathStorageAccess",{storage_id:e,path:t&&""!==t?za.a.encryptAES(l,t,"utf8","hex"):"",path_regex:a&&""!==a?za.a.encryptAES(l,a,"utf8","hex"):"",read:n,write:s,execute:c,token:o}).then((e=>{e.result?r(e.result):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})))(e,t,n,s,c,i).then((e=>{e&&(a(Object(Y.d)({message:r("PATH_STORAGE_MESSAGE_5")})),yj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e})),O(0),p(Object(d.a)(Object(d.a)({},u),{},{pathStorage:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PATH_STORAGE_MESSAGE_6")}))}))}}),Object(g.jsx)(yO,{open:u.program,selectedObj:C,mode:u.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},u),{},{program:!1})),fnHandleOk:(e,t,n,s,c)=>{((e,t,a,n,s)=>new Promise(((c,r)=>{Object(Ya.d)(((i,l)=>{Ba.a.sendPost("/dlpapi/registerProgram",{name:e,signing_id:t,hash:a,program_name:n,process_type:s,token:l}).then((e=>{e.result?c(e.result):(Ba.a.printError(e),r(e))})).finally((()=>{}))}))})))(e,t,n,s,c).then((e=>{e&&(a(Object(Y.d)({message:r("PROGRAM_MESSAGE_3")})),Pj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e})),O(1),p(Object(d.a)(Object(d.a)({},u),{},{program:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PROGRAM_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s,c,i)=>{((e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.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?r(e.result):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})))(e,t,n,s,c,i).then((e=>{e&&(a(Object(Y.d)({message:r("PROGRAM_MESSAGE_5")})),Pj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e})),O(1),p(Object(d.a)(Object(d.a)({},u),{},{program:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PROGRAM_MESSAGE_6")}))}))}}),Object(g.jsx)(MO,{open:u.network,selectedObj:C,mode:u.mode,fnHandleClose:()=>p(Object(d.a)(Object(d.a)({},u),{},{network:!1})),fnHandleOk:(e,t,n)=>{((e,t,a)=>new Promise(((n,s)=>{Object(Ya.d)(((c,r)=>{Ba.a.sendPost("/dlpapi/registerNetwork",{name:e,inbound_ports:t,outbound_destinations:a,token:r}).then((e=>{e.result?n(e.result):(Ba.a.printError(e),s(e))})).finally((()=>{}))}))})))(e,t,n).then((e=>{e&&(a(Object(Y.d)({message:r("NETWORK_MESSAGE_3")})),Mj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e})),O(2),p(Object(d.a)(Object(d.a)({},u),{},{network:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("NETWORK_MESSAGE_4")}))}))},fnHandleUpdate:(e,t,n,s)=>{((e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((r,i)=>{Ba.a.sendPost("/dlpapi/updateNetwork",{network_id:e,name:t,inbound_ports:a,outbound_destinations:n,token:i}).then((e=>{e.result?s(e.result):(Ba.a.printError(e),c(e))})).finally((()=>{}))}))})))(e,t,n,s).then((e=>{e&&(a(Object(Y.d)({message:r("NETWORK_MESSAGE_5")})),Pj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e})),O(2),p(Object(d.a)(Object(d.a)({},u),{},{network:!1}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("NETWORK_MESSAGE_6")}))}))}}),Object(g.jsxs)(Ct.a,{className:Object(z.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:r("DLP_POLICY_TITLE")}),Object(g.jsxs)("div",{children:[Object(g.jsxs)("div",{className:"row title",children:[Object(g.jsx)("div",{children:r("DLP_POLICY_STORAGE_TYPE")}),Object(g.jsx)("div",{children:r("AVERAGE_READ")}),Object(g.jsx)("div",{children:r("AVERAGE_WRITE")}),Object(g.jsx)("div",{children:r("CLIENT_RUNNING_TYPE_START")})]}),E.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)(Gc.a,{select:!0,className:"",label:"",value:e.read,fullWidth:!0,children:Object(g.jsx)(re.a,{value:!0,children:r("PERMIT")})})}),Object(g.jsx)("div",{children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:e.write,fullWidth:!0,onChange:t=>{Cj(e.storage_type,e.read,!e.write,e.execute).then((e=>{e&&a(Object(Y.d)({message:r("DLP_CLIENT_MESSAGE_6")}))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("DLP_CLIENT_MESSAGE_5")}))})).finally((()=>{w()}))},children:[Object(g.jsx)(re.a,{value:!0,children:r("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:r("BLOCK")})]})}),Object(g.jsx)("div",{children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:e.execute,fullWidth:!0,onChange:t=>{Cj(e.storage_type,e.read,e.write,!e.execute).then((e=>{e&&a(Object(Y.d)({message:r("DLP_CLIENT_MESSAGE_6")}))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("DLP_CLIENT_MESSAGE_5")}))})).finally((()=>{w()}))},children:[Object(g.jsx)(re.a,{value:!0,children:r("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:r("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)(rc.a,{placeholder:r("SEARCH"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:L,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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:S}),r("CNT")]})]}),Object(g.jsxs)("div",{className:"btn-group",children:[Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},u),{},{pathStorage:!0,mode:Object.keys(C).length>0?1:0})),children:Object.keys(C).length>0&&0===b?r("PATH_STORAGE_TITLE_2"):r("PATH_STORAGE_TITLE_3")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},u),{},{program:!0,mode:Object.keys(C).length>0?1:0})),children:Object.keys(C).length>0&&1===b?r("PROGRAM_TITLE_2"):r("PROGRAM_TITLE_3")})}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>p(Object(d.a)(Object(d.a)({},u),{},{network:!0,mode:Object.keys(C).length>0?1:0})),children:Object.keys(C).length>0&&2===b?r("NETWORK_TITLE_2"):r("NETWORK_TITLE_3")})})]})]}),Object(g.jsx)("div",{className:"type-tabs",children:Object(g.jsxs)(si.a,{value:b,onChange:(e,t)=>{O(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("PATH_STORAGE")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("PROGRAM")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:r("NETWORK")})]})}),Object(g.jsx)(J.a,{className:Object(z.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)(Gi.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:Object.keys(C).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:Object(g.jsx)(Hi.a,{active:"path"===R.id,direction:R.direction,onClick:e=>D(0,"path"),children:r("PATH")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:Object(g.jsx)(Hi.a,{active:"path_regex"===R.id,direction:R.direction,onClick:e=>D(0,"path_regex"),children:r("PATH_REG")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("AVERAGE_READ")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("AVERAGE_WRITE")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("CLIENT_RUNNING_TYPE_START")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(x.storages,[e=>{switch(R.id){case"path":return e.path;case"path_regex":return e.path_regex;default:return e[R.id]}}],[R.direction]).map((e=>{const t=C.storage_id===e.storage_id;return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>y(t?{}:e),children:[Object(g.jsx)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>y(t?{}:e)})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.path}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.path_regex}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.read?r("PERMIT"):r("BLOCK")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.write?r("PERMIT"):r("BLOCK")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:e.execute?r("PERMIT"):r("BLOCK")}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("PATH_STORAGE_TITLE_1"),content:r("PATH_STORAGE_CONTENT_1"),fnHandleOK:()=>{var t;(t=e.storage_id,new Promise(((e,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removePathStorageAccess",{storage_id:t,token:s}).then((t=>{t.result?e(t.result):(Ba.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(Y.d)({message:r("PATH_STORAGE_MESSAGE_1")})),yj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{storages:e}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PATH_STORAGE_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.storage_id)}))})]});break;case 1:e=Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:Object.keys(C).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:Object(g.jsx)(Hi.a,{active:"name"===R.id,direction:R.direction,onClick:e=>D(0,"name"),children:r("DLP_PROGRAM_MANAGE_NAME")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:r("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("DLP_PROGRAM_HASH")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:Object(g.jsx)(Hi.a,{active:"program_name"===R.id,direction:R.direction,onClick:e=>D(0,"program_name"),children:r("DLP_PROGRAM_NAME")})}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("DLP_PROCESS_TYPE")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(x.programs,[e=>{switch(R.id){case"name":return e.name;case"program_name":return e.program_name;default:return e[R.id]}}],[R.direction]).map((e=>{const t=C.id===e.id;let n=r("DLP_PROCESS_TYPE_UNKNOWN");return 1===e.process_type?n=r("DLP_PROCESS_TYPE_NORMAL"):2===e.process_type?n=r("DLP_PROCESS_TYPE_SYSTEM"):3===e.process_type&&(n=r("DLP_PROCESS_TYPE_CHROME")),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>y(t?{}:e),children:[Object(g.jsx)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>y(t?{}:e)})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.signing_id}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",align:"",children:e.hash}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",align:"",children:e.program_name}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",align:"",children:n}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("PROGRAM_TITLE_1"),content:r("PROGRAM_CONTENT_1"),fnHandleOK:()=>{var t,n;(t=e.id,n=!0,new Promise(((e,a)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/removeProgram",{program_id:t,force_remove:n,token:c}).then((t=>{t.result?e(t.result):(Ba.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(Y.d)({message:r("PROGRAM_MESSAGE_1")})),Pj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{programs:e}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("PROGRAM_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]});break;case 2:e=Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"w-40 md:w-64 text-center z-99",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:Object.keys(C).length>0,onChange:e=>{e.stopPropagation()}})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:Object(g.jsx)(Hi.a,{active:"name"===R.id,direction:R.direction,onClick:e=>D(0,"name"),children:r("DLP_NETWORK_MANAGE_NAME")})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",padding:"default",sortDirection:R.direction,children:r("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction,children:r("DLP_NETWORK_OUTBOUND_DESTINATION")}),Object(g.jsx)(Wi.a,{className:"",align:"center",padding:"default",sortDirection:R.direction})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(x.networks,[e=>"name"===R.id?e.name:e[R.id]],[R.direction]).map((e=>{const t=C.id===e.id;return Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox","aria-checked":t,tabIndex:-1,selected:t,onClick:a=>y(t?{}:e),children:[Object(g.jsx)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:t,onClick:e=>e.stopPropagation(),onChange:a=>y(t?{}:e)})}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.name}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:e.inbound_ports}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",align:"",children:e.outbound_destinations}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("NETWORK_TITLE_1"),content:r("NETWORK_CONTENT_1"),fnHandleOK:()=>{var t;(t=e.id,new Promise(((e,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeNetwork",{network_id:t,token:s}).then((t=>{t.result?e(t.result):(Ba.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{e&&(a(Object(Y.d)({message:r("NETWORK_MESSAGE_1")})),Mj().then((e=>{N(Object(d.a)(Object(d.a)({},x),{},{networks:e}))})))})).catch((e=>{console.log(e),a(Object(Y.c)({message:r("NETWORK_MESSAGE_2")}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},e.user_id)}))})]})}return e}()})]})]})};var UO={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/dlp_policy_setup",component:function(){const e=s.a.useRef(null);return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(GO,{fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const FO=Object(H.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 WO=function(e){FO(e);const{t:t}=Object(gt.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:"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)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:a.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const HO=["children","classes","onClose"],BO=Object(vl.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(Dc.a)(e,HO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),zO=Object(H.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 YO(e){const t=zO(),a=Object(_.b)(),{t:n}=Object(gt.a)("docbase"),[c,r]=s.a.useState("");let i="";switch(e.requestObj.release_type||""){case 0:i=n("\uc804\uccb4");break;case 1:i=n("\ub9e4\uccb4 \uc811\uadfc");break;case 2:i=n("\ub124\ud2b8\uc6cc\ud06c");break;case 3:i=n("\uc2e4\ud589");break;case 4:i=n("\ube0c\ub77c\uc6b0\uc800 \uc5c5\ub85c\ub4dc");break;case 5:i=n("\ube14\ub8e8\ud22c\uc2a4 \ud30c\uc77c\uc804\uc1a1");break;case 6:i=n("\ube14\ub8e8\ud22c\uc2a4 \uc7a5\uce58 \ud398\uc5b4\ub9c1");break;case 7:i=n("\uba54\uc2e0\uc800 \ud30c\uc77c\uc804\uc1a1");break;case 100:i=n("\uc124\uce58\ubaa8\ub4dc")}let l="";switch(e.requestObj.status){case 1:l=n("\uc694\uccad");break;case 100:l=n("\uc2b9\uc778");break;case 110:l=n("\uc790\ub3d9 \uc2b9\uc778");break;case 200:l=n("\uac70\uc808");break;case 300:l=n("\uc694\uccad \ucca0\ud68c")}return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(BO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:n("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.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(z.a)("text-left"),children:n("\uc694\uccad\uc77c\uc2dc")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.requestObj.requested_at?Et.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(z.a)("text-left"),children:n("\uc694\uccad\uc790")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\uc2b9\uc778\uc790")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud574\uc81c \uc885\ub958")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:i}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:n("\uc0c1\ud0dc")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:l})]}),Object(g.jsxs)("div",{children:[Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:n("\ud574\uc81c \uc2dc\uac04")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud574\uc81c \uc885\ub8cc \uc2dc\uac04")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.requestObj.expire_at?Et.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ub300\uc0c1 \ub9e4\uccb4")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:c})]}),s]});break}case 2:{let s=Object(g.jsx)(g.Fragment,{}),c="\uc804\uccb4",r="\uc804\uccb4";"*"!==e.requestObj.inbound_ports&&(c=e.requestObj.inbound_ports),"*:*"!==e.requestObj.outbound_destinations&&(r=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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ub4e4\uc5b4\uc624\ub294 \ud3ec\ud2b8")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:c}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:n("\uc6d0\uaca9\uc9c0")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:r})]}),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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\ud504\ub85c\uadf8\ub7a8 \ud574\uc2dc")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("URL")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\uc694\uccad\uc0ac\uc720")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:n("\uac70\uc808 \uc0ac\uc720")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput),children:Object(g.jsx)(Gc.a,{id:"reason_rejected",type:"text",value:c,onChange:e=>r(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)(Pr.a,{className:"default",variant:"contained",type:"button",onClick:t=>""===c?(a(Object(Y.c)({message:n("\uac70\uc808 \uc0ac\uc720\ub97c \uc785\ud574\ud574\uc8fc\uc138\uc694.")})),!1):(a(Object(I.c)({children:Object(g.jsx)(ii.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:()=>{Zj(e.requestObj.rid,!1,c).then((t=>{t&&(a(Object(Y.d)({message:n("\ud574\uc81c \uc694\uccad\uc744 \uac70\uc808\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(Y.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)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.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:()=>{Zj(e.requestObj.rid,!0,"").then((t=>{t&&(a(Object(Y.d)({message:n("\ud574\uc81c \uc694\uccad\uc744 \uc218\ub77d\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(Y.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&&Et.a.getDateDifferenceByNow(e.requestObj.expire_at)>0?Object(g.jsx)(Pr.a,{color:"primary",variant:"contained",className:"","aria-label":"Register",type:"button",onClick:t=>{a(Object(I.c)({children:Object(g.jsx)(ii.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:()=>{Qj(e.requestObj.rid).then((t=>{t&&(a(Object(Y.d)({message:n("\ud574\uc81c\ub97c \uc911\uc9c0\ud558\uc600\uc2b5\ub2c8\ub2e4.")})),e.fnReset())})).catch((e=>{a(Object(Y.c)({message:n("\uc911\uc9c0\uc5d0 \uc2e4\ud328\ud558\uc600\uc2b5\ub2c8\ub2e4.")}))}))}})}))},children:n("\uc911\uc9c0")}):Object(g.jsx)(g.Fragment,{})]})]})})}const VO=Object(H.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 KO=function(e){const t=VO(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[u,p]=s.a.useState({open:!1,requestObj:{}}),[h,m]=s.a.useState({userID:"",status:0,startDate:Et.a.getLastWeek(),endDate:new Date}),[E,f]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-228,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>(b(!0),x(j.rows_per_page),()=>{m({userID:"",status:0,startDate:Et.a.getLastWeek(),endDate:new Date})})),[a]),o)return Object(g.jsx)($,{});async function x(e,t){b(!0);const a=await((e,t,a,n)=>new Promise(((s,c)=>{Object(Ya.d)(((r,i)=>{Ba.a.sendPost("/dlpapi/inquiryReleaseBlockings",{start_date:e,end_date:t,status:a,rows_per_page:n,token:i}).then((e=>{e.result?s({rows:e.total_rows,pages:e.total_pages}):(Ba.a.printError(e),c(e))})).finally((()=>{}))}))})))(Et.a.getDateString(h.startDate),Et.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)=>{Ba.a.sendPost("/dlpapi/inquiryReleaseBlockingsPage",{page:e,token:s}).then((e=>{e.result?t(e.requests.map((e=>(e.inbound_ports=za.a.decryptAES(n,e.inbound_ports,"hex","utf8"),e.outbound_destinations=za.a.decryptAES(n,e.outbound_destinations,"hex","utf8"),e.program_signing_id=za.a.decryptAES(n,e.program_signing_id,"hex","utf8"),e.program_hash=za.a.decryptAES(n,e.program_hash,"hex","utf8"),e.program_ref_path=za.a.decryptAES(n,e.program_ref_path,"hex","utf8"),e.urls=za.a.decryptAES(n,e.urls,"hex","utf8"),e.requester=za.a.decryptAES(n,e.requester,"hex","utf8"),e.requester_name=za.a.decryptAES(n,e.requester_name,"hex","utf8"),e.reason_request=za.a.decryptAES(n,e.reason_request,"hex","utf8"),e.approver=za.a.decryptAES(n,e.approver,"hex","utf8"),e.approver_name=za.a.decryptAES(n,e.approver_name,"hex","utf8"),e.reason_rejected=za.a.decryptAES(n,e.reason_rejected,"hex","utf8"),e)))):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);f(t)}(n):f([]),O(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(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(YO,{open:u.open,requestObj:u.requestObj,fnReset:()=>{x(j.rows_per_page,j.current_page),p({open:!1,requestObj:{}})},fnHandleClose:()=>p({open:!1,requestObj:{}})}),Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(z.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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:E.length}),r("CNT")]})]}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(rc.a,{placeholder:r("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:h.userID,inputProps:{"aria-label":"Search"},onChange:e=>m(Object(d.a)(Object(d.a)({},h),{},{userID:e.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(rc.a,{placeholder:r("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:h.clientID,inputProps:{"aria-label":"Search"},onChange:e=>m(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:r("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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()&&m(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)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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()&&m(Object(d.a)(Object(d.a)({},h),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(j.rows_per_page)},children:r("SEARCH")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(WO,{}),Object(g.jsx)(Bi.a,{children:E.map((a=>{let n="",s="";switch(a.status){case 1:n=r("TAKEOUT_REQUEST");break;case 100:n=r("TAKEOUT_APPROVED");break;case 110:n=r("TAKEOUT_APPROVED_AUTO");break;case 200:n=r("TAKEOUT_REJECTED");break;case 300:n=r("TAKEOUT_WITHDRAWN")}switch(a.release_type){case 0:s=r("ALL");break;case 1:s=r("DLP_ALLOW_RELEASE_STORAGE");break;case 2:s=r("DLP_ALLOW_RELEASE_NETWORK");break;case 3:s=r("DLP_ALLOW_RELEASE_EXECUTE");break;case 4:s=r("DLP_ALLOW_RELEASE_UPLOAD_URL");break;case 5:s=r("DLP_BLUETOOTH_FILE");break;case 6:s=r("DLP_BLUETOOTH_PAIRING");break;case 7:s=r("DLP_ALLOW_RELEASE_MESSENGER");break;case 8:s=r("DLP_ALLOW_RELEASE_AIRDROP");break;case 9:s=r("DLP_ALLOW_RELEASE_PRINTING");break;case 100:s=r("DLP_ALLOW_SETUP")}return Object(g.jsxs)(Fi.a,{className:Object(z.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.requester_name,"(").concat(a.requester,")")}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:"".concat(a.approver_name,"(").concat(a.approver,")")}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:s}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.duration}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:a.reason_request}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.approved_at)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{p({open:!0,requestObj:a})},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]})]})};var XO={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(KO,{selected:t,fnSetSelectedFid:e=>a(e)}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};Object(H.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 qO=function(e){const{t:t}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{children:a.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const JO=["children","classes","onClose"],ZO=Object(vl.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(Dc.a)(e,JO);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),QO=Object(H.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 $O(e){const t=QO(),{t:a}=Object(gt.a)("docbase"),n=Object(_.b)();return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(ZO,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.registered_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_DOC_FORMAT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.doc_format||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_COPIES")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_NAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.job_created_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.job_processing_at?Et.a.getDateStringToLocalDate(e.logObj.job_processing_at):""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.job_completed_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_PRINTER_URL")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_STATE_MESSAGE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PRINT_JOB_STATE_REASONS")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_PROGRAM_NAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_PROGRAM_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_CONTROL_INFO")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.control_info||""})]})]}),Object(g.jsx)("div",{className:t.buttonWrapper,children:Object(g.jsx)(Pr.a,{className:"default",variant:"contained",type:"button",onClick:t=>(n(Object(I.c)({children:Object(g.jsx)(ii.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 eu=Object(H.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 tu=function(e){const t=eu(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState({open:!1,logObj:{}}),[u,p]=s.a.useState({userID:"",clientID:"",userName:"",startDate:Et.a.getLastWeek(),endDate:new Date}),[h,m]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[E,f]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-328,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),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)($,{});async function x(e){b(!0);const t=await((e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.a.sendPost("/dlpapi/inquiryPrintLogs",{user_id:e&&""!==e?za.a.encryptAES(l,e,"utf8","hex"):"",user_name:a&&""!==a?za.a.encryptAES(l,a,"utf8","hex"):"",client_id:t,start_date:n,end_date:s,rows_per_page:c,token:o}).then((e=>{e.result?r({rows:e.total_rows,pages:e.total_pages}):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})))(u.userID,u.clientID,u.userName,Et.a.getDateString(u.startDate),Et.a.getDateString(u.endDate),e);t.rows>0?await N(1):f([]),m(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 $j(e);f(t),m(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)($O,{open:j.open,logObj:j.logObj,fnHandleClose:()=>O({open:!1,logObj:{}})}),Object(g.jsxs)(Ct.a,{className:Object(z.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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.total_rows}),r("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:r("DELETE_USER_ID")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userID,inputProps:{"aria-label":"Search"},onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("DELETE_USER_NAME")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.startDate,onChange:e=>{isNaN(e.getTime())||u.startDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.endDate,onChange:e=>{isNaN(e.getTime())||u.endDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]})}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(h.rows_per_page)},children:r("SEARCH")}),Object(g.jsx)(st.a,{title:r("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[r("DLP_CLIENT_LOG_LOGGED_AT"),r("USER"),r("DLP_CLIENT_LOG_PRINT_DOC_FORMAT"),r("DLP_CLIENT_LOG_PRINT_JOB_NAME"),r("DLP_CLIENT_LOG_PRINT_COPIES"),r("DLP_CLIENT_LOG_PRINT_JOB_CREATED_AT"),r("DLP_CLIENT_LOG_PRINT_JOB_PROCESSING_AT"),r("DLP_CLIENT_LOG_PRINT_JOB_COMPLETED_AT")],t=[];for(let a=1;a<=h.total_pages;a++)(await $j(a)).forEach((e=>{t.push({registered_at:Et.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:Et.a.getDateStringToLocalDate(e.job_created_at),job_processing_at:Et.a.getDateStringToLocalDate(e.job_processing_at),job_completed_at:Et.a.getDateStringToLocalDate(e.job_completed_at)})}));Tb.excelDownload("".concat(r("\ud504\ub9b0\ud2b8\ub85c\uadf8")).concat(Et.a.getDateString(u.startDate),"-").concat(Et.a.getDateString(u.endDate)),e,t,[{wpx:80},{wpx:80},{wpx:80},{wpx:150},{wpx:80},{wpx:80},{wpx:80},{wpx:80}])}()},children:Object(g.jsx)(la.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(qO,{}),Object(g.jsx)(Bi.a,{children:E.map((a=>Object(g.jsxs)(Fi.a,{className:Object(z.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.registered_at)}),Object(g.jsx)(Wi.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)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.doc_format}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.job_name}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:a.copies}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.job_created_at)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.job_processing_at)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.job_completed_at)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{O({open:!0,logObj:a})},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)))})]})})]}),Object(g.jsx)(ri.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:r("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":r("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":r("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{N(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{m(Object(d.a)(Object(d.a)({},h),{},{rows_per_page:Number(e.target.value),current_page:0})),c.current.scrollTop=0}})]})};var au={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(tu,{selected:t,fnSetSelectedFid:e=>a(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const nu=Object(H.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 su=function(e){const t=nu(e),{t:a}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const cu=["children","classes","onClose"],ru=Object(vl.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(Dc.a)(e,cu);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),iu=Object(H.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 lu(e){const t=iu(),{t:a}=Object(gt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(ru,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_LOCAL_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.local_endpoint||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_REMOTE_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("URL")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_WEB_UPLOAD_FILE")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.files||""})]})]})]})})}const ou=Object(H.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"}}}))),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"}],bu={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 ju=!0;var Ou=function(e){const t=ou(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState({open:!1,logObj:{}}),[u,p]=s.a.useState({userID:"",clientID:"",userName:"",orderAscending:!1,startDate:Et.a.getLastWeek(),endDate:new Date}),[h,m]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[E,f]=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(i-388,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>(ju=!1,b(!0),R(h.rows_per_page),()=>{ju=!0,p({userID:"",clientID:"",startDate:new Date,endDate:new Date})})),[a]),o)return Object(g.jsx)($,{});async function R(e){b(!0);let t="";Object.keys(x).forEach(((e,a)=>{x[e]&&(t+=""===t?e:", ".concat(e))}));const a=await eO(u.userID,u.clientID,u.userName,1,Et.a.getDateString(u.startDate),Et.a.getDateString(u.endDate),u.orderAscending,t,e);a.rows>0?await v(1):f([]),m(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 v(e){const t=await tO(e);f(t),m(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(lu,{open:j.open,logObj:j.logObj,fnHandleClose:()=>O({open:!1,logObj:{}})}),Object(g.jsxs)(Ct.a,{className:Object(z.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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.total_rows}),r("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:r("DELETE_USER_ID")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userID,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("DELETE_USER_NAME")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("SORT_DATE")}),Object(g.jsxs)(Gc.a,{variant:"outlined",select:!0,className:"",label:"",value:u.orderAscending,fullWidth:!0,size:"small",onChange:e=>{p(Object(d.a)(Object(d.a)({},u),{},{orderAscending:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:r("ASCENDING")}),Object(g.jsx)(re.a,{value:!1,children:r("DESCENDING")})]})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.startDate,onChange:e=>{isNaN(e.getTime())||u.startDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.endDate,onChange:e=>{isNaN(e.getTime())||u.endDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]}),Object(g.jsx)("div",{className:"content",style:{padding:"0 30px 0 10px"},children:Object(g.jsxs)(Lb.a,{row:!0,children:[Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.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:r("CHECK_ALL")}),du.map((e=>Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.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:r(e.cons)})))]})})]}),Object(g.jsxs)("div",{className:"button-group",children:[Object(g.jsx)(Pr.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{R(h.rows_per_page)},children:r("SEARCH")}),Object(g.jsx)(st.a,{title:r("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[r("DLP_CLIENT_LOG_LOGGED_AT"),r("DLP_CLIENT_LOG_USERNAME"),r("DLP_CLIENT_LOG_TYPE"),r("DLP_CLIENT_LOG_PATH"),r("DLP_CLIENT_LOG_SIGNING_ID"),r("DLP_CLIENT_LOG_HASH"),r("DLP_CLIENT_LOG_SOURCE_PATH"),r("DLP_CLIENT_LOG_DEST_PATH"),r("DLP_CLIENT_LOG_LOCAL_ENDPOINT"),r("DLP_CLIENT_LOG_REMOTE_ENDPOINT"),r("URL"),r("DLP_CLIENT_LOG_WEB_UPLOAD_FILE"),r("DLP_CLIENT_LOG_MAIL_CONTENTS")],t=[];for(let n=1;n<=h.total_pages;n++)(await tO(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:Et.a.getDateStringToLocalDate(e.logged_at),name:"".concat(e.user_name,"(").concat(e.user_id,"-").concat(e.client_id,")"),log_type:r(bu[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=r("TEMP_RELEASE");Tb.excelDownload("".concat(a).concat(Et.a.getDateString(u.startDate),"-").concat(Et.a.getDateString(u.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)(la.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(su,{}),Object(g.jsx)(Bi.a,{children:E.map((a=>{let n="",s=a.dest_path,{path:c}=a;switch(a.log_type){case 2:n=r("DLPClientLogCreateFile");break;case 3:n=r("DLPClientLogWriteFile");break;case 4:n=r("DLPClientLogRenameFile"),c=a.source_path;break;case 5:n=r("DLPClientLogCopyFile");break;case 6:n=r("DLPClientLogCloneFile");break;case 7:n=r("DLPClientLogLinkFile");break;case 8:n=r("DLPClientLogDeleteFile");break;case 9:n=r("DLPClientLogTruncateFile");break;case 10:n=r("DLPClientLogExecute");break;case 11:n=r("DLPClientLogNetwork"),s=a.remote_endpoint,c=a.local_endpoint;break;case 12:n=r("DLPClientLogFetchURL"),s=a.url;break;case 13:n=r("DLPClientLogUploadURL"),s=a.url,c=a.files;break;case 14:n=r("DLPClientLogMount");break;case 15:n=r("DLPClientLogUnmount");break;case 16:n=r("DLPClientLogSendWebMail"),s=a.url;break;default:n=r("DLPClientLogGeneral")}return a.tagName=n,Object(g.jsxs)(Fi.a,{className:Object(z.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Wi.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)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Wi.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:Et.a.splitLastDelimiterString(c)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(c)})]})}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:s}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{O({open:!0,logObj:a})},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]}),Object(g.jsx)(ri.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:r("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":r("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":r("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{v(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{R(Number(e.target.value)),c.current.scrollTop=0}})]})};var uu={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Ou,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const pu=Object(H.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 hu=function(e){const t=pu(e),{t:a}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Wi.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 _u=["children","classes","onClose"],mu=Object(vl.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(Dc.a)(e,_u);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),Eu=Object(H.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 gu(e){const t=Eu(),{t:a}=Object(gt.a)("docbase");let n="",s="",c="",r="";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)=>{r+=t>0?", ".concat(e):e})),a.contents&&(r=a.contents)}return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(mu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_LOGGED_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_LOCAL_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.local_endpoint||""}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_REMOTE_ENDPOINT")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("URL")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_WEB_UPLOAD_FILE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_RECIEVER")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:n}),Object(g.jsx)("div",{className:t.filedTitle,children:Object(g.jsx)("p",{className:Object(z.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_CC")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_TITLE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_MAIL_CONTENTS")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:r})]})]}):Object(g.jsx)(g.Fragment,{})]})]})})}const fu=["children","classes","onClose"],xu=Object(vl.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(Dc.a)(e,fu);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),Nu=Object(H.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 Su(e){const t=Nu(),{t:a}=Object(gt.a)("docbase"),[n,c]=s.a.useState({}),[r,i]=s.a.useState([]),[l,o]=s.a.useState({signing_id:"",desc:"",word:"",regex:""});async function b(){const e=await rO(),t={};e.forEach((e=>{t[e.id]=!1})),c(t),i(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)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(xu,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("\ub85c\uae45 \uc81c\uc678 \uc571 \uad00\ub9ac")}),Object(g.jsxs)(Br.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)(Gc.a,{className:"",type:"text",name:"signing_id",value:l.signing_id,onChange:e=>o(Object(d.a)(Object(d.a)({},l),{},{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)(Gc.a,{className:"",type:"text",name:"desc",value:l.desc,onChange:e=>o(Object(d.a)(Object(d.a)({},l),{},{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)(Gc.a,{className:"",type:"text",name:"desc",value:l.word,onChange:e=>o(Object(d.a)(Object(d.a)({},l),{},{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)(Gc.a,{className:"",type:"text",name:"desc",value:l.regex,onChange:e=>o(Object(d.a)(Object(d.a)({},l),{},{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)(Pr.a,{variant:"contained",color:"secondary",className:"first-btn",type:"button",onClick:e=>{iO(l.signing_id,l.desc,l.word,l.regex).then((e=>{b(),o({signing_id:"",desc:"",word:"",regex:""})}))},style:{marginRight:10},children:"\uc571 \ub4f1\ub85d"}),Object(g.jsx)(Pr.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)(Fi.a,{className:Object(z.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)(Wi.a,{className:"text-center table-checkbox",padding:"none",children:Object(g.jsx)(yr.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)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.signing_id}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.desc}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.word}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:e.regex})]},e.idx)))})]})})})]})]})})}const Tu=Object(H.a)((e=>({})));function Ru(e){let{type:t,cons:a,icon:n,types:c,setTypes:r}=e;Tu();const{t:i}=Object(gt.a)("docbase"),l=s.a.useRef(null);return Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{inputRef:l,checked:c[t],onChange:e=>{const a=Object(d.a)({},c);a[t]=!a[t],r(a)}}),label:Object(g.jsx)(st.a,{title:i(a),placement:"bottom",arrow:!0,children:Object(g.jsx)(U.a,{style:{padding:0},onClick:e=>{e.stopPropagation(),l.current&&l.current.click()},children:Object(g.jsx)(la.a,{className:"large",type:n,fill:"#333d4b"})})})})}const vu=Object(H.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 Lu=[{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 Au={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 Cu=0;var yu=function(e){const t=vu(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState({open:!1,logObj:{},nonLogging:!1}),[u,p]=s.a.useState({userID:"",clientID:"",userName:"",logGroup:2,isMonitoring:!1,isBlocking:!0,orderAscending:!1,startDate:Et.a.getLastWeek(),endDate:new Date}),[h,m]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[E,f]=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(i-393,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),Object(n.useEffect)((()=>{if("/clientStorageLog"===window.location.pathname)Cu=1,Lu=[{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 Cu=0,Lu=[{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),R(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)($,{});async function R(e){b(!0);let t="",a="";Object.keys(x).forEach(((e,a)=>{x[e]&&(t+=""===t?e:", ".concat(e))})),a=u.isMonitoring?"1, 3":"1",u.isBlocking&&(a+=", 2");const n=await eO(u.userID,u.clientID,u.userName,a,Et.a.getDateString(u.startDate),Et.a.getDateString(u.endDate),u.orderAscending,t,e);n.rows>0?await v(1):f([]),m(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 v(e){const t=await tO(e);f(t),m(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(gu,{open:j.open,logObj:j.logObj,fnHandleClose:()=>O(Object(d.a)(Object(d.a)({},j),{},{open:!1,logObj:{}}))}),Object(g.jsx)(Su,{open:j.nonLogging,fnHandleClose:()=>O(Object(d.a)(Object(d.a)({},j),{},{nonLogging:!1}))}),Object(g.jsxs)(Ct.a,{className:Object(z.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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.total_rows}),r("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsxs)("div",{className:"content",children:[Object(g.jsxs)("div",{className:Object(z.a)(t.text12,"input-item"),style:{display:"block",paddingTop:"5px"},children:[Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{checked:u.isMonitoring,onChange:e=>{p(Object(d.a)(Object(d.a)({},u),{},{isMonitoring:!u.isMonitoring}))},name:"isMonitoring"}),label:r("DLP_CLIENT_MONITORING_LOG")}),Object(g.jsx)(se.a,{control:Object(g.jsx)(yr.a,{checked:u.isBlocking,onChange:e=>{p(Object(d.a)(Object(d.a)({},u),{},{isBlocking:!u.isBlocking}))},name:"isBlocking"}),label:r("DLP_CLIENT_BLOCKED_LOG")})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("DELETE_USER_ID")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userID,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userID:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("DELETE_USER_NAME")}),Object(g.jsx)(rc.a,{className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userName,inputProps:{"aria-label":"Search"},size:"small",onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userName:e.target.value}))})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("SORT_DATE")}),Object(g.jsxs)(Gc.a,{variant:"outlined",select:!0,className:"",label:"",value:u.orderAscending,fullWidth:!0,onChange:e=>{p(Object(d.a)(Object(d.a)({},u),{},{orderAscending:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:r("ASCENDING")}),Object(g.jsx)(re.a,{value:!1,children:r("DESCENDING")})]})]}),Object(g.jsxs)("div",{className:"input-item",children:[Object(g.jsx)("span",{className:"title",children:r("RESTORE_DAY")}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.startDate,onChange:e=>{isNaN(e.getTime())||u.startDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.endDate,onChange:e=>{isNaN(e.getTime())||u.endDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]})]})]}),Object(g.jsx)("div",{className:"content",children:Object(g.jsxs)(Lb.a,{row:!0,children:[Object(g.jsx)(se.a,{className:Object(z.a)(t.text12),control:Object(g.jsx)(yr.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:r("\uc804\uccb4\uc120\ud0dd")}),Lu.map((e=>Object(g.jsx)(Ru,{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)(Pr.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{R(h.rows_per_page)},children:r("SEARCH")}),Object(g.jsx)(st.a,{title:r("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"download",color:"secondary",onClick:()=>{!async function(){const e=[r("DLP_CLIENT_LOG_LOGGED_AT"),r("DLP_CLIENT_LOG_USERNAME"),r("DLP_CLIENT_LOG_TYPE"),r("DLP_CLIENT_LOG_PATH"),r("DLP_CLIENT_LOG_SIGNING_ID"),r("DLP_CLIENT_LOG_HASH"),r("DLP_CLIENT_LOG_SOURCE_PATH"),r("DLP_CLIENT_LOG_DEST_PATH"),r("DLP_CLIENT_LOG_LOCAL_ENDPOINT"),r("DLP_CLIENT_LOG_REMOTE_ENDPOINT"),r("URL"),r("DLP_CLIENT_LOG_WEB_UPLOAD_FILE"),r("DLP_CLIENT_LOG_MAIL_CONTENTS")],t=[];for(let n=1;n<=h.total_pages;n++)(await tO(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:Et.a.getDateStringToLocalDate(e.logged_at),name:"".concat(e.user_name,"(").concat(e.user_id,"-").concat(e.client_id,")"),log_type:r(Au[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===Cu&&(a="\ub9e4\uccb4 \ub85c\uadf8"),Tb.excelDownload("".concat(a).concat(Et.a.getDateString(u.startDate),"-").concat(Et.a.getDateString(u.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)(la.a,{className:"small",type:"download",fill:"#333d4b"})},"download")}),Object(g.jsx)(Pr.a,{size:"small",variant:"contained",className:"default",type:"button",onClick:()=>{O(Object(d.a)(Object(d.a)({},j),{},{nonLogging:!0}))},style:{width:80},children:r("\uc81c\uc678 \uc571")})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(hu,{pageType:Cu}),Object(g.jsx)(Bi.a,{children:E.map((a=>{let n=Object(g.jsx)(st.a,{title:r(Au[a.log_type].title),placement:"bottom",arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{},style:{padding:0},children:Object(g.jsx)(la.a,{className:"big",type:Au[a.log_type].icon,fill:"#333d4b"})})}),s="",c=a.dest_path,{path:i}=a;s=1===a.log_group?r("DLP_CLIENT_RELEASE_BLOCK"):3===a.log_group?r("DLP_CLIENT_MONITORING_LOG"):r("DLP_CLIENT_BLOCKED_LOG");const l=Et.a.splitLastDelimiterString(i),o=Et.a.splitPreDelimiter(i);switch(i=Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:l}),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:i=a.source_path;break;case 11:c=a.remote_endpoint,i=a.local_endpoint;break;case 12:c=a.url;break;case 13:i=a.url,c=a.files;break;case 14:{const e=JSON.parse(a.log);i="msdos"===e.type?e.protocol:e.type,c=a.path;break}case 15:{const e=JSON.parse(a.log);i="msdos"===e.type?e.protocol:e.type,i=a.path,c=a.log;break}case 16:{const e=JSON.parse(a.log);console.log(e);const t="";i=a.url,c=t;break}default:n=""}return a.tagName=n,a.list_path=i,Object(g.jsxs)(Fi.a,{className:Object(z.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.logged_at)}),Object(g.jsx)(Wi.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)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:110},children:"".concat(s)}),Object(g.jsx)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",style:{width:70},children:n}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:i}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left path",component:"td",scope:"row",align:"left",children:c}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.signing_id}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:r("DLP_CLIENT_LOG_VIER"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{O({open:!0,logObj:a})},children:Object(g.jsx)(G.a,{style:{color:"#575757"},children:"pageview"})})})})})]},a.fid)}))})]})})]}),Object(g.jsx)(ri.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:r("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":r("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":r("PAGE_NEXT_BTN_LABEL")},onChangePage:(e,t)=>{v(t),c.current.scrollTop=0},onChangeRowsPerPage:e=>{R(Number(e.target.value)),c.current.scrollTop=0}})]})};var Pu=function(){const e=s.a.useRef(null),[t,a]=s.a.useState(-1),[n,c]=s.a.useState("");return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(yu,{selected:t,fnSetSelectedFid:e=>a(e),fnSetPath:e=>c(e),fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})};var Iu={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/clientStorageLog",component:Pu},{path:"/dlpMonitoringLogs",component:Pu}]};const wu=Object(H.a)((e=>({tr:{"& .col-name":{minWidth:210},"& .col-desc":{minWidth:350}}})));var Du=function(e){const t=wu(e),{t:a}=Object(gt.a)("docbase");return Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{className:t.tr,children:[Object(g.jsx)(Wi.a,{className:"left col-name",children:a("\uadf8\ub985\uba85")}),Object(g.jsx)(Wi.a,{className:"left col-desc",children:a("\uc124\uba85")}),Object(g.jsx)(Wi.a,{className:"delete-cell",align:"center",padding:"default",sortDirection:!1,children:a("DELETE")})]})})};const Mu=Object(H.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 ku(e){const t=Mu(),a=Object(_.b)(),{t:n}=Object(gt.a)("docbase"),[c,r]=s.a.useState({}),[i,l]=s.a.useState(!1),o=s.a.useRef(null);function d(t){let s=!0;""===t.name&&(s=!1),""===t.desc&&(s=!1),r({}),s&&!i&&(l(!0),(async()=>{const s=await nO(t.name,t.desc);s.result?1===e.type?(await async function(t){const a=await kj(e.selectedID),n=[],s=[],c=[],r=[],i=[],l=await Ij();l.uploadURL.forEach((t=>{t.group_id===e.selectedID&&n.push(t)})),l.blockURL.forEach((t=>{t.group_id===e.selectedID&&s.push(t)}));(await Kj()).forEach((t=>{t.group_id===e.selectedID&&c.push(t)}));(await Fj()).forEach((t=>{t.group_id===e.selectedID&&r.push(t)}));(await Bj()).forEach((t=>{t.group_id===e.selectedID&&i.push(t)})),await Gj(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)(Br.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)(pi,{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)(pi,{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)(Pr.a,{onClick:e.fnHandleClose,className:"default",variant:"contained","aria-label":"cancel",type:"button",children:n("CANCEL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"","aria-label":"Register",type:"submit",children:n(0===e.type?"ADD":"COPY")})]})]})})})]})})}const Gu=["children","value","index"],Uu=["children","classes","onClose"];function Fu(e){const{children:t,value:a,index:n}=e,s=Object(Dc.a)(e,Gu);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)(ll.a,{p:2,className:"h-full",style:{"margin-top":"-4px"},children:t})}))}function Wu(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const Hu=Object(vl.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(Dc.a)(e,Uu);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),Bu=s.a.forwardRef((function(e,t){return Object(g.jsx)(Me.a,Object(d.a)({direction:"up",ref:t},e))})),zu=Object(H.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}}}))),Yu=[0,1,2,3,4,5,6,7,8,9,10,11,12],Vu=[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],Ku=[0,1,2,3,4,5,6,7,8,9,10,11,12],Xu=[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 qu(e){const t=Object(_.b)(),a=zu(),{t:c}=Object(gt.a)("docbase"),[r,i]=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}),[l,o]=s.a.useState({programs:[],object:{}}),[b,j]=s.a.useState({networks:[],object:{}}),[O,u]=s.a.useState({storages:[],object:{}}),[p,h]=s.a.useState({id:-1}),[m,E]=s.a.useState({program:-1,network_name:"",inbound_ports:"",outbound_destinations:""}),[f,x]=s.a.useState({program:-1,storage:-1,readable:!0,writable:!0,executable:!0}),[N,S]=s.a.useState({name:"",url:"",urlRegex:""}),[T,R]=s.a.useState({name:"",url:"",urlRegex:""}),[v,L]=s.a.useState({execute:[],network:[]}),[A,C]=s.a.useState([]),[y,w]=s.a.useState([]),[D,M]=s.a.useState([]),[k,G]=s.a.useState([]),[F,W]=s.a.useState([]),[H,B]=s.a.useState(""),[V,K]=s.a.useState(""),[X,q]=s.a.useState(0);s.a.useEffect((()=>{e.open&&async function(){const t=await Pj(),a=await Mj(),n=await yj(),s=await Fj(),c=await Bj();L({execute:$(s),network:$(c)});const r=await Kj();C($(r));const l=await Ij(e.groupID);l.uploadURL&&w(l.uploadURL);l.blockURL&&M(l.blockURL);Q();const d={};t.forEach((e=>{d[e.id]=e}));const b={};a.forEach((e=>{b[e.id]=e}));const O={};n.forEach((e=>{O[e.id]=e})),o({programs:t,object:d}),j({networks:a,object:b}),u({storages:n,object:O}),S({name:"",url:"",urlRegex:""}),R({name:"",url:"",urlRegex:""}),x({program:-1,storage:-1,readable:!0,writable:!0,executable:!0}),h({id:-1}),E({program:-1,network_name:"",inbound_ports:"",outbound_destinations:""}),i({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(y,""),B("")}),[y]),s.a.useEffect((()=>{Z(D,""),K("")}),[D]);const J=Object(n.useCallback)(Object(ai.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)})),G(a)}else G(e)}catch(a){console.error(a)}}),500),[]),Z=Object(n.useCallback)(Object(ai.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),[]);function Q(){kj(e.groupID).then((e=>{i(Object(d.a)(Object(d.a)({},e),{},{isGroup:!0}))})).catch((e=>{console.log(e),6===e.error&&kj(0).then((e=>{i(Object(d.a)(Object(d.a)({},e),{},{isGroup:!1}))})),i({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 $(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 ee(e,a,n,s,r,i){t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_1"),fnHandleOK:()=>{Yj(e,a,n,s,r,i).then((()=>{Bj().then((e=>{L(Object(d.a)(Object(d.a)({},v),{},{network:$(e)}))}))}))}})}))}function te(e,a,n,s,r,i,l){t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_1"),fnHandleOK:()=>{qj(e,a,n,s,r,i,l).then((()=>{Kj().then((e=>{C($(e))}))}))}})}))}function ae(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)(P.a,{className:a.root,open:e.open,TransitionComponent:Bu,keepMounted:!0,fullWidth:!0,maxWidth:"lg",onClose:e.fnHandleClose,children:[Object(g.jsx)(Hu,{className:a.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("DLP_POLICY_GROUP_SETTING")}),Object(g.jsx)(Br.a,{className:a.body,children:Object(g.jsxs)("div",{className:Object(z.a)(a.contentWrapper,"flex-grow"),children:[Object(g.jsx)(Ke.a,{position:"static",className:a.tabsBar,children:Object(g.jsxs)(si.a,{value:X,indicatorColor:"",onChange:(e,t)=>{X!==t&&q(t)},children:[Object(g.jsx)(ci.a,Object(d.a)({label:c("DEFAULT_POLICY")},Wu(0))),Object(g.jsx)(ci.a,Object(d.a)({label:c("DLP_POLICY_GROUP_RELEASE")},Wu(1))),Object(g.jsx)(ci.a,Object(d.a)({label:c("DLP_EXECUTE_PROGRAM")},Wu(2))),Object(g.jsx)(ci.a,Object(d.a)({label:c("DLP_ALLOW_RELEASE_NETWORK")},Wu(3))),Object(g.jsx)(ci.a,Object(d.a)({label:c("DLP_POLICY_GROUP_GRANT")},Wu(4))),Object(g.jsx)(ci.a,Object(d.a)({label:c("DLP_POLICY_WHITE_URL_MANAGEMENT")},Wu(5))),Object(g.jsx)(ci.a,Object(d.a)({label:c("\uc811\uc18d\ucc28\ub2e8 URL \uad00\ub9ac")},Wu(5)))]})}),Object(g.jsxs)(Fu,{className:a.tabPanel,value:X,index:0,children:[Object(g.jsx)("div",{className:"header-title",children:c("DEFAULT_POLICY")}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_PAIRING")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_BLUETOOTH_FILE")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MESSENGER")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_AIRDROP")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_INSTALL")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_MOUNT")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PRINTING")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_TAKEOUT_APPROVING")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(Bi.a,{children:Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.execute_control,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{execute_control:e.target.value}))},children:[Object(g.jsx)(re.a,{value:"1",children:c("WHITE_LIST")}),Object(g.jsx)(re.a,{value:"2",children:c("BLACK_LIST")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.network_control,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{network_control:e.target.value}))},children:[Object(g.jsx)(re.a,{value:"1",children:c("WHITE_LIST")}),Object(g.jsx)(re.a,{value:"2",children:c("BLACK_LIST")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.bluetooth_pairing,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{bluetooth_pairing:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.bluetooth,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{bluetooth:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.messenger,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{messenger:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.airdrop,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{airdrop:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.install,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{install:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.mount,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{mount:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.printing,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{printing:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("BLOCK")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.takeout_approving,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{takeout_approving:e.target.value}))},children:[Object(g.jsx)(re.a,{value:1,children:c("\uc2b9\uc778 \ud544\uc694")}),Object(g.jsx)(re.a,{value:2,children:c("\uc790\ub3d9 \uc2b9\uc778")})]})}),Object(g.jsxs)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:[Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_1"),fnHandleOK:()=>{Gj(e.groupID,r.execute_control,r.network_control,r.takeout_approving,r.mount,r.bluetooth,r.bluetooth_pairing,r.messenger,r.install,r.airdrop,r.printing,r.allow_release_storage,r.allow_release_network,r.allow_release_execute,r.allow_release_upload_url,r.allow_release_bluetooth,r.allow_release_messenger,r.allow_release_airdrop,r.allow_release_printing,r.max_release_duration_months,r.max_release_duration_days,r.max_release_duration_hours,r.max_release_duration_minutes).then((()=>{Q()}))}})}))},children:c("MODIFY")}),r.isGroup?Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_DEFAULT_TITLE"),content:c("DLP_POLICY_GROUP_DEFAULT_CONTENT_2"),fnHandleOK:()=>{Uj(e.groupID).then((()=>{Q()}))}})}))},children:c("RESET")}):Object(g.jsx)(g.Fragment,{})]})]})})]})]}),Object(g.jsxs)(Fu,{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)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_STORAGE")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_EXECUTE")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_UPLOAD_URL")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_BLUETOOTH")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_MESSENGER")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_AIRDROP")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_ALLOW_RELEASE_PRINTING")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsx)(Bi.a,{children:Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_storage,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_storage:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_network,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_network:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_execute,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_execute:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_upload_url,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_upload_url:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_bluetooth,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_bluetooth:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_messenger,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_messenger:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_airdrop,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_airdrop:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:r.allow_release_printing,fullWidth:!0,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{allow_release_printing:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_RELEASE_TITLE"),content:c("DLP_POLICY_GROUP_RELEASE_CONTENT_1"),fnHandleOK:()=>{Gj(e.groupID,r.execute_control,r.network_control,r.takeout_approving,r.mount,r.bluetooth,r.bluetooth_pairing,r.messenger,r.install,r.airdrop,r.printing,r.allow_release_storage,r.allow_release_network,r.allow_release_execute,r.allow_release_upload_url,r.allow_release_bluetooth,r.allow_release_messenger,r.allow_release_airdrop,r.allow_release_printing,r.max_release_duration_months,r.max_release_duration_days,r.max_release_duration_hours,r.max_release_duration_minutes).then((()=>{Q()}))}})}))},children:c("MODIFY")})})]})})]}),Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_RELEASE_DURATION")}),Object(g.jsx)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:Object(g.jsx)(Bi.a,{children:Object(g.jsx)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:Object(g.jsxs)(Wi.a,{className:a.max_release_duration,align:"center",component:"td",scope:"row",children:[Object(g.jsx)(Gc.a,{select:!0,className:"",label:"",variant:"outlined",value:r.max_release_duration_months,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{max_release_duration_months:e.target.value}))},children:Yu.map((e=>Object(g.jsx)(re.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("MONTH")}),Object(g.jsx)(Gc.a,{select:!0,className:"",label:"",variant:"outlined",value:r.max_release_duration_days,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{max_release_duration_days:e.target.value}))},children:Vu.map((e=>Object(g.jsx)(re.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("DAY")}),Object(g.jsx)(Gc.a,{select:!0,className:"",label:"",variant:"outlined",value:r.max_release_duration_hours,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{max_release_duration_hours:e.target.value}))},children:Ku.map((e=>Object(g.jsx)(re.a,{value:e,children:e})))}),Object(g.jsx)("span",{children:c("HOUR")}),Object(g.jsx)(Gc.a,{select:!0,className:"",label:"",variant:"outlined",value:r.max_release_duration_minutes,onChange:e=>{i(Object(d.a)(Object(d.a)({},r),{},{max_release_duration_minutes:e.target.value}))},children:Xu.map((e=>Object(g.jsx)(re.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)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_RELEASE_DURATION_TITLE"),content:c("DLP_POLICY_RELEASE_DURATION_CONTENT_1"),fnHandleOK:()=>{Gj(e.groupID,r.execute_control,r.network_control,r.takeout_approving,r.mount,r.bluetooth,r.bluetooth_pairing,r.messenger,r.install,r.airdrop,r.printing,r.allow_release_storage,r.allow_release_network,r.allow_release_execute,r.allow_release_upload_url,r.allow_release_bluetooth,r.allow_release_messenger,r.allow_release_airdrop,r.allow_release_printing,r.max_release_duration_months,r.max_release_duration_days,r.max_release_duration_hours,r.max_release_duration_minutes).then((()=>{Q()}))}})}))},children:c("\uc218\uc815")})]})})})})]}),Object(g.jsxs)(Fu,{className:a.tabPanel,value:X,index:2,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_EXECUTE_PROGRAM")}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_SIGNING_ID")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_HASH")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROCESS_TYPE")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Bi.a,{children:[v.execute.map((e=>{const a=l.object[e.program];return a?Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.signing_id}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.hash}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.program_name}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.process_type}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_DELETE_CONTENT"),fnHandleOK:()=>{Hj(e.id).then((()=>{Fj().then((e=>{L(Object(d.a)(Object(d.a)({},v),{},{execute:$(e)}))}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]}):Object(g.jsx)(g.Fragment,{})})),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",colSpan:5,children:Object(g.jsx)(Gc.a,{select:!0,className:"",label:"",value:p,fullWidth:!0,onChange:e=>{h(e.target.value)},children:l.programs.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_EXECUTE_CONTROL_TITLE"),content:c("DLP_EXECUTE_CONTROL_CONTENT"),fnHandleOK:()=>{Wj(e.groupID,p).then((()=>{Fj().then((e=>{L(Object(d.a)(Object(d.a)({},v),{},{execute:$(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Fu,{className:a.tabPanel,value:X,index:3,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_ALLOW_RELEASE_NETWORK")}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_MANAGE_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_NETWORK_INBOUND_PORT")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Bi.a,{children:[v.network.map((a=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{ee(a.id,e.groupID,t.target.value,a.network_name,a.inbound_ports,a.outbound_destinations)},children:[Object(g.jsx)(re.a,{value:0,children:c("ALL_PROGRAM")}),";",l.programs.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.network_name,fullWidth:!0,onChange:t=>{ee(a.id,e.groupID,a.program,t.target.value,a.inbound_ports,a.outbound_destinations)},children:[Object(g.jsx)(re.a,{value:"",children:c("NOT_SELECTED")}),";",b.networks.map((e=>Object(g.jsx)(re.a,{value:e.name,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:a.inboundPortsEx,fullWidth:!0,onChange:e=>{L(Object(d.a)(Object(d.a)({},v),{},{network:v.network.map((t=>(t.id===a.id&&(t.inboundPortsEx=e.target.value),t)))}))},onBlur:()=>{ee(a.id,e.groupID,a.program,a.network_name,a.inboundPortsEx,a.outbound_destinations)}})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:a.outboundDestinationsEx,fullWidth:!0,onChange:e=>{L(Object(d.a)(Object(d.a)({},v),{},{network:v.network.map((t=>(t.id===a.id&&(t.outboundDestinationsEx=e.target.value),t)))}))},onBlur:()=>{ee(a.id,e.groupID,a.program,a.network_name,a.inbound_ports,a.outboundDestinationsEx)}})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_2"),fnHandleOK:()=>{Vj(a.id).then((()=>{Bj().then((e=>{L(Object(d.a)(Object(d.a)({},v),{},{network:$(e)}))}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:m.program,fullWidth:!0,onChange:e=>{E(Object(d.a)(Object(d.a)({},m),{},{program:e.target.value}))},children:[Object(g.jsx)(re.a,{value:0,children:c("ALL_PROGRAM")}),";",l.programs.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:m.network_name,fullWidth:!0,onChange:e=>{E(Object(d.a)(Object(d.a)({},m),{},{network_name:e.target.value}))},children:[Object(g.jsx)(re.a,{value:"",children:c("NOT_SELECTED")}),";",b.networks.map((e=>Object(g.jsx)(re.a,{value:e.name,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:m.inbound_ports,fullWidth:!0,onChange:e=>{E(Object(d.a)(Object(d.a)({},m),{},{inbound_ports:e.target.value}))}})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:m.outbound_destinations,fullWidth:!0,onChange:e=>{E(Object(d.a)(Object(d.a)({},m),{},{outbound_destinations:e.target.value}))}})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_NETWORK_TITLE"),content:c("DLP_POLICY_GROUP_NETWORK_CONTENT_3"),fnHandleOK:()=>{zj(e.groupID,m.program,m.network_name,m.inbound_ports,m.outbound_destinations).then((()=>{Bj().then((e=>{L(Object(d.a)(Object(d.a)({},v),{},{network:$(e)}))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Fu,{className:a.tabPanel,value:X,index:4,children:[Object(g.jsx)("div",{className:"header-title",children:c("DLP_POLICY_GROUP_GRANT")}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_PROGRAM_MANAGE_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("STORAGE_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_READ")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_WRITE")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("ALLOW_EXECUTE")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Bi.a,{children:[A.map((a=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.program,fullWidth:!0,onChange:t=>{te(a.id,e.groupID,t.target.value,a.storage,a.readable,a.writable,a.executable)},children:[Object(g.jsx)(re.a,{value:0,children:c("ALL_PROGRAM")}),";",l.programs.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.storage,fullWidth:!0,onChange:t=>{te(a.id,e.groupID,a.program,t.target.value,a.readable,a.writable,a.executable)},children:[Object(g.jsx)(re.a,{value:2,children:c("USB")}),Object(g.jsx)(re.a,{value:1,children:c("COODOC Drive")}),Object(g.jsx)(re.a,{value:3,children:c("Network Drive")}),O.storages.map((e=>Object(g.jsx)(re.a,{value:e.storage_id,children:e.path})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.readable,fullWidth:!0,onChange:t=>{te(a.id,e.groupID,a.program,a.storage,t.target.value,a.writable,a.executable)},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.writable,fullWidth:!0,onChange:t=>{te(a.id,e.groupID,a.program,a.storage,a.readable,t.target.value,a.executable)},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:a.executable,fullWidth:!0,onChange:t=>{te(a.id,e.groupID,a.program,a.storage,a.readable,a.writable,t.target.value)},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:e=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_2"),fnHandleOK:()=>{Jj(a.id).then((()=>{Kj().then((e=>{C($(e))}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:f.program,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},f),{},{program:e.target.value}))},children:[Object(g.jsx)(re.a,{value:0,children:c("ALL_PROGRAM")}),";",l.programs.map((e=>Object(g.jsx)(re.a,{value:e.id,children:e.name})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:f.storage,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},f),{},{storage:e.target.value}))},children:[Object(g.jsx)(re.a,{value:2,children:c("USB")}),Object(g.jsx)(re.a,{value:1,children:c("COODOC Drive")}),Object(g.jsx)(re.a,{value:3,children:c("Network Drive")}),O.storages.map((e=>Object(g.jsx)(re.a,{value:e.storage_id,children:e.path})))]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:f.readable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},f),{},{readable:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:f.writable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},f),{},{writable:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsxs)(Gc.a,{select:!0,className:"",label:"",value:f.executable,fullWidth:!0,onChange:e=>{x(Object(d.a)(Object(d.a)({},f),{},{executable:e.target.value}))},children:[Object(g.jsx)(re.a,{value:!0,children:c("PERMIT")}),Object(g.jsx)(re.a,{value:!1,children:c("UNAVAILABLE")})]})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_GROUP_GRANT_TITLE"),content:c("DLP_POLICY_GROUP_GRANT_CONTENT_3"),fnHandleOK:()=>{Xj(e.groupID,f.program,f.storage,f.readable,f.writable,f.executable).then((()=>{Kj().then((e=>{C($(e))}))}))}})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Fu,{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)(Gc.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:H,onChange:e=>{B(e.target.value),J(y,e.target.value)}})]}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Bi.a,{children:[k.map((a=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{Dj(a.name_ex,e.groupID).then((()=>{Ij(e.groupID).then((e=>{e.uploadURL&&w(e.uploadURL)}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.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)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.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)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.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)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_CONTENT"),fnHandleOK:()=>""===N.name?(t(Object(Y.c)({message:c("DLP_POLICY_WHITE_URL_MESSAGE_1")})),!1):(wj(N.name,e.groupID,N.url,N.urlRegex.replaceAll("*","(.+)?")).then((()=>{S({name:"",url:"",urlRegex:""}),Ij(e.groupID).then((e=>{e.uploadURL&&w(e.uploadURL),e.blockURL&&M(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]}),Object(g.jsxs)(Fu,{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)(Gc.a,{className:"",label:"",variant:"outlined",placeholder:c("SEARCH"),value:V,onChange:e=>{K(e.target.value),Z(D,e.target.value)}})]}),Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:a.tableOrg,"aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_NAME")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("URL")}),Object(g.jsx)(Wi.a,{className:"default-policy",align:"center",padding:"default",children:c("DLP_POLICY_WHITE_URL_REGEX")}),Object(g.jsx)(Wi.a,{className:"policy-btn-col",align:"center",padding:"default"})]})}),Object(g.jsxs)(Bi.a,{children:[F.map((a=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.name}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.url}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:a.url_regex.replaceAll("(.+)?","*")}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)("div",{children:Object(g.jsx)(st.a,{title:c("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_DELETE_CONTENT"),fnHandleOK:()=>{Dj(a.name_ex,e.groupID).then((()=>{Ij(e.groupID).then((e=>{e.uploadURL&&w(e.uploadURL),e.blockURL&&M(e.blockURL)}))}))}})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]}))),Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:T.name,fullWidth:!0,onChange:e=>{R(Object(d.a)(Object(d.a)({},T),{},{name:e.target.value}))}})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:T.url,fullWidth:!0,onChange:e=>{R(Object(d.a)(Object(d.a)({},T),{},{url:e.target.value}))}})}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Gc.a,{className:"",label:"",value:T.urlRegex,placeholder:c("DLP_POLICY_WHITE_URL_REGEX_PLACEHOLDER"),fullWidth:!0,onChange:e=>{R(Object(d.a)(Object(d.a)({},T),{},{urlRegex:e.target.value}))}})}),Object(g.jsx)(Wi.a,{className:"td-btn",align:"center",component:"td",scope:"row",children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary","aria-label":"Register",type:"button",size:"small",onClick:a=>{t(Object(I.c)({children:Object(g.jsx)(ii.a,{title:c("DLP_POLICY_WHITE_URL_TITLE"),content:c("DLP_POLICY_WHITE_URL_CONTENT"),fnHandleOK:()=>""===T.name?(t(Object(Y.c)({message:c("DLP_POLICY_WHITE_URL_MESSAGE_1")})),!1):(wj(T.name,e.groupID,ae(1,T.url),ae(1,T.urlRegex).replaceAll("*","(.+)?")).then((()=>{R({name:"",url:"",urlRegex:""}),Ij(e.groupID).then((e=>{e.uploadURL&&w(e.uploadURL),e.blockURL&&M(e.blockURL)}))})),!0)})}))},children:c("APPLY")})})]})]})]})]})]})})]})})}const Ju=Object(H.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 Zu=function(e){const t=Ju(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=Object(n.useState)(window.innerHeight),[o,d]=Object(n.useState)(""),[b,j]=Object(n.useState)(!0),[O,u]=Object(n.useState)({open:!1,type:0}),[p,h]=Object(n.useState)([]);return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-228,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),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)($,{}):Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(ku,{open:O.open,type:O.type,selectedID:e.selectedID,fnHandleClose:()=>{u({open:!1,type:0})},fnHandleOK:()=>{e.fnGetGroups()}}),Object(g.jsx)(qu,{open:e.DLPPolicy.open,groupID:e.DLPPolicy.selectedID,fnHandleClose:()=>e.fnCloseDLPPolicy()}),Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:Object(z.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)(rc.a,{placeholder:r("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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:p.length}),r("CNT")]})]}),Object(g.jsx)("div",{className:"btn-group",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(Pr.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:t=>{e.fnOpenDLPPolicy()},children:r("DEFAULT_POLICY_SETTING")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"default",type:"button",style:{marginRight:5},onClick:e=>{u({open:!0,type:0})},children:r("NEW_REGISTRATION")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"default",type:"button",onClick:t=>{0===e.selectedID?a(Object(Y.c)({message:r("DLP_POLICY_GROUP_MESSAGE_3")})):u({open:!0,type:1})},children:r("COPY_POLICY")})]})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Du,{}),Object(g.jsx)(Bi.a,{children:p.map((t=>Object(g.jsxs)(Fi.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)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.name}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",children:t.desc}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(st.a,{title:r("DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{onClick:n=>{n.stopPropagation(),a(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("DELETE_FOLDER_TITLE"),content:"'".concat(t.name,"'").concat(r("DELETE_CONTENT")),fnHandleOK:()=>e.fnRemoveGroups(t.id)})}))},children:Object(g.jsx)(la.a,{type:"delete",className:"",fill:"#575757"})})})})})]},t.id)))})]})})]})]})};const Qu=["children","classes","onClose"],$u=Object(vl.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(Dc.a)(e,Qu);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),ep=Object(H.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 tp=!1;function ap(e){const t=ep(),a=Object(_.b)(),{t:c}=(s.a.useRef(null),Object(gt.a)("docbase")),{users:r}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{orgsChildren:i,orgFolders:l}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.folder})),[o,b]=s.a.useState(""),[O,u]=s.a.useState(r),[p,h]=s.a.useState({}),[m,E]=s.a.useState([]),[f,x]=s.a.useState({}),[N,S]=s.a.useState(!1),[T,R]=s.a.useState(0),[v,L]=s.a.useState({direction:"asc"});function A(){const e=[];Object.keys(i).forEach((t=>{e.push(Number(t))})),h(i),E(e)}s.a.useEffect((()=>{e.open?(a(Gn()).then((()=>{a(Object(an.g)())})),C("")):(u([]),b(""),x({}),A())}),[e.open]),s.a.useEffect((()=>{b(""),C(""),S(!1)}),[T,r]),s.a.useEffect((()=>{A()}),[i]),s.a.useEffect((()=>(C(o),()=>{C.cancel()})),[o]);const C=Object(n.useCallback)(Object(ai.debounce)((t=>{const a=[],n={};0===T?t.length>0?(l.forEach((e=>{e.name.toLowerCase().includes(t.toLowerCase())&&(a.push(e),n[e.fid]=!1)})),h({0:{children:a}}),E([])):A():r.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)})),x(n),u(a)}),100));function y(e){S(!1),x(Object(d.a)(Object(d.a)({},f),{},{[e]:!f[e]}))}function I(){const e={};if(O.forEach((t=>{e[t.id]=!N})),S(!N),x(e),0===T){const e=Object(d.a)({},i),t=[];Object.keys(i).forEach((a=>{if(i[a]){const t=i[a].children.map((e=>{const t=Object(d.a)({},e);return t.checked=!N,t}));e[a]={children:t}}t.push(Number(a))})),h(e),E(t)}}return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog",children:[Object(g.jsx)($u,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:c("PERM_FOLDER_TITLE")}),Object(g.jsx)(di.a,{className:t.head,children:Object(g.jsxs)("div",{className:"search-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(Gc.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)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,onClick:()=>I(),children:c("CHECK_ALL")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>async function(){if(!tp){tp=!0;const t=Object.keys(f);if(0===T){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{R(t)},indicatorColor:"secondary",textColor:"inherit",variant:"scrollable",scrollButtons:"off",classes:{indicator:"active_bar"},children:[Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("ORG_FOLDER")}),Object(g.jsx)(ci.a,{className:"list-tab",disableRipple:!0,label:c("USER")})]})}),Object(g.jsx)("div",{className:"result-list",children:Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),children:0===T?Object(g.jsx)("div",{children:Object(g.jsx)(fl,{className:"full",childrenObj:p,expandedItems:m,checkbox:!0,fnOnChangeChecked:(e,t,a)=>{Object(d.a)({},p);const n=p[t].children.map((t=>{const n=Object(d.a)({},t);return n.fid===e&&(n.checked=a),n}));h(Object(d.a)(Object(d.a)({},p),{},{[t]:{children:n}})),y(e)},fnOnClickHandler:(e,t)=>{}})}):Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"w-full min-w-full",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",className:"cell-check",align:"center",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",indeterminate:!N&&Object.values(f).filter((e=>e)).length>0,checked:N,onChange:e=>I()})}),Object(g.jsx)(Wi.a,{padding:"none",className:"left",align:"left",children:Object(g.jsx)(Hi.a,{active:!0,direction:v.direction,onClick:e=>{L({direction:"asc"===v.direction?"desc":"asc"})},children:c("USER")})})]})}),Object(g.jsx)(Bi.a,{children:j.a.orderBy(O,[e=>e.name],[v.direction]).map(((e,t)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer relative",hover:!0,role:"checkbox",tabIndex:-1,onClick:t=>y(e.id),children:[Object(g.jsx)(Wi.a,{className:"",padding:"none",align:"center",children:Object(g.jsx)(yr.a,{color:"secondary",size:"small",checked:f[e.id],tabIndex:-1,disableRipple:!0,name:"checked",onChange:t=>{y(e.id)}})}),Object(g.jsx)(Wi.a,{className:"left cell-name",component:"td",scope:"row",children:Object(g.jsxs)("div",{className:"obj-name",children:[Object(g.jsx)(Ml,{type:"person",className:"small"}),Object(g.jsx)("span",{children:"".concat(e.name,"(").concat(e.id,")")})]})})]},e.id)))})]})})})]})})]})})}const np=Object(H.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 sp=function(e){const t=np(),a=Object(_.b)(),n=s.a.useRef(),{t:c}=Object(gt.a)("docbase"),[r,i]=s.a.useState(window.innerHeight),[l,o]=s.a.useState(!1),[d,b]=s.a.useState([]),[j,O]=s.a.useState({});function u(t){a(Dn({show:!0})),((e,t)=>new Promise(((a,n)=>{Object(Ya.d)(((s,c)=>{Ba.a.sendPost("/dlpapi/removeUserGroupMember",{group_id:e,user_id:za.a.encryptAES(s,t,"utf8","hex"),token:c}).then((e=>{e.result?a(e.users):(Ba.a.printError(e),n(e))})).finally((()=>{}))}))})))(e.selectedID,t).then((t=>{sO(e.selectedID).then((e=>{b(e.users),O(e.usersObj),a(Dn({show:!1}))}))}))}return s.a.useEffect((()=>{r>=754&&(n.current.style.height="".concat(r-140,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),s.a.useEffect((()=>{e.selectedID>0?sO(e.selectedID).then((e=>{b(e.users),O(e.usersObj)})):b([])}),[e.selectedID]),Object(g.jsxs)("div",{className:"",ref:n,children:[Object(g.jsx)(ap,{open:l,permsObj:j,fnHandleClose:()=>o(!1),fnSetPerm:t=>{!function(t){a(Dn({show:!0})),(async()=>{let n=!0;for(let a=0;a{b(e.users),O(e.usersObj)})),o(!1),a(Dn({show:!1}))})()}(t)}}),Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsxs)(Rl.a,{disableSpacing:!0,children:[Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})}),Object(g.jsxs)(B.a,{className:Object(z.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.jsx)(wr.a,{className:t.infoFiled}),Object(g.jsx)(Rl.a,{className:Object(z.a)(t.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsx)("div",{className:Object(z.a)("inline-block align-middle"),children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:()=>{e.selectedID<0?a(Object(Y.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)(Ir.a,{className:t.paperPerm,children:[Object(g.jsx)(wr.a,{className:t.paperPermHeader,children:Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,onClick:()=>{e.selectedID<=0?a(Object(Y.c)({message:c("\uadf8\ub8f9\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")})):o(!0)},children:c("\uc0ac\uc6a9\uc790 \ucd94\uac00")})})}),Object(g.jsx)(wr.a,{className:t.paperPermContent,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[Object(g.jsx)(Wi.a,{padding:"none",align:"left",className:"left title",children:c("USER")}),Object(g.jsx)(Wi.a,{padding:"none",align:"center",className:"perm-col-1",children:c("\uc0ad\uc81c")})]})}),Object(g.jsx)(Bi.a,{children:d&&d.length>0?d.map(((e,t)=>Object(g.jsxs)(Fi.a,{className:"cursor-pointer",hover:!0,role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)(Ml,{type:"person",className:""}),Object(g.jsx)("span",{className:"folder-name",children:"".concat(e.user_name,"(").concat(e.user_id,")")})]})}),Object(g.jsx)(Wi.a,{className:"",component:"td",scope:"row",align:"center",children:Object(g.jsx)(st.a,{title:c("PERM_DELETE"),arrow:!0,children:Object(g.jsx)(U.a,{"aria-label":"releasePerm",onClick:t=>u(e.user_id),children:Object(g.jsx)(Ml,{type:"delete",className:""})})})})]}))):Object(g.jsx)(g.Fragment,{})})]})})]})]})};var cp={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([]),[r,i]=s.a.useState({name:"",desc:"",id:0}),[l,o]=s.a.useState({open:!1,selectedID:0});s.a.useEffect((()=>{0===t?i({name:"",desc:"",id:0}):n.forEach((e=>{e.id===t&&i(e)})),o(Object(d.a)(Object(d.a)({},l),{},{selectedID:t}))}),[t]);const b=()=>{aO().then((e=>{c(e)}))},j=e=>{var t;(t=e,new Promise(((e,a)=>{Object(Ya.d)(((n,s)=>{Ba.a.sendPost("/dlpapi/removeUserGroup",{group_id:t,token:s}).then((t=>{t.result?e(t.result):(Ba.a.printError(t),a(t))})).finally((()=>{}))}))}))).then((e=>{aO().then((e=>{c(e)}))}))};return Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Zu,{selectedID:t,groups:n,DLPPolicy:l,fnSetSelectedID:e=>a(e),fnGetGroups:()=>b(),fnRemoveGroups:e=>j(e),fnOpenDLPPolicy:()=>{o({open:!0,selectedID:0})},fnCloseDLPPolicy:()=>{o(Object(d.a)(Object(d.a)({},l),{},{open:!1}))},fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(sp,{selectedID:t,selectedObj:r,fnGetGroups:()=>b(),fnOpenDLPPolicy:()=>{o({open:!0,selectedID:t})},fnToggleRightSidebar:t=>e.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};const rp=Object(H.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 ip=function(e){const t=rp(e),{t:a}=Object(gt.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)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:t.tr,children:n.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",children:e.label},e.id)),this)})})};const lp=["children","classes","onClose"],op=Object(vl.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(Dc.a)(e,lp);return Object(g.jsxs)(Hr.a,Object(d.a)(Object(d.a)({disableTypography:!0,className:a.root},s),{},{children:[Object(g.jsx)(B.a,{variant:"h6",children:t}),n?Object(g.jsx)(U.a,{"aria-label":"close",className:a.closeButton,onClick:n,children:Object(g.jsx)(Ll.a,{})}):null]}))})),dp=Object(H.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 bp(e){const t=dp(),{t:a}=Object(gt.a)("docbase");return Object(g.jsx)("div",{children:Object(g.jsxs)(P.a,{className:t.root,open:e.open,onClose:e.fnHandleClose,"aria-labelledby":"form-dialog-title",children:[Object(g.jsx)(Nr.a,{className:t.backdrop,open:!1,children:Object(g.jsx)(Sr.a,{color:"inherit"})}),Object(g.jsx)(op,{className:t.title,id:"form-dialog-title",onClose:e.fnHandleClose,children:a("DLP_CLIENT_LOG_VIEW_TITLE")}),Object(g.jsxs)(Br.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(z.a)("text-left"),children:a("\uc77c\uc2dc")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.logged_at?Et.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_USERNAME")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_TYPE")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SIGNING_ID")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_HASH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_SOURCE_PATH")})}),Object(g.jsx)("div",{className:Object(z.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(z.a)("text-left"),children:a("DLP_CLIENT_LOG_DEST_PATH")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,"folder-name"),children:e.logObj.dest_path||""})]})]})]})})}const jp=Object(H.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 Op=function(e){const t=jp(),a=Object(_.b)(),c=s.a.useRef(),{t:r}=Object(gt.a)("docbase"),[i,l]=s.a.useState(window.innerHeight),[o,b]=Object(n.useState)(!0),[j,O]=s.a.useState({open:!1,logObj:{}}),[u,p]=s.a.useState({userID:"",clientID:"",startDate:Et.a.getLastWeek(),endDate:new Date}),[h,m]=s.a.useState({total_rows:0,total_pages:0,current_page:0,rows_per_page:100}),[E,f]=Object(n.useState)([]);if(Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(i-298,"px")),window.addEventListener("resize",(()=>l(window.innerHeight)))}),[i]),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)($,{});async function x(e){const t=await((e,t,a,n,s,c)=>new Promise(((r,i)=>{Object(Ya.d)(((l,o)=>{Ba.a.sendPost("/dlpapi/inquiryClientAlertLogs",{user_id:e&&""!==e?za.a.encryptAES(l,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?r({rows:e.total_rows,pages:e.total_pages}):(Ba.a.printError(e),i(e))})).finally((()=>{}))}))})))(u.userID,u.clientID,2,Et.a.getDateString(u.startDate),Et.a.getDateString(u.endDate),e);t.rows>0?await N(1):f([]),m(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)=>{Ba.a.sendPost("/dlpapi/inquiryClientAlertLogsPage",{page:e,token:s}).then((e=>{e.result?t(e.logs.map((e=>(e.user_id=za.a.decryptAES(n,e.user_id,"hex","utf8"),e.user_name=za.a.decryptAES(n,e.user_name,"hex","utf8"),e)))):(Ba.a.printError(e),a(e))})).finally((()=>{}))}))})))(e);f(t),m(Object(d.a)(Object(d.a)({},h),{},{current_page:e}))}return Object(g.jsxs)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:[Object(g.jsx)(bp,{open:j.open,logObj:j.logObj,fnHandleClose:()=>O({open:!1,logObj:{}})}),Object(g.jsxs)(Ct.a,{className:Object(z.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:[r("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:h.total_rows}),r("CNT")]})}),Object(g.jsxs)("div",{className:"search-form-wrapper",children:[Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(rc.a,{placeholder:r("\uc0ac\uc6a9\uc790 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.userID,inputProps:{"aria-label":"Search"},onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{userID:e.target.value}))})}),Object(g.jsx)("div",{className:"input-item",children:Object(g.jsx)(rc.a,{placeholder:r("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc544\uc774\ub514"),className:"search-input",disableUnderline:!0,fullWidth:!0,value:u.clientID,inputProps:{"aria-label":"Search"},onChange:e=>p(Object(d.a)(Object(d.a)({},u),{},{clientID:e.target.value}))})}),Object(g.jsxs)("div",{className:"date-picker-wrapper",children:[Object(g.jsx)("span",{className:"title",children:r("RESTORE_DAY")}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.startDate,onChange:e=>{isNaN(e.getTime())||u.startDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{startDate:e}))},KeyboardButtonProps:{"aria-label":"change date start"}})})}),Object(g.jsx)("div",{className:"tilde",children:"~"}),Object(g.jsx)("div",{className:"",children:Object(g.jsx)(_r.a,{utils:Pi.a,className:"flex-1",children:Object(g.jsx)(yi.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:u.endDate,onChange:e=>{isNaN(e.getTime())||u.endDate.getTime()!==e.getTime()&&p(Object(d.a)(Object(d.a)({},u),{},{endDate:e}))},KeyboardButtonProps:{"aria-label":"change date end"}})})})]}),Object(g.jsx)("div",{children:Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",onClick:()=>{x(h.rows_per_page)},children:r("SEARCH")})})]})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(ip,{}),Object(g.jsx)(Bi.a,{children:E.map((a=>{let n="";switch(a.alert_type){case 1:n=r("\ud074\uc789\uc774\uc5b8\ud2b8 \uc81c\uac70 \uc2dc\ub3c4");break;case 2:n=r("\uc2dc\uc2a4\ud15c \ud655\uc7a5 \ud504\ub85c\uadf8\ub7a8 \uc81c\uac70 \uc2dc\ub3c4");break;case 3:n=r("EPS \ubaa8\ub4c8 \ube44\ud65c\uc131\ud654");break;case 4:n=r("Network \ubaa8\ub4c8 \ube44\ud65c\uc131\ud654");break;case 5:n=r("\ube0c\ub77c\uc6b0\uc800 \ud655\uc7a5\ud504\ub85c\uadf8\ub7a8 \ube44\ud65c\uc131\ud654");break;case 6:n=r("\uc811\uadfc \uc81c\ud55c \uc601\uc5ed\uc5d0 \uc811\uadfc");break;case 7:n=r("SIP \ube44\ud65c\uc131\ud654");break;case 8:n=r("\ube14\ub8e8\ud22c\uc2a4 \uc7a5\uce58 \ubcc0\uacbd");break;case 9:n=r("\ud074\ub77c\uc774\uc5b8\ud2b8 \uc624\ub958")}return a.tagName=n,Object(g.jsxs)(Fi.a,{className:Object(z.a)(t.tr,"course-pointer"),hover:!0,role:"checkbox",tabIndex:-1,selected:a.fid===e.selected,onClick:e=>{},children:[Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:Et.a.getDateStringToLocalDate(a.happend_at)}),Object(g.jsx)(Wi.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)(Wi.a,{className:"cursor-pointer",component:"td",scope:"row",align:"center",children:n}),Object(g.jsx)(Wi.a,{className:"cursor-pointer left",component:"td",scope:"row",align:"left",children:a.alert_info})]},a.fid)}))})]})})]}),Object(g.jsx)(ri.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:r("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":r("PAGE_PREV_BTN_LABEL")},nextIconButtonProps:{"aria-label":r("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 up={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Op,{selected:t,fnSetSelectedFid:e=>a(e)}),innerScroll:!0,sidebarInner:!0,ref:e})}}]};var pp=function(e){const{t:t}=Object(gt.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)(Ui.a,{children:Object(g.jsxs)(Fi.a,{children:[a.map((e=>Object(g.jsx)(Wi.a,{className:e.className,align:e.align,padding:e.disablePadding?"none":"default",sortDirection:!1,children:e.label},e.id)),this),Object(g.jsx)(Wi.a,{className:"",padding:"none",sortDirection:!1})]})})};const hp=Object(H.a)((e=>({root:{marginRight:30,borderRadius:6},contentWrapper:{height:"".concat(window.innerHeight-296,"px"),padding:"0 20px"}})));var _p=function(e){const t=hp(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),[o,d]=s.a.useState([]),[b,j]=s.a.useState(0);Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{O()}),[a]);const O=async()=>{const t=await Object(an.i)(),a=await Object(an.a)();a.result&&(d(a.requests.map((e=>{let n="";switch(e.status){case 0:n=l("TAKEOUT_REQUEST");break;case 1:n=l("TAKEOUT_APPROVED");break;case 2:n=l("TAKEOUT_REJECTED")}return e.user_id=za.a.decryptAES(a.aes,e.user_id,"hex","utf8"),e.offline_map_path=za.a.decryptAES(a.aes,e.offline_map_path,"hex","utf8"),e.reason=za.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)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.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.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsx)("div",{className:"",children:Object(g.jsx)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>{O()},children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")})})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(pp,{}),Object(g.jsx)(Bi.a,{children:o.map((a=>{let n=l("TAKEOUT_REQUEST");switch(a.status){case 0:n=l("TAKEOUT_REQUEST");break;case 1:n=l("TAKEOUT_APPROVED")}return Object(g.jsxs)(Fi.a,{className:Object(z.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)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(a.userName,"(").concat(a.user_id,")")}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(a.requested_at)}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:n}),Object(g.jsx)(Wi.a,{className:"left",component:"td",scope:"row",children:a.reason}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(a.expire_at)})]},a.offline_drive_id)}))})]})})]})})};const mp=Object(H.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 Ep=function(e){const t=mp(),a=s.a.useRef(),n=Object(_.b)(),{usersObj:c}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.account})),{t:r}=Object(gt.a)("docbase"),[i,l]=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 nn.mb:b=r("TAKEOUT_DOC");break;case nn.nb:b=r("TAKEOUT_PRINT");break;case nn.ob:b=r("TAKEOUT_WEBLINK")}const j=async(e,t,a)=>{if(2===t&&""===a)return n(Object(Y.c)({message:r("ENTER_REASON")})),!1;return(await Object(an.c)(e,t,a)).result&&n(Object(Y.d)({message:r(1===t?"APPROVED":"REJECTED")})),!0};return Object(g.jsx)("div",{className:"",ref:a,children:Object(g.jsxs)(Ir.a,{className:t.cardInfo,children:[Object(g.jsx)(Rl.a,{className:Object(z.a)(t.card_button_group,"md:"),disableSpacing:!0,children:Object(g.jsx)(U.a,{className:"md:hidden","aria-controls":"detail-back",onClick:t=>{e.fnToggleRightSidebar()},children:Object(g.jsx)(G.a,{children:"arrow_back"})})}),Object(g.jsxs)(wr.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(z.a)("text-left"),children:r("TAKEOUT_REQUESTER")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:r("TAKEOUT_REQ_AT")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"requested_at",fullWidth:!0,value:Et.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(z.a)("text-left"),children:r("EXPIRE_DATE")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"expire_at",fullWidth:!0,value:Et.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(z.a)("text-left"),children:r("TAKEOUT_STATUS")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:r("TAKEOUT_REASON_REQ")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.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(z.a)("text-left"),children:r("TAKEOUT_REASON_REJ")})}),Object(g.jsx)("div",{className:Object(z.a)(t.filedInput,""),children:Object(g.jsx)(Gc.a,{className:"",variant:"outlined",type:"text",name:"reason_rej",fullWidth:!0,value:i,onChange:e=>l(e.target.value)})})]})]}),e.selectedObj.offline_drive_id>0&&0===e.selectedObj.status&&Et.a.isAfter(new Date("".concat(e.selectedObj.expire_at," 00:00:00")),new Date)?Object(g.jsx)(Rl.a,{className:Object(z.a)(t.buttonGroup,"block"),children:Object(g.jsx)("div",{className:"w-full flex",children:Object(g.jsxs)("div",{className:Object(z.a)("inline-block align-middle"),children:[Object(g.jsx)(Pr.a,{variant:"contained",className:"default",type:"button",fullWidth:!0,size:"small",onClick:t=>{e.selectedObj.offline_drive_id<=0?n(Object(Y.c)({message:r("SELECT_REQUEST")})):n(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("OFFLINE_DRIVE"),content:r("OFFLINE_DRIVE_CONFIRM_1"),fnHandleOK:()=>{j(e.selectedObj.offline_drive_id,2,i)}})}))},children:r("TAKEOUT_REJECTED")}),Object(g.jsx)(Pr.a,{variant:"contained",color:"secondary",className:"",type:"button",fullWidth:!0,size:"small",onClick:()=>{e.selectedObj.offline_drive_id<=0?n(Object(Y.c)({message:r("SELECT_REQUEST")})):n(Object(I.c)({children:Object(g.jsx)(ii.a,{title:r("OFFLINE_DRIVE"),content:r("OFFLINE_DRIVE_CONFIRM_2"),fnHandleOK:()=>{j(e.selectedObj.offline_drive_id,1,"")}})}))},children:r("TAKEOUT_APPROVED")})]})})}):Object(g.jsx)(g.Fragment,{})]})})};var gp={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)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(_p,{loading:e,setLoading:e=>t(e),selectedObj:a,fnSetSelectedObj:e=>n(e),fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),rightSidebarContent:Object(g.jsx)(Ep,{loading:e,setLoading:t,selectedObj:a,fnToggleRightSidebar:e=>c.current.toggleRightSidebar()}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};const fp=Object(H.a)((e=>({tr:{"& .user-id":{width:200},"& .type":{width:115},"& .new_obj":{minWidth:220}}})));var xp=function(e){const{t:t}=Object(gt.a)("docbase"),a=fp(),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,r]=s.a.useState({operator:{show:""!==e.searchObj.operator,value:e.searchObj.operator}}),i=e=>{e.preventDefault()};return Object(g.jsx)(Ui.a,{children:Object(g.jsx)(Fi.a,{className:a.tr,children:n.map((t=>Object(g.jsx)(Wi.a,{className:Object(z.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)(Ct.a,{className:"flex items-center px-8 py-4 rounded-8 shadow",children:[Object(g.jsx)(G.a,{color:"action",children:"search"}),Object(g.jsx)(rc.a,{placeholder:t.label,className:"flex flex-1 mx-8 w-0",disableUnderline:!0,value:c[t.id].value,endAdornment:Object(g.jsx)(Di.a,{position:"end",children:Object(g.jsx)(U.a,{className:"p-5","aria-label":"toggle password visibility",onClick:e=>r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!1,value:""}})),onMouseDown:i,edge:"end",children:Object(g.jsx)(G.a,{color:"action",children:"close"})})}),inputProps:{"aria-label":"Search"},onChange:e=>{r(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)(G.a,{className:"align-middle ml-3 cursor-pointer",onClick:e=>{r(Object(d.a)(Object(d.a)({},c),{},{[t.id]:{show:!0,value:""}}))},children:"search"}):Object(g.jsx)(g.Fragment,{})]})},t.id)),this)})})};const Np=Object(H.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 Sp=function(e){const t=Np(),a=Object(_.b)(),c=s.a.useRef(),[r,i]=s.a.useState(window.innerHeight),{t:l}=Object(gt.a)("docbase"),{takeouts:o,rowsPerPage:d,currentPage:b}=Object(_.c)((e=>{let{docbase:t}=e;return t.admin.system.offlineTakeoutsObj}));return Object(n.useEffect)((()=>{c.current&&(c.current.style.height="".concat(r-296,"px")),window.addEventListener("resize",(()=>i(window.innerHeight)))}),[r]),Object(n.useEffect)((()=>{}),[a]),e.loading?Object(g.jsx)($,{}):Object(g.jsx)("div",{className:Object(z.a)(t.root,"w-full p-0 h-full"),children:Object(g.jsxs)(Ct.a,{className:Object(z.a)("mx-auto print:w-full print:p-8 print:shadow-none rounded-8 relative"),children:[Object(g.jsxs)("div",{className:"table-search-wrapper",children:[Object(g.jsx)("div",{className:"total-cnt-info",children:Object(g.jsxs)("span",{children:[l("TOTAL")," ",Object(g.jsx)("span",{className:"count",children:o.length}),l("CNT")]})}),Object(g.jsx)("div",{className:"search-form-wrapper",children:Object(g.jsxs)("div",{className:"",children:[Object(g.jsx)(st.a,{title:l("REFRESH"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"refresh",color:"secondary",onClick:()=>e.fnDoSearch(),children:Object(g.jsx)(la.a,{className:"small",type:"refresh",fill:"#333d4b"})},"refresh")}),Object(g.jsx)(st.a,{title:l("EXCEL_DOWNLOAD"),placement:"bottom",children:Object(g.jsx)(U.a,{"aria-label":"download",color:"secondary",onClick:()=>{const t=[l("PATH"),l("USER"),l("TAKEOUT_REQ_AT")],a=[];o.forEach((e=>{a.push({path:e.path,user:"".concat(e.user_name,"(").concat(e.user_id,")"),copied_at:Et.a.getDateStringToLocalDate(e.copied_at)})})),Tb.excelDownload("".concat(l("FILE_LOG_EXCEL")).concat(Et.a.getDateString(e.searchObj.startDate),"-").concat(Et.a.getDateString(e.searchObj.endDate)),t,a,[{wpx:400},{wpx:150},{wpx:150}])},children:Object(g.jsx)(la.a,{className:"small",type:"download",fill:"#333d4b"})},"download")})]})})]}),Object(g.jsx)(J.a,{className:Object(z.a)(t.contentWrapper,"flex-grow overflow-x-auto"),ref:c,children:Object(g.jsxs)(Gi.a,{stickyHeader:!0,className:"","aria-labelledby":"tableTitle",children:[Object(g.jsx)(xp,{searchObj:e.searchObj,rowCount:o.length,fnSearch:t=>{e.searchObj.operator!==t&&e.fnSetSearchObj(t)}}),Object(g.jsx)(Bi.a,{children:o.map(((e,t)=>Object(g.jsxs)(Fi.a,{className:"cursor-default",role:"checkbox",tabIndex:-1,children:[Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:Object(g.jsxs)("div",{children:[Object(g.jsx)("p",{className:"log-name",children:Et.a.splitLastDelimiterString(e.path)}),Object(g.jsx)("p",{className:"log-path",children:Et.a.splitPreDelimiter(e.path)})]})}),Object(g.jsx)(Wi.a,{className:"left",align:"left",component:"td",scope:"row",children:"".concat(e.user_name,"(").concat(e.user_id,")")}),Object(g.jsx)(Wi.a,{className:"",align:"center",component:"td",scope:"row",children:Et.a.getDateStringToLocalDate(e.copied_at)})]},e.id)))})]})}),Object(g.jsx)(ri.a,{className:"flex-shrink-0",component:"div",count:o.length,rowsPerPage:d,rowsPerPageOptions:[100,250,500],page:b-1,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:(t,a)=>{e.fnHandleChangePage(t,a),c.current.scrollTop=0},onChangeRowsPerPage:t=>{e.fnHandleChangeRowsPerPage(t),c.current.scrollTop=0}})]})})};var Tp={settings:{layout:{config:{footer:{display:!1}}}},routes:[{path:"/offlineTakeouts",component:function(){const e=Object(_.b)(),[t,a]=s.a.useState(!0),c=s.a.useRef(null),{t:r}=Object(gt.a)("docbase"),i=new Date,[l,o]=s.a.useState({startDate:new Date(i.getFullYear(),i.getMonth(),i.getDate()),endDate:new Date(i.getFullYear(),i.getMonth(),i.getDate()),operator:""});function b(){let t=Et.a.getDateDifference(l.startDate,l.endDate);t<=0?t=0:t++,a(!0),e(Object(sn.A)({page:1,day:0,userID:l.operator})).then((()=>{a(!1)}))}return Object(n.useEffect)((()=>{b()}),[l]),Object(g.jsx)(ti.a,{classes:{content:"flex"},header:Object(g.jsx)(rl,{}),content:Object(g.jsx)(Sp,{loading:t,searchObj:l,setLoading:a,fnSetSearchObj:e=>o(Object(d.a)(Object(d.a)({},l),{},{operator:e})),fnDoSearch:()=>b(),fnHandleChangePage:(t,n)=>{return s=n,a(!0),void e(Object(sn.B)({page:s+1})).then((()=>a(!1)));var s},fnHandleChangeRowsPerPage:t=>{return n=t,a(!0),e(Object(sn.b)({value:n.target.value})),void e(Object(sn.A)({page:1,day:0,userID:l.operator})).then((()=>a(!1)));var n}}),innerScroll:!0,sidebarInner:!0,ref:c})}}]};var Rp={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",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",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_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:"\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 \ub3d9\uae30\ud654",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:"\ubb38\uc11c \uc774\ub3d9",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 \ud655\uc778",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",ACCESS_TYPE_WEB_CREATE:"\uc5c5\ub85c\ub4dc",ACCESS_TYPE_WEB_DOWNLOAD:"\ub2e4\uc6b4\ub85c\ub4dc",ACCESS_TYPE_COLLECT_FILE:"\uc218\uc9d1",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:"\ud074\ub77c\uc774\uc5b8\ud2b8",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\uc2dc \uc790\ub3d9 \uacb0\uc815",SILENT_SETUP_HINT:"\uc5c5\ub370\uc774\ud2b8 \uc911 \uc0ac\uc6a9\uc790 \uacb0\uc815 \uc5c6\uc774 \uc790\ub3d9\uc73c\ub85c \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)",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_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:"\ube44\ud638\ud658 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac15\uc81c \uc5c5\ub370\uc774\ud2b8",FORCE_SETUP_PERFORM_HINT:"\ud074\ub77c\uc774\uc5b8\ud2b8 \ubc84\uc804\uc774 \uc11c\ubc84\uc640 \ud638\ud658\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \uac15\uc81c\ub85c \uc0c8\ub85c\uc6b4 \ud074\ub77c\uc774\uc5b8\ud2b8\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",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 \uc7a0\uae08 \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 \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:"\uc870\uc9c1\ud3f4\ub354 \ubc18\ucd9c",UNAVAILABLE:"\ubd88\ud5c8",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\ub7a8\uadf8\ub7a8 \uc0ad\uc81c",PROGRAM_TITLE_2:"\ud504\ub7a8\uadf8\ub7a8 \uc218\uc815",PROGRAM_TITLE_3:"\ud504\ub7a8\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 \ud074\ub77c\uc774\uc5b8\ud2b8",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\ud504\ub85c\uadf8\ub7a8",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 \uc0ac\uc6a9",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"};var vp={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",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",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_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:"Do you want to remove",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",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)",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_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",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",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:"\uc870\uc9c1\ud3f4\ub354 \ubc18\ucd9c",UNAVAILABLE:"\ubd88\ud5c8",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\ub7a8\uadf8\ub7a8 \uc0ad\uc81c",PROGRAM_TITLE_2:"\ud504\ub7a8\uadf8\ub7a8 \uc218\uc815",PROGRAM_TITLE_3:"\ud504\ub7a8\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 \ud074\ub77c\uc774\uc5b8\ud2b8",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\ud504\ub85c\uadf8\ub7a8",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 \uc0ac\uc6a9",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"};var Lp={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 Ap={BROWSER_TITLE:"COODOC",PRODUCT_NAME:"COODOC",PRODUCT_NAME_ADMIN:"COODOC ADMIN",PRODUCT_ADMIN:"ADMIN",USER:"",WEBLINK_TITLE:"COODOC Weblink Download"};i.a.addResourceBundle("ko","docbase",Rp),i.a.addResourceBundle("en","docbase",vp),i.a.addResourceBundle("ko","brand",Lp),i.a.addResourceBundle("en","brand",Ap);const Cp=[Zr,ei,il,Zl,no,fo,yo,Do,Ho,qd,$d,_b,ud,_d,md,Nd,Db,xb,Sd,Yd,ib,kb,Hb,qb,aj,ij,Oj,fj,Rj,fO,UO,XO,au,uu,cp,Iu,up,gp,Tp];let yp=sessionStorage.getItem("coodoc-language");null!==yp&&0!==yp.length||(yp="ko"),console.log(yp);const Pp=new y.a(window.navigator.userAgent);(window.ReactNativeWebView||Pp.mobile())&&sessionStorage.setItem("device","mobile"),o.changeLanguage(yp).then((()=>{})),document.title=Lp.BROWSER_TITLE;var Ip=[...p.generateRoutesFromConfigs(Cp),{path:"/",component:()=>Object(g.jsx)(E.a,{to:"/login"})},{path:"/admin",component:()=>Object(g.jsx)(E.a,{to:"/admin"})}];const wp=Object(mr.a)(Object(d.a)(Object(d.a)({},Object(ur.a)()),{},{plugins:[...Object(ur.a)().plugins,Object(Er.a)(),fr()()],insertionPoint:document.getElementById("jss-insertion-point")})),Dp=Object(pr.a)();var Mp=()=>Object(g.jsx)(h.Provider,{value:{routes:Ip},children:Object(g.jsx)(hr.b,{jss:wp,generateClassName:Dp,children:Object(g.jsx)(xr.a,{store:js,children:Object(g.jsx)(_r.a,{utils:b.a,children:Object(g.jsx)(Lr,{children:Object(g.jsx)(E.c,{history:je.a,children:Object(g.jsx)(x,{children:Object(g.jsx)(Or,{children:Object(g.jsx)(dr,{})})})})})})})})});var kp=e=>{e&&e instanceof Function&&a.e(4).then(a.bind(null,1057)).then((t=>{let{getCLS:a,getFID:n,getFCP:s,getLCP:c,getTTFB:r}=t;a(e),n(e),s(e),c(e),r(e)}))};r.a.render(Object(g.jsx)(Mp,{}),document.getElementById("root")),kp()}},[[901,1,2]]]); //# sourceMappingURL=main.f7e2607e.chunk.js.map