File: /www/server/panel/BTPanel/static/js/index-legacy543.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,l){if(e){if("string"==typeof e)return t(e,l);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,l):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,n=Array(t);l<t;l++)n[l]=e[l];return n}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,l){"use strict";var n,a,i,r,s,c,u,o,d,m,f,v,p,_,h,g,y,b,x,w,V,I,C,j,k,U,A,z,S,D,F,H,O,E;return{setters:[function(e){n=e.Q,a=e.R,i=e.cO,r=e.cZ,s=e.G,c=e.c7,u=e.W,o=e.cR},function(e){d=e.c,m=e.aI,f=e.g,v=e.j,p=e.k,_=e.q,h=e.p,g=e.e,y=e.s,b=e.x,x=e.F,w=e.B,V=e.A,I=e.v,C=e.J,j=e.K,k=e.az,U=e.o,A=e.U,z=e.ag,S=e.z,D=e.a8,F=e.I,H=e.Q,O=e.aE},function(e){E=e.ci},null,null,null],execute:function(){var l={class:"flex flex-col h-[40rem]"},L={class:"item-card"},M={class:"item"},N={class:"title"},Q=["src"],R={class:"con"},$={class:"item-card"},q={class:"item"},B={class:"con"},G={class:"item"},J={class:"con overflow-ellipsis flex-1 break-all"},K={class:"item"},P={class:"con"},T={class:"item-card"},W={class:"item"},Z={class:"con"},X={class:"item"},Y={class:"con"},ee={class:"item"},te={class:"con"},le={class:"item-card !border-b-0"},ne={class:"item"},ae={class:"con"},ie={class:"item"},re={class:"con"},se=r(d({__name:"base",setup:function(e){var t=E(),r=m(t).fileItem,s=f(function(){return"".concat(r.value.path,"/").concat(r.value.name).replace(/\/\//g,"/")});return function(e,t){var c=i;return v(),p("div",l,[_("div",L,[_("div",M,[_("div",N,[_("img",{class:"w-[5rem] h-[5rem]",src:"/static/images/file_icon/".concat(h(r).is_dir?"folder_win10":"file",".png"),alt:""},null,8,Q)]),_("div",R,[g(c,{width:"38rem",modelValue:h(r).name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return h(r).name=e}),disabled:""},null,8,["modelValue"])])])]),_("div",$,[_("div",q,[t[2]||(t[2]=_("div",{class:"title"},"类型:",-1)),_("div",B,y(h(r).st_type||"未知文件"),1)]),_("div",G,[t[3]||(t[3]=_("div",{class:"title"},"文件路径:",-1)),_("div",J,[b(y(h(s))+" ",1),_("i",{class:"svgtofont-icon-copy cursor-pointer hover:text-primary text-base ml-[4px] align-middle",onClick:t[1]||(t[1]=function(e){return h(n)({value:"".concat(h(r).path,"/").concat(h(r).name)})})})])]),_("div",K,[t[4]||(t[4]=_("div",{class:"title"},"大小:",-1)),_("div",P,y(h(r).st_size),1)])]),_("div",T,[_("div",W,[t[5]||(t[5]=_("div",{class:"title"},"权限:",-1)),_("div",Z,y(h(r).mode),1)]),_("div",X,[t[6]||(t[6]=_("div",{class:"title"},"所属组:",-1)),_("div",Y,y(h(r).group),1)]),_("div",ee,[t[7]||(t[7]=_("div",{class:"title"},"所属用户:",-1)),_("div",te,y(h(r).user),1)])]),_("div",le,[_("div",ne,[t[8]||(t[8]=_("div",{class:"title"},"访问时间:",-1)),_("div",ae,y(h(a)(h(r).st_atime)),1)]),_("div",ie,[t[9]||(t[9]=_("div",{class:"title"},"修改时间:",-1)),_("div",re,y(h(a)(h(r).st_mtime)),1)])])])}}}),[["__scopeId","data-v-8523bf39"]]),ce={class:"h-[40rem] pt-[.5rem] overflow-hidden"},ue={class:"h-[36.5rem] overflow-y-auto"},oe={class:"title"},de={class:"con"},me=r(d({__name:"detail",setup:function(e){var t=E(),l=m(t),n=(l.fileItem,l.attrList);return function(e,t){return v(),p("div",ce,[t[0]||(t[0]=_("div",{class:"item th"},[_("div",{class:"title"},"属性"),_("div",{class:"con"},"值")],-1)),_("div",ue,[(v(!0),p(x,null,w(h(n),function(e){return v(),p("div",{key:e.title,class:"item"},[_("div",oe,y(e.title),1),_("div",de,y(e.value),1)])}),128))])])}}}),[["__scopeId","data-v-dcad293d"]]),fe={class:"h-[40rem] pt-[.5rem] overflow-hidden"},ve={class:"h-[36.5rem] overflow-y-auto"},pe={class:"w-[14rem]"},_e={class:"w-[8.5rem]"},he={class:"con"},ge={class:"w-[9rem] text-right"},ye=r(d({__name:"history",setup:function(t){var l=E(),n=m(l).fileItem,i=(l.showHistory,l.recoverHistory);return function(t,l){var r=c,u=k;return v(),p("div",fe,[l[1]||(l[1]=V('<div class="item th" data-v-b506af14><div class="w-[14rem]" data-v-b506af14>修改时间</div><div class="w-[8.5rem]" data-v-b506af14>文件大小</div><div class="con" data-v-b506af14>MD5</div><div class="w-[9rem] text-right" data-v-b506af14>操作</div></div>',1)),_("div",ve,[(v(!0),p(x,null,w(h(n).history,function(t){return v(),p("div",{key:t.md5,class:"item"},[_("div",pe,y(h(a)(t.st_mtime)),1),_("div",_e,y("".concat(h(s)(t.st_size))),1),_("div",he,y(t.md5),1),_("div",ge,[g(r,{onClick:function(e){return h(i)(t)}},{default:I(function(){return e(l[0]||(l[0]=[b("恢复",-1)]))}),_:1},8,["onClick"])])])}),128)),C(g(u,{description:"暂无历史版本"},null,512),[[j,0===h(n).history.length]])])])}}}),[["__scopeId","data-v-b506af14"]]),be={class:"h-[40rem] overflow-hidden"},xe={class:"flex justify-around"},we={class:"p-4px"},Ve={class:"p-4px"},Ie={class:"p-4px"},Ce={class:"flex items-center pl-[3rem]"},je=r(d({__name:"auth",setup:function(t){var l=E(),n=m(l),a=n.checkList,r=n.ownerOptions,s=l.checkNumber,c=l.changeUser,o=l.setFileAuths,d=l.reversePermission,f=l.getFileAuths;return U(function(){f()}),function(t,l){var n=A,m=z,f=i,y=u,x=S;return v(),p("div",be,[_("div",xe,[_("fieldset",we,[l[9]||(l[9]=_("legend",null,"所有者",-1)),g(m,{class:"flex flex-col",style:{gap:"4px"},modelValue:h(a).owner,"onUpdate:modelValue":l[0]||(l[0]=function(e){return h(a).owner=e}),onChange:h(d)},{default:I(function(){return[g(n,{class:"ml-[1rem]",label:"r"},{default:I(function(){return e(l[6]||(l[6]=[b("读取",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"w"},{default:I(function(){return e(l[7]||(l[7]=[b("写入",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"x"},{default:I(function(){return e(l[8]||(l[8]=[b("执行",-1)]))}),_:1})]}),_:1},8,["modelValue","onChange"])]),_("fieldset",Ve,[l[13]||(l[13]=_("legend",null,"用户组",-1)),g(m,{class:"flex flex-col",style:{gap:"4px"},modelValue:h(a).group,"onUpdate:modelValue":l[1]||(l[1]=function(e){return h(a).group=e}),onChange:h(d)},{default:I(function(){return[g(n,{class:"ml-[1rem]",label:"r"},{default:I(function(){return e(l[10]||(l[10]=[b("读取",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"w"},{default:I(function(){return e(l[11]||(l[11]=[b("写入",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"x"},{default:I(function(){return e(l[12]||(l[12]=[b("执行",-1)]))}),_:1})]}),_:1},8,["modelValue","onChange"])]),_("fieldset",Ie,[l[17]||(l[17]=_("legend",null,"公共",-1)),g(m,{class:"flex flex-col",modelValue:h(a).public,"onUpdate:modelValue":l[2]||(l[2]=function(e){return h(a).public=e}),style:{gap:"4px"},onChange:h(d)},{default:I(function(){return[g(n,{class:"ml-[1rem]",label:"r"},{default:I(function(){return e(l[14]||(l[14]=[b("读取",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"w"},{default:I(function(){return e(l[15]||(l[15]=[b("写入",-1)]))}),_:1}),g(n,{class:"ml-[1rem]",label:"x"},{default:I(function(){return e(l[16]||(l[16]=[b("执行",-1)]))}),_:1})]}),_:1},8,["modelValue","onChange"])])]),_("div",Ce,[g(f,{width:"6rem",modelValue:h(a).auth,"onUpdate:modelValue":l[3]||(l[3]=function(e){return h(a).auth=e}),onInput:h(s),class:"!w-6rem",type:"number",min:"0",max:"777",oninput:"if(value){value=value.replace(/[^\\d]/g,'')} if(value<=0){value=0} if(value>777){value=777}"},null,8,["modelValue","onInput"]),l[20]||(l[20]=_("div",{class:"mx-[1rem]"},"权限,所有者",-1)),g(y,{modelValue:h(a).user,"onUpdate:modelValue":l[4]||(l[4]=function(e){return h(a).user=e}),options:h(r),class:"!w-[10rem]",onChange:h(c)},null,8,["modelValue","options","onChange"]),g(n,{class:"ml-[1rem]",modelValue:h(a).isDir,"onUpdate:modelValue":l[5]||(l[5]=function(e){return h(a).isDir=e})},{default:I(function(){return e(l[18]||(l[18]=[b("应用到子目录",-1)]))}),_:1},8,["modelValue"]),g(x,{type:"primary",class:"!ml-[2rem]",onClick:h(o)},{default:I(function(){return e(l[19]||(l[19]=[b("应用",-1)]))}),_:1},8,["onClick"])])])}}}),[["__scopeId","data-v-18d91339"]]),ke={class:"p-2rem"};t("default",d({__name:"index",props:{compData:{default:function(){return{fileItem:{},tab:"routine"}}}},setup:function(e){var t=E(),l=m(t),n=l.activeName,a=l.load,i=t.getFileItem,r=t.$reset;return U(function(){i()}),D(function(){r()}),function(e,t){var l=O,i=o,r=F("bt-loading");return C((v(),p("div",ke,[g(i,{modelValue:h(n),"onUpdate:modelValue":t[0]||(t[0]=function(e){return H(n)?n.value=e:null}),type:"card"},{default:I(function(){return[g(l,{label:"常规",name:"routine",lazy:""},{default:I(function(){return[g(se)]}),_:1}),g(l,{label:"详细信息",name:"detail",lazy:""},{default:I(function(){return[g(me)]}),_:1}),g(l,{label:"历史版本",name:"history",lazy:""},{default:I(function(){return[g(ye)]}),_:1}),g(l,{label:"权限",name:"auth",lazy:""},{default:I(function(){return[g(je)]}),_:1})]}),_:1},8,["modelValue"])])),[[r,h(a)],[r,"正在获取文件信息,请稍候...","title"]])}}}))}}})}();