From e7c55e8374eba7989b34a3035e6198c4560d3394 Mon Sep 17 00:00:00 2001 From: weiwait Date: Wed, 8 Mar 2023 15:22:43 +0800 Subject: [PATCH] op --- resources/assets/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/index.js b/resources/assets/js/index.js index a6ed5fe..861201e 100644 --- a/resources/assets/js/index.js +++ b/resources/assets/js/index.js @@ -2503,7 +2503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * pinia v2.0.29 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let KC;const fd=e=>KC=e,XC=Symbol();function Ap(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Xa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Xa||(Xa={}));function RN(){const e=Qy(!0),t=e.run(()=>E({}));let n=[],r=[];const o=wo({install(i){fd(o),o._a=i,i.provide(XC,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!PN?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const GC=()=>{};function Py(e,t,n,r=GC){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&q_()&&K_(o),o}function Ri(e,...t){e.slice().forEach(n=>{n(...t)})}function Fp(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ap(o)&&Ap(r)&&e.hasOwnProperty(n)&&!qt(r)&&!go(r)?e[n]=Fp(o,r):e[n]=r}return e}const kN=Symbol();function DN(e){return!Ap(e)||!e.hasOwnProperty(kN)}const{assign:co}=Object;function MN(e){return!!(qt(e)&&e.effect)}function EN(e,t,n,r){const{state:o,actions:i,getters:a}=t,l=n.state.value[e];let s;function u(){l||(n.state.value[e]=o?o():{});const c=S2(n.state.value[e]);return co(c,i,Object.keys(a||{}).reduce((d,h)=>(d[h]=wo(I(()=>{fd(n);const v=n._s.get(e);return a[h].call(v,v)})),d),{}))}return s=ZC(e,u,t,n,r,!0),s.$reset=function(){const d=o?o():{};this.$patch(h=>{co(h,d)})},s}function ZC(e,t,n={},r,o,i){let a;const l=co({actions:{}},n),s={deep:!0};let u,c,d=wo([]),h=wo([]),v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),E({});let y;function g(C){let $;u=c=!1,typeof C=="function"?(C(r.state.value[e]),$={type:Xa.patchFunction,storeId:e,events:v}):(Fp(r.state.value[e],C),$={type:Xa.patchObject,payload:C,storeId:e,events:v});const O=y=Symbol();Kt().then(()=>{y===O&&(u=!0)}),c=!0,Ri(d,$,r.state.value[e])}const m=GC;function b(){a.stop(),d=[],h=[],r._s.delete(e)}function S(C,$){return function(){fd(r);const O=Array.from(arguments),P=[],k=[];function T(L){P.push(L)}function M(L){k.push(L)}Ri(h,{args:O,name:C,store:w,after:T,onError:M});let A;try{A=$.apply(this&&this.$id===e?this:w,O)}catch(L){throw Ri(k,L),L}return A instanceof Promise?A.then(L=>(Ri(P,L),L)).catch(L=>(Ri(k,L),Promise.reject(L))):(Ri(P,A),A)}}const x={_p:r,$id:e,$onAction:Py.bind(null,h),$patch:g,$reset:m,$subscribe(C,$={}){const O=Py(d,C,$.detached,()=>P()),P=a.run(()=>ot(()=>r.state.value[e],k=>{($.flush==="sync"?c:u)&&C({storeId:e,type:Xa.direct,events:v},k)},co({},s,$)));return O},$dispose:b},w=jr(x);r._s.set(e,w);const _=r._e.run(()=>(a=Qy(),a.run(()=>t())));for(const C in _){const $=_[C];if(qt($)&&!MN($)||go($))i||(p&&DN($)&&(qt($)?$.value=p[C]:Fp($,p[C])),r.state.value[e][C]=$);else if(typeof $=="function"){const O=S(C,$);_[C]=O,l.actions[C]=$}}return co(w,_),co(ct(w),_),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:C=>{g($=>{co($,C)})}}),r._p.forEach(C=>{co(w,a.run(()=>C({store:w,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(w.$state,p),u=!0,c=!0,w}function IN(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function a(l,s){const u=zr();return l=l||u&&Be(XC,null),l&&fd(l),l=KC,l._s.has(r)||(i?ZC(r,t,o,l):EN(r,o,l)),l._s.get(r)}return a.$id=r,a}const QC=e=>{let t="",n=Math.floor(e/26);n>0&&(t=QC(n-1),e=e%26);let r=String.fromCharCode(65+e);return t+r},Yo=class{constructor(){Mn(this,"timeouts",{})}addMark(t,n){this.timeouts[t]=n}static debounce(t,n,r=500){const o=Yo.getInstance();o.timeouts[t]&&clearTimeout(o.timeouts[t]),o.addMark(t,setTimeout(n,r))}static getInstance(){return Yo.instance||(Yo.instance=new Yo),Yo.instance}};let Js=Yo;Mn(Js,"instance");const qo=class{static getPinia(){return qo.instance||(qo.instance=new qo,qo.pinia=RN()),qo.pinia}};let za=qo;Mn(za,"instance"),Mn(za,"pinia");const On=function(e){if(typeof e=="number"||typeof e=="boolean")return!1;if(typeof e>"u"||e===null)return!0;if(typeof e.length<"u")return e.length===0;let t=0;for(let n in e)e.hasOwnProperty(n)&&t++;return t===0},Sn=IN("form",()=>{const e=jr({}),t=jr({}),n={};function r(c,d){const h=Y(c);e[h]=jr({name:h,origin:Y(d),value:d,changed:[]}),n[h]!==void 0&&(l(h,n[h]),n[h]=void 0)}function o(c,d=void 0){const h=Y(c);return e[h]||r(h,E(d)),e[h].value}function i(c,d){const h=Y(c);return e[h]?(qt(e[h].value)?e[h].value.value=Y(d):e[h].value=Y(d),!0):!1}function a(c,d){const h=Y(c);e[h]?l(h,d):n[h]=d}function l(c,d){t[c]=ot(()=>e[c].value,()=>{d(e[c].value)},{deep:!0})}function s(c){const d=Y(c);t[d]&&t[d]()}function u(c,d){return qn.get(c,d)}return{setField:r,getField:o,watchField:a,cleanupWatch:s,updateField:i,load:u}}),zN={style:{"margin-bottom":"12px"}},AN=["required","disabled","name"],FN={key:1,class:"help-block"},BN=["name","value"],LN=["name","value"],NN=["name"],HN=he({__name:"File",setup(e){const t=Be("provides"),n=E(t.value||[]),r=E(t.name);E(t.disabled??[]),Sn().setField(r,n);const i=E(0),a=CC(),l=async({file:u})=>{const c=t.dir+"/"+Gs(u.name);u.status="uploading",u.name=c,i.value=0;const d=t.disk,{data:h}=await qn.get(t.obs_config_url,{params:{disk:d,filename:c}});let v;switch(d){case"oss":v=Rn.oss(u.file,c,i,h);break;case"qiniu":v=Rn.qiniu(u.file,c,i,h);break;case"cos":case"cosv5":v=Rn.cos(u.file,c,i,h);break;default:v=Rn.local(u.file,c,i,h)}v.then(()=>{u.status="finished",t.multiple?n.value.push(c):n.value=[c],Rn.uploaded(t.uploaded_url,c,d),a.success({content:`${u.name}`,meta:"上传成功"})}).catch(p=>{console.log(p),u.status="error",a.error({content:p.message,meta:"上传失败"})})};function s(u){n.value.splice(u,1)}return(u,c)=>(Se(),Re(je,null,[Ne(Y(Vr),null,{default:tt(()=>{var d;return[Ne(Y(DC),{"custom-request":l,multiple:Y(t).multiple,"show-file-list":!1,accept:(d=Y(t).options.accept)==null?void 0:d.mimeTypes},{default:tt(()=>[Ne(Y(fm),null,{default:tt(()=>[Ht("div",zN,[Ne(Y(_C),{type:"circle",percentage:i.value},null,8,["percentage"])]),Ne(Y(SC),{style:{"font-size":"16px"}},{default:tt(()=>[gt(" 点击或者拖动文件到该区域来上传 ")]),_:1})]),_:1})]),_:1},8,["multiple","accept"])]}),_:1}),Y(t).attributes.required?(Se(),Re("input",{key:0,type:"text",required:!n.value.length,disabled:!!n.value.length,name:`${r.value}_is_required`,style:{display:"none"}},null,8,AN)):it("",!0),(Se(!0),Re(je,null,Ln(n.value,(d,h)=>(Se(),Kn(Y(Vr),{class:"file-list-wrap"},{default:tt(()=>[Ne(Y(qa),{closable:!0,type:"success",onClose:v=>s(h)},{default:tt(()=>[gt(Xn(d),1)]),_:2},1032,["onClose"])]),_:2},1024))),256)),Y(On)(Y(t).help)?it("",!0):(Se(),Re("span",FN,[Ht("i",{class:Un(["fa",Y(t).help.icon])},null,2),gt(" "+Xn(Y(t).help.text),1)])),Y(t).multiple?(Se(!0),Re(je,{key:2},Ln(n.value,d=>(Se(),Re("input",{type:"hidden",name:r.value+"[]",value:d},null,8,BN))),256)):(Se(!0),Re(je,{key:3},Ln(n.value,d=>(Se(),Re("input",{type:"hidden",name:r.value,value:d},null,8,LN))),256)),n.value.length?it("",!0):(Se(),Re("input",{key:4,type:"hidden",name:r.value,value:""},null,8,NN))],64))}});const hd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},UN=hd(HN,[["__scopeId","data-v-938bf30a"]]),jN=["name","value"],VN=he({__name:"Checkbox",setup(e){var l;const t=Be("provides");console.log(t);const n=Sn(),r=E(t.checked),o=E(t.column);n.setField(o,r);const i=E(t.disabled??[]),a=E();return a.value=t.options.map((s,u)=>({value:u,attr:{name:s,disabled:i.value.length>0?i.value.includes(u):!1}})),(l=t.watches)==null||l.forEach(s=>{n.watchField(s.field,u=>{Function(`return ${s.handler}`)()(u,{self:r,store:n})})}),(s,u)=>(Se(),Re(je,null,[Ne(Y(dF),{value:r.value,"onUpdate:value":u[0]||(u[0]=c=>r.value=c)},{default:tt(()=>[Ne(Y(Vr),{"item-style":"display: flex;"},{default:tt(()=>[(Se(!0),Re(je,null,Ln(a.value,c=>(Se(),Kn(Y(pF),{key:s.k,value:c.value,label:c.attr.name,size:"medium",disabled:c.attr.disabled},null,8,["value","label","disabled"]))),128))]),_:1})]),_:1},8,["value"]),(Se(!0),Re(je,null,Ln(r.value,c=>(Se(),Re("input",{type:"hidden",name:o.value+"[]",value:c},null,8,jN))),256))],64))}});/*! + */let KC;const fd=e=>KC=e,XC=Symbol();function Ap(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Xa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Xa||(Xa={}));function RN(){const e=Qy(!0),t=e.run(()=>E({}));let n=[],r=[];const o=wo({install(i){fd(o),o._a=i,i.provide(XC,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!PN?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const GC=()=>{};function Py(e,t,n,r=GC){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&q_()&&K_(o),o}function Ri(e,...t){e.slice().forEach(n=>{n(...t)})}function Fp(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ap(o)&&Ap(r)&&e.hasOwnProperty(n)&&!qt(r)&&!go(r)?e[n]=Fp(o,r):e[n]=r}return e}const kN=Symbol();function DN(e){return!Ap(e)||!e.hasOwnProperty(kN)}const{assign:co}=Object;function MN(e){return!!(qt(e)&&e.effect)}function EN(e,t,n,r){const{state:o,actions:i,getters:a}=t,l=n.state.value[e];let s;function u(){l||(n.state.value[e]=o?o():{});const c=S2(n.state.value[e]);return co(c,i,Object.keys(a||{}).reduce((d,h)=>(d[h]=wo(I(()=>{fd(n);const v=n._s.get(e);return a[h].call(v,v)})),d),{}))}return s=ZC(e,u,t,n,r,!0),s.$reset=function(){const d=o?o():{};this.$patch(h=>{co(h,d)})},s}function ZC(e,t,n={},r,o,i){let a;const l=co({actions:{}},n),s={deep:!0};let u,c,d=wo([]),h=wo([]),v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),E({});let y;function g(C){let $;u=c=!1,typeof C=="function"?(C(r.state.value[e]),$={type:Xa.patchFunction,storeId:e,events:v}):(Fp(r.state.value[e],C),$={type:Xa.patchObject,payload:C,storeId:e,events:v});const O=y=Symbol();Kt().then(()=>{y===O&&(u=!0)}),c=!0,Ri(d,$,r.state.value[e])}const m=GC;function b(){a.stop(),d=[],h=[],r._s.delete(e)}function S(C,$){return function(){fd(r);const O=Array.from(arguments),P=[],k=[];function T(L){P.push(L)}function M(L){k.push(L)}Ri(h,{args:O,name:C,store:w,after:T,onError:M});let A;try{A=$.apply(this&&this.$id===e?this:w,O)}catch(L){throw Ri(k,L),L}return A instanceof Promise?A.then(L=>(Ri(P,L),L)).catch(L=>(Ri(k,L),Promise.reject(L))):(Ri(P,A),A)}}const x={_p:r,$id:e,$onAction:Py.bind(null,h),$patch:g,$reset:m,$subscribe(C,$={}){const O=Py(d,C,$.detached,()=>P()),P=a.run(()=>ot(()=>r.state.value[e],k=>{($.flush==="sync"?c:u)&&C({storeId:e,type:Xa.direct,events:v},k)},co({},s,$)));return O},$dispose:b},w=jr(x);r._s.set(e,w);const _=r._e.run(()=>(a=Qy(),a.run(()=>t())));for(const C in _){const $=_[C];if(qt($)&&!MN($)||go($))i||(p&&DN($)&&(qt($)?$.value=p[C]:Fp($,p[C])),r.state.value[e][C]=$);else if(typeof $=="function"){const O=S(C,$);_[C]=O,l.actions[C]=$}}return co(w,_),co(ct(w),_),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:C=>{g($=>{co($,C)})}}),r._p.forEach(C=>{co(w,a.run(()=>C({store:w,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(w.$state,p),u=!0,c=!0,w}function IN(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function a(l,s){const u=zr();return l=l||u&&Be(XC,null),l&&fd(l),l=KC,l._s.has(r)||(i?ZC(r,t,o,l):EN(r,o,l)),l._s.get(r)}return a.$id=r,a}const QC=e=>{let t="",n=Math.floor(e/26);n>0&&(t=QC(n-1),e=e%26);let r=String.fromCharCode(65+e);return t+r},Yo=class{constructor(){Mn(this,"timeouts",{})}addMark(t,n){this.timeouts[t]=n}static debounce(t,n,r=500){const o=Yo.getInstance();o.timeouts[t]&&clearTimeout(o.timeouts[t]),o.addMark(t,setTimeout(n,r))}static getInstance(){return Yo.instance||(Yo.instance=new Yo),Yo.instance}};let Js=Yo;Mn(Js,"instance");const qo=class{static getPinia(){return qo.instance||(qo.instance=new qo,qo.pinia=RN()),qo.pinia}};let za=qo;Mn(za,"instance"),Mn(za,"pinia");const On=function(e){if(typeof e=="number"||typeof e=="boolean")return!1;if(typeof e>"u"||e===null)return!0;if(typeof e.length<"u")return e.length===0;let t=0;for(let n in e)e.hasOwnProperty(n)&&t++;return t===0},Sn=IN("form",()=>{const e=jr({}),t=jr({}),n={};function r(c,d){const h=Y(c);e[h]=jr({name:h,origin:Y(d),value:d,changed:[]}),n[h]!==void 0&&(l(h,n[h]),n[h]=void 0)}function o(c,d=void 0){const h=Y(c);return e[h]||r(h,E(d)),e[h].value}function i(c,d){const h=Y(c);return e[h]?(qt(e[h].value)?e[h].value.value=Y(d):e[h].value=Y(d),!0):!1}function a(c,d){const h=Y(c);e[h]?l(h,d):n[h]=d}function l(c,d){t[c]=ot(()=>e[c].value,()=>{d(e[c].value)},{deep:!0})}function s(c){const d=Y(c);t[d]&&t[d]()}function u(c,d){return qn.get(c,d)}return{setField:r,getField:o,watchField:a,cleanupWatch:s,updateField:i,load:u}}),zN={style:{"margin-bottom":"12px"}},AN=["required","disabled","name"],FN={key:1,class:"help-block"},BN=["name","value"],LN=["name","value"],NN=["name"],HN=he({__name:"File",setup(e){const t=Be("provides"),n=E(t.value||[]),r=E(t.name);E(t.disabled??[]),Sn().setField(r,n);const i=E(0),a=CC(),l=async({file:u})=>{const c=t.dir+"/"+Gs(u.name);u.status="uploading",u.name=c,i.value=0;const d=t.disk,{data:h}=await qn.get(t.obs_config_url,{params:{disk:d,filename:c}});let v;switch(d){case"oss":v=Rn.oss(u.file,c,i,h);break;case"qiniu":v=Rn.qiniu(u.file,c,i,h);break;case"cos":case"cosv5":v=Rn.cos(u.file,c,i,h);break;default:v=Rn.local(u.file,c,i,h)}v.then(()=>{u.status="finished",t.multiple?n.value.push(c):n.value=[c],Rn.uploaded(t.uploaded_url,c,d),a.success({content:`${u.name}`,meta:"上传成功"})}).catch(p=>{console.log(p),u.status="error",a.error({content:p.message,meta:"上传失败"})})};function s(u){n.value.splice(u,1)}return(u,c)=>(Se(),Re(je,null,[Ne(Y(Vr),null,{default:tt(()=>{var d;return[Ne(Y(DC),{"custom-request":l,multiple:Y(t).multiple,"show-file-list":!1,accept:(d=Y(t).options.accept)==null?void 0:d.mimeTypes},{default:tt(()=>[Ne(Y(fm),null,{default:tt(()=>[Ht("div",zN,[Ne(Y(_C),{type:"circle",percentage:i.value},null,8,["percentage"])]),Ne(Y(SC),{style:{"font-size":"16px"}},{default:tt(()=>[gt(" 点击或者拖动文件到该区域来上传 ")]),_:1})]),_:1})]),_:1},8,["multiple","accept"])]}),_:1}),Y(t).attributes.required?(Se(),Re("input",{key:0,type:"text",required:!n.value.length,disabled:!!n.value.length,name:`${r.value}_is_required`,style:{display:"none"}},null,8,AN)):it("",!0),(Se(!0),Re(je,null,Ln(n.value,(d,h)=>(Se(),Kn(Y(Vr),{class:"file-list-wrap"},{default:tt(()=>[Ne(Y(qa),{closable:!0,type:"success",onClose:v=>s(h)},{default:tt(()=>[gt(Xn(d),1)]),_:2},1032,["onClose"])]),_:2},1024))),256)),Y(On)(Y(t).help)?it("",!0):(Se(),Re("span",FN,[Ht("i",{class:Un(["fa",Y(t).help.icon])},null,2),gt(" "+Xn(Y(t).help.text),1)])),Y(t).multiple?(Se(!0),Re(je,{key:2},Ln(n.value,d=>(Se(),Re("input",{type:"hidden",name:r.value+"[]",value:d},null,8,BN))),256)):(Se(!0),Re(je,{key:3},Ln(n.value,d=>(Se(),Re("input",{type:"hidden",name:r.value,value:d},null,8,LN))),256)),n.value.length?it("",!0):(Se(),Re("input",{key:4,type:"hidden",name:r.value,value:""},null,8,NN))],64))}});const hd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},UN=hd(HN,[["__scopeId","data-v-938bf30a"]]),jN=["name","value"],VN=he({__name:"Checkbox",setup(e){var l;const t=Be("provides"),n=Sn(),r=E(t.checked),o=E(t.column);n.setField(o,r);const i=E(t.disabled??[]),a=E();return a.value=t.options.map((s,u)=>({value:u,attr:{name:s,disabled:i.value.length>0?i.value.includes(u):!1}})),(l=t.watches)==null||l.forEach(s=>{n.watchField(s.field,u=>{Function(`return ${s.handler}`)()(u,{self:r,store:n})})}),(s,u)=>(Se(),Re(je,null,[Ne(Y(dF),{value:r.value,"onUpdate:value":u[0]||(u[0]=c=>r.value=c)},{default:tt(()=>[Ne(Y(Vr),{"item-style":"display: flex;"},{default:tt(()=>[(Se(!0),Re(je,null,Ln(a.value,c=>(Se(),Kn(Y(pF),{key:s.k,value:c.value,label:c.attr.name,size:"medium",disabled:c.attr.disabled},null,8,["value","label","disabled"]))),128))]),_:1})]),_:1},8,["value"]),(Se(!0),Re(je,null,Ln(r.value,c=>(Se(),Re("input",{type:"hidden",name:o.value+"[]",value:c},null,8,jN))),256))],64))}});/*! * Cropper.js v1.5.13 * https://fengyuanchen.github.io/cropperjs *