import{P as F}from"./index.566277e5.js";import{aP as A,a as I,cB as y,r as p,l as B,aQ as i,o as n,aR as E,p as s,j as r,i as u,h as c,aS as l,t as h}from"./index.0d073eaa.js";import{C as w,a as D}from"./index.f4f1f088.js";import{u as k}from"./upload.1645cad7.js";import{h as P}from"./header.d801b988.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./index.81899e8a.js";import"./useFlexGapSupport.474c31b7.js";import"./index.2b5ea4f6.js";import"./_baseIteratee.3919e7cf.js";import"./get.49a42f2e.js";import"./DeleteOutlined.247d1f35.js";import"./index.a8c197b8.js";import"./useRefs.e81831e2.js";import"./Form.48352728.js";import"./Col.a2eadc78.js";import"./index.c05f9254.js";import"./FullscreenOutlined.401a7bcd.js";import"./base64Conver.08b9f4ec.js";const S=I({components:{PageWrapper:F,CropperImage:w,CollapseContainer:y,CropperAvatar:D},setup(){var t;const e=p(""),d=p(""),m=p(""),C=p(""),f=B(),g=p(((t=f.getUserInfo)==null?void 0:t.avatar)||"");function _({imgBase64:a,imgInfo:v}){e.value=v,d.value=a}function o({imgBase64:a,imgInfo:v}){m.value=v,C.value=a}return{img:P,info:e,circleInfo:m,cropperImg:d,circleImg:C,handleCropend:_,handleCircleCropend:o,avatar:g,uploadApi:k}}}),$={class:"container p-4"},N={class:"cropper-container mr-10"},V=["src"],W={key:0},U={class:"container p-4"},j={class:"cropper-container mr-10"},Q=["src"],R={key:0};function b(e,d,m,C,f,g){const _=i("CropperAvatar"),o=i("CollapseContainer"),t=i("CropperImage"),a=i("PageWrapper");return n(),E(a,{title:"\u56FE\u7247\u88C1\u526A\u793A\u4F8B",content:"\u9700\u8981\u5F00\u542F\u6D4B\u8BD5\u63A5\u53E3\u670D\u52A1\u624D\u80FD\u8FDB\u884C\u4E0A\u4F20\u6D4B\u8BD5\uFF01"},{default:s(()=>[r(o,{title:"\u5934\u50CF\u88C1\u526A"},{default:s(()=>[r(_,{uploadApi:e.uploadApi,value:e.avatar},null,8,["uploadApi","value"])]),_:1}),r(o,{title:"\u77E9\u5F62\u88C1\u526A",class:"my-4"},{default:s(()=>[u("div",$,[u("div",N,[r(t,{ref:"refCropper",src:e.img,onCropend:e.handleCropend,style:{width:"40vw"}},null,8,["src","onCropend"])]),e.cropperImg?(n(),c("img",{key:0,src:e.cropperImg,class:"croppered",alt:""},null,8,V)):l("",!0)]),e.cropperImg?(n(),c("p",W,"\u88C1\u526A\u540E\u56FE\u7247\u4FE1\u606F\uFF1A"+h(e.info),1)):l("",!0)]),_:1}),r(o,{title:"\u5706\u5F62\u88C1\u526A"},{default:s(()=>[u("div",U,[u("div",j,[r(t,{ref:"refCropper",src:e.img,onCropend:e.handleCircleCropend,style:{width:"40vw"},circled:""},null,8,["src","onCropend"])]),e.circleImg?(n(),c("img",{key:0,src:e.circleImg,class:"croppered"},null,8,Q)):l("",!0)]),e.circleImg?(n(),c("p",R,"\u88C1\u526A\u540E\u56FE\u7247\u4FE1\u606F\uFF1A"+h(e.circleInfo),1)):l("",!0)]),_:1})]),_:1})}var me=A(S,[["render",b],["__scopeId","data-v-9d983438"]]);export{me as default};
