import{h as o}from"./moment-a9aaa855.js";import{M as s}from"./app-9daf7b25.js";const r={components:{Modal:s},filters:{formatDate(t,a="YYYY-MM-DD"){return o(t).format(a)},formatDateAddDays(t,a,e="YYYY-MM-DD"){return o(t).add(a,"days").format(e)}},data(){return{modalData:{}}},methods:{openModal(t={}){this.$refs.modal.show(),this.modalData=t,this.$emit("modalOpened")},closeModal(){this.$refs.modal.hide(),this.$emit("modalClosed")},submit(){this.closeModal(),this.$emit("submit")}}};export{r as M};