import{n as a}from"./AlertComponent-CZRUfFVd.js";import{m as i}from"./mixins-C42ajhct.js";const d={props:["embed_code_modal","embed_code","online_location"],data(){return{}},methods:{close:function(){this.$parent.embed_code_modal=0,this.$parent.embed_code=null}},mounted(){}};var n=function(){var s=this,t=s._self._c;return t("div",{staticClass:"custom_model"},[s.embed_code_modal>0?t("div",{staticClass:"modal show"},[t("div",{staticClass:"modal-dialog modal-lg w-100"},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-header"},[t("h1",{staticClass:"modal-title fs-5"},[s._v(s._s(s.trans("em.online_event"))+" ")]),t("button",{staticClass:"btn btn-sm bg-danger text-white close",attrs:{type:"button"},on:{click:function(e){return s.close()}}},[t("span",{attrs:{"aria-hidden":"true"}},[s._v("×")])])]),t("div",{staticClass:"modal-body"},[t("div",{staticClass:"container-fluid"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("div",{staticClass:"iframe-full",domProps:{innerHTML:s._s(s.embed_code)}})])]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("div",{domProps:{innerHTML:s._s(s.online_location)}})])])])])])])]):s._e()])},r=[],l=a(d,n,r,!1,null,null);const f=l.exports,c={props:["organizer_id","is_qrcode","qrcode_booking_id","order_number","booking"],mixins:[i],data(){return{qrcode_file:null}},methods:{close:function(){this.$parent.is_qrcode=0,this.$parent.qrcode_booking_id=0},getQrcode(o){let s=route("get_qrcode");axios.post(s,{booking_id:this.qrcode_booking_id}).then(t=>{t.data.status&&(this.qrcode_file=t.data.qrcode_file)}).catch(t=>{let e=Vue.helpers.axiosErrors(t);e.length&&this.serverValidate(e)})}},mounted(){this.getQrcode()}};var _=function(){var s=this,t=s._self._c;return t("div",{staticClass:"custom_model z-3"},[s.is_qrcode>0&&s.qrcode_booking_id>0?t("div",{staticClass:"modal show"},[t("div",{staticClass:"modal-dialog modal-lg w-100"},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-header"},[t("h1",{staticClass:"modal-title fs-5"},[s._v(s._s(s.booking.ticket_title)+" "+s._s(" x "+s.booking.quantity))]),t("button",{staticClass:"btn btn-sm bg-danger text-white close",attrs:{type:"button"},on:{click:function(e){return s.close()}}},[t("span",{attrs:{"aria-hidden":"true"}},[s._v("×")])])]),t("div",{staticClass:"modal-body"},[t("p",{staticClass:"subtitle text-center"},[t("strong",[s._v("#"+s._s(s.order_number))])]),t("br"),t("div",{staticClass:"qrcode-bg-wrapper"},[t("img",{staticClass:"mx-auto d-block img-fluid",attrs:{src:s.getImageUrl(s.qrcode_file)}})])])])])]):s._e()])},m=[],v=a(c,_,m,!1,null,"2a7e9b86");const p=v.exports;export{f as E,p as Q};
