3 lines
27 KiB
JavaScript
3 lines
27 KiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-CXfbSKqD.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/files-BUbkyTRl.js?v=1773287522785","js/ace-CNnfDSio.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785","js/data-BVsViUMm.js?v=1773287522785","js/useTableColumns-DDeyYvje.js?v=1773287522785","js/index-S15tYq5l.js?v=1773287522785","js/copy-D-wIKr0q.js?v=1773287522785","js/index-DIKmrNCq.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785","js/index-Cg6fMjw6.js?v=1773287522785","css/index-C0yiexTP.css?v=1773287522785","js/FileTask-BHdDTz4Y.js?v=1773287522785","js/useLoop-BadgF3pN.js?v=1773287522785","js/soft-Cjyfamvm.js?v=1773287522785","css/FileTask-CpN2e5PY.css?v=1773287522785"])))=>i.map(i=>d[i]);
|
||
|
|
import{b_ as Q,as as d,ap as se,a3 as z,p as ie,P as le,n as Se,b1 as oe,m as A,i as J,h as X,ar as Re,aq as De,c as Le}from"./index-BTglIPU2.js?v=1773287522785";import{c as Te}from"./soft-Cjyfamvm.js?v=1773287522785";import{r as F,X as Me,av as T,a3 as re,n as B,a0 as D,F as Ne,k as qe,c as Ee,$ as je,Z as Ae,L as Ie,S as Ke}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as ze}from"./copy-D-wIKr0q.js?v=1773287522785";import{al as ee}from"./naive-ui--dJnpVcV.js?v=1773287522785";function $e(t,e,a){const n=F(!0),s=F(0),i=F(0),l=F(0),o=F(0),r=F(0),u=F(0),p=F(0),w=F(0);function h(){let y=null;return e?()=>{y||(y=setTimeout(()=>{e({m_flag:n,m_left:s,m_right:i,m_bottom:o,m_top:l,m_x:p,m_y:w,m_height:r,m_width:u}),clearTimeout(y),y=null},10))}:!1}let m;Me(t)?m=t.value:typeof t=="string"?m=document.querySelector(t):t instanceof Element&&(m=t);const k=h();function q(y){const{left:O,right:L,top:S,bottom:R,height:c,width:x,x:P,y:j}=y.getBoundingClientRect();s.value=O,i.value=L,l.value=S,o.value=R,r.value=c,u.value=x,p.value=P,w.value=j}const K=y=>{if(a&&a(y,{m_flag:n,m_left:s,m_right:i,m_bottom:o,m_top:l,m_x:p,m_y:w,m_height:r,m_width:u}),!n.value)return;const{left:O,right:L,top:S,bottom:R}=m.getBoundingClientRect(),c=document.createElement("div"),x=y.clientX,P=y.clientY;c.style.position="absolute",c.style.left=x-O+"px",c.style.top=P-S+"px",c.style.width="0px",c.style.height="0px",c.style.backgroundColor="rgba(135, 182, 130, 0.1)",c.classList.add("district-wrapper"),m.appendChild(c),y.preventDefault();const j=C=>{C.preventDefault(),!Fe.value&&!Pe.value&&(x<=C.clientX?c.style.width=C.clientX-x+"px":(c.style.width=x-C.clientX+"px",c.style.marginLeft=-(x-C.clientX)+"px"),P<=C.clientY?(c.style.height=C.clientY-P+G+"px",c.style.marginTop=-G+"px"):(c.style.height=P-C.clientY+Z+"px",c.style.marginTop=-(P-C.clientY)+"px"),C.clientX<O&&(c.style.width=x-O+"px",c.style.marginLeft=-(x-O)+"px"),C.clientX>L&&(c.style.width=L-x+"px")),C.clientY>R&&ke(),C.clientY<S&&Oe(),q(c),k&&k()},{pause:f,resume:ke,isActive:Fe}=Q(()=>{if(E.scrollTop>=E.scrollHeight-E.clientHeight){f();return}c.style.height=c.offsetHeight+10+"px",c.style.marginTop=parseInt(getComputedStyle(c).marginTop)-10+"px",E.scrollTop+=10,G=E.scrollTop,q(c),k&&k()},{immediate:!1}),{pause:_e,resume:Oe,isActive:Pe}=Q(()=>{if(E.scrollTop<=0){_e();return}c.style.height=c.offsetHeight+10+"px",E.scrollTop-=10,Z+=10,q(c),k&&k()},{immediate:!1}),E=m.querySelector(".n-scrollbar-container");let G=0,Z=0;document.onmousemove=j,document.onmouseup=()=>{document.onmousemove=null,m.contains(c)&&m.removeChild(c)}};return m&&(m.onmousedown=K),{m_flag:n,m_x:p,m_y:w,m_left:s,m_right:i,m_top:l,m_bottom:o,m_height:r,m_width:u}}function Be(t,e){const a=T(t.m_left),n=T(t.m_right),s=T(t.m_top),i=T(t.m_bottom),l=T(e.left),o=T(e.right),r=T(e.top),u=T(e.bottom);return!(o<a||l>n||u<s||r>i)}const{t:Ve}=z.global;async function Ue(t){const{shareList:e,shareListPage:a,shareListTotal:n}=t;try{const s=await d.post("/files?action=get_download_url_list",{p:a.value,row:12});return e.value=s.message.data,n.value=se(s.message.page),e.value}catch(s){return console.warn(s),[]}}async function Ge(t,e){try{await d.post("/files?action=remove_download_url",{id:e},{requestOptions:{loading:Ve("file.shareListModal.deletingShare"),successMessage:!0}}),g(t)}catch(a){console.warn(a)}}const ce=(t,e)=>{ie({width:"80vw",height:"80vh",bgColor:"transparent",hideClose:!0,showMask:!1,data:{filePath:t,currentPath:e},component:re(()=>le(()=>import("./index-CXfbSKqD.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])))})},Je=oe(t=>lt(t),100),{t:b}=z.global;async function g(t,e){var S;const{tableLoading:a,currentPath:n,favoriteList:s,fileRecycle:i,fileList:l,filesView:o,dirNums:r,fileNums:u,total:p,page:w,size:h,sort:m,reverse:k,diskMountPoint:q,currentFile:K,currentDirSize:y,uploadFileList:O,dragUploadRef:L}=t;a.value=!0;try{const R=await Et(n.value,f=>{s.value=f.store,i.value=f.file_recycle,r.value=f.dir.length,u.value=f.files.length,p.value=se(f.page),q.value=f.disk,n.value=f.path},{p:w.value,showRow:h.value,.
|