"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[2859],{22859:function(e,o,t){t.r(o),t.d(o,{default:function(){return F}});var i=t(66252),c=t(3577),r=t(49963);const a=e=>((0,i.dD)("data-v-69b5294b"),e=e(),(0,i.Cn)(),e),p={class:"collection_title"},s={class:"collection_title_text"},n={class:"collection_modal_body"},l={class:"cut_picture_left"},u={class:"cut_picture_body"},_={class:"cur_picture_opterate"},d=a((()=>(0,i._)("span",{class:"icon iconfont icon-chexiao operate_icon"},null,-1))),h=[d],v=a((()=>(0,i._)("span",{class:"icon iconfont icon-chexiao operate_icon icon_chexiao_sec"},null,-1))),m=[v],f=a((()=>(0,i._)("span",{class:"operate_icon icon_font"},"-",-1))),C=[f],g=a((()=>(0,i._)("span",{class:"operate_icon icon_font"},"+",-1))),w=[g],x=a((()=>(0,i._)("span",{class:"icon iconfont icon-shuaxin operate_icon"},null,-1))),b=[x],k={class:"cut_picture_right"},M={class:"cur_picture_right_header"},y=a((()=>(0,i._)("div",{class:"review_logo icon iconfont icon-yulan"},null,-1))),R={class:"cut_picture_review_block"},$={class:"cut_picture_review_item"},z=["src"];function S(e,o,t,a,d,v){const f=(0,i.up)("VueCropper"),g=(0,i.up)("a-modal");return(0,i.wg)(),(0,i.j4)(g,{class:"modal_component cut_pricture_modal",visible:e.cutPicuterModal,"onUpdate:visible":o[8]||(o[8]=o=>e.cutPicuterModal=o),footer:null,width:"78%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,zIndex:999999,mask:!1},{default:(0,i.w5)((()=>[(0,i._)("div",p,[(0,i._)("div",s,[(0,i._)("div",null,(0,c.zw)(e.$t("Cropper.Cutpicture")),1)]),(0,i._)("div",{class:"header_right_block",onClick:o[2]||(o[2]=(0,r.iM)((()=>{}),["stop"]))},[(0,i._)("div",{class:"next_step_button",onClick:o[0]||(o[0]=(0,r.iM)((o=>e.finishCropper()),["stop"]))},(0,c.zw)(e.$t("Cropper.Finish")),1),(0,i._)("div",{class:"header_cancel_button",onClick:o[1]||(o[1]=(0,r.iM)((o=>e.cancleCropper()),["stop"]))},(0,c.zw)(e.$t("Cropper.Cancel")),1)])]),(0,i._)("div",n,[(0,i._)("div",l,[(0,i._)("div",u,[(0,i.Wm)(f,{ref:"cropper",original:e.option.original,img:e.option.img,outputSize:e.option.size,outputType:e.option.outputType,"auto-crop":e.option.autoCrop,fixedBox:!e.isRound,fixed:e.isRound,"auto-crop-width":e.option.autoCropWidth,"auto-crop-height":e.option.autoCropWidth,"center-box":e.option.centerBox,"can-move":e.option.canMove,"can-move-box":e.option.canMoveBox,onRealTime:e.realTime},null,8,["original","img","outputSize","outputType","auto-crop","fixedBox","fixed","auto-crop-width","auto-crop-height","center-box","can-move","can-move-box","onRealTime"])]),(0,i._)("div",_,[(0,i._)("div",{class:"cur_picture_opterate_item",onClick:o[3]||(o[3]=o=>e.rotateLeft())},h),(0,i._)("div",{class:"cur_picture_opterate_item",onClick:o[4]||(o[4]=o=>e.rotateRight())},m),(0,i._)("div",{class:"cur_picture_opterate_item",onClick:o[5]||(o[5]=o=>e.changeScale(-.1))},C),(0,i._)("div",{class:"cur_picture_opterate_item",onClick:o[6]||(o[6]=o=>e.changeScale(.1))},w),(0,i._)("div",{class:"cur_picture_opterate_item",onClick:o[7]||(o[7]=o=>e.refreshCrop())},b)])]),(0,i._)("div",k,[(0,i._)("div",M,[y,(0,i._)("div",null,(0,c.zw)(e.$t("Cropper.CropPreview")),1)]),(0,i._)("div",R,[(0,i._)("div",$,[(0,i._)("div",{class:(0,c.C_)(["cut_picture_review_content",{active:e.isRound}]),style:(0,c.j5)({width:e.previews.w+"px",height:e.previews.h+"px",overflow:"hidden"})},[(0,i._)("div",{style:(0,c.j5)(e.previews.div)},[(0,i._)("img",{class:"previews_image",style:(0,c.j5)(e.previews.img),src:e.previews.url},null,12,z)],4)],6)])])])])])),_:1},8,["visible"])}var T=t(3087),B=t(47332),P=(0,i.aZ)({props:["cropperFileData","isUpload","isRound"],components:{VueCropper:T.AK},setup(){},data(e){return{cutPicuterModal:!1,option:{original:!1,img:"",size:1,full:!1,outputType:"png",autoCrop:!0,autoCropWidth:e.isRound?100:360,autoCropHeight:e.isRound?100:360,max:99999,centerBox:!0,canMove:!0,canMoveBox:!0,fixedBox:!1},previews:{}}},mounted(){},methods:{rotateLeft(){let e=this.$refs.cropper;e.rotateLeft()},rotateRight(){let e=this.$refs.cropper;e.rotateRight()},refreshCrop(){let e=this.$refs.cropper;e.refresh()},changeScale(e){e=e||1;let o=this.$refs.cropper;o.changeScale(e)},realTime(e){this.previews=e},getOptionImg(e){this.option.img=e},changeShowModal(e){this.cutPicuterModal=e},finishCropper(){let e=this.$refs.cropper;e.getCropData((e=>{let o=(0,B._x)(e,this.cropperFileData.name);this.$emit("handleCropperSuccess",{file:o,fileData:this.cropperFileData,base64:e})}))},closeCropper(){this.cutPicuterModal=!1,this.option.img=""},cancleCropper(){this.cutPicuterModal=!1,this.option.img="",this.$emit("closeCropper")}}}),D=t(83744);const j=(0,D.Z)(P,[["render",S],["__scopeId","data-v-69b5294b"]]);var F=j}}]);