import{r as o,d as t,h as i}from"./p-03169580.js";const n="floodteam-modal-cropper ion-title{text-transform:capitalize !important}floodteam-modal-cropper floodteam-photo-cropper>div{max-height:300px}";let l=class{constructor(i){o(this,i);this.floodteamCropSave=t(this,"floodteamCropSave",7);this.floodteamCropDismiss=t(this,"floodteamCropDismiss",7)}async closeModal(){const o=document.querySelector("ion-modal");if(o){o.dismiss()}this.floodteamCropDismiss.emit({})}async save(){const o=document.querySelector("ion-modal");if(o){o.dismiss()}this.floodteamCropSave.emit({encodedContent:await this.photoCropperEl.getImageData()})}render(){return[i("ion-header",null,i("ion-toolbar",{color:"dark"},i("ion-buttons",{slot:"start"},i("ion-button",{fill:"clear",color:"light"},i("ion-icon",{slot:"icon-only",name:"create"}))),i("ion-title",null,"Crop Image"),i("ion-buttons",{slot:"end"},i("ion-button",{onClick:()=>this.closeModal(),fill:"clear",color:"primary"},"Cancel")))),i("ion-content",null,i("floodteam-photo-cropper",{ref:o=>this.photoCropperEl=o,src:this.src}),i("ion-button",{class:"ion-float-right ion-margin-end",color:"success",onClick:()=>this.save()},"Save"))]}};l.style=n;export{l as floodteam_modal_cropper};
//# sourceMappingURL=p-d7cf0138.entry.js.map