1 |
- !function(){var t=document.createElement("style");t.innerHTML="._uploader-section_jyku5_1{margin:.26667rem 0;height:3.86667rem;border:.02667rem dashed #ccc;border-radius:.26667rem;box-sizing:border-box;position:relative}._uploader-section_jyku5_1 ._img-close_jyku5_9{position:absolute;top:.21333rem;right:.26667rem;z-index:99;font-size:.42667rem;background-color:#333;color:#fff;width:.58667rem;height:.58667rem;display:flex;justify-content:center;align-items:center;border-radius:50%}._uploader-section_jyku5_1 ._col-uploader_jyku5_24,._uploader-section_jyku5_1 .van-uploader{width:100%;height:100%;align-items:center;display:flex;justify-content:center}._uploader-section_jyku5_1 .van-uploader__wrapper,._uploader-section_jyku5_1 .van-uploader__input-wrapper{display:flex;align-items:center;justify-content:center;width:inherit;height:inherit}._uploader-section_jyku5_1 ._uploader_jyku5_1{display:flex;align-items:center;justify-content:center;flex-direction:column}._uploader-section_jyku5_1 ._uploader_jyku5_1 ._uploaderText_jyku5_52{font-size:.37333rem;color:#999;margin-top:.21333rem}._uploader-section_jyku5_1 ._uploadImg_jyku5_57{width:100%;height:100%;overflow:hidden}.vue-cropper[data-v-69939069]{position:relative;width:100%;height:100%;box-sizing:border-box;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;direction:ltr;touch-action:none;text-align:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-box[data-v-69939069],.cropper-box-canvas[data-v-69939069],.cropper-drag-box[data-v-69939069],.cropper-crop-box[data-v-69939069],.cropper-face[data-v-69939069]{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-box-canvas img[data-v-69939069]{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:none;max-width:none;max-height:none}.cropper-box[data-v-69939069]{overflow:hidden}.cropper-move[data-v-69939069]{cursor:move}.cropper-crop[data-v-69939069]{cursor:crosshair}.cropper-modal[data-v-69939069]{background:rgba(0,0,0,.5)}.cropper-view-box[data-v-69939069]{display:block;overflow:hidden;width:100%;height:100%;outline:.02667rem solid #39f;outline-color:rgba(51,153,255,.75);-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-view-box img[data-v-69939069]{-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:left;max-width:none;max-height:none}.cropper-face[data-v-69939069]{top:0;left:0;background-color:#fff;opacity:.1}.crop-info[data-v-69939069]{position:absolute;left:0;min-width:1.73333rem;text-align:center;color:#fff;line-height:.53333rem;background-color:rgba(0,0,0,.8);font-size:.32rem}.crop-line[data-v-69939069]{position:absolute;display:block;width:100%;height:100%;opacity:.1}.line-w[data-v-69939069]{top:-.08rem;left:0;height:.13333rem;cursor:n-resize}.line-a[data-v-69939069]{top:0;left:-.08rem;width:.13333rem;cursor:w-resize}.line-s[data-v-69939069]{bottom:-.08rem;left:0;height:.13333rem;cursor:s-resize}.line-d[data-v-69939069]{top:0;right:-.08rem;width:.13333rem;cursor:e-resize}.crop-point[data-v-69939069]{position:absolute;width:.21333rem;height:.21333rem;opacity:.75;background-color:#39f;border-radius:100%}.point1[data-v-69939069]{top:-.10667rem;left:-.10667rem;cursor:nw-resize}.point2[data-v-69939069]{top:-.13333rem;left:50%;margin-left:-.08rem;cursor:n-resize}.point3[data-v-69939069]{top:-.10667rem;right:-.10667rem;cursor:ne-resize}.point4[data-v-69939069]{top:50%;left:-.10667rem;margin-top:-.08rem;cursor:w-resize}.point5[data-v-69939069]{top:50%;right:-.10667rem;margin-top:-.08rem;cursor:e-resize}.point6[data-v-69939069]{bottom:-.13333rem;left:-.10667rem;cursor:sw-resize}.point7[data-v-69939069]{bottom:-.13333rem;left:50%;margin-left:-.08rem;cursor:s-resize}.point8[data-v-69939069]{bottom:-.13333rem;right:-.10667rem;cursor:se-resize}@media screen and (max-width: 500px){.crop-point[data-v-69939069]{position:absolute;width:.53333rem;height:.53333rem;opacity:.45;background-color:#39f;border-radius:100%}.point1[data-v-69939069]{top:-.26667rem;left:-.26667rem}.point2[data-v-69939069],.point4[data-v-69939069],.point5[data-v-69939069],.point7[data-v-69939069]{display:none}.point3[data-v-69939069]{top:-.26667rem;right:-.26667rem}.point4[data-v-69939069]{top:0;left:0}.point6[data-v-69939069]{bottom:-.26667rem;left:-.26667rem}.point8[data-v-69939069]{bottom:-.26667rem;right:-.26667rem}}._upbtn_15vje_1{width:100%;height:100%}._uploadWarper_15vje_5{position:absolute;left:0;right:0;top:0;bottom:0}._bg_15vje_12{position:fixed;top:0;height:100vh;width:100%;background-color:#000;left:0;z-index:1000001}._btn_15vje_21{height:8vw;padding:0;line-height:8vw;font-size:4vw;padding:0 3.5vw;border-radius:1.333vw;text-align:center}._btn1_15vje_33{height:8vw;line-height:8vw;font-size:4vw;padding:0 4vw;border-radius:1.333vw;text-align:center;background-color:#5b6e96}._img_15vje_44{height:8vw;width:8vw;position:absolute;left:calc(50% - 4vw);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAZrElEQVR4Xu1dCbBtRXVdC4SAoggOcR6CCkbjbOKAE2iBqAE0kRLFGUVxiCZGVAzOChogDpiIEAaljEMciBGHoFFU1ERRSo0WGnHAKaJoYrRiuVLr/75Vl/f/e+/0cPoMt3fVrff+f717WLvX7dN9du9NNGkINATWRYANm4ZAQ2B9BBpB2uxoCGyAQCNImx4NgUaQNgcaAmkItBUkDbemtSIINIKsiKHbMNMQaARJw61prQgCjSArYug2zDQEGkHScGtaK4JAI8iKGLoNMw2BRpA03JrWiiDQCFLR0JJ+B8A1wmf3pd8X/+eflivW+5D035pUQqARpDDQkvYEcEsAt1j6ufjdfyshlwJY+/n24v9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w/HYhUMK1Kvbr+EAOey9MXmZDkKXVxBt4p1xIDXOaY1TvUxwc77MAvhE+l5D8TU6l6+lK8iOm3xH9YQinY0L42sAQ4j2GV40PDtF4X23OjiBhNbH7gkmSGjC7NN5+LFsQxr/7pOyn4efy7/6/HQD4G3+9j4nvvzlZamoAttLjcwBqk2OQLFClB7Nc3ywJsrSaOPWCiZKSn6RP3OdSt2NdmRjnz2VAa8cxa4KE1cRJfEySlExXc7V77rgcIfFNQwdUyB1EF/3ZE2RpNfF99yeET0r23S54zr3MyhBjYciVIcgSUZyi2kTxuxOvLk02R2DliLGyBFkiije5JonJMsSJ1+bTcvgSK0uMlSfIElH83sAkOTycDA0/LYfvwcoToxFkzSSU5ONVX856UPjcePh5WrUHXwXgdxiOnD+rdxk5KK7cHqQLWJJ2WSKKCXPdLnoTLOMAewtSzPaoNscujSCboCdp90AWu7DsC+BWOYCPQNePTwtSOId9kw0QaASJnB6S7OdkouwXPGN3jqyidvFLAHiluDg8Pl1YuwNTbq8RJMN6knYKV4DtOu6Ad3b92DOjylzVbwOwJ61jgZkQF5NcyduRuUC2TXopBLfd7JsgJsrCV8o/F7+XII/9tRYfxyH+t/D5Isnv9TSsla22rSAVTS/Jb/AdJM0f720Wvy//1BIBlsnwU5L+d5OKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCDSCVAS7NTU9BBpBpmez1uOKCPw/JjUpXx7VFvoAAAAASUVORK5CYII=);background-size:100% 100%}._btndiv_15vje_53{height:13.333vw;color:#fff;justify-content:space-between;display:flex;align-items:center;padding:0 4vw;line-height:13.333vw;font-size:4vw;position:relative}._wrapper_15vje_64{height:calc(100vh - 21.333vw);padding:4vw}._wrapper_15vje_64 .crop-point{opacity:0;z-index:523}._wrapper_15vje_64 .cropper-view-box{outline:.02667rem solid #fff;border:.02667rem solid #fff}._wrapper_15vje_64 .vue-cropper{background-color:#000;background-image:none}\n",document.head.appendChild(t),System.register(["./index-legacy.eb062188.js","./index-legacy.bd6987bf.js","./index-legacy.fecc738b.js"],(function(t){"use strict";var e,i,o,s,r,h,a,n,c,l,p,d,u,g,f,m,v,w,y,C,x,A,b;return{setters:[function(t){e=t.d,i=t.by,o=t.bz,s=t.ac,r=t.ay,h=t.bA,a=t.aY,n=t.bB,c=t.aW,l=t.bC,p=t.c,d=t.e,u=t.o,g=t.bj,f=t.g,m=t.m,v=t.bv,w=t.bD,y=t.bE,C=t.b8,x=t.a5},function(t){A=t.U},function(t){b=t.I}],execute:function(){var k="_uploader-section_jyku5_1",S="_img-close_jyku5_9",O="_col-uploader_jyku5_24",I="_uploader_jyku5_1",B="_uploaderText_jyku5_52",M="_uploadImg_jyku5_57";const T={};T.getData=t=>new Promise(((e,i)=>{let o={};(function(t){let e=null;return new Promise(((i,o)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),o=i.length%2==0?i.length:i.length+1,s=new ArrayBuffer(o),r=new Uint16Array(s),h=0;h<o;h++)r[h]=i.charCodeAt(h);return s}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var s=new FileReader;s.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){(200==this.status||0===this.status)&&e(this.response)},i.send()}(t.src,(function(t){s.readAsArrayBuffer(t)}))}else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=r.response,i(e),r=null},r.open("GET",t.src,!0),r.responseType="arraybuffer",r.send(null)}else o("img error")}))})(t).then((t=>{o.arrayBuffer=t;try{o.orientation=function(t){var e,i,o,s,r,h,a,n,c,l=new DataView(t),p=l.byteLength;if(255===l.getUint8(0)&&216===l.getUint8(1))for(n=2;n<p;){if(255===l.getUint8(n)&&225===l.getUint8(n+1)){h=n;break}n++}if(h&&(i=h+10,"Exif"===function(t,e,i){var o,s="";for(o=e,i+=e;o<i;o++)s+=String.fromCharCode(t.getUint8(o));return s}(l,h+4,4)&&(r=l.getUint16(i),((s=18761===r)||19789===r)&&42===l.getUint16(i+2,s)&&(o=l.getUint32(i+4,s))>=8&&(a=i+o))),a)for(p=l.getUint16(a,s),c=0;c<p;c++)if(n=a+12*c+2,274===l.getUint16(n,s)){n+=8,e=l.getUint16(n,s);break}return e}(t)}catch{o.orientation=-1}e(o)})).catch((t=>{i(t)}))}));const E=(t,e)=>{const i=t.__vccOpts||t;for(const[o,s]of e)i[o]=s;return i},H=e({data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let o=0;const s=new RegExp(t,"i");for(var r=0;r<e.length;r++)s.test(e[r])&&(i=e[r]);return o=i?i.split("/")[1].split("."):["0","0","0"],o},checkOrientationImage(t,e,i,o){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let s=document.createElement("canvas"),r=s.getContext("2d");switch(r.save(),e){case 2:s.width=i,s.height=o,r.translate(i,0),r.scale(-1,1);break;case 3:s.width=i,s.height=o,r.translate(i/2,o/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-o/2);break;case 4:s.width=i,s.height=o,r.translate(0,o),r.scale(1,-1);break;case 5:s.height=i,s.width=o,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:s.width=o,s.height=i,r.translate(o/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-o/2);break;case 7:s.height=i,s.width=o,r.rotate(.5*Math.PI),r.translate(i,-o),r.scale(-1,1);break;case 8:s.height=i,s.width=o,r.translate(o/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-o/2);break;default:s.width=i,s.height=o}r.drawImage(t,0,0,i,o),r.restore(),s.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,i=t.height;T.getData(t).then((o=>{this.orientation=o.orientation||1;let s=Number(this.maxImgSize);!this.orientation&&e<s&i<s?this.imgs=this.img:(e>s&&(i=i/e*s,e=s),i>s&&(e=e/i*s,i=s),this.checkOrientationImage(t,this.orientation,e,i))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,o=this.touches[0].clientY,s=t.touches[0].clientX,r=t.touches[0].clientY,h=this.touches[1].clientX,a=this.touches[1].clientY,n=t.touches[1].clientX,c=t.touches[1].clientY,l=Math.sqrt(Math.pow(i-h,2)+Math.pow(o-a,2)),p=Math.sqrt(Math.pow(s-n,2)+Math.pow(r-c,2))-l,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*p;if(!this.touchNow){if(this.touchNow=!0,p>0?e+=Math.abs(u):p<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,o="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY;e=o-this.moveX,i=s-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,o,s,r,h=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),n=this.trueHeight*this.scale,c=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-c)/2,o=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(c-n)/2,s=t-n+this.cropW,r=o-c+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,o=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,s=t-c+this.cropW,r=o-n+this.cropH}h.x1>=a.x1&&(e=t),h.y1>=a.y1&&(i=o),h.x2<=a.x2&&(e=s),h.y2<=a.y2&&(i=r)}this.x=e,this.y=i,this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var o=this.coe,s=(o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)*i;s<0?e+=Math.abs(s):e>Math.abs(s)&&(e-=Math.abs(s));let r=s<0?"add":"reduce";if(r!==this.coeStatus&&(this.coeStatus=r,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,o=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var s=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];s+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=s,this.cropOffsertY=this.cropOffsertY}else o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0)}))},changeCropSize(t,e,i,o,s){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=o,this.changeCropTypeY=s,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let o=this.w,s=this.h,r=0,h=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;r=t.x1>0?t.x1:0,h=t.y1>0?t.y1:0,o>e&&(o=e),s>i&&(s=i)}const[a,n]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,c=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-a):this.cropOldW-t>0?(this.cropW=o-this.cropChangeX-t<=o-r?this.cropOldW-t:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=o-this.cropChangeX-t<=o-r?this.cropChangeX+t:r):(this.cropW=Math.abs(t)+this.cropChangeX<=o?Math.abs(t)-this.cropOldW:o-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=o?this.cropOldW+t:o-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=o-this.cropChangeX+Math.abs(t+this.cropOldW)<=o-r?Math.abs(t+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=o-this.cropChangeX+Math.abs(t+this.cropOldW)<=o-r?this.cropChangeX-Math.abs(t+this.cropOldW):r))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-c<n?(this.cropH=n,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-n):this.cropOldH-c>0?(this.cropH=s-this.cropChangeY-c<=s-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=s-this.cropChangeY-c<=s-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=s?Math.abs(c)-this.cropOldH:s-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+c<n?this.cropH=n:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=s?this.cropOldH+c:s-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=s-this.cropChangeY+Math.abs(c+this.cropOldH)<=s-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=s-this.cropChangeY+Math.abs(c+this.cropOldH)<=s-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var l=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];l<n?(this.cropH=n,this.cropW=this.fixedNumber[0]*n/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):l+this.cropOffsertY>s?(this.cropH=s-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=l}if(this.canChangeY&&this.fixed){var p=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];p<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0],this.cropOffsertY=this.cropOldH+this.cropChangeY-this.cropH):p+this.cropOffsertX>o?(this.cropW=o-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=p}}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,o=new Array;return o=Array.isArray(i)?i:[i,i],t=parseFloat(o[0]),e=parseFloat(o[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,o,s,r){const h=t/e;let a=s,n=r;return a<i&&(a=i,n=Math.ceil(a/h)),n<o&&(n=o,a=Math.ceil(n*h),a<i&&(a=i,n=Math.ceil(a/h))),a<s&&(a=s,n=Math.ceil(a/h)),n<r&&(n=r,a=Math.ceil(n*h)),{width:a,height:n}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:o}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),o>this.cropH&&(this.cropH=o,this.cropOffsertY+o>this.h&&(this.cropOffsertY=this.h-o)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,o="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY;e=o-this.cropOffsertX,i=s-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,o=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,s,r=i-this.cropX,h=o-this.cropY;if(e&&(r=this.cropOffsertX,h=this.cropOffsertY),t=r<=0?0:r+this.cropW>this.w?this.w-this.cropW:r,s=h<=0?0:h+this.cropH>this.h?this.h-this.cropH:h,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),s<=e.y1&&(s=e.y1),s+this.cropH>e.y2&&(s=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=s,this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let o={x1:0,x2:0,y1:0,y2:0},s=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:o.x1=t+this.trueWidth*(1-i)/2,o.x2=o.x1+this.trueWidth*i,o.y1=e+this.trueHeight*(1-i)/2,o.y2=o.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:o.x1=t+this.trueWidth*(1-i)/2+(s-r)/2,o.x2=o.x1+this.trueHeight*i,o.y1=e+this.trueHeight*(1-i)/2+(r-s)/2,o.y2=o.y1+this.trueWidth*i;break;default:o.x1=t+this.trueWidth*(1-i)/2,o.x2=o.x1+this.trueWidth*i,o.y1=e+this.trueHeight*(1-i)/2,o.y2=o.y1+this.trueHeight*i}return o},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=new Image,o=this.rotate,s=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,a=this.cropOffsertY;function n(t,i){e.width=Math.round(t),e.height=Math.round(i)}i.onload=()=>{if(0!==this.cropW){let t=e.getContext("2d"),c=1;this.high&!this.full&&(c=window.devicePixelRatio),1!==this.enlarge&!this.full&&(c=Math.abs(Number(this.enlarge)));let l=this.cropW*c,p=this.cropH*c,d=s*this.scale*c,u=r*this.scale*c,g=(this.x-h+this.trueWidth*(1-this.scale)/2)*c,f=(this.y-a+this.trueHeight*(1-this.scale)/2)*c;switch(n(l,p),t.save(),this.fillColor&&(t.fillStyle=this.fillColor,t.fillRect(0,0,e.width,e.height)),o){case 0:this.full?(n(l/this.scale,p/this.scale),t.drawImage(i,g/this.scale,f/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,f,d,u);break;case 1:case-3:this.full?(n(l/this.scale,p/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,f=f/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*o*Math.PI/180),t.drawImage(i,f,-g-u/this.scale,d/this.scale,u/this.scale)):(g+=(d-u)/2,f+=(u-d)/2,t.rotate(90*o*Math.PI/180),t.drawImage(i,f,-g-u,d,u));break;case 2:case-2:this.full?(n(l/this.scale,p/this.scale),t.rotate(90*o*Math.PI/180),g/=this.scale,f/=this.scale,t.drawImage(i,-g-d/this.scale,-f-u/this.scale,d/this.scale,u/this.scale)):(t.rotate(90*o*Math.PI/180),t.drawImage(i,-g-d,-f-u,d,u));break;case 3:case-1:this.full?(n(l/this.scale,p/this.scale),g=g/this.scale+(d/this.scale-u/this.scale)/2,f=f/this.scale+(u/this.scale-d/this.scale)/2,t.rotate(90*o*Math.PI/180),t.drawImage(i,-f-d/this.scale,g,d/this.scale,u/this.scale)):(g+=(d-u)/2,f+=(u-d)/2,t.rotate(90*o*Math.PI/180),t.drawImage(i,-f-d,g,d,u));break;default:this.full?(n(l/this.scale,p/this.scale),t.drawImage(i,g/this.scale,f/this.scale,d/this.scale,u/this.scale)):t.drawImage(i,g,f,d,u)}t.restore()}else{let t=s*this.scale,h=r*this.scale,a=e.getContext("2d");switch(a.save(),this.fillColor&&(a.fillStyle=this.fillColor,a.fillRect(0,0,e.width,e.height)),o){case 0:n(t,h),a.drawImage(i,0,0,t,h);break;case 1:case-3:n(h,t),a.rotate(90*o*Math.PI/180),a.drawImage(i,0,-h,t,h);break;case 2:case-2:n(t,h),a.rotate(90*o*Math.PI/180),a.drawImage(i,-t,-h,t,h);break;case 3:case-1:n(h,t),a.rotate(90*o*Math.PI/180),a.drawImage(i,-t,0,t,h);break;default:n(t,h),a.drawImage(i,0,0,t,h)}a.restore()}t(e)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var o={};o.div={width:`${t}px`,height:`${e}px`};let s=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i;o.w=t,o.h=e,o.url=this.imgs,o.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${s}px, ${r}px, 0px)rotateZ(${90*this.rotate}deg)`},o.html=`\n <div class="show-preview" style="width: ${o.w}px; height: ${o.h}px,; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${o.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${s}px, ${r}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("real-time",o)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let s=o[0];if(-1!==s.search("px")){s=s.replace("px",""),e=parseFloat(s);const r=e/this.trueWidth;let h=1,a=o[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),h=i/this.trueHeight),t=Math.min(r,h)}if(-1!==s.search("%")&&(s=s.replace("%",""),e=parseFloat(s)/100*this.w,t=e/this.trueWidth),2===o.length&&"auto"===s){let e=o[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch{t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,o=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,s=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,o=s<o?s:o}var s=t||parseFloat(this.autoCropWidth),r=e||parseFloat(this.autoCropHeight);(0===s||0===r)&&(s=.8*i,r=.8*o),s=s>i?i:s,r=r>o?o:r,this.fixed&&(r=s/this.fixedNumber[0]*this.fixedNumber[1]),r>this.h&&(s=(r=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,r)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let o=!0;if(this.centerBox){let s=this.getImgAxis(t,e,i),r=this.getCropAxis();s.x1>=r.x1&&(o=!1),s.x2<=r.x2&&(o=!1),s.y1>=r.y1&&(o=!1),s.y2<=r.y2&&(o=!1)}return o}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,o){for(var s=atob(this.toDataURL(i,o).split(",")[1]),r=s.length,h=new Uint8Array(r),a=0;a<r;a++)h[a]=s.charCodeAt(a);e(new Blob([h],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},unmounted(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}}),X={key:0,class:"cropper-box"},Y=["src"],j={class:"cropper-view-box"},W=["src"],R={key:1};const z=E(H,[["render",function(t,e,p,d,u,g){return i(),o("div",{class:"vue-cropper",ref:"cropper",onMouseover:e[28]||(e[28]=(...e)=>t.scaleImg&&t.scaleImg(...e)),onMouseout:e[29]||(e[29]=(...e)=>t.cancelScale&&t.cancelScale(...e))},[t.imgs?(i(),o("div",X,[s(h("div",{class:"cropper-box-canvas",style:a({width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"})},[h("img",{src:t.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,Y)],4),[[r,!t.loading]])])):n("",!0),h("div",{class:c(["cropper-drag-box",{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping}]),onMousedown:e[0]||(e[0]=(...e)=>t.startMove&&t.startMove(...e)),onTouchstart:e[1]||(e[1]=(...e)=>t.startMove&&t.startMove(...e))},null,34),s(h("div",{class:"cropper-crop-box",style:a({width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"})},[h("span",j,[h("img",{style:a({width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}),src:t.imgs,alt:"cropper-img"},null,12,W)]),h("span",{class:"cropper-face cropper-move",onMousedown:e[2]||(e[2]=(...e)=>t.cropMove&&t.cropMove(...e)),onTouchstart:e[3]||(e[3]=(...e)=>t.cropMove&&t.cropMove(...e))},null,32),t.info?(i(),o("span",{key:0,class:"crop-info",style:a({top:t.cropInfo.top})},l(t.cropInfo.width)+" × "+l(t.cropInfo.height),5)):n("",!0),t.fixedBox?n("",!0):(i(),o("span",R,[h("span",{class:"crop-line line-w",onMousedown:e[4]||(e[4]=e=>t.changeCropSize(e,!1,!0,0,1)),onTouchstart:e[5]||(e[5]=e=>t.changeCropSize(e,!1,!0,0,1))},null,32),h("span",{class:"crop-line line-a",onMousedown:e[6]||(e[6]=e=>t.changeCropSize(e,!0,!1,1,0)),onTouchstart:e[7]||(e[7]=e=>t.changeCropSize(e,!0,!1,1,0))},null,32),h("span",{class:"crop-line line-s",onMousedown:e[8]||(e[8]=e=>t.changeCropSize(e,!1,!0,0,2)),onTouchstart:e[9]||(e[9]=e=>t.changeCropSize(e,!1,!0,0,2))},null,32),h("span",{class:"crop-line line-d",onMousedown:e[10]||(e[10]=e=>t.changeCropSize(e,!0,!1,2,0)),onTouchstart:e[11]||(e[11]=e=>t.changeCropSize(e,!0,!1,2,0))},null,32),h("span",{class:"crop-point point1",onMousedown:e[12]||(e[12]=e=>t.changeCropSize(e,!0,!0,1,1)),onTouchstart:e[13]||(e[13]=e=>t.changeCropSize(e,!0,!0,1,1))},null,32),h("span",{class:"crop-point point2",onMousedown:e[14]||(e[14]=e=>t.changeCropSize(e,!1,!0,0,1)),onTouchstart:e[15]||(e[15]=e=>t.changeCropSize(e,!1,!0,0,1))},null,32),h("span",{class:"crop-point point3",onMousedown:e[16]||(e[16]=e=>t.changeCropSize(e,!0,!0,2,1)),onTouchstart:e[17]||(e[17]=e=>t.changeCropSize(e,!0,!0,2,1))},null,32),h("span",{class:"crop-point point4",onMousedown:e[18]||(e[18]=e=>t.changeCropSize(e,!0,!1,1,0)),onTouchstart:e[19]||(e[19]=e=>t.changeCropSize(e,!0,!1,1,0))},null,32),h("span",{class:"crop-point point5",onMousedown:e[20]||(e[20]=e=>t.changeCropSize(e,!0,!1,2,0)),onTouchstart:e[21]||(e[21]=e=>t.changeCropSize(e,!0,!1,2,0))},null,32),h("span",{class:"crop-point point6",onMousedown:e[22]||(e[22]=e=>t.changeCropSize(e,!0,!0,1,2)),onTouchstart:e[23]||(e[23]=e=>t.changeCropSize(e,!0,!0,1,2))},null,32),h("span",{class:"crop-point point7",onMousedown:e[24]||(e[24]=e=>t.changeCropSize(e,!1,!0,0,2)),onTouchstart:e[25]||(e[25]=e=>t.changeCropSize(e,!1,!0,0,2))},null,32),h("span",{class:"crop-point point8",onMousedown:e[26]||(e[26]=e=>t.changeCropSize(e,!0,!0,2,2)),onTouchstart:e[27]||(e[27]=e=>t.changeCropSize(e,!0,!0,2,2))},null,32)]))],4),[[r,t.cropping]])],544)}],["__scopeId","data-v-69939069"]]);var L="_upbtn_15vje_1",N="_uploadWarper_15vje_5",D="_bg_15vje_12",J="_btn_15vje_21",Q="_img_15vje_44",U="_btndiv_15vje_53",F="_wrapper_15vje_64",P=e({name:"o-cropper",components:{VueCropper:z},props:{hideInput:{type:Boolean,default:!1},option:{type:Object},onCancelTailor:{type:Function,default:()=>{}},getBase64Data:{type:Function,default:()=>{}},getBlob:{type:Function,default:()=>{}},getFile:{type:Function,default:()=>{}},imgOriginF:{type:Function,default:()=>{}}},emits:["chioseFile"],data:()=>({img:"",config:{ceilbutton:!1,outputSize:1,outputType:"png",info:!1,canScale:!0,autoCrop:!1,autoCropWidth:0,autoCropHeight:0,fixed:!0,fixedNumber:[1,1],full:!1,fixedBox:!0,canMove:!0,canMoveBox:!1,original:!1,centerBox:!0,high:!0,infoTrue:!1,maxImgSize:2e3,enlarge:1,mode:"100%",cancelButtonText:"取消",confirmButtonText:"确定",cancelButtonBackgroundColor:"#606266",confirmButtonBackgroundColor:"#ed594c",cancelButtonTextColor:"#ffffff",confirmButtonTextColor:"#ffffff"}}),mounted(){this.config=Object.assign(this.config,this.option)},methods:{addSlide(){if(null==document.getElementById("vertical")){const t=document.getElementsByClassName("cropper-crop-box")[0],e=document.createElement("div");e.id="vertical",e.style.width="1px",e.style.height="100%",e.style.top="0px",e.style.left="33%",e.style.position="absolute",e.style.backgroundColor="#fff",e.style.zIndex="522",e.style.opacity="0.5";const i=document.createElement("div");i.style.width="1px",i.style.height="100%",i.style.top="0px",i.style.right="33%",i.style.position="absolute",i.style.backgroundColor="#fff",i.style.zIndex="522",i.style.opacity="0.5";const o=document.createElement("div");o.style.width="100%",o.style.height="1px",o.style.top="33%",o.style.left="0px",o.style.position="absolute",o.style.backgroundColor="#fff",o.style.zIndex="522",o.style.opacity="0.5";const s=document.createElement("div");s.style.width="100%",s.style.height="1px",s.style.bottom="33%",s.style.left="0px",s.style.position="absolute",s.style.backgroundColor="#fff",s.style.zIndex="522",s.style.opacity="0.5";const r=document.createElement("div");r.style.width="30px",r.style.height="4px",r.style.top="-4px",r.style.left="-4px",r.style.position="absolute",r.style.backgroundColor="#fff",r.style.zIndex="522",r.style.opacity="1";const h=document.createElement("div");h.style.width="4px",h.style.height="30px",h.style.top="-4px",h.style.left="-4px",h.style.position="absolute",h.style.backgroundColor="#fff",h.style.zIndex="522",h.style.opacity="1";const a=document.createElement("div");a.style.width="30px",a.style.height="4px",a.style.top="-4px",a.style.right="-4px",a.style.position="absolute",a.style.backgroundColor="#fff",a.style.zIndex="522",a.style.opacity="1";const n=document.createElement("div");n.style.width="4px",n.style.height="30px",n.style.top="-4px",n.style.right="-4px",n.style.position="absolute",n.style.backgroundColor="#fff",n.style.zIndex="522",n.style.opacity="1";const c=document.createElement("div");c.style.width="30px",c.style.height="4px",c.style.bottom="-4px",c.style.left="-4px",c.style.position="absolute",c.style.backgroundColor="#fff",c.style.zIndex="522",c.style.opacity="1";const l=document.createElement("div");l.style.width="4px",l.style.height="30px",l.style.bottom="-4px",l.style.left="-4px",l.style.position="absolute",l.style.backgroundColor="#fff",l.style.zIndex="522",l.style.opacity="1";const p=document.createElement("div");p.style.width="30px",p.style.height="4px",p.style.bottom="-4px",p.style.right="-4px",p.style.position="absolute",p.style.backgroundColor="#fff",p.style.zIndex="522",p.style.opacity="1";const d=document.createElement("div");d.style.width="4px",d.style.height="30px",d.style.bottom="-4px",d.style.right="-4px",d.style.position="absolute",d.style.backgroundColor="#fff",d.style.zIndex="522",d.style.opacity="1",t.appendChild(e),t.appendChild(i),t.appendChild(o),t.appendChild(s),t.appendChild(r),t.appendChild(h),t.appendChild(a),t.appendChild(n),t.appendChild(c),t.appendChild(l),t.appendChild(p),t.appendChild(d)}},onLoadImg:t=>new Promise((function(e,i){const o=new FileReader;o.readAsDataURL(t),o.onload=t=>{e(t.target.result)}})),loadFile(t){if(!(t instanceof File))throw new Error("Arguments file is not File");this.onLoadImg(t).then((t=>{this.img=t,setTimeout((()=>{this.config.autoCrop=!0,this.addSlide()}),10)}))},loadBase64(t){if("string"!=typeof t)throw new Error("Arguments base64 is not string");const e=t.split(",");if(!/^data:image\/(.*?);base64$/.test(e[0]))throw new Error("Arguments base64 MIME is not image/*");if(!/^[\/]?([\da-zA-Z]+[\/+]+)*[\da-zA-Z]+([+=]{1,2}|[\/])?$/.test(e[1]))throw new Error("Not standard base64");this.img=t,setTimeout((()=>{this.config.autoCrop=!0,this.addSlide()}),10)},rotating(t){this.$refs.cropper.rotateRight()},canceltailor(){this.img="",this.onCancelTailor()},tailoring(){this.$refs.cropper.getCropData((t=>{this.getBase64Data(t),this.getBlob(t),this.img="",this.config.autoCrop=!1})),this.$refs.cropper.getCropBlob((t=>{this.getBase64Data(t),this.getBlob(t);const e={jpeg:"jpg",png:"png",webp:"webp"}[this.config.outputType],i=(new Date).getTime(),o=new File([t],`${i}.${e}`,{type:`image/${this.config.outputType}`});this.getFile(o),this.img="",this.config.autoCrop=!1}))},async upPhoto(t){let e=t.target.files[0];this.$refs.headInput.value=null,null!=e&&(this.imgOriginF(e),this.img=await this.onLoadImg(e),this.config.autoCrop=!0,setTimeout((()=>{this.addSlide()}),20))},onCropMoving(t){},onImgMoving(t){},startChiose(){this.$refs.headInput.click()}},render(){return p("div",{class:[L,N]},[this.hideInput,this.hideInput?null:p("input",{style:"opacity: 0;",class:L,type:"file",accept:"image/*",onChange:this.upPhoto,ref:"headInput"},null),""!=this.img?p("div",{class:D},[this.config.ceilbutton?p("div",{class:U},[p("div",{class:J,onClick:this.canceltailor,style:{backgroundColor:this.config.cancelButtonBackgroundColor,color:this.config.cancelButtonTextColor}},[this.config.cancelButtonText]),p("div",{class:Q,onClick:this.rotating},null),p("div",{class:J,onClick:this.tailoring,style:{backgroundColor:this.config.confirmButtonBackgroundColor,color:this.config.confirmButtonTextColor}},[this.config.confirmButtonText])]):null,p("div",{class:F},[p(z,{ref:"cropper",img:this.img,outputSize:this.config.outputSize,outputType:this.config.outputType,info:this.config.info,canScale:this.config.canScale,autoCrop:this.config.autoCrop,autoCropWidth:this.config.autoCropWidth,autoCropHeight:this.config.autoCropHeight,fixedBox:this.config.fixedBox,fixed:this.config.fixed,fixedNumber:this.config.fixedNumber,full:this.config.full,canMove:this.config.canMove,canMoveBox:this.config.canMoveBox,original:this.config.original,centerBox:this.config.centerBox,high:this.config.high,infoTrue:this.config.infoTrue,maxImgSize:this.config.maxImgSize,enlarge:this.config.enlarge,mode:this.config.mode,onCropMoving:this.onCropMoving,onImgMoving:this.onImgMoving},null)]),this.config.ceilbutton?null:p("div",{class:U},[p("div",{class:J,onClick:this.canceltailor,style:{backgroundColor:this.config.cancelButtonBackgroundColor,color:this.config.cancelButtonTextColor}},[this.config.cancelButtonText]),p("div",{class:Q,onClick:this.rotating},null),p("div",{class:J,onClick:this.tailoring,style:{backgroundColor:this.config.confirmButtonBackgroundColor,color:this.config.confirmButtonTextColor}},[this.config.confirmButtonText])])]):null])}}),V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAMAAAB6xg5AAAAAAXNSR0IArs4c6QAAAotQTFRFAAAA////gICA////qqqq////v7+/////zMzM////1dXV29vb39/f4+PjzMzM5ubm6Ojo1dXV29vb39/f5ubm3t7e4ODg4uLi4+Pj5OTk5eXl3d3d3t7e39/f4ODg2tra4eHh29vb4+Pj3d3d4+Pj3d3d3t7e39/f4ODg4eHh4eHh3d3d3t7e3t7e5OTk39/f4ODg3d3d4uLi4eHh4uLi3t7e4uLi39/f3Nzc4ODg3d3d39/f4ODg3d3d4ODg3d3d4eHh3t7e39/f39/f3Nzc4ODg3d3d4ODg3t7e3t7e39/f39/f3d3d4ODg3t7e39/f4ODg4ODg3t7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Hebt7W2E4BZAPEN4tmXg9Dd1TuZ7PUtxcJPrTxuGS19zlDZMIAMbRUs9X/WM5PwiCUlqoGKJT1kzSAI+IZcyxMkveTV3rQpRaVljBRx/aVOZaWHI0A2KsAQA660efgJd3WXt9mOxaHUAFN4ubarVN8me0QnfkO7x2VZwsKT6zpBLi6cwBR+8clOv4TXONreL2gE6DzkgDs8nCYcP2WDlWA1uVOj8Q2yDwgWQqwWOSZLbRg6hzAeTwkgCcVkGXbTjPWbVs/y1a2mW0/wEoc4KEQRANU90C5Z4aR3WOb2Bfr9givo0FnncnGeIANNMACdrmX8cKDgahMZ+fBOlGhMT4A/kYK4AnuLa97dlIFLlMoZ2dSj5eAKkIBrEUx07GrqKVy7yItzBCZbSI0wDhG6+s4nq39GXGUoFIc0IYDmiCoXcGILiYlgFrUdgoA+1B9rgTwFLV8AaAI1btKAG9RyxEADqFaoQRg6sJoqwSADKz8qQRA8L/HcIujOIYRfRV1gSxD8biDdhG1RcoAV1H0+24n/RqB2mllAEs4quPreOV3FCrB7coA5BorB97g7reDWcHp54u6D+K4xISs4vvXd0zmbrOJYoApXGQjhdQrB5BPY538Qe+JCgD5M1fgn2YkqgDEcizQzj4k9x9RCSDk7+Gp7C70jD7QIl4iDWAYz66cvFzZQs3LAuTCBmjR6Ld05wA1GgFfbd9xrkbAKb7HGgHz+Tbf1OQvc+EBvh80+L/42U3aoHLV/ocGh1F3S7jVrsJtvrO0q9Nzcx88Umn46R2c/wEA2LVBpTpQcQAAAABJRU5ErkJggg==";t("O",e({name:"col-upload",props:{modelValue:String,tips:{type:String,default:"点击上传"},deletable:{type:Boolean,default:!0},native:{type:Boolean,default:!1},cropper:{type:Boolean,default:!1},options:{type:Object,default:{}},uploadSize:{type:Number,default:5},onUploadChange:{type:Function,default:t=>{}},bucket:{type:String,default:"gyt"},path:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{nativeUpload(){this.disabled||d({api:"chooseFile",content:{type:"img",max:1,bucket:this.bucket,path:this.path}},(t=>{console.log(t,"fileUrl"),this.$emit("update:modelValue",t.fileUrl)}))},beforeRead(t){console.log(t,"beforeRead");return!!(t.size/1024/1024<this.uploadSize)||(u(`上传文件大小不能超过 ${this.uploadSize}MB`),!1)},beforeDelete:(t,e)=>!0,async afterRead(t,e){try{t.status="uploading",t.message="上传中...",await this.uploadFile(t.file)}catch(i){console.log(i,"2323"),g()}},onClose(t){this.$emit("update:modelValue",null),this.onUploadChange(),t.stopPropagation()},async getFile(t){try{await this.uploadFile(t)}catch{}},async uploadFile(t){try{"SCHOOL"===f.platformType?f.platformApi="/api-school":"TEACHER"===f.platformType?f.platformApi="/api-teacher":"STUDENT"===f.platformType&&(f.platformApi="/api-student");const e=f.platformApi+"/open/getUploadSign",i=t.name||"";console.log(this.path);const o=this.path+"/"+(i&&i.replace(/ /gi,"_")),s=(new Date).getTime()+o;console.log(t);const r=await m.post(e,{data:{filename:o,bucketName:this.bucket,postData:{filename:o,acl:"public-read",key:s,unknowValueField:[]}}});v({message:"加载中...",forbidClick:!0,loadingType:"spinner",duration:0});const h={policy:r.data.policy,signature:r.data.signature,key:s,KSSAccessKeyId:r.data.kssAccessKeyId,acl:"public-read",name:o},a=new FormData;for(const t in h)a.append(t,h[t]);a.append("file",t,o),await w(y(this.bucket),{method:"POST",data:a}),console.log(y(this.bucket)+s);const n=y(this.bucket)+s;g(),this.$emit("update:modelValue",n),this.onUploadChange(n)}catch(e){console.log(e,"uploadFile")}},startUpload(){var t;null===(t=this.$refs.uploaderRef)||void 0===t||t.startChiose()}},render(){return C((()=>this.modelValue)),p("div",{class:[k,"oUpload"]},[this.modelValue&&this.deletable?p(x,{name:"cross",onClick:this.onClose,class:S},null):null,this.cropper&&!this.native?p("div",{class:O},[this.modelValue?p(b,{fit:"cover",position:"center",class:M,src:this.modelValue},null):p("div",{class:I},[p(x,{name:V,size:"32"},null),p("p",{class:B},[this.tips])]),p(P,{ref:"uploaderRef",option:this.options,getFile:this.getFile},null)]):this.native?p("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},onClick:this.nativeUpload},[this.modelValue?p(b,{fit:"cover",position:"center",class:M,src:this.modelValue},null):p("div",{class:I},[p(x,{name:V,size:"32"},null),p("p",{class:B},[this.tips])])]):p(A,{afterRead:this.afterRead,beforeRead:this.beforeRead,beforeDelete:this.beforeDelete,disabled:this.disabled},{default:()=>this.modelValue?p(b,{fit:"cover",position:"center",class:M,src:this.modelValue},null):p("div",{class:I},[p(x,{name:V,size:"32"},null),p("p",{class:B},[this.tips])])})])}}))}}}))}();
|