(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[87092],{92542:function(ae){ae.exports={authpageBox:"authpageBox___2L4vb",footBox:"footBox___gNAJF",tableBox:"tableBox___26e1Q",authUser:"authUser___3JM3t"}},73289:function(ae){ae.exports={logBox:"logBox___LgXH3",logHeader:"logHeader___kP2cH",headerInfo:"headerInfo___10rgi",headerOperate:"headerOperate___3ZGx8",logList:"logList___lAFiJ",icon:"icon___6tmLW",list:"list___1Ax3z",detail:"detail___38QiG",remove:"remove___2D0Gk",time:"time___142Ke",Emojipopover:"Emojipopover___TCXok",emojiUl:"emojiUl___3dxAQ",emojiLi:"emojiLi___-8Mju",moreThree:"moreThree___YcFPt",threeIcon:"threeIcon___3CM2o",CommentList:"CommentList___ZcNK9"}},5980:function(ae){ae.exports={footerPageBox:"footerPageBox___2heuZ"}},50999:function(ae){ae.exports={logBox:"logBox___1NL-x",logHeader:"logHeader___2XN71",headerInfo:"headerInfo___zRDDJ",headerOperate:"headerOperate___u5zQb",logList:"logList___Qb-3c",icon:"icon___3iSRG",list:"list___3nDA1",detail:"detail___2_6By",remove:"remove___3A9RV",time:"time___2BcI8"}},81717:function(ae){ae.exports={versionBox:"versionBox___3LNEH",versionHeader:"versionHeader___3fUBN",headerInfo:"headerInfo___3Hdxq",headerOperate:"headerOperate___CIucI",versionList:"versionList___28DGa",versionItem:"versionItem___1YKLQ",leftImg:"leftImg___3ra6G",rightInfo:"rightInfo___msqtr",head:"head___2wTtg",headLeft:"headLeft___2AN0i",currentTag:"currentTag___1qCB3",versionTag:"versionTag___1xiSy",versionSize:"versionSize___3s9_i",headRight:"headRight___1Wo3A",editBox:"editBox___2H5P9",operateBox:"operateBox___3kYFt",tag:"tag___IaCRm"}},16548:function(ae){ae.exports={fileEditR:"fileEditR___3vQH-",authUser:"authUser___fOLTk"}},87092:function(ae,Ba,a){"use strict";a.d(Ba,{Z:function(){return Gl}});var mt=a(57663),be=a(71577),ht=a(18106),ka=a(95562),gt=a(94233),Qe=a(51890),ut=a(34792),ds=a(48086),xt=a(48736),Xe=a(27049),ft=a(22385),We=a(45777),pt=a(34669),Ua=a(54458),u=a(11849),Oe=a(2824),jt=a(402),Va=a(97272),za=a(48845),cs=a.n(za),oa=a(4847),le=a(37406),Se=a(69847),wa=a(68628),ra=a(75491),na=a(89317),Ha=a(34654),Ka=a(99165),Ga=a(17490),Ja=a(1977),Ya=a(54549),Qa=a(96486),Xa=a(29119),K=a(67294),Wa=a(51964),Ze=a.n(Wa),k=a(30672),qa=a(27484),_a=a.n(qa),el=a(20640),sl=a.n(el),yt=a(20228),vs=a(11382),It=a(13254),ye=a(14277),Nt=a(87593),da=a(37636),Dt=a(13062),we=a(71230),Mt=a(89032),ge=a(15746),Lt=a(49111),xe=a(19650),al=a(49101),ms=a(8212),ca=a(84391),ll=a(73171),tl=a(33182),il=a(93488),va=a(59879),ol=a(5171),qe=a.n(ol),bt=a(14781),rl=a(23492),nl=a(5980),dl=a.n(nl),e=a(85893),cl=z=>{var t=z.page,n=z.getList,m=t!=null?t:{},M=m.currentPage,O=m.pageSize,f=O===void 0?20:O,C=m.total,S=C===void 0?0:C,b={current:M,pageSize:f,total:S,pageSizeOptions:[20,50,100,200,500,1e3],showSizeChanger:!0,hideOnSinglePage:!0,onChange:(P,L)=>{n&&n(P,L)}};return(0,e.jsx)("div",{className:dl().footerPageBox,children:(0,e.jsx)(rl.Z,(0,u.Z)({size:"small"},b))})},hs=cl,vl=a(50999),X=a.n(vl),Ue="common",ml=z=>{var t=(0,k.YB)(),n=(0,k.I0)(),m=(0,k.v9)(r=>(0,u.Z)((0,u.Z)({},r[Ue]),{},{loading:r.loading.effects["".concat(Ue,"/getpathLog")],loingModal:r.loading.effects["".concat(Ue,"/getpathLogModal")]})),M=m.loading,O=M===void 0?!1:M,f=m.loingModal,C=f===void 0?!1:f,S=m.isUpdatePathLog,b=m.listData,P=m.checkFileParams,L=P===void 0?{}:P,h=b.folderList,R=h===void 0?[]:h,U=b.fileList,N=U===void 0?[]:U,G=z.selectObj,j=G===void 0?{}:G,B=z.isModal,g=j.pathLogPage,V=g===void 0?{}:g,Y=j.pathLogList,y=Y===void 0?[]:Y,ee=V.total,c=ee===void 0?0:ee,T=r=>{switch(r){case"create":case"mkdir":case"mkfile":case"copy":return(0,e.jsx)("div",{className:X().icon,style:{background:"#722ed1"},children:(0,e.jsx)(al.Z,{})});case"rename":case"uploadNew":case"rollBack":return(0,e.jsx)("div",{className:X().icon,style:{background:"#ffce3d"},children:(0,e.jsx)(ms.Z,{})});case"upload":return(0,e.jsx)("div",{className:X().icon,style:{background:"#01bd5f"},children:(0,e.jsx)(ca.Z,{})});case"recycle":case"remove":return(0,e.jsx)("div",{className:X().icon,style:{background:"#f46e65"},children:(0,e.jsx)(ll.Z,{})});case"share":return(0,e.jsx)("div",{className:X().icon,style:{background:"#108ee9"},children:(0,e.jsx)(tl.Z,{style:{paddingRight:2}})});default:return(0,e.jsx)("div",{className:X().icon,style:{background:"#ffce3d"},children:(0,e.jsx)(ms.Z,{})})}},D=r=>{var i=r.isFolder,v=r.type,p=r.sourceID,A=r.name,oe=r.detail,F=oe===void 0?{}:oe,W=F.createType,Ie=F.from,Pe=F.to,re=F.content,fe=F.name,q=i?"folder":"file",pe=[...R,...N],ve=pe.filter(de=>de.sourceID===p)[0],ne=()=>{if(!!ve){var de=document.querySelector('.itemBox[sourceid="'.concat(ve.sourceID,'"]'));de==null||de.scrollIntoView(!1),n({type:"".concat(Ue,"/setState"),payload:{selectIds:ve?[ve.sourceID]:[],selectItems:ve?[ve]:[],checkFileParams:ve||{}}})}};switch(v){case"create":switch(W){case"copy":return p==j.sourceID?t.formatMessage({id:"log-event-create-".concat(q,"-").concat(W),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-".concat(q,"-").concat(W),defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:fe})]});case"uploadNew":return p==j.sourceID?t.formatMessage({id:"log-event-create-".concat(W),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-".concat(W),defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:fe}),t.formatMessage({id:"logs-detail-newVersion"})]});default:return p==j.sourceID?t.formatMessage({id:"log-event-create-".concat(W),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-".concat(W),defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:fe})]})}case"edit":return p==j.sourceID?t.formatMessage({id:"log-event-create-edit",defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-uploadNew",defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:A})]});case"rename":return(0,e.jsxs)(e.Fragment,{children:[p==j.sourceID?t.formatMessage({id:"logs-detail-".concat(v,"-").concat(q),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-".concat(v),defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:Pe})]}),(0,e.jsxs)("div",{children:[Ie," ",(0,e.jsx)(il.Z,{})," ",Pe]})]});case"recycle":return p==j.sourceID?t.formatMessage({id:"logs-detail-".concat(q,"-").concat(re),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-moveFrom-".concat(re),defaultMessage:v})," ",(0,e.jsx)("a",{onClick:ne,children:A})," ",t.formatMessage({id:"logs-detail-moveTo-".concat(re),defaultMessage:v})]});case"remove":return(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"log-event-remove"})," ",(0,e.jsx)("span",{className:X().remove,children:re})]});case"share":return p==j.sourceID?t.formatMessage({id:"log-event-share-".concat(q,"-").concat(re),defaultMessage:v}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("a",{onClick:ne,children:A})," ",t.formatMessage({id:"log-type-share-".concat(re)})]});case"rollBack":return p==j.sourceID?(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-rollBack.to"})," ",re]}):(0,e.jsxs)(e.Fragment,{children:[t.formatMessage({id:"logs-detail-rollBack"})," ",(0,e.jsx)("a",{onClick:ne,children:A})," ",t.formatMessage({id:"logs-detail-to"})," ",re]});default:return v}},o=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=arguments.length>1?arguments[1]:void 0;j.sourceID&&j.sourceID!="newFile"&&n({type:B?"".concat(Ue,"/getpathLogModal"):"".concat(Ue,"/getpathLog"),payload:(0,u.Z)({currentPage:1,sourceID:j.sourceID,selectObj:j},i),callback:v})};return(0,K.useEffect)(()=>{var r;((r=Object.keys(L))!==null&&r!==void 0&&r.length&&!(y!=null&&y.length)||S)&&o({},()=>{n({type:"common/setState",payload:{isUpdatePathLog:!1}})})},[j.sourceID,S]),(0,e.jsxs)("div",{className:X().logBox,children:[(0,e.jsx)("div",{className:X().logHeader,children:(0,e.jsxs)(we.Z,{gutter:[10,10],align:"middle",justify:"space-between",style:{position:"relative"},children:[(0,e.jsx)(ge.Z,{className:X().headerInfo,children:(0,e.jsxs)(xe.Z,{size:5,children:[(0,e.jsx)(na.Z,{style:{color:"#722ed1"}}),t.formatMessage({id:"admin.auth.event"}),(0,e.jsxs)("span",{className:"selfAddonAfter",children:["(",c," ",t.formatMessage({id:"explorer.table.items"}),")"]})]})}),(0,e.jsx)(ge.Z,{className:X().headerOperate,children:(0,e.jsx)(be.Z,{size:"small",style:{color:"#777"},icon:(0,e.jsx)(va.Z,{style:{fontSize:12}}),onClick:()=>o()})})]})}),(0,e.jsx)(Ze(),{style:y!=null&&y.length?{}:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(vs.Z,{spinning:B?C:O,children:y!=null&&y.length?(0,e.jsx)("div",{className:X().logList,children:(0,e.jsx)(da.Z,{children:y==null?void 0:y.map((r,i)=>{var v;return(0,e.jsx)(da.Z.Item,{dot:T(((v=r.detail)===null||v===void 0?void 0:v.createType)||r.type),children:(0,e.jsxs)("div",{className:X().list,children:[(0,e.jsxs)(we.Z,{className:X().user,gutter:[10,10],justify:"space-between",children:[(0,e.jsx)(ge.Z,{flex:"auto",children:(0,e.jsxs)(xe.Z,{align:"start",size:5,children:[(0,e.jsx)(Qe.C,{size:18,src:r.avatar||qe()}),r.nickname]})}),(0,e.jsx)(ge.Z,{className:X().time,children:r.createTime?(0,le.hK)(r.createTime):""})]}),(0,e.jsx)("div",{className:X().detail,children:D(r)})]})},r.id+"xxx"+i)})})}):(0,e.jsx)(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE,description:t.formatMessage({id:"explorer.panel.logEmpty"})})})}),(0,e.jsx)(hs,{page:V,getList:(r,i)=>{o({currentPage:r,pageSize:i})}})]})},hl=ml,Ot=a(20136),gl=a(55241),St=a(59250),ma=a(13013),ul=a(91220),Zt=a(71194),xl=a(50146),Ct=a(47673),gs=a(4107),fl=a(57119),us=a(44545),pl=a(73289),ue=a.n(pl),jl=gs.Z.TextArea,Ve="common",yl=xl.Z.confirm,xs=["[\u7231\u4F60]","[\u767D\u773C]","[\u9F3B\u6D95]","[\u95ED\u5634]","[\u5472\u7259]","[\u5927\u7B11]","[\u5F97\u610F]","[\u6076\u5FC3]","[\u53D1\u70E7]","[\u5C34\u5C2C]","[\u9B3C\u8138]","[\u597D\u5403]","[\u778C\u7761]","[\u53E3\u6C34]","[\u53E3\u7F69]","[\u5BBD\u6170]","[\u51B7]","[\u96BE\u8FC7]","[\u4FCF\u76AE]","[\u4EB2\u4EB2]","[\u70ED]","[\u53D7\u4F24]","[\u7761\u7740\u4E86]","[\u8BF4\u8C0E]","[\u601D\u8003]","[\u5410\u4E86]","[\u5410\u820C]","[\u54C7\u585E]","[\u5FAE\u7B11]","[\u559C\u6B22]","[\u7B11\u54ED]","[\u865A\u5F31]","[\u5618]","[\u6655\u7729]","[100\u5206]","[\u7231\u5FC3]","[\u62DC\u6258]","[\u5927\u54ED]","[\u62C5\u5FE7]","[\u9F13\u638C]","[\u54C8\u6B20]","[\u52A0\u6CB9]","[\u60CA\u6050]","[\u60CA\u8BB6]","[\u6CAE\u4E27]","[\u805A\u4F1A]","[\u6073\u6C42]","[\u54ED\u6CE3]","[\u8138\u7EA2]","[\u73AB\u7470]","[\u8FF7\u60D1]","[\u58A8\u955C]","[\u725B\u4ED4]","[\u75B2\u60EB]","[\u5F3A\u58EE]","[\u751F\u6C14]","[\u80DC\u5229]","[\u5C0F\u4E11]","[\u5FC3\u788E]","[\u773C\u955C]","[\u8D5E]","[\u5492\u9A82]","[OK]"],Il=z=>{var t=(0,k.YB)(),n=(0,k.I0)(),m=(0,k.v9)(d=>(0,u.Z)((0,u.Z)({},d[Ve]),{},{loading:d.loading.effects["".concat(Ve,"/getcommentList")],loingModal:d.loading.effects["".concat(Ve,"/getcommentListModal")]})),M=(0,k.tT)("@@initialState"),O=M.initialState,f=M.setInitialState,C=O.currentUser,S=C.user,b=S.userID,P=(0,K.useState)(""),L=(0,Oe.Z)(P,2),h=L[0],R=L[1],U=(0,K.useState)(!1),N=(0,Oe.Z)(U,2),G=N[0],j=N[1],B=(0,K.useRef)(null),g=m.loading,V=g===void 0?!1:g,Y=m.loingModal,y=Y===void 0?!1:Y,ee=m.isUpdateCommet,c=m.listData,T=m.checkFileParams,D=T===void 0?{}:T,o=m.isIframe,r=z.selectObj,i=r===void 0?{}:r,v=z.isModal,p=i.CommetPage,A=p===void 0?{}:p,oe=i.CommetList,F=oe===void 0?[]:oe,W=A.total,Ie=W===void 0?0:W,Pe=d=>{var x="",w=d.split("["),H=w[1].split("]");return H[0]},re=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1?arguments[1]:void 0;i.sourceID&&i.sourceID!="newFile"&&n({type:v?"".concat(Ve,"/getcommentListModal"):"".concat(Ve,"/getcommentList"),payload:(0,u.Z)({currentPage:1,targetID:i.sourceID,selectObj:i},x),callback:w})},fe=d=>{var x=$(d.target)[0],w=x.nodeName.toLowerCase();if(w=="img"){var H=x.currentSrc;if(!(x.className.indexOf("moreThree")>-1)){var Q=[{src:H,key:"xxx"}];n({type:"common/setState",payload:{PhotoSliderVisible:!0,PhotoSliderIndex:0,PhotoSliderImages:Q}})}}else{var I=$(d.target).find("img");if(I.length){var ce=I[0],ze=ce.currentSrc;if(!(ce.className.indexOf("moreThree")>-1)){var Ke=[{src:ze,key:"xxx"}];n({type:"common/setState",payload:{PhotoSliderVisible:!0,PhotoSliderIndex:0,PhotoSliderImages:Ke}})}}}},q=d=>{var x=d.content||"",w=new RegExp("(\\[).*?(\\])","g");if(x.match(w)){var H=x.match(w),Q=!1;H&&H.length<4&&H.toString().replace(/,/g," ")==x&&(Q=!0);var I=(0,ul.Z)(H),ce;try{var ze=function(){var ps=ce.value,js=xs.findIndex(as=>as==ps);if(js>=0){var ss=Pe(xs[js]),E='');x=x.replace(ps,E)}};for(I.s();!(ce=I.n()).done;)ze()}catch(Ke){I.e(Ke)}finally{I.f()}}return x},pe=d=>{var x=document.createElement("div");return x.innerText?x.innerText=d:x.textContent=d,x.innerHTML},ve=d=>{!h.trim()&&!d||n({type:"".concat(Ve,"/commentsave"),payload:{content:d||h.trim(),targetID:i.sourceID},callback:x=>{x.success&&(R(""),n({type:"common/setState",payload:{isUpdateCommet:!0}}))}})},ne=d=>{yl({icon:(0,e.jsx)(fl.Z,{}),content:t.formatMessage({id:"common.ifDel"}),okText:t.formatMessage({id:"common.oktext"}),cancelText:t.formatMessage({id:"common.cancel"}),onOk(){n({type:"common/commentdel",payload:{commentID:d.commentID},callback:x=>{x.success&&n({type:"common/setState",payload:{isUpdateCommet:!0}})}})},onCancel(){}})};(0,K.useEffect)(()=>{var d;((d=Object.keys(D))!==null&&d!==void 0&&d.length&&!(F!=null&&F.length)||ee)&&re({},()=>{n({type:"common/setState",payload:{isUpdateCommet:!1}})})},[i.sourceID,ee]);var de=(d,x)=>[{key:"1",label:(0,e.jsx)("a",{onClick:()=>{ne(d)},target:"_blank",rel:"noopener noreferrer",style:{textAlign:"center"},children:t.formatMessage({id:"common.delete"})})}];return(0,e.jsxs)("div",{className:ue().logBox,children:[(0,e.jsx)("div",{className:ue().logHeader,children:(0,e.jsxs)(we.Z,{gutter:[10,10],align:"middle",justify:"space-between",style:{position:"relative"},children:[(0,e.jsx)(ge.Z,{className:ue().headerInfo,children:(0,e.jsxs)(xe.Z,{size:5,children:[(0,e.jsx)(ra.Z,{style:{color:"#722ed1"}}),t.formatMessage({id:"explorer.panel.chatName"}),(0,e.jsxs)("span",{className:"selfAddonAfter",children:["(",Ie," ",t.formatMessage({id:"explorer.table.items"}),")"]})]})}),(0,e.jsx)(ge.Z,{className:ue().headerOperate})]})}),(0,e.jsx)(Ze(),{style:F!=null&&F.length?{}:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(vs.Z,{spinning:v?y:V,children:F!=null&&F.length?(0,e.jsx)("div",{className:ue().CommentList,children:F.map((d,x)=>{var w=q(d),H=w.indexOf("threeIcon")>-1;return d.userID!=b?(0,e.jsxs)("div",{className:"receivebox",children:[(0,e.jsx)("div",{className:"coverbox",children:(0,e.jsxs)("div",{title:"",className:"face",children:[" ",(0,e.jsx)("img",{src:d.avatar?""+d.avatar:qe()})]})}),(0,e.jsxs)("div",{className:"receivecontent",children:[(0,e.jsx)("div",{className:"sendName",children:d.nickname||d.name}),(0,e.jsx)("div",{onClick:Q=>{fe(Q)},dangerouslySetInnerHTML:{__html:w.replace(/