index-R2E731rh.js 13 KB

1
  1. var F=(l,f,u)=>new Promise((A,s)=>{var w=c=>{try{y(u.next(c))}catch(C){s(C)}},g=c=>{try{y(u.throw(c))}catch(C){s(C)}},y=c=>c.done?A(c.value):Promise.resolve(c.value).then(w,g);y((u=u.apply(l,f)).next())});import{l as M,u as D}from"./index-D6-fj_Lr.js";import{_ as N}from"./BasicForm.vue_vue_type_script_setup_true_lang-BhiE9_bz.js";import"./BasicForm.vue_vue_type_style_index_0_lang-BiIkb6ny.js";import{u as V}from"./useForm-B90AflV1.js";import{V as j}from"./index-D0jygwV8.js";import{U as z,V as O,B as $}from"./antd-ILpsl5AZ.js";import{d as E,f as I,r as W,a8 as q,Z as H,_ as G,$ as P,k as S,a7 as L,u as x,G as R,a0 as X,ab as Z,ae as J,a2 as K,a3 as Q}from"./vue-CF9JqwIh.js";import{_ as Y}from"./entry/index-BaQQ7BQ_.js";import"./FormItem.vue_vue_type_script_lang-Dp4O1V3R.js";import"./index-CFMHSB5r.js";import"./useWindowSizeFn-CiJNBK0Q.js";import"./index-L2ZLrFTi.js";import"./index-CXGOl87Z.js";import"./uuid-BUBnBT7J.js";import"./useSortable-6iYBSviO.js";import"./download-D1ZoFQnu.js";import"./base64Conver-BAcTuUD2.js";import"./index-BDVnX7zP.js";import"./IconPicker.vue_vue_type_script_setup_true_lang-0J_QZbkb.js";import"./copyTextToClipboard-Cu8x8bym.js";import"./index-D6Qi77pD.js";import"./index-Pqf9ZLE_.js";import"./onMountedOrActivated-D34Dt7uC.js";import"./resourceApi-D9gL48ec.js";import"./VxeBasicTable-BjQCEzUa.js";var k={exports:{}};(function(l,f){(function(u){l.exports=u()})(function(u){var A=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function s(o,a){var e=o[0],t=o[1],n=o[2],r=o[3];e+=(t&n|~t&r)+a[0]-680876936|0,e=(e<<7|e>>>25)+t|0,r+=(e&t|~e&n)+a[1]-389564586|0,r=(r<<12|r>>>20)+e|0,n+=(r&e|~r&t)+a[2]+606105819|0,n=(n<<17|n>>>15)+r|0,t+=(n&r|~n&e)+a[3]-1044525330|0,t=(t<<22|t>>>10)+n|0,e+=(t&n|~t&r)+a[4]-176418897|0,e=(e<<7|e>>>25)+t|0,r+=(e&t|~e&n)+a[5]+1200080426|0,r=(r<<12|r>>>20)+e|0,n+=(r&e|~r&t)+a[6]-1473231341|0,n=(n<<17|n>>>15)+r|0,t+=(n&r|~n&e)+a[7]-45705983|0,t=(t<<22|t>>>10)+n|0,e+=(t&n|~t&r)+a[8]+1770035416|0,e=(e<<7|e>>>25)+t|0,r+=(e&t|~e&n)+a[9]-1958414417|0,r=(r<<12|r>>>20)+e|0,n+=(r&e|~r&t)+a[10]-42063|0,n=(n<<17|n>>>15)+r|0,t+=(n&r|~n&e)+a[11]-1990404162|0,t=(t<<22|t>>>10)+n|0,e+=(t&n|~t&r)+a[12]+1804603682|0,e=(e<<7|e>>>25)+t|0,r+=(e&t|~e&n)+a[13]-40341101|0,r=(r<<12|r>>>20)+e|0,n+=(r&e|~r&t)+a[14]-1502002290|0,n=(n<<17|n>>>15)+r|0,t+=(n&r|~n&e)+a[15]+1236535329|0,t=(t<<22|t>>>10)+n|0,e+=(t&r|n&~r)+a[1]-165796510|0,e=(e<<5|e>>>27)+t|0,r+=(e&n|t&~n)+a[6]-1069501632|0,r=(r<<9|r>>>23)+e|0,n+=(r&t|e&~t)+a[11]+643717713|0,n=(n<<14|n>>>18)+r|0,t+=(n&e|r&~e)+a[0]-373897302|0,t=(t<<20|t>>>12)+n|0,e+=(t&r|n&~r)+a[5]-701558691|0,e=(e<<5|e>>>27)+t|0,r+=(e&n|t&~n)+a[10]+38016083|0,r=(r<<9|r>>>23)+e|0,n+=(r&t|e&~t)+a[15]-660478335|0,n=(n<<14|n>>>18)+r|0,t+=(n&e|r&~e)+a[4]-405537848|0,t=(t<<20|t>>>12)+n|0,e+=(t&r|n&~r)+a[9]+568446438|0,e=(e<<5|e>>>27)+t|0,r+=(e&n|t&~n)+a[14]-1019803690|0,r=(r<<9|r>>>23)+e|0,n+=(r&t|e&~t)+a[3]-187363961|0,n=(n<<14|n>>>18)+r|0,t+=(n&e|r&~e)+a[8]+1163531501|0,t=(t<<20|t>>>12)+n|0,e+=(t&r|n&~r)+a[13]-1444681467|0,e=(e<<5|e>>>27)+t|0,r+=(e&n|t&~n)+a[2]-51403784|0,r=(r<<9|r>>>23)+e|0,n+=(r&t|e&~t)+a[7]+1735328473|0,n=(n<<14|n>>>18)+r|0,t+=(n&e|r&~e)+a[12]-1926607734|0,t=(t<<20|t>>>12)+n|0,e+=(t^n^r)+a[5]-378558|0,e=(e<<4|e>>>28)+t|0,r+=(e^t^n)+a[8]-2022574463|0,r=(r<<11|r>>>21)+e|0,n+=(r^e^t)+a[11]+1839030562|0,n=(n<<16|n>>>16)+r|0,t+=(n^r^e)+a[14]-35309556|0,t=(t<<23|t>>>9)+n|0,e+=(t^n^r)+a[1]-1530992060|0,e=(e<<4|e>>>28)+t|0,r+=(e^t^n)+a[4]+1272893353|0,r=(r<<11|r>>>21)+e|0,n+=(r^e^t)+a[7]-155497632|0,n=(n<<16|n>>>16)+r|0,t+=(n^r^e)+a[10]-1094730640|0,t=(t<<23|t>>>9)+n|0,e+=(t^n^r)+a[13]+681279174|0,e=(e<<4|e>>>28)+t|0,r+=(e^t^n)+a[0]-358537222|0,r=(r<<11|r>>>21)+e|0,n+=(r^e^t)+a[3]-722521979|0,n=(n<<16|n>>>16)+r|0,t+=(n^r^e)+a[6]+76029189|0,t=(t<<23|t>>>9)+n|0,e+=(t^n^r)+a[9]-640364487|0,e=(e<<4|e>>>28)+t|0,r+=(e^t^n)+a[12]-421815835|0,r=(r<<11|r>>>21)+e|0,n+=(r^e^t)+a[15]+530742520|0,n=(n<<16|n>>>16)+r|0,t+=(n^r^e)+a[2]-995338651|0,t=(t<<23|t>>>9)+n|0,e+=(n^(t|~r))+a[0]-198630844|0,e=(e<<6|e>>>26)+t|0,r+=(t^(e|~n))+a[7]+1126891415|0,r=(r<<10|r>>>22)+e|0,n+=(e^(r|~t))+a[14]-1416354905|0,n=(n<<15|n>>>17)+r|0,t+=(r^(n|~e))+a[5]-57434055|0,t=(t<<21|t>>>11)+n|0,e+=(n^(t|~r))+a[12]+1700485571|0,e=(e<<6|e>>>26)+t|0,r+=(t^(e|~n))+a[3]-1894986606|0,r=(r<<10|r>>>22)+e|0,n+=(e^(r|~t))+a[10]-1051523|0,n=(n<<15|n>>>17)+r|0,t+=(r^(n|~e))+a[1]-2054922799|0,t=(t<<21|t>>>11)+n|0,e+=(n^(t|~r))+a[8]+1873313359|0,e=(e<<6|e>>>26)+t|0,r+=(t^(e|~n))+a[15]-30611744|0,r=(r<<10|r>>>22)+e|0,n+=(e^(r|~t))+a[6]-1560198380|0,n=(n<<15|n>>>17)+r|0,t+=(r^(n|~e))+a[13]+1309151649|0,t=(t<<21|t>>>11)+n|0,e+=(n^(t|~r))+a[4]-145523070|0,e=(e<<6|e>>>26)+t|0,r+=(t^(e|~n))+a[11]-1120210379|0,r=(r<<10|r>>>22)+e|0,n+=(e^(r|~t))+a[2]+718787259|0,n=(n<<15|n>>>17)+r|0,t+=(r^(n|~e))+a[9]-343485551|0,t=(t<<21|t>>>11)+n|0,o[0]=e+o[0]|0,o[1]=t+o[1]|0,o[2]=n+o[2]|0,o[3]=r+o[3]|0}function w(o){var a=[],e;for(e=0;e<64;e+=4)a[e>>2]=o.charCodeAt(e)+(o.charCodeAt(e+1)<<8)+(o.charCodeAt(e+2)<<16)+(o.charCodeAt(e+3)<<24);return a}function g(o){var a=[],e;for(e=0;e<64;e+=4)a[e>>2]=o[e]+(o[e+1]<<8)+(o[e+2]<<16)+(o[e+3]<<24);return a}function y(o){var a=o.length,e=[1732584193,-271733879,-1732584194,271733878],t,n,r,h,v,B;for(t=64;t<=a;t+=64)s(e,w(o.substring(t-64,t)));for(o=o.substring(t-64),n=o.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=o.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(s(e,r),t=0;t<16;t+=1)r[t]=0;return h=a*8,h=h.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(h[2],16),B=parseInt(h[1],16)||0,r[14]=v,r[15]=B,s(e,r),e}function c(o){var a=o.length,e=[1732584193,-271733879,-1732584194,271733878],t,n,r,h,v,B;for(t=64;t<=a;t+=64)s(e,g(o.subarray(t-64,t)));for(o=t-64<a?o.subarray(t-64):new Uint8Array(0),n=o.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=o[t]<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(s(e,r),t=0;t<16;t+=1)r[t]=0;return h=a*8,h=h.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(h[2],16),B=parseInt(h[1],16)||0,r[14]=v,r[15]=B,s(e,r),e}function C(o){var a="",e;for(e=0;e<4;e+=1)a+=A[o>>e*8+4&15]+A[o>>e*8&15];return a}function p(o){var a;for(a=0;a<o.length;a+=1)o[a]=C(o[a]);return o.join("")}p(y("hello")),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function o(a,e){return a=a|0||0,a<0?Math.max(a+e,0):Math.min(a,e)}ArrayBuffer.prototype.slice=function(a,e){var t=this.byteLength,n=o(a,t),r=t,h,v,B,T;return e!==u&&(r=o(e,t)),n>r?new ArrayBuffer(0):(h=r-n,v=new ArrayBuffer(h),B=new Uint8Array(v),T=new Uint8Array(this,n,h),B.set(T),v)}}();function U(o){return/[\u0080-\uFFFF]/.test(o)&&(o=unescape(encodeURIComponent(o))),o}function b(o,a){var e=o.length,t=new ArrayBuffer(e),n=new Uint8Array(t),r;for(r=0;r<e;r+=1)n[r]=o.charCodeAt(r);return a?n:t}function m(o){return String.fromCharCode.apply(null,new Uint8Array(o))}function _(o,a,e){var t=new Uint8Array(o.byteLength+a.byteLength);return t.set(new Uint8Array(o)),t.set(new Uint8Array(a),o.byteLength),e?t:t.buffer}function d(o){var a=[],e=o.length,t;for(t=0;t<e-1;t+=2)a.push(parseInt(o.substr(t,2),16));return String.fromCharCode.apply(String,a)}function i(){this.reset()}return i.prototype.append=function(o){return this.appendBinary(U(o)),this},i.prototype.appendBinary=function(o){this._buff+=o,this._length+=o.length;var a=this._buff.length,e;for(e=64;e<=a;e+=64)s(this._hash,w(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},i.prototype.end=function(o){var a=this._buff,e=a.length,t,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r;for(t=0;t<e;t+=1)n[t>>2]|=a.charCodeAt(t)<<(t%4<<3);return this._finish(n,e),r=p(this._hash),o&&(r=d(r)),this.reset(),r},i.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},i.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},i.prototype.setState=function(o){return this._buff=o.buff,this._length=o.length,this._hash=o.hash,this},i.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},i.prototype._finish=function(o,a){var e=a,t,n,r;if(o[e>>2]|=128<<(e%4<<3),e>55)for(s(this._hash,o),e=0;e<16;e+=1)o[e]=0;t=this._length*8,t=t.toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(t[2],16),r=parseInt(t[1],16)||0,o[14]=n,o[15]=r,s(this._hash,o)},i.hash=function(o,a){return i.hashBinary(U(o),a)},i.hashBinary=function(o,a){var e=y(o),t=p(e);return a?d(t):t},i.ArrayBuffer=function(){this.reset()},i.ArrayBuffer.prototype.append=function(o){var a=_(this._buff.buffer,o,!0),e=a.length,t;for(this._length+=o.byteLength,t=64;t<=e;t+=64)s(this._hash,g(a.subarray(t-64,t)));return this._buff=t-64<e?new Uint8Array(a.buffer.slice(t-64)):new Uint8Array(0),this},i.ArrayBuffer.prototype.end=function(o){var a=this._buff,e=a.length,t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n,r;for(n=0;n<e;n+=1)t[n>>2]|=a[n]<<(n%4<<3);return this._finish(t,e),r=p(this._hash),o&&(r=d(r)),this.reset(),r},i.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},i.ArrayBuffer.prototype.getState=function(){var o=i.prototype.getState.call(this);return o.buff=m(o.buff),o},i.ArrayBuffer.prototype.setState=function(o){return o.buff=b(o.buff,!0),i.prototype.setState.call(this,o)},i.ArrayBuffer.prototype.destroy=i.prototype.destroy,i.ArrayBuffer.prototype._finish=i.prototype._finish,i.ArrayBuffer.hash=function(o,a){var e=c(new Uint8Array(o)),t=p(e);return a?d(t):t},i})})(k);function tt(l,f,u,A,s,w){return F(this,null,function*(){const g=new Worker(new URL("/assets/sliceFileWorker-CAsc7PX5.js",import.meta.url),{type:"module"});g.postMessage({targetFile:l,baseChunkSize:f}),g.onmessage=y=>F(this,null,function*(){const{chunkList:c,fileHash:C}=y.data,p=c,U=[];let b=0;if(b=(p.length-U.length)/p.length*100,p.length){const m=p.map((_,d)=>F(this,null,function*(){if(U.includes(d+1)){const i=yield et(_,d+1,C);return b+=Math.ceil(100/p.length),b>=100&&(b=100),w(b),i}}));Promise.all(m).then(()=>{})}})})}function et(l,f,u,A){return F(this,null,function*(){const s=new FormData;s.append("chunk",new Blob([l])),s.append("index",f),s.append("fileHash",u)})}const rt=[{label:"宣教标题",field:"title",required:!0,component:"Input",componentProps:{}},{label:"宣教分类",field:"type",required:!0,itemProps:{validateTrigger:"blur"},component:"ApiSelect",componentProps:{api:M,params:{dictCode:"het"},placeholder:"请选择宣教分类"}},{label:"封面",field:"files",component:"ImageUpload",componentProps:({formModel:l})=>({api:D,maxSize:10,maxNumber:8,helpText:"仅支持上传jpg/png/pdf文件,文件大小不超过10M",accept:[".pdf","jpg","png"],onChange:f=>{l.files=f}}),colProps:{span:24}},{label:"宣教内容",field:"content",component:"TextEditor",componentProps:({formModel:l})=>({maxSize:10,maxNumber:1,reference:!0,onChange:f=>{l.content=f}}),colProps:{span:24}}],nt=[{title:"菜单名称",dataIndex:"treatTime",width:200,align:"left"},{title:"排序",dataIndex:"treatTime",width:200,align:"left"},{title:"核心字段",dataIndex:"treatTime",width:200,align:"left"},{title:"是否使用",dataIndex:"treatTime",align:"left"},{title:"更新时间",dataIndex:"treatTime",width:200,align:"left"}],at=l=>(K("data-v-95bf424d"),l=l(),Q(),l),ot=at(()=>P("div",null,"这里是切片上传文件",-1)),it={class:""},st={class:"!pl-8 !pt-4"},ft=E({__name:"index",setup(l){const f=I([]),u=I(!1),A=m=>{const _=f.value.indexOf(m),d=f.value.slice();d.splice(_,1),f.value=d},s=m=>(f.value=[...f.value||[],m],!1),w=()=>{const m=new FormData;f.value.forEach(_=>{m.append("files[]",_),tt(_,5)}),u.value=!1},[g,{resetFields:y,validate:c,setFieldsValue:C}]=V({layout:"vertical",showResetButton:!0,labelWidth:100,schemas:rt,showActionButtonGroup:!1,actionColOptions:{span:24},baseColProps:{span:12},wrapperCol:{span:22}}),p=I(),U=W({id:"biz_cbb_show_table",columns:nt,stripe:!1,border:"inner",data:p.value,proxyConfig:null,showOverflow:!0,resizable:!1,toolbarConfig:null,round:!0,height:"auto",headerRowClassName:"row-class",headerCellClassName:"table-basic_header",columnConfig:{resizable:!1},pagerConfig:{}}),b={};return(m,_)=>{const d=q("a-button");return H(),G("div",null,[ot,P("div",it,[S(x(O),{"file-list":f.value,"before-upload":s,onRemove:A},{default:L(()=>[S(d,null,{default:L(()=>[S(x(z)),R(" Select File ")]),_:1})]),_:1},8,["file-list"]),S(x($),{type:"primary",disabled:f.value.length===0,loading:u.value,style:{"margin-top":"16px"},onClick:w},{default:L(()=>[R(X(u.value?"Uploading":"Start Upload"),1)]),_:1},8,["disabled","loading"])]),P("div",st,[S(x(N),{onRegister:x(g)},null,8,["onRegister"])]),S(x(j),Z({ref_key:"tableRef",ref:p},U,J(b),{class:"table-basic"}),null,16)])}}}),Dt=Y(ft,[["__scopeId","data-v-95bf424d"]]);export{Dt as default};