import{f as on,U as ag,P as ug,m as lg,n as og,_ as lu}from"./app.b25a7691.js";import{D as fg}from"./index.c08ef39e.js";import{l as cg}from"./longpress.c69d0833.js";import{U as hg}from"./tip.434cbacc.js";var Ci={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(r,h){(function(){var s,c="4.17.21",x=200,O="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",P="Expected a function",G="Invalid `variable` option passed into `_.template`",ge="__lodash_hash_undefined__",Ye=500,mt="__lodash_placeholder__",Je=1,yi=2,wt=4,xt=1,fn=2,_e=1,at=2,bi=4,Ee=8,It=16,ke=32,Lt=64,Pe=128,Ut=256,ir=512,ou=30,fu="...",cu=800,hu=16,Ti=1,du=2,pu=3,ut=1/0,Xe=9007199254740991,gu=17976931348623157e292,cn=0/0,Re=4294967295,_u=Re-1,vu=Re>>>1,mu=[["ary",Pe],["bind",_e],["bindKey",at],["curry",Ee],["curryRight",It],["flip",ir],["partial",ke],["partialRight",Lt],["rearg",Ut]],$t="[object Arguments]",hn="[object Array]",wu="[object AsyncFunction]",Wt="[object Boolean]",Nt="[object Date]",xu="[object DOMException]",dn="[object Error]",pn="[object Function]",Fi="[object GeneratorFunction]",Se="[object Map]",zt="[object Number]",Iu="[object Null]",Be="[object Object]",Ei="[object Promise]",Lu="[object Proxy]",Ht="[object RegExp]",Ce="[object Set]",Gt="[object String]",gn="[object Symbol]",$u="[object Undefined]",Kt="[object WeakMap]",Au="[object WeakSet]",qt="[object ArrayBuffer]",At="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",lr="[object Int16Array]",or="[object Int32Array]",fr="[object Uint8Array]",cr="[object Uint8ClampedArray]",hr="[object Uint16Array]",dr="[object Uint32Array]",Su=/\b__p \+= '';/g,Cu=/\b(__p \+=) '' \+/g,yu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ki=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,bu=RegExp(ki.source),Tu=RegExp(Ri.source),Fu=/<%-([\s\S]+?)%>/g,Eu=/<%([\s\S]+?)%>/g,Oi=/<%=([\s\S]+?)%>/g,ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ru=/^\w*$/,Ou=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/[\\^$.*+?()[\]{}|]/g,Du=RegExp(pr.source),gr=/^\s+/,Mu=/\s/,Pu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bu=/\{\n\/\* \[wrapped with (.+)\] \*/,Uu=/,? & /,Wu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nu=/[()=,{}\[\]\/\s]/,zu=/\\(\\)?/g,Hu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Gu=/^[-+]0x[0-9a-f]+$/i,Ku=/^0b[01]+$/i,qu=/^\[object .+?Constructor\]$/,Zu=/^0o[0-7]+$/i,Yu=/^(?:0|[1-9]\d*)$/,Ju=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,Xu=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",Qu="\\u0300-\\u036f",Vu="\\ufe20-\\ufe2f",ju="\\u20d0-\\u20ff",Mi=Qu+Vu+ju,Pi="\\u2700-\\u27bf",Bi="a-z\\xdf-\\xf6\\xf8-\\xff",el="\\xac\\xb1\\xd7\\xf7",tl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nl="\\u2000-\\u206f",rl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",Ni=el+tl+nl+rl,_r="['\u2019]",il="["+vn+"]",zi="["+Ni+"]",mn="["+Mi+"]",Hi="\\d+",sl="["+Pi+"]",Gi="["+Bi+"]",Ki="[^"+vn+Ni+Hi+Pi+Bi+Ui+"]",vr="\\ud83c[\\udffb-\\udfff]",al="(?:"+mn+"|"+vr+")",qi="[^"+vn+"]",mr="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Ui+"]",Zi="\\u200d",Yi="(?:"+Gi+"|"+Ki+")",ul="(?:"+St+"|"+Ki+")",Ji="(?:"+_r+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+_r+"(?:D|LL|M|RE|S|T|VE))?",Qi=al+"?",Vi="["+Wi+"]?",ll="(?:"+Zi+"(?:"+[qi,mr,wr].join("|")+")"+Vi+Qi+")*",ol="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ji=Vi+Qi+ll,cl="(?:"+[sl,mr,wr].join("|")+")"+ji,hl="(?:"+[qi+mn+"?",mn,mr,wr,il].join("|")+")",dl=RegExp(_r,"g"),pl=RegExp(mn,"g"),xr=RegExp(vr+"(?="+vr+")|"+hl+ji,"g"),gl=RegExp([St+"?"+Gi+"+"+Ji+"(?="+[zi,St,"$"].join("|")+")",ul+"+"+Xi+"(?="+[zi,St+Yi,"$"].join("|")+")",St+"?"+Yi+"+"+Ji,St+"+"+Xi,fl,ol,Hi,cl].join("|"),"g"),_l=RegExp("["+Zi+vn+Mi+Wi+"]"),vl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ml=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wl=-1,z={};z[sr]=z[ar]=z[ur]=z[lr]=z[or]=z[fr]=z[cr]=z[hr]=z[dr]=!0,z[$t]=z[hn]=z[qt]=z[Wt]=z[At]=z[Nt]=z[dn]=z[pn]=z[Se]=z[zt]=z[Be]=z[Ht]=z[Ce]=z[Gt]=z[Kt]=!1;var N={};N[$t]=N[hn]=N[qt]=N[At]=N[Wt]=N[Nt]=N[sr]=N[ar]=N[ur]=N[lr]=N[or]=N[Se]=N[zt]=N[Be]=N[Ht]=N[Ce]=N[Gt]=N[gn]=N[fr]=N[cr]=N[hr]=N[dr]=!0,N[dn]=N[pn]=N[Kt]=!1;var xl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Il={"&":"&","<":"<",">":">",'"':""","'":"'"},Ll={"&":"&","<":"<",">":">",""":'"',"'":"'"},$l={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Al=parseFloat,Sl=parseInt,es=typeof on=="object"&&on&&on.Object===Object&&on,Cl=typeof self=="object"&&self&&self.Object===Object&&self,V=es||Cl||Function("return this")(),Ir=h&&!h.nodeType&&h,lt=Ir&&!0&&r&&!r.nodeType&&r,ts=lt&<.exports===Ir,Lr=ts&&es.process,ve=function(){try{var d=lt&<.require&<.require("util").types;return d||Lr&&Lr.binding&&Lr.binding("util")}catch{}}(),ns=ve&&ve.isArrayBuffer,rs=ve&&ve.isDate,is=ve&&ve.isMap,ss=ve&&ve.isRegExp,as=ve&&ve.isSet,us=ve&&ve.isTypedArray;function oe(d,_,g){switch(g.length){case 0:return d.call(_);case 1:return d.call(_,g[0]);case 2:return d.call(_,g[0],g[1]);case 3:return d.call(_,g[0],g[1],g[2])}return d.apply(_,g)}function yl(d,_,g,L){for(var y=-1,M=d==null?0:d.length;++y-1}function $r(d,_,g){for(var L=-1,y=d==null?0:d.length;++L-1;);return g}function gs(d,_){for(var g=d.length;g--&&Ct(_,d[g],0)>-1;);return g}function Ml(d,_){for(var g=d.length,L=0;g--;)d[g]===_&&++L;return L}var Pl=yr(xl),Bl=yr(Il);function Ul(d){return"\\"+$l[d]}function Wl(d,_){return d==null?s:d[_]}function yt(d){return _l.test(d)}function Nl(d){return vl.test(d)}function zl(d){for(var _,g=[];!(_=d.next()).done;)g.push(_.value);return g}function Er(d){var _=-1,g=Array(d.size);return d.forEach(function(L,y){g[++_]=[y,L]}),g}function _s(d,_){return function(g){return d(_(g))}}function je(d,_){for(var g=-1,L=d.length,y=0,M=[];++g-1}function Fo(e,t){var n=this.__data__,i=Mn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}Ue.prototype.clear=Co,Ue.prototype.delete=yo,Ue.prototype.get=bo,Ue.prototype.has=To,Ue.prototype.set=Fo;function We(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ie(e,t,n,i,a,l){var o,f=t&Je,p=t&yi,v=t&wt;if(n&&(o=a?n(e,i,a,l):n(e)),o!==s)return o;if(!K(e))return e;var m=b(e);if(m){if(o=Df(e),!f)return se(e,o)}else{var w=te(e),I=w==pn||w==Fi;if(st(e))return Vs(e,f);if(w==Be||w==$t||I&&!a){if(o=p||I?{}:va(e),!f)return p?Af(e,qo(o,e)):$f(e,bs(o,e))}else{if(!N[w])return a?e:{};o=Mf(e,w,f)}}l||(l=new be);var $=l.get(e);if($)return $;l.set(e,o),qa(e)?e.forEach(function(C){o.add(Ie(C,t,n,C,e,l))}):Ga(e)&&e.forEach(function(C,k){o.set(k,Ie(C,t,n,k,e,l))});var S=v?p?ri:ni:p?ue:Q,F=m?s:S(e);return me(F||e,function(C,k){F&&(k=C,C=e[k]),jt(o,k,Ie(C,t,n,k,e,l))}),o}function Zo(e){var t=Q(e);return function(n){return Ts(n,e,t)}}function Ts(e,t,n){var i=n.length;if(e==null)return!i;for(e=W(e);i--;){var a=n[i],l=t[a],o=e[a];if(o===s&&!(a in e)||!l(o))return!1}return!0}function Fs(e,t,n){if(typeof e!="function")throw new we(P);return un(function(){e.apply(s,n)},t)}function en(e,t,n,i){var a=-1,l=wn,o=!0,f=e.length,p=[],v=t.length;if(!f)return p;n&&(t=H(t,fe(n))),i?(l=$r,o=!1):t.length>=x&&(l=Zt,o=!1,t=new ct(t));e:for(;++aa?0:a+n),i=i===s||i>a?a:T(i),i<0&&(i+=a),i=n>i?0:Ya(i);n0&&n(f)?t>1?j(f,t-1,n,i,a):Ve(a,f):i||(a[a.length]=f)}return a}var Br=ia(),Rs=ia(!0);function Oe(e,t){return e&&Br(e,t,Q)}function Ur(e,t){return e&&Rs(e,t,Q)}function Bn(e,t){return Qe(t,function(n){return Ke(e[n])})}function dt(e,t){t=rt(t,e);for(var n=0,i=t.length;e!=null&&nt}function Xo(e,t){return e!=null&&U.call(e,t)}function Qo(e,t){return e!=null&&t in W(e)}function Vo(e,t,n){return e>=ee(t,n)&&e=120&&m.length>=120)?new ct(o&&m):s}m=e[0];var w=-1,I=f[0];e:for(;++w-1;)f!==e&&Tn.call(f,p,1),Tn.call(e,p,1);return e}function Gs(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==l){var l=a;Ge(a)?Tn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+kn(As()*(t-e+1))}function hf(e,t,n,i){for(var a=-1,l=X(En((t-e)/(n||1)),0),o=g(l);l--;)o[i?l:++a]=e,e+=n;return o}function Zr(e,t){var n="";if(!e||t<1||t>Xe)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function E(e,t){return fi(xa(e,t,le),e+"")}function df(e){return ys(Bt(e))}function pf(e,t){var n=Bt(e);return Jn(n,ht(t,0,n.length))}function rn(e,t,n,i){if(!K(e))return e;t=rt(t,e);for(var a=-1,l=t.length,o=l-1,f=e;f!=null&&++aa?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var l=g(a);++i>>1,o=e[l];o!==null&&!he(o)&&(n?o<=t:o=x){var v=t?null:bf(e);if(v)return In(v);o=!1,a=Zt,p=new ct}else p=t?[]:f;e:for(;++i=i?e:Le(e,t,n)}var Qs=ro||function(e){return V.clearTimeout(e)};function Vs(e,t){if(t)return e.slice();var n=e.length,i=ws?ws(n):new e.constructor(n);return e.copy(i),i}function jr(e){var t=new e.constructor(e.byteLength);return new yn(t).set(new yn(e)),t}function wf(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function xf(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function If(e){return Vt?W(Vt.call(e)):{}}function js(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==s,i=e===null,a=e===e,l=he(e),o=t!==s,f=t===null,p=t===t,v=he(t);if(!f&&!v&&!l&&e>t||l&&o&&p&&!f&&!v||i&&o&&p||!n&&p||!a)return 1;if(!i&&!l&&!v&&e=f)return p;var v=n[i];return p*(v=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,i){for(var a=-1,l=e.length,o=n.length,f=-1,p=t.length,v=X(l-o,0),m=g(p+v),w=!i;++f1?n[a-1]:s,o=a>2?n[2]:s;for(l=e.length>3&&typeof l=="function"?(a--,l):s,o&&re(n[0],n[1],o)&&(l=a<3?s:l,a=1),t=W(t);++i-1?a[l?t[o]:o]:s}}function ua(e){return He(function(t){var n=t.length,i=n,a=xe.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if(typeof l!="function")throw new we(P);if(a&&!o&&Zn(l)=="wrapper")var o=new xe([],!0)}for(i=o?i:n;++i1&&D.reverse(),m&&pf))return!1;var v=l.get(e),m=l.get(t);if(v&&m)return v==t&&m==e;var w=-1,I=!0,$=n&fn?new ct:s;for(l.set(e,t),l.set(t,e);++w1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Pu,`{ /* [wrapped with `+t+`] */ `)}function Bf(e){return b(e)||_t(e)||!!(Ls&&e&&e[Ls])}function Ge(e,t){var n=typeof e;return t=t==null?Xe:t,!!t&&(n=="number"||n!="symbol"&&Yu.test(e))&&e>-1&&e%1==0&&e0){if(++t>=cu)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Jn(e,t){var n=-1,i=e.length,a=i-1;for(t=t===s?i:t;++n1?e[t-1]:s;return n=typeof n=="function"?(e.pop(),n):s,ka(e,n)});function Ra(e){var t=u(e);return t.__chain__=!0,t}function Jc(e,t){return t(e),e}function Xn(e,t){return t(e)}var Xc=He(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(l){return Pr(l,e)};return t>1||this.__actions__.length||!(i instanceof R)||!Ge(n)?this.thru(a):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Xn,args:[a],thisArg:s}),new xe(i,this.__chain__).thru(function(l){return t&&!l.length&&l.push(s),l}))});function Qc(){return Ra(this)}function Vc(){return new xe(this.value(),this.__chain__)}function jc(){this.__values__===s&&(this.__values__=Za(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function eh(){return this}function th(e){for(var t,n=this;n instanceof Dn;){var i=Ca(n);i.__index__=0,i.__values__=s,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t}function nh(){var e=this.__wrapped__;if(e instanceof R){var t=e;return this.__actions__.length&&(t=new R(this)),t=t.reverse(),t.__actions__.push({func:Xn,args:[ci],thisArg:s}),new xe(t,this.__chain__)}return this.thru(ci)}function rh(){return Js(this.__wrapped__,this.__actions__)}var ih=zn(function(e,t,n){U.call(e,n)?++e[n]:Ne(e,n,1)});function sh(e,t,n){var i=b(e)?ls:Yo;return n&&re(e,t,n)&&(t=s),i(e,A(t,3))}function ah(e,t){var n=b(e)?Qe:ks;return n(e,A(t,3))}var uh=aa(ya),lh=aa(ba);function oh(e,t){return j(Qn(e,t),1)}function fh(e,t){return j(Qn(e,t),ut)}function ch(e,t,n){return n=n===s?1:T(n),j(Qn(e,t),n)}function Oa(e,t){var n=b(e)?me:tt;return n(e,A(t,3))}function Da(e,t){var n=b(e)?bl:Es;return n(e,A(t,3))}var hh=zn(function(e,t,n){U.call(e,n)?e[n].push(t):Ne(e,n,[t])});function dh(e,t,n,i){e=ae(e)?e:Bt(e),n=n&&!i?T(n):0;var a=e.length;return n<0&&(n=X(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ct(e,t,n)>-1}var ph=E(function(e,t,n){var i=-1,a=typeof t=="function",l=ae(e)?g(e.length):[];return tt(e,function(o){l[++i]=a?oe(t,o,n):tn(o,t,n)}),l}),gh=zn(function(e,t,n){Ne(e,n,t)});function Qn(e,t){var n=b(e)?H:Bs;return n(e,A(t,3))}function _h(e,t,n,i){return e==null?[]:(b(t)||(t=t==null?[]:[t]),n=i?s:n,b(n)||(n=n==null?[]:[n]),zs(e,t,n))}var vh=zn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function mh(e,t,n){var i=b(e)?Ar:hs,a=arguments.length<3;return i(e,A(t,4),n,a,tt)}function wh(e,t,n){var i=b(e)?Tl:hs,a=arguments.length<3;return i(e,A(t,4),n,a,Es)}function xh(e,t){var n=b(e)?Qe:ks;return n(e,er(A(t,3)))}function Ih(e){var t=b(e)?ys:df;return t(e)}function Lh(e,t,n){(n?re(e,t,n):t===s)?t=1:t=T(t);var i=b(e)?Ho:pf;return i(e,t)}function $h(e){var t=b(e)?Go:_f;return t(e)}function Ah(e){if(e==null)return 0;if(ae(e))return nr(e)?bt(e):e.length;var t=te(e);return t==Se||t==Ce?e.size:Hr(e).length}function Sh(e,t,n){var i=b(e)?Sr:vf;return n&&re(e,t,n)&&(t=s),i(e,A(t,3))}var Ch=E(function(e,t){if(e==null)return[];var n=t.length;return n>1&&re(e,t[0],t[1])?t=[]:n>2&&re(t[0],t[1],t[2])&&(t=[t[0]]),zs(e,j(t,1),[])}),Vn=io||function(){return V.Date.now()};function yh(e,t){if(typeof t!="function")throw new we(P);return e=T(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,n){return t=n?s:t,t=e&&t==null?e.length:t,ze(e,Pe,s,s,s,s,t)}function Pa(e,t){var n;if(typeof t!="function")throw new we(P);return e=T(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=s),n}}var di=E(function(e,t,n){var i=_e;if(n.length){var a=je(n,Mt(di));i|=ke}return ze(e,i,t,n,a)}),Ba=E(function(e,t,n){var i=_e|at;if(n.length){var a=je(n,Mt(Ba));i|=ke}return ze(t,i,e,n,a)});function Ua(e,t,n){t=n?s:t;var i=ze(e,Ee,s,s,s,s,s,t);return i.placeholder=Ua.placeholder,i}function Wa(e,t,n){t=n?s:t;var i=ze(e,It,s,s,s,s,s,t);return i.placeholder=Wa.placeholder,i}function Na(e,t,n){var i,a,l,o,f,p,v=0,m=!1,w=!1,I=!0;if(typeof e!="function")throw new we(P);t=Ae(t)||0,K(n)&&(m=!!n.leading,w="maxWait"in n,l=w?X(Ae(n.maxWait)||0,t):l,I="trailing"in n?!!n.trailing:I);function $(Y){var Fe=i,Ze=a;return i=a=s,v=Y,o=e.apply(Ze,Fe),o}function S(Y){return v=Y,f=un(k,t),m?$(Y):o}function F(Y){var Fe=Y-p,Ze=Y-v,au=t-Fe;return w?ee(au,l-Ze):au}function C(Y){var Fe=Y-p,Ze=Y-v;return p===s||Fe>=t||Fe<0||w&&Ze>=l}function k(){var Y=Vn();if(C(Y))return D(Y);f=un(k,F(Y))}function D(Y){return f=s,I&&i?$(Y):(i=a=s,o)}function de(){f!==s&&Qs(f),v=0,i=p=a=f=s}function ie(){return f===s?o:D(Vn())}function pe(){var Y=Vn(),Fe=C(Y);if(i=arguments,a=this,p=Y,Fe){if(f===s)return S(p);if(w)return Qs(f),f=un(k,t),$(p)}return f===s&&(f=un(k,t)),o}return pe.cancel=de,pe.flush=ie,pe}var bh=E(function(e,t){return Fs(e,1,t)}),Th=E(function(e,t,n){return Fs(e,Ae(t)||0,n)});function Fh(e){return ze(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new we(P);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],l=n.cache;if(l.has(a))return l.get(a);var o=e.apply(this,i);return n.cache=l.set(a,o)||l,o};return n.cache=new(jn.Cache||We),n}jn.Cache=We;function er(e){if(typeof e!="function")throw new we(P);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Eh(e){return Pa(2,e)}var kh=mf(function(e,t){t=t.length==1&&b(t[0])?H(t[0],fe(A())):H(j(t,1),fe(A()));var n=t.length;return E(function(i){for(var a=-1,l=ee(i.length,n);++a=t}),_t=Ds(function(){return arguments}())?Ds:function(e){return q(e)&&U.call(e,"callee")&&!Is.call(e,"callee")},b=g.isArray,Zh=ns?fe(ns):ef;function ae(e){return e!=null&&tr(e.length)&&!Ke(e)}function Z(e){return q(e)&&ae(e)}function Yh(e){return e===!0||e===!1||q(e)&&ne(e)==Wt}var st=ao||Si,Jh=rs?fe(rs):tf;function Xh(e){return q(e)&&e.nodeType===1&&!ln(e)}function Qh(e){if(e==null)return!0;if(ae(e)&&(b(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Pt(e)||_t(e)))return!e.length;var t=te(e);if(t==Se||t==Ce)return!e.size;if(an(e))return!Hr(e).length;for(var n in e)if(U.call(e,n))return!1;return!0}function Vh(e,t){return nn(e,t)}function jh(e,t,n){n=typeof n=="function"?n:s;var i=n?n(e,t):s;return i===s?nn(e,t,s,n):!!i}function gi(e){if(!q(e))return!1;var t=ne(e);return t==dn||t==xu||typeof e.message=="string"&&typeof e.name=="string"&&!ln(e)}function ed(e){return typeof e=="number"&&$s(e)}function Ke(e){if(!K(e))return!1;var t=ne(e);return t==pn||t==Fi||t==wu||t==Lu}function Ha(e){return typeof e=="number"&&e==T(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xe}function K(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function q(e){return e!=null&&typeof e=="object"}var Ga=is?fe(is):rf;function td(e,t){return e===t||zr(e,t,si(t))}function nd(e,t,n){return n=typeof n=="function"?n:s,zr(e,t,si(t),n)}function rd(e){return Ka(e)&&e!=+e}function id(e){if(Nf(e))throw new y(O);return Ms(e)}function sd(e){return e===null}function ad(e){return e==null}function Ka(e){return typeof e=="number"||q(e)&&ne(e)==zt}function ln(e){if(!q(e)||ne(e)!=Be)return!1;var t=bn(e);if(t===null)return!0;var n=U.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&An.call(n)==eo}var _i=ss?fe(ss):sf;function ud(e){return Ha(e)&&e>=-Xe&&e<=Xe}var qa=as?fe(as):af;function nr(e){return typeof e=="string"||!b(e)&&q(e)&&ne(e)==Gt}function he(e){return typeof e=="symbol"||q(e)&&ne(e)==gn}var Pt=us?fe(us):uf;function ld(e){return e===s}function od(e){return q(e)&&te(e)==Kt}function fd(e){return q(e)&&ne(e)==Au}var cd=qn(Gr),hd=qn(function(e,t){return e<=t});function Za(e){if(!e)return[];if(ae(e))return nr(e)?ye(e):se(e);if(Yt&&e[Yt])return zl(e[Yt]());var t=te(e),n=t==Se?Er:t==Ce?In:Bt;return n(e)}function qe(e){if(!e)return e===0?e:0;if(e=Ae(e),e===ut||e===-ut){var t=e<0?-1:1;return t*gu}return e===e?e:0}function T(e){var t=qe(e),n=t%1;return t===t?n?t-n:t:0}function Ya(e){return e?ht(T(e),0,Re):0}function Ae(e){if(typeof e=="number")return e;if(he(e))return cn;if(K(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=K(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ds(e);var n=Ku.test(e);return n||Zu.test(e)?Sl(e.slice(2),n?2:8):Gu.test(e)?cn:+e}function Ja(e){return De(e,ue(e))}function dd(e){return e?ht(T(e),-Xe,Xe):e===0?e:0}function B(e){return e==null?"":ce(e)}var pd=Ot(function(e,t){if(an(t)||ae(t)){De(t,Q(t),e);return}for(var n in t)U.call(t,n)&&jt(e,n,t[n])}),Xa=Ot(function(e,t){De(t,ue(t),e)}),rr=Ot(function(e,t,n,i){De(t,ue(t),e,i)}),gd=Ot(function(e,t,n,i){De(t,Q(t),e,i)}),_d=He(Pr);function vd(e,t){var n=Rt(e);return t==null?n:bs(n,t)}var md=E(function(e,t){e=W(e);var n=-1,i=t.length,a=i>2?t[2]:s;for(a&&re(t[0],t[1],a)&&(i=1);++n1),l}),De(e,ri(e),n),i&&(n=Ie(n,Je|yi|wt,Tf));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Md(e,t){return Va(e,er(A(t)))}var Pd=He(function(e,t){return e==null?{}:ff(e,t)});function Va(e,t){if(e==null)return{};var n=H(ri(e),function(i){return[i]});return t=A(t),Hs(e,n,function(i,a){return t(i,a[0])})}function Bd(e,t,n){t=rt(t,e);var i=-1,a=t.length;for(a||(a=1,e=s);++it){var i=e;e=t,t=i}if(n||e%1||t%1){var a=As();return ee(e+a*(t-e+Al("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Jd=Dt(function(e,t,n){return t=t.toLowerCase(),e+(n?tu(t):t)});function tu(e){return wi(B(e).toLowerCase())}function nu(e){return e=B(e),e&&e.replace(Ju,Pl).replace(pl,"")}function Xd(e,t,n){e=B(e),t=ce(t);var i=e.length;n=n===s?i:ht(T(n),0,i);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Qd(e){return e=B(e),e&&Tu.test(e)?e.replace(Ri,Bl):e}function Vd(e){return e=B(e),e&&Du.test(e)?e.replace(pr,"\\$&"):e}var jd=Dt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ep=Dt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),tp=sa("toLowerCase");function np(e,t,n){e=B(e),t=T(t);var i=t?bt(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Kn(kn(a),n)+e+Kn(En(a),n)}function rp(e,t,n){e=B(e),t=T(t);var i=t?bt(e):0;return t&&i>>0,n?(e=B(e),e&&(typeof t=="string"||t!=null&&!_i(t))&&(t=ce(t),!t&&yt(e))?it(ye(e),0,n):e.split(t,n)):[]}var fp=Dt(function(e,t,n){return e+(n?" ":"")+wi(t)});function cp(e,t,n){return e=B(e),n=n==null?0:ht(T(n),0,e.length),t=ce(t),e.slice(n,n+t.length)==t}function hp(e,t,n){var i=u.templateSettings;n&&re(e,t,n)&&(t=s),e=B(e),t=rr({},t,i,ha);var a=rr({},t.imports,i.imports,ha),l=Q(a),o=Fr(a,l),f,p,v=0,m=t.interpolate||_n,w="__p += '",I=kr((t.escape||_n).source+"|"+m.source+"|"+(m===Oi?Hu:_n).source+"|"+(t.evaluate||_n).source+"|$","g"),$="//# sourceURL="+(U.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wl+"]")+` `;e.replace(I,function(C,k,D,de,ie,pe){return D||(D=de),w+=e.slice(v,pe).replace(Xu,Ul),k&&(f=!0,w+=`' + __e(`+k+`) + '`),ie&&(p=!0,w+=`'; `+ie+`; __p += '`),D&&(w+=`' + ((__t = (`+D+`)) == null ? '' : __t) + '`),v=pe+C.length,C}),w+=`'; `;var S=U.call(t,"variable")&&t.variable;if(!S)w=`with (obj) { `+w+` } `;else if(Nu.test(S))throw new y(G);w=(p?w.replace(Su,""):w).replace(Cu,"$1").replace(yu,"$1;"),w="function("+(S||"obj")+`) { `+(S?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(p?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+w+`return __p }`;var F=iu(function(){return M(l,$+"return "+w).apply(s,o)});if(F.source=w,gi(F))throw F;return F}function dp(e){return B(e).toLowerCase()}function pp(e){return B(e).toUpperCase()}function gp(e,t,n){if(e=B(e),e&&(n||t===s))return ds(e);if(!e||!(t=ce(t)))return e;var i=ye(e),a=ye(t),l=ps(i,a),o=gs(i,a)+1;return it(i,l,o).join("")}function _p(e,t,n){if(e=B(e),e&&(n||t===s))return e.slice(0,vs(e)+1);if(!e||!(t=ce(t)))return e;var i=ye(e),a=gs(i,ye(t))+1;return it(i,0,a).join("")}function vp(e,t,n){if(e=B(e),e&&(n||t===s))return e.replace(gr,"");if(!e||!(t=ce(t)))return e;var i=ye(e),a=ps(i,ye(t));return it(i,a).join("")}function mp(e,t){var n=ou,i=fu;if(K(t)){var a="separator"in t?t.separator:a;n="length"in t?T(t.length):n,i="omission"in t?ce(t.omission):i}e=B(e);var l=e.length;if(yt(e)){var o=ye(e);l=o.length}if(n>=l)return e;var f=n-bt(i);if(f<1)return i;var p=o?it(o,0,f).join(""):e.slice(0,f);if(a===s)return p+i;if(o&&(f+=p.length-f),_i(a)){if(e.slice(f).search(a)){var v,m=p;for(a.global||(a=kr(a.source,B(Di.exec(a))+"g")),a.lastIndex=0;v=a.exec(m);)var w=v.index;p=p.slice(0,w===s?f:w)}}else if(e.indexOf(ce(a),f)!=f){var I=p.lastIndexOf(a);I>-1&&(p=p.slice(0,I))}return p+i}function wp(e){return e=B(e),e&&bu.test(e)?e.replace(ki,ql):e}var xp=Dt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),wi=sa("toUpperCase");function ru(e,t,n){return e=B(e),t=n?s:t,t===s?Nl(e)?Jl(e):kl(e):e.match(t)||[]}var iu=E(function(e,t){try{return oe(e,s,t)}catch(n){return gi(n)?n:new y(n)}}),Ip=He(function(e,t){return me(t,function(n){n=Me(n),Ne(e,n,di(e[n],e))}),e});function Lp(e){var t=e==null?0:e.length,n=A();return e=t?H(e,function(i){if(typeof i[1]!="function")throw new we(P);return[n(i[0]),i[1]]}):[],E(function(i){for(var a=-1;++aXe)return[];var n=Re,i=ee(e,Re);t=A(t),e-=Re;for(var a=Tr(i,t);++n0||t<0)?new R(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==s&&(t=T(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},R.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},R.prototype.toArray=function(){return this.take(Re)},Oe(R.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=u[i?"take"+(t=="last"?"Right":""):t],l=i||/^find/.test(t);!a||(u.prototype[t]=function(){var o=this.__wrapped__,f=i?[1]:arguments,p=o instanceof R,v=f[0],m=p||b(o),w=function(k){var D=a.apply(u,Ve([k],f));return i&&I?D[0]:D};m&&n&&typeof v=="function"&&v.length!=1&&(p=m=!1);var I=this.__chain__,$=!!this.__actions__.length,S=l&&!I,F=p&&!$;if(!l&&m){o=F?o:new R(this);var C=e.apply(o,f);return C.__actions__.push({func:Xn,args:[w],thisArg:s}),new xe(C,I)}return S&&F?e.apply(this,f):(C=this.thru(w),S?i?C.value()[0]:C.value():C)})}),me(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ln[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var l=this.value();return t.apply(b(l)?l:[],a)}return this[n](function(o){return t.apply(b(o)?o:[],a)})}}),Oe(R.prototype,function(e,t){var n=u[t];if(n){var i=n.name+"";U.call(kt,i)||(kt[i]=[]),kt[i].push({name:t,func:n})}}),kt[Hn(s,at).name]=[{name:"wrapper",func:s}],R.prototype.clone=mo,R.prototype.reverse=wo,R.prototype.value=xo,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=jc,u.prototype.plant=th,u.prototype.reverse=nh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=rh,u.prototype.first=u.prototype.head,Yt&&(u.prototype[Yt]=eh),u},Tt=Xl();lt?((lt.exports=Tt)._=Tt,Ir._=Tt):V._=Tt}).call(on)})(Ci,Ci.exports);var dg=function(){var r=this,h=r.$createElement,s=r._self._c||h;return s("div",{staticClass:"page-file"},[s("PageTitle",{attrs:{title:r.$L("\u6587\u4EF6")}}),s("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[s("div",{staticClass:"file-head"},[s("div",{staticClass:"file-nav"},[s("div",{staticClass:"common-nav-back portrait",on:{click:function(c){return r.goForward({name:"manage-application"},!0)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE676")])]),s("h1",[r._v(r._s(r.$L("\u6587\u4EF6")))]),r.loadIng==0?s("div",{staticClass:"file-refresh",on:{click:r.getFileList}},[s("i",{staticClass:"taskfont"},[r._v("\uE6AE")])]):r._e()]),r.uploadList.length>0?s("div",{staticClass:"file-status",on:{click:function(c){r.uploadShow=!0,r.packShow=!1}}},[r.uploadList.find(function(c){var x=c.status;return x!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-arrow-round-up"}})],1):r._e(),r.packList.length>0?s("div",{staticClass:"file-status",on:{click:function(c){r.packShow=!0,r.uploadShow=!1}}},[r.packList.find(function(c){var x=c.status;return x!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-arrow-round-down"}})],1):r._e(),s("div",{class:["file-search",r.searchKey?"has-value":""],on:{click:r.onSearchFocus,mouseenter:r.onSearchFocus}},[s("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:r.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":r.onSearchChange},model:{value:r.searchKey,callback:function(c){r.searchKey=c},expression:"searchKey"}})],1),s("div",{staticClass:"file-add"},[s("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(c){return c.stopPropagation(),r.handleRightClick(c,null,!0)}}})],1)]),s("div",{staticClass:"file-navigator"},[s("ul",{directives:[{name:"show",rawName:"v-show",value:r.showBtnText||!r.selectIds.length&&!r.shearFirst,expression:"showBtnText || (!selectIds.length && !shearFirst)"}],staticClass:"scrollbar-hidden"},[s("li",{on:{click:function(c){return r.browseFolder(0)}}},[s("span",[r._v(r._s(r.$L("\u5168\u90E8\u6587\u4EF6")))])]),r.searchKey?s("li",[r._v(r._s(r.$L("\u641C\u7D22"))+' "'+r._s(r.searchKey)+'"')]):r._l(r.navigator,function(c){return s("li",{ref:`nav_${c.id}`,refInFor:!0,on:{click:function(x){return r.browseFolder(c.id)}}},[c.share?s("i",{staticClass:"taskfont"},[r._v("\uE63F")]):r._e(),s("span",{attrs:{title:c.name}},[r._v(r._s(c.name))]),c.share&&c.permission==0?s("span",{staticClass:"readonly"},[r._v(r._s(r.$L("\u53EA\u8BFB")))]):r._e()])})],2),r.shearFirst?[s("Button",{style:{marginLeft:r.showBtnText?"12px":0},attrs:{disabled:r.shearFirst.pid==r.pid,size:"small",type:"primary"},on:{click:r.shearTo}},[s("div",{staticClass:"file-shear"},[s("span",[r._v(r._s(r.$L("\u7C98\u8D34")))]),s("span",{directives:[{name:"show",rawName:"v-show",value:r.showBtnText,expression:"showBtnText"}]},[r._v('"'),s("em",[r._v(r._s(r.shearFirst.name))]),r._v('"')]),r.shearIds.length>1?s("span",[r._v(r._s(r.$L("\u7B49"))+r._s(r.shearIds.length)+r._s(r.$L("\u4E2A\u6587\u4EF6")))]):r._e()])]),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearShear}},[r._v(r._s(r.$L("\u53D6\u6D88\u526A\u5207")))])]:r.selectIds.length>0?[s("Button",{style:{marginLeft:r.showBtnText?"12px":0},attrs:{size:"small",type:"info"},on:{click:function(c){return r.handleContextClick("shearSelect")}}},[s("Icon",{attrs:{type:"ios-cut"}}),s("span",{directives:[{name:"show",rawName:"v-show",value:r.showBtnText,expression:"showBtnText"}]},[r._v(r._s(r.$L("\u526A\u5207")))])],1),s("Button",{attrs:{disabled:r.compressedSownloadDisabled,size:"small",type:"info"},on:{click:function(c){return r.downloadZipFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-download"}}),s("span",{directives:[{name:"show",rawName:"v-show",value:r.showBtnText,expression:"showBtnText"}]},[r._v(r._s(r.$L("\u6253\u5305\u4E0B\u8F7D")))])],1),s("Button",{attrs:{size:"small",type:"error"},on:{click:function(c){return r.deleteFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-trash"}}),s("span",{directives:[{name:"show",rawName:"v-show",value:r.showBtnText,expression:"showBtnText"}]},[r._v(r._s(r.$L("\u5220\u9664")))])],1),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearSelect}},[r._v(" "+r._s(r.showBtnText?r.$L("\u53D6\u6D88\u9009\u62E9"):r.$L("\u53D6\u6D88"))+" ")])]:r._e(),r.loadIng>0?s("div",{staticClass:"nav-load"},[s("Loading")],1):r._e(),s("div",{staticClass:"flex-full"}),r.hasShareFile?s("div",{staticClass:"only-checkbox"},[s("Checkbox",{model:{value:r.hideShared,callback:function(c){r.hideShared=c},expression:"hideShared"}},[r._v(" "+r._s(r.showBtnText?r.$L("\u4EC5\u663E\u793A\u6211\u7684"):r.$L("\u4EC5\u6211\u7684"))+" ")])],1):r._e(),s("div",{class:["switch-button",r.tableMode]},[s("div",{on:{click:function(c){r.tableMode="block"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60C")])]),s("div",{on:{click:function(c){r.tableMode="table"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE66A")])])])],2),s("div",{staticClass:"file-drag",on:{drop:function(c){return c.preventDefault(),r.filePasteDrag(c,"drag")},dragover:function(c){return c.preventDefault(),r.fileDragOver(!0,c)},dragleave:function(c){return c.preventDefault(),r.fileDragOver(!1,c)}}},[r.tableMode==="table"?s("div",{staticClass:"file-table",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("Table",{attrs:{columns:r.columns,data:r.fileList,height:r.tableHeight,"no-data-text":r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":r.clickRow,"on-contextmenu":r.handleContextMenu,"on-select":r.handleTableSelect,"on-select-cancel":r.handleTableSelect,"on-select-all-cancel":r.handleTableSelect,"on-select-all":r.handleTableSelect,"on-sort-change":r.handleTableSort}})],1):[r.fileList.length==0&&r.loadIng==0?s("div",{staticClass:"file-no",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60B")]),s("p",[r._v(r._s(r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):s("div",{staticClass:"file-list",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("ul",r._l(r.fileList,function(c){return s("li",[s("div",{directives:[{name:"longpress",rawName:"v-longpress",value:r.handleLongpress,expression:"handleLongpress"}],staticClass:"file-item",class:{shear:r.shearIds.includes(c.id),highlight:r.selectIds.includes(c.id),operate:r.contextMenuVisible&&c.id===r.contextMenuItem.id},attrs:{"data-id":c.id},on:{click:function(x){return r.dropFile(c,"openCheckMenu")}}},[s("div",{staticClass:"file-check",class:{"file-checked":r.selectIds.includes(c.id)},on:{click:function(x){return x.stopPropagation(),r.dropFile(c,"select")}}},[s("Checkbox",{attrs:{value:r.selectIds.includes(c.id)}})],1),s("div",{staticClass:"file-menu",on:{click:function(x){return x.stopPropagation(),r.handleRightClick(x,c)}}},[s("Icon",{attrs:{type:"ios-more"}})],1),s("div",{class:`no-dark-before file-icon ${c.type}${c.share?" share":""}`},[c.share?[c.userid!=r.userId?s("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:c.userid,size:20}},[s("p",[r._v(r._s(r.$L("\u5171\u4EAB\u6743\u9650"))+": "+r._s(r.$L(c.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):s("div",{staticClass:"share-icon no-dark-content"},[s("i",{staticClass:"taskfont"},[r._v("\uE757")])])]:r.isParentShare?[s("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:c.created_id,size:20}},[c.created_id!=c.userid?s("p",[s("strong",[r._v(r._s(r.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])]):s("p",[r._v(r._s(r.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])])]:r._e()],2),c._edit?s("div",{staticClass:"file-input"},[s("Input",{ref:"input_"+c.id,refInFor:!0,attrs:{size:"small",disabled:!!c._load,parser:r.onParser},on:{"on-blur":function(x){return r.onBlur(c)},"on-keyup":function(x){return r.onKeyup(x,c)}},model:{value:c.newname,callback:function(x){r.$set(c,"newname",x)},expression:"item.newname"}}),c._load?s("div",{staticClass:"file-load"},[s("Loading")],1):r._e()],1):s("div",{staticClass:"file-name",attrs:{title:c.name}},[r._v(r._s(r.$A.getFileName(c)))])])])}),0)])],r.dialogDrag?s("div",{staticClass:"drag-over",on:{click:function(c){r.dialogDrag=!1}}},[s("div",{staticClass:"drag-text"},[r._v(r._s(r.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):r._e()],2),s("div",{staticClass:"file-menu",style:r.contextMenuStyles},[s("Dropdown",{attrs:{trigger:"custom",visible:r.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":r.handleContextClick,"on-clickoutside":r.handleClickContextMenuOutside,"on-visible-change":r.handleVisibleChangeMenu}},[s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r.contextMenuItem.id?[s("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[r._v(" "+r._s(r.$L("\u6253\u5F00"))+" "),s("div",{staticClass:"open-name"},[r._v("\u201C"+r._s(r.contextMenuItem.name)+"\u201D")])]),r.searchKey?s("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[r._v(" "+r._s(r.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):r._e(),s("DropdownItem",{attrs:{name:"select"}},[r._v(r._s(r.$L(r.selectIds.includes(r.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),s("Dropdown",{attrs:{placement:"right-start",transfer:""}},[s("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(c){c.stopPropagation()}}},[s("div",{staticClass:"arrow-forward-item"},[r._v(r._s(r.$L("\u65B0\u5EFA"))),s("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),s("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()}),1)],1),s("DropdownItem",{attrs:{name:"rename",divided:""}},[r._v(r._s(r.$L("\u91CD\u547D\u540D")))]),s("DropdownItem",{attrs:{name:"copy",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u590D\u5236")))]),s("DropdownItem",{attrs:{name:"shear",disabled:r.contextMenuItem.userid!=r.userId}},[r._v(r._s(r.$L("\u526A\u5207")))]),r.contextMenuItem.userid==r.userId?s("DropdownItem",{attrs:{name:"share",divided:""}},[r._v(r._s(r.$L("\u5171\u4EAB")))]):r.contextMenuItem.share?s("DropdownItem",{attrs:{name:"outshare",divided:""}},[r._v(r._s(r.$L("\u9000\u51FA\u5171\u4EAB")))]):r._e(),s("DropdownItem",{attrs:{name:"send",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u53D1\u9001")))]),s("DropdownItem",{attrs:{name:"link",divided:r.contextMenuItem.userid!=r.userId&&!r.contextMenuItem.share,disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u94FE\u63A5")))]),s("DropdownItem",{attrs:{name:"download",disabled:r.contextMenuItem.ext==""||r.contextMenuItem.userid!=r.userId&&r.contextMenuItem.permission==0}},[r._v(r._s(r.$L("\u4E0B\u8F7D")))]),s("DropdownItem",{attrs:{name:"downloadzip",disabled:r.contextMenuItem.userid!=r.userId&&r.contextMenuItem.permission==0}},[r._v(r._s(r.$L("\u6253\u5305\u4E0B\u8F7D")))]),s("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[r._v(r._s(r.$L("\u5220\u9664")))])]:r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()})],2)],1)],1)]),r.uploadShow&&r.uploadList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[r._v(" "+r._s(r.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+r._s(r.uploadList.length)+") "),r.uploadList.find(function(c){var x=c.status;return x==="finished"})?s("em",{on:{click:r.uploadClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.uploadList,function(c,x){return x<100?s("li",{key:x},[s("AutoTip",{staticClass:"file-name"},[r._v(r._s(r.uploadName(c)))]),c.status==="finished"&&c.response&&c.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(c.response.msg))]):s("Progress",{attrs:{percent:r.uploadPercentageParse(c.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(O){return r.uploadList.splice(x,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(c){r.uploadShow=!1}}})],1)]):r._e(),r.packShow&&r.packList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[s("span",[r._v(r._s(r.$L("\u6253\u5305\u5217\u8868"))+"("+r._s(r.packList.length)+")")]),r.packList.find(function(c){var x=c.status;return x==="finished"})?s("em",{on:{click:r.packClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.packList,function(c,x){return x<100?s("li",{key:x},[s("AutoTip",{staticClass:"file-name"},[c.status!=="finished"?s("span",[r._v(r._s(c.name))]):s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(O){return r.downloadPackFile(c.name)}}},[r._v(r._s(c.name))])]),c.status==="finished"&&c.response&&c.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(c.response.msg))]):s("Progress",{attrs:{percent:r.packPercentageParse(c.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(O){return r.packList.splice(x,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(c){r.packShow=!1}}})],1)]):r._e(),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!1,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!0,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Modal",{attrs:{title:r.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:r.shareShow,callback:function(c){r.shareShow=c},expression:"shareShow"}},[s("Form",{staticClass:"page-file-share-form",attrs:{model:r.shareInfo,inline:""},nativeOn:{submit:function(c){c.preventDefault()}}},[s("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[s("RadioGroup",{model:{value:r.shareInfo.type,callback:function(c){r.$set(r.shareInfo,"type",c)},expression:"shareInfo.type"}},[s("Radio",{attrs:{label:"all"}},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))]),s("Radio",{attrs:{label:"custom"}},[r._v(r._s(r.$L("\u6307\u5B9A\u6210\u5458")))])],1),r.shareInfo.type==="custom"?s("UserSelect",{attrs:{disabledChoice:r.shareAlready,"multiple-max":100,placeholder:r.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:r.shareInfo.userids,callback:function(c){r.$set(r.shareInfo,"userids",c)},expression:"shareInfo.userids"}}):r._e()],1),s("FormItem",[s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},model:{value:r.shareInfo.permission,callback:function(c){r.$set(r.shareInfo,"permission",c)},expression:"shareInfo.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))])],1)],1),s("FormItem",[s("Button",{attrs:{type:"primary",loading:r.shareLoad>0},on:{click:r.onShare}},[r._v(r._s(r.$L("\u5171\u4EAB")))])],1)],1),r.shareList.length>0?s("div",{staticClass:"page-file-share-items"},[s("div",{staticClass:"page-file-share-title"},[r._v(r._s(r.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),s("ul",{staticClass:"page-file-share-list"},r._l(r.shareList,function(c){return s("li",[c.userid==0?s("div",{staticClass:"all-avatar"},[s("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),s("span",{staticClass:"avatar-name"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))])],1):s("UserAvatar",{attrs:{size:32,userid:c.userid,showName:""}}),s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},on:{"on-change":function(x){return r.upShare(c)}},model:{value:c.permission,callback:function(x){r.$set(c,"permission",x)},expression:"item.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))]),s("Option",{staticClass:"delete",attrs:{value:-1}},[r._v(r._s(r.$L("\u5220\u9664")))])],1)],1)}),0)]):r._e()],1),s("UserSelect",{ref:"sendFile",attrs:{"multiple-max":50,title:r.$L("\u53D1\u9001\u6587\u4EF6"),"before-submit":r.onSendFile,"show-select-all":!1,"show-dialog":"",module:""},model:{value:r.sendData,callback:function(c){r.sendData=c},expression:"sendData"}}),s("Modal",{attrs:{title:r.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:r.linkShow,callback:function(c){r.linkShow=c},expression:"linkShow"}},[s("div",[s("div",{staticStyle:{margin:"-10px 0 8px"}},[r._v(r._s(r.$L("\u6587\u4EF6\u540D\u79F0"))+": "+r._s(r.linkData.name))]),s("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":r.linkFocus},model:{value:r.linkData.url,callback:function(c){r.$set(r.linkData,"url",c)},expression:"linkData.url"}}),s("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[r._v(" "+r._s(r.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),s("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":r.$L("\u786E\u5B9A"),"cancel-text":r.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(c){return r.linkGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[r._v(r._s(r.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("a",{attrs:{href:"javascript:void(0)"}},[r._v(r._s(r.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(c){r.linkShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:r.linkLoad>0},on:{click:r.linkCopy}},[r._v(r._s(r.$L("\u590D\u5236")))])],1)]),s("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:r.fileBeforeClose,"mask-closable":!1},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}},[r.isPreview?s("FilePreview",{attrs:{file:r.fileInfo}}):s("FileContent",{ref:"fileContent",attrs:{file:r.fileInfo},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}})],1),s("PreviewImage",{attrs:{index:r.imageIndex,list:r.imageList},model:{value:r.imageShow,callback:function(c){r.imageShow=c},expression:"imageShow"}}),s("Modal",{attrs:{title:r.$L(r.pasteTitle),"cancel-text":r.$L("\u53D6\u6D88"),"ok-text":r.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":r.pasteSend},model:{value:r.pasteShow,callback:function(c){r.pasteShow=c},expression:"pasteShow"}},[s("ul",{staticClass:"dialog-wrapper-paste",class:r.pasteWrapperClass},r._l(r.pasteItem,function(c){return s("li",[c.type=="image"?s("img",{attrs:{src:c.result}}):s("div",[r._v(r._s(r.$L("\u6587\u4EF6"))+": "+r._s(c.name)+" ("+r._s(r.$A.bytesToSize(c.size))+")")])])}),0)])],1)},pg=[];const gg=()=>lu(()=>import("./FilePreview.909f9eec.js"),["js/build/FilePreview.909f9eec.js","js/build/app.b25a7691.js","js/build/app.f50309b1.css","js/build/IFrame.1b90d10b.js"]),_g=()=>lu(()=>import("./FileContent.7da0d1e7.js"),["js/build/FileContent.7da0d1e7.js","js/build/FileContent.c015b499.css","js/build/app.b25a7691.js","js/build/app.f50309b1.css","js/build/IFrame.1b90d10b.js"]),vt={sort:null,mode:null,shared:null},vg={components:{UserAvatarTip:hg,UserSelect:ag,PreviewImage:ug,FilePreview:gg,DrawerOverlay:fg,FileContent:_g},directives:{longpress:cg},data(){return{packList:[],packShow:!1,loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",hideShared:!1,columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,sendData:[],linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(r,h,s){vt.sort=await $A.IDBJson("cacheFileSort"),vt.mode=await $A.IDBString("fileTableMode"),vt.shared=await $A.IDBBoolean("fileHideShared"),s()},created(){this.tableMode=vt.mode,this.hideShared=vt.shared,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(r,{row:h})=>{let s=[];if(!/^\d+$/.test(h.id))return s.push(r("Input",{props:{elementId:"input_"+h.id,value:h.newname,autofocus:!0,disabled:!!h._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":x=>{h.newname=x.target.value},"on-blur":()=>{const x=this.fileLists.find(({id:O})=>O==h.id);x&&(x.newname=h.newname,this.onBlur(x))},"on-enter":()=>{const x=this.fileLists.find(({id:O})=>O==h.id);x&&(x.newname=h.newname,this.onEnter(x))}}})),r("div",{class:"file-nbox"},[r("div",{class:`no-dark-before file-name file-icon ${h.type}`},s)]);{s.push(r("QuickEdit",{props:{value:h.name,autoEdit:!!h._edit,clickOutSide:!1,parser:this.onParser},on:{"on-edit-change":G=>{const ge=this.fileLists.find(({id:Ye})=>Ye==h.id);ge&&setTimeout(()=>{this.setEdit(ge.id,G)},100)},"on-update":(G,ge)=>{const Ye=this.fileLists.find(({id:mt})=>mt==h.id);Ye&&Ye._edit===!0&&(Ye.newname=G,this.onEnter(Ye)),ge()}}},[r("AutoTip",{props:{placement:"right"}},$A.getFileName(h))]));const x=[];h.share?h.userid!=this.userId?x.push(r("UserAvatar",{props:{userid:h.userid,size:20}})):x.push(r("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&x.push(r("UserAvatar",{props:{userid:h.created_id,size:20}},[h.created_id!=h.userid?r("p",[r("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+h.created_at)]):r("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+h.created_at)]));const O=this.shearIds.includes(h.id)?" shear":"",P=h.share?" share":"";return r("div",{class:`file-nbox${O}`,attrs:{"data-id":h.id}},[r("div",{class:`no-dark-before file-name file-icon ${h.type}${P}`},s),x])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(r,{row:h})=>h.type=="folder"?r("div","-"):r("AutoTip",$A.bytesToSize(h.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(r,{row:h})=>{let s=this.types.find(({value:c,name:x})=>c==h.type&&x);return s?r("AutoTip",this.$L(s.name)):r("div",(h.ext||h.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(r,{row:h})=>r("UserAvatar",{props:{size:18,userid:h.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(r=>(r.key===vt.sort.key&&(r.sortType=vt.sort.order),r))},mounted(){this.uploadAccept=this.uploadFormat.map(r=>"."+r).join(",")},activated(){this.getFileList()},computed:{...lg(["systemConfig","userIsAdmin","userInfo","fileLists","wsOpenNum","windowWidth","filePackLists"]),pid(){const{folderId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},fid(){const{fileId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let r=this.shareList?this.shareList.map(({userid:h})=>h):[];return this.shareInfo.userid&&r.push(this.shareInfo.userid),r},fileList(){const{fileLists:r,searchKey:h,hideShared:s,pid:c,selectIds:x,userId:O}=this;return $A.cloneJSON(Ci.exports.sortBy(r.filter(G=>s&&G.userid!=O&&G.created_id!=O?!1:h?G.name.indexOf(h)!==-1:G.pid==c),G=>(G.type=="folder"?"a":"b")+G.name)).map(G=>(G._checked=x.includes(G.id),G))},hasShareFile(){const{fileLists:r,userId:h}=this;return r.findIndex(s=>s.share&&s.userid!=h)!==-1},shearFirst(){const{fileLists:r,shearIds:h}=this;return h.length===0?null:r.find(s=>s.id==h[0])},navigator(){let{pid:r,fileLists:h}=this,s=[];for(;r>0;){let c=h.find(({id:x,permission:O})=>x==r&&O>-1);c?(s.unshift(c),r=c.pid):r=0}return s},isPreview(){return this.windowPortrait&&this.fileInfo.type!="document"||this.fileInfo.permission===0},isParentShare(){const{navigator:r}=this;return!!r.find(({share:h})=>h)},pasteTitle(){const{pasteItem:r}=this;let h=r.find(({type:c})=>c=="image"),s=r.find(({type:c})=>c!="image");return h&&s?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":h?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:r})=>r!=="image")?["multiple"]:[]},tableHeight(){return this.windowHeight-150},compressedSownloadDisabled(){var r;return!!((r=this.fileList)!=null&&r.find(h=>h._checked&&h.permission<1))},maxSize(){var r;return(r=this.systemConfig)!=null&&r.file_upload_limit?this.systemConfig.file_upload_limit*1024:1024e3},showBtnText(){return this.windowWidth>600}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(r){$A.IDBSave("fileTableMode",r)},hideShared(r){$A.IDBSave("fileHideShared",r)},fileShow(r){r||(this.browseFile(0),this.windowPortrait&&$A.onBlur(!0))},imageShow(r){r||this.browseFile(0)},navigator:{handler(){this.$nextTick(r=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(r){r.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(r){r.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(r){r<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))},filePackLists:{handler(){this.updatePackProgress()},deep:!0}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:r})=>{this.loadIng--,$A.modalError({content:r,onOk:()=>{this.browseFolder(0)}})}))},addFile(r){if(r){if(r=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(r=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let h=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:h,type:r,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(h)},handleLongpress(r,h){const s=$A.getAttr(h,"data-id"),c=this.fileList.find(x=>x.id==s);!c||this.handleRightClick(r,c)},handleContextmenu(r){this.windowLandscape&&this.handleRightClick(r)},handleRightClick(r,h,s){this.contextMenuItem=$A.isJson(h)?h:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const x=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${r.clientX-x.left}px`,top:`${r.clientY-x.top}px`},s===!0&&(this.contextMenuStyles.top=`${r.target.clientHeight+r.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(r,h=null){r>0?this.goForward({name:"manage-file",params:{folderId:r,fileId:null,shakeId:h}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile(r){r>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:r}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const r=this.fileList.find(({id:h})=>h===this.fid);if(!r){this.fileShow=!1,this.imageShow=!1;return}if(r.image_url){const h=this.fileList.filter(({image_url:s})=>!!s);if(h.length>0){this.imageIndex=h.findIndex(({id:s})=>r.id===s),this.imageList=h.map(s=>s.image_width?{src:s.image_url,width:s.image_width,height:s.image_height}:s.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(r);return}this.fileInfo=r,this.fileShow=!0},openFileSingle(r){const h=`/single/file/${r.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${r.id}`,path:h,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(r),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:r.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(r),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${h}`}}):window.open($A.apiUrl(`..${h}`)),this.browseFile(0)},clickRow(r,h){if(this.contextMenuVisible){this.handleClickContextMenuOutside();return}h.type=="selection"?this.dropFile(r,"select"):this.dropFile(r,"open")},handleContextMenu(r,h){this.handleRightClick(h,this.fileLists.find(({id:s})=>s===r.id)||{})},handleContextClick(r){$A.leftExists(r,"new:")?this.addFile($A.leftDelete(r,"new:")):this.dropFile(this.contextMenuItem,r)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(r){let h=this.fileLists.find(({_highlight:s})=>!!s);h&&this.$set(h,"_highlight",!1),r&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(r,h){switch(h){case"open":case"openCheckMenu":if(h==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(c=>c._edit===!0)>-1||r._load)return;r.type=="folder"?this.browseFolder(r.id):this.browseFile(r.id);break;case"upperFolder":this.searchKey="",this.browseFolder(r.pid,r.id);break;case"select":let s=this.selectIds.findIndex(c=>c==r.id);s>-1?this.selectIds.splice(s,1):this.selectIds.push(r.id);break;case"rename":this.setEdit(r.id,!0),this.autoBlur(r.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:r.id}}).then(({data:c,msg:x})=>{$A.messageSuccess(x),this.$store.dispatch("saveFile",c)}).catch(({msg:c})=>{$A.modalError(c)});break;case"shear":this.shearIds=[r.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendFileId=r.id,this.sendData=[],this.$refs.sendFile.onSelection();break;case"share":this.shareInfo={id:r.id,type:"all",userid:r.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+r.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((c,x)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:r.id}}).then(({msg:O})=>{c(O),this.$store.dispatch("forgetFile",r.id)}).catch(({msg:O})=>{x(O)})})});break;case"link":this.linkData={id:r.id,name:r.name},this.linkShow=!0,this.linkGet();break;case"download":if(!r.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${r.name}.${r.ext} (${$A.bytesToSize(r.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${r.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([r.id]);break;case"delete":this.deleteFile([r.id]);break}},onSendFile(){return new Promise((r,h)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),h();return}const s=this.sendData.filter(x=>$A.leftExists(x,"d:")).map(x=>x.replace("d:","")),c=this.sendData.filter(x=>!$A.leftExists(x,"d:"));this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:s,userids:c,file_id:this.sendFileId}}).then(({data:x,msg:O})=>{this.$store.dispatch("saveDialogMsg",x.msgs),this.$store.dispatch("updateDialogLastMsg",x.msgs),$A.messageSuccess(O),r()}).catch(({msg:x})=>{$A.modalError(x),h()})})},linkGet(r){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:r===!0?"yes":"no"}}).then(({data:h})=>{this.linkData=Object.assign(h,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:h})=>{this.linkShow=!1,$A.modalError(h)}).finally(h=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(r=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(r=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(r=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const r=this.fileLists.find(({id:h,share:s})=>s&&this.shearIds.includes(h));if(r){$A.modalError(`${r.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:r,msg:h})=>{$A.messageSuccess(h),this.shearIds=[],this.$store.dispatch("saveFile",r)}).catch(({msg:r})=>{$A.modalError(r)})}},deleteFile(r){if(r.length===0)return;const h=this.fileLists.find(O=>O.id==r[0])||{};let c=!r.find(O=>this.fileLists.find(P=>P.type!="folder"&&P.id==O))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",x=`\u3010${h.name}\u3011\u7B49${r.length}\u4E2A${c}`;r.length===1&&(x=`\u3010${h.name}\u3011${c}`),$A.modalConfirm({title:"\u5220\u9664"+c,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+x+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((O,P)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:r}}).then(({msg:G})=>{O(G),this.$store.dispatch("forgetFile",r),this.selectIds=this.selectIds.filter(ge=>!r.includes(ge))}).catch(({msg:G})=>{P(G)})})})},packPercentageParse(r){return parseInt(r,10)},packClear(){this.packList=this.packList.filter(r=>r.status!=="finished"),this.packShow=!1},async startPack(r){const h={name:r,status:"packing",percentage:0};this.packList.push(h),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(r=>{const h=this.filePackLists.find(({name:s})=>s==r.name);h&&(r.percentage=Math.max(1,h.progress),r.status!="finished"&&r.percentage>=100&&(r.status="finished",this.downloadPackFile(r.name)))})},downloadPackFile(r){const h=$A.apiUrl(`file/download/confirm?name=${r}&token=${this.userToken}`);if(!$A.Electron&&!$A.isEEUiApp){const s=document.createElement("a");s.setAttribute("href",h),s.setAttribute("download",`${r}`),document.body.appendChild(s),s.click(),document.body.removeChild(s)}else this.$store.dispatch("downUrl",h)},downloadZipFile(r){if(r.length===0)return;const h=this.fileLists.find(({id:P})=>P===r[0])||{},c=!r.some(P=>this.fileLists.some(({type:G,id:ge})=>G!=="folder"&&ge===P))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",x=r.length===1?`\u3010${h.name}\u3011${c}`:`\u3010${h.name}\u3011\u7B49${r.length}\u4E2A${c}`,O=`file_${$A.formatDate("YmdHis")}.zip`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${x}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:async()=>{if(this.packList.find(({status:P})=>P==="packing")){$A.messageWarning("\u8BF7\u7B49\u5F85\u6253\u5305\u5B8C\u6210");return}try{await this.$store.dispatch("call",{url:"file/download/pack",data:{ids:r,name:O}}),this.startPack(O)}catch({msg:P}){$A.modalError(P)}}})},autoBlur(r){this.$nextTick(()=>{if(this.$refs["input_"+r])this.$refs["input_"+r][0].focus({cursor:"all"});else if(document.getElementById("input_"+r)){const h=document.getElementById("input_"+r),s=h.value.length;h.focus(),h.setSelectionRange(0,s)}})},onParser(r){return r.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(r){this.fileLists.find(({id:h,_edit:s})=>h==r.id&&!s)||this.onEnter(r)},onKeyup(r,h){r.keyCode===13?this.onEnter(h):r.keyCode===27&&(!/^\d+$/.test(h.id)?(h.newname="",this.$store.dispatch("forgetFile",h.id)):(this.setLoad(h.id,!1),this.setEdit(h.id,!1)))},onEnter(r){const h=!/^\d+$/.test(r.id);if(!r.newname){h?this.$store.dispatch("forgetFile",r.id):this.setEdit(r.id,!1);return}if(r.newname==r.name){this.setEdit(r.id,!1);return}r._load||(this.setLoad(r.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:h?0:r.id,pid:r.pid,name:r.newname,type:r.type},spinner:2e3}).then(({data:s,msg:c})=>{$A.messageSuccess(c),this.setLoad(r.id,!1),this.setEdit(r.id,!1),this.$store.dispatch("saveFile",s),h&&(this.$store.dispatch("forgetFile",r.id),this.shakeFile(s.id))}).catch(({msg:s})=>{$A.modalError(s),this.setLoad(r.id,!1),h&&this.$store.dispatch("forgetFile",r.id)}))},setEdit(r,h){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&(this.$set(s,"_edit",h),h&&this.$set(s,"newname",s.name))},setLoad(r,h){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&this.$set(s,"_load",h)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:r})=>{r.id==this.shareInfo.id&&(this.shareList=r.list.map(h=>(h._permission=h.permission,h)))}).catch(({msg:r})=>{this.shareShow=!1,$A.modalError(r)}).finally(r=>{this.shareLoad--})},onShare(r=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:r===!0?1:0})}).then(({data:h,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveFile",h),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:h,msg:s})=>{h===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(s)}).finally(h=>{this.shareLoad--})},upShare(r,h=!1){r.loading!==!0&&(r.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[r.userid],permission:r.permission,force:h===!0?1:0}}).then(({data:s,msg:c})=>{if(r.loading=!1,r._permission=r.permission,$A.messageSuccess(c),this.$store.dispatch("saveFile",s),r.permission===-1){let x=this.shareList.findIndex(({userid:O})=>O==r.userid);x>-1&&this.shareList.splice(x,1)}}).catch(({ret:s,msg:c})=>{r.loading=!1,s===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(r,!0)},onCancel:()=>{r.permission=r._permission}}):(r.permission=r._permission,$A.modalError(c))}))},uploadName(r){return $A.getObject(r,"response.data.full_name")||r.name},handleTableSort({key:r,order:h}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(h)?{key:r,order:h}:{})},handleTableSelect(r){this.selectIds=r.map(h=>h.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(r){!r||this.$nextTick(h=>{const s=$A(this.$el).find(`[data-id="${r}"]`);s.length>0&&($A.scrollIntoViewIfNeeded(s[0]),$A(s[0]).addClass("common-shake"),setTimeout(c=>$A(s[0]).removeClass("common-shake"),800))})},pasteDragNext(r,h){let s=h==="drag"?r.dataTransfer.files:r.clipboardData.files;s=Array.prototype.slice.call(s),s.length>0&&(r.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some(c=>{const x={type:$A.getMiddle(c.type,null,"/"),name:c.name,size:c.size,result:null};if(x.type==="image"){const O=new FileReader;O.readAsDataURL(c),O.onload=({target:P})=>{x.result=P.result,this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}}else this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}))},filePasteDrag(r,h){if(this.dialogDrag=!1,$A.dataHasFolder(h==="drag"?r.dataTransfer:r.clipboardData)){r.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${h==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\uFF0C\u8BF7\u624B\u52A8\u4E0A\u4F20\u6587\u4EF6\u5939\u3002`);return}this.pasteDragNext(r,h)},fileDragOver(r,h){let s=this.__dialogDrag=$A.randomString(8);if(!r)setTimeout(()=>{s===this.__dialogDrag&&(this.dialogDrag=r)},150);else{if(h.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){if(this.__paste_send_index)return;this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300);const r=[];this.pasteFile.some(h=>{r.find(s=>s===h.name)||(r.push(h.name),this.$refs.fileUpload.upload(h))})},fileBeforeClose(){return new Promise(r=>{if(!this.$refs.fileContent){r();return}if(this.$refs.fileContent.equalContent){r();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{r()}})})},uploadUpdate(r){r.forEach(h=>{let s=this.uploadList.findIndex(({uid:c})=>c==h.uid);s>-1?this.uploadList.splice(s,1,h):this.uploadList.unshift(h)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:r})=>r!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(r){return parseInt(r,10)},handleProgress(r,h,s){h._uploadIng===void 0&&(h._uploadIng=!0,this.uploadIng++),this.uploadUpdate(s)},handleSuccess(r,h,s){this.uploadIng--,this.uploadUpdate(s),r.ret===1?this.$store.dispatch("saveFile",r.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+h.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+r.msg})},handleError(r,h,s){this.uploadIng--,this.uploadUpdate(s)},handleFormatError(r){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+r.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(r){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+r.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return this.uploadShow=!0,this.packShow=!1,!0}}},uu={};var mg=og(vg,dg,pg,!1,wg,null,null,null);function wg(r){for(let h in uu)this[h]=uu[h]}var Ag=function(){return mg.exports}();export{Ag as default};