Files
yakpanel-core/YakPanel/static/vite/js/FileIcon-legacy-CYrICTNK.js

2 lines
33 KiB
JavaScript
Raw Normal View History

2026-04-07 02:04:22 +05:30
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,t){"use strict";var i,a,n,o,l,c,s,r,u,p,f,d,m,v,g,b,h,x,y,k,w,_,C,O,F,P,S,R,j,M;return{setters:[e=>{i=e.b_,a=e.as,n=e.ap,o=e.a3,l=e.p,c=e.P,s=e.n,r=e.b1,u=e.m,p=e.i,f=e.h,d=e.ar,m=e.aq,v=e.c},e=>{g=e.c},e=>{b=e.r,h=e.X,x=e.av,y=e.a3,k=e.n,w=e.a0,_=e.F,C=e.k,O=e.c,F=e.$,P=e.Z,S=e.L,R=e.S},e=>{j=e.c},e=>{M=e.al}],execute:function(){var L=document.createElement("style");function q(e,t,a){const n=b(!0),o=b(0),l=b(0),c=b(0),s=b(0),r=b(0),u=b(0),p=b(0),f=b(0);let d;h(e)?d=e.value:"string"==typeof e?d=document.querySelector(e):e instanceof Element&&(d=e);const m=function(){let e=null;return!!t&&(()=>{e||(e=setTimeout((()=>{t({m_flag:n,m_left:o,m_right:l,m_bottom:s,m_top:c,m_x:p,m_y:f,m_height:r,m_width:u}),clearTimeout(e),e=null}),10))})}();function v(e){const{left:t,right:i,top:a,bottom:n,height:d,width:m,x:v,y:g}=e.getBoundingClientRect();o.value=t,l.value=i,c.value=a,s.value=n,r.value=d,u.value=m,p.value=v,f.value=g}const g=e=>{if(a&&a(e,{m_flag:n,m_left:o,m_right:l,m_bottom:s,m_top:c,m_x:p,m_y:f,m_height:r,m_width:u}),!n.value)return;const{left:t,right:g,top:b,bottom:h}=d.getBoundingClientRect(),x=document.createElement("div"),y=e.clientX,k=e.clientY;x.style.position="absolute",x.style.left=y-t+"px",x.style.top=k-b+"px",x.style.width="0px",x.style.height="0px",x.style.backgroundColor="rgba(135, 182, 130, 0.1)",x.classList.add("district-wrapper"),d.appendChild(x),e.preventDefault();const{pause:w,resume:_,isActive:C}=i((()=>{S.scrollTop>=S.scrollHeight-S.clientHeight?w():(x.style.height=x.offsetHeight+10+"px",x.style.marginTop=parseInt(getComputedStyle(x).marginTop)-10+"px",S.scrollTop+=10,R=S.scrollTop,v(x),m&&m())}),{immediate:!1}),{pause:O,resume:F,isActive:P}=i((()=>{S.scrollTop<=0?O():(x.style.height=x.offsetHeight+10+"px",S.scrollTop-=10,j+=10,v(x),m&&m())}),{immediate:!1}),S=d.querySelector(".n-scrollbar-container");let R=0,j=0;document.onmousemove=e=>{e.preventDefault(),C.value||P.value||(y<=e.clientX?x.style.width=e.clientX-y+"px":(x.style.width=y-e.clientX+"px",x.style.marginLeft=-(y-e.clientX)+"px"),k<=e.clientY?(x.style.height=e.clientY-k+R+"px",x.style.marginTop=-R+"px"):(x.style.height=k-e.clientY+j+"px",x.style.marginTop=-(k-e.clientY)+"px"),e.clientX<t&&(x.style.width=y-t+"px",x.style.marginLeft=-(y-t)+"px"),e.clientX>g&&(x.style.width=g-y+"px")),e.clientY>h&&_(),e.clientY<b&&F(),v(x),m&&m()},document.onmouseup=()=>{document.onmousemove=null,d.contains(x)&&d.removeChild(x)}};return d&&(d.onmousedown=g),{m_flag:n,m_x:p,m_y:f,m_left:o,m_right:l,m_top:c,m_bottom:s,m_height:r,m_width:u}}function N(e,t){const i=x(e.m_left),a=x(e.m_right),n=x(e.m_top),o=x(e.m_bottom),l=x(t.left),c=x(t.right),s=x(t.top),r=x(t.bottom);return!(c<i||l>a||r<n||s>o)}L.textContent=".files-icon[data-v-989c0bf5]{display:inline-block;width:25px;height:25px;background-image:url(/static/vite/images/file_icon-D_ZUYh8x.png);background-repeat:no-repeat;background-size:25px;background-position:0px -375px}.files-icon.medium-icon.table-swf-icon[data-v-989c0bf5]{background-position:0px 0px}.files-icon.medium-icon.table-webm-icon[data-v-989c0bf5]{background-position:0px -25px}.files-icon.medium-icon.table-webp-icon[data-v-989c0bf5]{background-position:0px -50px}.files-icon.medium-icon.table-wma-icon[data-v-989c0bf5]{background-position:0px -75px}.files-icon.medium-icon.table-wmv-icon[data-v-989c0bf5]{background-position:0px -100px}.files-icon.medium-icon.table-xls-icon[data-v-989c0bf5]{background-position:0px -125px}.files-icon.medium-icon.table-xml-icon[data-v-989c0bf5]{background-position:0px -150px}.files-icon.medium-icon.table-access-icon[data-v-989c0bf5]{background-position:0px -175px}.files-icon.medium-icon.table-apk-icon[data-v-989c0bf5]{background-position:0px -200px}.files-icon.medium-icon.table-avi-icon[data-v-989c0bf5],.files-icon.medium-icon.table-bmp-icon[data-v-989c0bf5]{background-p