← Back
Editing: index-legacy267.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(r){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new N(n||[]);return i(a,"_invoke",{value:O(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var y="suspendedStart",d="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function x(){}var _={};s(_,l,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(P([])));j&&j!==o&&a.call(j,l)&&(_=j);var E=x.prototype=b.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,r){function n(o,i,u,l){var c=p(e[o],e,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==t(s)&&a.call(s,"__await")?r.resolve(s.__await).then((function(t){n("next",t,u,l)}),(function(t){n("throw",t,u,l)})):r.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function O(t,e,n){var o=y;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var l=V(u,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=p(t,e,n);if("normal"===c.type){if(o=n.done?v:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function V(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,V(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=x,i(E,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},n.awrap=function(t){return{__await:t}},k(S.prototype),s(S.prototype,c,(function(){return this})),n.AsyncIterator=S,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new S(h(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(E),s(E,f,"Generator"),s(E,l,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(F),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return u.type="throw",u.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e,r,n,o,a,i){try{var u=t[a](i),l=u.value}catch(t){return void r(t)}u.done?e(l):Promise.resolve(l).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function u(t){r(i,o,a,u,l,"next",t)}function l(t){r(i,o,a,u,l,"throw",t)}u(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./store-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./files-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./store-legacy2.js?v=VERSION_NUMBER","./index-legacy101.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,a,i,u,l,c,f,s,h,p,y,d,m,v,g,b,w,x,_,L,j,E,k,S,O,V,C,F;return{setters:[function(t){o=t.c,a=t.s,i=t.g,u=t.p,l=t.a4,c=t.G,f=t.q,s=t.v,h=t.x,p=t.M,y=t.A,d=t.e,m=t.B,v=t.y,g=t.z,b=t.F,w=t.C,x=t.H,_=t.ag,L=t.a9,j=t.a7,E=t.R},function(t){k=t._},function(t){S=t.w,O=t.R,V=t.k,C=t.l},function(t){F=t.aN},null,null,null,null,null,null,null],execute:function(){var r={class:"p-20px"},N={key:0,class:"flex flex-col"},P={class:"flex items-center"},G={class:"leading-8 text-[1.4rem]"},T={key:0,class:"text-danger"},R={class:"flex items-center h-[4.8rem] mt-4 pl-[1.2rem] text-[1.4rem] bg-#f5f5f5"},A={class:"mx-[1rem]"};t("default",o({__name:"index",setup:function(t,o){var D=o.expose,U=F(),z=a(U),I=z.compData,q=z.fileTabActiveData,H=z.sitesPath,Y=z.overlayFormRef,B=z.overlayForm,M=z.tableLoading,$=z.quickRules,J=z.calcData,K=z.tableColumns,Q=z.tableData,W=U.handleSelectionChange,X=U.watchType,Z=U.onConfirm,tt=U.init,et=U.$reset,rt=i((function(){return q.value.param.path===H.value}));return u(n(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:tt();case 1:case"end":return t.stop()}}),t)})))),l((function(){et()})),D({onConfirm:Z}),function(t,e){var n=_,o=L,a=V,i=j,u=C,l=k,F=E,D=c("bt-loading"),U=c("focus");return f(),s("div",r,["single"===h(I).type?(f(),p(i,{key:0,ref_key:"overlayFormRef",ref:Y,model:h(B),rules:h($)},{default:y((function(){return[d(o,{label:"操作类型"},{default:y((function(){return[d(n,{modelValue:h(B).type,"onUpdate:modelValue":e[0]||(e[0]=function(t){return h(B).type=t}),label:"over",onChange:h(X)},{default:y((function(){return e[4]||(e[4]=[m("覆盖文件")])})),_:1},8,["modelValue","onChange"]),d(n,{modelValue:h(B).type,"onUpdate:modelValue":e[1]||(e[1]=function(t){return h(B).type=t}),label:"rename",onChange:h(X)},{default:y((function(){return e[5]||(e[5]=[m("重命名文件")])})),_:1},8,["modelValue","onChange"])]})),_:1}),d(o,{label:"文件名",prop:"filename"},{default:y((function(){return[d(a,{modelValue:h(B).filename,"onUpdate:modelValue":e[2]||(e[2]=function(t){return h(B).filename=t}),disabled:"over"===h(B).type,width:"24rem"},null,8,["modelValue","disabled"])]})),_:1}),d(o,{label:"大小"},{default:y((function(){return[v("span",null,g(h(B).is_dir?"--":h(S)(h(B).size)),1)]})),_:1}),d(o,{label:"最后修改时间"},{default:y((function(){return[m(g(h(O)(Number(h(B).mtime))),1)]})),_:1})]})),_:1},8,["model","rules"])):(f(),s(b,{key:1},["batch"===h(I).type?(f(),s("div",N,[v("div",P,[e[9]||(e[9]=v("i",{class:"svgtofont-el-warning text-[#F0AD4E] text-[4rem] mr-8px"},null,-1)),v("span",G,[e[6]||(e[6]=m("以下目标文件名称与源文件相同,点击确定后勾选文件将跳过,")),e[7]||(e[7]=v("span",{class:"text-danger"}," 未勾选文件将会被覆盖,",-1)),h(rt)?(f(),s("span",T," 当前目录为建站目录,")):w("",!0),e[8]||(e[8]=m(" 请确认后继续"))])]),d(l,null,{"header-left":y((function(){return e[10]||(e[10]=[])})),"header-right":y((function(){return e[11]||(e[11]=[])})),content:y((function(){return[x(d(u,{onSelectionChange:h(W),column:h(K),data:h(Q),ref:"overlayTableRef","max-height":300},null,8,["onSelectionChange","column","data"]),[[D,h(M)]])]})),"footer-left":y((function(){return e[12]||(e[12]=[])})),"footer-right":y((function(){return e[13]||(e[13]=[])})),popup:y((function(){return e[14]||(e[14]=[])})),_:1}),v("div",null,[v("div",R,[e[15]||(e[15]=v("span",null,"计算结果:",-1)),v("span",A,g(h(J).addend1)+" + "+g(h(J).addend2),1),e[16]||(e[16]=v("span",{class:"mr-[1rem]"},"=",-1)),x(d(F,{modelValue:h(J).sum,"onUpdate:modelValue":e[3]||(e[3]=function(t){return h(J).sum=t}),autofocus:"true","controls-position":"right",size:"small"},null,8,["modelValue"]),[[U]])])])])):w("",!0)],64))])}}}))}}}))}();
Save File
Cancel