"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8237],{38237:function(e,t,i){i.r(t),i.d(t,{default:function(){return I}});var o=i(66252),c=i(3577),r=i(49963);const a=e=>((0,o.dD)("data-v-a0694634"),e=e(),(0,o.Cn)(),e),p={ref:"cutPrictureModal"},s={class:"collection_title"},n={class:"collection_title_text"},l={class:"collection_modal_body"},u={class:"cut_picture_left"},_={class:"cut_picture_body"},d={class:"cur_picture_opterate"},h=a((()=>(0,o._)("span",{class:"icon iconfont icon-chexiao operate_icon"},null,-1))),v=[h],f=a((()=>(0,o._)("span",{class:"icon iconfont icon-chexiao operate_icon icon_chexiao_sec"},null,-1))),m=[f],g=a((()=>(0,o._)("span",{class:"operate_icon icon_font"},"-",-1))),C=[g],w=a((()=>(0,o._)("span",{class:"operate_icon icon_font"},"+",-1))),x=[w],b=a((()=>(0,o._)("span",{class:"icon iconfont icon-shuaxin operate_icon"},null,-1))),k=[b],M={class:"cut_picture_right"},y={class:"cur_picture_right_header"},R=a((()=>(0,o._)("div",{class:"review_logo icon iconfont icon-yulan"},null,-1))),$={class:"cut_picture_review_item"},P=["src"],z=a((()=>(0,o._)("i",{class:"fi fi-sr-check-circle"},null,-1))),S=[z];function T(e,t,i,a,h,f){const g=(0,o.up)("VueCropper"),w=(0,o.up)("a-modal");return(0,o.wg)(),(0,o.iD)("div",p,[(0,o.Wm)(w,{class:"generalModel cut_pricture_modal",visible:e.cutPicuterModal,"onUpdate:visible":t[8]||(t[8]=t=>e.cutPicuterModal=t),footer:null,"get-container":()=>e.$refs.cutPrictureModal,width:"78%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,zIndex:999999,mask:!1},{default:(0,o.w5)((()=>[(0,o._)("div",s,[(0,o._)("div",n,[(0,o._)("div",null,(0,c.zw)(e.$t("Cropper.Cutpicture")),1)]),(0,o._)("div",{class:"header_right_block",onClick:t[1]||(t[1]=(0,r.iM)((()=>{}),["stop"]))},[(0,o._)("div",{class:"header_cancel_button",onClick:t[0]||(t[0]=(0,r.iM)((t=>e.cancleCropper()),["stop"]))},(0,c.zw)(e.$t("Cropper.Cancel")),1)])]),(0,o._)("div",l,[(0,o._)("div",u,[(0,o._)("div",_,[(0,o.Wm)(g,{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,movable:!0,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,o._)("div",d,[(0,o._)("div",{class:"cur_picture_opterate_item",onClick:t[2]||(t[2]=t=>e.rotateLeft())},v),(0,o._)("div",{class:"cur_picture_opterate_item",onClick:t[3]||(t[3]=t=>e.rotateRight())},m),(0,o._)("div",{class:"cur_picture_opterate_item",onClick:t[4]||(t[4]=t=>e.changeScale(-.1))},C),(0,o._)("div",{class:"cur_picture_opterate_item",onClick:t[5]||(t[5]=t=>e.changeScale(.1))},x),(0,o._)("div",{class:"cur_picture_opterate_item",onClick:t[6]||(t[6]=t=>e.refreshCrop())},k)])]),(0,o._)("div",M,[(0,o._)("div",y,[R,(0,o._)("div",null,(0,c.zw)(e.$t("Cropper.CropPreview")),1)]),(0,o._)("div",{class:"cut_picture_review_block",style:(0,c.j5)({width:e.previews.w+"px",height:e.previews.h+"px"})},[(0,o._)("div",$,[(0,o._)("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,o._)("div",{style:(0,c.j5)(e.previews.div)},[(0,o._)("img",{class:"previews_image",style:(0,c.j5)(e.previews.img),src:e.previews.url},null,12,P)],4)],6)]),(0,o._)("div",{class:"next_step_button",onClick:t[7]||(t[7]=(0,r.iM)((t=>e.finishCropper()),["stop"]))},S)],4)])])])),_:1},8,["visible","get-container"])],512)}var B=i(3087),D=i(47332),W=(0,o.aZ)({props:["cropperFileData","isUpload","isRound"],components:{VueCropper:B.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 t=this.$refs.cropper;t.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 t=(0,D._x)(e,this.cropperFileData.name);this.$emit("handleCropperSuccess",{file:t,fileData:this.cropperFileData,base64:e})}))},closeCropper(){this.cutPicuterModal=!1,this.option.img=""},cancleCropper(){this.cutPicuterModal=!1,this.option.img="",this.$emit("closeCropper")}}}),j=i(83744);const F=(0,j.Z)(W,[["render",T],["__scopeId","data-v-a0694634"]]);var I=F}}]);