File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/public/js/chunks/amelia-booking-events-973e604c7001c8d15aa4.js
Back
wpJsonpAmeliaBookingPlugin([9],{1039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(805),i=n(968),r=n(778),a=n(338),s=n(969),l=n.n(s),c=n(1040),u=n.n(c),d=n(1043),p=n.n(d),f=n(701),h=n(702),m=n(711),v=n.n(m),g=n(697),b=n(696),y=n(0),_=n.n(y),k=n(700),w=n(729),x=n.n(w),C=n(806),E=n.n(C),T=n(748),S=n(809),O=n.n(S),P=n(816),$=n.n(P),A=n(736),N=n.n(A),D=n(741),L=n.n(D);t.default={mixins:[o.a,h.a,b.a,a.a,f.a,k.a,g.a,i.a,r.a,T.a],data:function(){return{paymentLinksEnabled:null,exportAction:"",exportParams:{fields:[{label:this.$root.labels.first_name,value:"firstName",checked:!0},{label:this.$root.labels.last_name,value:"lastName",checked:!0},{label:this.$root.labels.email,value:"email",checked:!0},{label:this.$root.labels.phone,value:"phone",checked:!0},{label:this.$root.labels.gender,value:"gender",checked:!0},{label:this.$root.labels.date_of_birth,value:"birthday",checked:!0},{label:this.$root.labels.payment_amount,value:"paymentAmount",checked:!0},{label:this.$root.labels.payment_status,value:"paymentStatus",checked:!0},{label:this.$root.labels.payment_method,value:"paymentMethod",checked:!0},{label:this.$root.labels.customer_note,value:"note",checked:!0},{label:this.$root.labels.event_book_persons,value:"persons",checked:!0},{label:this.$root.labels.event_book_status,value:"status",checked:!0},{label:this.$root.labels.event_book_tickets,value:"tickets",checked:!0},{label:this.$root.labels.custom_fields,value:"customFields",checked:!0}]},dialogExport:!1,event:null,eventBookings:null,eventBooking:null,clonedEventBooking:null,updateStatusDisabled:!1,allEventsChecked:!1,allDateEventsChecked:{},eventsDay:{},customer:null,customerCreatedCount:0,dialogEvent:!1,dialogCustomer:!1,dialogAttendees:!1,dialogEventCustomFields:!1,fetched:!1,fetchedFiltered:!1,form:new v.a,params:{dates:this.getDatePickerInitRange(),search:""},activeTab:"event_details",showDeleteConfirmation:!1,timer:null,toaster:!1,count:{success:0,error:0},dialogTranslate:!1,dialogTranslateType:"name",eventTickets:null,languagesData:[]}},created:function(){v.a.defaults.axios=this.$http;var e=this.getUrlQueryParams(window.location.href);this.params.dates="dateFrom"in e&&"dateTo"in e?{start:_()(e.dateFrom).toDate(),end:_()(e.dateTo).toDate()}:this.getDatePickerInitRange(),this.getEventOptions(!0),this.setInitialCustomers()},mounted:function(){this.$root.settings.payments.wc&&this.$root.settings.payments.wc.enabled&&this.exportParams.fields.splice(8,0,{label:this.$root.labels.wc_order_id,value:"wcOrderId",checked:!0})},methods:{getEventOrganizerName:function(e){var t="";if(e){var n=this.options.entities.employees.filter(function(t){return t.id===e});t=n.length?n[0].firstName+" "+n[0].lastName:""}return t||"/"},ticketsTooltipContent:function(e){for(var t="Tickets: ",n=0;n<e.length;n++)t+=0!==e[n].sold?e[n].name+" x "+e[n].sold+(e.length-1!==n?", ":""):"";return","===t.charAt(t.length-2)&&(t=t.slice(0,t.length-2)),"Tickets: "!==t?t:""},getEventMaxCapacity:function(e){var t=0;return e.forEach(function(e){t+=e.spots}),t},canManage:function(){return"customer"!==this.$root.settings.role&&("admin"===this.$root.settings.role||"manager"===this.$root.settings.role||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents)},updateAttendeesCallback:function(){this.getEvents()},duplicateEventCallback:function(e){var t=this;this.event=e,this.event.id=0,this.event.duplicated=!0,this.event.periods.forEach(function(e){e.googleCalendarEventId=null,e.googleMeetUrl=null,e.outlookCalendarEventId=null}),setTimeout(function(){t.dialogEvent=!0},300)},saveAttendeeCallback:function(e){"bookingStatusChanged"in e&&e.booking.persons===this.clonedEventBooking.persons||this.$http.post(this.$root.getAjaxUrl+"/bookings/success/"+e.booking.id,{type:"event",appointmentStatusChanged:e.appointmentStatusChanged,paymentId:"paymentId"in e&&e.paymentId?e.paymentId:null,customer:e.booking.customer}).then(function(e){}).catch(function(e){}),this.getEvents(),this.getEvent(e.event.id)},showDialogNewCustomer:function(){this.customer=this.getInitCustomerObject(),this.dialogCustomer=!0},saveCustomerCallback:function(e){delete e.user.birthday,this.options.entities.customers.push(e.user),this.customerCreatedCount++},saveEventCallback:function(){"provider"!==this.$root.settings.role&&this.$http.post(this.$root.getAjaxUrl+"/settings",{usedLanguages:this.options.entities.settings.general.usedLanguages}).catch(function(e){console.log(e)}),this.getEvents()},changeRange:function(){this.setDatePickerSelectedDaysCount(this.params.dates.start,this.params.dates.end),this.changeFilter()},changeFilter:function(){this.getEvents()},getEventOptions:function(e){var t=this;this.options.fetched=!1,this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["employees","settings"]})}).then(function(n){"customer"!==t.$root.settings.role&&(t.options.entities.settings.general.usedLanguages=n.data.data.settings.general.usedLanguages),t.options.entities.locations=n.data.data.locations,t.options.entities.employees=n.data.data.employees,t.options.entities.customFields=n.data.data.customFields,t.options.entities.customers=n.data.data.customers,t.options.entities.coupons=n.data.data.coupons,t.languagesData=n.data.data.settings.languages,t.fetched=!0,t.options.fetched=!0;var o=t;n.data.data.tags.forEach(function(e){-1===o.options.entities.tags.indexOf(e.name)&&o.options.entities.tags.push(e.name)}),e&&t.getEvents()}).catch(function(e){console.log(e.message),t.fetched=!0,t.options.fetched=!0})},getEvents:function(){var e=this;this.fetchedFiltered=!1;var t=JSON.parse(JSON.stringify(this.params)),n=[];t.dates&&(t.dates.start&&n.push(_()(t.dates.start).format("YYYY-MM-DD")),t.dates.end&&n.push(_()(t.dates.end).format("YYYY-MM-DD")),t.dates=n),Object.keys(t).forEach(function(e){return!t[e]&&0!==t[e]&&delete t[e]}),"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents&&(t.providers=this.options.entities.employees.map(function(e){return e.id}));var o=this;this.$http.get(this.$root.getAjaxUrl+"/events",{params:this.getAppropriateUrlParams(t)}).then(function(t){var n={};t.data.data.events.forEach(function(e){e.periods.forEach(function(t){for(var i=_()(t.periodStart,"YYYY-MM-DD HH:mm:ss"),r=_()(t.periodEnd,"YYYY-MM-DD HH:mm:ss");i.isBefore(r);){var a=i.format("YYYY-MM-DD");a in n||(n[a]={date:a,events:[]}),e.customTickets.length&&e.customPricing&&(e.maxCapacity=e.maxCustomCapacity?e.maxCustomCapacity:o.getEventMaxCapacity(e.customTickets),e.places=e.maxCapacity,e.customTickets.forEach(function(t){e.places-=t.sold})),e.full&&"approved"===e.status?e.status="full":e.upcoming&&"approved"===e.status&&(e.status="upcoming");var s=e.customLocation?e.customLocation:e.locationId?o.options.entities.locations.find(function(t){return t.id===e.locationId}).name:null;n[a].events.push({id:e.id,name:e.name,periodStart:t.periodStart,periodEnd:t.periodEnd,bookingOpens:e.bookingOpens,bookingCloses:e.bookingCloses,location:s,recurring:e.recurring,maxCapacity:e.maxCapacity,status:e.status,places:e.places,created:e.created,opened:e.opened,closed:e.closed,checked:!1,zoomMeeting:t.zoomMeeting,translations:e.translations,customTickets:e.customTickets,organizerId:e.organizerId}),i.add(1,"days")}})});var i=Object.keys(n);i.sort(function(e,t){return e<t?-1:e>t?1:0});var r={};i.forEach(function(e){r[e]=n[e]}),e.eventsDay=r,e.fetched=!0,e.fetchedFiltered=!0}).catch(function(t){console.log(t.message),e.fetched=!0,e.fetchedFiltered=!0})},closeDialogAttendees:function(){this.dialogAttendees=!1},handleDateTimeFormat:function(e){return[this.getFrontedFormattedDate(e.split(" ")[0]),this.getFrontedFormattedTime(e.split(" ")[1])]},showDialogAttendee:function(e){this.eventBooking=e,this.clonedEventBooking=JSON.parse(JSON.stringify(e)),this.paymentLinksEnabled=!(!this.$root.settings.payments||!this.$root.settings.payments.paymentLinks)&&this.$root.settings.payments.paymentLinks.enabled;var t=this.event?this.event.settings:null;t&&t.payments&&t.payments.paymentLinks&&(this.paymentLinksEnabled=t.payments.paymentLinks.enabled),this.dialogEventCustomFields=!0},closeDialogAttendee:function(){this.dialogEventCustomFields=!1},showDialogTranslate:function(e,t){this.dialogTranslateType=e,this.eventTickets=t,this.dialogTranslate=!0},saveDialogTranslate:function(e,t,n,o,i){this.options.entities.settings.general.usedLanguages=this.options.entities.settings.general.usedLanguages.concat(t),"tickets"===n?this.eventTickets.forEach(function(e,t){e.translations=i[t].translations}):this.event.translations=e,this.dialogTranslate=!1}},computed:{filterApplied:function(){return!!this.params.search||!!this.params.dates.start||!!this.params.dates.end},eventCustomerIds:function(){return this.eventBookings.map(function(e){return e.customerId})},eventBookMultipleTimes:function(){return this.event.bookMultipleTimes}},watch:{"params.search":function(){void 0!==this.params.search&&(this.fetchedFiltered=!1,clearTimeout(this.timer),this.timer=setTimeout(this.changeFilter,500))}},components:{DialogCustomer:E.a,PageHeader:x.a,DialogExport:O.a,DialogEvent:l.a,DialogAttendees:u.a,DialogAttendee:p.a,DialogTranslate:$.a,DialogNewCustomize:N.a,AmSurvey:L.a}}},1040:function(e,t,n){var o=n(335)(n(1041),n(1042),!1,null,null,null);e.exports=o.exports},1041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(338),i=n(946),r=n(702),a=n(696),s=n(700),l=n(725);t.default={mixins:[a.a,o.a,r.a,l.a,s.a,i.a],props:{eventStatus:null,customTickets:null,options:null,eventBookings:null,aggregatedPrice:!0,bookingCreatedCount:0,newBooking:null,showHeader:{required:!1,default:!0,type:Boolean},showExport:{required:!1,default:!0,type:Boolean},writeEvents:{type:Boolean,default:!0,required:!1},popperAppendToBody:{type:Boolean,default:!0,required:!1}},data:function(){return{dialogExport:!1,bookings:[],name:"events/bookings",successMessage:{single:this.$root.labels.event_attendee_deleted,multiple:this.$root.labels.event_attendees_deleted},errorMessage:{single:this.$root.labels.event_attendee_not_deleted,multiple:this.$root.labels.event_attendees_not_deleted},search:"",hasResult:!0,dialogLoading:!0,showDeleteConfirmation:!1,statuses:[{value:"approved",label:this.$root.labels.approved},{value:"rejected",label:this.$root.labels.rejected},{value:"no-show",label:this.$root.labels["no-show"]}]}},methods:{getBookingStatus:function(e){return"rejected"===this.eventStatus||"canceled"===this.eventStatus?"canceled":"rejected"===e.status?"canceled":e.status},getInitAttendeeObject:function(){return{id:0,customer:null,status:"approved",persons:1,added:!1,info:null,aggregatedPrice:this.aggregatedPrice,customFields:{}}},addAttendee:function(){this.$emit("showDialogAttendee",this.getInitAttendeeObject())},updateBookingStatus:function(e){var t=this;this.$http.post(this.$root.getAjaxUrl+"/events/bookings/"+e.id,{status:e.status,bookings:[{status:e.status}]}).then(function(){t.notify(t.$root.labels.success,t.$root.labels.event_status_changed+t.$root.labels[e.status].toLowerCase(),"success")}).catch(function(e){t.notify(t.$root.labels.error,e.message,"error")})},getCustomer:function(e){return e.info?JSON.parse(e.info):e.customer},getTicketsSoldString:function(e){var t=this.customTickets.filter(function(t){return t.id===e.eventTicketId})[0].name;return e.persons+" x "+t},instantiateDialog:function(){this.eventBookings&&(this.bookings=this.eventBookings,this.bookings.tickets=[],this.dialogLoading=!1)},closeDialog:function(){this.$emit("closeDialog")},removeAttendee:function(e){var t=this,n=[];this.bookings[e].removing=!0,this.deleteEntities([this.bookings[e].id],function(){setTimeout(function(){for(var e=t.bookings.length-1;e>=0;e--)-1!==n.indexOf(t.bookings[e].id)&&t.bookings.splice(e,1);t.$emit("updateAttendeesCallback"),0===t.bookings.length&&t.$emit("closeDialog")},500)},function(e){n.push(e)},function(e){})},editAttendee:function(e){this.$emit("showDialogAttendee",this.bookings[e])},removeAttendees:function(){var e=this,t=[];e.dialogLoading=!0,e.showDeleteConfirmation=!1,this.deleteEntities(e.bookings.filter(function(e){return e.checked}).map(function(e){return e.id}),function(){setTimeout(function(){for(var n=e.bookings.length-1;n>=0;n--)-1!==t.indexOf(e.bookings[n].id)&&e.bookings.splice(n,1);e.dialogLoading=!1,e.$emit("updateAttendeesCallback"),0===e.bookings.length&&e.$emit("closeDialog")},500)},function(e){t.push(e)},function(e){})},searchAttendees:function(){var e=this;this.bookings.forEach(function(t){t.show=t.customer.firstName.toLowerCase().startsWith(e.search.toLowerCase())||t.customer.lastName.toLowerCase().startsWith(e.search.toLowerCase())||(t.customer.firstName+" "+t.customer.lastName).toLowerCase().startsWith(e.search.toLowerCase())||(t.customer.lastName+" "+t.customer.firstName).toLowerCase().startsWith(e.search.toLowerCase())||null!==t.customer.email&&t.customer.email.toLowerCase().startsWith(e.search.toLowerCase())||null!==t.customer.phone&&t.customer.phone.toLowerCase().startsWith(e.search.toLowerCase())||null!==t.token&&t.token.toLowerCase().substring(0,5).startsWith(e.search.toLowerCase())}),this.hasResult=this.bookings.filter(function(e){return!0===e.show}).length>0},openExportAttendeesDialog:function(){this.$emit("openExportAttendeesDialog")}},mounted:function(){this.instantiateDialog()},watch:{bookingCreatedCount:function(){this.bookings=this.eventBookings,this.bookings.sort(function(e,t){return(e.customer.firstName+" "+e.customer.lastName).localeCompare(t.customer.firstName+" "+t.customer.lastName)}),this.hasResult=!0,this.search=""}}}},1042:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-attendees-inner"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.bookings&&!e.dialogLoading?n("div",{staticClass:"am-dialog-scrollable"},[e.showHeader?n("div",{staticClass:"am-dialog-header",staticStyle:{"border-bottom":"none"}},[n("el-row",[n("el-col",{attrs:{span:18}},[n("h2",[e._v(e._s(e.$root.labels.event_attendees))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:6}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1):e._e(),e._v(" "),e.writeEvents?n("el-button",{staticClass:"am-dialog-create",staticStyle:{width:"100%"},attrs:{size:"large",type:"primary"},on:{click:e.addAttendee}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.event_add_attendee))])]):e._e(),e._v(" "),n("div",{staticClass:"am-search"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:e.showExport?20:24}},[n("el-input",{attrs:{placeholder:e.$root.labels.event_attendees_search},on:{input:function(t){return e.searchAttendees()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.showExport?n("el-col",{attrs:{lg:4}},[n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.export_tooltip_attendees)},slot:"content"}),e._v(" "),n("el-button",{staticClass:"button-export am-button-icon",on:{click:e.openExportAttendeesDialog}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.export,src:e.$root.getUrl+"public/img/export.svg"}})])],1)],1):e._e()],1)],1),e._v(" "),0===e.bookings.length?n("div",{staticClass:"am-empty-state am-section"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/emptystate.svg"}}),e._v(" "),n("h2",[e._v(e._s(e.$root.labels.no_attendees_yet))])]):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hasResult&&e.bookings.length>0,expression:"!hasResult && bookings.length > 0"}],staticClass:"am-empty-state am-section"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/emptystate.svg"}}),e._v(" "),n("h2",[e._v(e._s(e.$root.labels.no_results))])]),e._v(" "),n("div",{staticClass:"am-attendees"},[n("el-collapse",e._l(e.bookings,function(t,o){return n("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"booking.show"}],key:o,staticClass:"am-attendee",attrs:{name:t.id}},[n("template",{slot:"title"},[n("div",{staticClass:"am-attendee-data",staticStyle:{width:"100%"}},[n("el-row",{attrs:{gutter:10}},[!0===e.$root.settings.capabilities.canDelete?n("el-col",{attrs:{sm:2}},[n("span",{staticClass:"am-attendee-checkbox",on:{click:function(e){e.stopPropagation()}}},[!0===e.$root.settings.capabilities.canDelete?n("el-checkbox",{model:{value:t.checked,callback:function(n){e.$set(t,"checked",n)},expression:"booking.checked"}}):e._e()],1)]):e._e(),e._v(" "),n("el-col",{attrs:{sm:!0===e.$root.settings.capabilities.canDelete?17:19}},[n("div",{staticClass:"am-attendee-name"},[n("h3",[e._v("\n "+e._s((null!==(e.user=e.getCustomer(t))?e.user.firstName+" "+e.user.lastName:"")+(t.token?" ("+t.token.substring(0,5)+")":""))+"\n "),t.persons>1?n("span",{staticClass:"am-attendees-plus"},[e._v("+"+e._s(t.persons-1))]):e._e()]),e._v(" "),n("a",{staticClass:"am-attendee-email",attrs:{href:"mailto:"+t.customer.email}},[e._v(e._s(t.customer.email))]),e._v(" "),n("a",{staticClass:"am-attendee-phone",attrs:{href:"tel:"+(null!==(e.user=e.getCustomer(t))?e.user.phone:"")}},[e._v(e._s(null!==(e.user=e.getCustomer(t))?e.user.phone:""))]),e._v(" "),e._l(t.ticketsData,function(t){return e.customTickets.length?n("span",{staticClass:"am-attendees-plus",style:{marginLeft:0}},[e._v("\n "+e._s(e.getTicketsSoldString(t))+"\n ")]):e._e()})],2)]),e._v(" "),n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-appointment-status small"},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+e.getBookingStatus(t)}),e._v(" "),n("el-select",{attrs:{"popper-append-to-body":e.popperAppendToBody,disabled:!e.writeEvents},on:{change:function(n){return e.updateBookingStatus(t)}},model:{value:t.status,callback:function(n){e.$set(t,"status",n)},expression:"booking.status"}},e._l(e.statuses,function(e){return n("el-option",{key:e.value,staticClass:"am-appointment-dialog-status-option",attrs:{value:e.value}},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+("rejected"===e.value?"canceled":e.value)})])}),1)],1)])],1)],1)]),e._v(" "),n("div",{staticClass:"am-attendee-collapse"},[t.payments.length?n("el-row",{staticClass:"am-attendee-collapse-payments",attrs:{gutter:10}},[n("el-col",{attrs:{span:6}},[n("span",[e._v(e._s(e.$root.labels.payment))])]),e._v(" "),n("el-col",{attrs:{span:18}},e._l(t.payments,function(t){return n("p",[n("img",{staticClass:"svg-amelia",style:{width:e.getPaymentIconWidth(t.gateway)},attrs:{src:e.$root.getUrl+"public/img/payments/"+t.gateway+".svg"}}),e._v("\n "+e._s(e.getPaymentGatewayNiceName(t.gateway))+"\n ")])}),0)],1):e._e(),e._v(" "),t.payments.filter(function(e){return e.wcOrderId}).length>0?n("el-row",{staticClass:"am-attendee-collapse-payments",attrs:{gutter:10}},[n("el-col",{attrs:{span:6}},[n("span",[e._v(e._s(e.$root.labels.wc_order)+":")])]),e._v(" "),n("el-col",{attrs:{span:18}},e._l(t.payments,function(t){return n("p",{key:t.id},[n("a",{attrs:{href:t.wcOrderUrl,target:"_blank"}},[e._v("\n #"+e._s(t.wcOrderId)+"\n ")])])}),0)],1):e._e(),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("div",{},[n("el-button",{attrs:{loading:t.removing},on:{click:function(t){return e.removeAttendee(o)}}},[e._v("\n "+e._s(e.$root.labels.event_attendee_remove)+"\n ")])],1)]),e._v(" "),n("el-col",{attrs:{span:12}},[n("div",{},[e.writeEvents?n("el-button",{on:{click:function(t){return e.editAttendee(o)}}},[e._v("\n "+e._s(e.$root.labels.event_edit_attendee)+"\n ")]):e._e()],1)])],1)],1)],2)}),1)],1)],1):e._e(),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.dialogLoading&&e.bookings.length>0&&e.bookings.filter(function(e){return e.checked}).length>0,expression:"!dialogLoading && bookings.length > 0 && bookings.filter(booking => booking.checked).length > 0"}]},[n("div",{staticClass:"am-dialog-footer"},[n("div",{staticClass:"am-dialog-footer-actions"},[n("el-row",[n("el-col",{staticClass:"align-left",attrs:{sm:12}},[n("el-button",{staticClass:"am-button-icon",on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}})])],1)],1)],1)])])]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.dialogLoading&&e.showDeleteConfirmation,expression:"!dialogLoading && showDeleteConfirmation"}],staticClass:"am-dialog-confirmation"},[n("h3",[e._v(e._s(e.bookings.filter(function(e){return e.checked}).length>1?e.$root.labels.confirm_delete_attendees:e.$root.labels.confirm_delete_attendee))]),e._v(" "),n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.removeAttendees}},[e._v("\n "+e._s(e.$root.labels.delete)+"\n ")])],1)])])],1)},staticRenderFns:[]}},1043:function(e,t,n){var o=n(335)(n(1044),n(1045),!1,null,null,null);e.exports=o.exports},1044:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(721),i=n.n(o),r=n(696),a=n(338),s=n(700),l=n(702),c=n(775),u=n(699),d=n(817),p=n.n(d),f=n(707),h=n(748),m=n(778);t.default={mixins:[l.a,r.a,a.a,s.a,u.a,f.a,c.a,h.a,m.a],props:{clonedEventBooking:null,paymentLinksEnabled:null,customTickets:null,eventBooking:null,eventCustomPricing:null,eventId:null,eventMaxCapacity:null,eventCustomerIds:null,eventBookMultipleTimes:{required:!1,default:!0,type:Boolean},options:null,customerCreatedCount:0,showHeader:{required:!1,default:!0,type:Boolean},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){var e=this;return{ticketsData:null,showCoupon:!1,customers:[],appointment:null,dialogLoading:!0,executeUpdate:!0,mounted:!1,statusMessage:"",rules:{bookings:[{required:!0,message:this.$root.labels.select_single_customer_warning,trigger:"submit",type:"array"},{validator:function(t,n,o){e.eventBooking.customerId?o():o(new Error(e.$root.labels.select_single_customer_warning))},trigger:"submit"}]}}},mounted:function(){var e=this;if(this.appointment={bookings:[this.eventBooking]},(this.eventCustomPricing&&this.customTickets||this.eventBooking.id&&this.eventBooking.ticketsData&&this.eventBooking.ticketsData.length)&&(this.createTicketsBooking(this.customTickets),this.eventBooking.id))for(var t=function(t){var n=e.eventBooking.ticketsData.find(function(n){return e.ticketsData[t].eventTicketId===n.eventTicketId});void 0!==n&&(e.ticketsData[t].id=n.id,e.ticketsData[t].persons=n.persons,e.ticketsData[t].eventTicketId=n.eventTicketId,e.ticketsData[t].price=n.price,e.ticketsData[t].customerBookingId=n.customerBookingId)},n=0;n<this.ticketsData.length;n++)t(n);this.instantiateDialog(),this.setBookingCustomFields(),this.addCustomFieldsValidationRules()},updated:function(){this.instantiateDialog()},methods:{haveSaveConfirmation:function(){if(0!==this.eventBooking.id&&this.paymentLinksEnabled){if(this.eventCustomPricing)return this.clonedEventBooking.ticketsData.reduce(function(e,t){return e+t.price*t.persons},0)<this.ticketsData.reduce(function(e,t){return e+t.price*t.persons},0);var e=this.eventBooking.persons*this.eventBooking.price;return this.clonedEventBooking.persons*this.clonedEventBooking.price<e}return!1},changeTicketsCount:function(e){if(0===this.selectedTicketsCount(this.ticketsData))for(var t=0;t<this.ticketsData.length;t++)if(t!==e){this.ticketsData[t].persons=1;break}},selectedTicketsCount:function(e){var t=0;return e.forEach(function(e){t+=e.persons}),t},createTicketsBooking:function(e){var t=this,n=[];e.forEach(function(e,o){n.push({id:0,eventTicketId:e.id,persons:0!==o||t.eventBooking.id?0:1,customerBookingId:null,price:e.dateRangePrice?e.dateRangePrice:e.price})}),this.ticketsData=n},getTicketName:function(e){return this.customTickets.filter(function(t){return t.id===e.eventTicketId})[0].name},customersFetched:function(){this.customers=this.searchedCustomers},searchExistingCustomers:function(e){e?this.searchCustomers(e,this.customersFetched):this.customers=this.options.entities.customers},showDialogNewCustomer:function(){this.$emit("showDialogNewCustomer")},instantiateDialog:function(){var e=this;null!==this.eventBooking&&!0===this.executeUpdate&&(this.mounted=!0,this.executeUpdate=!1,this.dialogLoading=!1,0!==parseInt(this.eventBooking.id)?this.customers=this.options.entities.customers:(this.showCoupon=!0,this.eventBookMultipleTimes?this.customers=this.options.entities.customers:this.customers=this.options.entities.customers.filter(function(t){return-1===e.eventCustomerIds.indexOf(t.id)})))},closeDialog:function(){this.$emit("closeDialog")},getParsedEntity:function(e){var t=this;for(var n in this.eventBooking.customFields)"datepicker"===this.eventBooking.customFields[n].type&&this.eventBooking.customFields[n].value&&(this.eventBooking.customFields[n].value=this.getStringFromDate(this.eventBooking.customFields[n].value));var o=this.showCoupon?this.eventBooking.coupon:this.eventBooking.coupon?this.eventBooking.coupon.id:null,i=this.options.entities.coupons?this.options.entities.coupons.find(function(e){return e.id===o}):null;return{type:"event",eventId:this.eventId,bookings:[{customFields:this.getAllowedCustomFields(this.eventBooking.customFields,"events",this.eventId),persons:this.eventBooking.persons,customerId:this.eventBooking.customerId,customer:this.customers.find(function(e){return e.id===t.eventBooking.customerId}),coupon:i,deposit:0,ticketsData:this.ticketsData}],couponCode:i?i.code:null,validateCoupon:!1,locale:"",timeZone:"",payment:{gateway:"onSite"},isBackendOrCabinet:!0,createPaymentLinks:e}},clearValidation:function(){void 0!==this.$refs.eventBooking&&this.$refs.eventBooking.clearValidate()},errorCallback:function(e){var t=this;setTimeout(function(){"timeSlotUnavailable"in e.data&&!0===e.data.timeSlotUnavailable&&t.notify(t.$root.labels.error,t.$root.labels.maximum_capacity_reached,"error")},200)},addCustomFieldsValidationRules:function(){for(var e=0;e<this.options.entities.customFields.length;e++)this.isCustomFieldVisible(this.options.entities.customFields[e],"event",this.eventId)&&(void 0===this.rules.bookings[0]&&this.$set(this.rules.bookings,0,{type:"array"}),void 0===this.rules.bookings[0].customFields&&this.$set(this.rules.bookings[0],"customFields",{}),this.rules.bookings[0].customFields[this.options.entities.customFields[e].id]={value:[{required:!0,message:this.$root.labels.required_field,trigger:"submit"}]})},showCustomFieldsTab:function(){var e=Array.prototype.concat.apply([],this.options.entities.customFields.map(function(e){return e.events.map(function(e){return e.id})}));return this.options.entities.customFields.length>0&&null!==this.booking&&this.eventId&&e.includes(this.eventId)},validationTabFailCallback:function(){}},watch:{customerCreatedCount:function(){this.customers=this.options.entities.customers,this.eventBooking.customerId=this.customers[this.customers.length-1].id,this.customers.sort(function(e,t){return(e.firstName+" "+e.lastName).localeCompare(t.firstName+" "+t.lastName)})}},components:{DialogCustomFields:p.a,DialogActions:i.a}}},1045:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-attendees-inner"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.eventBooking&&!e.dialogLoading?n("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.eventBooking.id},staticStyle:{"overflow-x":"hidden"}},[e.showHeader?n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:18}},[e.eventBooking.customer?n("h2",[e._v(e._s(e.$root.labels.event_edit_attendee))]):e._e(),e._v(" "),e.eventBooking.customer?e._e():n("h2",[e._v(e._s(e.$root.labels.event_add_attendee))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:6}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1):e._e(),e._v(" "),e.mounted?n("el-form",{ref:"appointment",attrs:{model:{bookings:[e.eventBooking]},rules:e.rules,"label-position":"top"}},[n("el-form-item",{attrs:{label:e.$root.labels.customer+":",prop:"bookings"}},[n("el-select",{attrs:{remote:"",filterable:"",clearable:"","remote-method":e.searchExistingCustomers,disabled:!1!==e.eventBooking.added,placeholder:e.$root.labels.customer,"popper-class":"am-dropdown-cabinet",loading:e.loadingCustomers},on:{clear:e.searchExistingCustomers},model:{value:e.eventBooking.customerId,callback:function(t){e.$set(e.eventBooking,"customerId",t)},expression:"eventBooking.customerId"}},[n("div",{staticClass:"am-drop"},[this.$root.settings.additionalCapabilities.canWriteCustomers?n("div",{staticClass:"am-drop-create-item",on:{click:e.showDialogNewCustomer}},[e._v("\n "+e._s(e.$root.labels.create_new)+"\n ")]):e._e(),e._v(" "),e._l(e.customers,function(t){return n("el-option",{key:t.id,staticClass:"am-has-option-meta",attrs:{label:t.firstName+" "+t.lastName,value:t.id}},[n("span",{class:{"am-drop-item-name":t.email}},[e._v(e._s(t.firstName)+" "+e._s(t.lastName))]),e._v(" "),t.email?n("span",{staticClass:"am-drop-item-meta"},[e._v(e._s(t.email))]):e._e()])}),e._v(" "),e._l([{customer:{id:0,firstName:"",lastName:"",email:"",info:JSON.stringify({firstName:"",lastName:"",email:"",phone:""})}}],function(t){return 0===e.customers.length?n("el-option",{key:t.customer.id,staticClass:"am-has-option-meta",style:{display:"none"},attrs:{label:t.firstName+" "+t.lastName,value:t}}):e._e()})],2)])],1),e._v(" "),(e.eventBooking.id?e.eventBooking.ticketsData&&e.eventBooking.ticketsData.length:e.eventCustomPricing)?e._e():n("el-form-item",{attrs:{label:e.$root.labels.event_book_persons+":"}},[n("el-input-number",{attrs:{min:1},model:{value:e.eventBooking.persons,callback:function(t){e.$set(e.eventBooking,"persons",t)},expression:"eventBooking.persons"}})],1),e._v(" "),(e.eventBooking.id?e.eventBooking.ticketsData&&e.eventBooking.ticketsData.length:e.eventCustomPricing)?n("el-form-item",{attrs:{label:e.$root.labels.event_book_tickets+":"}},[n("div",{staticClass:"am-ticket-box",style:{flexWrap:"wrap"}},e._l(e.ticketsData,function(t,o){return n("div",{key:o,staticClass:"am-ticket"},[n("el-row",[n("el-col",{staticClass:"am-ticket-info",attrs:{sm:16,lg:16}},[n("span",{staticClass:"am-ticket-name",style:{fontWeight:500}},[e._v("\n "+e._s(e.getTicketName(t))+"\n ")])]),e._v(" "),n("el-col",{staticClass:"am-ticket-number-of-people",attrs:{sm:8,lg:8}},[n("el-input-number",{style:{maxHeight:"32px",lineHeight:"32px",overflow:"hidden"},attrs:{size:"mini",min:0,type:"number"},on:{change:function(t){return e.changeTicketsCount(o)}},model:{value:t.persons,callback:function(n){e.$set(t,"persons",n)},expression:"booking.persons"}})],1)],1)],1)}),0)]):e._e(),e._v(" "),e.couponsFilteredEvent.length>0&&e.showCoupon&&("admin"===e.$root.settings.role||"manager"===e.$root.settings.role)?n("el-form-item",{attrs:{label:e.$root.labels.coupon}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_coupon,"popper-class":"am-dropdown-cabinet",disabled:"customer"===e.$root.settings.role},model:{value:e.eventBooking.coupon,callback:function(t){e.$set(e.eventBooking,"coupon",t)},expression:"eventBooking.coupon"}},e._l(e.couponsFilteredEvent,function(t){return n("el-option",{key:t.id,attrs:{disabled:t.disabled,label:t.code+(e.couponExpired(t.expirationDate)?" - "+e.$root.labels.expired:""),value:t.id}})}),1),e._v(" "),n("img",{staticClass:"svg-amelia is-spinner",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}})],1):e._e(),e._v(" "),n("dialog-custom-fields",{attrs:{entityType:"event",appointment:{bookings:[e.eventBooking]},entityId:e.eventId,customFields:e.options.entities.customFields,"is-cabinet":e.isCabinet,showCustomerInfo:!1},on:{clearValidation:e.clearValidation}})],1):e._e()],1):e._e(),e._v(" "),e.eventBooking&&!e.dialogLoading?n("dialog-actions",{attrs:{formName:"appointment",urlName:0!==e.eventBooking.id?"events/bookings":"bookings",isNew:0===e.eventBooking.id,entity:e.eventBooking,getParsedEntity:e.getParsedEntity,hasIcons:!0,haveSaveConfirmation:e.haveSaveConfirmation,buttonText:{confirm:{save:{yes:e.$root.labels.yes,no:e.$root.labels.no}}},status:{on:"visible",off:"hidden"},action:{haveAdd:!0,haveEdit:!0,haveStatus:!1,haveRemove:!1,haveRemoveEffect:!1,haveDuplicate:!1},message:{success:{save:e.$root.labels.event_attendee_saved,remove:"",show:"",hide:""},confirm:{remove:"",show:"",hide:"",duplicate:"",save:e.$root.labels.price_changed_message}}},on:{errorCallback:e.errorCallback,validationTabFailCallback:e.validationTabFailCallback}}):e._e(),e._v(" "),n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])])])],1)},staticRenderFns:[]}},1046:function(e,t){e.exports={render:function(){var e=this,t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"am-wrap"},[o("div",{staticClass:"am-body",attrs:{id:"am-events"}},[o("page-header",{on:{newEventBtnClicked:t.showDialogNewEvent}}),t._v(" "),o("div",{staticClass:"am-spinner am-section",staticStyle:{display:"none"}},[o("img",{attrs:{src:t.$root.getUrl+"public/img/spinner.svg"}})]),t._v(" "),t.fetched&&0===Object.keys(t.eventsDay).length&&!t.filterApplied&&t.fetchedFiltered&&t.options.fetched?o("div",{staticClass:"am-empty-state am-section"},[o("img",{attrs:{src:t.$root.getUrl+"public/img/emptystate.svg"}}),t._v(" "),o("h2",[t._v(t._s(t.$root.labels.no_events_yet))]),t._v(" "),o("p",[t._v(t._s(t.$root.labels.click_add_events))])]):t._e(),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:0!==Object.keys(t.eventsDay).length||0===Object.keys(t.eventsDay).length&&t.filterApplied||!t.fetchedFiltered,expression:"(Object.keys(eventsDay).length !== 0 || (Object.keys(eventsDay).length === 0 && filterApplied) || !fetchedFiltered)"}]},[o("div",{staticClass:"am-events-filter am-section"},[o("el-form",{attrs:{method:"POST"}},[o("el-row",{attrs:{gutter:16}},[o("el-col",{staticClass:"v-calendar-column",attrs:{md:5}},[o("el-form-item",{attrs:{prop:"dates"}},[o("v-date-picker",{attrs:{"is-double-paned":!1,mode:"range","popover-visibility":"focus","popover-direction":"bottom","popover-align":"left","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner"},"is-expanded":!1,"is-required":!0,"input-class":"el-input__inner",formats:t.vCalendarFormats},on:{input:t.changeRange},model:{value:t.params.dates,callback:function(e){t.$set(t.params,"dates",e)},expression:"params.dates"}})],1)],1),t._v(" "),o("el-col",{attrs:{md:19}},[o("div",{staticClass:"am-search"},[o("el-form-item",[o("el-input",{attrs:{placeholder:t.$root.labels.event_search_placeholder},model:{value:t.params.search,callback:function(e){t.$set(t.params,"search",e)},expression:"params.search"}})],1)],1)])],1)],1)],1),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.fetched&&0===Object.keys(t.eventsDay).length&&t.filterApplied&&t.fetchedFiltered&&t.options.fetched,expression:"fetched && Object.keys(eventsDay).length === 0 && filterApplied && fetchedFiltered && options.fetched"}],staticClass:"am-empty-state am-section",staticStyle:{display:"none"}},[o("img",{attrs:{src:t.$root.getUrl+"public/img/emptystate.svg"}}),t._v(" "),o("h2",[t._v(t._s(t.$root.labels.no_results))])]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetched||!t.fetchedFiltered||!t.options.fetched,expression:"!fetched || !fetchedFiltered || !options.fetched"}],staticClass:"am-spinner am-section"},[o("img",{attrs:{src:t.$root.getUrl+"public/img/spinner.svg"}})]),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.fetchedFiltered&&t.options.fetched&&0!==Object.keys(t.eventsDay).length,expression:"fetchedFiltered && options.fetched && Object.keys(eventsDay).length !== 0"}],staticClass:"am-events am-section"},[o("div",{staticClass:"am-events-list-head"},[o("el-row",[o("el-col",{attrs:{lg:11}},[o("el-row",{staticClass:"am-events-flex-row-middle-align",attrs:{gutter:10}},[o("el-col",{attrs:{lg:6}},[o("p")]),t._v(" "),o("el-col",{attrs:{lg:7}},[o("p",[t._v(t._s(t.$root.labels.event_name))])]),t._v(" "),o("el-col",{staticClass:"am-event-location",attrs:{lg:4}},[o("p",[t._v(t._s(t.$root.labels.event_location))])]),t._v(" "),o("el-col",{attrs:{lg:3}},[o("p",[t._v(t._s(t.$root.labels.event_organizer+":"))])]),t._v(" "),o("el-col",{attrs:{lg:3}},[o("p",{staticClass:"am-event-spots"},[t._v(t._s(t.$root.labels.booked+":"))])]),t._v(" "),o("el-col",{attrs:{lg:4}},[o("p",[t._v(t._s(t.$root.labels.event_recurring))])])],1)],1),t._v(" "),o("el-col",{attrs:{lg:13}},[o("el-row",{staticClass:"am-events-flex-row-middle-align",attrs:{gutter:10}},[o("el-col",{attrs:{lg:0,md:3}}),t._v(" "),o("el-col",{attrs:{lg:6}},[o("p",[t._v(t._s(t.$root.labels.event_booking_opens))])]),t._v(" "),o("el-col",{attrs:{lg:6}},[o("p",[t._v(t._s(t.$root.labels.event_booking_closes))])]),t._v(" "),o("el-col",{attrs:{lg:3}},[o("p",[t._v(t._s(t.$root.labels.status_colon))])]),t._v(" "),t.canManage()?o("el-col",{attrs:{lg:9}}):t._e(),t._v(" "),t.$root.settings.zoom.enabled&&"customer"===t.$root.settings.role?o("el-col",{attrs:{lg:9}},[o("p",[t._v(t._s(t.$root.labels.zoom_join_link))])]):t._e()],1)],1)],1)],1),t._v(" "),t._l(t.eventsDay,function(e,n){return o("div",[o("div",{staticClass:"am-events-list-day-title"},[o("el-row",[o("el-col",{attrs:{span:24}},[o("h2",[t._v("\n "+t._s(t.handleDateTimeFormat(e.date+" 00:00:00")[0])+"\n ")])])],1)],1),t._v(" "),o("div",{staticClass:"am-events-list"},t._l(e.events,function(e,n){return o("div",{key:n,staticClass:"am-event",attrs:{name:e.id}},[o("div",{staticClass:"am-event-data"},[o("el-row",[o("el-col",{attrs:{lg:11}},[o("el-row",{staticClass:"am-events-flex-row-middle-align",attrs:{gutter:10}},[o("el-col",{attrs:{lg:6,sm:6}},[o("span",{staticClass:"am-event-checkbox",on:{click:function(e){e.stopPropagation()}}},[o("span",{staticClass:"am-event-time"},[t._v("\n "+t._s(t.handleDateTimeFormat(e.periodStart)[1])+" - "+t._s(t.handleDateTimeFormat(e.periodEnd)[1])+"\n ")])])]),t._v(" "),o("el-col",{attrs:{lg:7,sm:9}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.event_name))]),t._v(" "),o("h4",[t._v("\n "+t._s(e.name)+"\n "),o("span",{staticClass:"am-event-data-id"},[t._v(" ("+t._s(t.$root.labels.id)+": "+t._s(e.id)+")")])])]),t._v(" "),o("el-col",{staticClass:"am-event-location",attrs:{lg:4,sm:4,xs:12}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.event_location))]),t._v(" "),o("p",[o("span",{staticClass:"am-semi-strong"},[t._v(t._s(e.location))])])]),t._v(" "),o("el-col",{attrs:{lg:3,sm:4,xs:12}},[o("h4",[t._v(t._s(t.getEventOrganizerName(e.organizerId)))])]),t._v(" "),o("el-col",{attrs:{lg:3,sm:3,xs:12}},[o("p",{staticClass:"am-col-title am-event-spots"},[t._v(t._s(t.$root.labels.booked+":"))]),t._v(" "),o("div",{staticClass:"am-event-spots",style:{display:"flex",justifyContent:"space-evenly"}},[o("span",{staticClass:"am-semi-strong"},[t._v(t._s(e.maxCapacity-e.places)+" / "+t._s(e.maxCapacity))]),t._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{staticStyle:{"text-align":"left"},attrs:{slot:"content"},domProps:{innerHTML:t._s(t.ticketsTooltipContent(e.customTickets))},slot:"content"}),t._v(" "),""!==t.ticketsTooltipContent(e.customTickets)?o("img",{attrs:{src:t.$root.getUrl+"public/img/am-package.svg"}}):t._e()])],1)]),t._v(" "),o("el-col",{attrs:{lg:4,sm:4,xs:12}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.event_recurring))]),t._v(" "),o("div",{staticClass:"am-event-recurring"},[e.recurring?o("p",{staticClass:"am-recurring-label"},[o("img",{attrs:{src:t.$root.getUrl+"public/img/loop.svg"}}),t._v(" "+t._s(t.$root.labels.yes))]):o("p",[t._v(t._s(t.$root.labels.no))])])])],1)],1),t._v(" "),o("el-col",{attrs:{lg:13}},[o("el-row",{staticClass:"am-events-flex-row-middle-align",attrs:{gutter:10}},[o("el-col",{attrs:{lg:6,sm:10,xs:12}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.event_booking_opens))]),t._v(" "),o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Open",placement:"top",disabled:!e.bookingOpens}},[o("p",{class:{"am-event-open":e.opened&&"approved"===e.status}},[o("span",{staticClass:"am-semi-strong"},[t._v(t._s(t.handleDateTimeFormat(e.bookingOpens?e.bookingOpens:e.created)[0]))]),t._v("\n @ "),o("span",{staticClass:"am-semi-strong"},[t._v(" "+t._s(t.handleDateTimeFormat(e.bookingOpens?e.bookingOpens:e.created)[1]))])])])],1),t._v(" "),o("el-col",{attrs:{lg:6,sm:10,xs:12}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.event_booking_closes))]),t._v(" "),o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Closed",placement:"top",disabled:!e.bookingCloses}},[o("p",{class:{"am-event-closed":e.closed&&"approved"===e.status}},[o("span",{staticClass:"am-semi-strong"},[t._v(t._s(t.handleDateTimeFormat(e.bookingCloses?e.bookingCloses:e.periodStart)[0]))]),t._v("\n @ "),o("span",{staticClass:"am-semi-strong"},[t._v(" "+t._s(t.handleDateTimeFormat(e.bookingCloses?e.bookingCloses:e.periodStart)[1]))])])])],1),t._v(" "),o("el-col",{attrs:{lg:3,sm:4,xs:24}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.status_colon))]),t._v(" "),o("span",{class:"am-customer-status "+t.getEventStatus(e).class},[t._v("\n "+t._s(t.getEventStatus(e).label)+"\n ")])]),t._v(" "),t.canManage()?o("el-col",{staticClass:"am-align-right",attrs:{lg:9,sm:10,xs:24}},[o("div",{staticClass:"am-event-actions",on:{click:function(e){e.stopPropagation()}}},[t.canManage()?o("el-button",{attrs:{disabled:!t.canManage()},on:{click:function(n){return t.showDialogAttendees(e.id)}}},[t._v("\n "+t._s(t.$root.labels.event_attendees)+"\n ")]):t._e(),t._v(" "),t.canManage()?o("el-button",{attrs:{disabled:!t.canManage()},on:{click:function(n){return t.showDialogEditEvent(e.id)}}},[t._v("\n "+t._s(t.$root.labels.edit)+"\n ")]):t._e()],1)]):t._e(),t._v(" "),"customer"===t.$root.settings.role&&t.$root.settings.zoom.enabled&&e.zoomMeeting?o("el-col",{staticClass:"am-align-right",attrs:{lg:9,sm:10,xs:24}},[o("p",{staticClass:"am-col-title"},[t._v(t._s(t.$root.labels.zoom_join_link))]),t._v(" "),o("a",{staticClass:"am-link",staticStyle:{float:"left"},attrs:{href:e.zoomMeeting.joinUrl}},[t._v(t._s(e.zoomMeeting.joinUrl))])]):t._e()],1)],1)],1)],1)])}),0)])})],2)]),t._v(" "),t.canManage()?o("div",{staticClass:"am-button-new",attrs:{id:"am-button-new"}},[o("el-button",{attrs:{id:"am-plus-symbol",type:"primary",icon:"el-icon-plus"},on:{click:t.showDialogNewEvent}})],1):t._e(),t._v(" "),o("transition",{attrs:{name:"slide"}},[t.dialogEvent?o("el-dialog",{staticClass:"am-side-dialog am-dialog-event",attrs:{"close-on-click-modal":!1,"show-close":!1,visible:t.dialogEvent},on:{"update:visible":function(e){t.dialogEvent=e}}},[o("dialog-event",{attrs:{event:t.event,employees:t.options.entities.employees,locations:t.options.entities.locations,tags:t.options.entities.tags,settings:t.options.entities.settings},on:{closeDialog:t.closeDialogEvent,saveCallback:t.saveEventCallback,showDialogTranslate:t.showDialogTranslate,duplicateCallback:t.duplicateEventCallback}})],1):t._e()],1),t._v(" "),o("transition",{attrs:{name:"slide"}},[t.dialogAttendees&&t.event&&t.eventBookings?o("el-dialog",{staticClass:"am-side-dialog am-dialog-event",attrs:{"close-on-click-modal":!1,"show-close":!1,visible:t.dialogAttendees},on:{"update:visible":function(e){t.dialogAttendees=e}}},[o("dialog-attendees",{attrs:{customTickets:t.event.customTickets,eventBookings:t.eventBookings,bookingCreatedCount:t.bookingCreatedCount,options:t.options,popperAppendToBody:!0,eventStatus:t.event.status,"aggregated-price":t.event.aggregatedPrice},on:{closeDialog:t.closeDialogAttendees,updateAttendeesCallback:t.updateAttendeesCallback,showDialogAttendee:t.showDialogAttendee,openExportAttendeesDialog:function(e){t.dialogExport=!0}}})],1):t._e()],1),t._v(" "),o("DialogLite"),t._v(" "),o("transition",{attrs:{name:"slide"}},[t.dialogEventCustomFields&&t.event&&t.eventBooking?o("el-dialog",{staticClass:"am-side-dialog am-dialog-event",attrs:{"close-on-click-modal":!1,"show-close":!1,visible:t.dialogEventCustomFields},on:{"update:visible":function(e){t.dialogEventCustomFields=e}}},[o("dialog-attendee",{attrs:{"cloned-event-booking":t.clonedEventBooking,"payment-links-enabled":t.paymentLinksEnabled,customTickets:t.event.customTickets,eventBooking:t.eventBooking,eventCustomPricing:t.event.customPricing,eventCustomerIds:t.eventCustomerIds,eventBookMultipleTimes:t.eventBookMultipleTimes,eventMaxCapacity:t.event.maxCapacity,eventId:t.event.id,options:t.options,customerCreatedCount:t.customerCreatedCount},on:{closeDialog:t.closeDialogAttendee,showDialogNewCustomer:t.showDialogNewCustomer,saveCallback:t.saveAttendeeCallback}})],1):t._e()],1),t._v(" "),o("transition",{attrs:{name:"slide"}},[t.dialogCustomer?o("el-dialog",{staticClass:"am-side-dialog",attrs:{"close-on-click-modal":!1,visible:t.dialogCustomer,"show-close":!1},on:{"update:visible":function(e){t.dialogCustomer=e}}},[o("dialog-customer",{attrs:{customer:t.customer},on:{closeDialog:function(e){t.dialogCustomer=!1},saveCallback:t.saveCustomerCallback}})],1):t._e()],1),t._v(" "),t.event&&t.event.id?o("el-form",{attrs:{action:t.exportAction,method:"POST"}},[o("transition",{attrs:{name:"slide"}},[t.dialogExport?o("el-dialog",{staticClass:"am-side-dialog am-dialog-export",attrs:{"close-on-click-modal":!1,visible:t.dialogExport,"show-close":!1},on:{"update:visible":function(e){t.dialogExport=e}}},[o("dialog-export",{attrs:{data:Object.assign(t.exportParams,{id:t.event.id}),action:t.$root.getAjaxUrl+"/report/event/attendees"},on:{updateAction:function(t){e.exportAction=t},closeDialogExport:function(e){t.dialogExport=!1}}})],1):t._e()],1)],1):t._e(),t._v(" "),o("transition",{attrs:{name:"slide"}},[t.dialogTranslate?o("el-dialog",{staticClass:"am-side-dialog am-dialog-translate am-edit",attrs:{"close-on-click-modal":!1,"show-close":!0,visible:t.dialogTranslate},on:{"update:visible":function(e){t.dialogTranslate=e}}},[o("dialog-translate",{attrs:{"passed-translations":t.event.translations,name:t.event.name,"used-languages":t.options.entities.settings.general.usedLanguages,"all-languages-data":t.languagesData,type:t.dialogTranslateType,eventTickets:t.eventTickets,tab:t.eventTickets&&t.eventTickets.length?"tickets":"event"},on:{saveDialogTranslate:t.saveDialogTranslate,closeDialogTranslate:function(e){t.dialogTranslate=!1}}})],1):t._e()],1),t._v(" "),o("el-col",{attrs:{md:6}},[o("a",{staticClass:"am-help-button",attrs:{href:"https://wpamelia.com/events/",target:"_blank"}},[o("i",{staticClass:"el-icon-question"}),t._v(" "+t._s(t.$root.labels.need_help)+"?\n ")])]),t._v(" "),o("dialog-new-customize"),t._v(" "),o("AmSurvey")],1)])},staticRenderFns:[]}},677:function(e,t,n){var o=n(335)(n(1039),n(1046),!1,null,null,null);e.exports=o.exports},696:function(e,t,n){"use strict";t.a={data:function(){return{colors:["1788FB","4BBEC6","FBC22D","FA3C52","D696B8","689BCA","26CC2B","FD7E35","E38587","774DFB","31CDF3","6AB76C","FD5FA1","A697C5"],usedColors:[]}},methods:{getAppropriateUrlParams:function(e){if(!this.$root.settings.activation.disableUrlParams)return e;var t=JSON.parse(JSON.stringify(e));return["categories","services","packages","employees","providers","providerIds","extras","locations","events","types","dates"].forEach(function(e){if("extras"===e&&e in t){t.extras=JSON.parse(t.extras);var n=[];t.extras.forEach(function(e){n.push(e.id+"-"+e.quantity)}),t.extras=n.length?n:null}e in t&&Array.isArray(t[e])&&t[e].length&&(t[e]=t[e].join(","))}),t},inlineSVG:function(){var e=n(703);e.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){n(703).init({svgSelector:"img.svg-cabinet",initClass:"js-inlinesvg"})},100)},imageFromText:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.getNameInitials(e),i=Math.floor(Math.random()*this.colors.length),r=this.colors[i];return this.usedColors.push(this.colors[i]),this.colors.splice(i,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),n?t.firstName?this.$root.getUrl+"public/img/default-employee.svg":t.latitude?this.$root.getUrl+"public/img/default-location.svg":this.$root.getUrl+"public/img/default-service.svg":location.protocol+"//via.placeholder.com/120/"+r+"/fff?text="+o},pictureLoad:function(e,t){if(null!==e){var n=!0===t?e.firstName+" "+e.lastName:e.name;if(void 0!==n)return e.pictureThumbPath=e.pictureThumbPath||this.imageFromText(n),e.pictureThumbPath}},imageLoadError:function(e,t){var n=!0===t?e.firstName+" "+e.lastName:e.name;void 0!==n&&(e.pictureThumbPath=this.imageFromText(n,e,!0))},getNameInitials:function(e){return e.split(" ").map(function(e){return e.charAt(0)}).join("").toUpperCase().substring(0,3).replace(/[^\w\s]/g,"")}}}},697:function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={data:function(){return{}},methods:{replaceExistingObjectProperties:function(e,t){var n=this;Object.keys(e).forEach(function(i){null!==e[i]&&"object"===o(e[i])&&i in t?n.replaceExistingObjectProperties(e[i],t[i]):i in t&&(e[i]=t[i])})},addMissingObjectProperties:function(e,t){var n=this;Object.keys(t).forEach(function(i){var r=!1;i in e||("object"===o(t[i])?(e[i]={},r=!0):(e[i]=null,r=!0)),null===t[i]||"object"!==o(t[i])?r&&(e[i]=t[i]):n.addMissingObjectProperties(e[i],t[i])})},scrollView:function(e,t,n){"undefined"!=typeof jQuery&&(void 0!==n&&n||jQuery(window).width()<=600)&&setTimeout(function(){var n=document.getElementById(e);void 0!==n&&null!==n&&n.scrollIntoView({behavior:"smooth",block:t,inline:"end"})},200)},scrollViewInModal:function(e){this.$nextTick(function(){var t=document.getElementById(e),n=document.querySelectorAll(".am-dialog-scrollable");if(t&&n&&n.length){var o=t,i=t.offsetTop;do{i+=(o=o.offsetParent).offsetTop}while(o===n[0]);n[0].scrollTop=i}})},getUrlQueryParams:function(e){var t=e.indexOf("#")>0?e.substring(0,e.indexOf("#")).split("?")[1]:e.split("?")[1];if(t){var n=[],o={};return t.split("&").forEach(function(e){n=e.split("="),o[n[0]]=decodeURIComponent(n[1]).replace(/\+/g," ")}),o}},getUrlParams:function(e){var t={};if(-1!==e.indexOf("?")){var n=[];e.split("?")[1].split("&").forEach(function(e){n=e.split("="),t[n[0]]=decodeURIComponent(n[1]).replace(/\+/g," ")})}return t},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var o=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),r=i.length;r-- >0;)-1!==i[r].lastIndexOf(o,0)&&i.splice(r,1);return e=n[0]+(i.length>0?"?"+i.join("&"):"")}return e},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},trimProperty:function(e,t){e[t]=e[t].trim()}}}},698:function(e,t,n){"use strict";var o=n(716),i=n(344),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function n(n,o){"object"==typeof t[o]&&"object"==typeof n?t[o]=e(t[o],n):t[o]=n}for(var o=0,i=arguments.length;o<i;o++)c(arguments[o],n);return t},extend:function(e,t,n){return c(t,function(t,i){e[i]=n&&"function"==typeof t?o(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},699:function(e,t,n){"use strict";t.a={data:function(){return{currencies:[{symbol:"$",name:"US Dollar",symbol_native:"$",code:"USD",iso:"us"},{symbol:"€",name:"Euro",symbol_native:"€",code:"EUR",iso:"eu"},{symbol:"£",name:"British Pound Sterling",symbol_native:"£",code:"GBP",iso:"gb"},{symbol:"CA$",name:"Canadian Dollar",symbol_native:"$",code:"CAD",iso:"ca"},{symbol:"FCFP",name:"CFP Franc",symbol_native:"FCFP",code:"XPF",iso:"fr"},{symbol:"CHF",name:"Swiss Franc",symbol_native:"CHF",code:"CHF",iso:"ch"},{symbol:"RUB",name:"Russian Ruble",symbol_native:"руб.",code:"RUB",iso:"ru"},{symbol:"¥",name:"Japanese Yen",symbol_native:"¥",code:"JPY",iso:"jp"},{symbol:"Af",name:"Afghan Afghani",symbol_native:"؋",code:"AFN",iso:"af"},{symbol:"ALL",name:"Albanian Lek",symbol_native:"Lek",code:"ALL",iso:"al"},{symbol:"DA",name:"Algerian Dinar",symbol_native:"د.ج.",code:"DZD",iso:"dz"},{symbol:"AR$",name:"Argentine Peso",symbol_native:"$",code:"ARS",iso:"ar"},{symbol:"AMD",name:"Armenian Dram",symbol_native:"դր.",code:"AMD",iso:"am"},{symbol:"AU$",name:"Australian Dollar",symbol_native:"$",code:"AUD",iso:"au"},{symbol:"man.",name:"Azerbaijani Manat",symbol_native:"ман.",code:"AZN",iso:"az"},{symbol:"BD",name:"Bahraini Dinar",symbol_native:"د.ب.",code:"BHD",iso:"bh"},{symbol:"Tk",name:"Bangladeshi Taka",symbol_native:"৳",code:"BDT",iso:"bd"},{symbol:"BYR",name:"Belarusian Ruble",symbol_native:"BYR",code:"BYR",iso:"by"},{symbol:"BZ$",name:"Belize Dollar",symbol_native:"$",code:"BZD",iso:"bz"},{symbol:"Bs",name:"Bolivian Boliviano",symbol_native:"Bs",code:"BOB",iso:"bo"},{symbol:"KM",name:"Bosnia-Herzegovina Convertible Mark",symbol_native:"KM",code:"BAM",iso:"ba"},{symbol:"BWP",name:"Botswanan Pula",symbol_native:"P",code:"BWP",iso:"bw"},{symbol:"R$",name:"Brazilian Real",symbol_native:"R$",code:"BRL",iso:"br"},{symbol:"BN$",name:"Brunei Dollar",symbol_native:"$",code:"BND",iso:"bn"},{symbol:"BGN",name:"Bulgarian Lev",symbol_native:"лв.",code:"BGN",iso:"bg"},{symbol:"FBu",name:"Burundian Franc",symbol_native:"FBu",code:"BIF",iso:"bi"},{symbol:"CFA",name:"CFA Franc BCEAO",symbol_native:"CFA",code:"XOF",iso:"auto"},{symbol:"FCFA",name:"CFA Franc BEAC",symbol_native:"FCFA",code:"XAF",iso:"auto"},{symbol:"KHR",name:"Cambodian Riel",symbol_native:"៛",code:"KHR",iso:"kh"},{symbol:"CV$",name:"Cape Verdean Escudo",symbol_native:"CV$",code:"CVE",iso:"cv"},{symbol:"CLP",name:"Chilean Peso",symbol_native:"$",code:"CLP",iso:"cl"},{symbol:"CN¥",name:"Chinese Yuan",symbol_native:"CN¥",code:"CNY",iso:"cn"},{symbol:"COP",name:"Colombian Peso",symbol_native:"$",code:"COP",iso:"co"},{symbol:"CF",name:"Comorian Franc",symbol_native:"FC",code:"KMF",iso:"km"},{symbol:"CDF",name:"Congolese Franc",symbol_native:"FrCD",code:"CDF",iso:"cd"},{symbol:"₡",name:"Costa Rican Colón",symbol_native:"₡",code:"CRC",iso:"cr"},{symbol:"kn",name:"Croatian Kuna",symbol_native:"kn",code:"HRK",iso:"hr"},{symbol:"Kč",name:"Czech Republic Koruna",symbol_native:"Kč",code:"CZK",iso:"cz"},{symbol:"Dkk",name:"Danish Krone",symbol_native:"kr",code:"DKK",iso:"dk"},{symbol:"Fdj",name:"Djiboutian Franc",symbol_native:"Fdj",code:"DJF",iso:"dj"},{symbol:"RD$",name:"Dominican Peso",symbol_native:"RD$",code:"DOP",iso:"do"},{symbol:"EGP",name:"Egyptian Pound",symbol_native:"ج.م.",code:"EGP",iso:"eg"},{symbol:"Nfk",name:"Eritrean Nakfa",symbol_native:"Nfk",code:"ERN",iso:"er"},{symbol:"Ekr",name:"Estonian Kroon",symbol_native:"kr",code:"EEK",iso:"ee"},{symbol:"Br",name:"Ethiopian Birr",symbol_native:"Br",code:"ETB",iso:"et"},{symbol:"GEL",name:"Georgian Lari",symbol_native:"GEL",code:"GEL",iso:"ge"},{symbol:"GH₵",name:"Ghanaian Cedi",symbol_native:"GH₵",code:"GHS",iso:"gh"},{symbol:"GTQ",name:"Guatemalan Quetzal",symbol_native:"Q",code:"GTQ",iso:"gt"},{symbol:"FG",name:"Guinean Franc",symbol_native:"FG",code:"GNF",iso:"gn"},{symbol:"HNL",name:"Honduran Lempira",symbol_native:"L",code:"HNL",iso:"hn"},{symbol:"HK$",name:"Hong Kong Dollar",symbol_native:"$",code:"HKD",iso:"hk"},{symbol:"Ft",name:"Hungarian Forint",symbol_native:"Ft",code:"HUF",iso:"hu"},{symbol:"kr",name:"Icelandic Króna",symbol_native:"kr",code:"ISK",iso:"is"},{symbol:"INR",name:"Indian Rupee",symbol_native:"টকা",code:"INR",iso:"in"},{symbol:"Rp",name:"Indonesian Rupiah",symbol_native:"Rp",code:"IDR",iso:"id"},{symbol:"IRR",name:"Iranian Rial",symbol_native:"﷼",code:"IRR",iso:"ir"},{symbol:"IQD",name:"Iraqi Dinar",symbol_native:"د.ع.",code:"IQD",iso:"iq"},{symbol:"₪",name:"Israeli New Sheqel",symbol_native:"₪",code:"ILS",iso:"il"},{symbol:"J$",name:"Jamaican Dollar",symbol_native:"$",code:"JMD",iso:"jm"},{symbol:"JD",name:"Jordanian Dinar",symbol_native:"د.أ.",code:"JOD",iso:"jo"},{symbol:"KZT",name:"Kazakhstani Tenge",symbol_native:"тңг.",code:"KZT",iso:"kz"},{symbol:"Ksh",name:"Kenyan Shilling",symbol_native:"Ksh",code:"KES",iso:"ke"},{symbol:"KD",name:"Kuwaiti Dinar",symbol_native:"د.ك.",code:"KWD",iso:"kw"},{symbol:"Ls",name:"Latvian Lats",symbol_native:"Ls",code:"LVL",iso:"lv"},{symbol:"LB£",name:"Lebanese Pound",symbol_native:"ل.ل.",code:"LBP",iso:"lb"},{symbol:"LD",name:"Libyan Dinar",symbol_native:"د.ل.",code:"LYD",iso:"ly"},{symbol:"Lt",name:"Lithuanian Litas",symbol_native:"Lt",code:"LTL",iso:"lt"},{symbol:"MOP$",name:"Macanese Pataca",symbol_native:"MOP$",code:"MOP",iso:"mo"},{symbol:"MKD",name:"Macedonian Denar",symbol_native:"MKD",code:"MKD",iso:"mk"},{symbol:"MGA",name:"Malagasy Ariary",symbol_native:"MGA",code:"MGA",iso:"mg"},{symbol:"RM",name:"Malaysian Ringgit",symbol_native:"RM",code:"MYR",iso:"my"},{symbol:"MURs",name:"Mauritian Rupee",symbol_native:"MURs",code:"MUR",iso:"mu"},{symbol:"MX$",name:"Mexican Peso",symbol_native:"$",code:"MXN",iso:"mx"},{symbol:"MDL",name:"Moldovan Leu",symbol_native:"MDL",code:"MDL",iso:"md"},{symbol:"MAD",name:"Moroccan Dirham",symbol_native:"د.م.",code:"MAD",iso:"ma"},{symbol:"MTn",name:"Mozambican Metical",symbol_native:"MTn",code:"MZN",iso:"mz"},{symbol:"MMK",name:"Myanma Kyat",symbol_native:"K",code:"MMK",iso:"mm"},{symbol:"N$",name:"Namibian Dollar",symbol_native:"N$",code:"NAD",iso:"na"},{symbol:"NPRs",name:"Nepalese Rupee",symbol_native:"नेरू",code:"NPR",iso:"np"},{symbol:"NT$",name:"New Taiwan Dollar",symbol_native:"NT$",code:"TWD",iso:"tw"},{symbol:"NZ$",name:"New Zealand Dollar",symbol_native:"$",code:"NZD",iso:"nz"},{symbol:"C$",name:"Nicaraguan Córdoba",symbol_native:"C$",code:"NIO",iso:"ni"},{symbol:"₦",name:"Nigerian Naira",symbol_native:"₦",code:"NGN",iso:"ng"},{symbol:"kr",name:"Norwegian Krone",symbol_native:"kr",code:"NOK",iso:"no"},{symbol:"OMR",name:"Omani Rial",symbol_native:"ر.ع.",code:"OMR",iso:"om"},{symbol:"PKRs",name:"Pakistani Rupee",symbol_native:"₨",code:"PKR",iso:"pk"},{symbol:"B/.",name:"Panamanian Balboa",symbol_native:"B/.",code:"PAB",iso:"pa"},{symbol:"₲",name:"Paraguayan Guarani",symbol_native:"₲",code:"PYG",iso:"py"},{symbol:"S/.",name:"Peruvian Nuevo Sol",symbol_native:"S/.",code:"PEN",iso:"pe"},{symbol:"₱",name:"Philippine Peso",symbol_native:"₱",code:"PHP",iso:"ph"},{symbol:"zł",name:"Polish Zloty",symbol_native:"zł",code:"PLN",iso:"pl"},{symbol:"QR",name:"Qatari Rial",symbol_native:"ر.ق.",code:"QAR",iso:"qa"},{symbol:"RON",name:"Romanian Leu",symbol_native:"RON",code:"RON",iso:"ro"},{symbol:"RWF",name:"Rwandan Franc",symbol_native:"FR",code:"RWF",iso:"rw"},{symbol:"SR",name:"Saudi Riyal",symbol_native:"ر.س.",code:"SAR",iso:"sa"},{symbol:"rsd.",name:"Serbian Dinar",symbol_native:"дин.",code:"RSD",iso:"rs"},{symbol:"S$",name:"Singapore Dollar",symbol_native:"$",code:"SGD",iso:"sg"},{symbol:"Ssh",name:"Somali Shilling",symbol_native:"Ssh",code:"SOS",iso:"so"},{symbol:"R",name:"South African Rand",symbol_native:"R",code:"ZAR",iso:"za"},{symbol:"₩",name:"South Korean Won",symbol_native:"₩",code:"KRW",iso:"kr"},{symbol:"₭",name:"Lao kip",symbol_native:"₭",code:"LAK",iso:"la"},{symbol:"SLRs",name:"Sri Lankan Rupee",symbol_native:"SL Re",code:"LKR",iso:"lk"},{symbol:"SDG",name:"Sudanese Pound",symbol_native:"SDG",code:"SDG",iso:"sd"},{symbol:"kr",name:"Swedish Krona",symbol_native:"kr",code:"SEK",iso:"se"},{symbol:"SY£",name:"Syrian Pound",symbol_native:"ل.س.",code:"SYP",iso:"sy"},{symbol:"TSh",name:"Tanzanian Shilling",symbol_native:"TSh",code:"TZS",iso:"tz"},{symbol:"฿",name:"Thai Baht",symbol_native:"฿",code:"THB",iso:"th"},{symbol:"T$",name:"Tongan Paʻanga",symbol_native:"T$",code:"TOP",iso:"to"},{symbol:"TT$",name:"Trinidad and Tobago Dollar",symbol_native:"$",code:"TTD",iso:"tt"},{symbol:"DT",name:"Tunisian Dinar",symbol_native:"د.ت.",code:"TND",iso:"tn"},{symbol:"TL",name:"Turkish Lira",symbol_native:"TL",code:"TRY",iso:"tr"},{symbol:"USh",name:"Ugandan Shilling",symbol_native:"USh",code:"UGX",iso:"ug"},{symbol:"₴",name:"Ukrainian Hryvnia",symbol_native:"₴",code:"UAH",iso:"ua"},{symbol:"AED",name:"United Arab Emirates Dirham",symbol_native:"د.إ.",code:"AED",iso:"ae"},{symbol:"$U",name:"Uruguayan Peso",symbol_native:"$",code:"UYU",iso:"uy"},{symbol:"UZS",name:"Uzbekistan Som",symbol_native:"UZS",code:"UZS",iso:"uz"},{symbol:"Bs.S.",name:"Venezuelan Bolívar",symbol_native:"Bs.S.",code:"VES",iso:"ve"},{symbol:"₫",name:"Vietnamese Dong",symbol_native:"₫",code:"VND",iso:"vn"},{symbol:"YR",name:"Yemeni Rial",symbol_native:"ر.ي.",code:"YER",iso:"ye"},{symbol:"ZK",name:"Zambian Kwacha",symbol_native:"ZK",code:"ZMK",iso:"zm"}],thousandSeparatorMap:{1:",",2:".",3:" ",4:" "},decimalSeparatorMap:{1:".",2:",",3:".",4:","}}},methods:{getCurrencySymbol:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.currencies.find(function(t){return t.code===e.$root.settings.payments.currencyCode});return n&&t&&"INR"!==n.code?n.symbol_native:t&&"INR"===n.code?n.code:this.$root.settings.payments.currency},getPriceThousandSeparator:function(){return this.thousandSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceDecimalSeparator:function(){return this.decimalSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceNumberOfDecimalPlaces:function(){return this.$root.settings.payments.priceNumberOfDecimals},getPricePrefix:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"after"===this.$root.settings.payments.priceSymbolPosition||"afterWithSpace"===this.$root.settings.payments.priceSymbolPosition?"":"before"===this.$root.settings.payments.priceSymbolPosition?this.getCurrencySymbol(e):this.getCurrencySymbol(e)+" "},getPriceSuffix:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"before"===this.$root.settings.payments.priceSymbolPosition||"beforeWithSpace"===this.$root.settings.payments.priceSymbolPosition?"":"after"===this.$root.settings.payments.priceSymbolPosition?this.getCurrencySymbol(e):" "+this.getCurrencySymbol(e)},getFormattedPrice:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getPriceNumberOfDecimalPlaces(),o=this.getPriceThousandSeparator(),i=this.getPriceDecimalSeparator(),r=this.getPricePrefix(),a=this.getPriceSuffix(),s=parseInt(e=Math.abs(+e||0).toFixed(n))+"",l=s.length>3?s.length%3:0;return(t?r:"")+(l?s.substr(0,l)+o:"")+s.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o)+(n?i+Math.abs(e-s).toFixed(n).slice(2):"")+(t?a:"")}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},700:function(e,t,n){"use strict";t.a={methods:{notify:function(e,t,n,o){var i=this;void 0===o&&(o=""),setTimeout(function(){i.$notify({customClass:o,title:e,message:t,type:n,offset:50})},700)}}}},701:function(e,t,n){"use strict";var o=n(0),i=n.n(o);t.a={data:function(){return{timeSelectOptions:{start:"00:00",end:"23:59",step:this.secondsToTimeSelectStep(this.getTimeSlotLength())}}},methods:{convertDateTimeRangeDifferenceToMomentDuration:function(e,t){return i.a.duration(i()(t).diff(i()(e)))},convertSecondsToMomentDuration:function(e){return i.a.duration(e,"seconds")},momentDurationToNiceDurationWithUnit:function(e){var t=Math.floor(e.asMinutes()/60),n=e.asMinutes()%60;return(t?t+this.$root.labels.h+" ":"")+" "+(n?n+this.$root.labels.min:"")},secondsToNiceDuration:function(e){var t=Math.floor(e/3600),n=e/60%60;return(t?t+this.$root.labels.h+" ":"")+" "+(n?n+this.$root.labels.min:"")},secondsToTimeSelectStep:function(e){var t=Math.floor(e/3600),n=Math.floor(e/60)-60*t;return e<0?(t||"00")+":"+((n<9?"0"+n:n)||"00"):((t<=9?"0"+t:t)||"00")+":"+((n<=9?"0"+n:n)||"00")},getTimeSlotLength:function(){return this.$root.settings.general.timeSlotLength},getPossibleDurationsInSeconds:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:86400,n=this.getTimeSlotLength(),o=[],i=n;i<=t;i+=n)o.push(i);return e&&-1===o.indexOf(e)&&(o.push(e),o.sort(function(e,t){return e-t})),o},getTimeSelectOptionsWithLimits:function(e,t){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:e,maxTime:t}},getStringTimeInSeconds:function(e){return i()(e,"HH:mm").diff(i()().startOf("day"),"seconds")}}}},702:function(e,t,n){"use strict";var o=n(722),i=n(715),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={mixins:[o.a,i.a],data:function(){return{}},methods:{getLocationById:function(e){return this.options.entities.locations.find(function(t){return t.id===e})||null},getCustomerById:function(e){return this.options.entities.customers.find(function(t){return t.id===e})||null},getProviderById:function(e){return this.options.entities.employees.find(function(t){return t.id===e})||null},getServiceById:function(e){return this.options.entities.services.find(function(t){return t.id===e})||null},getCategoryById:function(e){return this.options.entities.categories.find(function(t){return t.id===e})||null},getPackageById:function(e){return this.options.entities.packages.find(function(t){return t.id===e})||null},getProviderService:function(e,t){var n=this.getProviderById(e).serviceList.find(function(e){return e.id===parseInt(t)});return n?Object.assign(this.getServiceById(t),n):null},getServiceProviders:function(e,t){var n=this;return void 0!==t&&t?this.options.entities.employees.filter(function(t){return-1!==t.serviceList.map(function(e){return e.id}).indexOf(e)}):this.options.entities.employees.filter(function(t){return-1!==t.serviceList.filter(function(e){return n.isEmployeeService(t.id,e.id)}).map(function(e){return e.id}).indexOf(e)})},getServiceLocations:function(e,t){var n=this,o=[];return this.options.entities.employees.filter(function(t){return-1!==t.serviceList.map(function(e){return e.id}).indexOf(e)}).forEach(function(e){o=n.getProviderLocations(e.id,t).map(function(e){return e.id}).concat(o)}),this.options.entities.locations.filter(function(e){return-1!==o.indexOf(e.id)})},getProviderLocations:function(e,t){var n=this,o=[this.getProviderById(e).locationId];if(e in this.options.entitiesRelations)for(var i in this.options.entitiesRelations[e])this.options.entitiesRelations[e].hasOwnProperty(i)&&(o=o.concat(this.options.entitiesRelations[e][i]));return o=o.filter(function(e,t,n){return n.indexOf(e)===t}),(void 0!==t&&t?this.options.entities.locations:this.options.entities.locations.filter(function(t){return n.isEmployeeLocation(e,t.id)})).filter(function(e){return-1!==o.indexOf(e.id)})},getLocationProviders:function(e,t){var n=this,o=[];return this.options.entities.employees.forEach(function(i){-1!==(void 0!==t&&t?n.getProviderLocations(i.id).filter(function(e){return n.isEmployeeLocation(i.id,e.id)}):n.getProviderLocations(i.id)).map(function(e){return e.id}).indexOf(e)&&o.push(i.id)}),o=o.filter(function(e,t,n){return n.indexOf(e)===t}),this.options.entities.employees.filter(function(e){return-1!==o.indexOf(e.id)})},getServicesFromCategories:function(e){var t=[];return e.map(function(e){return e.serviceList}).forEach(function(e){t=t.concat(e)}),t.sort(this.sortWithNull)},getCategoryServices:function(e){return this.options.entities.categories.find(function(t){return t.id===e}).serviceList},getCustomerInfo:function(e){var t=null;return"info"in e&&e.info?Object.assign({id:"customer"in e?e.customer.id:null},JSON.parse(e.info)):("customerId"in e?t=this.getCustomerById(e.customerId):"customer"in e&&(t=this.getCustomerById(e.customer.id)),null!==t?t:"customer"in e?e.customer:null)},isEmployeeServiceLocation:function(e,t,n){return e in this.options.entitiesRelations&&t in this.options.entitiesRelations[e]&&-1!==this.options.entitiesRelations[e][t].indexOf(n)},isEmployeeService:function(e,t){return e in this.options.entitiesRelations&&t in this.options.entitiesRelations[e]},isEmployeeLocation:function(e,t){var n=!1;if(e in this.options.entitiesRelations)for(var o in this.options.entitiesRelations[e])this.options.entitiesRelations[e].hasOwnProperty(o)&&-1!==this.options.entitiesRelations[e][o].indexOf(t)&&(n=!0);return n},getAvailableEntitiesIds:function(e,t){var n=this,o=[],i=[],r=[],a=null!==t.categoryId?e.categories.find(function(e){return e.id===t.categoryId}):null,s=a?a.serviceList.map(function(e){return e.id}):[];if(null!==t.categoryId&&0===s.length||null!==t.serviceId&&null!==t.employeeId&&!this.isEmployeeService(t.employeeId,t.serviceId)||null!==t.serviceId&&null!==t.employeeId&&null!==t.locationId&&!this.isEmployeeServiceLocation(t.employeeId,t.serviceId,t.locationId))return{services:[],locations:[],employees:[],categories:[]};var l=function(e){if(!n.options.entitiesRelations.hasOwnProperty(e))return"continue";var a=parseInt(e);if(null!==t.employeeId&&t.employeeId!==a||null!==t.locationId&&!n.isEmployeeLocation(a,t.locationId)||null!==t.serviceId&&!n.isEmployeeService(a,t.serviceId)||null!==t.categoryId&&0===s.filter(function(e){return n.isEmployeeService(a,e)}).length||null!==t.categoryId&&null!==t.locationId&&0===s.filter(function(e){return n.isEmployeeServiceLocation(a,e,t.locationId)}).length||null!==t.serviceId&&null!==t.locationId&&!n.isEmployeeServiceLocation(a,t.serviceId,t.locationId))return"continue";for(var l in-1===i.indexOf(a)&&i.push(a),n.options.entitiesRelations[a])if(n.options.entitiesRelations[a].hasOwnProperty(l)){var c=parseInt(l);null!==t.serviceId&&t.serviceId!==c||null!==t.categoryId&&-1===s.indexOf(c)||null!==t.locationId&&!n.isEmployeeServiceLocation(a,c,t.locationId)||(-1===o.indexOf(c)&&o.push(c),n.options.entitiesRelations[a][c].length&&n.options.entitiesRelations[a][c].forEach(function(e){null!==t.locationId&&t.locationId!==e||-1===r.indexOf(e)&&r.push(e)}))}};for(var c in this.options.entitiesRelations)l(c);return{services:o,locations:r,employees:i,categories:e.categories.filter(function(e){return e.serviceList.map(function(e){return e.id}).filter(function(e){return-1!==o.indexOf(e)}).length>0}).map(function(e){return e.id})}},getParsedCustomPricing:function(e){return null===e.customPricing?e.customPricing={enabled:!1,durations:[]}:"object"!==r(e.customPricing)&&(e.customPricing=this.getArrayCustomPricing(e.customPricing)),e.customPricing},filterEntities:function(e,t){var n=this,o=this.getAvailableEntitiesIds(e,t);this.options.entities.employees=e.employees.filter(function(e){return-1!==o.employees.indexOf(e.id)&&e.serviceList.filter(function(e){return-1!==o.services.indexOf(e.id)}).length>0}),this.options.entities.employees.forEach(function(e){e.fullName=e.firstName+" "+e.lastName,e.serviceList.forEach(function(e){e.customPricing=n.getParsedCustomPricing(e)})}),this.options.entities.categories=e.categories,this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories).filter(function(e){return e.show&&-1!==o.services.indexOf(e.id)}),this.options.entities.services.forEach(function(e){e.extras.forEach(function(e){e.extraId=e.id}),e.customPricing=n.getParsedCustomPricing(e)}),this.options.entities.locations=e.locations.filter(function(e){return-1!==o.locations.indexOf(e.id)}),this.options.entities.customFields=e.customFields;var i=this.options.entities.services.map(function(e){return e.id});if("packages"in e&&(!("show"in t)||"services"!==t.show)){e.packages.forEach(function(e){"bookableIds"in e||(e.bookableIds=e.bookable.map(function(e){return e.service.id}))});var r=e.packages.filter(function(e){return"visible"===e.status}).filter(function(e){return e.bookableIds.filter(function(e){return-1!==i.indexOf(e)}).length}),a=this.options.entities.locations.map(function(e){return e.id}),s=this.options.entities.employees.map(function(e){return e.id}),l=[];if(r.forEach(function(t){var o=!1;"availableBookableInfo"in t||(t.availableBookableInfo=[]),t.bookable.forEach(function(i){var r=!1;(0===i.minimumScheduled&&i.maximumScheduled>0||i.minimumScheduled>0&&0===i.maximumScheduled||i.minimumScheduled>0&&i.maximumScheduled>0)&&(o=!0,r=!0),i.hasSlots=r;var c=i.providers.length;if(!e.locations.length||n.options.entities.locations.length){var u=i.locations.length;!c||(i.providers=i.providers.filter(function(e){return-1!==s.indexOf(e.id)&&u?i.locations.filter(function(t){return n.isEmployeeServiceLocation(e.id,i.service.id,t.id)}).length:!n.options.entities.locations.length||n.options.entities.locations.filter(function(t){return n.isEmployeeServiceLocation(e.id,i.service.id,t.id)}).length}),i.providers.length)?(u&&(i.locations=i.locations.filter(function(e){return-1!==a.indexOf(e.id)&&(c?i.providers.filter(function(t){return n.isEmployeeServiceLocation(t.id,i.service.id,e.id)}).length:n.options.entities.employees.filter(function(t){return n.isEmployeeServiceLocation(t.id,i.service.id,e.id)}).length)}),i.locations.length||l.push(t.id)),-1===t.availableBookableInfo.map(function(e){return e.serviceId}).indexOf(i.service.id)&&t.availableBookableInfo.push({serviceId:i.service.id,serviceName:n.getNameTranslated(i.service),serviceQuantity:i.quantity,providersCount:i.providers.length})):l.push(t.id)}else l.push(t.id)}),t.bookable=t.bookable.filter(function(e){return e.hasSlots}),t.hasSlots=o}),this.options.entities.packages=r.filter(function(e){return-1===l.indexOf(e.id)}),"show"in t&&"packages"===t.show){var c=[];this.options.entities.packages.forEach(function(e){e.bookable.forEach(function(e){c.push(e.service.categoryId)})}),this.options.entities.categories=this.options.entities.categories.filter(function(e){return-1!==c.indexOf(e.id)})}}},processEntities:function(e){var t=this;this.options.entitiesRelations=e.entitiesRelations,this.options.isFrontEnd?("packages"in e&&e.packages.length&&(this.responseEntities.employees=e.employees,this.responseEntities.categories=e.categories,this.responseEntities.locations=e.locations,this.responseEntities.customFields=e.customFields,this.responseEntities.services=this.getServicesFromCategories(this.responseEntities.categories),this.responseEntities.packages=e.packages?e.packages.filter(function(e){return e.available}):[],this.responseEntities.daysOff=e.settings?e.settings.daysOff:[],e.packages=e.packages.filter(function(e){return e.available}),this.params&&this.params.sort||(e.packages=e.packages.sort(function(e,t){return e.position-t.position}))),this.filterEntities(e,this.getShortCodeEntityIds())):(this.options.entities.employees=e.employees,this.options.entities.categories=e.categories,this.options.entities.locations=e.locations,this.options.entities.customers=e.customers,this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories),this.options.entities.resources=e.resources,this.options.entities.packages=e.packages,this.options.entities.customFields=e.customFields,this.options.entities.coupons=e.coupons,this.options.entities.spaces=e.spaces,this.options.entities.services.forEach(function(e){e.extras.forEach(function(e){e.extraId=e.id})}),this.options.availableEntitiesIds=this.getAvailableEntitiesIds(e,{categoryId:null,serviceId:null,employeeId:null,locationId:null})),this.options.entities.employees.forEach(function(e){e.serviceList.forEach(function(e){e.customPricing=t.getParsedCustomPricing(e)})}),this.options.entities.services.forEach(function(e){e.customPricing=t.getParsedCustomPricing(e)}),"settings"in e&&(this.options.entities.settings=e.settings),this.options.entities.tags="tags"in e?e.tags:[]},getShortCodeEntityIds:function(){return this.$root.shortcodeData.booking?{categoryId:"category"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.category:null,serviceId:"service"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.service:null,employeeId:"employee"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.employee:null,locationId:"location"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.location:null,show:"show"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.show:null}:{categoryId:null,serviceId:null,employeeId:null,locationId:null,show:null}},entitiesLoaded:function(){return"ameliaAppointmentEntities"in window||"ameliaEntities"in window},fillCachedEntities:function(e){var t=this.getServicesFromCategories(e.categories);e.employees.forEach(function(e){e.serviceList.forEach(function(e){Object.assign(e,t.find(function(t){return t.id===e.id}),{price:e.price,customPricing:e.customPricing,minCapacity:e.minCapacity,maxCapacity:e.maxCapacity})})}),"packages"in e&&e.packages.forEach(function(e){e.bookable.forEach(function(e){var n=t.find(function(t){return t.id===e.service.id});n&&(e.service=JSON.parse(JSON.stringify(n)))})})},fetchEntities:function(e,t){var n=this,o={params:this.getAppropriateUrlParams({types:t.types})};if(t.page?o.params.page=t.page:"isFrontEnd"in t&&t.isFrontEnd&&(o.params.page="booking"),void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(o=Object.assign(o,this.getAuthorizationHeaderObject()),Object.assign(o.params,{source:"cabinet-"+this.$store.state.cabinet.cabinetType})),t.isPanel||"calendar"===o.params.page||this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",o).then(function(o){n.options.isFrontEnd=t.isFrontEnd,window.ameliaAppointmentEntities=o.data.data;var i=JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));n.fillCachedEntities(i),n.processEntities(i),n.$root.useTranslations&&n.translateEntities(i);e(!0)}).catch(function(t){console.log(t);e(!1)});else var i=setInterval(function(){if(n.entitiesLoaded()){clearInterval(i),n.options.isFrontEnd=t.isFrontEnd;var o="ameliaEntities"in window?JSON.parse(JSON.stringify(window.ameliaEntities)):JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));n.fillCachedEntities(o),n.processEntities(o),n.$root.useTranslations&&n.translateEntities(o);e(!0)}},1e3)},getFilteredEntities:function(e,t,n){var o=this,i=this.appointment&&this.appointment.id&&this.appointment[n]?this.appointment[n]:null;return this.options.entities[t].forEach(function(t){t.disabled=-1===e.indexOf(t.id)}),this.options.entities[t].filter(function(e){return-1!==o.options.availableEntitiesIds[t].indexOf(e.id)||null!==i&&i===e.id})}},computed:{visibleLocations:function(){return this.options.entities.locations.filter(function(e){return"visible"===e.status})},visibleEmployees:function(){return this.options.entities.employees.filter(function(e){return"visible"===e.status})},visibleCustomers:function(){return this.options.entities.customers.filter(function(e){return"visible"===e.status})},visibleServices:function(){return this.options.entities.services.filter(function(e){return"visible"===e.status}).sort(this.sortWithNull)},employeesFiltered:function(){var e=this,t=void 0!==this.appointment&&"bookings"in this.appointment&&this.appointment.bookings.length?this.appointment.bookings[0].persons:null,n=this.visibleEmployees.filter(function(n){return n.serviceList.filter(function(o){return"visible"===o.status&&(null===t||o.maxCapacity>=t)&&(!e.appointment.serviceId||e.isEmployeeService(n.id,o.id)&&o.id===e.appointment.serviceId)&&(!e.appointment.locationId||e.isEmployeeServiceLocation(n.id,o.id,e.appointment.locationId))&&(!e.appointment.categoryId||n.serviceList.filter(function(t){return"visible"===t.status&&t.categoryId===e.appointment.categoryId}).length>0)}).length>0});return this.options.isFrontEnd?n:this.getFilteredEntities(n.map(function(e){return e.id}),"employees","providerId")},servicesFiltered:function(){var e=this,t=[];if(this.appointment.providerId){var n=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId});t=void 0!==n?n.serviceList.filter(function(e){return"visible"===e.status}).map(function(e){return e.id}):[]}var o=this.visibleServices.filter(function(n){return!(e.appointment.providerId&&-1===t.indexOf(n.id)||e.appointment.locationId&&!(e.employeesFiltered.filter(function(t){return e.isEmployeeServiceLocation(t.id,n.id,e.appointment.locationId)}).length>0)||e.appointment.categoryId&&n.categoryId!==e.appointment.categoryId)});return this.options.isFrontEnd?o:this.getFilteredEntities(o.map(function(e){return e.id}),"services","serviceId")},sortWithNull:function(){return function(e,t){return e.position===t.position?0:null===e.position?1:null===t.position?-1:e.position<t.position?-1:1}},sortNotifications:function(){return function(e,t){return e.customName===t.customName?0:null===e.customName?1:null===t.customName?-1:e.id>t.id?-1:1}},locationsFiltered:function(){var e=this,t=[];if(this.appointment.providerId){var n=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId});t=void 0!==n?n.serviceList.filter(function(e){return"visible"===e.status}):[]}var o=null;this.appointment.categoryId&&(o=this.categoriesFiltered.find(function(t){return t.id===e.appointment.categoryId}));var i=this.visibleLocations.filter(function(n){return(!e.appointment.providerId||t.filter(function(t){return e.isEmployeeServiceLocation(e.appointment.providerId,t.id,n.id)}).length>0)&&(!e.appointment.serviceId||e.employeesFiltered.filter(function(t){return e.isEmployeeServiceLocation(t.id,e.appointment.serviceId,n.id)}).length>0)&&(!e.appointment.categoryId||void 0!==o&&e.employeesFiltered.filter(function(t){return t.serviceList.filter(function(i){return"visible"===i.status&&i.categoryId===o.id&&e.isEmployeeServiceLocation(t.id,i.id,n.id)}).length>0}).length>0)});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(e){return e.id}),"locations","locationId")},couponsFilteredService:function(){var e=this,t=[];return this.options.entities.coupons&&(t=this.options.entities.coupons.filter(function(e){return e.serviceList.length>0}),this.appointment.serviceId)?t.filter(function(t){return t.serviceList.find(function(t){return t.id===e.appointment.serviceId})}):t},couponsFilteredEvent:function(){var e=this,t=[];return this.options.entities.coupons&&(t=this.options.entities.coupons.filter(function(e){return e.eventList.length>0}),this.eventId)?t.filter(function(t){return t.eventList.find(function(t){return t.id===e.eventId})}):t},categoriesFiltered:function(){var e=this,t=null;this.appointment.providerId&&(t=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId}));var n=null;this.appointment.serviceId&&(n=this.servicesFiltered.find(function(t){return t.id===e.appointment.serviceId}));var o=this.options.entities.categories.filter(function(o){return(!e.appointment.serviceId||void 0!==n&&n.categoryId===o.id)&&(!e.appointment.locationId||o.serviceList.filter(function(t){return"visible"===t.status&&e.employeesFiltered.filter(function(n){return e.isEmployeeServiceLocation(n.id,t.id,e.appointment.locationId)}).length>0}).length>0)&&(!e.appointment.providerId||void 0!==t&&-1!==t.serviceList.filter(function(t){return"visible"===t.status&&e.isEmployeeService(e.appointment.providerId,t.id)}).map(function(e){return e.categoryId}).indexOf(o.id))});return this.options.isFrontEnd?o:this.getFilteredEntities(o.map(function(e){return e.id}),"categories","categoryId")}}}},703:function(e,t,n){(function(n){var o,i,r,a;a=void 0!==n?n:this.window||this.global,i=[],o=function(e){var t,n={},o=!!document.querySelector&&!!e.addEventListener,i={initClass:"js-inlinesvg",svgSelector:"img.svg"},r=function(){var e={},t=!1,n=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var i=function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t&&"[object Object]"===Object.prototype.toString.call(n[o])?e[o]=r(!0,e[o],n[o]):e[o]=n[o])};o>n;n++){i(arguments[n])}return e},a=function(e){var n=document.querySelectorAll(t.svgSelector),o=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}}(n.length,e);Array.prototype.forEach.call(n,function(e,n){var i=e.src||e.getAttribute("data-src"),r=e.attributes,a=new XMLHttpRequest;a.open("GET",i,!0),a.onload=function(){if(a.status>=200&&a.status<400){var n=(new DOMParser).parseFromString(a.responseText,"text/xml").getElementsByTagName("svg")[0];if(n.removeAttribute("xmlns:a"),n.removeAttribute("width"),n.removeAttribute("height"),n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("enable-background"),n.removeAttribute("xmlns:xlink"),n.removeAttribute("xml:space"),n.removeAttribute("version"),Array.prototype.slice.call(r).forEach(function(e){"src"!==e.name&&"alt"!==e.name&&n.setAttribute(e.name,e.value)}),n.classList?n.classList.add("inlined-svg"):n.className+=" inlined-svg",n.setAttribute("role","img"),r.longdesc){var i=document.createElementNS("http://www.w3.org/2000/svg","desc"),s=document.createTextNode(r.longdesc.value);i.appendChild(s),n.insertBefore(i,n.firstChild)}if(r.alt){n.setAttribute("aria-labelledby","title");var l=document.createElementNS("http://www.w3.org/2000/svg","title"),c=document.createTextNode(r.alt.value);l.appendChild(c),n.insertBefore(l,n.firstChild)}e.parentNode.replaceChild(n,e),o(t.svgSelector)}else console.error("There was an error retrieving the source of the SVG.")},a.onerror=function(){console.error("There was an error connecting to the origin server.")},a.send()})};return n.init=function(e,n){o&&(t=r(i,e||{}),a(n||function(){}),document.documentElement.className+=" "+t.initClass)},n}(a),void 0===(r="function"==typeof o?o.apply(t,i):o)||(e.exports=r)}).call(t,n(39))},704:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(r).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},705:function(e,t,n){var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(713),r={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e){for(var t=0;t<e.length;t++){var n=e[t],o=r[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(v(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,o=document.querySelector("style["+p+'~="'+e.id+'"]');if(o){if(c)return u;o.parentNode.removeChild(o)}if(f){var i=l++;o=s||(s=m()),t=y.bind(null,o,i,!1),n=y.bind(null,o,i,!0)}else o=m(),t=function(e,t){var n=t.css,o=t.media,i=t.sourceMap;o&&e.setAttribute("media",o);d.ssrId&&e.setAttribute(p,t.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,o),n=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else n()}}e.exports=function(e,t,n,o){c=n,d=o||{};var a=i(e,t);return h(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o];(l=r[s.id]).refs--,n.push(l)}t?h(a=i(e,t)):a=[];for(o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}};var g,b=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function y(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}},707:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{isCustomFieldVisible:function(e,t,n){switch(t){case"appointment":return-1!==e.services.map(function(e){return e.id}).indexOf(n)||e.allServices;case"event":return-1!==e.events.map(function(e){return e.id}).indexOf(n)||e.allEvents}return!1},getAllowedCustomFields:function(e,t,n){var o=[];this.options.entities.customFields.forEach(function(e){"services"===t&&e.allServices||"events"===t&&e.allEvents?o.push(parseInt(e.id)):e[t].forEach(function(t){t.id===n&&o.push(parseInt(e.id))})});var i={};for(var r in e)-1!==o.indexOf(parseInt(r))&&(i[r]=e[r]);return i},setBookingCustomFields:function(){if(this.appointment&&this.appointment.bookings&&this.appointment.bookings.length)for(var e=0;e<this.appointment.bookings.length;e++)for(var t=0;t<this.options.entities.customFields.length;t++)if(null===this.appointment.bookings[e].customFields&&(this.appointment.bookings[e].customFields={}),void 0!==this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]&&(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type=this.options.entities.customFields[t].type),void 0!==this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]&&"datepicker"===this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type&&this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value&&(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value=this.$moment(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value).toDate()),"content"!==this.options.entities.customFields[t].type&&void 0===this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]){var n="";"checkbox"===this.options.entities.customFields[t].type&&(n=[]),"datepicker"===this.options.entities.customFields[t].type&&(n=null),this.$set(this.appointment.bookings[e].customFields,this.options.entities.customFields[t].id,{label:this.options.entities.customFields[t].label,value:n,type:this.options.entities.customFields[t].type})}},getCustomFieldOptions:function(e){return e.map(function(e){return e.label})},getCustomFieldValue:function(e,t){return Array.isArray(e)?e.join("; "):"datepicker"!==t?e:e?this.getFrontedFormattedDate(e):null},getCustomFieldFileURL:function(e,t,n){return this.$root.getAjaxUrl+"/fields/"+e+"/"+t+"/"+n+"&source=cabinet-provider"}}}},708:function(e,t,n){"use strict";(function(t){var o=n(698),i=n(752),r={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(717):void 0!==t&&(s=n(717)),s),transformRequest:[function(e,t){return i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){l.headers[e]={}}),o.forEach(["post","put","patch"],function(e){l.headers[e]=o.merge(r)}),e.exports=l}).call(t,n(142))},709:function(e,t,n){var o=n(335)(n(723),n(724),!1,null,null,null);e.exports=o.exports},711:function(e,t,n){"use strict";var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=s(n(749)),r=s(n(767)),a=s(n(768));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.progress=0,this.isPending=!1,this.errors=new r.default,["post","patch","put","delete"].forEach(function(e){t[e]=function(n,o){return t.submit(e,n,o)}})}return o(e,[{key:"submit",value:function(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.toLowerCase(),this.hasFiles(i)&&(i=(0,a.default)(i),"post"!==t&&(i.append("_method",t.toUpperCase()),t="post")),this.progress=0,this.errors.clear(),this.isPending=!0,new Promise(function(r,a){e.defaults.axios[t](n,i,o.config()).then(function(e){r(e.data)}).catch(function(e){o.handleError(e),a(e)}).then(function(){return o.isPending=!1})})}},{key:"hasFiles",value:function(e){for(var t in e)if(this.fileIsPresent(e[t]))return!0;return!1}},{key:"fileIsPresent",value:function(e){return e instanceof File||e instanceof Array&&e.some(function(e){return e instanceof File})}},{key:"save",value:function(e,t){var n="post";return t.hasOwnProperty("id")&&(n="patch",e=this.urlToPatchResource(e,t)),this[n](e,t)}},{key:"urlToPatchResource",value:function(e,t){return e.replace(/\/+$/,"")+"/"+t.id}},{key:"config",value:function(){var e=this;return{onUploadProgress:function(t){e.progress=Math.round(100*t.loaded/t.total)}}}},{key:"handleError",value:function(e){if(e.response&&422===e.response.status){var t=e.response.data.hasOwnProperty("errors")?e.response.data.errors:e.response.data;this.errors.set(t)}}}]),e}();l.defaults={axios:i.default},e.exports=l},712:function(e,t,n){"use strict";t.a={data:function(){return{screenWidth:window.innerWidth}},mounted:function(){var e=this;window.onresize=function(){e.screenWidth=window.innerWidth}}}},713:function(e,t){e.exports=function(e,t){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],a=r[0],s={id:e+":"+i,css:r[1],media:r[2],sourceMap:r[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}},714:function(e,t,n){"use strict";t.a={data:function(){return{countries:[{id:1,iso:"af",nicename:"Afghanistan",phonecode:93,format:"070 123 4567"},{id:2,iso:"al",nicename:"Albania",phonecode:355,format:"066 123 4567"},{id:3,iso:"dz",nicename:"Algeria",phonecode:213,format:"0551 23 45 67"},{id:4,iso:"as",nicename:"American Samoa",phonecode:1,format:"(684) 733 1234"},{id:5,iso:"ad",nicename:"Andorra",phonecode:376,format:"312 345"},{id:6,iso:"ao",nicename:"Angola",phonecode:244,format:"923 123 456"},{id:7,iso:"ai",nicename:"Anguilla",phonecode:1,format:"(264) 235 1234"},{id:8,iso:"ag",nicename:"Antigua and Barbuda",phonecode:1,format:"(268) 464 1234"},{id:9,iso:"ar",nicename:"Argentina",phonecode:54,format:"9 (11) 1234 567"},{id:10,iso:"am",nicename:"Armenia",phonecode:374,format:"077 123 456"},{id:11,iso:"aw",nicename:"Aruba",phonecode:297,format:"560 1234"},{id:12,iso:"au",nicename:"Australia",phonecode:61,format:"0412 345 678"},{id:13,iso:"at",nicename:"Austria",phonecode:43,format:"0664 123456"},{id:14,iso:"az",nicename:"Azerbaijan",phonecode:994,format:"040 123 45 67"},{id:15,iso:"bs",nicename:"Bahamas",phonecode:1,format:"(242) 359 1234"},{id:16,iso:"bh",nicename:"Bahrain",phonecode:973,format:"3600 1234"},{id:17,iso:"bd",nicename:"Bangladesh",phonecode:880,format:"018 1234 5678"},{id:18,iso:"bb",nicename:"Barbados",phonecode:1,format:"(246) 250 1234"},{id:19,iso:"by",nicename:"Belarus",phonecode:375,format:"029 491 1911"},{id:20,iso:"be",nicename:"Belgium",phonecode:32,format:"0470 123 456"},{id:21,iso:"bz",nicename:"Belize",phonecode:501,format:"622 1234"},{id:22,iso:"bj",nicename:"Benin",phonecode:229,format:"90 123 456"},{id:23,iso:"bm",nicename:"Bermuda",phonecode:1,format:"(441) 370 1234"},{id:24,iso:"bt",nicename:"Bhutan",phonecode:975,format:"17 123 456"},{id:25,iso:"bo",nicename:"Bolivia",phonecode:591,format:"7 123 4567"},{id:26,iso:"ba",nicename:"Bosnia and Herzegovina",phonecode:387,format:"061 123 456"},{id:27,iso:"bw",nicename:"Botswana",phonecode:267,format:"71 123 456"},{id:28,iso:"br",nicename:"Brazil",phonecode:55,format:"(11) 9 1234 5678"},{id:29,iso:"vg",nicename:"British Virgin Islands",phonecode:1,format:"(284) 300 1234"},{id:30,iso:"bn",nicename:"Brunei",phonecode:673,format:"712 3456"},{id:31,iso:"bg",nicename:"Bulgaria",phonecode:359,format:"087 123 4567"},{id:32,iso:"bf",nicename:"Burkina Faso",phonecode:226,format:"70 12 34 56"},{id:33,iso:"bi",nicename:"Burundi",phonecode:257,format:"79 56 12 34"},{id:34,iso:"kh",nicename:"Cambodia",phonecode:855,format:"091 234 567"},{id:35,iso:"cm",nicename:"Cameroon",phonecode:237,format:"6 71 23 45 67"},{id:36,iso:"ca",nicename:"Canada",phonecode:1,format:"(204) 123 4567"},{id:37,iso:"cv",nicename:"Cape Verde",phonecode:238,format:"991 12 34"},{id:38,iso:"ky",nicename:"Cayman Islands",phonecode:1,format:"(345) 323 1234"},{id:39,iso:"cf",nicename:"Central African Republic",phonecode:236,format:"70 01 23 45"},{id:40,iso:"td",nicename:"Chad",phonecode:235,format:"63 01 23 45"},{id:41,iso:"cl",nicename:"Chile",phonecode:56,format:"09 6123 4567"},{id:42,iso:"cn",nicename:"China",phonecode:86,format:"131 2345 6789"},{id:43,iso:"co",nicename:"Colombia",phonecode:57,format:"321 1234567"},{id:44,iso:"km",nicename:"Comoros",phonecode:269,format:"321 23 45"},{id:45,iso:"cd",nicename:"Congo (DRC)",phonecode:243,format:"0991 234 567"},{id:46,iso:"cg",nicename:"Congo (Republic)",phonecode:242,format:"06 123 4567"},{id:47,iso:"ck",nicename:"Cook Islands",phonecode:682,format:"71 234"},{id:48,iso:"cr",nicename:"Costa Rica",phonecode:506,format:"8312 3456"},{id:49,iso:"ci",nicename:"Cote D'Ivoire",phonecode:225,format:"01 23 45 67"},{id:50,iso:"hr",nicename:"Croatia",phonecode:385,format:"091 234 5678"},{id:51,iso:"cu",nicename:"Cuba",phonecode:53,format:"05 1234567"},{id:57,iso:"cy",nicename:"Cyprus",phonecode:357,format:"96 123456"},{id:58,iso:"cz",nicename:"Czech Republic",phonecode:420,format:"601 123 456"},{id:59,iso:"dk",nicename:"Denmark",phonecode:45,format:"20 12 34 56"},{id:60,iso:"dj",nicename:"Djibouti",phonecode:253,format:"77 83 10 01"},{id:61,iso:"dm",nicename:"Dominica",phonecode:1,format:"(767) 225 1234"},{id:62,iso:"do",nicename:"Dominican Republic",phonecode:1,format:"(809) 234 5678"},{id:63,iso:"ec",nicename:"Ecuador",phonecode:593,format:"099 123 4567"},{id:64,iso:"eg",nicename:"Egypt",phonecode:20,format:"0100 123 4567"},{id:65,iso:"sv",nicename:"El Salvador",phonecode:503,format:"7012 3456"},{id:66,iso:"gq",nicename:"Equatorial Guinea",phonecode:240,format:"222 123 456"},{id:67,iso:"er",nicename:"Eritrea",phonecode:291,format:"07 123 456"},{id:68,iso:"ee",nicename:"Estonia",phonecode:372,format:"5123 4567"},{id:69,iso:"et",nicename:"Ethiopia",phonecode:251,format:"091 123 4567"},{id:70,iso:"fk",nicename:"Falkland Islands (Malvinas)",phonecode:500,format:"51234"},{id:71,iso:"fo",nicename:"Faroe Islands",phonecode:298,format:"211234"},{id:72,iso:"fj",nicename:"Fiji",phonecode:679,format:"701 2345"},{id:73,iso:"fi",nicename:"Finland",phonecode:358,format:"041 2345678"},{id:74,iso:"fr",nicename:"France",phonecode:33,format:"06 12 34 56 78"},{id:75,iso:"gf",nicename:"French Guiana",phonecode:594,format:"0694 20 12 34"},{id:76,iso:"pf",nicename:"French Polynesia",phonecode:689,format:"87 12 34 56"},{id:77,iso:"ga",nicename:"Gabon",phonecode:241,format:"06 03 12 34"},{id:78,iso:"gm",nicename:"Gambia",phonecode:220,format:"301 2345"},{id:79,iso:"ge",nicename:"Georgia",phonecode:995,format:"555 12 34 56"},{id:80,iso:"de",nicename:"Germany",phonecode:49,format:"01512 3456789"},{id:81,iso:"gh",nicename:"Ghana",phonecode:233,format:"023 123 4567"},{id:82,iso:"gi",nicename:"Gibraltar",phonecode:350,format:"57123456"},{id:83,iso:"gr",nicename:"Greece",phonecode:30,format:"691 234 5678"},{id:84,iso:"gl",nicename:"Greenland",phonecode:299,format:"22 12 34"},{id:85,iso:"gp",nicename:"Guadeloupe",phonecode:590,format:"690 123 456"},{id:87,iso:"gu",nicename:"Guam",phonecode:1,format:"(671) 300 1234"},{id:88,iso:"gt",nicename:"Guatemala",phonecode:502,format:"5123 4567"},{id:89,iso:"gg",nicename:"Guernsey",phonecode:44,format:"07781 123456"},{id:90,iso:"gn",nicename:"Guinea",phonecode:224,format:"601 12 34 56"},{id:91,iso:"gw",nicename:"Guinea-Bissau",phonecode:245,format:"955 012 345"},{id:92,iso:"gy",nicename:"Guyana",phonecode:592,format:"609 1234"},{id:93,iso:"ht",nicename:"Haiti",phonecode:509,format:"34 10 1234"},{id:94,iso:"hn",nicename:"Honduras",phonecode:504,format:"9123 4567"},{id:95,iso:"hk",nicename:"Hong Kong",phonecode:852,format:"5123 4567"},{id:96,iso:"hu",nicename:"Hungary",phonecode:36,format:"(20) 123 4567"},{id:97,iso:"is",nicename:"Iceland",phonecode:354,format:"611 1234"},{id:98,iso:"in",nicename:"India",phonecode:91,format:"099876 54321"},{id:99,iso:"id",nicename:"Indonesia",phonecode:62,format:"0812 345 678"},{id:100,iso:"ir",nicename:"Iran",phonecode:98,format:"0912 345 6789"},{id:101,iso:"iq",nicename:"Iraq",phonecode:964,format:"0791 234 5678"},{id:102,iso:"ie",nicename:"Ireland",phonecode:353,format:"085 012 3456"},{id:103,iso:"im",nicename:"Isle of Man",phonecode:44,format:"07924 123456"},{id:104,iso:"il",nicename:"Israel",phonecode:972,format:"050 123 4567"},{id:105,iso:"it",nicename:"Italy",phonecode:39,format:"312 345 6789"},{id:106,iso:"jm",nicename:"Jamaica",phonecode:1,format:"(876) 210 1234"},{id:107,iso:"jp",nicename:"Japan",phonecode:81,format:"090 1234 5678"},{id:108,iso:"je",nicename:"Jersey",phonecode:44,format:"07797 123456"},{id:109,iso:"jo",nicename:"Jordan",phonecode:962,format:"07 9012 3456"},{id:110,iso:"kz",nicename:"Kazakhstan",phonecode:7,format:"(771) 123 4567"},{id:111,iso:"ke",nicename:"Kenya",phonecode:254,format:"0712 123456"},{id:112,iso:"ki",nicename:"Kiribati",phonecode:686,format:"72012345"},{id:241,iso:"xk",nicename:"Kosovo",phonecode:383,format:"044 1234567"},{id:113,iso:"kw",nicename:"Kuwait",phonecode:965,format:"500 12345"},{id:114,iso:"kg",nicename:"Kyrgyzstan",phonecode:996,format:"0700 123 456"},{id:115,iso:"la",nicename:"Laos",phonecode:856,format:"020 23 123 456"},{id:116,iso:"lv",nicename:"Latvia",phonecode:371,format:"21 234 567"},{id:117,iso:"lb",nicename:"Lebanon",phonecode:961,format:"71 123 456"},{id:118,iso:"ls",nicename:"Lesotho",phonecode:266,format:"5012 3456"},{id:119,iso:"lr",nicename:"Liberia",phonecode:231,format:"077 012 3456"},{id:120,iso:"ly",nicename:"Libya",phonecode:218,format:"091 2345678"},{id:121,iso:"li",nicename:"Liechtenstein",phonecode:423,format:"660 234 567"},{id:122,iso:"lt",nicename:"Lithuania",phonecode:370,format:"612 345 67"},{id:123,iso:"lu",nicename:"Luxembourg",phonecode:352,format:"628 123 456"},{id:124,iso:"mo",nicename:"Macao",phonecode:853,format:"6612 3456"},{id:125,iso:"mk",nicename:"Macedonia (FYROM)",phonecode:389,format:"072 345 678"},{id:126,iso:"mg",nicename:"Madagascar",phonecode:261,format:"032 12 345 67"},{id:127,iso:"mw",nicename:"Malawi",phonecode:265,format:"0991 23 45 67"},{id:128,iso:"my",nicename:"Malaysia",phonecode:60,format:"012 345 6789"},{id:129,iso:"mv",nicename:"Maldives",phonecode:960,format:"771 2345"},{id:130,iso:"ml",nicename:"Mali",phonecode:223,format:"65 01 23 45"},{id:131,iso:"mt",nicename:"Malta",phonecode:356,format:"9696 1234"},{id:132,iso:"mh",nicename:"Marshall Islands",phonecode:692,format:"235 1234"},{id:133,iso:"mq",nicename:"Martinique",phonecode:596,format:"0696 20 12 34"},{id:134,iso:"mr",nicename:"Mauritania",phonecode:222,format:"22 12 34 56"},{id:135,iso:"mu",nicename:"Mauritius",phonecode:230,format:"5251 2345"},{id:136,iso:"yt",nicename:"Mayotte",phonecode:269,format:"0639 12 34 56"},{id:137,iso:"mx",nicename:"Mexico",phonecode:52,format:"222 123 4567"},{id:138,iso:"fm",nicename:"Micronesia",phonecode:691,format:"350 1234"},{id:139,iso:"md",nicename:"Moldova",phonecode:373,format:"0621 12 345"},{id:140,iso:"mc",nicename:"Monaco",phonecode:377,format:"06 12 34 56 78"},{id:141,iso:"mn",nicename:"Mongolia",phonecode:976,format:"8812 3456"},{id:142,iso:"me",nicename:"Montenegro",phonecode:382,format:"067 622 901"},{id:143,iso:"ms",nicename:"Montserrat",phonecode:1,format:"(664) 492 3456"},{id:144,iso:"ma",nicename:"Morocco",phonecode:212,format:"0650 123456"},{id:145,iso:"mz",nicename:"Mozambique",phonecode:258,format:"82 123 4567"},{id:146,iso:"mm",nicename:"Myanmar",phonecode:95,format:"09 212 3456"},{id:147,iso:"na",nicename:"Namibia",phonecode:264,format:"081 123 4567"},{id:149,iso:"np",nicename:"Nepal",phonecode:977,format:"984 1234567"},{id:150,iso:"nl",nicename:"Netherlands",phonecode:31,format:"06 12345678"},{id:151,iso:"nc",nicename:"New Caledonia",phonecode:687,format:"75 12 34"},{id:152,iso:"nz",nicename:"New Zealand",phonecode:64,format:"021 123 4567"},{id:153,iso:"ni",nicename:"Nicaragua",phonecode:505,format:"8123 4567"},{id:154,iso:"ne",nicename:"Niger",phonecode:227,format:"93 12 34 56"},{id:155,iso:"ng",nicename:"Nigeria",phonecode:234,format:"0802 123 4567"},{id:156,iso:"nu",nicename:"Niue",phonecode:683,format:"1234"},{id:157,iso:"nf",nicename:"Norfolk Island",phonecode:672,format:"3 81234"},{id:160,iso:"no",nicename:"Norway",phonecode:47,format:"406 12 345"},{id:161,iso:"om",nicename:"Oman",phonecode:968,format:"9212 3456"},{id:162,iso:"pk",nicename:"Pakistan",phonecode:92,format:"0301 2345678"},{id:163,iso:"pw",nicename:"Palau",phonecode:680,format:"620 1234"},{id:164,iso:"ps",nicename:"Palestine",phonecode:970,format:"0599 123 456"},{id:165,iso:"pa",nicename:"Panama",phonecode:507,format:"6001 2345"},{id:166,iso:"pg",nicename:"Papua New Guinea",phonecode:675,format:"681 2345"},{id:167,iso:"py",nicename:"Paraguay",phonecode:595,format:"0961 456789"},{id:168,iso:"pe",nicename:"Peru",phonecode:51,format:"912 345 678"},{id:169,iso:"ph",nicename:"Philippines",phonecode:63,format:"0905 123 4567"},{id:170,iso:"pl",nicename:"Poland",phonecode:48,format:"512 345 678"},{id:171,iso:"pt",nicename:"Portugal",phonecode:351,format:"912 345 678"},{id:172,iso:"pr",nicename:"Puerto Rico",phonecode:1,format:"(787) 234 5678"},{id:173,iso:"qa",nicename:"Qatar",phonecode:974,format:"3312 3456"},{id:174,iso:"re",nicename:"Réunion",phonecode:262,format:"639 123456"},{id:175,iso:"ro",nicename:"Romania",phonecode:40,format:"0712 345 678"},{id:176,iso:"ru",nicename:"Russia",phonecode:7,format:"(912) 123 4567",priority:1},{id:177,iso:"rw",nicename:"Rwanda",phonecode:250,format:"0720 123 456"},{id:180,iso:"kn",nicename:"Saint Kitts and Nevis",phonecode:1,format:"(869) 765 2917"},{id:181,iso:"lc",nicename:"Saint Lucia",phonecode:1,format:"(758) 284 5678"},{id:184,iso:"vc",nicename:"Saint Vincent and the Grenadines",phonecode:1,format:"(784) 430 1234"},{id:185,iso:"ws",nicename:"Samoa",phonecode:684,format:"601234"},{id:186,iso:"sm",nicename:"San Marino",phonecode:378,format:"66 66 12 12"},{id:187,iso:"st",nicename:"Sao Tome and Principe",phonecode:239,format:"981 2345"},{id:188,iso:"sa",nicename:"Saudi Arabia",phonecode:966,format:"051 234 5678"},{id:189,iso:"sn",nicename:"Senegal",phonecode:221,format:"70 123 45 67"},{id:190,iso:"rs",nicename:"Serbia",phonecode:381,format:"060 1234567"},{id:191,iso:"sc",nicename:"Seychelles",phonecode:248,format:"2 510 123"},{id:192,iso:"sl",nicename:"Sierra Leone",phonecode:232,format:"(025) 123456"},{id:193,iso:"sg",nicename:"Singapore",phonecode:65,format:"8123 4567"},{id:195,iso:"sk",nicename:"Slovakia",phonecode:421,format:"0912 123 456"},{id:196,iso:"si",nicename:"Slovenia",phonecode:386,format:"031 234 567"},{id:197,iso:"sb",nicename:"Solomon Islands",phonecode:677,format:"74 21234"},{id:198,iso:"so",nicename:"Somalia",phonecode:252,format:"7 1123456"},{id:199,iso:"za",nicename:"South Africa",phonecode:27,format:"071 123 4567"},{id:200,iso:"kr",nicename:"South Korea",phonecode:82,format:"010 1234 567"},{id:201,iso:"ss",nicename:"South Sudan",phonecode:211,format:"0977 123 456"},{id:202,iso:"es",nicename:"Spain",phonecode:34,format:"612 34 56 78"},{id:203,iso:"lk",nicename:"Sri Lanka",phonecode:94,format:"071 234 5678"},{id:204,iso:"sd",nicename:"Sudan",phonecode:249,format:"091 123 1234"},{id:205,iso:"sr",nicename:"Suriname",phonecode:597,format:"741 2345"},{id:207,iso:"sz",nicename:"Swaziland",phonecode:268,format:"7612 3456"},{id:208,iso:"se",nicename:"Sweden",phonecode:46,format:"070 123 45 67"},{id:209,iso:"ch",nicename:"Switzerland",phonecode:41,format:"078 123 45 67"},{id:210,iso:"sy",nicename:"Syria",phonecode:963,format:"0944 567 890"},{id:211,iso:"tw",nicename:"Taiwan",phonecode:886,format:"0912 345 678"},{id:212,iso:"tj",nicename:"Tajikistan",phonecode:992,format:"917 123 456"},{id:213,iso:"tz",nicename:"Tanzania",phonecode:255,format:"740 123 456"},{id:214,iso:"th",nicename:"Thailand",phonecode:66,format:"081 234 5678"},{id:215,iso:"tl",nicename:"Timor-Leste",phonecode:670,format:"7721 2345"},{id:216,iso:"tg",nicename:"Togo",phonecode:228,format:"90 11 23 45"},{id:218,iso:"to",nicename:"Tonga",phonecode:676,format:"771 5123"},{id:219,iso:"tt",nicename:"Trinidad and Tobago",phonecode:868,format:"(868) 291 1234"},{id:220,iso:"tn",nicename:"Tunisia",phonecode:216,format:"20 123 456"},{id:221,iso:"tr",nicename:"Turkey",phonecode:90,format:"0501 234 56 78"},{id:222,iso:"tm",nicename:"Turkmenistan",phonecode:7370,format:"8 66 123456"},{id:223,iso:"tc",nicename:"Turks and Caicos Islands",phonecode:1,format:"(649) 231 1234"},{id:224,iso:"tv",nicename:"Tuvalu",phonecode:688,format:"901234"},{id:225,iso:"ug",nicename:"Uganda",phonecode:256,format:"0712 345678"},{id:226,iso:"ua",nicename:"Ukraine",phonecode:380,format:"039 123 4567"},{id:227,iso:"ae",nicename:"United Arab Emirates",phonecode:971,format:"050 123 4567"},{id:228,iso:"gb",nicename:"United Kingdom",phonecode:44,format:"07400 123456",priority:1},{id:229,iso:"us",nicename:"United States",phonecode:1,format:"(201) 555 0123",priority:1},{id:230,iso:"uy",nicename:"Uruguay",phonecode:598,format:"094 231 234"},{id:231,iso:"uz",nicename:"Uzbekistan",phonecode:998,format:"8 91 234 56 78"},{id:232,iso:"vu",nicename:"Vanuatu",phonecode:678,format:"591 2345"},{id:234,iso:"ve",nicename:"Venezuela",phonecode:58,format:"0412 1234567"},{id:235,iso:"vn",nicename:"Vietnam",phonecode:84,format:"091 234 56 78"},{id:236,iso:"vi",nicename:"Virgin Islands, U.S.",phonecode:1,format:"(340) 642 1234"},{id:237,iso:"ye",nicename:"Yemen",phonecode:967,format:"0712 345 678"},{id:238,iso:"zm",nicename:"Zambia",phonecode:260,format:"095 5123456"},{id:239,iso:"zw",nicename:"Zimbabwe",phonecode:263,format:"071 123 4567"},{id:240,iso:"ax",nicename:"Åland Islands",phonecode:358,format:"041 2345678"}]}}}},715:function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={methods:{getArrayCustomPricing:function(e){var t=null;if(void 0===e||null===e||""===e)t={enabled:!1,durations:{}};else if("object"===(void 0===e?"undefined":o(e))){if(Array.isArray(e.durations))return e;t=JSON.parse(JSON.stringify(e))}else t=JSON.parse(e);var n=[];return Object.keys(t.durations).forEach(function(e){n.push({duration:parseInt(e),price:t.durations[e].price,rules:t.durations[e].rules})}),{enabled:t.enabled,durations:n}},getJsonCustomPricing:function(e){var t={};return e&&e.durations.filter(function(e){return e.duration}).length>0?(e.durations.forEach(function(e){t[e.duration]={price:e.price,rules:e.rules}}),JSON.stringify({enabled:e.enabled,durations:t})):JSON.stringify({enabled:!1,durations:{}})}}}},716:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},717:function(e,t,n){"use strict";var o=n(698),i=n(753),r=n(755),a=n(756),s=n(757),l=n(718),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(758);e.exports=function(e){return new Promise(function(t,u){var d=e.data,p=e.headers;o.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(e.url)||(f=new window.XDomainRequest,h="onload",m=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var v=e.auth.username||"",g=e.auth.password||"";p.Authorization="Basic "+c(v+":"+g)}if(f.open(e.method.toUpperCase(),r(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[h]=function(){if(f&&(4===f.readyState||m)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:n,config:e,request:f};i(t,u,o),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},o.isStandardBrowserEnv()){var b=n(759),y=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in f&&o.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),u(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},718:function(e,t,n){"use strict";var o=n(754);e.exports=function(e,t,n,i,r){var a=new Error(e);return o(a,t,n,i,r)}},719:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},720:function(e,t,n){"use strict";function o(e){this.message=e}o.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},o.prototype.__CANCEL__=!0,e.exports=o},721:function(e,t,n){var o=n(335)(n(776),n(777),!1,null,null,null);e.exports=o.exports},722:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{checkTranslations:function(e,t){var n=""!==t?JSON.parse(e.translations)[t]:JSON.parse(e.translations);if(window.localeLanguage[0]in n)return n[window.localeLanguage[0]];for(var o=Object.keys(n),i=Object.keys(n).map(function(e){return e.length>2?e.slice(0,2):e}),r=window.localeLanguage[0].length>2?window.localeLanguage[0].slice(0,2):window.localeLanguage[0],a="",s=0;s<i.length;s++)if(i[s]===r){a=n[o[s]];break}return a},getTranslated:function(e,t){return e.translations&&JSON.parse(e.translations)[t]&&this.checkTranslations(e,t)?this.checkTranslations(e,t):e[t]},getNameTranslated:function(e){return e.translations&&JSON.parse(e.translations).name&&this.checkTranslations(e,"name")?this.checkTranslations(e,"name"):e.name},getTicketTranslated:function(e){return e.translations&&this.checkTranslations(e,"")?this.checkTranslations(e,""):e.name},getCfLabelTranslated:function(e){return e.translations&&this.checkTranslations(e,"name")?this.checkTranslations(e,"name"):e.label},getCfOptionTranslated:function(e){return e.translations&&this.checkTranslations(e,"")?this.checkTranslations(e,""):e.label},getDescriptionTranslated:function(e){return e.translations&&JSON.parse(e.translations).description&&this.checkTranslations(e,"description")?this.checkTranslations(e,"description"):e.description},translateEntities:function(e){var t=this;e.services&&e.services.length&&e.services.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})}),e.locations&&e.locations.length&&e.locations.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)}),e.packages&&e.packages.length&&e.packages.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.bookable.forEach(function(e){e.service.name=t.getNameTranslated(e.service),e.service.description=t.getDescriptionTranslated(e.service),"extras"in e.service&&e.service.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})}),e.categories&&e.categories.length&&e.categories.forEach(function(e){e.name=t.getNameTranslated(e),e.serviceList.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})}),e.events&&e.events.length&&e.events.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})}),e.customFields&&e.customFields.length&&e.customFields.forEach(function(e){e.label=t.getCfLabelTranslated(e),e.options.forEach(function(e){e.label=t.getCfOptionTranslated(e)})}),e.employees&&e.employees.length&&e.employees.forEach(function(e){e.firstName=t.getTranslated(e,"firstName"),e.lastName=t.getTranslated(e,"lastName"),e.serviceList.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})})}},computed:{}}},723:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(714);t.default={mixins:[o.a],template:"#phone-input",props:{savedPhone:{default:"",type:String},disabled:{default:!1,type:Boolean},countryPhoneIso:null,dropdownClass:{type:String,default:""}},data:function(){return{input:"",phone:"",value:this.$root.settings.general.phoneDefaultCountryCode,format:""}},mounted:function(){""!==this.value?this.savedPhone?this.fillInputWithSavedPhone():this.formatPhoneNumber():this.savedPhone&&this.fillInputWithSavedPhone()},methods:{onClear:function(){this.value="",this.phone="",this.$emit("phoneFormatted",this.phone,this.value)},changeCountry:function(){""!==this.value&&""!==this.input&&(this.input=""),this.formatPhoneNumber()},formatPhoneNumber:function(){var e=this;if(""!==this.value&&"auto"!==this.value){var t=this.countries.find(function(t){return t.iso===e.value});this.format=!0===this.disabled?"":t.format}var n=this.input;if("ar"===window.localeLanguage[0]&&(n=n.replace(/[٠-٩]/g,function(e){return"٠١٢٣٤٥٦٧٨٩".indexOf(e)})),""!==n){if(n.startsWith("+")){var o=parseInt(n.slice(1)),i=this.countries.filter(function(e){return e.phonecode===o});if(i.length){var r=null;1===o?r=i.find(function(e){return 229===e.id}):44===o?r=i.find(function(e){return 228===e.id}):7===o&&(r=i.find(function(e){return 176===e.id})),void 0!==r&&null!==r||(r=i[0]),this.value=r.iso}this.phone=n}else this.phone=void 0!==t?!0===n.startsWith("0")&&"it"!==this.countryPhoneIso?"+"+t.phonecode+n.slice(1).replace(/\D/g,""):"+"+t.phonecode+n.replace(/\D/g,""):n;this.$emit("phoneFormatted",this.phone,this.value)}else this.phone=n,this.$emit("phoneFormatted",this.phone,this.value)},fillInputWithSavedPhone:function(){var e=this,t=null;null!==this.countryPhoneIso&&void 0===(t=this.countries.find(function(t){return t.iso===e.countryPhoneIso}))&&(t=null);for(var n=1;null===t&&n<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,n))&&1===t.priority}))?t:null,n++;if(!t)for(n=1;null===t&&n<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,n))}))?t:null,n++;null!==t&&(this.value=t.iso,this.input=this.savedPhone.replace("+"+t.phonecode,""),this.input=t.format.startsWith("0")?"0"+this.input:this.input)}},watch:{input:function(){this.formatPhoneNumber()}},components:{}}},724:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-input",{attrs:{placeholder:e.format,disabled:e.disabled,type:"tel",name:"tel",autocomplete:"tel",clearable:""},on:{clear:e.onClear},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[n("el-select",{class:"am-selected-flag am-selected-flag-"+e.value,attrs:{slot:"prepend",placeholder:"","popper-class":e.$root.settings.customization.forms?e.dropdownClass:"",disabled:e.disabled},on:{change:e.changeCountry},slot:"prepend",model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.countries,function(t){return n("el-option",{key:t.id,attrs:{value:t.iso,label:" "}},[n("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),n("span",{staticClass:"am-phone-input-nicename"},[e._v(e._s(t.nicename))]),e._v(" "),n("span",{staticClass:"am-phone-input-phonecode"},[e._v("+"+e._s(t.phonecode))])])}),1)],1)},staticRenderFns:[]}},725:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{getPaymentType:function(e){return e.gateway&&"onSite"!==e.gateway?"partiallyPaid"===e.status?"deposit":"online":"onsite"},getPaymentData:function(e,t,n,o){var i={};if(i.paymentId=e.id,t){i.bookableType="appointment",i.bookings=t.bookings,i.bookingStart=t.bookingStart,i.bookableName=this.getServiceById(t.serviceId).name,i.bookable=this.getServiceById(t.serviceId),i.customerBookingId=e.customerBookingId;var r=this.getProviderById(t.providerId);r.fullName=r.firstName+" "+r.lastName,i.providers=[r],t.bookings.forEach(function(t,n){t.payments.forEach(function(o){o.id===e.id&&(i.customer=t.customer,i.bookingIndex=n)})})}return n&&(i.bookableType="event",i.bookings=n.bookings,i.bookingStart=n.periods[0].periodStart,i.bookableName=n.name,i.providers=n.providers,i.bookable=n,i.customerBookingId=e.customerBookingId,n.bookings.forEach(function(t,n){t.payments.forEach(function(o){o.id===e.id&&(i.customer=t.customer,i.bookingIndex=n)})})),o&&(i.bookableType="package",i.bookings=[],i.bookingStart=null,i.bookableName=o.name,i.providers=[],i.bookable=o,i.bookings=[],i.bookingIndex=0),i},getPaymentStatusNiceName:function(e){switch(e){case"paid":return this.$root.labels.paid;case"pending":return this.$root.labels.pending;case"partiallyPaid":return this.$root.labels.partially_paid;case"refunded":return this.$root.labels.refunded}},getPaymentGatewayNiceName:function(e){return"onSite"===e.gateway?this.$root.labels.on_site:"wc"===e.gateway?e.gatewayTitle:e.gateway?e.gateway.charAt(0).toUpperCase()+e.gateway.slice(1):void 0},getPaymentIconWidth:function(e){return"razorpay"===e?"76px":"mollie"===e?"38px":"16px"}}}},726:function(e,t,n){"use strict";var o=n(0);n.n(o);t.a={data:function(){return{recurringDates:[]}},methods:{getRecurringAppointmentsData:function(){return[]},toggleRecurringActive:function(){},setCycleScreen:function(){},getDefaultRecurringSettings:function(){return{}},getAvailableRecurringDates:function(){return[]},getRepeatIntervalLabels:function(){return[]}}}},727:function(e,t,n){"use strict";var o=n(0),i=n.n(o);t.a={data:function(){return{payBtnLoader:null,timeZone:"",statusesCabinet:[{value:"approved",label:this.$root.labels.approved},{value:"pending",label:this.$root.labels.pending},{value:"canceled",label:this.$root.labels.canceled},{value:"rejected",label:this.$root.labels.rejected},{value:"no-show",label:this.$root.labels["no-show"]}]}},methods:{isPanelActive:function(e){return!this.$root.shortcodeData.cabinet||!(this.$root.shortcodeData.cabinet.appointments||this.$root.shortcodeData.cabinet.events||this.$root.shortcodeData.cabinet.profile)||(!("appointments"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.appointments)||(!("events"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.events)||"profile"===e&&this.$root.shortcodeData.cabinet&&this.$root.shortcodeData.cabinet.profile))},changeRange:function(e){this.$store.commit("cabinet/setParams",{dates:e}),this.setDatePickerSelectedDaysCount(this.$store.state.cabinet.params.dates.start,this.$store.state.cabinet.params.dates.end),this.$emit("refreshReservations")},isBookingCancelable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.cancelable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},isBookingReschedulable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.reschedulable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},disableAuthorizationHeader:function(){return"ameliaBooking"in window&&"cabinet"in window.ameliaBooking&&"disableAuthorizationHeader"in window.ameliaBooking.cabinet&&window.ameliaBooking.cabinet.disableAuthorizationHeader},getAuthorizationHeaderObject:function(){return this.$store.state.cabinet.ameliaToken&&!this.disableAuthorizationHeader()?{headers:{Authorization:"Bearer "+this.$store.state.cabinet.ameliaToken}}:{}},getPaymentLink:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.payBtnLoader=t.bookings?t.bookings[0].id:t.id;var i=JSON.parse(JSON.stringify(t));i[i.type]=t;var r=JSON.parse(JSON.stringify(this.$store.state.cabinet.profile));if(r.birthday=null,i.customer=r,"package"===i.type){var a=o||Object.keys(i.payments)[0],s=i.payments[a].payments.sort(function(e,t){return e.id>t.id?1:-1});i.paymentId=s[0].id,i.packageCustomerId=a,i.packageReservations=[],i.bookable.forEach(function(e){i.packageReservations=i.packageReservations.concat(e.service.bookedAppointments.filter(function(e){return e.bookings[0].packageCustomerService.packageCustomer.id===parseInt(a)}))}),i.booking=i.packageReservations&&i.packageReservations.length>0?i.packageReservations[0].bookings[0]:null}else i.booking=t.bookings[0],i.paymentId=t.bookings[0].payments[0].id;this.$http.post(this.$root.getAjaxUrl+"/payments/link",{data:i,paymentMethod:e}).then(function(e){n.payBtnLoader=null,!e.data.data.error&&e.data.data.paymentLink?window.open(e.data.data.paymentLink,"_blank"):n.notify(n.$root.labels.error,n.$root.labels.payment_link_error,"error")}).catch(function(e){n.payBtnLoader=null,n.notify(n.$root.labels.error,e.message,"error"),console.log(e)})},paymentFromCustomerPanel:function(e,t){if("package"!==e.type&&(!e.bookings||0===e.bookings.length))return!1;var n=JSON.parse(t),o=n.payments.paymentLinks?n.payments.paymentLinks:this.$root.settings.payments.paymentLinks,r="package"===e.type?Object.values(e.purchases).filter(function(e){return"approved"===e.status}).length>0:"approved"===e.bookings[0].status||"pending"===e.bookings[0].status,a="package"===e.type?e.price:e.bookings[0].price,s=!1;switch(e.type){case"package":s=!e.expireDateString||i()(e.expireDateString,"YYYY-MM-DD HH:mm:ss").isAfter(i()());break;case"appointment":s=i()(e.bookingStart,"YYYY-MM-DD HH:mm:ss").isAfter(i()())&&e.bookings[0].payments.length>0;break;case"event":s=i()(e.periods[e.periods.length-1].periodEnd,"YYYY-MM-DD HH:mm:ss").isAfter(i()())&&e.bookings[0].payments.length>0}return this.paymentMethods(n).length&&n&&o&&o.enabled&&r&&a>0&&s},paymentMethods:function(e){"string"==typeof e&&(e=JSON.parse(e));var t=[];return e=e.payments,this.$root.settings.payments.wc.enabled?t.push({value:"wc",label:this.$root.labels.wc}):!this.$root.settings.payments.mollie.enabled||"mollie"in e&&!e.mollie.enabled?(!this.$root.settings.payments.payPal.enabled||"payPal"in e&&!e.payPal.enabled||t.push({value:"payPal",label:this.$root.labels.pay_pal}),!this.$root.settings.payments.stripe.enabled||"stripe"in e&&!e.stripe.enabled||t.push({value:"stripe",label:this.$root.labels.credit_card}),!this.$root.settings.payments.razorpay.enabled||"razorpay"in e&&!e.razorpay.enabled||t.push({value:"razorpay",label:this.$root.labels.razorpay})):t.push({value:"mollie",label:this.$root.labels.on_line}),t}}}},729:function(e,t,n){var o=n(335)(n(734),n(735),!1,null,null,null);e.exports=o.exports},730:function(e,t,n){var o=n(335)(n(731),n(732),!1,null,null,null);e.exports=o.exports},731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"county",country:"long_name",postal_code:"short_name"},i=["locality","administrative_area_level_3"],r=["locality","sublocality","postal_code","country","administrative_area_level_1","administrative_area_level_2"];t.default={name:"VueGoogleAutocomplete",props:{id:{type:String,required:!0},classname:String,placeholder:{type:String,default:"Start typing"},types:{type:String,default:"address"},country:{type:[String,Array],default:null},enableGeolocation:{type:Boolean,default:!1},geolocationOptions:{type:Object,default:null}},data:function(){return{autocomplete:null,autocompleteText:"",geolocation:{geocoder:null,loc:null,position:null}}},watch:{autocompleteText:function(e,t){this.$emit("inputChange",{newVal:e,oldVal:t},this.id)},country:function(e,t){this.autocomplete.setComponentRestrictions({country:null===this.country?[]:this.country})}},mounted:function(){var e={};this.types&&(e.types=[this.types]),this.country&&(e.componentRestrictions={country:this.country}),this.autocomplete=new google.maps.places.Autocomplete(document.getElementById(this.id),e),this.autocomplete.addListener("place_changed",this.onPlaceChanged)},methods:{onPlaceChanged:function(){var e=this.autocomplete.getPlace();e.geometry?void 0!==e.address_components&&(this.$emit("placechanged",this.formatResult(e),e,this.id),this.autocompleteText=document.getElementById(this.id).value,this.onChange()):this.$emit("no-results-found",e,this.id)},onFocus:function(){this.biasAutocompleteLocation(),this.$emit("focus")},onBlur:function(){this.$emit("blur")},onChange:function(){this.$emit("change",this.autocompleteText)},onKeyPress:function(e){this.$emit("keypress",e)},onKeyUp:function(e){this.$emit("keyup",e)},clear:function(){this.autocompleteText=""},focus:function(){this.$refs.autocomplete.focus()},blur:function(){this.$refs.autocomplete.blur()},update:function(e){this.autocompleteText=e},updateCoordinates:function(e){var t=this;(e||e.lat||e.lng)&&(this.geolocation.geocoder||(this.geolocation.geocoder=new google.maps.Geocoder),this.geolocation.geocoder.geocode({location:e},function(e,n){"OK"===n?(e=t.filterGeocodeResultTypes(e))[0]?(t.$emit("placechanged",t.formatResult(e[0]),e[0],t.id),t.update(e[0].formatted_address)):t.$emit("error","no result for provided coordinates"):t.$emit("error","error getting address from coords")}))},geolocate:function(){var e=this;this.updateGeolocation(function(t,n){e.updateCoordinates(t)})},updateGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(navigator.geolocation){var n={};this.geolocationOptions&&Object.assign(n,this.geolocationOptions),navigator.geolocation.getCurrentPosition(function(n){var o={lat:n.coords.latitude,lng:n.coords.longitude};e.geolocation.loc=o,e.geolocation.position=n,t&&t(o,n)},function(t){e.$emit("error","Cannot get Coordinates from navigator",t)},n)}},biasAutocompleteLocation:function(){var e=this;this.enableGeolocation&&this.updateGeolocation(function(t,n){var o=new google.maps.Circle({center:t,radius:n.coords.accuracy});e.autocomplete.setBounds(o.getBounds())})},formatResult:function(e){for(var t={},n=0;n<e.address_components.length;n++){var i=e.address_components[n].types[0];if(o[i]){var r=e.address_components[n][o[i]];t[i]=r}}return t.latitude=e.geometry.location.lat(),t.longitude=e.geometry.location.lng(),t},filterGeocodeResultTypes:function(e){if(!e||!this.types)return e;var t=[],n=[this.types];n.includes("(cities)")&&(n=n.concat(i)),n.includes("(regions)")&&(n=n.concat(r));var o=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value,d=!0,p=!1,f=void 0;try{for(var h,m=u.types[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var v=h.value;if(n.includes(v)){t.push(u);break}}}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return t}}}},732:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"model",rawName:"v-model",value:e.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:e.classname,attrs:{type:"text",id:e.id,placeholder:e.placeholder},domProps:{value:e.autocompleteText},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()},change:e.onChange,keypress:e.onKeyPress,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.autocompleteText=t.target.value)}}})},staticRenderFns:[]}},734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(338);t.default={mixins:[o.a],props:["oldCustomize","appointmentsApproved","appointmentsPending","employeesTotal","customersTotal","locationsTotal","packagesTotal","resourcesTotal","servicesTotal","categoriesTotal","financeTotal","addNewCouponBtnDisplay","addNewCustomFieldBtnDisplay","locations","categories","bookableType","params","fetched"],methods:{showMainCustomize:function(){this.$emit("showMainCustomize",null)},showDialogCustomer:function(){this.$emit("newCustomerBtnClicked",null)},showDialogAppointment:function(){this.$emit("newAppointmentBtnClicked",null)},showDialogEvent:function(){this.$emit("newEventBtnClicked",null)},showDialogEmployee:function(){this.$emit("newEmployeeBtnClicked")},showDialogLocation:function(){this.$emit("newLocationBtnClicked")},showDialogService:function(){this.$emit("newServiceBtnClicked")},showDialogPackage:function(){this.$emit("newPackageBtnClicked")},showDialogPackageBooking:function(){this.$emit("newPackageBookingBtnClicked")},showDialogResource:function(){this.$emit("newResourceBtnClicked")},showDialogCoupon:function(){this.$emit("newCouponBtnClicked")},showDialogCustomFields:function(){this.$emit("newCustomFieldBtnClicked")},selectAllInCategory:function(e){this.$emit("selectAllInCategory",e)},changeFilter:function(){this.$emit("changeFilter")}}}},735:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-page-header am-section"},[n("el-row",{attrs:{type:"wpamelia-calendar"===e.$router.currentRoute.name?"":"flex",align:"middle"}},[n("el-col",{attrs:{span:"wpamelia-calendar"===e.$router.currentRoute.name?6:18}},[n("div",{staticClass:"am-logo"},[n("img",{staticClass:"logo-big",attrs:{width:"92",src:e.$root.getUrl+"public/img/amelia-logo-horizontal.svg"}}),e._v(" "),n("img",{staticClass:"logo-small",attrs:{width:"28",src:e.$root.getUrl+"public/img/amelia-logo-symbol.svg"}})]),e._v(" "),n("h1",{staticClass:"am-page-title"},[e._v("\n "+e._s(e.bookableType?e.$root.labels[e.bookableType]:e.$router.currentRoute.meta.title)+"\n\n "),e._v(" "),e.appointmentsApproved>=0?n("span",{staticClass:"am-appointments-number approved"},[e._v("\n "+e._s(e.appointmentsApproved)+"\n ")]):e._e(),e._v(" "),e.appointmentsPending>=0?n("span",{staticClass:"am-appointments-number pending"},[e._v("\n "+e._s(e.appointmentsPending)+"\n ")]):e._e(),e._v(" "),e.employeesTotal>=0&&!0===e.$root.settings.capabilities.canReadOthers?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.employeesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.customersTotal>=0?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.customersTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.locationsTotal>=0?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.locationsTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.servicesTotal>=0&&"services"===e.bookableType?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.servicesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.packagesTotal>=0&&"packages"===e.bookableType?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.packagesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.resourcesTotal>=0&&"resources"===e.bookableType?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.resourcesTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e(),e._v(" "),e.financeTotal>=0?n("span",[n("span",{staticClass:"total-number"},[e._v(e._s(e.financeTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e()])]),e._v(" "),n("el-col",{staticClass:"align-right v-calendar-column",attrs:{span:"wpamelia-calendar"===e.$router.currentRoute.name?18:6}},["wpamelia-appointments"===e.$router.currentRoute.name&&(!0===e.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteAppointments)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_appointment))])]):e._e(),e._v(" "),"wpamelia-events"===e.$router.currentRoute.name&&(!0===e.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEvent}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_event))])]):e._e(),e._v(" "),e.$root.isLite||"wpamelia-employees"!==e.$router.currentRoute.name||!0!==e.$root.settings.capabilities.canWrite||!0!==e.$root.settings.capabilities.canWriteOthers?e._e():n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEmployee}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_employee))])]),e._v(" "),"wpamelia-customers"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomer}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_customer))])]):e._e(),e._v(" "),n("el-popover",e._b({ref:"addLocationPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("div",{directives:[{name:"popover",rawName:"v-popover:addLocationPop",arg:"addLocationPop"}]},["wpamelia-locations"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary",disabled:e.$root.isLite},on:{click:e.showDialogLocation}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_location))])]):e._e()],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&e.categoriesTotal>0&&!0===e.$root.settings.capabilities.canWrite&&"services"===e.bookableType?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogService}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_service))])]):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"popover",rawName:"v-popover:addPackagePop",arg:"addPackagePop"}]},[n("el-popover",e._b({ref:"addPackagePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&e.packagesTotal>=0&&!0===e.$root.settings.capabilities.canWrite&&"packages"===e.bookableType?n("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:e.showDialogPackage}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_package))])]):e._e()],1)]),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"popover",rawName:"v-popover:addResourcePop",arg:"addResourcePop"}]},[n("el-popover",e._b({ref:"addResourcePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"resources"===e.bookableType?n("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:function(t){return e.showDialogResource()}}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_resource))])]):e._e()],1)]),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"popover",rawName:"v-popover:addCouponPop",arg:"addCouponPop"}]},[n("el-popover",e._b({ref:"addCouponPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewCouponBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:e.showDialogCoupon}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_coupon))])]):e._e()],1)]),e._v(" "),n("transition",{attrs:{name:"fade"}},["wpamelia-cf"===e.$router.currentRoute.name&&e.addNewCustomFieldBtnDisplay?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomFields}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_custom_field))])]):e._e()],1),e._v(" "),"wpamelia-dashboard"===e.$router.currentRoute.name?n("div",{staticClass:"v-calendar-column"},[n("div",{staticClass:"el-form-item__content"},[n("v-date-picker",{attrs:{mode:"range","popover-visibility":"focus","popover-direction":"bottom","popover-align":"right","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner"},"is-expanded":!1,"is-required":!0,"input-class":"el-input__inner",formats:e.vCalendarFormats,"is-double-paned":!0},on:{input:e.changeFilter},model:{value:e.params.dates,callback:function(t){e.$set(e.params,"dates",t)},expression:"params.dates"}})],1)]):e._e(),e._v(" "),"wpamelia-calendar"===e.$router.currentRoute.name?n("div",{staticClass:"am-calendar-header-filters"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[n("el-form-item",{attrs:{label:e.$root.labels.services+":"}},[n("el-select",{attrs:{multiple:"",filterable:"","collapse-tags":"",loading:!e.fetched,placeholder:e.$root.labels.all_services},on:{change:e.changeFilter},model:{value:e.params.services,callback:function(t){e.$set(e.params,"services",t)},expression:"params.services"}},e._l(e.categories,function(t){return n("div",{key:t.id},[n("div",{staticClass:"am-drop-parent",on:{click:function(n){return e.selectAllInCategory(t.id)}}},[n("span",[e._v(e._s(t.name))])]),e._v(" "),e._l(t.serviceList,function(e){return n("el-option",{key:e.id,staticClass:"am-drop-child",attrs:{label:e.name,value:e.id}})})],2)}),0)],1),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.locations.length,expression:"locations.length"}],attrs:{label:e.$root.labels.locations+":"}},[n("el-select",{attrs:{multiple:"",clearable:"","collapse-tags":"",placeholder:e.$root.labels.all_locations,loading:!e.fetched},on:{change:e.changeFilter},model:{value:e.params.locations,callback:function(t){e.$set(e.params,"locations",t)},expression:"params.locations"}},e._l(e.locations,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),"wpamelia-calendar"===e.$router.currentRoute.name&&("admin"===e.$root.settings.role||"manager"===e.$root.settings.role||"provider"===e.$root.settings.role&&e.$root.settings.roles.allowWriteAppointments)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_appointment))])]):e._e()],1):e._e(),e._v(" "),e.oldCustomize&&"wpamelia-customize"===e.$router.currentRoute.name?n("div",{staticClass:"am-calendar-header-filters"},[n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showMainCustomize}},[n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.go_back))])])],1):e._e()],1)],1)],1)},staticRenderFns:[]}},736:function(e,t,n){var o=n(335)(n(739),n(740),!1,function(e){n(737)},null,null);e.exports=o.exports},737:function(e,t,n){var o=n(738);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n(705)("735f6488",o,!0,{})},738:function(e,t,n){(e.exports=n(704)(!1)).push([e.i,".am-dialog-new-customize__content-img{margin-bottom:12px}.am-dialog-new-customize__content-img img{display:inline-block;width:100%;border-radius:6px}.am-dialog-new-customize__content-heading{font-family:Amelia Roboto,sans-serif;font-size:15px;font-weight:400;line-height:1.6;color:#1a2c37;word-break:break-word;margin:0 0 16px}.am-dialog-new-customize__content-list{margin-bottom:20px}.am-dialog-new-customize__content-list__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0 0 16px}.am-dialog-new-customize__content-list__item span{font-size:15px;font-weight:600;color:#1a2c37;margin:0 0 0 12px}.am-dialog-new-customize__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.am-dialog-new-customize__footer .el-button.el-button--primary{width:100%;border-radius:8px;margin-bottom:8px}.am-dialog-new-customize__footer .el-button.el-button--primary span{font-family:Amelia Roboto,sans-serif;font-size:14px;font-weight:500}.am-dialog-new-customize__footer .el-button.el-button--secondary{max-width:100px;border-radius:8px;border:none;background-color:#fff;margin:0}.am-dialog-new-customize__footer .el-button.el-button--secondary span{font-family:Amelia Roboto,sans-serif;font-size:14px;font-weight:500;color:#1a2c37}.am-dialog-new-customize .el-dialog{max-width:500px;width:100%;background-color:#fff;border-radius:8px;padding:24px;-webkit-box-sizing:border-box;box-sizing:border-box}.am-dialog-new-customize .el-dialog__body,.am-dialog-new-customize .el-dialog__footer,.am-dialog-new-customize .el-dialog__header{padding:0}.am-dialog-new-customize .el-dialog__header h1{font-family:Amelia Roboto,sans-serif;font-size:28px;font-weight:700;line-height:1.2857;color:#1a2c37;margin:0 0 16px}",""])},739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"DialogNewCustomize",props:{customizePage:{type:Boolean,default:!1}},data:function(){return{dialogNewCustomize:!0}},created:function(){this.dialogNewCustomize=this.$root.settings.activation.showAmeliaPromoCustomizePopup},methods:{goToCustomize:function(){this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaPromoCustomizePopup:!1}}).then(function(e){window.location.href="admin.php?page=wpamelia-customize-new¤t=elf"}).catch(function(e){})},closeDialog:function(){var e=this;this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaPromoCustomizePopup:!1}}).then(function(t){e.dialogNewCustomize=!1}).catch(function(t){e.dialogNewCustomize=!1})}}}},740:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.dialogNewCustomize||"admin"!==e.$root.settings.role&&"manager"!==e.$root.settings.role?e._e():n("el-dialog",{staticClass:"am-dialog-new-customize",attrs:{"show-close":!1,"close-on-click-modal":!1,"append-to-body":!0,visible:e.dialogNewCustomize},on:{"update:visible":function(t){e.dialogNewCustomize=t}},scopedSlots:e._u([{key:"title",fn:function(){return[n("h1",[e._v("\n "+e._s(e.$root.labels.customize_dialog_heading)+"\n ")])]},proxy:!0},{key:"default",fn:function(){return[n("div",{staticClass:"am-dialog-new-customize__content"},[n("div",{staticClass:"am-dialog-new-customize__content-img"},[n("img",{attrs:{src:e.$root.getUrl+"v3/src/assets/img/admin/customize/amelia-event-list-2-0.png",alt:e.$root.labels.customize_dialog_heading}})]),e._v(" "),n("div",{staticClass:"am-dialog-new-customize__content-heading",domProps:{innerHTML:e._s(e.$root.labels.customize_dialog_sub_heading)}}),e._v(" "),n("div",{staticClass:"am-dialog-new-customize__content-description"})])]},proxy:!0},{key:"footer",fn:function(){return[n("div",{staticClass:"am-dialog-new-customize__footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.goToCustomize}},[e.customizePage?e._e():[e._v("\n "+e._s(e.$root.labels.customize_dialog_go_to)+"\n ")],e._v(" "),e.customizePage?[e._v("\n "+e._s(e.$root.labels.customize_dialog_check)+"\n ")]:e._e()],2),e._v(" "),n("el-button",{attrs:{type:"secondary"},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.customize_dialog_close)+"\n ")])],1)]},proxy:!0}],null,!1,3727916322)})},staticRenderFns:[]}},741:function(e,t,n){var o=n(335)(n(744),n(745),!1,function(e){n(742)},null,null);e.exports=o.exports},742:function(e,t,n){var o=n(743);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n(705)("279425cc",o,!0,{})},743:function(e,t,n){(e.exports=n(704)(!1)).push([e.i,".am-survey__btn{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;bottom:32px;right:104px;width:56px;height:56px;border-radius:50%;background:#1a2c37;background:linear-gradient(330deg,#1a2c37,#1a2c37 47%,#60addd 54%,#1a2c37 61%,#1a2c37);background-size:300%;-webkit-animation:am-survey-animation 4s infinite;animation:am-survey-animation 4s infinite;z-index:1000;-webkit-box-shadow:0 8px 8px 0 rgba(0,0,0,.24),0 0 8px 0 rgba(0,0,0,.12);box-shadow:0 8px 8px 0 rgba(0,0,0,.24),0 0 8px 0 rgba(0,0,0,.12)}.am-survey__btn:hover{-webkit-animation:unset;animation:unset;background:#1a2c37}.am-survey__dialog .el-dialog{max-width:484px;width:100%;border-radius:8px}.am-survey__dialog .el-dialog__header{padding:20px 24px 24px}.am-survey__dialog .el-dialog__body{padding:0 24px 24px}.am-survey__dialog-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.am-survey__dialog-header__text{font-size:18px;font-weight:600;line-height:1.55556;color:#1a2c37}.am-survey__dialog-header__btn{font-size:15px;font-weight:500;line-height:1.6;color:#808a90;cursor:pointer}.am-survey__dialog-img{width:100%;margin-bottom:16px}.am-survey__dialog-img img{width:100%}.am-survey__dialog-text div{font-size:18px;font-weight:500;line-height:1.55556;color:#1a2c37;margin-bottom:4px}.am-survey__dialog-text span{display:block;font-size:15px;font-weight:500;line-height:1.6;color:#1a2c37;word-break:break-word}@-webkit-keyframes am-survey-animation{0%{-webkit-transform:scale(1);transform:scale(1);background-position:100% 0}15%{-webkit-transform:scale(1.05);transform:scale(1.05)}20%{background-position:-20% 0}30%{-webkit-transform:scale(1);transform:scale(1)}to{background-position:-20% 0}}@keyframes am-survey-animation{0%{-webkit-transform:scale(1);transform:scale(1);background-position:100% 0}15%{-webkit-transform:scale(1.05);transform:scale(1.05)}20%{background-position:-20% 0}30%{-webkit-transform:scale(1);transform:scale(1)}to{background-position:-20% 0}}",""])},744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"AmSurvey",data:function(){return{dialogSurvey:!1,surveyVisibility:!0}},created:function(){this.surveyVisibility=this.$root.settings.activation.showAmeliaSurvey},methods:{closeForever:function(){var e=this;this.dialogSurvey=!1,this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaSurvey:!1}}).then(function(t){e.surveyVisibility=!1}).catch(function(e){})},maybeLater:function(){this.dialogSurvey=!1},goToSurvey:function(){this.dialogSurvey=!1,window.open("https://www.surveymonkey.com/r/VJQDLVX","_blank")},openSurvey:function(){this.dialogSurvey=!0}}}},745:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.surveyVisibility&&"admin"===e.$root.settings.role?n("div",{staticClass:"am-survey__wrapper"},[n("el-dialog",{staticClass:"am-survey__dialog",attrs:{"show-close":!1,"close-on-click-modal":!1,"append-to-body":!0,visible:e.dialogSurvey},on:{"update:visible":function(t){e.dialogSurvey=t}},scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"am-survey__dialog-header"},[n("span",{staticClass:"am-survey__dialog-header__text"},[e._v("\n "+e._s(e.$root.labels.survey_heading)+"\n ")]),e._v(" "),n("span",{staticClass:"am-survey__dialog-header__btn",on:{click:e.closeForever}},[e._v("\n "+e._s(e.$root.labels.survey_close)+"\n ")])])]},proxy:!0},{key:"default",fn:function(){return[n("div",{staticClass:"am-survey__dialog-content"},[n("div",{staticClass:"am-survey__dialog-img"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/survey/am-survey.png",alt:e.$root.labels.survey_heading}})]),e._v(" "),n("div",{staticClass:"am-survey__dialog-text",domProps:{innerHTML:e._s(e.$root.labels.survey_content)}})])]},proxy:!0},{key:"footer",fn:function(){return[n("div",{staticClass:"am-survey__dialog-footer"},[n("el-button",{attrs:{type:"secondary"},on:{click:e.maybeLater}},[e._v("\n "+e._s(e.$root.labels.survey_maybe)+"\n ")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.goToSurvey}},[e._v("\n "+e._s(e.$root.labels.survey_sure)+"\n ")])],1)]},proxy:!0}],null,!1,3092811696)}),e._v(" "),n("div",{staticClass:"am-survey__btn",on:{click:e.openSurvey}},[n("img",{attrs:{src:e.$root.getUrl+"public/img/survey/am-clipboard.svg"}})])],1):e._e()},staticRenderFns:[]}},746:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{updateStashEntities:function(e){this.$root.settings.activation.stash&&this.$http.post(this.$root.getAjaxUrl+"/stash",e).then(function(e){})}}}},747:function(e,t,n){"use strict";var o=n(700),i=n(338);t.a={mixins:[o.a,i.a],data:function(){return{groupedPlaceholders:{},initialGroupedPlaceholders:{companyPlaceholders:[{value:"%company_address%",label:this.$root.labels.ph_company_address},{value:"%company_name%",label:this.$root.labels.ph_company_name},{value:"%company_phone%",label:this.$root.labels.ph_company_phone},{value:"%company_website%",label:this.$root.labels.ph_company_website},{value:"%company_email%",label:this.$root.labels.ph_company_email}],customerPlaceholders:[{value:"%customer_email%",label:this.$root.labels.ph_customer_email},{value:"%customer_first_name%",label:this.$root.labels.ph_customer_first_name},{value:"%customer_full_name%",label:this.$root.labels.ph_customer_full_name},{value:"%customer_last_name%",label:this.$root.labels.ph_customer_last_name},{value:"%customer_note%",label:this.$root.labels.ph_customer_note},{value:"%customer_phone%",label:this.$root.labels.ph_customer_phone},{value:"%customer_panel_url%",label:this.$root.labels.ph_customer_cabinet_url,parse:"link"}],packagePlaceholders:[{value:"%package_appointments_details%",label:this.$root.labels.ph_package_appointments_details},{value:"%package_description%",label:this.$root.labels.ph_package_description},{value:"%package_duration%",label:this.$root.labels.ph_package_duration},{value:"%package_name%",label:this.$root.labels.ph_package_name},{value:"%package_price%",label:this.$root.labels.ph_package_price},{value:"%time_zone%",label:this.$root.labels.ph_time_zone},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used}],employeePlaceholders:[{value:"%employee_email%",label:this.$root.labels.ph_employee_email},{value:"%employee_first_name%",label:this.$root.labels.ph_employee_first_name},{value:"%employee_full_name%",label:this.$root.labels.ph_employee_full_name},{value:"%employee_last_name%",label:this.$root.labels.ph_employee_last_name},{value:"%employee_note%",label:this.$root.labels.ph_employee_note},{value:"%employee_description%",label:this.$root.labels.ph_employee_description},{value:"%employee_phone%",label:this.$root.labels.ph_employee_phone},{value:"%employee_panel_url%",label:this.$root.labels.ph_employee_cabinet_url,parse:"link"},{value:"%employee_password%",label:this.$root.labels.ph_employee_password}],paymentPlaceholders:[{value:"%payment_type%",label:this.$root.labels.ph_payment_type},{value:"%appointment_deposit_payment%",label:this.$root.labels.ph_appointment_deposit_payment},{value:"%event_deposit_payment%",label:this.$root.labels.ph_event_deposit_payment},{value:"%package_deposit_payment%",label:this.$root.labels.ph_package_deposit_payment},{value:"%payment_link_woocommerce%",label:this.$root.labels.ph_payment_link_woocommerce},{value:"%payment_link_mollie%",label:this.$root.labels.ph_payment_link_mollie},{value:"%payment_link_paypal%",label:this.$root.labels.ph_payment_link_paypal},{value:"%payment_link_stripe%",label:this.$root.labels.ph_payment_link_stripe},{value:"%payment_link_razorpay%",label:this.$root.labels.ph_payment_link_razorpay}],categoryPlaceholders:[{value:"%category_name%",label:this.$root.labels.ph_category_name},{value:"%service_description%",label:this.$root.labels.ph_service_description},{value:"%service_duration%",label:this.$root.labels.ph_service_duration},{value:"%service_name%",label:this.$root.labels.ph_service_name},{value:"%service_price%",label:this.$root.labels.ph_service_price}],locationPlaceholders:[{value:"%location_address%",label:this.$root.labels.ph_location_address},{value:"%location_description%",label:this.$root.labels.ph_location_description},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%location_phone%",label:this.$root.labels.ph_location_phone}],appointmentPlaceholders:[{value:"%appointment_id%",label:this.$root.labels.ph_appointment_id},{value:"%appointment_cancel_url%",label:this.$root.labels.ph_appointment_cancel_url,parse:"link"},{value:"%appointment_date%",label:this.$root.labels.ph_appointment_date},{value:"%appointment_date_time%",label:this.$root.labels.ph_appointment_date_time},{value:"%appointment_start_time%",label:this.$root.labels.ph_appointment_start_time},{value:"%appointment_end_time%",label:this.$root.labels.ph_appointment_end_time},{value:"%initial_appointment_date%",label:this.$root.labels.ph_initial_appointment_date},{value:"%initial_appointment_date_time%",label:this.$root.labels.ph_initial_appointment_date_time},{value:"%initial_appointment_start_time%",label:this.$root.labels.ph_initial_appointment_start_time},{value:"%initial_appointment_end_time%",label:this.$root.labels.ph_initial_appointment_end_time},{value:"%appointment_duration%",label:this.$root.labels.ph_appointment_duration},{value:"%appointment_notes%",label:this.$root.labels.ph_appointment_notes},{value:"%appointment_price%",label:this.$root.labels.ph_appointment_price},{value:"%appointment_status%",label:this.$root.labels.ph_appointment_status},{value:"%booked_customer%",label:this.$root.labels.ph_booked_customer},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%recurring_appointments_details%",label:this.$root.labels.ph_recurring_appointments_details},{value:"%group_appointment_details%",label:this.$root.labels.ph_group_appointment_details},{value:"%zoom_host_url%",label:this.$root.labels.ph_zoom_host_url},{value:"%zoom_join_url%",label:this.$root.labels.ph_zoom_join_url},{value:"%google_meet_url%",label:this.$root.labels.ph_google_meet_url},{value:"%lesson_space_url%",label:this.$root.labels.ph_lesson_space_url},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description},{value:"%time_zone%",label:this.$root.labels.ph_time_zone}],eventPlaceholders:[{value:"%attendee_code%",label:this.$root.labels.ph_attendee_code},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used},{value:"%event_cancel_url%",label:this.$root.labels.ph_event_cancel_url,parse:"link"},{value:"%event_description%",label:this.$root.labels.ph_event_description},{value:"%event_location%",label:this.$root.labels.ph_event_location},{value:"%event_end_date%",label:this.$root.labels.ph_event_end_date},{value:"%event_end_date_time%",label:this.$root.labels.ph_event_end_date_time},{value:"%event_end_time%",label:this.$root.labels.ph_event_end_time},{value:"%group_event_details%",label:this.$root.labels.ph_group_event_details},{value:"%event_tickets%",label:this.$root.labels.ph_event_tickets},{value:"%event_name%",label:this.$root.labels.ph_event_name},{value:"%event_period_date%",label:this.$root.labels.ph_event_period_date},{value:"%event_period_date_time%",label:this.$root.labels.ph_event_period_date_time},{value:"%event_price%",label:this.$root.labels.ph_event_price},{value:"%booking_price%",label:this.$root.labels.ph_booking_price},{value:"%event_start_date%",label:this.$root.labels.ph_event_start_date},{value:"%event_start_date_time%",label:this.$root.labels.ph_event_start_date_time},{value:"%event_start_time%",label:this.$root.labels.ph_event_start_time},{value:"%initial_event_start_date%",label:this.$root.labels.ph_initial_event_start_date},{value:"%initial_event_start_date_time%",label:this.$root.labels.ph_initial_event_start_date_time},{value:"%initial_event_start_time%",label:this.$root.labels.ph_initial_event_start_time},{value:"%initial_event_end_date%",label:this.$root.labels.ph_initial_event_end_date},{value:"%initial_event_end_date_time%",label:this.$root.labels.ph_initial_event_end_date_time},{value:"%initial_event_end_time%",label:this.$root.labels.ph_initial_event_end_time},{value:"%employee_name_email_phone%",label:this.$root.labels.ph_employee_name_email_phone},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%lesson_space_url_date%",label:this.$root.labels.ph_lesson_space_url_date},{value:"%lesson_space_url_date_time%",label:this.$root.labels.ph_lesson_space_url_date_time},{value:"%google_meet_url_date%",label:this.$root.labels.ph_google_meet_url_date},{value:"%google_meet_url_date_time%",label:this.$root.labels.ph_google_meet_url_date_date},{value:"%zoom_host_url_date%",label:this.$root.labels.ph_zoom_host_url_date},{value:"%zoom_host_url_date_time%",label:this.$root.labels.ph_zoom_host_url_date_date},{value:"%zoom_join_url_date%",label:this.$root.labels.ph_zoom_join_url_date},{value:"%zoom_join_url_date_time%",label:this.$root.labels.ph_zoom_join_url_date_date},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description},{value:"%time_zone%",label:this.$root.labels.ph_time_zone}],customFieldsPlaceholders:[],extrasPlaceholders:[],couponsPlaceholders:[]},placeholders:[],linksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"},plainTextLinksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"}}},methods:{getEventPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.eventPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))},getAppointmentPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.appointmentPlaceholders.concat(this.groupedPlaceholders.categoryPlaceholders.concat(this.groupedPlaceholders.extrasPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))))},getPackagePlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.packagePlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))},removePlaceholder:function(e,t){if(e in this.groupedPlaceholders){var n=null;this.groupedPlaceholders[e].forEach(function(e,o){e.value===t&&(n=o)}),null!==n&&this.groupedPlaceholders[e].splice(n,1)}},getParsedCodeLabel:function(e){if("link"===e.parse)for(var t in this.linksForParsing)if(e.value===t)return this.linksForParsing[t];return""},closeDialog:function(){this.$emit("closeDialogPlaceholders")},copyCodeText:function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.notify("",this.$root.labels.placeholder_copied,"info","no-title")},addCustomFieldsPlaceholders:function(e){this.groupedPlaceholders.customFieldsPlaceholders=[];for(var t=0;t<this.customFields.length;t++)"file"===this.customFields[t].type&&"provider"!==e||this.groupedPlaceholders.customFieldsPlaceholders.push({value:"%custom_field_"+this.customFields[t].id+"%",label:this.customFields[t].label})},addCouponsPlaceholders:function(e){if(this.groupedPlaceholders.couponsPlaceholders=[],"customer"===e)for(var t=0;t<this.coupons.length;t++)this.groupedPlaceholders.couponsPlaceholders.push({value:"%coupon_"+this.coupons[t].id+"%",label:this.coupons[t].code+" ["+this.$root.labels.discount+": "+this.coupons[t].discount+", "+this.$root.labels.deduction+": "+this.coupons[t].deduction+this.getCurrencySymbol()+", "+this.$root.labels.expiration_date+": "+(this.coupons[t].expirationDate?this.getFrontedFormattedDate(this.coupons[t].expirationDate):"/")+"]"})},addExtrasPlaceholders:function(){this.groupedPlaceholders.extrasPlaceholders=[];for(var e=0;e<this.categories.length;e++)for(var t=0;t<this.categories[e].serviceList.length;t++)for(var n=0;n<this.categories[e].serviceList[t].extras.length;n++)this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[n].id+"_name%",label:this.categories[e].serviceList[t].extras[n].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[n].id+"_quantity%",label:this.categories[e].serviceList[t].extras[n].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[n].id+"_price%",label:this.categories[e].serviceList[t].extras[n].name});this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extras%",label:this.$root.labels.ph_extras})},setPlaceholders:function(e){var t=this;this.groupedPlaceholders=JSON.parse(JSON.stringify(this.initialGroupedPlaceholders)),this.addExtrasPlaceholders(),this.addCouponsPlaceholders(this.userTypeTab),this.addCustomFieldsPlaceholders(this.userTypeTab);var n=function(n){e[n].forEach(function(e){t.removePlaceholder(n,e)})};for(var o in e)n(o)},isDisabledInLite:function(e){return this.$root.isLite&&-1!==["%coupon_used%","%appointment_cancel_url%","%appointment_deposit_payment%","%event_deposit_payment%","%event_cancel_url%","%customer_panel_url%","%employee_panel_url%","%google_meet_url%","%zoom_join_url%","%zoom_host_url%","%zoom_host_url_date%","%zoom_host_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%lesson_space_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%location_name%","%location_description%","%location_address%","%location_phone%","%service_extras%","%recurring_appointments_details%"].indexOf(e)}},computed:{}}},748:function(e,t,n){"use strict";t.a={data:function(){return{searchCounter:0,loadingCustomers:!1,searchCustomersTimer:null,searchedCustomers:[],dialogCustomer:!1}},methods:{getInitCustomerObject:function(){return{id:0,firstName:"",lastName:"",externalId:"",phone:"",countryPhoneIso:null,email:"",gender:"",birthday:null,note:"",status:"visible",type:"customer",countPendingAppointments:0}},setInitialCustomers:function(){var e=this;"customer"!==this.$root.settings.role&&this.searchCustomers("",function(){var t=e.options.entities.customers.map(function(e){return parseInt(e.id)}),n=e.options.entities.customers;e.searchedCustomers.forEach(function(e){-1===t.indexOf(parseInt(e.id))&&(t.push(e.id),n.push(e))}),e.options.entities.customers=Object.values(n.sort(function(e,t){return e.firstName.toLowerCase()>t.firstName.toLowerCase()?1:-1}))})},searchCustomers:function(e,t){var n=this;clearTimeout(this.searchCustomersTimer),this.loadingCustomers=!0,this.searchCounter++,this.searchCustomersTimer=setTimeout(function(){var o=n.searchCounter;n.$http.get(n.$root.getAjaxUrl+"/users/customers",{params:{search:e,page:1,limit:n.$root.settings.general.customersFilterLimit,skipCount:1}}).then(function(e){o>=n.searchCounter&&(n.searchedCustomers=e.data.data.users.sort(function(e,t){return e.firstName.toLowerCase()>t.firstName.toLowerCase()?1:-1})),n.loadingCustomers=!1,t()}).catch(function(e){n.loadingCustomers=!1})},500)}}}},749:function(e,t,n){e.exports=n(750)},750:function(e,t,n){"use strict";var o=n(698),i=n(716),r=n(751),a=n(708);function s(e){var t=new r(e),n=i(r.prototype.request,t);return o.extend(n,r.prototype,t),o.extend(n,t),n}var l=s(a);l.Axios=r,l.create=function(e){return s(o.merge(a,e))},l.Cancel=n(720),l.CancelToken=n(765),l.isCancel=n(719),l.all=function(e){return Promise.all(e)},l.spread=n(766),e.exports=l,e.exports.default=l},751:function(e,t,n){"use strict";var o=n(708),i=n(698),r=n(760),a=n(761),s=n(763),l=n(764);function c(e){this.defaults=e,this.interceptors={request:new r,response:new r}}c.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(o,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url));var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,o){return this.request(i.merge(o||{},{method:e,url:t,data:n}))}}),e.exports=c},752:function(e,t,n){"use strict";var o=n(698);e.exports=function(e,t){o.forEach(e,function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])})}},753:function(e,t,n){"use strict";var o=n(718);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(o("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},754:function(e,t,n){"use strict";e.exports=function(e,t,n,o,i){return e.config=t,n&&(e.code=n),e.request=o,e.response=i,e}},755:function(e,t,n){"use strict";var o=n(698);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(o.isURLSearchParams(t))r=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&void 0!==e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),r=a.join("&")}return r&&(e+=(-1===e.indexOf("?")?"?":"&")+r),e}},756:function(e,t,n){"use strict";var o=n(698);e.exports=function(e){var t,n,i,r={};return e?(o.forEach(e.split("\n"),function(e){i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t&&(r[t]=r[t]?r[t]+", "+n:n)}),r):r}},757:function(e,t,n){"use strict";var o=n(698);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=o.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},758:function(e,t,n){"use strict";var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,r=String(e),a="",s=0,l=o;r.charAt(0|s)||(l="=",s%1);a+=l.charAt(63&t>>8-s%1*8)){if((n=r.charCodeAt(s+=.75))>255)throw new i;t=t<<8|n}return a}},759:function(e,t,n){"use strict";var o=n(698);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,i,r,a){var s=[];s.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),o.isString(i)&&s.push("path="+i),o.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},760:function(e,t,n){"use strict";var o=n(698);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},761:function(e,t,n){"use strict";var o=n(698),i=n(762),r=n(719),a=n(708);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return r(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},762:function(e,t,n){"use strict";var o=n(698);e.exports=function(e,t,n){return o.forEach(n,function(n){e=n(e,t)}),e}},763:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},764:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},765:function(e,t,n){"use strict";var o=n(720);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},766:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},767:function(e,t,n){"use strict";var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(12),a=(o=r)&&o.__esModule?o:{default:o};e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.errors={}}return i(e,[{key:"set",value:function(e){this.errors=e}},{key:"has",value:function(e){return this.errors.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e))return this.errors[e][0]}},{key:"getAll",value:function(e){if(this.has(e))return this.errors[e]}},{key:"clear",value:function(e){e?a.default.delete(this.errors,e):this.errors={}}},{key:"any",value:function(){return Object.keys(this.errors).length>0}}]),e}()},768:function(e,t,n){"use strict";function o(e){return void 0===e}function i(e){return Array.isArray(e)}function r(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}e.exports=function e(t,n,a,s){if(n instanceof FormData&&(s=a,a=n,n=null),(n=n||{}).indices=!o(n.indices)&&n.indices,n.nulls=!!o(n.nulls)||n.nulls,a=a||new FormData,o(t))return a;if(function(e){return null===e}(t))n.nulls&&a.append(s,"");else if(i(t))if(t.length)t.forEach(function(t,o){var i=s+"["+(n.indices?o:"")+"]";e(t,n,a,i)});else{var l=s+"[]";a.append(l,"")}else!function(e){return e instanceof Date}(t)?!function(e){return e===Object(e)}(t)||function(e){return r(e)&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)&&"string"==typeof e.name}(t)||r(t)?a.append(s,t):Object.keys(t).forEach(function(o){var r=t[o];if(i(r))for(;o.length>2&&o.lastIndexOf("[]")===o.length-2;)o=o.substring(0,o.length-2);e(r,n,a,s?s+"["+o+"]":o)}):a.append(s,t.toISOString());return a}},769:function(e,t,n){var o;o=function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,n){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,n){"use strict";var o=n(2),i=n(5),r=n(0);t.a=function(e,t){if(t.value){var a=n.i(i.a)(r.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var s=e.getElementsByTagName("input");1!==s.length||(e=s[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(o.a)(e.value,a),t=Math.max(t,a.suffix.length),t=e.value.length-t,t=Math.max(t,a.prefix.length+1),n.i(o.b)(e,t),e.dispatchEvent(n.i(o.c)("change"))},e.onfocus=function(){n.i(o.b)(e,e.value.length-a.suffix.length)},e.oninput(),e.dispatchEvent(n.i(o.c)("input"))}}},function(e,t,n){"use strict";function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a;"number"==typeof e&&(e=e.toFixed(a(t.precision)));var n=e.indexOf("-")>=0?"-":"",o=l(s(r(e),t.precision)).split("."),i=o[0],c=o[1];return i=function(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}(i,t.thousands),t.prefix+n+function(e,t,n){return t?e+n+t:e}(i,c,t.decimal)+t.suffix}function i(e,t){var n=e.indexOf("-")>=0?-1:1,o=s(r(e),t);return parseFloat(o)*n}function r(e){return l(e).replace(/\D+/g,"")||"0"}function a(e){return function(e,t,n){return Math.max(e,Math.min(t,n))}(0,e,20)}function s(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(a(t))}function l(e){return e?e.toString():""}function c(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function u(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var d=n(0);n.d(t,"a",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u})},function(e,t,n){"use strict";function o(e,t){t&&Object.keys(t).map(function(e){s.a[e]=t[e]}),e.directive("money",a.a),e.component("money",r.a)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=n.n(i),a=n(1),s=n(0);n.d(t,"Money",function(){return r.a}),n.d(t,"VMoney",function(){return a.a}),n.d(t,"options",function(){return s.a}),n.d(t,"VERSION",function(){return l});var l="0.8.1";t.default=o,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return i.a.precision}},decimal:{type:String,default:function(){return i.a.decimal}},thousands:{type:String,default:function(){return i.a.thousands}},prefix:{type:String,default:function(){return i.a.prefix}},suffix:{type:String,default:function(){return i.a.suffix}}},directives:{money:o.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var o=n.i(r.a)(e,this.$props);o!==this.formattedValue&&(this.formattedValue=o)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:n.i(r.d)(e.target.value,this.precision))}}}},function(e,t,n){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return n[o]=void 0===t[o]?e[o]:t[o],n},{})}},function(e,t,n){var o=n(7)(n(4),n(8),null,null);e.exports=o.exports},function(e,t){e.exports=function(e,t,n,o){var i,r=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,r=e.default);var s="function"==typeof r?r.options:r;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),o){var l=s.computed||(s.computed={});Object.keys(o).forEach(function(e){var t=o[e];l[e]=function(){return t}})}return{esModule:i,exports:r,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])},e.exports=o()},770:function(e,t,n){"use strict";var o=n(697);t.a={mixins:[o.a],data:function(){return{}},methods:{getSettingsSchedule:function(){var e=[];return this.$root.settings.weekSchedule.forEach(function(t,n){var o=[];t.breaks.forEach(function(e){o.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00"})});var i=[];null!==t.time[0]&&null!==t.time[1]&&("periods"in t?t.periods.forEach(function(e){i.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00",serviceIds:[],periodServiceList:[],savedPeriodServiceList:[]})}):i.push({id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",serviceIds:[],periodServiceList:[],savedPeriodServiceList:[]})),t.time[0]&&t.time[1]&&e.push({dayIndex:n+1,id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",periodList:i,timeOutList:o})}),e},getInitEntitySettings:function(e){var t={payments:{paymentLinks:{enabled:this.$root.settings.payments.paymentLinks.enabled,changeBookingStatus:this.$root.settings.payments.paymentLinks.changeBookingStatus,redirectUrl:null},onSite:this.$root.settings.payments.onSite,wc:{productId:this.$root.settings.payments.wc.productId},payPal:{enabled:this.$root.settings.payments.payPal.enabled},stripe:{enabled:this.$root.settings.payments.stripe.enabled},mollie:{enabled:this.$root.settings.payments.mollie.enabled},razorpay:{enabled:this.$root.settings.payments.razorpay.enabled}}};switch(e){case"service":t.general={minimumTimeRequirementPriorToCanceling:null,minimumTimeRequirementPriorToRescheduling:null,redirectUrlAfterAppointment:null},t.general.defaultAppointmentStatus=null,t.general.numberOfDaysAvailableForBooking=0,t.general.minimumTimeRequirementPriorToBooking=null,t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled};break;case"event":t.general={minimumTimeRequirementPriorToCanceling:null,redirectUrlAfterAppointment:null},t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled}}return t},setEntitySettings:function(e,t){e.settings=null!==e.settings?JSON.parse(e.settings):this.getInitEntitySettings(t),this.addMissingObjectProperties(e.settings,this.getInitEntitySettings(t))},updateSettings:function(e){if(!this.$root.clonedSettings.payments.onSite||this.$root.clonedSettings.payments.stripe.enabled||this.$root.clonedSettings.payments.payPal.enabled||this.$root.clonedSettings.payments.wc.enabled||this.$root.clonedSettings.payments.mollie.enabled||this.$root.clonedSettings.payments.razorpay.enabled){if(!1===this.$root.clonedSettings.payments.wc.enabled&&!1===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var t=JSON.parse(e);t.payments.wc=this.$root.clonedSettings.payments.wc,t.payments.mollie=this.$root.clonedSettings.payments.mollie,this.$root.clonedSettings.payments.onSite||(t.payments.onSite=this.$root.clonedSettings.payments.onSite),this.$root.clonedSettings.payments.payPal.enabled||(t.payments.payPal=this.$root.clonedSettings.payments.payPal),this.$root.clonedSettings.payments.stripe.enabled||(t.payments.stripe=this.$root.clonedSettings.payments.stripe),this.$root.clonedSettings.payments.razorpay.enabled&&t.payments.razorpay||(t.payments.razorpay=this.$root.clonedSettings.payments.razorpay),t.payments.onSite||t.payments.payPal.enabled||t.payments.stripe.enabled||t.payments.mollie.enabled||t.payments.razorpay.enabled||(t.payments=this.$root.clonedSettings.payments),e=JSON.stringify(t)}if(!0===this.$root.clonedSettings.payments.wc.enabled&&null!==e){var n=JSON.parse(e);"payments"in n||(n.payments={}),n.payments.onSite=this.$root.clonedSettings.payments.onSite,n.payments.stripe=this.$root.clonedSettings.payments.stripe,n.payments.payPal=this.$root.clonedSettings.payments.payPal,n.payments.mollie=this.$root.clonedSettings.payments.mollie,n.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(n)}if(!0===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var o=JSON.parse(e);"payments"in o||(o.payments={}),this.$root.clonedSettings.payments.onSite||(o.payments.onSite=this.$root.clonedSettings.payments.onSite,o.payments.mollie=this.$root.clonedSettings.payments.mollie),o.payments.stripe=this.$root.clonedSettings.payments.stripe,o.payments.payPal=this.$root.clonedSettings.payments.payPal,o.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(o)}this.replaceExistingObjectProperties(this.$root.settings,null!==e?JSON.parse(e):this.$root.clonedSettings)}},prepareEntitySettingsForSave:function(e){var t=JSON.parse(JSON.stringify(e.settings));return t.payments.wc.productId===this.$root.settings.payments.wc.productId&&delete t.payments.wc,"general"in t&&(t.general.redirectUrlAfterAppointment||delete t.general.redirectUrlAfterAppointment,t.general.defaultAppointmentStatus||delete t.general.defaultAppointmentStatus,(t.general.minimumTimeRequirementPriorToBooking||this.$root.settings.general.minimumTimeRequirementPriorToBooking)&&""!==t.general.minimumTimeRequirementPriorToBooking||delete t.general.minimumTimeRequirementPriorToBooking,(t.general.minimumTimeRequirementPriorToCanceling||this.$root.settings.general.minimumTimeRequirementPriorToCanceling)&&""!==t.general.minimumTimeRequirementPriorToCanceling||delete t.general.minimumTimeRequirementPriorToCanceling,(t.general.minimumTimeRequirementPriorToRescheduling||this.$root.settings.general.minimumTimeRequirementPriorToRescheduling)&&""!==t.general.minimumTimeRequirementPriorToRescheduling||delete t.general.minimumTimeRequirementPriorToRescheduling,t.general.numberOfDaysAvailableForBooking||delete t.general.numberOfDaysAvailableForBooking,0===Object.keys(t.general).length&&delete t.general),0===Object.keys(t).length&&(t=null),t}},computed:{}}},771:function(e,t,n){var o;o=function(e){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=n.n(o),r=n(6),a=n(5)(i.a,r.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.quillEditor=t.Quill=void 0;var i=o(n(0)),r=o(n(1)),a=window.Quill||i.default,s=function(e,t){t&&(r.default.props.globalOptions.default=function(){return t}),e.component(r.default.name,r.default)},l={Quill:a,quillEditor:r.default,install:s};t.default=l,t.Quill=a,t.quillEditor=r.default,t.install=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(0)),r=o(n(3)),a=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},writable:!0,configurable:!0}),t.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:r.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var e=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new a(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(t){t?e.$emit("focus",e.quill):e.$emit("blur",e.quill)}),this.quill.on("text-change",function(t,n,o){var i=e.$refs.editor.children[0].innerHTML,r=e.quill,a=e.quill.getText();"<p><br></p>"===i&&(i=""),e._content=i,e.$emit("input",e._content),e.$emit("change",{html:i,text:a,quill:r})}),this.$emit("ready",this.quill))}},watch:{content:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},value:function(e,t){this.quill&&(e&&e!==this._content?(this._content=e,this.quill.pasteHTML(e)):e||this.quill.setText(""))},disabled:function(e,t){this.quill&&this.quill.enable(!e)}}}},function(e,t){e.exports=function(e,t,n,o,i,r){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):o&&(c=o),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quill-editor"},[e._t("toolbar"),e._v(" "),n("div",{ref:"editor"})],2)},staticRenderFns:[]};t.a=o}])},e.exports=o(n(797))},772:function(e,t,n){var o=n(335)(n(796),n(802),!1,null,null,null);e.exports=o.exports},775:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{getAppointmentService:function(e){return this.getProviderById(e.providerId).serviceList.find(function(t){return t.id===e.serviceId})||this.getServiceById(e.serviceId)},getBookingServicePrice:function(e,t){return e.customPricing.enabled&&t.duration&&e.customPricing.durations.filter(function(e){return e.duration===t.duration}).length?e.customPricing.durations.find(function(e){return e.duration===t.duration}).price:e.price},getAppointmentPrice:function(e,t,n,o){var i=0,r=this,a=parseInt(e)!==parseInt(t.id);return n.forEach(function(e){var n=(null===e.duration?t.duration:e.duration)!==t.duration,s=r.getBookingServicePrice(t,e);e.payments.length>0?["approved","pending"].includes(e.status)&&(i+=r.getBookingPrice(e,a,a||n?s:e.price,e.aggregatedPrice)):o||(i+=r.getBookingPrice(e,!0,s,t.aggregatedPrice))}),this.getFormattedPrice(i>=0?i:0,!this.$root.settings.payments.hideCurrencySymbolFrontend)},getBookingPrice:function(e,t,n,o){var i=0;e.extras.forEach(function(t){if(void 0===t.selected||!0===t.selected){var n=null===t.aggregatedPrice?o:t.aggregatedPrice;i+=t.price*t.quantity*(n?e.persons:1)}});var r=(t?n:e.price)*(o?e.persons:1)+i,a=r/100*(e.coupon?e.coupon.discount:0)+(e.coupon?e.coupon.deduction:0);return a>r?0:r-a},getPackagePrice:function(e,t){var n=e.bookings[t].packageCustomerService.packageCustomer.coupon,o=e.bookings[t].packageCustomerService.packageCustomer.price,i=o/100*(n?n.discount:0)+(n?n.deduction:0);return i>o?0:o-i}}}},776:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(711),i=n.n(o),r=n(700),a=n(338),s=n(727),l=n(746);t.default={mixins:[r.a,a.a,s.a,l.a],props:{formName:"",urlName:null,isNew:null,entity:null,getParsedEntity:null,updateStash:!1,haveSaveConfirmation:null,hasApplyGloballyVisibility:!1,hasApplyGloballyDeletion:!1,loadSaveButton:!1,calendarConflict:{enable:!1},getCalendarEvents:null,hasIcons:!0,status:null,buttonType:{status:"primary",remove:"danger"},action:{haveAdd:!1,haveEdit:!1,haveStatus:!1,haveRemove:!1,haveRemoveEffect:!1,ignoreDeleteEffect:!1,haveDuplicate:!1,haveSaveWarning:!1},message:{success:{save:null,remove:null,show:null,hide:null},confirm:{remove:null,show:null,hide:null,duplicate:null,save:null,saveDetails:null}},buttonText:null},data:function(){return{form:new i.a,allowedDelete:!0,showDeleteConfirmation:!1,showVisibilityConfirmation:!1,showDuplicateConfirmation:!1,showSaveConfirmation:!1,showAddHoursDialog:!1,confirmCalendarConflict:!1,deleteEffectMessage:null,dialogLoading:!1}},created:function(){i.a.defaults.axios=this.$http},methods:{getButtonType:function(e){switch(e){case"status":return this.hasIcons?null:this.buttonType.status;case"remove":return this.hasIcons?null:this.buttonType.remove;case"duplicate":return this.hasIcons?null:this.buttonType.duplicate}},closeDialog:function(){this.$parent.$emit("closeDialog")},onSubmit:function(e){var t=this,n=this.$root;this.$parent.$refs[this.formName].validate(function(o,i){if(!o)return"appointment"===t.formName&&t.handleDialogTabChange(i,"bookings."),"service"===t.formName&&t.handleDialogTabChange(i,"duration"),t.$emit("validationFailCallback"),!1;t.calendarConflict&&t.calendarConflict.enabled?(t.handleSaveConfirmation(),e&&(t.$emit("confirmCalendarConflict"),t.confirmCalendarConflict=!0,t.handleSaveClick(e))):(t.dialogLoading=!0,t.isNew?t.addEntity(e):t.editEntity(e)),t.$root=n})},onSuccess:function(e,t,n){var o=this;this.$parent.$emit("saveCallback",n),setTimeout(function(){o.dialogLoading=!1,o.$parent.$emit("closeDialog")},300),this.notify(e,t,"success")},onError:function(e,t){this.dialogLoading=!1,this.$emit("errorCallback",t)},addEntity:function(e){var t=this,n=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(n=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName,this.getParsedEntity(e),n).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data)})},editEntity:function(e){var t=this,n=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(n=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName+"/"+this.entity.id,this.getParsedEntity(e),n).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data)})},deleteEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/delete/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.remove,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},showEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.show,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},hideEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.off,applyGlobally:e}).then(function(){t.onSuccess(t.$root.labels.success,t.message.success.hide,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},duplicateEntity:function(){var e=this;this.dialogLoading=!0,this.$parent.$emit("closeDialog",!0),this.$parent.$emit("duplicateCallback",this.entity),setTimeout(function(){e.showDuplicateConfirmation=!1,e.dialogLoading=!1},600)},handleSaveConfirmation:function(){this.showSaveConfirmation=!this.showSaveConfirmation,this.showVisibilityConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1},handleDuplicateConfirmation:function(){this.showDuplicateConfirmation=!this.showDuplicateConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showVisibilityConfirmation=!1},handleVisibilityConfirmation:function(){this.showVisibilityConfirmation=!this.showVisibilityConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1},handleDeleteConfirmation:function(){var e=this;this.showVisibilityConfirmation=!1,this.showDuplicateConfirmation=!1,this.showSaveConfirmation=!1,this.action.haveRemoveEffect?!1===this.showDeleteConfirmation&&this.$http.get(this.$root.getAjaxUrl+"/"+this.urlName+"/effect/"+this.entity.id).then(function(t){e.allowedDelete=t.data.data.valid||e.ignoreDeleteEffect,e.deleteEffectMessage=t.data.data.message,e.showDeleteConfirmation=!e.showDeleteConfirmation}).catch(function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation,e.deleteEffectMessage=""}):this.showDeleteConfirmation=!this.showDeleteConfirmation},handleSaveClick:function(){var e=this;this.getCalendarEvents&&!this.confirmCalendarConflict?this.getCalendarEvents().then(function(){e.haveSaveConfirmation&&e.haveSaveConfirmation()?e.handleSaveConfirmation():e.onSubmit(!1)}):this.haveSaveConfirmation&&this.haveSaveConfirmation()?this.handleSaveConfirmation():this.onSubmit(!1)},getConfirmSaveButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.save?{yes:this.buttonText.confirm.save.yes,no:this.buttonText.confirm.save.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmDeleteButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.remove?{yes:this.buttonText.confirm.remove.yes,no:this.buttonText.confirm.remove.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.status?{yes:this.buttonText.confirm.status.yes,no:this.buttonText.confirm.status.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getActionStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.status:""},getActionRemoveButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.remove:""},getActionDuplicateButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.duplicate:""},handleDialogTabChange:function(e,t){for(var n=Object.keys(e),o=0,i=0;i<n.length;i++)o=n[i].startsWith(t)?o+1:o;o===n.length&&this.$emit("validationTabFailCallback")},isStatusOn:function(){return this.entity.status===this.status.on},isStatusOff:function(){return this.entity.status===this.status.off}},computed:{},components:{}}},777:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"am-dialog-footer"},[n("div",{staticClass:"am-dialog-footer-actions"},[n("transition",{attrs:{name:"slide-vertical"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteConfirmation,expression:"showDeleteConfirmation"}],staticClass:"am-dialog-confirmation"},[n("h3",{directives:[{name:"show",rawName:"v-show",value:e.allowedDelete,expression:"allowedDelete"}]},[e._v("\n "+e._s(e.message.confirm.remove)+"\n ")]),e._v(" "),e.action.haveRemoveEffect&&e.deleteEffectMessage?n("el-alert",{attrs:{title:"",type:"warning",description:e.deleteEffectMessage,"show-icon":"",closable:!1}}):e._e(),e._v(" "),e.hasApplyGloballyDeletion?n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmDeleteButtonText().no)+"\n ")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmDeleteButtonText().yes)+"\n ")])],1):n("div",{staticClass:"align-left"},[e.allowedDelete?n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]):e._e(),e._v(" "),e.allowedDelete?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.deleteEntity(!1)}}},[e._v("\n "+e._s(e.$root.labels.delete)+"\n ")]):e._e(),e._v(" "),e.allowedDelete?e._e():n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[e._v("\n "+e._s(e.$root.labels.close)+"\n ")])],1)],1)]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[e.status?n("div",{directives:[{name:"show",rawName:"v-show",value:e.showVisibilityConfirmation,expression:"showVisibilityConfirmation"}],staticClass:"am-dialog-confirmation"},[e.isStatusOn()?n("h3",[e._v(e._s(e.message.confirm.hide))]):e.isStatusOff()?n("h3",[e._v(e._s(e.message.confirm.show))]):e._e(),e._v(" "),e.hasApplyGloballyVisibility?n("div",{staticClass:"align-left"},[e.isStatusOn()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().no)+"\n ")]):e._e(),e._v(" "),e.isStatusOn()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().no)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!0)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e()],1):n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showVisibilityConfirmation=!e.showVisibilityConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),e.isStatusOn()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.hideEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e(),e._v(" "),e.isStatusOff()?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e()],1)]):e._e()]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDuplicateConfirmation,expression:"showDuplicateConfirmation"}],staticClass:"am-dialog-confirmation"},[n("h3",[e._v(e._s(e.message.confirm.duplicate))]),e._v(" "),n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDuplicateConfirmation=!e.showDuplicateConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.duplicateEntity}},[e._v("\n "+e._s(e.$root.labels.duplicate)+"\n ")])],1)])]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSaveConfirmation,expression:"showSaveConfirmation"}],staticClass:"am-dialog-confirmation"},[e.buttonText?n("h3",[e._v(e._s(e.message.confirm.save)+"\n "),e.message.confirm.saveDetails?n("span",[e._v(e._s(e.message.confirm.saveDetails))]):e._e()]):e._e(),e._v(" "),e.buttonText?n("div",{staticClass:"align-left"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.onSubmit(!1)}}},[e._v("\n "+e._s(e.getConfirmSaveButtonText().no)+"\n ")]),e._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.onSubmit(!0)}}},[e._v("\n "+e._s(e.getConfirmSaveButtonText().yes)+"\n ")])],1):e._e(),e._v(" "),e.action.haveSaveWarning?n("el-alert",{staticStyle:{"word-break":"break-word"},attrs:{title:"",type:"warning",description:e.message.confirm.save,"show-icon":"",closable:!1}}):e._e()],1)]),e._v(" "),e.isNew?n("el-row",[n("el-col",{staticClass:"align-right",attrs:{sm:24}},[n("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),e.action.haveAdd&&e.action.haveEdit?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadSaveButton},on:{click:e.handleSaveClick}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")]):e._e()],1)],1):n("el-row",[n("el-col",{staticClass:"align-left",attrs:{sm:16}},[e.action.haveDuplicate?n("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("duplicate")},on:{click:e.handleDuplicateConfirmation}},[e.hasIcons?n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.duplicate,src:e.$root.getUrl+"public/img/copy.svg"}}):n("span",[e._v(e._s(e.getActionDuplicateButtonText()))])]):e._e(),e._v(" "),e.action.haveStatus?n("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("status")},on:{click:e.handleVisibilityConfirmation}},[e.hasIcons?n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.hide,src:e.$root.getUrl+(e.isStatusOff()?"public/img/unhide.svg":"public/img/hide.svg")}}):n("span",[e._v("\n "+e._s(e.getActionStatusButtonText())+"\n ")])]):e._e(),e._v(" "),e.action.haveRemove?n("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("remove")},on:{click:e.handleDeleteConfirmation}},[e.hasIcons?n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}}):n("span",[e._v("\n "+e._s(e.getActionRemoveButtonText())+"\n ")])]):e._e()],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{sm:!1===e.action.haveRemove&&!1===e.action.haveStatus&&!1===e.action.haveDuplicate?24:8}},[e.action.haveAdd&&e.action.haveEdit?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadSaveButton},on:{click:e.handleSaveClick}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")]):e._e()],1)],1)],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])])])},staticRenderFns:[]}},778:function(e,t,n){"use strict";var o=n(0),i=n.n(o);t.a={methods:{selectedTicketsCount:function(e){var t=0;return e.forEach(function(e){t+=e.persons}),t},entitiesLoaded:function(){return"ameliaEventEntities"in window||"ameliaEntities"in window},processEntities:function(e){this.getCurrentUser(),this.options.entities.locations=e.locations.filter(function(e){return"hidden"!==e.status}),this.options.entities.employees=e.employees.filter(function(e){return"hidden"!==e.status}),this.options.entities.customFields=e.customFields,this.options.entities.employees.forEach(function(e){e.serviceList.forEach(function(e){"name"in e||Object.assign(e,{extras:[]})})}),this.$root.useTranslations&&this.translateEntities(this.options.entities),this.setBookingCustomFields()},processCalendarEntities:function(e){this.processEntities(e),this.options.entities.tags=e.tags;var t=this.getPreselectedTag();if(t){var n=e.tags.find(function(e){return e.name===t});this.options.entities.tags=n?[n]:e.tags,this.eventFilterTag=n?[n.name]:[]}else this.options.entities.tags=e.tags;this.entitiesFetched=!0,this.getEvents()},processListEntities:function(e){this.processEntities(e),this.options.entities.tags=this.getPreselectedTag()?[]:e.tags},getEntities:function(e){var t=this;if(this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["locations","tags","custom_fields","employees"]})}).then(function(t){window.ameliaEventEntities=JSON.parse(JSON.stringify(t.data.data)),e(window.ameliaEventEntities)}).catch(function(){});else var n=setInterval(function(){t.entitiesLoaded()&&(clearInterval(n),"ameliaEntities"in window?e(JSON.parse(JSON.stringify(window.ameliaEntities))):e(JSON.parse(JSON.stringify(window.ameliaEventEntities))))},1e3)},getPreselectedTag:function(){return"eventTag"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventTag:null},getPreselectedEmployee:function(){return"eventTag"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.employee:null},getPreselectedEventId:function(){return"eventId"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventId:null},getPreselectedEventRecurring:function(){return"eventRecurring"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventRecurring:null},getImplodedPeriods:function(e){var t=null,n=[],o=[];return e.forEach(function(i,r){var a=t&&t.periodEnd===i.periodStart;a&&n.pop(),t={periodStart:a?t.periodStart:i.periodStart,periodEnd:i.periodEnd,isConnected:a},n.push(t),(e.length===r+1||r+1 in e&&e[r+1].periodStart!==i.periodEnd)&&(o=o.concat(JSON.parse(JSON.stringify(n))),n=[])}),o},getExplodedPeriods:function(e){var t=[];return e.forEach(function(e){if(e.isConnected)t.push(e);else{var n=i()(e.periodStart.split(" ")[0],"YYYY-MM-DD"),o=i()(e.periodEnd.split(" ")[0],"YYYY-MM-DD"),r=e.periodStart.split(" ")[1],a=e.periodEnd.split(" ")[1];"00:00:00"===a&&(a="24:00:00",o.subtract(1,"days"));for(var s=[];n.isSameOrBefore(o);)s.push(n.format("YYYY-MM-DD")),n.add(1,"days");s.forEach(function(n){t.push({periodStart:n+" "+r,periodEnd:n+" "+a,zoomMeeting:e.zoomMeeting,lessonSpace:e.lessonSpace})})}}),t},getEventStatus:function(e){switch(e.status){case"rejected":case"canceled":return{label:this.$root.labels.canceled,class:"canceled"};case"full":return{label:this.$root.labels.full,class:"full"};case"upcoming":return{label:this.$root.labels.upcoming,class:"upcoming"};case"approved":if(e.closed)return{label:this.$root.labels.closed,class:"closed"};if(e.opened&&e.places>0)return{label:this.$root.labels.opened,class:"opened"}}return{label:"",class:""}},getEventAddToCalendarData:function(e,t){t||this.$http.post(this.$root.getAjaxUrl+"/bookings/success/"+e.booking.id,{type:"event",appointmentStatusChanged:e.appointmentStatusChanged,paymentId:"paymentId"in e&&e.paymentId?e.paymentId:null,packageCustomerId:null}).then(function(e){}).catch(function(e){});var n="";e.event.location?n=e.event.location.address:e.event.customLocation&&(n=e.event.customLocation);var o=[];return e.utcTime.forEach(function(e){o.push({address:n,start:i.a.utc(e.start.replace(/ /g,"T")).toDate(),end:i.a.utc(e.end.replace(/ /g,"T")).toDate()})}),{title:this.$root.useTranslations?this.getNameTranslated(e.event):e.event.name,dates:o,address:n,description:this.$root.useTranslations?this.getDescriptionTranslated(e.event):e.event.description,id:e.booking.id,status:e.booking.status,active:this.$root.settings.general.addToCalendar,color:e.color,type:e.type,bookableType:e.type,bookable:e.event,booking:e.booking,token:e.booking.token,recurringIds:[]}},getMaxTicketSelected:function(e,t,n){if(e.bringingAnyone){var o=t.spots-t.sold,i=this.selectedTicketsCount(n.filter(function(e){return e.eventTicketId!==t.id}));return e.maxCustomCapacity&&(o=e.maxCustomCapacity-this.getAllSoldTickets(e)-i),null!==e.maxExtraPeople?e.maxExtraPeople+1>i?o>e.maxExtraPeople+1-i?e.maxExtraPeople-i+1:o:0:o}return 1},setTicketsData:function(e){e.bookingToEventTickets=[];var t=[];return e.customTickets.forEach(function(e,n){t.push({id:Math.random(),customerBookingId:null,eventTicketId:e.id,persons:0,price:e.dateRangePrice?e.dateRangePrice:e.price})}),t},getAllSoldTickets:function(e){var t=0;return e.customTickets&&e.customTickets.forEach(function(e){t+=e.sold}),t},getMinTicketPrice:function(e){var t=e.customTickets.filter(function(e){return e.enabled}),n=t[0].price;return t.forEach(function(e){e.price<n&&(n=e.price),e.dateRangePrice&&e.dateRangePrice<n&&(n=e.dateRangePrice)}),n}}}},779:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{getCurrentUser:function(){var e=this;if("ameliaUser"in window)var t=setInterval(function(){"ameliaUser"in window&&(clearInterval(t),e.setCurrentUser(JSON.parse(JSON.stringify(window.ameliaUser))))},1e3);else this.$http.get(this.$root.getAjaxUrl+"/users/current").then(function(t){window.ameliaUser=t.data.data.user?JSON.parse(JSON.stringify(t.data.data.user)):null,e.setCurrentUser(window.ameliaUser)}).catch(function(e){console.log("getCurrentUser fail")})},setCurrentUser:function(e){this.currentUser=e,this.currentUser&&this.appointment&&(this.appointment.bookings[0].customerId=this.currentUser.id,this.appointment.bookings[0].customer.id=this.currentUser.id,this.appointment.bookings[0].customer.externalId=this.currentUser.externalId,this.appointment.bookings[0].customer.email=this.currentUser.email,this.appointment.bookings[0].customer.firstName=this.currentUser.firstName,this.appointment.bookings[0].customer.lastName=this.currentUser.lastName,this.appointment.bookings[0].customer.phone=this.currentUser.phone||"",this.appointment.bookings[0].customer.countryPhoneIso=this.currentUser.countryPhoneIso,this.phonePopulated=!!this.currentUser.phone&&""!==this.currentUser.phone.trim())}}}},780:function(e,t,n){"use strict";var o=n(747);t.a={mixins:[o.a],data:function(){return{textMode:!1,editorOptions:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image"]]}},pageUrl:""}},methods:{parseQuillEditorContent:function(e){if(void 0!==e)for(var t=e.quill.root.getElementsByTagName("p"),n=0;n<t.length;n++)for(var o in this.linksForParsing){for(var i=t[n].getElementsByTagName("a"),r=0;r<i.length;r++)i[r].href===this.pageUrl+o&&(i[r].href=o);-1!==t[n].textContent.indexOf(this.linksForParsing[o])&&(t[n].innerHTML=t[n].innerHTML.replace(this.plainTextLinksForParsing[o],this.linksForParsing[o]))}},process:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),this.format(t,0).innerHTML},format:function(e,t){for(var n=new Array(1+t++).join(" "),o=new Array(t-1).join(" "),i=null,r=0;r<e.children.length;r++)i=document.createTextNode("\n"+n),e.insertBefore(i,e.children[r]),this.format(e.children[r],t),e.lastElementChild===e.children[r]&&(i=document.createTextNode("\n"+o),e.appendChild(i));return e},changedContentText:function(e,t,n){n?this[e][n]=this[t][n]:this[e]=this[t]},textModeChanged:function(e,t,n){this.textMode=!this.textMode,this.textMode?n?this[t][n]=this.process(this[e][n].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):this[t]=this.process(this[e].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):n?this[t][n]="\x3c!-- Content --\x3e"+this[t][n]:this[t]="\x3c!-- Content --\x3e"+this[t],n?this[e][n]=this[t][n]:this[e]=this[t]}}}},795:function(e,t,n){var o;"undefined"!=typeof self&&self,o=function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var o=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var r,a,s=String(i(t)),l=o(n),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var o=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var o=n("cb7c");e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var o=n("3a38"),i=Math.max,r=Math.min;e.exports=function(e,t){return(e=o(e))<0?i(e+t,0):r(e,t)}},1654:function(e,t,n){"use strict";var o=n("71c1")(!0);n("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var o=n("63b6");o(o.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var o=n("f772");e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var o=n("f772"),i=n("e53d").document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var o=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var o=n("2aba"),i=n("32e9"),r=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),f=!r(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),h=f?!r(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t}):void 0;if(!f||!h||"replace"===e&&!u||"split"===e&&!d){var m=/./[p],v=n(a,p,""[e],function(e,t,n,o,i){return t.exec===l?f&&!i?{done:!0,value:m.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),g=v[0],b=v[1];o(String.prototype,e,g),i(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var o=n("d3f4"),i=n("7726").document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},"23c6":function(e,t,n){var o=n("2d95"),i=n("2b4c")("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},"241e":function(e,t,n){var o=n("25eb");e.exports=function(e){return Object(o(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var o=n("7726"),i=n("32e9"),r=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(r(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(r(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},"2b4c":function(e,t,n){var o=n("5537")("wks"),i=n("ca5a"),r=n("7726").Symbol,a="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=a&&r[e]||(a?r:i)("Symbol."+e))}).store=o},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var o=n("5ca1"),i=n("d2c8"),r="includes";o(o.P+o.F*n("5147")(r),"String",{includes:function(e){return!!~i(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var o=n("b8e3"),i=n("63b6"),r=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),f="keys",h="values",m=function(){return this};e.exports=function(e,t,n,v,g,b,y){l(n,t,v);var _,k,w,x=function(e){if(!p&&e in S)return S[e];switch(e){case f:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",E=g==h,T=!1,S=e.prototype,O=S[d]||S["@@iterator"]||g&&S[g],P=O||x(g),$=g?E?x("entries"):P:void 0,A="Array"==t&&S.entries||O;if(A&&((w=u(A.call(new e)))!==Object.prototype&&w.next&&(c(w,C,!0),o||"function"==typeof w[d]||a(w,d,m))),E&&O&&O.name!==h&&(T=!0,P=function(){return O.call(this)}),o&&!y||!p&&!T&&S[d]||a(S,d,P),s[t]=P,s[C]=m,g)if(_={values:E?P:x(h),keys:b?P:x(f),entries:$},y)for(k in _)k in S||r(S,k,_[k]);else i(i.P+i.F*(p||T),t,_);return _}},"32a6":function(e,t,n){var o=n("241e"),i=n("c3a1");n("ce7e")("keys",function(){return function(e){return i(o(e))}})},"32e9":function(e,t,n){var o=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var o=n("e53d").document;e.exports=o&&o.documentElement},"335c":function(e,t,n){var o=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var o=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var o=n("335c"),i=n("25eb");e.exports=function(e){return o(i(e))}},3702:function(e,t,n){var o=n("481b"),i=n("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},"3a38":function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},"40c3":function(e,t,n){var o=n("6b4c"),i=n("5168")("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},4588:function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},"45f2":function(e,t,n){var o=n("d9f6").f,i=n("07e3"),r=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var o=n("be13");e.exports=function(e){return Object(o(e))}},"4ee1":function(e,t,n){var o=n("5168")("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],a=r[o]();a.next=function(){return{done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var o=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var o=n("dbdb")("wks"),i=n("62a0"),r=n("e53d").Symbol,a="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=a&&r[e]||(a?r:i)("Symbol."+e))}).store=o},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var o=n("0bfb"),i=RegExp.prototype.exec,r=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(a=function(e){var t,n,a,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",o.call(d))),l&&(t=d[s]),a=i.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),c&&a&&a.length>1&&r.call(a[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a}),e.exports=a},"53e2":function(e,t,n){var o=n("07e3"),i=n("241e"),r=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),o(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,n){"use strict";var o=n("d864"),i=n("63b6"),r=n("241e"),a=n("b0dc"),s=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,p=r(e),f="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=0,b=u(p);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),void 0==b||f==Array&&s(b))for(n=new f(t=l(p.length));t>g;g++)c(n,g,v?m(p[g],g):p[g]);else for(d=b.call(p),n=new f;!(i=d.next()).done;g++)c(n,g,v?a(d,m,[i.value,g],!0):i.value);return n.length=g,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var o=n("8378"),i=n("7726"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var o=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return o[e]||(o[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var o=n("36c3"),i=n("b447"),r=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=o(t),c=i(l.length),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var o=n("7726"),i=n("8378"),r=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,p,f,h=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,b=e&c.B,y=m?o:v?o[t]||(o[t]={}):(o[t]||{})[l],_=m?i:i[t]||(i[t]={}),k=_[l]||(_[l]={});for(u in m&&(n=t),n)p=((d=!h&&y&&void 0!==y[u])?y:n)[u],f=b&&d?s(p,o):g&&"function"==typeof p?s(Function.call,p):p,y&&a(y,u,p,e&c.U),_[u]!=p&&r(_,u,f),g&&k[u]!=p&&(k[u]=p)};o.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var o=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"626a":function(e,t,n){var o=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},"63b6":function(e,t,n){var o=n("e53d"),i=n("584a"),r=n("d864"),a=n("35e8"),s=n("07e3"),l="prototype",c=function(e,t,n){var u,d,p,f=e&c.F,h=e&c.G,m=e&c.S,v=e&c.P,g=e&c.B,b=e&c.W,y=h?i:i[t]||(i[t]={}),_=y[l],k=h?o:m?o[t]:(o[t]||{})[l];for(u in h&&(n=t),n)(d=!f&&k&&void 0!==k[u])&&s(y,u)||(p=d?k[u]:n[u],y[u]=h&&"function"!=typeof k[u]?n[u]:g&&d?r(p,o):b&&k[u]==p?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):v&&"function"==typeof p?r(Function.call,p):p,v&&((y.virtual||(y.virtual={}))[u]=p,e&c.R&&_&&!_[u]&&a(_,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},6762:function(e,t,n){"use strict";var o=n("5ca1"),i=n("c366")(!0);o(o.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var o=n("626a"),i=n("be13");e.exports=function(e){return o(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var o=n("d3f4");e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var o=n("e53d"),i=n("35e8"),r=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=o[c],d=u&&u.prototype;d&&!d[a]&&i(d,a,c),r[c]=r.Array}},"71c1":function(e,t,n){var o=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var r,a,s=String(i(t)),l=o(n),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var o=n("4588"),i=Math.max,r=Math.min;e.exports=function(e,t){return(e=o(e))<0?i(e+t,0):r(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7cd6":function(e,t,n){var o=n("40c3"),i=n("5168")("iterator"),r=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[o(e)]}},"7d7b":function(e,t,n){var o=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return o(t.call(e))}},"7e90":function(e,t,n){var o=n("d9f6"),i=n("e4ae"),r=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,a=r(t),s=a.length,l=0;s>l;)o.f(e,n=a[l++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var o=n("cb7c"),i=n("c69a"),r=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,n){"use strict";var o=n("a159"),i=n("aebd"),r=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:i(1,n)}),r(e,t+" Iterator")}},9003:function(e,t,n){var o=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==o(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var o=n("c3a1"),i=n("9aa9"),r=n("355d"),a=n("241e"),s=n("335c"),l=Object.assign;e.exports=!l||n("294c")(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=i.f,d=r.f;l>c;)for(var p,f=s(arguments[c++]),h=u?o(f).concat(u(f)):o(f),m=h.length,v=0;m>v;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:l},9427:function(e,t,n){var o=n("63b6");o(o.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var o=n("40c3"),i=n("5168")("iterator"),r=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||r.hasOwnProperty(o(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var o=n("d8e8");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var o=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[o]&&n("32e9")(i,o,{}),e.exports=function(e){i[o][e]=!0}},"9def":function(e,t,n){var o=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(e,t,n){var o=n("e4ae"),i=n("7e90"),r=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("1ec9")("iframe"),o=r.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c[l][r[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},a352:function(t,n){t.exports=e},a3c3:function(e,t,n){var o=n("63b6");o(o.S+o.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var o=n("cb7c"),i=n("4bf8"),r=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,function(e,t,n,m){return[function(o,i){var r=e(this),a=void 0==o?void 0:o[t];return void 0!==a?a.call(o,r,i):n.call(String(r),o,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=o(e),p=String(this),f="function"==typeof t;f||(t=String(t));var g=d.global;if(g){var b=d.unicode;d.lastIndex=0}for(var y=[];;){var _=l(d,p);if(null===_)break;if(y.push(_),!g)break;""===String(_[0])&&(d.lastIndex=s(p,r(d.lastIndex),b))}for(var k="",w=0,x=0;x<y.length;x++){_=y[x];for(var C=String(_[0]),E=c(u(a(_.index),p.length),0),T=[],S=1;S<_.length;S++)T.push(h(_[S]));var O=_.groups;if(f){var P=[C].concat(T,E,p);void 0!==O&&P.push(O);var $=String(t.apply(void 0,P))}else $=v(C,p,E,T,O,t);E>=w&&(k+=p.slice(w,E)+$,w=E+C.length)}return k+p.slice(w)}];function v(e,t,o,r,a,s){var l=o+e.length,c=r.length,u=f;return void 0!==a&&(a=i(a),u=p),n.call(s,u,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===r[p-1]?i.charAt(1):r[p-1]+i.charAt(1):n}s=r[u-1]}return void 0===s?"":s})}})},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var o=n("d3f4"),i=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},b0dc:function(e,t,n){var o=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},b447:function(e,t,n){var o=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var o=n("6821"),i=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=o(t),c=i(l.length),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var o=n("8436"),i=n("50ed"),r=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},c3a1:function(e,t,n){var o=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return o(e,i)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n("a481");var o=n("4aa6"),i=n.n(o);var r="undefined"!=typeof window?window.console:e.console;var a=/-(\w)/g,s=function(e){var t=i()(null);return function(n){return t[n]||(t[n]=e(n))}}(function(e){return e.replace(a,function(e,t){return t?t.toUpperCase():""})});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var o=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,o)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},cb7c:function(e,t,n){var o=n("d3f4");e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var o=n("63b6"),i=n("584a"),r=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*r(function(){n(1)}),"Object",a)}},d2c8:function(e,t,n){var o=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d864:function(e,t,n){var o=n("79aa");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var o=n("e4ae"),i=n("794b"),r=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var o=n("584a"),i=n("e53d"),r="__core-js_shared__",a=i[r]||(i[r]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var o=n("584a").Object;e.exports=function(e,t){return o.create(e,t)}},e4ae:function(e,t,n){var o=n("f772");e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var o=n("07e3"),i=n("36c3"),r=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&o(s,n)&&c.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~r(c,n)||c.push(n));return c}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var o=n("5ca1"),i=n("9def"),r=n("d2c8"),a="startsWith",s=""[a];o(o.P+o.F*n("5147")(a),"String",{startsWith:function(e){var t=r(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return s?s.call(t,o,n):t.slice(n,n+o.length)===o}})},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var o;n.r(t),"undefined"!=typeof window&&(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=o[1]);var i=n("5176"),r=n.n(i),a=(n("f559"),n("a4bb")),s=n.n(a),l=(n("6762"),n("2fdb"),n("a745")),c=n.n(l);var u=n("5d73"),d=n.n(u);function p(e,t){return function(e){if(c()(e))return e}(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=d()(e);!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=n("774e"),h=n.n(f),m=n("c8bb"),v=n.n(m);function g(e){return function(e){if(c()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(v()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return h()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var b=n("a352"),y=n.n(b),_=n("c649");function k(e,t){var n=this;this.$nextTick(function(){return n.$emit(e.toLowerCase(),t)})}function w(e,t){var n=null,o=function(e,t){n=function(e,t,n){return void 0===n?e:((e=e||{})[t]=n,e)}(n,e,t)};if(o("attrs",s()(e).filter(function(e){return"id"===e||e.startsWith("data-")}).reduce(function(t,n){return t[n]=e[n],t},{})),!t)return n;var i=t.on,a=t.props,l=t.attrs;return o("on",i),o("props",a),r()(n.attrs,l),n}var x=["Start","Add","Remove","Update","End"],C=["Choose","Sort","Filter","Clone"],E=["Move"].concat(x,C).map(function(e){return"on"+e}),T=null,S={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=p(e,1)[0].componentOptions;return!!t&&["transition-group","TransitionGroup"].includes(t.tag)}(t);var n=function(e,t){var n=t.header,o=t.footer,i=0,r=0;return n&&(i=n.length,e=e?[].concat(g(n),g(e)):g(n)),o&&(r=o.length,e=e?[].concat(g(e),g(o)):g(o)),{children:e,headerOffset:i,footerOffset:r}}(t,this.$slots),o=n.children,i=n.headerOffset,r=n.footerOffset;this.headerOffset=i,this.footerOffset=r;var a=w(this.$attrs,this.componentData);return e(this.getTag(),a,o)},created:function(){null!==this.list&&null!==this.value&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};x.forEach(function(n){t["on"+n]=function(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),k.call(t,e,n)}}.call(e,n)}),C.forEach(function(n){t["on"+n]=k.bind(e,n)});var n=s()(this.$attrs).reduce(function(t,n){return t[Object(_.a)(n)]=e.$attrs[n],t},{}),o=r()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in o)&&(o.draggable=">*"),this._sortable=new y.a(this.rootContainer,o),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(_.a)(t);-1===E.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick(function(){e.visibleIndexes=function(e,t,n,o){if(!e)return[];var i=e.map(function(e){return e.elm}),r=t.length-o,a=g(t).map(function(e,t){return t>=r?i.length:i.indexOf(e)});return n?a.filter(function(e){return-1!==e}):a}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)})},getUnderlyingVm:function(e){var t=function(e,t){return e.map(function(e){return e.elm}).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=g(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,g(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,o=this.getUnderlyingPotencialDraggableComponent(t);if(!o)return{component:o};var i=o.realList,a={list:i,component:o};if(t!==n&&i&&o.getUnderlyingVm){var s=o.getUnderlyingVm(n);if(s)return r()(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),T=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(_.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var o={element:t,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(e){if(Object(_.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(_.d)(e.clone)},onDragUpdate:function(e){Object(_.d)(e.item),Object(_.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var o={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:o})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=g(t.to.children).filter(function(e){return"none"!==e.style.display}),o=n.indexOf(t.related),i=e.component.getVmIndex(o);return-1!==n.indexOf(T)||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var o=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(o,e);return r()(i,{futureIndex:a}),n(r()({},e,{relatedContext:o,draggedContext:i}),t)},onDragEnd:function(){this.computeIndexes(),T=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",S);var O=S;t.default=O}}).default},e.exports=o(n(823))},796:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(771),i=(n.n(o),n(780));t.default={mixins:[i.a],props:{textModeProp:null,allowImage:!1,hasTranslation:!0,hasQuill:!0,label:"",entity:null,textProperty:"",htmlProperty:""},data:function(){return{textValue:"",isTextMode:!1}},mounted:function(){var e=this;this.textProperty in this.entity&&null!==this.entity[this.textProperty]||(this.entity[this.textProperty]=""),this.htmlProperty in this.entity&&null!==this.entity[this.htmlProperty]||(this.entity[this.htmlProperty]=""),this.$nextTick(function(){e.isTextMode=e.textModeProp,e.textValue=e.entity[e.textProperty],e.entity[e.htmlProperty]=e.entity[e.textProperty],e.entity[e.textProperty].startsWith("\x3c!-- Content --\x3e")&&(e.isTextMode=!1),e.isTextMode&&(e.entity[e.textProperty]=e.entity[e.textProperty].replace("\x3c!-- Content --\x3e",""))})},methods:{readyQuill:function(){this.textProperty in this.entity&&this.entity[this.textProperty]&&(this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ul>","<ul>"),this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ol>","<ol>"))},changedContentQuill:function(){this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e","")},changedContentText:function(){this.entity[this.textProperty]=this.process(this.textValue.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.entity[this.htmlProperty]=this.entity[this.textProperty]},showDialogTranslate:function(){this.$emit("showDialogTranslate")},textModeChanged:function(){this.isTextMode=!this.isTextMode,this.isTextMode?this.entity[this.textProperty]=this.process(this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):(this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.textProperty],this.entity[this.htmlProperty]=this.entity[this.textProperty]),this.textValue=this.entity[this.textProperty]}},components:{quillEditor:o.quillEditor}}},797:function(e,t,n){(function(t){var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),i=n(18),r=n(19),a=n(45),s=n(46),l=n(47),c=n(48),u=n(49),d=n(12),p=n(32),f=n(33),h=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:i.default,Leaf:r.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=v},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return i(t,e),t}(Error);t.ParchmentError=r;var a,s={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var i in o)if(n=l[o[i]])break;n=n||c[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new r("Unable to create "+e+" blot");var o=n;return new o(e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t),t)},t.find=function e(n,o){return void 0===o&&(o=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:o?e(n.parentNode,o):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var o=t[0];if("string"!=typeof o.blotName&&"string"!=typeof o.attrName)throw new r("Invalid definition");if("abstract"===o.blotName)throw new r("Cannot register abstract class");u[o.blotName||o.attrName]=o,"string"==typeof o.keyName?s[o.keyName]=o:(null!=o.className&&(l[o.className]=o),null!=o.tagName&&(Array.isArray(o.tagName)?o.tagName=o.tagName.map(function(e){return e.toUpperCase()}):o.tagName=o.tagName.toUpperCase(),(Array.isArray(o.tagName)?o.tagName:[o.tagName]).forEach(function(e){null!=c[e]&&null!=o.className||(c[e]=o)})));return o}},function(e,t,n){var o=n(51),i=n(11),r=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=r(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(o){(e(o)?t:n).push(o)}),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e},0)},l.prototype.length=function(){return this.reduce(function(e,t){return e+a.length(t)},0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),i=0;i<t&&o.hasNext();){var r;i<e?r=o.next(e-i):(r=o.next(t-i),n.push(r)),i+=a.length(r)}return new l(n)},l.prototype.compose=function(e){for(var t=a.iterator(this.ops),n=a.iterator(e.ops),o=new l;t.hasNext()||n.hasNext();)if("insert"===n.peekType())o.push(n.next());else if("delete"===t.peekType())o.push(t.next());else{var i=Math.min(t.peekLength(),n.peekLength()),r=t.next(i),s=n.next(i);if("number"==typeof s.retain){var c={};"number"==typeof r.retain?c.retain=i:c.insert=r.insert;var u=a.attributes.compose(r.attributes,s.attributes,"number"==typeof r.retain);u&&(c.attributes=u),o.push(c)}else"number"==typeof s.delete&&"number"==typeof r.retain&&o.push(s)}return o.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),r=new l,c=o(n[0],n[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return c.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),r.push(d.next(n));break;case o.DELETE:n=Math.min(t,u.peekLength()),u.next(n),r.delete(n);break;case o.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(n),l=d.next(n);i(s.insert,l.insert)?r.retain(n,a.attributes.diff(s.attributes,l.attributes)):r.push(l).delete(n)}t-=n}}),r.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var r=n.peek(),s=a.length(r)-n.peekLength(),c="string"==typeof r.insert?r.insert.indexOf(t,s)-s:-1;if(c<0)o.push(n.next());else if(c>0)o.push(n.next(c));else{if(!1===e(o,n.next(1).attributes||{},i))return;i+=1,o=new l}}o.length()>0&&e(o,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),i=new l;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())i.push(o.next());else{var r=Math.min(n.peekLength(),o.peekLength()),s=n.next(r),c=o.next(r);if(s.delete)continue;c.delete?i.push(c):i.retain(r,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var i=n.peekLength(),r=n.peekType();n.next(),"delete"!==r?("insert"===r&&(o<e||!t)&&(e+=i),o+=i):e-=Math.min(i,e-o)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},r=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,i=n.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!r)return!1;for(t in e);return void 0===t||n.call(e,t)};e.exports=function e(){var t,n,o,a,s,l,c=arguments[0],u=1,d=arguments.length,p=!1;for("boolean"==typeof c&&(p=c,c=arguments[1]||{},u=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});u<d;++u)if(null!=(t=arguments[u]))for(n in t)o=c[n],c!==(a=t[n])&&(p&&a&&(r(a)||(s=i(a)))?(s?(s=!1,l=o&&i(o)?o:[]):l=o&&r(o)?o:{},c[n]=e(p,l,a)):void 0!==a&&(c[n]=a));return c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},r=d(n(3)),a=d(n(2)),s=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,s.default.Embed),o(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var r=s.default.create(v.blotName);this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}();m.scope=s.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,s.default.Block),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))},new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,r){n<=0||(s.default.query(o,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,r):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,r),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var r=n.split("\n"),a=r.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;r.reduce(function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length},e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof l.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var r=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},r}}]),t}();function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,r.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[c.default,s.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=v(n(2)),s=v(n(14)),l=v(n(8)),c=v(n(9)),u=v(n(0)),d=n(15),p=v(d),f=v(n(3)),h=v(n(10)),m=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill"),y=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=_(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(e,t){var o=n.selection.lastRange,i=o&&0===o.length?o.index:void 0;k.call(n,function(){return n.editor.update(null,t,i)},e)});var r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return r(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach(function(o){n.register(o,e[o],t)})}else null==this.imports[e]||o||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),r(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,r=w(e,t,n),a=i(r,4);return e=a[0],t=a[1],n=a[3],k.call(this,function(){return o.editor.deleteText(e,t)},n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return k.call(this,function(){var o=n.getSelection(!0),i=new a.default;if(null==o)return i;if(u.default.query(e,u.default.Scope.BLOCK))i=n.editor.formatLine(o.index,o.length,g({},e,t));else{if(0===o.length)return n.selection.format(e,t),i;i=n.editor.formatText(o.index,o.length,g({},e,t))}return n.setSelection(o,l.default.sources.SILENT),i},o)}},{key:"formatLine",value:function(e,t,n,o,r){var a,s=this,l=w(e,t,n,o,r),c=i(l,4);return e=c[0],t=c[1],a=c[2],r=c[3],k.call(this,function(){return s.editor.formatLine(e,t,a)},r,e,0)}},{key:"formatText",value:function(e,t,n,o,r){var a,s=this,l=w(e,t,n,o,r),c=i(l,4);return e=c[0],t=c[1],a=c[2],r=c[3],k.call(this,function(){return s.editor.formatText(e,t,a)},r,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),o=i(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),o=i(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return k.call(this,function(){return i.editor.insertEmbed(t,n,o)},r,t)}},{key:"insertText",value:function(e,t,n,o,r){var a,s=this,l=w(e,0,n,o,r),c=i(l,4);return e=c[0],a=c[2],r=c[3],k.call(this,function(){return s.editor.insertText(e,t,a)},r,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,r=w(e,t,n),a=i(r,4);return e=a[0],t=a[1],n=a[3],k.call(this,function(){return o.editor.removeFormat(e,t)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return k.call(this,function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),r=i.ops[i.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),o.compose(i)},n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var r=w(t,n,o),a=i(r,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return k.call(this,function(){return e=new a.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function _(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=y.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},y.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function k(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),r=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==o?i=x(i,s,t):0!==o&&(i=x(i,n,o,t)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,r,t];if((c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}return s}function w(e,t,n,i,r){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(r=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(r=i,i=n,n=t,t=0),"object"===(void 0===n?"undefined":o(n))?(a=n,r=i):"string"==typeof n&&(null!=i?a[n]=i:r=n),[e,t,a,r=r||l.default.sources.API]}function x(e,t,n,o){if(null==e)return null;var r=void 0,s=void 0;if(t instanceof a.default){var c=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,o!==l.default.sources.USER)}),u=i(c,2);r=u[0],s=u[1]}else{var p=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&o===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),f=i(p,2);r=f[0],s=f[1]}return new d.Range(r,s-r)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=l.default.events,y.sources=l.default.sources,y.version="1.3.6",y.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=w,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},r=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Inline),o(t,[{key:"formatAt",value:function(e,n,o,r){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var s=this.isolate(e,n);r&&s.wrap(o,r)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),i=t.order.indexOf(n);return o>=0||i>=0?o-i:e===n?0:e<n?-1:1}}]),t}();l.allowedChildren=[l,a.default.Embed,r.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(0),r=(o=i)&&o.__esModule?o:{default:o};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Text),t}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=r(n(54));function r(e){return e&&e.__esModule?e:{default:e}}var a=(0,r(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)})})});var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),o(t,[{key:"emit",value:function(){a.log.apply(a,arguments),function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach(function(t){var o=t.node,i=t.handler;(e.target===o||o.contains(e.target))&&i.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}();s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};o.DEFAULTS={},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],i="warn";function r(e){if(o.indexOf(e)<=o.indexOf(i)){for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(t=console)[e].apply(t,r)}}function a(e){return o.reduce(function(t,n){return t[n]=r.bind(console,n,e),t},{})}r.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,i=n(52),r=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e))return!!r(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=i(e),p=i(t)}catch(e){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),c=d.length-1;c>=0;c--)if(d[c]!=p[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|i:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=d(n(2)),s=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,c.default),t}();m.blotName="code",m.tagName="CODE";var v=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,l.default),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,n){return t.insert(n).insert("\n",e.formats())},new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(u.default,this.length()-1),a=o(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,i){if(0!==n&&null!=s.default.query(o,s.default.Scope.BLOCK)&&(o!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var r=this.newlineIndex(e);if(!(r<0||r>=e+n)){var a=this.newlineIndex(e,!0)+1,l=r-a+1,c=this.isolate(a,l),u=c.next;c.format(o,i),u instanceof t&&u.formatAt(0,e-a+n-l,o,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(u.default,e),r=o(i,2),a=r[0],s=r[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}();v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(2)),s=g(n(20)),l=g(n(0)),c=g(n(13)),u=g(n(24)),d=n(4),p=g(d),f=g(n(16)),h=g(n(21)),m=g(n(11)),v=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return r(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)},new a.default)}(e)).reduce(function(e,a){var c=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var f=a.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=r&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=i(h,2),g=m[0],b=m[1],y=(0,v.default)({},(0,d.bubbleFormats)(g));if(g instanceof p.default){var _=g.descendant(l.default.Leaf,b),k=i(_,1)[0];y=(0,v.default)(y,(0,d.bubbleFormats)(k))}u=s.default.attributes.diff(y,u)||{}}else if("object"===o(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,a.insert[w])}r+=c}return Object.keys(u).forEach(function(n){t.scroll.formatAt(e,c,n,u[n])}),e+c},0),e.reduce(function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach(function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var r=n.scroll.lines(e,Math.max(t,1)),a=t;r.forEach(function(t){var r=t.length();if(t instanceof c.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,o[i])}else t.format(i,o[i]);a-=r})}}),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach(function(i){n.scroll.formatAt(e,t,i,o[i])}),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach(function(e){var t=i(e,1)[0];t instanceof p.default?n.push(t):t instanceof l.default.Leaf&&o.push(t)}):(n=this.scroll.lines(e,t),o=this.scroll.descendants(l.default.Leaf,e,t));var r=[n,o].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t});return v.default.apply(v.default,r)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach(function(i){n.scroll.formatAt(e,t.length,i,o[i])}),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof f.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),r=i(o,2),s=r[0],l=r[1],u=0,d=new a.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new a.default).insert(n).concat(d)),f=(new a.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),r=(0,d.bubbleFormats)(i),s=i.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new a.default).insert(c),f=(new a.default).insert(i.value());e=(new a.default).retain(s).concat(p.diff(f,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,r):e.push(t)},new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(o.compose(e),this.delta)||(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce(function(n,o){return null==e[o]?n:(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]],n)},{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=c(n(0)),a=c(n(21)),s=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,c(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){o.mouseDown||setTimeout(o.update.bind(o,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&o.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,i=n.startNode,r=n.startOffset,a=n.endNode,s=n.endOffset;o.setNativeRange(i,r,a,s)}}),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=r.default.find(n.start.node,!1);if(null==o)return;if(o instanceof r.default.Leaf){var i=o.split(n.start.offset);o.parent.insertBefore(this.cursor,i)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,r=this.scroll.leaf(e),a=o(r,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=o(c,2);i=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(i,l);var p=this.scroll.leaf(e+t),f=o(p,2);if(s=f[0],l=f[1],null==s)return null;var h=s.position(l,!0),m=o(h,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var v="left",g=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),v="right"),g=d.getBoundingClientRect()):(g=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map(function(e){var n=o(e,2),i=n[0],a=n[1],s=r.default.find(i,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof r.default.Container?l+s.length():l+s.index(i,a)}),a=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(u(i)));return new f(s,a-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],r=this.scroll.length();return n.forEach(function(e,n){e=Math.min(r-1,e);var a,s=t.scroll.leaf(e),l=o(s,2),c=l[0],u=l[1],d=c.position(u,0!==n),p=o(d,2);a=p[0],u=p[1],i.push(a,u)}),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,r=this.scroll.line(Math.min(t.index,i)),a=o(r,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));s=o(l,1)[0]}if(null!=a&&null!=s){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var r=document.getSelection();if(null!=r)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,o),r.removeAllRanges(),r.addRange(s)}}else r.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,u(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=o(n,2),r=i[0],c=i[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];if((u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(p)),e!==l.default.sources.SILENT)(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),a=(o=r)&&o.__esModule?o:{default:o};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Embed),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}();s.blotName="break",s.tagName="BR",t.default=s},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),a=n(30),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return i(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof s.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var o=this.children.find(n),i=o[0],r=o[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,r]:i instanceof t?i.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var i=[],r=o;return this.children.forEachAt(n,o,function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,o,r))),r-=a}),i},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,function(e,t,i){e.formatAt(t,i,n,o)})},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),i=o[0],r=o[1];if(i)i.insertAt(r,t,n);else{var a=null==n?s.create("text",t):s.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),i=o[0],r=o[1],a=[[this,e]];return i instanceof t?a.concat(i.path(r,n)):(null!=i&&a.push([i,r]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),function(e,o,i){e=e.split(o,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],i=[];e.forEach(function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),i.push.apply(i,e.removedNodes))}),i.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),o.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var o=c(e);o.next==t&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))})},t}(a.default);function c(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),a=n(31),s=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return i(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof r.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===o.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,o){var i=e.prototype.wrap.call(this,n,o);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(s.default);t.default=c},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t.scope=a.Scope.INLINE_BLOT,t}(r.default);t.default=s},function(e,t,n){var o=n(11),i=n(3),r={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=i(!0,{},t);for(var r in n||(o=Object.keys(o).reduce(function(e,t){return null!=o[t]&&(e[t]=o[t]),e},{})),e)void 0!==e[r]&&void 0===t[r]&&(o[r]=e[r]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,i){return o(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce(function(n,o){return void 0===e[o]&&(n[o]=t[o]),n},{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=r.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=r},function(e,n){var o=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,o,i;try{n=Map}catch(e){n=function(){}}try{o=Set}catch(e){o=function(){}}try{i=Promise}catch(e){i=function(){}}function r(a,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var p=[],f=[],h=void 0!==t;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var v,g;if("object"!=typeof c)return c;if(e(c,n))v=new n;else if(e(c,o))v=new o;else if(e(c,i))v=new i(function(e,t){c.then(function(t){e(a(t,m-1))},function(e){t(a(e,m-1))})});else if(r.__isArray(c))v=[];else if(r.__isRegExp(c))v=new RegExp(c.source,s(c)),c.lastIndex&&(v.lastIndex=c.lastIndex);else if(r.__isDate(c))v=new Date(c.getTime());else{if(h&&t.isBuffer(c))return v=new t(c.length),c.copy(v),v;e(c,Error)?v=Object.create(c):void 0===u?(g=Object.getPrototypeOf(c),v=Object.create(g)):(v=Object.create(u),g=u)}if(l){var b=p.indexOf(c);if(-1!=b)return f[b];p.push(c),f.push(v)}for(var y in e(c,n)&&c.forEach(function(e,t){var n=a(t,m-1),o=a(e,m-1);v.set(n,o)}),e(c,o)&&c.forEach(function(e){var t=a(e,m-1);v.add(t)}),c){var _;g&&(_=Object.getOwnPropertyDescriptor(g,y)),_&&null==_.set||(v[y]=a(c[y],m-1))}if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(c);for(y=0;y<k.length;y++){var w=k[y];(!(C=Object.getOwnPropertyDescriptor(c,w))||C.enumerable||d)&&(v[w]=a(c[w],m-1),C.enumerable||Object.defineProperty(v,w,{enumerable:!1}))}}if(d){var x=Object.getOwnPropertyNames(c);for(y=0;y<x.length;y++){var C,E=x[y];(C=Object.getOwnPropertyDescriptor(c,E))&&C.enumerable||(v[E]=a(c[E],m-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(a,c)}function a(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=a,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},r.__getRegExpFlags=s,r}();"object"==typeof e&&e.exports&&(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=f(n(0)),s=f(n(8)),l=n(4),c=f(l),u=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),o.domNode.addEventListener("DOMNodeInserted",function(){}),o.optimize(),o.enable(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Scroll),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=o(i,2),s=a[0],c=a[1],p=this.line(e+n),f=o(p,1)[0];if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&s!==f&&c>0){if(s instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var v=f.children.head instanceof u.default?null:f.children.head;s.moveChildren(f,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,i){(null==this.whitelist||this.whitelist[o])&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,o)}else{var s=a.default.create(n,o);this.appendChild(s)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,o){var i=[],r=o;return t.children.forEachAt(n,o,function(t,n,o){h(t)?i.push(t):t instanceof a.default.Container&&(i=i.concat(e(t,n,r))),r-=o}),i}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}();m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,p.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=m(n(21)),s=m(n(11)),l=m(n(3)),c=m(n(2)),u=m(n(20)),d=m(n(0)),p=m(n(5)),f=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,f.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&o.options.bindings[t]&&o.addBinding(o.options.bindings[t])}),o.addBinding({key:t.keys.ENTER,shiftKey:null},C),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0},w)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},x),o.addBinding({key:t.keys.DELETE},{collapsed:!1},x),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),o.listen(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.default),r(t,null,[{key:"match",value:function(e,t){return t=S(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),r(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=S(e);if(null==o||null==o.key)return g.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,l.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,a=(e.bindings[r]||[]).filter(function(e){return t.match(n,e)});if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=i(c,2),p=u[0],f=u[1],h=e.quill.getLeaf(l.index),m=i(h,2),v=m[0],g=m[1],b=0===l.length?[v,g]:e.quill.getLeaf(l.index+l.length),y=i(b,2),_=y[0],k=y[1],w=v instanceof d.default.Text?v.value().slice(0,g):"",x=_ instanceof d.default.Text?_.value().slice(k):"",C={collapsed:0===l.length,empty:0===l.length&&p.length()<=1,format:e.quill.getFormat(l),offset:f,prefix:w,suffix:x};a.some(function(t){if(null!=t.collapsed&&t.collapsed!==C.collapsed)return!1;if(null!=t.empty&&t.empty!==C.empty)return!1;if(null!=t.offset&&t.offset!==C.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==C.format[e]}))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=C.format[e]:!1===t.format[e]?null==C.format[e]:(0,s.default)(t.format[e],C.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(C.prefix))&&(!(null!=t.suffix&&!t.suffix.test(C.suffix))&&!0!==t.handler.call(e,l,C))})&&n.preventDefault()}}}})}}]),t}();function _(e,t){var n,o=e===y.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},o,/^$/),v(n,"handler",function(n){var o=n.index;e===y.keys.RIGHT&&(o+=n.length+1);var r=this.quill.getLeaf(o);return!(i(r,1)[0]instanceof d.default.Embed)||(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),!1)}),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=i(n,1)[0],r={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var l=o.formats(),c=this.quill.getFormat(e.index-1,1);r=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index-d,d,r,p.default.sources.USER),this.quill.focus()}}function w(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},r=0,a=this.quill.getLine(e.index),s=i(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1)[0];if(c){var d=s.formats(),f=this.quill.getFormat(e.index,1);o=u.default.attributes.diff(d,f)||{},r=c.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+r-1,n,o,p.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),i=t[t.length-1].formats();n=u.default.attributes.diff(i,o)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function C(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce(function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,"\n",o,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))})}function E(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,r=t.length,a=this.quill.scroll.descendant(n,o),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+r),m=l.domNode.textContent.slice(f,h).split("\n");c=0,m.forEach(function(t,i){e?(l.insertAt(f+c,n.TAB),c+=n.TAB.length,0===i?o+=n.TAB.length:r+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+c,n.TAB.length),c-=n.TAB.length,0===i?o-=n.TAB.length:r-=n.TAB.length),c+=t.length+1}),this.quill.update(p.default.sources.USER),this.quill.setSelection(o,r,p.default.sources.SILENT)}}}}function T(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function S(e){if("string"==typeof e||"number"==typeof e)return S({key:e});if("object"===(void 0===e?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:T("bold"),italic:T("italic"),underline:T("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),o=n[0],r=n[1],a=(0,l.default)({},o.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",a).retain(o.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=i(n,2),r=o[0],a=o[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(r.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),r=i(o,2),a=r[0],s=r[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),o=n[0],r=n[1],a=(new c.default).retain(e.index+o.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,p.default.sources.USER)}},"embed left":_(y.keys.LEFT,!1),"embed left shift":_(y.keys.LEFT,!0),"embed right":_(y.keys.RIGHT,!1),"embed right shift":_(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=l(n(0)),s=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Embed),r(t,null,[{key:"value",value:function(){}}]),r(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,r=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)r+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(r,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,r=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];i=c[0],r=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var d=[r,l].map(function(e){return Math.max(0,Math.min(i.data.length,e-1))}),p=o(d,2);return r=p[0],l=p[1],{startNode:i,startOffset:r,endNode:i,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}();c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),i=n(4),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Container),t}();s.allowedChildren=[r.default,i.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),a=(o=r)&&o.__esModule?o:{default:o};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Attributor.Style),i(t,[{key:"value",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):n}}]),t}(),l=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=l,t.ColorStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(6),s=(o=a)&&o.__esModule?o:{default:o};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),i(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}();function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case r.default.keys.ENTER:n.togglePicker();break;case r.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",function(){t.selectItem(n,!0)}),n.addEventListener("keydown",function(e){switch(e.keyCode){case r.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=g(n(0)),i=g(n(5)),r=n(4),a=g(r),s=g(n(16)),l=g(n(25)),c=g(n(24)),u=g(n(35)),d=g(n(6)),p=g(n(22)),f=g(n(7)),h=g(n(55)),m=g(n(42)),v=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":a.default,"blots/block/embed":r.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),o.default.register(a.default,s.default,c.default,d.default,p.default,f.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var r=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&i)r.wrap(n,i);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);r.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?o.create("text",t):o.create(t,n),r=this.split(e);this.parent.insertBefore(i,r)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n(32),r=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=i.default.keys(this.domNode),s=r.default.keys(this.domNode);t.concat(n).concat(s).forEach(function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=s},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){r(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function r(e){var t=e.split("-"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=a(n(0)),r=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Embed),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof r.default){var a=this.prev.length();this.prev.insertAt(a,o),t={startNode:this.prev.domNode,startOffset:a+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof r.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}})}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o,i=n(0),r=(o=i)&&o.__esModule?o:{default:o};var a={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new r.default.Attributor.Attribute("align","align",a),l=new r.default.Attributor.Class("align","ql-align",a),c=new r.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o,i=n(0),r=(o=i)&&o.__esModule?o:{default:o},a=n(26);var s=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new a.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o,i=n(0),r=(o=i)&&o.__esModule?o:{default:o};var a={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},s=new r.default.Attributor.Attribute("direction","dir",a),l=new r.default.Attributor.Class("direction","ql-direction",a),c=new r.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),a=(o=r)&&o.__esModule?o:{default:o};var s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new a.default.Attributor.Class("font","ql-font",s),c=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Attributor.Style),i(t,[{key:"value",value:function(e){return function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}())("font","font-family",s);t.FontStyle=c,t.FontClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o,i=n(0),r=(o=i)&&o.__esModule?o:{default:o};var a=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=s(n(0)),r=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(r.default.events.EDITOR_CHANGE,function(e,t,n,i){e!==r.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&i!==r.default.sources.USER?o.transform(t):o.record(t,n))}),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],r.default.sources.USER),this.ignoreChange=!1;var o=c(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}();function c(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)}))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=f(n(3)),r=f(n(2)),a=f(n(8)),s=f(n(23)),l=f(n(34)),c=f(n(59)),u=f(n(60)),d=f(n(28)),p=f(n(61));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],y=[!1,"serif","monospace"],_=["1","2","3",!1],k=["small",!1,"large","huge"],w=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==o.tooltip||o.tooltip.root.contains(n.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),o}return v(t,l.default),o(t,[{key:"addModule",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}})})}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&C(e,g),new u.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&C(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?C(e,y):e.classList.contains("ql-header")?C(e,_):e.classList.contains("ql-size")&&C(e,k)),new d.default(e)});this.quill.on(a.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}();w.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new r.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,p.default),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0";if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/";return e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}();function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)})}t.BaseTooltip=x,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,i=this.find(e),r=i[0],a=e-i[1],s=this.iterator(r);(o=s())&&a<e+t;){var l=o.length();e>a?n(o,e-a,Math.min(t,a+l-e)):n(o,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,s),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,i){this.update(),e.prototype.formatAt.call(this,t,n,o,i)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof r.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=a.find(e,!1);s(t,!1),t instanceof r.default&&t.children.forEach(function(e){s(e,!1)})})):"attributes"===e.type&&s(t.prev)),s(t))}),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==o&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)}),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(r.default);t.default=l},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),a=n(1);var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var i=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach(function(e){e instanceof r.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,o,i){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,i):e.prototype.formatAt.call(this,t,n,o,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(o,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.default);t.default=s},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,i){null!=a.query(o,a.Scope.BLOCK)?this.format(o,i):e.prototype.formatAt.call(this,t,n,o,i)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var i=this.split(t),r=a.create(n,o);i.parent.insertBefore(r,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(r.default);t.default=s},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,i){0===t&&n===this.length()?this.format(o,i):e.prototype.formatAt.call(this,t,n,o,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=r},function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(r.default);t.default=s},function(e,t,n){"use strict";var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,i=arguments[1],r=0;r<o;r++)if(t=n[r],e.call(i,t,r,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var n=-1,o=1,i=0;function r(e,t,c){if(e==t)return e?[[i,e]]:[];(c<0||e.length<c)&&(c=null);var d=s(e,t),p=e.substring(0,d);d=l(e=e.substring(d),t=t.substring(d));var f=e.substring(e.length-d),h=function(e,t){var c;if(!e)return[[o,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,p=u.indexOf(d);if(-1!=p)return c=[[o,u.substring(0,p)],[i,d],[o,u.substring(p+d.length)]],e.length>t.length&&(c[0][0]=c[2][0]=n),c;if(1==d.length)return[[n,e],[o,t]];var f=function(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function i(e,t,n){for(var o,i,r,a,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=s(e.substring(n),t.substring(u)),f=l(e.substring(0,n),t.substring(0,u));d.length<f+p&&(d=t.substring(u-f,u)+t.substring(u,u+p),o=e.substring(0,n-f),i=e.substring(n+p),r=t.substring(0,u-f),a=t.substring(u+p))}return 2*d.length>=e.length?[o,i,r,a,d]:null}var r,a,c,u,d,p=i(n,o,Math.ceil(n.length/4)),f=i(n,o,Math.ceil(n.length/2));if(!p&&!f)return null;r=f?p&&p[4].length>f[4].length?p:f:p;e.length>t.length?(a=r[0],c=r[1],u=r[2],d=r[3]):(u=r[0],d=r[1],a=r[2],c=r[3]);var h=r[4];return[a,c,u,d,h]}(e,t);if(f){var h=f[0],m=f[1],v=f[2],g=f[3],b=f[4],y=r(h,v),_=r(m,g);return y.concat([[i,b]],_)}return function(e,t){for(var i=e.length,r=t.length,s=Math.ceil((i+r)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),p=0;p<c;p++)u[p]=-1,d[p]=-1;u[l+1]=0,d[l+1]=0;for(var f=i-r,h=f%2!=0,m=0,v=0,g=0,b=0,y=0;y<s;y++){for(var _=-y+m;_<=y-v;_+=2){for(var k=l+_,w=(S=_==-y||_!=y&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1)-_;S<i&&w<r&&e.charAt(S)==t.charAt(w);)S++,w++;if(u[k]=S,S>i)v+=2;else if(w>r)m+=2;else if(h){var x=l+f-_;if(x>=0&&x<c&&-1!=d[x]){var C=i-d[x];if(S>=C)return a(e,t,S,w)}}}for(var E=-y+g;E<=y-b;E+=2){for(var x=l+E,T=(C=E==-y||E!=y&&d[x-1]<d[x+1]?d[x+1]:d[x-1]+1)-E;C<i&&T<r&&e.charAt(i-C-1)==t.charAt(r-T-1);)C++,T++;if(d[x]=C,C>i)b+=2;else if(T>r)g+=2;else if(!h){var k=l+f-E;if(k>=0&&k<c&&-1!=u[k]){var S=u[k],w=l+S-k;if(S>=(C=i-C))return a(e,t,S,w)}}}}return[[n,e],[o,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&h.unshift([i,p]),f&&h.push([i,f]),function e(t){t.push([i,""]);var r=0;var a=0;var c=0;var u="";var d="";var p;for(;r<t.length;)switch(t[r][0]){case o:c++,d+=t[r][1],r++;break;case n:a++,u+=t[r][1],r++;break;case i:a+c>1?(0!==a&&0!==c&&(0!==(p=s(d,u))&&(r-a-c>0&&t[r-a-c-1][0]==i?t[r-a-c-1][1]+=d.substring(0,p):(t.splice(0,0,[i,d.substring(0,p)]),r++),d=d.substring(p),u=u.substring(p)),0!==(p=l(d,u))&&(t[r][1]=d.substring(d.length-p)+t[r][1],d=d.substring(0,d.length-p),u=u.substring(0,u.length-p))),0===a?t.splice(r-c,a+c,[o,d]):0===c?t.splice(r-a,a+c,[n,u]):t.splice(r-a-c,a+c,[n,u],[o,d]),r=r-a-c+(a?1:0)+(c?1:0)+1):0!==r&&t[r-1][0]==i?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,c=0,a=0,u="",d=""}""===t[t.length-1][1]&&t.pop();var f=!1;r=1;for(;r<t.length-1;)t[r-1][0]==i&&t[r+1][0]==i&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),f=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),f=!0)),r++;f&&e(t)}(h),null!=c&&(h=function(e,t){var o=function(e,t){if(0===t)return[i,e];for(var o=0,r=0;r<e.length;r++){var a=e[r];if(a[0]===n||a[0]===i){var s=o+a[1].length;if(t===s)return[r+1,e];if(t<s){e=e.slice();var l=t-o,c=[a[0],a[1].slice(0,l)],u=[a[0],a[1].slice(l)];return e.splice(r,1,c,u),[r+1,e]}o=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=o[1],a=o[0],s=r[a],l=r[a+1];if(null==s)return e;if(s[0]!==i)return e;if(null!=l&&s[1]+l[1]===l[1]+s[1])return r.splice(a,2,l,s),u(r,a,2);if(null!=l&&0===l[1].indexOf(s[1])){r.splice(a,2,[l[0],s[1]],[0,s[1]]);var c=l[1].slice(s[1].length);return c.length>0&&r.splice(a+2,0,[l[0],c]),u(r,a,3)}return e}(h,c)),h=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=2;a<e.length;a+=1)e[a-2][0]===i&&((s=e[a-2][1]).charCodeAt(s.length-1)>=55296&&s.charCodeAt(s.length-1)<=56319)&&e[a-1][0]===n&&r(e[a-1][1])&&e[a][0]===o&&r(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));var s;if(!t)return e;for(var l=[],a=0;a<e.length;a+=1)e[a][1].length>0&&l.push(e[a]);return l}(h)}function a(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=r(i,a),u=r(s,l);return c.concat(u)}function s(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(r,i)==t.substring(r,i)?r=n=i:o=i,i=Math.floor((o-n)/2+n);return i}function l(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(e.length-i,e.length-r)==t.substring(t.length-i,t.length-r)?r=n=i:o=i,i=Math.floor((o-n)/2+n);return i}var c=r;function u(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var i=e[o],r=e[o+1];i[0]===r[1]&&e.splice(o,2,[i[0],i[1]+r[1]])}return e}c.INSERT=o,c.DELETE=n,c.EQUAL=i,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:i).supported=o,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=o?o+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var r=0,a=i.length,s=new Array(a);r<a;r++)s[r]=i[r].fn;return s},a.prototype.emit=function(e,t,n,i,r,a){var s=o?o+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,r),!0;case 6:return u.fn.call(u.context,t,n,i,r,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,n){var i=new r(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new r(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=y(n(3)),s=y(n(2)),l=y(n(0)),c=y(n(5)),u=y(n(10)),d=y(n(9)),p=n(36),f=n(37),h=y(n(13)),m=n(26),v=n(38),g=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(0,u.default)("quill:clipboard"),w="__ql-matcher",x=[[Node.TEXT_NODE,R],[Node.TEXT_NODE,L],["br",function(e,t){P(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,function(e,t){var n={},o=e.style||{};o.fontStyle&&"italic"===O(e).fontStyle&&(n.italic=!0);o.fontWeight&&(O(e).fontWeight.startsWith("bold")||parseInt(O(e).fontWeight)>=700)&&(n.bold=!0);Object.keys(n).length>0&&(t=S(t,n));parseFloat(o.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t));return t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!P(t,"\n"))return t;var o=-1,i=e.parentNode;for(;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(o+=1),i=i.parentNode;return o<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:o}))}],["b",A.bind(A,"bold")],["i",A.bind(A,"italic")],["style",function(){return new s.default}]],C=[p.AlignAttribute,v.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),E=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,v.DirectionStyle,g.FontStyle,b.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),T=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],x.concat(o.options.matchers).forEach(function(e){var t=i(e,2),r=t[0],a=t[1];(n.matchVisual||a!==j)&&o.addMatcher(r,a)}),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),r(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,_({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),r=i(o,2),a=r[0],l=r[1],c=function e(t,n,o){return t.nodeType===t.TEXT_NODE?o.reduce(function(e,n){return n(t,e)},new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(i,r){var a=e(r,n,o);return r.nodeType===t.ELEMENT_NODE&&(a=n.reduce(function(e,t){return t(r,e)},a),a=(r[w]||[]).reduce(function(e,t){return t(r,e)},a)),i.concat(a)},new s.default):new s.default}(this.container,a,l);return P(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),k.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,c.default.sources.USER),t.quill.setSelection(o.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach(function(o){var r=i(o,2),a=r[0],s=r[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),function(e){e[w]=e[w]||[],e[w].push(s)})}}),[t,n]}}]),t}();function S(e,t,n){return"object"===(void 0===t?"undefined":o(t))?Object.keys(t).reduce(function(e,n){return S(e,n,t[n])},e):e.reduce(function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},_({},t,n),o.attributes))},new s.default)}function O(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};return e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function P(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var i=e.ops[o];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function $(e){if(0===e.childNodes.length)return!1;var t=O(e);return["block","list-item"].indexOf(t.display)>-1}function A(e,t,n){return S(n,e,!0)}function N(e,t){var n=l.default.Attributor.Attribute.keys(e),o=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),r={};return n.concat(o).concat(i).forEach(function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(r[n.attrName]=n.value(e),r[n.attrName])||(null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(r[n.attrName]=n.value(e)||void 0),null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(n=E[t],r[n.attrName]=n.value(e)||void 0))}),Object.keys(r).length>0&&(t=S(t,r)),t}function D(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var o={},i=n.value(e);null!=i&&(o[n.blotName]=i,t=(new s.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=S(t,n.blotName,n.formats(e)));return t}function L(e,t){return P(t,"\n")||($(e)||t.length()>0&&e.nextSibling&&$(e.nextSibling))&&t.insert("\n"),t}function j(e,t){if($(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat(O(e).marginTop)+parseFloat(O(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function R(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!O(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&$(e.parentNode)||null!=e.previousSibling&&$(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&$(e.parentNode)||null!=e.nextSibling&&$(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}T.DEFAULTS={matchers:[],matchVisual:!0},t.default=T,t.matchAttributor=N,t.matchBlot=D,t.matchNewline=L,t.matchSpacing=j,t.matchText=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(6),s=(o=a)&&o.__esModule?o:{default:o};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),i(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}();l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=u(n(2)),a=u(n(0)),s=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,l.default)("quill:toolbar"),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(r.options.container)){var a=document.createElement("div");m(a,r.options.container),e.container.parentNode.insertBefore(a,e.container),r.container=a}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(e){r.addHandler(e,r.options.handlers[e])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(e){r.attach(e)}),r.quill.on(s.default.events.EDITOR_CHANGE,function(e,t){e===s.default.events.SELECTION_CHANGE&&r.update(t)}),r.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var e=r.quill.selection.getRange(),t=o(e,1)[0];r.update(t)}),r):(i=p.error("Container required for toolbar",r.options),d(r,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void p.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,function(i){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=o(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new r.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(d)}),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var i=o(n,2),r=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[r])s=a.querySelector("option[selected]");else if(!Array.isArray(t[r])){var l=t[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var c=t[r]===a.getAttribute("value")||null!=t[r]&&t[r].toString()===a.getAttribute("value")||null==t[r]&&!a.getAttribute("value");a.classList.toggle("ql-active",c)}else a.classList.toggle("ql-active",null!=t[r])})}}]),t}();function h(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?function(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)}),e.appendChild(o)}(n,t,o):h(n,t,o)}}),e.appendChild(n)})}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",o+i,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=f,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(28),s=(o=a)&&o.__esModule?o:{default:o};var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),i(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(28),a=(o=r)&&o.__esModule?o:{default:o};var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,[{key:"selectItem",value:function(e,n){(function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var i=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),r=0;if(i.right>o.right&&(r=o.right-i.right,this.root.style.left=t+r+"px"),i.left<o.left&&(r=o.left-i.left,this.root.style.left=t+r+"px"),i.bottom>o.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=f(n(3)),s=f(n(8)),l=n(43),c=f(l),u=f(n(27)),d=n(15),p=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return v(t,c.default),r(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}();b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return v(t,l.BaseTooltip),r(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(s.default.events.SELECTION_CHANGE,function(t,n,i){if(null!=t){if(0===t.length&&i===s.default.sources.USER){var r=e.quill.scroll.descendant(u.default,t.index),a=o(r,2),l=a[0],c=a[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var p=u.default.formats(l.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}();y.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=j(n(29)),i=n(36),r=n(38),a=n(64),s=j(n(65)),l=j(n(66)),c=n(67),u=j(c),d=n(37),p=n(26),f=n(39),h=n(40),m=j(n(56)),v=j(n(68)),g=j(n(27)),b=j(n(69)),y=j(n(70)),_=j(n(71)),k=j(n(72)),w=j(n(73)),x=n(13),C=j(x),E=j(n(74)),T=j(n(75)),S=j(n(57)),O=j(n(41)),P=j(n(28)),$=j(n(59)),A=j(n(60)),N=j(n(61)),D=j(n(108)),L=j(n(62));function j(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":C.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":x.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":_.default,"formats/image":k.default,"formats/video":w.default,"formats/list/item":c.ListItem,"modules/formula":E.default,"modules/syntax":T.default,"modules/toolbar":S.default,"themes/bubble":D.default,"themes/snow":L.default,"ui/icons":O.default,"ui/picker":P.default,"ui/icon-picker":A.default,"ui/color-picker":$.default,"ui/tooltip":N.default},!0),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};var l=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Attributor.Class),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}())("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(4),r=(o=i)&&o.__esModule?o:{default:o};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),t}();a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(4),a=(o=r)&&o.__esModule?o:{default:o};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}();s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},r=l(n(0)),a=l(n(4)),s=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,a.default),o(t,[{key:"format",value:function(e,n){e!==f.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}();p.blotName="list-item",p.tagName="LI";var f=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),i=r.default.find(t.target);"checked"===o?i.format("list","unchecked"):"unchecked"===o&&i.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return d(t,s.default),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof p)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),r=this.split(o);r.parent.insertBefore(e,r)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=r.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}();f.blotName="list",f.scope=r.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(56),r=(o=i)&&o.__esModule?o:{default:o};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),t}();a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(6),a=(o=r)&&o.__esModule?o:{default:o};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}();s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(6),r=(o=i)&&o.__esModule?o:{default:o};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),t}();a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(6),r=(o=i)&&o.__esModule?o:{default:o};var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),t}();a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o},l=n(27);var c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Embed),i(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=n(4),s=n(27),l=(o=s)&&o.__esModule?o:{default:o};var c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.BlockEmbed),i(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=s(n(35)),r=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,i.default),o(t,null,[{key:"create",value:function(e){var n=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}();d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){l(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return u(t,a.default),o(t,null,[{key:"register",value:function(){r.default.register(d,!0)}}]),t}();t.FormulaBlot=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(0)),r=l(n(5)),a=l(n(9)),s=l(n(13));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,s.default),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}();p.className="ql-syntax";var f=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){c(this,t);var o=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return o.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(i),i=setTimeout(function(){o.highlight(),i=null},o.options.interval)}),o.highlight(),o}return d(t,a.default),o(t,null,[{key:"register",value:function(){r.default.register(f,!0),r.default.register(p,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(r.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(r.default.sources.SILENT),null!=t&&this.quill.setSelection(t,r.default.sources.SILENT)}}}]),t}();h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=d(n(3)),a=d(n(8)),s=n(43),l=d(s),c=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,l.default),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}();v.DEFAULTS=(0,r.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){p(this,t);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,function(e,t,n,i){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var r=o.quill.getLines(t.index,t.length);if(1===r.length)o.position(o.quill.getBounds(t));else{var s=r[r.length-1],l=o.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=o.quill.getBounds(new c.Range(l,u));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()}),o}return h(t,s.BaseTooltip),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}();g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=v},function(e,t,n){e.exports=n(63)}]).default},e.exports=n()}).call(t,n(798).Buffer)},798:function(e,t,n){"use strict";(function(e){var o=n(799),i=n(800),r=n(801);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|h(t,n),i=(e=s(e,o)).write(t,n);i!==o&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?s(e,0):p(e,t);if("Buffer"===t.type&&r(t.data))return p(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(o)return q(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){var r,a=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(r=n;r<s;r++)if(c(e,r)===c(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*a}else-1!==u&&(r-=r-u),u=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){for(var d=!0,p=0;p<l;p++)if(c(e,r+p)!==c(t,p)){d=!1;break}if(d)return r}return-1}function b(e,t,n,o){n=Number(n)||0;var i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");o>r/2&&(o=r/2);for(var a=0;a<o;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,o){return U(q(t,e.length-n),e,n,o)}function _(e,t,n,o){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function k(e,t,n,o){return _(e,t,n,o)}function w(e,t,n,o){return U(F(t),e,n,o)}function x(e,t,n,o){return U(function(e,t){for(var n,o,i,r=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function C(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var r,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[i+1]))&&(l=(31&c)<<6|63&r)>127&&(u=l);break;case 3:r=e[i+1],a=e[i+2],128==(192&r)&&128==(192&a)&&(l=(15&c)<<12|(63&r)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=e[i+1],a=e[i+2],s=e[i+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),i+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=T));return n}(o)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,o){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof o?s(e,t).fill(n,o):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):function(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,o,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var r=i-o,a=n-t,s=Math.min(r,a),c=this.slice(o,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){r=c[d],a=u[d];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var r=!1;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function S(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function O(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function P(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",r=t;r<n;++r)i+=B(e[r]);return i}function $(e,t,n){for(var o=e.slice(t,n),i="",r=0;r<o.length;r+=2)i+=String.fromCharCode(o[r]+256*o[r+1]);return i}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,o,i,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function D(e,t,n,o){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-n,2);i<r;++i)e[n+i]=(t&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function L(e,t,n,o){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-n,4);i<r;++i)e[n+i]=t>>>8*(o?i:3-i)&255}function j(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,o,r){return r||j(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function I(e,t,n,o,r){return r||j(e,0,n,8),i.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o)<0&&(e=0):e>o&&(e=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var r=0;r<i;++r)n[r]=this[r+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e],i=1,r=0;++r<t&&(i*=256);)o+=this[e+r]*i;return o},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e],i=1,r=0;++r<t&&(i*=256);)o+=this[e+r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=t,i=1,r=this[e+--o];o>0&&(i*=256);)r+=this[e+--o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var r=0,a=1,s=0;for(this[t]=255&e;++r<n&&(a*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var r=n-1,a=1,s=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i,r=o-n;if(this===e&&n<t&&t<o)for(i=r-1;i>=0;--i)e[i+t]=this[i+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<r;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=l.isBuffer(e)?e:q(new l(e,o).toString()),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var o=e.length,i=null,r=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,o){for(var i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n(39))},799:function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){for(var t,n=c(e),o=n[0],a=n[1],s=new r(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),l=0,u=a>0?o-4:o,d=0;d<u;d+=4)t=i[e.charCodeAt(d)]<<18|i[e.charCodeAt(d+1)]<<12|i[e.charCodeAt(d+2)]<<6|i[e.charCodeAt(d+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===a&&(t=i[e.charCodeAt(d)]<<2|i[e.charCodeAt(d+1)]>>4,s[l++]=255&t);1===a&&(t=i[e.charCodeAt(d)]<<10|i[e.charCodeAt(d+1)]<<4|i[e.charCodeAt(d+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r=[],a=0,s=n-i;a<s;a+=16383)r.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],r.push(o[t>>2]+o[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return r.join("")};for(var o=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)o[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,r,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(o[(r=i)>>18&63]+o[r>>12&63]+o[r>>6&63]+o[63&r]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},800:function(e,t){t.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),r-=c}return(f?-1:1)*a*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var a,s,l,c=8*r-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,h=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},801:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},802:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"margin-bottom":"30px"}},[e.hasTranslation?n("div",[n("el-row",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.label+":")+"\n "),e.hasQuill?n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.content_mode_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})]):e._e()],1),e._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"am-service-translate am-event-translate",staticStyle:{cursor:"pointer"},on:{click:e.showDialogTranslate}},[n("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")])])],1),e._v(" "),n("el-button-group",{staticStyle:{"margin-bottom":"5px"}},[n("el-button",{attrs:{size:"mini",type:e.isTextMode?"default":"primary"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.text_mode))]),e._v(" "),n("el-button",{attrs:{size:"mini",type:e.isTextMode?"primary":"default"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.html_mode))])],1)],1):n("div",{staticStyle:{"margin-bottom":"5px"}},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.label+":")+"\n "),e.hasQuill?n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.content_mode_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})]):e._e()],1),e._v(" "),e.hasQuill?n("el-col",{staticClass:"align-right",attrs:{span:12}},[n("el-button-group",[n("el-button",{attrs:{size:"mini",type:e.isTextMode?"default":"primary"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.text_mode))]),e._v(" "),n("el-button",{attrs:{size:"mini",type:e.isTextMode?"primary":"default"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.html_mode))])],1)],1):e._e()],1)],1),e._v(" "),e.isTextMode?n("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:""},on:{input:e.changedContentText},model:{value:e.textValue,callback:function(t){e.textValue=t},expression:"textValue"}}):n("quill-editor",{attrs:{options:{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{align:[]}],["clean"],e.allowImage?["link","image"]:["link"]]}}},on:{change:e.changedContentQuill,ready:e.readyQuill},model:{value:e.entity[e.htmlProperty],callback:function(t){e.$set(e.entity,e.htmlProperty,t)},expression:"entity[htmlProperty]"}})],1)},staticRenderFns:[]}},805:function(e,t,n){"use strict";t.a={data:function(){return{}},methods:{filterResponseData:function(){this.options.entities.employees.length&&(this.options.entities.employees[0].locationId=null,this.options.entities.employees[0].serviceList.forEach(function(e){e.maxCapacity=1,e.minCapacity=1,e.timeAfter="",e.timeBefore=""}))},setInitialEmployee:function(e){var t=this;e.length||this.$http.get(this.$root.getAjaxUrl+"/users/current").then(function(e){var n=null;(n=e.data.data.user?{email:e.data.data.user.email,firstName:e.data.data.user.firstName,lastName:e.data.data.user.lastName,phone:e.data.data.user.phone||""}:{firstName:"firstname",lastName:"lastname",email:"example@example.com"}).type="provider",n.weekDayList=t.getSettingsSchedule(),t.form.post(t.$root.getAjaxUrl+"/users/providers",n).then(function(e){t.options.employees=[e.data.user]}).catch()}).catch()}}}},806:function(e,t,n){var o=n(335)(n(807),n(808),!1,null,null,null);e.exports=o.exports},807:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(721),i=n.n(o),r=n(709),a=n.n(r),s=n(696),l=n(338),c=n(700),u=n(697);t.default={mixins:[s.a,l.a,c.a,u.a],props:{customer:null},data:function(){return{languagesData:[],usedLanguages:[],dialogLoading:!0,errors:{email:""},formOptions:{wpUsers:[],genders:[{value:"female",label:this.$root.labels.female},{value:"male",label:this.$root.labels.male}]},rules:{firstName:[{required:!0,message:this.$root.labels.enter_first_name_warning,trigger:"submit"}],lastName:[{required:!0,message:this.$root.labels.enter_last_name_warning,trigger:"submit"}],email:[{required:!1,message:this.$root.labels.enter_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}]}}},created:function(){0!==this.customer.id?(this.customer.birthday=this.customer.birthday?this.$moment(this.customer.birthday).toDate():null,this.getWPUsers(this.customer.externalId)):this.getWPUsers(0),this.usedLanguages=this.$root.settings.general.usedLanguages,this.usedLanguages.includes(this.$root.settings.wordpress.locale)||this.usedLanguages.push(this.$root.settings.wordpress.locale)},mounted:function(){this.inlineSVG(),this.getLanguagesData()},methods:{getLanguagesData:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["settings"]})}).then(function(t){e.languagesData=t.data.data.settings.languages}).catch(function(e){console.log(e.message)})},getLanguageLabel:function(e){return this.languagesData[e]?this.languagesData[e].name:""},getLanguageFlag:function(e){return e&&this.languagesData[e]&&this.languagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.languagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},errorCallback:function(e){var t=this;t.errors.email="",setTimeout(function(){t.errors.email=e},200)},getParsedEntity:function(){var e=JSON.parse(JSON.stringify(this.customer));return e.birthday&&(e.birthday=this.getDatabaseFormattedDate(this.$moment(e.birthday).format("YYYY-MM-DD"))),0===e.externalId||e.externalId||(e.externalId=-1),e.language?e.translations=JSON.stringify({defaultLanguage:e.language}):e.translations=null,e},closeDialog:function(){this.$emit("closeDialog")},getWPUsers:function(e){var t=this;this.$http.get(this.$root.getAjaxUrl+"/users/wp-users",{params:{id:e,role:"customer"}}).then(function(e){t.formOptions.wpUsers=e.data.data.users,t.formOptions.wpUsers.unshift({value:0,label:t.$root.labels.create_new}),-1===t.formOptions.wpUsers.map(function(e){return e.value}).indexOf(t.customer.externalId)&&(t.customer.externalId=""),t.dialogLoading=!1})},phoneFormatted:function(e,t){this.clearValidation(),this.customer.phone=e,this.customer.countryPhoneIso=t&&"auto"!==t?t:null},clearValidation:function(){void 0!==this.$refs.customer&&this.$refs.customer.clearValidate()},selectCreateNewWPUser:function(){this.customer.externalId=0,this.$refs.wpUser.blur()}},components:{PhoneInput:a.a,DialogActions:i.a}}},808:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.dialogLoading?e._e():n("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.customer.id}},[n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:18}},[0!==e.customer.id?n("h2",[e._v(e._s(e.$root.labels.edit_customer))]):n("h2",[e._v(e._s(e.$root.labels.new_customer))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:6}},[n("span"),e._v(" "),n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),n("el-form",{ref:"customer",attrs:{model:e.customer,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[n("el-form-item",{attrs:{label:e.$root.labels.first_name+":",prop:"firstName"}},[n("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.customer,"firstName")}},model:{value:e.customer.firstName,callback:function(t){e.$set(e.customer,"firstName",t)},expression:"customer.firstName"}})],1),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.last_name+":",prop:"lastName"}},[n("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.customer,"lastName")}},model:{value:e.customer.lastName,callback:function(t){e.$set(e.customer,"lastName",t)},expression:"customer.lastName"}})],1),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.email+":",prop:"email",error:e.errors.email}},[n("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.customer.email,callback:function(t){e.$set(e.customer,"email",t)},expression:"customer.email"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wp_user)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.wp_user_customer_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{ref:"wpUser",attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_wp_user},on:{change:function(t){return e.clearValidation()}},model:{value:e.customer.externalId,callback:function(t){e.$set(e.customer,"externalId",t)},expression:"customer.externalId"}},[n("div",{staticClass:"am-drop"},[e.customer&&e.customer.email?n("div",{staticClass:"am-drop-create-item",on:{click:e.selectCreateNewWPUser}},[e._v("\n "+e._s(e.$root.labels.create_new)+"\n ")]):e._e(),e._v(" "),e._l(e.formOptions.wpUsers,function(e){return n("el-option",{key:e.value,class:{hidden:0===e.value},attrs:{label:e.label,value:e.value}})})],2)])],1),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.phone+":"}},[n("phone-input",{attrs:{countryPhoneIso:e.customer.countryPhoneIso,savedPhone:e.customer.phone},on:{phoneFormatted:e.phoneFormatted}})],1),e._v(" "),n("el-popover",e._b({ref:"notificationLanguage",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-form-item",{directives:[{name:"popover",rawName:"v-popover:notificationLanguage",arg:"notificationLanguage"}],attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.notification_language)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{style:{maxWidth:"312px"},attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.wp_customer_lang_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{staticClass:"select-languages",attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:"",disabled:e.$root.isLite},model:{value:e.$root.isLite?"":e.customer.language,callback:function(t){e.$set(e.$root.isLite?"":e.customer,"language",t)},expression:"$root.isLite ? '' : customer.language"}},[n("template",{slot:"prefix"},[n("img",{staticClass:"select-languages-flag",attrs:{src:e.getLanguageFlag(e.$root.isLite?"":e.customer.language)}})]),e._v(" "),e._l(e.usedLanguages,function(t,o){return n("el-option",{key:o,attrs:{label:e.getLanguageLabel(t),value:t}},[n("span",[n("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t))+"\n ")])])})],2)],1),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.gender+":"}},[n("el-select",{attrs:{placeholder:"",clearable:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.customer.gender,callback:function(t){e.$set(e.customer,"gender",t)},expression:"customer.gender"}},e._l(e.formOptions.genders,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.date_of_birth+":"}},[n("v-date-picker",{attrs:{mode:"single","popover-visibility":"focus","popover-direction":"top","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner",placeholder:e.$root.labels.select_date_of_birth},"is-expanded":!1,formats:e.vCalendarFormats},on:{input:function(t){return e.clearValidation()}},model:{value:e.customer.birthday,callback:function(t){e.$set(e.customer,"birthday",t)},expression:"customer.birthday"}}),e._v(" "),e.customer.birthday?n("span",{staticClass:"am-v-date-picker-suffix el-input__suffix-inner",on:{click:function(t){e.customer.birthday=null}}},[n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close"})]):e._e()],1),e._v(" "),n("div",{staticClass:"am-divider"}),e._v(" "),n("el-form-item",{attrs:{label:e.$root.labels.note_internal+":"}},[n("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.customer.note,callback:function(t){e.$set(e.customer,"note",t)},expression:"customer.note"}})],1)],1)],1),e._v(" "),e.dialogLoading?e._e():n("dialog-actions",{attrs:{formName:"customer",urlName:"users/customers",isNew:0===e.customer.id,entity:e.customer,getParsedEntity:e.getParsedEntity,hasIcons:!0,status:{on:"visible",off:"hidden"},buttonText:{confirm:{status:{yes:"visible"===e.customer.status?e.$root.labels.visibility_hide:e.$root.labels.visibility_show,no:e.$root.labels.no}}},action:{haveAdd:!0,haveEdit:!0,haveStatus:!1,haveRemove:!0===e.$root.settings.capabilities.canDelete,haveRemoveEffect:!0,haveDuplicate:!1},message:{success:{save:e.$root.labels.customer_saved,remove:e.$root.labels.customer_deleted,show:"",hide:""},confirm:{remove:e.$root.labels.confirm_delete_customer,show:"",hide:"",duplicate:""}}},on:{errorCallback:e.errorCallback}})],1)},staticRenderFns:[]}},809:function(e,t,n){var o=n(335)(n(810),n(811),!1,null,null,null);e.exports=o.exports},810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(696),i=n(338);t.default={mixins:[o.a,i.a],props:{data:null,action:null},data:function(){return{delimiter:",",delimiters:[{label:this.$root.labels.csv_delimiter_comma,value:","},{label:this.$root.labels.csv_delimiter_semicolon,value:";"}],separateBookings:!1,hasSeparateBookingOption:!1}},updated:function(){},mounted:function(){},methods:{changeFields:function(){},closeDialog:function(){this.$emit("closeDialogExport")},getAction:function(){}},components:{}}},811:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"am-dialog-scrollable"},[n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:14}},[n("h2",[e._v(e._s(e.$root.labels.export))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),n("BlockLite"),e._v(" "),n("el-form",{class:{"am-lite-container-disabled":e.$root.isLite},attrs:{"label-position":"top"}},[n("el-form-item",{attrs:{label:e.$root.labels.csv_delimiter+":"}},[n("el-select",{attrs:{placeholder:e.$root.labels.csv_delimiter},on:{change:e.changeFields},model:{value:e.delimiter,callback:function(t){e.delimiter=t},expression:"delimiter"}},e._l(e.delimiters,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.hasSeparateBookingOption?n("el-form-item",{attrs:{label:e.$root.labels["select_rows_settings"+(e.action===e.$root.getAjaxUrl+"/report/event/attendees"?"_event":"")]+":"}},[n("el-select",{attrs:{placeholder:e.$root.labels.exported_same_row},on:{change:e.changeFields},model:{value:e.separateBookings,callback:function(t){e.separateBookings=t},expression:"separateBookings"}},[n("el-option",{attrs:{label:this.$root.labels["exported_same_row"+(e.action===e.$root.getAjaxUrl+"/report/event/attendees"?"_event":"")],value:!1}}),e._v(" "),n("el-option",{attrs:{label:this.$root.labels["exported_separate_rows"+(e.action===e.$root.getAjaxUrl+"/report/event/attendees"?"_event":"")],value:!0}})],1)],1):e._e(),e._v(" "),e._l(e.data.fields,function(t){return[n("el-checkbox",{attrs:{checked:"",label:t.label,border:""},on:{change:e.changeFields},model:{value:t.checked,callback:function(n){e.$set(t,"checked",n)},expression:"field.checked"}})]})],2)],1),e._v(" "),n("div",{staticClass:"am-dialog-footer",class:{"am-lite-container-disabled":e.$root.isLite}},[n("div",{staticClass:"am-dialog-footer-actions"},[n("el-row",[n("el-col",{staticClass:"align-right",attrs:{sm:24}},[n("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary","native-type":"submit"},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.export)+"\n ")])],1)],1)],1)])])},staticRenderFns:[]}},812:function(e,t,n){var o=n(335)(n(824),n(825),!1,null,null,null);e.exports=o.exports},816:function(e,t,n){var o=n(335)(n(826),n(827),!1,null,null,null);e.exports=o.exports},817:function(e,t,n){var o=n(335)(n(818),n(819),!1,null,null,null);e.exports=o.exports},818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(707),i=n(338),r=n(712),a=n(730),s=n.n(a),l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={mixins:[o.a,i.a,r.a],props:{showCustomerInfo:!0,entityId:null,entityType:null,appointment:{default:function(){}},customFields:{default:function(){return[]}},hideAttachmentCustomField:{required:!1,default:!1,type:Boolean},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){return{}},mounted:function(){this.setAddressCustomFields()},methods:{setAddressCF:function(e,t,n){this.appointment.bookings[n].customFields[t].value=e},googleMapsLoaded:function(){return window.google&&this.$root.settings.general.gMapApiKey},clearValidation:function(){this.$emit("clearValidation")},setAddressCustomFields:function(){var e=this;this.appointment.bookings.forEach(function(t,n){var o=!0,i=!1,r=void 0;try{for(var a,s=Object.entries(t.customFields)[Symbol.iterator]();!(o=(a=s.next()).done);o=!0){var c=a.value,u=l(c,2),d=u[0],p=u[1];"address"===p.type&&void 0!==e.$refs["amelia-cf-address-"+n+"-"+d]&&e.$refs["amelia-cf-address-"+n+"-"+d].length>0&&e.$refs["amelia-cf-address-"+n+"-"+d][0].update(p.value)}}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}})}},watch:{"appointment.bookings":function(){var e=this;this.$nextTick(function(){e.setAddressCustomFields()})}},components:{VueGoogleAutocomplete:s.a}}},819:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-table am-custom-fields-container"},e._l(e.appointment.bookings,function(t,o){return n("div",{staticClass:"am-customer-extras"},[n("el-row",{staticClass:"am-customer-extras-data"},[e.showCustomerInfo?n("el-col",[n("h3",[e._v(e._s(t.customer.firstName)+" "+e._s(t.customer.lastName))]),e._v(" "),n("span",[e._v(e._s(t.customer.email))])]):e._e()],1),e._v(" "),n("div",{staticClass:"am-custom-fields"},e._l(e.customFields,function(t){return e.isCustomFieldVisible(t,e.entityType,e.entityId)&&"content"!==t.type&&("file"!==t.type||"file"===t.type&&e.appointment.bookings[o].customFields[t.id].value&&e.appointment.bookings[o].customFields[t.id].value.length>0)?n("el-form-item",{key:t.id,attrs:{prop:!0===t.required&&"content"!==t.type&&"file"!==t.type?"bookings."+o+".customFields."+t.id+".value":null,label:"content"!==t.type&&"checkbox"!==t.type&&"radio"!==t.type&&t.label?t.label+":":""}},["checkbox"!==t.type&&"radio"!==t.type||!t.label?e._e():n("span",{class:"checkbox"!==t.type&&"radio"!==t.type||!t.required?"":"am-custom-required-as-html",domProps:{innerHTML:e._s(t.label?"<label class='el-form-item__label'>"+t.label+"</label>:":"")}},[e._v("\n >\n ")]),e._v(" "),"text"===t.type?n("el-input",{attrs:{placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}}):e._e(),e._v(" "),"address"===t.type?n("div",{staticClass:"el-input",style:{marginBottom:e.$root.settings.general.gMapApiKey?"":0}},[e.googleMapsLoaded()?n("vue-google-autocomplete",{ref:"amelia-cf-address-"+o+"-"+t.id,refInFor:!0,attrs:{id:"address-autocomplete-"+o+"-"+t.id,classname:"el-input__inner",placeholder:""},on:{change:function(n){return e.setAddressCF(n,t.id,o)}}}):n("el-input",{attrs:{placeholder:""},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}})],1):"text-area"===t.type?n("el-input",{staticClass:"am-front-texarea",attrs:{rows:3,placeholder:"",type:"textarea"},on:{input:function(t){return e.clearValidation()}},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}}):"select"===t.type?n("el-select",{attrs:{placeholder:"",clearable:"","popper-class":"am-dropdown-cabinet"},on:{change:function(t){return e.clearValidation()}},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(e,t){return n("el-option",{key:t,attrs:{value:e,label:e}})}),1):"checkbox"===t.type?n("el-checkbox-group",{on:{change:function(t){return e.clearValidation()}},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(e,t){return n("el-checkbox",{key:t,attrs:{label:e}})}),1):"radio"===t.type?n("el-radio-group",{model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(t,o){return n("el-radio",{key:o,attrs:{label:t},on:{change:function(t){return e.clearValidation()}}})}),1):"file"===t.type&&!1===e.hideAttachmentCustomField?e._l(e.appointment.bookings[o].customFields[t.id].value,function(i,r){return n("div",{staticStyle:{margin:"15px",clear:"left"}},[n("a",{key:r,attrs:{href:e.$root.useUploadsAmeliaPath?e.$root.getAjaxUrl+"/fields/"+t.id+"/"+e.appointment.bookings[o].id+"/"+r+(e.isCabinet?"&source=cabinet-provider":""):e.$root.getUploadsAmeliaUrl+e.appointment.bookings[o].id+"_"+i.fileName,target:"_blank"}},[e._v("\n "+e._s(i.name)+"\n ")])])}):"datepicker"===t.type?n("div",[n("v-date-picker",{attrs:{mode:"single","popover-visibility":"focus","popover-direction":"bottom","popover-align":e.screenWidth<768?"center":"left","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner",readOnly:"readonly"},"is-expanded":!1,"is-required":!0,disabled:!1,formats:e.vCalendarFormats},model:{value:e.appointment.bookings[o].customFields[t.id].value,callback:function(n){e.$set(e.appointment.bookings[o].customFields[t.id],"value",n)},expression:"appointment.bookings[key].customFields[customField.id].value"}})],1):e._e()],2):e._e()}),1)],1)}),0)},staticRenderFns:[]}},823:function(e,t,n){var o,i;!function(r){"use strict";void 0===(i="function"==typeof(o=r)?o.call(t,n,t,e):o)||(e.exports=i)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,n,o,i,r,a,s,l,c,u,d,p,f,h,m,v,g,b,y,_,k,w,x,C,E,T,S,O=[],P=!1,$=!1,A=!1,N=[],D=!1,L=!1,j=[],R=/\s+/g,I="Sortable"+(new Date).getTime(),M=window,B=M.document,q=M.parseInt,F=M.setTimeout,U=M.jQuery||M.Zepto,z=M.Polymer,H={capture:!1,passive:!1},Y=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),V=!!navigator.userAgent.match(/Edge/i),K=!!navigator.userAgent.match(/firefox/i),G=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),W=!!navigator.userAgent.match(/iP(ad|od|hone)/i),J=V||Y?"cssFloat":"float",Z="draggable"in B.createElement("div"),X=function(){if(Y)return!1;var e=B.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),Q=!1,ee=!1,te=Math.abs,ne=Math.min,oe=Math.max,ie=[],re=function(e,t){var n=xe(e),o=q(n.width)-q(n.paddingLeft)-q(n.paddingRight)-q(n.borderLeftWidth)-q(n.borderRightWidth),i=$e(e,0,t),r=$e(e,1,t),a=i&&xe(i),s=r&&xe(r),l=a&&q(a.marginLeft)+q(a.marginRight)+Fe(i).width,c=s&&q(s.marginLeft)+q(s.marginRight)+Fe(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[J]||r&&"none"===n[J]&&l+c>o)?"vertical":"horizontal"},ae=function(e,t){if(!e||!e.getBoundingClientRect)return se();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=xe(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n||!n.getBoundingClientRect||n===B.body)return se();if(o||t)return n;o=!0}}}while(n=n.parentNode);return se()},se=function(){return Y?B.documentElement:B.scrollingElement},le=function(e,t,n){e.scrollLeft+=t,e.scrollTop+=n},ce=Re(function(e,t,n,o){if(t.scroll){var i=n?n[I]:window,r=t.scrollSensitivity,a=t.scrollSpeed,u=e.clientX,d=e.clientY,p=se(),f=!1;l!==n&&(ue(),s=t.scroll,c=t.scrollFn,!0===s&&(s=ae(n,!0),l=s));var h=0,m=s;do{var v,g,b,y,k,w,x,C,E,T=m,S=Fe(T),$=S.top,A=S.bottom,N=S.left,D=S.right,L=S.width,j=S.height;if(v=T.scrollWidth,g=T.scrollHeight,b=xe(T),C=T.scrollLeft,E=T.scrollTop,T===p?(w=L<v&&("auto"===b.overflowX||"scroll"===b.overflowX||"visible"===b.overflowX),x=j<g&&("auto"===b.overflowY||"scroll"===b.overflowY||"visible"===b.overflowY)):(w=L<v&&("auto"===b.overflowX||"scroll"===b.overflowX),x=j<g&&("auto"===b.overflowY||"scroll"===b.overflowY)),y=w&&(te(D-u)<=r&&C+L<v)-(te(N-u)<=r&&!!C),k=x&&(te(A-d)<=r&&E+j<g)-(te($-d)<=r&&!!E),!O[h])for(var R=0;R<=h;R++)O[R]||(O[R]={});O[h].vx==y&&O[h].vy==k&&O[h].el===T||(O[h].el=T,O[h].vx=y,O[h].vy=k,clearInterval(O[h].pid),!T||0==y&&0==k||(f=!0,O[h].pid=setInterval(function(){o&&0===this.layer&&(ge.active._emulateDragOver(!0),ge.active._onTouchMove(_,!0));var t=O[this.layer].vy?O[this.layer].vy*a:0,n=O[this.layer].vx?O[this.layer].vx*a:0;"function"==typeof c&&"continue"!==c.call(i,n,t,e,_,O[this.layer].el)||le(O[this.layer].el,n,t)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&m!==p&&(m=ae(m,!1)));P=f}},30),ue=function(){O.forEach(function(e){clearInterval(e.pid)}),O=[]},de=function(e){function t(e,n){return function(o,i,r,a){var s=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,i,r,a),n)(o,i,r,a);var l=(n?o:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==typeof o||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},pe=function(t){e&&e.parentNode&&e.parentNode[I]&&e.parentNode[I]._computeIsAligned(t)},fe=function(){!X&&n&&xe(n,"display","none")},he=function(){!X&&n&&xe(n,"display","")};B.addEventListener("click",function(e){if(A)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),A=!1,!1},!0);var me,ve=function(t){if(e){var n=function(e,t){for(var n=0;n<N.length;n++)if(!Ae(N[n])){var o=Fe(N[n]),i=N[n][I].options.emptyInsertThreshold,r=e>=o.left-i&&e<=o.right+i,a=t>=o.top-i&&t<=o.bottom+i;if(i&&r&&a)return N[n]}}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(n){var o={};for(var i in t)o[i]=t[i];o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[I]._onDragOver(o)}}};function ge(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(e);this.el=e,this.options=t=Ie({},t),e[I]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return re(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:q(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ge.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in n)!(o in t)&&(t[o]=n[o]);for(var i in de(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Z,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_e(e,"pointerdown",this._onTapStart):(_e(e,"mousedown",this._onTapStart),_e(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_e(e,"dragover",this),_e(e,"dragenter",this)),N.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[])}function be(e,t,n,o){if(e){n=n||B;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&je(e,t):je(e,t))||o&&e===n)return e;if(e===n)break}while(e=ye(e))}return null}function ye(e){return e.host&&e!==B&&e.host.nodeType?e.host:e.parentNode}function _e(e,t,n){e.addEventListener(t,n,!Y&&H)}function ke(e,t,n){e.removeEventListener(t,n,!Y&&H)}function we(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(R," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(R," ")}}function xe(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return B.defaultView&&B.defaultView.getComputedStyle?n=B.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Ce(e){var t="";do{var n=xe(e,"transform");n&&"none"!==n&&(t=n+" "+t)}while(e=e.parentNode);return window.DOMMatrix?new DOMMatrix(t):window.WebKitCSSMatrix?new WebKitCSSMatrix(t):window.CSSMatrix?new CSSMatrix(t):void 0}function Ee(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function Te(e,t,n,i,r,a,s,l,c,u,d){var p,f=(e=e||t[I]).options,h="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||Y||V?(p=B.createEvent("Event")).initEvent(n,!0,!0):p=new CustomEvent(n,{bubbles:!0,cancelable:!0}),p.to=r||t,p.from=a||t,p.item=i||t,p.clone=o,p.oldIndex=s,p.newIndex=l,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=m?m.lastPutMode:void 0,t&&t.dispatchEvent(p),f[h]&&f[h].call(e,p)}function Se(e,t,n,o,i,r,a,s){var l,c,u=e[I],d=u.options.onMove;return!window.CustomEvent||Y||V?(l=B.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=i||t,l.relatedRect=r||Fe(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function Oe(e){e.draggable=!1}function Pe(){Q=!1}function $e(t,o,i){for(var r=0,a=0,s=t.children;a<s.length;){if("none"!==s[a].style.display&&s[a]!==n&&s[a]!==e&&be(s[a],i.draggable,t,!1)){if(r===o)return s[a];r++}a++}return null}function Ae(e){for(var t=e.lastElementChild;t&&(t===n||"none"===xe(t,"display"));)t=t.previousElementSibling;return t||null}function Ne(t){return Le(e)<Le(t)?1:-1}function De(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Le(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||e===o||t&&!je(e,t)||n++;return n}function je(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Re(e,t){return function(){if(!me){var n=arguments,o=this;me=F(function(){1===n.length?e.call(o,n[0]):e.apply(o,n),me=void 0},t)}}}function Ie(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Me(e){return z&&z.dom?z.dom(e).cloneNode(!0):U?U(e).clone(!0)[0]:e.cloneNode(!0)}function Be(e){return F(e,0)}function qe(e){return clearTimeout(e)}function Fe(e,t,n,o){if(e.getBoundingClientRect||e===M){var i,r,a,s,l,c,u;if(e!==M&&e!==se()?(r=(i=e.getBoundingClientRect()).top,a=i.left,s=i.bottom,l=i.right,c=i.height,u=i.width):(r=0,a=0,s=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),o&&e!==M&&(n=n||e.parentNode,!Y))do{if(n&&n.getBoundingClientRect&&"none"!==xe(n,"transform")){var d=n.getBoundingClientRect();r-=d.top+q(xe(n,"border-top-width")),a-=d.left+q(xe(n,"border-left-width")),s=r+i.height,l=a+i.width;break}}while(n=n.parentNode);if(t&&e!==M){var p=Ce(n||e),f=p&&p.a,h=p&&p.d;p&&(s=(r/=h)+(c/=h),l=(a/=f)+(u/=f))}return{top:r,left:a,bottom:s,right:l,width:u,height:c}}}function Ue(e,t){for(var n=ae(e,!0),o=Fe(e)[t];n;){var i=Fe(n)[t];if(!("top"===t||"left"===t?o>=i:o<=i))return n;if(n===se())break;n=ae(n,!1)}return!1}function ze(e){var t=0,n=0,o=se();if(e)do{var i=Ce(e),r=i.a,a=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}return ge.prototype={constructor:ge,_computeIsAligned:function(t){var o;if(n&&!X?(fe(),o=B.elementFromPoint(t.clientX,t.clientY),he()):o=t.target,o=be(o,this.options.draggable,this.el,!1),!ee&&e&&e.parentNode===this.el){for(var i,r,a,s,l,c,u,d,p=this.el.children,f=0;f<p.length;f++)be(p[f],this.options.draggable,this.el,!1)&&p[f]!==o&&(p[f].sortableMouseAligned=(i=t.clientX,r=t.clientY,a=p[f],s=this._getDirection(t,null),this.options,void 0,void 0,void 0,void 0,l=Fe(a),c="vertical"===s?l.left:l.top,u="vertical"===s?l.right:l.bottom,c<(d="vertical"===s?i:r)&&d<u));be(o,this.options.draggable,this.el,!0)||(w=null),ee=!0,F(function(){ee=!1},30)}},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,e):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n,o,i=this,r=this.el,s=this.options,l=s.preventOnFilter,c=t.type,u=t.touches&&t.touches[0],d=(u||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,f=s.filter;if(function(e){ie.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&ie.push(o)}}(r),!e&&!(/mousedown|pointerdown/.test(c)&&0!==t.button||s.disabled||p.isContentEditable||(d=be(d,s.draggable,r,!1),a===d))){if(n=Le(d),o=Le(d,s.draggable),"function"==typeof f){if(f.call(this,t,d,this))return Te(i,p,"filter",d,r,r,n,void 0,o),void(l&&t.cancelable&&t.preventDefault())}else if(f&&(f=f.split(",").some(function(e){if(e=be(p,e.trim(),r,!1))return Te(i,e,"filter",d,r,r,n,void 0,o),!0})))return void(l&&t.cancelable&&t.preventDefault());s.handle&&!be(p,s.handle,r,!1)||this._prepareDragStart(t,u,d,n,o)}}},_handleAutoScroll:function(t,n){if(e&&this.options.scroll){var o=t.clientX,i=t.clientY,r=B.elementFromPoint(o,i),a=this;if(n||V||Y||G){ce(t,a.options,r,n);var s=ae(r,!0);!P||v&&o===g&&i===b||(v&&clearInterval(v),v=setInterval(function(){if(e){var r=ae(B.elementFromPoint(o,i),!0);r!==s&&(s=r,ue(),ce(t,a.options,s,n))}},10),g=o,b=i)}else{if(!a.options.bubbleScroll||ae(r,!0)===se())return void ue();ce(t,a.options,ae(r,!1),!1)}}},_prepareDragStart:function(n,o,s,l,c){var d,f=this,m=f.el,v=f.options,g=m.ownerDocument;s&&!e&&s.parentNode===m&&(i=m,t=(e=s).parentNode,r=e.nextSibling,a=s,h=v.group,u=l,p=c,y={target:e,clientX:(o||n).clientX,clientY:(o||n).clientY},this._lastX=(o||n).clientX,this._lastY=(o||n).clientY,e.style["will-change"]="all",e.style.transition="",e.style.transform="",d=function(){f._disableDelayedDragEvents(),!K&&f.nativeDraggable&&(e.draggable=!0),f._triggerDragStart(n,o),Te(f,i,"choose",e,i,i,u,void 0,p),we(e,v.chosenClass,!0)},v.ignore.split(",").forEach(function(t){Ee(e,t.trim(),Oe)}),_e(g,"dragover",ve),_e(g,"mousemove",ve),_e(g,"touchmove",ve),_e(g,"mouseup",f._onDrop),_e(g,"touchend",f._onDrop),_e(g,"touchcancel",f._onDrop),K&&this.nativeDraggable&&(this.options.touchStartThreshold=4,e.draggable=!0),!v.delay||v.delayOnTouchOnly&&!o||this.nativeDraggable&&(V||Y)?d():(_e(g,"mouseup",f._disableDelayedDrag),_e(g,"touchend",f._disableDelayedDrag),_e(g,"touchcancel",f._disableDelayedDrag),_e(g,"mousemove",f._delayedDragTouchMoveHandler),_e(g,"touchmove",f._delayedDragTouchMoveHandler),v.supportPointer&&_e(g,"pointermove",f._delayedDragTouchMoveHandler),f._dragStartTimer=F(d,v.delay)))},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;oe(te(t.clientX-this._lastX),te(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){e&&Oe(e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ke(e,"mouseup",this._disableDelayedDrag),ke(e,"touchend",this._disableDelayedDrag),ke(e,"touchcancel",this._disableDelayedDrag),ke(e,"mousemove",this._delayedDragTouchMoveHandler),ke(e,"touchmove",this._delayedDragTouchMoveHandler),ke(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||("touch"==t.pointerType?t:null),!this.nativeDraggable||n?this.options.supportPointer?_e(B,"pointermove",this._onTouchMove):_e(B,n?"touchmove":"mousemove",this._onTouchMove):(_e(e,"dragend",this),_e(i,"dragstart",this._onDragStart));try{B.selection?Be(function(){B.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(t,n){if($=!1,i&&e){this.nativeDraggable&&(_e(B,"dragover",this._handleAutoScroll),_e(B,"dragover",pe));var o=this.options;!t&&we(e,o.dragClass,!1),we(e,o.ghostClass,!0),xe(e,"transform",""),ge.active=this,t&&this._appendGhost(),Te(this,i,"start",e,i,i,u,void 0,p,void 0,n)}else this._nulling()},_emulateDragOver:function(t){if(_){if(this._lastX===_.clientX&&this._lastY===_.clientY&&!t)return;this._lastX=_.clientX,this._lastY=_.clientY,fe();for(var n=B.elementFromPoint(_.clientX,_.clientY),o=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(_.clientX,_.clientY))!==o;)o=n;if(o)do{if(o[I])if(o[I]._onDragOver({clientX:_.clientX,clientY:_.clientY,target:n,rootEl:o})&&!this.options.dragoverBubble)break;n=o}while(o=o.parentNode);e.parentNode[I]._computeIsAligned(_),he()}},_onTouchMove:function(e,t){if(y){var o=this.options,i=o.fallbackTolerance,r=o.fallbackOffset,a=e.touches?e.touches[0]:e,s=n&&Ce(n),l=n&&s&&s.a,c=n&&s&&s.d,u=W&&T&&ze(T),d=(a.clientX-y.clientX+r.x)/(l||1)+(u?u[0]-j[0]:0)/(l||1),p=(a.clientY-y.clientY+r.y)/(c||1)+(u?u[1]-j[1]:0)/(c||1),f=e.touches?"translate3d("+d+"px,"+p+"px,0)":"translate("+d+"px,"+p+"px)";if(!ge.active&&!$){if(i&&ne(te(a.clientX-this._lastX),te(a.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}!t&&this._handleAutoScroll(a,!0),k=!0,_=a,xe(n,"webkitTransform",f),xe(n,"mozTransform",f),xe(n,"msTransform",f),xe(n,"transform",f),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!n){var t=this.options.fallbackOnBody?B.body:i,o=Fe(e,!0,t,!W),r=(xe(e),this.options);if(W){for(T=t;"static"===xe(T,"position")&&"none"===xe(T,"transform")&&T!==B;)T=T.parentNode;if(T!==B){var a=Fe(T,!0);o.top-=a.top,o.left-=a.left}T!==B.body&&T!==B.documentElement?(T===B&&(T=se()),o.top+=T.scrollTop,o.left+=T.scrollLeft):T=se(),j=ze(T)}we(n=e.cloneNode(!0),r.ghostClass,!1),we(n,r.fallbackClass,!0),we(n,r.dragClass,!0),xe(n,"box-sizing","border-box"),xe(n,"margin",0),xe(n,"top",o.top),xe(n,"left",o.left),xe(n,"width",o.width),xe(n,"height",o.height),xe(n,"opacity","0.8"),xe(n,"position",W?"absolute":"fixed"),xe(n,"zIndex","100000"),xe(n,"pointerEvents","none"),t.appendChild(n)}},_onDragStart:function(t,n){var r=this,a=t.dataTransfer,s=r.options;(o=Me(e)).draggable=!1,o.style["will-change"]="",this._hideClone(),we(o,r.options.chosenClass,!1),r._cloneId=Be(function(){r.options.removeCloneOnHide||i.insertBefore(o,e),Te(r,i,"clone",e)}),!n&&we(e,s.dragClass,!0),n?(A=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ke(B,"mouseup",r._onDrop),ke(B,"touchend",r._onDrop),ke(B,"touchcancel",r._onDrop),a&&(a.effectAllowed="move",s.setData&&s.setData.call(r,a,e)),_e(B,"drop",r),xe(e,"transform","translateZ(0)")),$=!0,r._dragStartId=Be(r._dragStarted.bind(r,n,t)),_e(B,"selectstart",r),G&&xe(B.body,"user-select","none")},_onDragOver:function(n){var o,a,s,l=this.el,c=n.target,d=this.options,f=d.group,v=ge.active,g=h===f,b=d.sort,y=this;if(!Q){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),k=!0,c=be(c,d.draggable,l,!0),e.contains(n.target)||c.animated)return H(!1);if(c!==e&&(A=!1),v&&!d.disabled&&(g?b||(s=!i.contains(e)):m===this||(this.lastPutMode=h.checkPull(this,v,e,n))&&f.checkPut(this,v,e,n))){var _=this._getDirection(n,c);if(o=Fe(e),s)return this._hideClone(),t=i,r?i.insertBefore(e,r):i.appendChild(e),H(!0);var T=Ae(l);if(!T||function(e,t,n){var o=Fe(Ae(n)),i="vertical"===t?e.clientY:e.clientX,r="vertical"===t?e.clientX:e.clientY,a="vertical"===t?o.bottom:o.right,s="vertical"===t?o.left:o.top,l="vertical"===t?o.right:o.bottom;return"vertical"===t?r>l+10||r<=l&&i>a&&r>=s:i>a&&r>s||i<=a&&r>l+10}(n,_,l)&&!T.animated){if(T&&l===n.target&&(c=T),c&&(a=Fe(c)),g?v._hideClone():v._showClone(this),!1!==Se(i,l,e,o,c,a,n,!!c))return l.appendChild(e),t=l,S=null,Y(),H(!0)}else if(c&&c!==e&&c.parentNode===l){var O,P=0,$=c.sortableMouseAligned,N=e.parentNode!==l,j="vertical"===_?"top":"left",R=Ue(c,"top")||Ue(e,"top"),M=R?R.scrollTop:void 0;if(w!==c&&(C=null,O=Fe(c)[j],D=!1),function(t,n,o){var i=t===e&&S||Fe(t),r=n===e&&S||Fe(n),a="vertical"===o?i.left:i.top,s="vertical"===o?i.right:i.bottom,l="vertical"===o?i.width:i.height,c="vertical"===o?r.left:r.top,u="vertical"===o?r.right:r.bottom,d="vertical"===o?r.width:r.height;return a===c||s===u||a+l/2===c+d/2}(e,c,_)&&$||N||R||d.invertSwap||"insert"===C||"swap"===C?("swap"!==C&&(L=d.invertSwap||N),P=function(t,n,o,i,r,a,s){var l=Fe(n),c="vertical"===o?t.clientY:t.clientX,u="vertical"===o?l.height:l.width,d="vertical"===o?l.top:l.left,p="vertical"===o?l.bottom:l.right,f=Fe(e),h=!1;if(!a)if(s&&E<u*i)if(!D&&(1===x?c>d+u*r/2:c<p-u*r/2)&&(D=!0),D)h=!0;else{"vertical"===o?f.top:f.left,"vertical"===o?f.bottom:f.right;if(1===x?c<d+E:c>p-E)return-1*x}else if(c>d+u*(1-i)/2&&c<p-u*(1-i)/2)return Ne(n);if((h=h||a)&&(c<d+u*r/2||c>p-u*r/2))return c>d+u/2?1:-1;return 0}(n,c,_,d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,L,w===c),C="swap"):(P=Ne(c),C="insert"),0===P)return H(!1);S=null,w=c,x=P,a=Fe(c);var q=c.nextElementSibling,U=!1,z=Se(i,l,e,o,c,a,n,U=1===P);if(!1!==z)return 1!==z&&-1!==z||(U=1===z),Q=!0,F(Pe,30),g?v._hideClone():v._showClone(this),U&&!q?l.appendChild(e):c.parentNode.insertBefore(e,U?q:c),R&&le(R,0,M-R.scrollTop),t=e.parentNode,void 0===O||L||(E=te(O-Fe(c)[j])),Y(),H(!0)}if(l.contains(e))return H(!1)}return!1}function H(t){return t&&(g?v._hideClone():v._showClone(y),v&&(we(e,m?m.options.ghostClass:v.options.ghostClass,!1),we(e,d.ghostClass,!0)),m!==y&&y!==ge.active?m=y:y===ge.active&&(m=null),o&&y._animate(o,e),c&&a&&y._animate(a,c)),(c===e&&!e.animated||c===l&&!c.animated)&&(w=null),d.dragoverBubble||n.rootEl||c===B||(y._handleAutoScroll(n),e.parentNode[I]._computeIsAligned(n),!t&&ve(n)),!d.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function Y(){Te(y,i,"change",c,l,i,u,Le(e),p,Le(e,d.draggable),n)}},_animate:function(t,n){var o=this.options.animation;if(o){var i=Fe(n);if(n===e&&(S=i),1===t.nodeType&&(t=Fe(t)),t.left+t.width/2!==i.left+i.width/2||t.top+t.height/2!==i.top+i.height/2){var r=Ce(this.el),a=r&&r.a,s=r&&r.d;xe(n,"transition","none"),xe(n,"transform","translate3d("+(t.left-i.left)/(a||1)+"px,"+(t.top-i.top)/(s||1)+"px,0)"),this._repaint(n),xe(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),xe(n,"transform","translate3d(0,0,0)")}"number"==typeof n.animated&&clearTimeout(n.animated),n.animated=F(function(){xe(n,"transition",""),xe(n,"transform",""),n.animated=!1},o)}},_repaint:function(e){return e.offsetWidth},_offMoveEvents:function(){ke(B,"touchmove",this._onTouchMove),ke(B,"pointermove",this._onTouchMove),ke(B,"dragover",ve),ke(B,"mousemove",ve),ke(B,"touchmove",ve)},_offUpEvents:function(){var e=this.el.ownerDocument;ke(e,"mouseup",this._onDrop),ke(e,"touchend",this._onDrop),ke(e,"pointerup",this._onDrop),ke(e,"touchcancel",this._onDrop),ke(B,"selectstart",this)},_onDrop:function(a){var s=this.el,l=this.options;$=!1,P=!1,L=!1,D=!1,clearInterval(this._loopId),clearInterval(v),ue(),clearTimeout(me),me=void 0,clearTimeout(this._dragStartTimer),qe(this._cloneId),qe(this._dragStartId),ke(B,"mousemove",this._onTouchMove),this.nativeDraggable&&(ke(B,"drop",this),ke(s,"dragstart",this._onDragStart),ke(B,"dragover",this._handleAutoScroll),ke(B,"dragover",pe)),G&&xe(B.body,"user-select",""),this._offMoveEvents(),this._offUpEvents(),a&&(k&&(a.cancelable&&a.preventDefault(),!l.dropBubble&&a.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(i===t||m&&"clone"!==m.lastPutMode)&&o&&o.parentNode&&o.parentNode.removeChild(o),e&&(this.nativeDraggable&&ke(e,"dragend",this),Oe(e),e.style["will-change"]="",we(e,m?m.options.ghostClass:this.options.ghostClass,!1),we(e,this.options.chosenClass,!1),Te(this,i,"unchoose",e,t,i,u,null,p,null,a),i!==t?(d=Le(e),f=Le(e,l.draggable),d>=0&&(Te(null,t,"add",e,t,i,u,d,p,f,a),Te(this,i,"remove",e,t,i,u,d,p,f,a),Te(null,t,"sort",e,t,i,u,d,p,f,a),Te(this,i,"sort",e,t,i,u,d,p,f,a)),m&&m.save()):e.nextSibling!==r&&(d=Le(e),f=Le(e,l.draggable),d>=0&&(Te(this,i,"update",e,t,i,u,d,p,f,a),Te(this,i,"sort",e,t,i,u,d,p,f,a))),ge.active&&(null!=d&&-1!==d||(d=u,f=p),Te(this,i,"end",e,t,i,u,d,p,f,a),this.save()))),this._nulling()},_nulling:function(){i=e=t=n=r=o=a=s=l=O.length=v=g=b=y=_=k=d=u=w=x=S=m=h=ge.active=null,ie.forEach(function(e){e.checked=!0}),ie.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)be(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||De(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,o){var i=n.children[o];be(i,this.options.draggable,n,!1)&&(t[e]=i)},this),e.forEach(function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return be(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&de(n)},destroy:function(){var e=this.el;e[I]=null,ke(e,"mousedown",this._onTapStart),ke(e,"touchstart",this._onTapStart),ke(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ke(e,"dragover",this),ke(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),N.splice(N.indexOf(this.el),1),this.el=e=null},_hideClone:function(){o.cloneHidden||(xe(o,"display","none"),o.cloneHidden=!0,o.parentNode&&this.options.removeCloneOnHide&&o.parentNode.removeChild(o))},_showClone:function(t){"clone"===t.lastPutMode?o.cloneHidden&&(i.contains(e)&&!this.options.group.revertClone?i.insertBefore(o,e):r?i.insertBefore(o,r):i.appendChild(o),this.options.group.revertClone&&this._animate(e,o),xe(o,"display",""),o.cloneHidden=!1):this._hideClone()}},_e(B,"touchmove",function(e){(ge.active||$)&&e.cancelable&&e.preventDefault()}),ge.utils={on:_e,off:ke,css:xe,find:Ee,is:function(e,t){return!!be(e,t,e,!1)},extend:Ie,throttle:Re,closest:be,toggleClass:we,clone:Me,index:Le,nextTick:Be,cancelNextTick:qe,detectDirection:re,getChild:$e},ge.create=function(e,t){return new ge(e,t)},ge.version="1.9.0",ge})},824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"#picture-upload",props:{editedEntity:null,entityName:"",multiple:!1,disabled:!1},data:function(){return{pictureFullPath:"",pictureThumbPath:""}},mounted:function(){},methods:{openMediaModal:function(){if(!this.disabled){var e,t=this;e?e.open():((e=wp.media({title:"Select or Upload Profile Picture",button:{text:"Select picture"},multiple:this.multiple,library:{type:"image"}})).on("select",function(){var n=null;e.state().get("selection").forEach(function(e){n=e.toJSON(),t.pictureFullPath=n.url,t.pictureThumbPath=n.sizes.thumbnail?n.sizes.thumbnail.url:n.url,t.$emit("pictureSelected",t.pictureFullPath,t.pictureThumbPath)})}),e.open())}}},computed:{getPictureSrc:function(){return null!==this.editedEntity&&!this.pictureThumbPath&&this.editedEntity.pictureThumbPath?this.editedEntity.pictureThumbPath:this.pictureThumbPath&&"gallery"!==this.entityName?this.pictureThumbPath:this.$root.getUrl+"public/img/default-"+this.entityName+".svg"}}}},825:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-profile-photo",on:{click:e.openMediaModal}},[n("i",{class:{"el-icon-plus":"gallery"===e.entityName,"el-icon-picture":"gallery"!==e.entityName}}),e._v(" "),"gallery"===e.entityName?n("span",[e._v(e._s(e.$root.labels.add_image))]):e._e(),e._v(" "),"gallery"!==e.entityName?n("img",{attrs:{src:e.getPictureSrc,alt:""}}):e._e()])},staticRenderFns:[]}},826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(772),i=n.n(o);t.default={name:"DialogTranslate",props:{passedTranslations:null,name:"",allLanguagesData:null,usedLanguages:null,type:{required:!1,default:"name",type:String},tab:"",cfOptions:{required:!1,default:function(){return[]},type:Array},eventTickets:{required:!1,default:function(){return[]},type:Array},hasQuill:!0},data:function(){return{translations:null,oldTranslations:null,newTranslations:[],settings:null,newLanguages:[],languageWidth:12,options:[],tickets:[],allLanguagesKeys:[]}},mounted:function(){var e=this;this.translations=this.passedTranslations?JSON.parse(this.passedTranslations):{},this.oldTranslations=this.translations[this.type]?this.translations[this.type]:{},(this.oldTranslations?this.usedLanguages.filter(function(t){return!Object.keys(e.oldTranslations).includes(t)}):this.usedLanguages).forEach(function(t){e.oldTranslations[t]=""}),_.isEmpty(this.oldTranslations)&&this.addLanguage(),this.oldTranslations=JSON.parse(JSON.stringify(this.oldTranslations)),"description"!==this.type&&"cf"!==this.tab&&"tickets"!==this.tab&&"url"!==this.type||(this.languageWidth=24);var t=JSON.parse(JSON.stringify(this.cfOptions));t.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.options=t;var n=JSON.parse(JSON.stringify(this.eventTickets));n.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.tickets=n,this.allLanguagesKeys=Object.keys(this.allLanguagesData)},computed:{dialogStyle:function(){return"cf"!==this.tab&&"tickets"!==this.tab&&"category"!==this.tab&&"roles"!==this.tab?"margin-bottom: 0":""}},methods:{saveDialog:function(){var e=this;this.newTranslations.forEach(function(t){t.lan&&(e.usedLanguages.includes(t.lan)||e.newLanguages.push(t.lan),e.oldTranslations[t.lan]=t.value)}),this.translations[this.type]=this.oldTranslations,this.options.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),this.tickets.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),this.$emit("saveDialogTranslate",JSON.stringify(this.translations),this.newLanguages,this.tab,this.options,this.tickets)},closeDialog:function(){this.$emit("closeDialogTranslate")},addLanguage:function(){this.newTranslations.push({lan:"",value:""})},getLanguageLabel:function(e,t){return!t||"name"!==this.type&&"firstName"!==this.type&&"lastName"!==this.type||"cf"===this.tab||"tickets"===this.tab?this.allLanguagesData[e].name:this.allLanguagesData[e].name.substring(0,21)},getLanguageFlag:function(e){return e&&this.allLanguagesData[e]&&this.allLanguagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.allLanguagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},goBack:function(){"cf"===this.tab||"tickets"===this.tab||"category"===this.tab?this.closeDialog():this.saveDialog()},getHeaderTitle:function(){return"cf"===this.tab?this.$root.labels.translate+" "+this.$root.labels.custom_field:"tickets"===this.tab?this.$root.labels.translate+" "+this.$root.labels.event_tickets:"description"===this.type?this.$root.labels.translate+" "+this.$root.labels.description:"url"===this.type?this.$root.labels.url:this.$root.labels.translate+" "+this.name}},components:{ContentBlock:i.a}}},827:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-translate"},[n("div",{staticClass:"am-dialog-scrollable",style:e.dialogStyle},[n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:16}},[n("img",{staticClass:"am-dialog-translate-svg-back",attrs:{src:e.$root.getUrl+"public/img/arrow-back.svg"},on:{click:e.goBack}}),e._v(" "),n("h2",[e._v(e._s(e.getHeaderTitle()))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),n("BlockLite"),e._v(" "),e._l(e.oldTranslations,function(t,o){return n("div",{key:o,class:{"am-lite-container-disabled":e.$root.isLite}},[e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("el-row",{attrs:{gutter:28,type:"flex"}},[n("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:e.languageWidth,sm:e.languageWidth}},[n("div",{staticClass:"used-language"},[n("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(o)}}),e._v("\n "+e._s(e.getLanguageLabel(o,!0))+"\n ")])]),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():n("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:8,sm:14}},[n("el-input",{attrs:{type:"text",placeholder:e.$root.labels.translation},model:{value:e.oldTranslations[o],callback:function(t){e.$set(e.oldTranslations,o,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"description"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("el-row",{staticClass:"am-dialog-translate-description",staticStyle:{"margin-bottom":"8px"},attrs:{gutter:24,type:"flex"}},[n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[n("content-block",{attrs:{label:e.$root.labels.description,entity:e.oldTranslations,property:o,textProperty:o,htmlProperty:o+"Html",hasTranslation:!1,hasQuill:e.hasQuill,textModeProp:!0,allowImage:!1}})],1)],1):e._e(),e._v(" "),"url"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[n("el-input",{attrs:{value:t},model:{value:e.oldTranslations[o],callback:function(t){e.$set(e.oldTranslations,o,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:26,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(e.name))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[n("el-input",{attrs:{value:t,type:"text",placeholder:" "},model:{value:e.oldTranslations[o],callback:function(t){e.$set(e.oldTranslations,o,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,i){return e.cfOptions.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("div",[n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(i))])]),e._v(" "),n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(t.label))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[n("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[o],callback:function(n){e.$set(t.translations,o,n)},expression:"option['translations'][key]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(o)?n("div",[n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(t.name))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[n("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[o],callback:function(n){e.$set(t.translations,o,n)},expression:"item['translations'][key]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),e._l(e.newTranslations,function(t,o){return n("div",{key:o,class:{"am-lite-container-disabled":e.$root.isLite}},[n("el-row",{staticStyle:{"margin-right":"-15px"},attrs:{gutter:28,type:"flex"}},[n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:e.languageWidth}},[n("el-select",{attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:"",disabled:e.$root.isLite},model:{value:e.newTranslations[o].lan,callback:function(t){e.$set(e.newTranslations[o],"lan",t)},expression:"newTranslations[index].lan"}},[n("template",{slot:"prefix"},[n("img",{staticClass:"am-dialog-translate-flag-selected",attrs:{src:e.getLanguageFlag(e.newTranslations[o].lan)}})]),e._v(" "),e._l(e.allLanguagesKeys,function(t,o){return n("el-option",{key:o,attrs:{label:e.getLanguageLabel(t,!1),value:t,disabled:t in e.oldTranslations}},[n("span",[n("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t,!1))+"\n ")])])})],2)],1),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():n("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:14,sm:18}},[n("el-input",{attrs:{type:"text",name:t.name,placeholder:e.$root.labels.translation},model:{value:e.newTranslations[o].value,callback:function(t){e.$set(e.newTranslations[o],"value",t)},expression:"newTranslations[index].value"}})],1)],1),e._v(" "),"description"===e.type?n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[n("el-col",{attrs:{sm:24}},[n("el-input",{attrs:{value:t,type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.newTranslations[o].value,callback:function(t){e.$set(e.newTranslations[o],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"url"===e.type?n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[n("el-col",{attrs:{sm:24}},[n("el-input",{attrs:{value:t},model:{value:e.newTranslations[o].value,callback:function(t){e.$set(e.newTranslations[o],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab?n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(e.name))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[n("el-input",{attrs:{type:"text",name:t.name},model:{value:e.newTranslations[o].value,callback:function(t){e.$set(e.newTranslations[o],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,i){return e.cfOptions.length?n("div",[n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(i))])]),e._v(" "),n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(t.label))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[n("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[o].lan],callback:function(n){e.$set(t.translations,e.newTranslations[o].lan,n)},expression:"option['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length?n("div",[n("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[n("el-col",{attrs:{sm:5}},[n("div",{staticClass:"am-dialog-translate-cf-label"},[n("i",[e._v(e._s(t.name))])])]),e._v(" "),n("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[n("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[o].lan],callback:function(n){e.$set(t.translations,e.newTranslations[o].lan,n)},expression:"item['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),"provider"!==e.$root.settings.role?n("div",{class:{"am-lite-container-disabled":e.$root.isLite}},[n("img",{staticClass:"am-dialog-translate-svg-plus",attrs:{src:e.$root.getUrl+"public/img/plus-circle.svg"},on:{click:function(t){!e.$root.isLite&&e.addLanguage}}}),e._v(" "),n("div",{staticClass:"add-language",on:{click:function(t){!e.$root.isLite&&e.addLanguage}}},[e._v(e._s(e.$root.labels.add_language))])]):e._e()],2),e._v(" "),"category"===e.tab||"cf"===e.tab||"tickets"===e.tab||"roles"===e.tab?n("div",{staticClass:"am-dialog-footer"},[n("div",{staticClass:"am-dialog-footer-actions"},[n("el-row",[n("el-col",{staticClass:"align-right",attrs:{sm:24}},[n("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.saveDialog}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)]):e._e()])},staticRenderFns:[]}},943:function(e,t,n){var o=n(335)(n(944),n(945),!1,null,null,null);e.exports=o.exports},944:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{zoomSettings:null,lessonSpaceSettings:null,paymentsSettings:null,generalSettings:null,settings:null,providers:null},data:function(){var e=this;return{products:[],searchCounter:0,loadingProducts:!1,integrationsSettingsCollapse:null,paymentsSettingsCollapse:null,generalSettingsCollapse:null,rules:{redirectURLAfter:[{validator:function(t,n,o){e.clearValidation();var i=e.$refs.settings.model.redirectUrlAfterAppointment;""===i||/^((http|https):\/\/)/.test(i)?o():o(new Error(e.$root.labels.enter_valid_url_warning))},trigger:"submit"}]},errors:{redirectURLAfter:""},options:{defaultAppointmentStatus:[{label:this.$root.labels.pending,value:"pending"},{label:this.$root.labels.approved,value:"approved"}],minimumTime:[{label:this.$root.labels.disabled,value:0},{label:this.$root.labels.min10,value:600},{label:this.$root.labels.min12,value:720},{label:this.$root.labels.min15,value:900},{label:this.$root.labels.min30,value:1800},{label:this.$root.labels.min45,value:2700},{label:this.$root.labels.h1,value:3600},{label:this.$root.labels.h1min30,value:5400},{label:this.$root.labels.h2,value:7200},{label:this.$root.labels.h3,value:10800},{label:this.$root.labels.h4,value:14400},{label:this.$root.labels.h6,value:21600},{label:this.$root.labels.h8,value:28800},{label:this.$root.labels.h9,value:32400},{label:this.$root.labels.h10,value:36e3},{label:this.$root.labels.h11,value:39600},{label:this.$root.labels.h12,value:43200},{label:this.$root.labels.day1,value:86400},{label:this.$root.labels.days2,value:172800},{label:this.$root.labels.days3,value:259200},{label:this.$root.labels.days4,value:345600},{label:this.$root.labels.days5,value:432e3},{label:this.$root.labels.days6,value:518400},{label:this.$root.labels.week1,value:604800},{label:this.$root.labels.weeks2,value:1209600},{label:this.$root.labels.weeks3,value:1814400},{label:this.$root.labels.weeks4,value:2419200},{label:this.$root.labels.months3,value:7884e3},{label:this.$root.labels.months6,value:15768e3}]}}},mounted:function(){if(this.setProducts(),null!==this.generalSettings&&"numberOfDaysAvailableForBooking"in this.generalSettings&&!this.generalSettings.numberOfDaysAvailableForBooking)for(var e=document.getElementsByClassName("am-number-of-days"),t=0;t<e.length;t++)e[t].getElementsByClassName("el-input__inner")[0].value=""},computed:{isZoomProvidersConnected:function(){return null!==this.providers&&(!this.providers.map(function(e){return e.zoomUserId}).includes(null)&&0!==this.providers.length)}},methods:{isDefaultStatusPending:function(){return this.paymentsSettings.paymentLinks.enabled&&this.generalSettings&&("pending"===this.generalSettings.defaultAppointmentStatus||null===this.generalSettings.defaultAppointmentStatus&&"pending"===this.$root.settings.general.defaultAppointmentStatus)},setProducts:function(){var e=this;this.$root.settings.payments.wc.enabled&&(this.$root.settings.payments.wc.enabled&&this.paymentsSettings.wc.productId&&0===this.$root.wcProducts.filter(function(t){return t.id===e.paymentsSettings.wc.productId}).length&&this.fetchProducts({id:this.paymentsSettings.wc.productId},function(t){t.length&&e.products.push(t[0])}),this.products=this.$root.wcProducts)},selectedProduct:function(e){if(0===this.$root.wcProducts.filter(function(t){return t.id===e}).length){var t=this.products.find(function(t){return t.id===e});t&&this.$root.wcProducts.push(t)}},fetchProducts:function(e,t){var n=this;clearTimeout(this.searchProductsTimer),this.loadingProducts=!0,this.searchCounter++,this.searchProductsTimer=setTimeout(function(){var o=n.searchCounter;n.$http.get(n.$root.getAjaxUrl+"/payment/wc/products",{params:e}).then(function(e){o>=n.searchCounter&&t(e.data.data.products.sort(function(e,t){return e.name.toLowerCase()>t.name.toLowerCase()?1:-1})),n.loadingProducts=!1}).catch(function(e){n.loadingProducts=!1})},500)},searchProducts:function(e){var t=this;e?this.fetchProducts({name:e},function(e){t.products=e}):this.products=this.$root.wcProducts},clearValidation:function(){}}}},945:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-entity-settings",class:{"am-lite-container-disabled":e.$root.isLite,"am-entity-settings":!0}},[null!==e.generalSettings?n("el-collapse",{model:{value:e.generalSettingsCollapse,callback:function(t){e.generalSettingsCollapse=t},expression:"generalSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"generalSettings"}},[n("template",{slot:"title"},[n("img",{staticClass:"svg-amelia",staticStyle:{"margin-right":"10px"},attrs:{src:e.$root.getUrl+"public/img/setting.svg"}}),e._v(" "+e._s(e.$root.labels.general)+"\n ")]),e._v(" "),null!==e.generalSettings&&"defaultAppointmentStatus"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_appointment_status)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.default_appointment_status)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:e.options.defaultAppointmentStatus.find(function(t){return t.value===e.$root.settings.general.defaultAppointmentStatus}).label,"popper-class":"am-dropdown-cabinet"},model:{value:e.generalSettings.defaultAppointmentStatus,callback:function(t){e.$set(e.generalSettings,"defaultAppointmentStatus",t)},expression:"generalSettings.defaultAppointmentStatus"}},e._l(e.options.defaultAppointmentStatus,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),null!==e.generalSettings&&"minimumTimeRequirementPriorToBooking"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_booking)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_booking_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{clearable:"","collapse-tags":"",placeholder:"Select",placeholder:e.options.minimumTime.find(function(t){return t.value===e.$root.settings.general.minimumTimeRequirementPriorToBooking}).label,"popper-class":"am-dropdown-cabinet"},model:{value:e.generalSettings.minimumTimeRequirementPriorToBooking,callback:function(t){e.$set(e.generalSettings,"minimumTimeRequirementPriorToBooking",t)},expression:"generalSettings.minimumTimeRequirementPriorToBooking"}},e._l(e.options.minimumTime,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),null!==e.generalSettings&&"minimumTimeRequirementPriorToCanceling"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_canceling)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_canceling_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:e.options.minimumTime.find(function(t){return t.value===e.$root.settings.general.minimumTimeRequirementPriorToCanceling}).label,"popper-class":"am-dropdown-cabinet"},model:{value:e.generalSettings.minimumTimeRequirementPriorToCanceling,callback:function(t){e.$set(e.generalSettings,"minimumTimeRequirementPriorToCanceling",t)},expression:"generalSettings.minimumTimeRequirementPriorToCanceling"}},e._l(e.options.minimumTime,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),null!==e.generalSettings&&"minimumTimeRequirementPriorToRescheduling"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_rescheduling)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_rescheduling_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:e.options.minimumTime.find(function(t){return t.value===e.$root.settings.general.minimumTimeRequirementPriorToRescheduling}).label,"popper-class":"am-dropdown-cabinet"},model:{value:e.generalSettings.minimumTimeRequirementPriorToRescheduling,callback:function(t){e.$set(e.generalSettings,"minimumTimeRequirementPriorToRescheduling",t)},expression:"generalSettings.minimumTimeRequirementPriorToRescheduling"}},e._l(e.options.minimumTime,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1):e._e(),e._v(" "),null!==e.generalSettings&&"numberOfDaysAvailableForBooking"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period_available_for_booking)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_available_for_booking_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-input-number",{staticClass:"am-number-of-days",attrs:{min:0,placeholder:e.$root.settings.general.numberOfDaysAvailableForBooking.toString()},model:{value:e.generalSettings.numberOfDaysAvailableForBooking,callback:function(t){e.$set(e.generalSettings,"numberOfDaysAvailableForBooking",t)},expression:"generalSettings.numberOfDaysAvailableForBooking"}})],1):e._e(),e._v(" "),null!==e.generalSettings&&"redirectUrlAfterAppointment"in e.generalSettings?n("el-form-item",{attrs:{label:"placeholder",prop:"redirectURLAfter",error:e.errors.redirectURLAfter}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.redirect_url_after_appointment)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.redirect_url_after_appointment_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.settings.general.redirectUrlAfterAppointment.toString()},on:{input:function(t){return e.clearValidation()}},model:{value:e.generalSettings.redirectUrlAfterAppointment,callback:function(t){e.$set(e.generalSettings,"redirectUrlAfterAppointment",t)},expression:"generalSettings.redirectUrlAfterAppointment"}})],1):e._e()],2)],1):e._e(),e._v(" "),null!==e.paymentsSettings?n("el-collapse",{staticClass:"am-entity-settings-payments",model:{value:e.paymentsSettingsCollapse,callback:function(t){e.paymentsSettingsCollapse=t},expression:"paymentsSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"paymentsSettings"}},[n("template",{slot:"title"},[n("img",{staticClass:"svg-amelia",staticStyle:{"margin-right":"10px"},attrs:{src:e.$root.getUrl+"public/img/credit-card.svg"}}),e._v(" "+e._s(e.$root.labels.payments)+"\n ")]),e._v(" "),n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("span",[e._v(e._s(e.$root.labels.payment_links_enable))]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_enable_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{model:{value:e.paymentsSettings.paymentLinks.enabled,callback:function(t){e.$set(e.paymentsSettings.paymentLinks,"enabled",t)},expression:"paymentsSettings.paymentLinks.enabled"}})],1)],1),e._v(" "),e.paymentsSettings.paymentLinks.enabled?n("el-row",{staticStyle:{"margin-top":"16px"}},[n("el-col",[n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{staticStyle:{"font-size":"13px"},attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.payment_links_redirect)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_redirect_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-input",{attrs:{placeholder:e.$root.settings.payments.paymentLinks.redirectUrl?e.$root.settings.payments.paymentLinks.redirectUrl:e.$root.getSiteUrl,"auto-complete":"off"},model:{value:e.paymentsSettings.paymentLinks.redirectUrl,callback:function(t){e.$set(e.paymentsSettings.paymentLinks,"redirectUrl",t)},expression:"paymentsSettings.paymentLinks.redirectUrl"}})],1)],1)],1):e._e(),e._v(" "),e.isDefaultStatusPending()?n("el-row",{staticStyle:{"font-size":"14px","margin-bottom":"16px !important"},attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("span",[e._v(e._s(e.$root.labels.payment_links_change_status))]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_change_status_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{model:{value:e.paymentsSettings.paymentLinks.changeBookingStatus,callback:function(t){e.$set(e.paymentsSettings.paymentLinks,"changeBookingStatus",t)},expression:"paymentsSettings.paymentLinks.changeBookingStatus"}})],1)],1):e._e(),e._v(" "),e.paymentsSettings.paymentLinks.enabled&&"provider"!==e.$root.settings.role?n("el-alert",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.payment_links_warning,closable:!1}}):e._e()],1),e._v(" "),e.$root.settings.payments.onSite?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.on_site)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.onSite,callback:function(t){e.$set(e.paymentsSettings,"onSite",t)},expression:"paymentsSettings.onSite"}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.wc.enabled?n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wc_product)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.wc_product_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{filterable:"",remote:"",placeholder:"","popper-class":"am-dropdown-cabinet",loading:e.loadingProducts,"remote-method":e.searchProducts},on:{change:e.selectedProduct},model:{value:e.paymentsSettings.wc.productId,callback:function(t){e.$set(e.paymentsSettings.wc,"productId",t)},expression:"paymentsSettings.wc.productId"}},e._l(e.products,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.payPal.enabled?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:e.$root.getUrl+"public/img/payments/paypal-light.svg"}})]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.payPal.enabled,callback:function(t){e.$set(e.paymentsSettings.payPal,"enabled",t)},expression:"paymentsSettings.payPal.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.stripe.enabled?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("img",{staticClass:"svg-amelia",attrs:{width:"40px",src:e.$root.getUrl+"public/img/payments/stripe.svg"}})]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.stripe.enabled,callback:function(t){e.$set(e.paymentsSettings.stripe,"enabled",t)},expression:"paymentsSettings.stripe.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.mollie.enabled?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:e.$root.getUrl+"public/img/payments/mollie.svg"}})]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.mollie.enabled,callback:function(t){e.$set(e.paymentsSettings.mollie,"enabled",t)},expression:"paymentsSettings.mollie.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.razorpay.enabled?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[n("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:e.$root.getUrl+"public/img/payments/razorpay.svg"}})]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.razorpay.enabled,callback:function(t){e.$set(e.paymentsSettings.razorpay,"enabled",t)},expression:"paymentsSettings.razorpay.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.$root.settings.payments.wc.enabled||e.paymentsSettings.onSite&&(e.$root.settings.payments.onSite||!e.paymentsSettings.onSite)||e.paymentsSettings.payPal.enabled&&(e.$root.settings.payments.payPal.enabled||!e.paymentsSettings.payPal.enabled)||e.paymentsSettings.stripe.enabled&&(e.$root.settings.payments.stripe.enabled||!e.paymentsSettings.stripe.enabled)||e.paymentsSettings.mollie.enabled&&(e.$root.settings.payments.mollie.enabled||!e.paymentsSettings.mollie.enabled)||e.paymentsSettings.razorpay.enabled&&(e.$root.settings.payments.razorpay.enabled||!e.paymentsSettings.razorpay.enabled)?e._e():n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.payment_warning,closable:!1}})],2)],1):e._e(),e._v(" "),e.zoomSettings||e.lessonSpaceSettings?n("el-collapse",{model:{value:e.integrationsSettingsCollapse,callback:function(t){e.integrationsSettingsCollapse=t},expression:"integrationsSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"integrationsSettings"}},[n("template",{slot:"title"},[n("img",{staticClass:"svg-amelia",staticStyle:{"margin-right":"10px"},attrs:{src:e.$root.getUrl+"public/img/web-hook.svg"}}),e._v(" "+e._s(e.$root.labels.integrations_settings)+"\n ")]),e._v(" "),e.zoomSettings?n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.zoom)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.zoomSettings.enabled,callback:function(t){e.$set(e.zoomSettings,"enabled",t)},expression:"zoomSettings.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.zoomSettings&&e.zoomSettings.enabled&&!e.isZoomProvidersConnected?n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.zoom_warning,closable:!1}}):e._e(),e._v(" "),n("div",{staticClass:"am-setting-box am-switch-box"},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.lesson_space)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.lessonSpaceSettings.enabled,callback:function(t){e.$set(e.lessonSpaceSettings,"enabled",t)},expression:"lessonSpaceSettings.enabled"}})],1)],1)],1)],2)],1):e._e()],1)},staticRenderFns:[]}},946:function(e,t,n){"use strict";t.a={data:function(){return{count:{success:0,error:0}}},methods:{deleteEntities:function(e,t,n,o){var i=this;e.forEach(function(r){i.$http.post(i.$root.getAjaxUrl+"/"+i.name+"/delete/"+r).then(function(){i.deleteEntityResult(e,!0,t),n(r)}).catch(function(){i.deleteEntityResult(e,!1,t),o(r)})})},deleteEntityResult:function(e,t,n){e.pop(),t?this.count.success++:this.count.error++,0===e.length&&(this.count.success&&this.notify(this.$root.labels.success,this.count.success+" "+(this.count.success>1?this.successMessage.multiple:this.successMessage.single),"success"),this.count.error&&this.notify(this.$root.labels.error,this.count.error+" "+(this.count.error>1?this.errorMessage.multiple:this.errorMessage.single),"error"),this.count.success=0,this.count.error=0,n())}}}},968:function(e,t,n){"use strict";var o=n(727),i=n(0),r=n.n(i),a=n(770),s=n(338);t.a={mixins:[a.a,o.a,s.a],data:function(){return{event:null,bookingCreatedCount:0,attributes:[{highlight:{backgroundColor:"#ddd"},dates:[]}],selectedRecurringDate:null,recurringDates:null,updateStatusDisabled:!1,recurringPeriods:[{label:this.$root.labels.recurring_type_weekly,value:"weekly"},{label:this.$root.labels.recurring_type_monthly,value:"monthly"},{label:this.$root.labels.recurring_type_yearly,value:"yearly"}],colors:["#1788FB","#4BBEC6","#FBC22D","#FA3C52","#D696B8","#689BCA","#26CC2B","#FD7E35","#E38587","#774DFB"],options:{fetched:!1,entities:{settings:{payments:{wc:null},general:{usedLanguages:[]}},employees:[],locations:[],tags:[]}}}},methods:{showDialogEditEvent:function(e){this.dialogEvent=!0,this.event=null,this.getEvent(e)},closeDialogEvent:function(){this.dialogEvent=!1},getInitEventObject:function(){return{id:0,parentId:null,name:"",periods:[{id:null,eventId:null,range:null,startTime:null,endTime:null,bookings:[]}],bookingStartsNow:!0,bookingStartsDate:null,bookingStartsTime:null,bookingEndsAfter:!0,bookingEndsDate:null,bookingEndsTime:null,bookingOpensRec:"same",bookingClosesRec:"same",ticketRangeRec:"calculate",isRecurring:!1,recurring:{cycle:null,order:null,until:null,cycleInterval:null},bringingAnyone:!0,bookMultipleTimes:!0,maxCapacity:null,maxCustomCapacity:null,maxExtraPeople:null,price:0,locationId:null,customLocation:null,providers:this.getInitEventProviders(),tags:[],description:null,gallery:[],colorType:2,selectedColor:"#1788FB",customColor:"#1788FB",show:!0,places:0,addToCalendarData:null,showAddToCalendar:!1,showEventDetails:!1,showEventBooking:!1,translations:null,canceling:!1,deleting:!1,bookable:!0,deposit:0,depositPayment:"disabled",depositPerPerson:1,customTickets:[],settings:this.getInitEntitySettings("event"),closeAfterMin:null,closeAfterMinBookings:!1,aggregatedPrice:!0}},showDialogNewEvent:function(){this.event=this.getInitEventObject(),this.dialogEvent=!0},getEvent:function(e){var t=this,n=null,o="";void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(o=""===this.$store.state.cabinet.timeZone?"UTC":this.$store.state.cabinet.timeZone,n=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType,timeZone:o}})),this.$http.get(this.$root.getAjaxUrl+"/events/"+e,n).then(function(e){var n=Object.assign(t.getInitEventObject(),e.data.data.event),i=[],a=t;e.data.data.event.periods.forEach(function(e){"UTC"===o&&(e.periodStart=a.getConvertedUtcToLocalDateTime(e.periodStart),e.periodEnd=a.getConvertedUtcToLocalDateTime(e.periodEnd));var t=r()(e.periodStart,"YYYY-MM-DD HH:mm:ss"),n=r()(e.periodEnd,"YYYY-MM-DD HH:mm:ss"),s=e.periodStart.split(" ")[1].substring(0,5),l=e.periodEnd.split(" ")[1].substring(0,5);"00:00"===l&&(n.subtract(1,"days"),l="24:00"),i.push({id:e.id?e.id:null,eventId:e.eventId?e.eventId:null,range:{start:t.toDate(),end:n.toDate()},startTime:s,endTime:l,bookings:e.bookings,zoomMeeting:e.zoomMeeting,lessonSpace:e.lessonSpace,googleCalendarEventId:e.googleCalendarEventId,googleMeetUrl:e.googleMeetUrl,outlookCalendarEventId:e.outlookCalendarEventId})}),n.periods=i;var s=[];n.tags.forEach(function(e){s.push(e.name)}),n.tags=s,null===n.recurring?n.recurring={cycle:null,until:null,order:null}:(n.isRecurring=!0,n.recurring.cycleInterval=null===e.data.data.event.recurring.cycleInterval?1:e.data.data.event.recurring.cycleInterval,n.recurring.until=e.data.data.event.recurring.until?r()(e.data.data.event.recurring.until).toDate():null),n.bookingStartsNow=null===e.data.data.event.bookingOpens,n.bookingStartsDate=e.data.data.event.bookingOpens?r()(e.data.data.event.bookingOpens).toDate():null,n.bookingStartsTime=e.data.data.event.bookingOpens?e.data.data.event.bookingOpens.split(" ")[1].substring(0,5):null,n.bookingEndsAfter=null===e.data.data.event.bookingCloses,n.bookingEndsDate=e.data.data.event.bookingCloses?r()(e.data.data.event.bookingCloses).toDate():null,n.bookingEndsTime=e.data.data.event.bookingCloses?e.data.data.event.bookingCloses.split(" ")[1].substring(0,5):null,n.zoomUserId=e.data.data.event.zoomUserId,n.organizerId=e.data.data.event.organizerId,n.closeAfterMin=e.data.data.event.closeAfterMin,n.closeAfterMinBookings=e.data.data.event.closeAfterMinBookings,n.aggregatedPrice=e.data.data.event.aggregatedPrice;var l=n.bookings;l.forEach(function(e){if(e.info){var t=JSON.parse(e.info);e.customer.firstName=t.firstName,e.customer.lastName=t.lastName,e.customer.phone=t.phone}else{var n=a.getCustomerById(e.customerId);e.customer.firstName=n?n.firstName:a.$root.labels.customer+" "+e.customerId,e.customer.lastName=n?n.lastName:"",e.customer.phone=n?n.phone:""}e.show=!0,e.removing=!1,e.checked=!1,"[]"!==e.customFields&&null!==e.customFields||(e.customFields="{}"),e.customFields=JSON.parse(e.customFields)});var c=!1;t.colors.forEach(function(e){e===n.color&&(n.colorType=1,n.selectedColor=e,n.customColor=e,c=!0)}),c||(n.colorType=2,n.selectedColor=null,n.customColor=n.color),n.gallery=n.gallery.sort(function(e,t){return e.position>t.position?1:-1}),t.eventBookings=l,t.setEntitySettings(n,"event"),null===n.deposit&&(n.deposit=0),t.event=n,t.bookingCreatedCount++}).catch(function(e){console.log(e.message)})},getInitEventProviders:function(){return"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents?this.options.entities.employees:[]},showDialogAttendees:function(e){this.eventBookings=null,this.dialogAttendees=!0,this.getEvent(e)}},watch:{}}},969:function(e,t,n){var o=n(335)(n(970),n(974),!1,null,null,null);e.exports=o.exports},970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(727),i=n(338),r=n(721),a=n.n(r),s=n(701),l=n(943),c=n.n(l),u=n(971),d=n.n(u),p=n(696),f=n(700),h=n(699),m=n(712),v=n(697),g=n(726),b=n(779),y=n(769),_=(n.n(y),n(0)),k=n.n(_),w=n(772),x=n.n(w);t.default={mixins:[o.a,i.a,s.a,p.a,f.a,h.a,m.a,v.a,g.a,b.a],props:{selectedTimeZone:"",event:null,employees:null,locations:null,tags:null,settings:null,isCabinet:{required:!1,default:!1,type:Boolean},showHeader:{required:!1,default:!0,type:Boolean},showGallery:{required:!1,default:!0,type:Boolean}},data:function(){var e=this;return{maxExtraPeopleEnabled:!1,closeAfterMin:!1,currentUser:null,customPrice:0,calendarConflict:{enable:!1},checkCalendarEvents:!1,customPricingEnabled:!1,customPricingByDateRangeEnabled:!1,customTickets:[],maxCustomCapacity:!1,maxCustomCapacityNum:1,soldTicketsIds:[],customTicketsDateRange:[],customTicketsDateRangesDisabledDates:[],customTicketsDateRangesSelected:[],monthDate:null,monthlyOnRepeat:"first",monthlyOnDay:"monday",monthlyRepeat:"each",weekDays:[{label:this.$root.labels.weekday_monday,value:"monday"},{label:this.$root.labels.weekday_tuesday,value:"tuesday"},{label:this.$root.labels.weekday_wednesday,value:"wednesday"},{label:this.$root.labels.weekday_thursday,value:"thursday"},{label:this.$root.labels.weekday_friday,value:"friday"},{label:this.$root.labels.weekday_saturday,value:"saturday"},{label:this.$root.labels.weekday_sunday,value:"sunday"}],activeColor:"white",depositEnabled:!1,depositPayment:"fixed",depositOptions:[{value:"fixed",label:this.$root.labels.fixed_amount},{value:"percentage",label:this.$root.labels.percentage}],originRecurring:null,originPeriods:null,colors:["#1788FB","#4BBEC6","#FBC22D","#FA3C52","#D696B8","#689BCA","#26CC2B","#FD7E35","#E38587","#774DFB"],monthlyWeekDayRepeat:[{label:this.$root.labels.recurring_date_first,value:"first"},{label:this.$root.labels.recurring_date_second,value:"second"},{label:this.$root.labels.recurring_date_third,value:"third"},{label:this.$root.labels.recurring_date_fourth,value:"fourth"},{label:this.$root.labels.recurring_date_last,value:"last"}],recurringPeriods:[{label:this.$root.labels.recurring_type_daily,value:"daily"},{label:this.$root.labels.recurring_type_weekly,value:"weekly"},{label:this.$root.labels.recurring_type_monthly,value:"monthly"},{label:this.$root.labels.recurring_type_yearly,value:"yearly"}],zoomUsers:[],dialogLoading:!0,executeUpdate:!0,mounted:!1,rules:{name:[{required:!0,message:this.$root.labels.enter_name_warning,trigger:"submit"}],price:[{validator:function(t,n,o){n<0?o(new Error(e.$root.labels.enter_non_negative_price_warning)):o()},trigger:"submit"},{required:!0,message:this.$root.labels.enter_service_price_warning,trigger:"submit",type:"number"}],deposit:[{validator:function(t,n,o){n<=0?o(new Error(e.$root.labels.enter_positive_price_warning)):o()},trigger:"submit"}],range:[{required:!0,message:this.$root.labels.select_date_warning,trigger:"submit"}],startTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}],endTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}],bookingStartsDate:[{validator:function(t,n,o){e.event.bookingStartsNow||n?o():o(new Error(e.$root.labels.select_date_warning))},trigger:"submit"}],bookingStartsTime:[{validator:function(t,n,o){e.event.bookingStartsNow||n?o():o(new Error(e.$root.labels.select_time_warning))},trigger:"submit"}],bookingEndsDate:[{validator:function(t,n,o){e.event.bookingEndsAfter||n?o():o(new Error(e.$root.labels.select_date_warning))},trigger:"submit"}],bookingEndsTime:[{validator:function(t,n,o){e.event.bookingEndsAfter||n?o():o(new Error(e.$root.labels.select_time_warning))},trigger:"submit"}],recurringUntilDate:[{validator:function(t,n,o){e.event.recurring.until||n?o():o(new Error(e.$root.labels.select_date_warning))},trigger:"submit"}],recurringCycle:[{validator:function(t,n,o){e.event.recurring.cycle||n?o():o(new Error(e.$root.labels.select_cycle_warning))},trigger:"submit"}],recurringInterval:[{validator:function(t,n,o){e.event.recurring.cycleInterval||n?o():o(new Error(e.$root.labels.select_interval_warning))},trigger:"submit"}]},defaultEventTab:"details"}},methods:{hasPassed:function(){return this.event&&0!==this.event.id&&k()(this.event.periods[this.event.periods.length-1].range.end,"YYYY-MM-DD HH:mm:ss").isBefore(k()())},changeRecurringCycle:function(e){null!==this.event.recurring.cycleInterval&&void 0!==this.event.recurring.cycleInterval||(this.event.recurring.cycleInterval=1)},changeMaxExtraPeople:function(){this.maxExtraPeopleEnabled&&null===this.event.maxExtraPeople&&(this.event.maxExtraPeople=this.event.minCapacity-1)},createEventPeriods:function(){var e=this,t=[];return this.event.periods.forEach(function(n,o){var i=e.getDateString(n.range.start)+" "+n.startTime+":00",r=e.getDateString(n.range.end)+" "+n.endTime+":00";"UTC"===e.selectedTimeZone&&(i=k()(i,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"),r=k()(r,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm")),void 0!==e.originPeriods[o]&&(n.id=e.originPeriods[o].id,n.eventId=e.originPeriods[o].eventId),t.push({id:n.id,eventId:e.event.id?e.event.id:null,periodStart:i,periodEnd:r,googleCalendarEventId:n.googleCalendarEventId,googleMeetUrl:n.googleMeetUrl,outlookCalendarEventId:n.outlookCalendarEventId})}),t},assignOrganizer:function(e){this.event.organizerId=e?this.currentUser.id:null,this.$forceUpdate()},confirmCalendarConflict:function(){this.$set(this.calendarConflict,"enabled",!1)},getTicketsSpots:function(){var e=0;return this.customTickets&&this.customTickets.forEach(function(t){e+=t.spots}),e},getMaxCapacity:function(){return this.maxCustomCapacity?this.maxCustomCapacityNum:this.customPricingEnabled?this.getTicketsSpots():this.event.maxCapacity},isTicketDisabled:function(e){var t=!1;return this.customTickets.filter(function(e){return e.enabled}).length<=1&&this.customTickets.forEach(function(n,o){e===o&&n.enabled&&(t=!0)}),t},customTicketNameChanged:function(e,t){if(this.customTicketsDateRange.length)for(var n=0;n<this.customTicketsDateRange.length;n++)this.customTicketsDateRange[n].tickets.map(function(n,o){n.name=o!==t?n.name:e})},switchTicketing:function(e){this.customPricingEnabled=e,e&&(this.setDisabledTicketRangeDates(null,!1),0===this.event.customTickets.length&&0===this.customTickets.length&&this.addCustomTicket())},ticketIsBooked:function(e){return!this.soldTicketsIds.includes(e)},deleteCustomTicket:function(e){if(this.customTickets=this.customTickets.filter(function(t,n){return n!==e}),this.customTicketsDateRange.length){for(var t=0;t<this.customTicketsDateRange.length;t++)this.customTicketsDateRange[t].tickets=this.customTicketsDateRange[t].tickets.filter(function(t,n){return n!==e}),this.customTicketsDateRange[t].tickets.length||(this.customTicketsDateRange=this.customTicketsDateRange.splice(t-1,1));this.customTickets.length||(this.customTicketsDateRange=[]);var n=!1;this.customTickets.filter(function(e){return e.enabled}).length<=1&&this.customTickets.forEach(function(e,t){e.enabled&&(n=!0)}),n||(this.customTickets[this.customTickets.length-1].enabled=!0)}},getStartTicketRangeDate:function(e,t){var n=this.event.bookingStartsDate?k()(this.event.bookingStartsDate):k()();if(t)return k()(n).format("YYYY-MM-DD").split("-");switch(e){case"date":return k()(n).toDate();case"moment":return k()(n);case"string":return k()(n).format("YYYY-MM-DD")}},getEndTicketRangeDate:function(e,t){var n=this.event.bookingEndsDate?k()(this.event.bookingEndsDate):k()(this.event.periods[0].range.start,"YYYY-MM-DD");if(t)return k()(n).format("YYYY-MM-DD").split("-");switch(e){case"date":return k()(n).toDate();case"moment":return k()(n);case"string":return k()(n).format("YYYY-MM-DD")}},getPeriodDates:function(e,t,n){for(var o=[];e.isSameOrBefore(t);){switch(n){case"date":o.push(k()(e).toDate());break;case"moment":o.push(k()(e));break;case"string":o.push(k()(e).format("YYYY-MM-DD"))}e.add(1,"days")}return o},setDisabledTicketRangeDates:function(e,t){var n=this,o=[];this.customTicketsDateRange.forEach(function(t,i){if(t.range&&(null===e||e!==i)){var r=k()(t.range.start),a=k()(t.range.end);o=o.concat(n.getPeriodDates(r,a,"date"))}}),t?o.length&&this.customTicketsDateRange.length>=e&&this.customTicketsDateRange[e].range&&setTimeout(function(){n.customTicketsDateRangesSelected=o},200):this.customTicketsDateRangesSelected=o},deleteCustomTicketDateRange:function(e){this.customTicketsDateRange.splice(e,1),this.setDisabledTicketRangeDates(null,!1)},addCustomTicketDateRange:function(){for(var e=[],t=0;t<this.customTickets.length;t++)e.push({id:this.customTickets[t].id,name:this.customTickets[t].name,price:this.customTickets[t].price,enabled:this.customTickets[t].enabled});this.customTicketsDateRange.push({range:null,tickets:e}),this.setDisabledTicketRangeDates(null,!1)},addCustomTicket:function(){var e={id:0,enabled:!0,name:"",spots:1,price:0};this.customTickets.push(e),this.customTicketsDateRange.forEach(function(t){t.tickets.push(JSON.parse(JSON.stringify(e)))})},getCalendarEvents:function(){var e=this;return new Promise(function(t,n){if(e.event.organizerId&&e.event.periods&&e.event.name){var o=e.employees.find(function(t){return t.id===e.event.organizerId});if(o&&(o.googleCalendar||o.outlookCalendar)){var i=e.event.providers.concat(o);e.checkCalendarEvents=!0;var r=null;e.isCabinet&&(r=Object.assign(e.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+e.$store.state.cabinet.cabinetType}})),e.$http.post(e.$root.getAjaxUrl+"/events/calendar",{providers:i,periods:e.createEventPeriods(),eventIds:[e.event.id,e.event.parentId],recurring:e.event.recurring},r).then(function(n){e.$set(e.calendarConflict,"enabled",!1),t(n)}).catch(function(n){e.$set(e.calendarConflict,"enabled",!0),t(n)}).finally(function(){e.checkCalendarEvents=!1})}else t(!0)}else t(!0)})},calculateMinDate:function(){if(this.event&&this.event.periods&&this.event.periods[0]&&this.event.periods[0].range){var e=this.event.periods[0].range.start;return new Date(e.getFullYear(),e.getMonth(),1)}},calculateMaxDate:function(){if(this.event&&this.event.periods&&this.event.periods[0]&&this.event.periods[0].range){var e=this.event.periods[0].range.start;return new Date(e.getFullYear(),e.getMonth()+1,0)}},depositEnabledChanged:function(){this.depositEnabled?this.event.depositPayment=this.depositPayment:this.event.depositPayment="disabled"},getTicketsMaxPrice:function(e){return e.length?Math.max.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.map(function(e){return e.price}))):0},depositChanged:function(){this.customPricingEnabled&&this.event.deposit>this.getTicketsMaxPrice(this.customTickets)&&"fixed"===this.depositPayment&&(this.event.deposit=this.getTicketsMaxPrice(this.customTickets)),!this.customPricingEnabled&&this.event.deposit>this.event.price&&"fixed"===this.depositPayment&&(this.event.deposit=this.event.price)},priceChanged:function(){this.customPricingEnabled&&this.event.deposit>this.getTicketsMaxPrice(this.customTickets)&&"fixed"===this.depositPayment&&(this.event.deposit=this.getTicketsMaxPrice(this.customTickets)),!this.customPricingEnabled&&this.event.deposit>this.event.price&&"fixed"===this.depositPayment&&(this.event.deposit=this.event.price)},canManage:function(){return"admin"===this.$root.settings.role||"manager"===this.$root.settings.role},galleryUpdated:function(){},validationFailCallback:function(){this.defaultEventTab="details"},tagsChanged:function(){},haveSaveConfirmation:function(){return 0!==this.event.id&&this.originRecurring.until||this.calendarConflict.enabled},changeBookingStartsDate:function(){null===this.event.bookingStartsTime&&(this.event.bookingStartsTime="00:00")},changeBookingEndsDate:function(){null===this.event.bookingEndsTime&&(this.event.bookingEndsTime="00:00")},mergeTicketsWithSameDateRange:function(e){for(var t=e,n=0;n<t.length;n++)for(var o=n+1;o<t.length;o++)JSON.stringify(t[n].range)===JSON.stringify(t[o].range)&&(t[n].tickets.push(t[o].tickets[0]),t.splice(o,1),o--);return t},instantiateDialog:function(){var e=this;null!==this.event&&!0===this.executeUpdate&&(this.maxCustomCapacity=null!==this.event.maxCustomCapacity,this.maxCustomCapacityNum=this.maxCustomCapacity?this.event.maxCustomCapacity:1,this.maxExtraPeopleEnabled=null!==this.event.maxExtraPeople,this.event.notifyParticipants=!!this.event.notifyParticipants,this.event.customTickets&&this.event.customTickets.forEach(function(t){var n=JSON.parse(t.dateRanges);e.customTickets.push({id:t.id,enabled:t.enabled,name:t.name,spots:t.spots,price:t.price,translations:t.translations?t.translations:""}),n.length&&n.forEach(function(n){e.customTicketsDateRange.push({tickets:[{id:t.id,name:t.name,price:n.price,enabled:t.enabled}],range:{start:k()(n.startDate).toDate(),end:k()(n.endDate).toDate()}})}),e.setDisabledTicketRangeDates(null,!1)}),this.event.customPricing&&(this.customPricingEnabled=!0),this.customTickets.length&&this.event.bookings.forEach(function(t){t.ticketsData.forEach(function(t){-1===e.soldTicketsIds.indexOf(t.eventTicketId)&&e.soldTicketsIds.push(t.eventTicketId)})}),this.customTicketsDateRange.length&&(this.customTicketsDateRange=this.mergeTicketsWithSameDateRange(this.customTicketsDateRange),this.customPricingByDateRangeEnabled=!0),this.originPeriods=JSON.parse(JSON.stringify(this.event.periods)),this.originRecurring=JSON.parse(JSON.stringify(this.event.recurring)),this.event.recurring&&"monthly"===this.event.recurring.cycle&&this.event.recurring.monthlyRepeat&&(this.monthlyRepeat=this.event.recurring.monthlyRepeat),this.event.recurring&&"monthly"===this.event.recurring.cycle&&this.event.recurring.monthlyOnRepeat&&(this.monthlyOnRepeat=this.event.recurring.monthlyOnRepeat),this.event.recurring&&"monthly"===this.event.recurring.cycle&&this.event.recurring.monthlyOnDay&&(this.monthlyOnDay=this.event.recurring.monthlyOnDay),this.event.recurring&&"monthly"===this.event.recurring.cycle&&"each"===this.event.recurring.monthlyRepeat&&(this.event.recurring.monthDate?this.event.recurring.monthDate=k()(this.event.recurring.monthDate).toDate():this.event.recurring.monthDate=k()(this.event.periods[0].range.start).toDate()),this.event.periods[0].range&&k()(this.event.periods[0].range.start).format("YYYY-MM-DD HH:mm:ss")===this.event.bookingCloses&&(this.event.bookingEndsAfter=!0),this.closeAfterMin=null!==this.event.closeAfterMin,"disabled"===this.event.depositPayment?this.depositEnabled=!1:(this.depositEnabled=!0,this.depositPayment=this.event.depositPayment),null!==this.event.description&&this.event.description.startsWith("\x3c!-- Content --\x3e")&&(this.event.descriptionHtml=this.event.description),this.mounted=!0,this.executeUpdate=!1,this.dialogLoading=!1,this.isCabinet&&(this.activeColor="transparent"))},getZoomUsers:function(){var e=this,t=null;this.isCabinet&&(t=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.get(this.$root.getAjaxUrl+"/zoom/users",t).then(function(t){"data"in t.data&&"users"in t.data.data&&(e.zoomUsers=t.data.data.users)}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},clearValidation:function(){void 0!==this.$refs.event&&this.$refs.event.clearValidate()},getParsedEntity:function(e){var t=this,n=this.createEventPeriods();!this.originRecurring.until&&this.event.isRecurring&&(e=!0);var o=JSON.parse(JSON.stringify(this.event.settings));o.payments.wc.productId===this.$root.settings.payments.wc.productId&&delete o.payments.wc,this.event.depositPayment="disabled";this.monthDate?this.monthDate:this.event.recurring.monthDate&&this.event.recurring.monthDate;for(var i=this.customTickets.map(function(e){return{id:e.id%1!=0?null:e.id,name:e.name,price:e.price,spots:e.spots,enabled:e.enabled,dateRanges:[],translations:e.translations}}),r=function(e){for(var n=0;n<t.customTicketsDateRange.length;n++)if(t.customTicketsDateRange[n].tickets.map(function(e){return e.name}).includes(i[e].name)){var o=t.customTicketsDateRange[n].tickets.filter(function(t){return t.name===i[e].name});t.customTicketsDateRange[n].range&&t.customTicketsDateRange[n].range.end&&t.customTicketsDateRange[n].range.start&&i[e].dateRanges.push({enabled:o[0].enabled,endDate:k()(t.customTicketsDateRange[n].range.end).format("YYYY-MM-DD"),startDate:k()(t.customTicketsDateRange[n].range.start).format("YYYY-MM-DD"),price:o[0].price})}},a=0;a<i.length;a++)r(a);i.forEach(function(e){e.dateRanges=JSON.stringify(e.dateRanges)});var s=this.event.providers;if(this.currentUser&&"provider"===this.currentUser.type)if(this.event.organizerId===this.currentUser.id){var l=s.map(function(e){return e.id}).indexOf(this.event.organizerId);l>-1&&s.splice(l,1)}else if(!s.find(function(e){return e.id===t.currentUser.id})){var c=this.employees.find(function(e){return e.id===t.currentUser.id});s.push(c)}return{id:this.event.id,parentId:this.event.parentId,name:this.event.name,periods:n,utc:"UTC"===this.selectedTimeZone,timeZone:"UTC"===this.selectedTimeZone?null:this.selectedTimeZone,bookingOpens:this.event.bookingStartsNow?null:this.getDateString(this.event.bookingStartsDate)+" "+this.event.bookingStartsTime+":00",bookingCloses:this.event.bookingEndsAfter?null:this.getDateString(this.event.bookingEndsDate)+" "+this.event.bookingEndsTime+":00",bookingOpensRec:this.event.bookingOpensRec,bookingClosesRec:this.event.bookingClosesRec,recurring:null,bringingAnyone:this.event.bringingAnyone,bookMultipleTimes:this.event.bookMultipleTimes,maxCapacity:this.event.maxCapacity,maxCustomCapacity:this.maxCustomCapacity?this.maxCustomCapacityNum:null,maxExtraPeople:this.maxExtraPeopleEnabled?this.event.maxExtraPeople:null,price:this.event.price,tags:[],providers:s,description:this.event.description,gallery:this.event.gallery,color:1===this.event.colorType?this.event.selectedColor:this.event.customColor,show:this.event.show,locationId:null!==this.event.locationId?this.event.locationId:null,customLocation:null===this.event.locationId?this.event.customLocation:null,applyGlobally:e,settings:JSON.stringify(o),zoomUserId:this.event.zoomUserId,translations:this.event.translations,deposit:this.event.deposit,depositPayment:this.event.depositPayment,depositPerPerson:this.event.depositPerPerson,fullPayment:this.event.fullPayment,customPricing:this.customPricingEnabled,organizerId:this.event.organizerId,closeAfterMin:this.closeAfterMin?this.event.closeAfterMin:null,closeAfterMinBookings:this.event.closeAfterMinBookings,customTickets:i,notifyParticipants:this.event.notifyParticipants,aggregatedPrice:this.event.aggregatedPrice}},errorCallback:function(e){},closeDialog:function(){this.$emit("closeDialog")},addEventDate:function(){this.event.periods.push({id:null,eventId:null,range:{start:new Date,end:new Date},startTime:null,endTime:null,bookings:[]})},deleteEventDate:function(e){this.event.periods.splice(e,1)},changeEventColor:function(){},showDialogTranslate:function(e){this.$emit("showDialogTranslate",e)},getCycleLabels:function(){var e="";switch(this.event.recurring.cycle){case"daily":e="day";break;case"weekly":e="week";break;case"monthly":e="month";break;case"yearly":e="year"}return this.event.recurring.cycleInterval&&e?this.event.recurring.cycleInterval>1?this.$root.labels[e+"s"].toLowerCase():this.$root.labels[e].toLowerCase():""}},mounted:function(){this.isCabinet?this.currentUser=this.$store.state.cabinet.clonedProfile:this.getCurrentUser(),this.instantiateDialog(),this.$root.settings.zoom.enabled&&this.getZoomUsers()},updated:function(){this.instantiateDialog()},components:{EntitySettings:c.a,DialogActions:a.a,ContentBlock:x.a,Money:y.Money,Gallery:d.a},computed:{monthDateComp:{get:function(){return this.event.recurring.monthDate?this.event.recurring.monthDate:(this.monthDate||this.event&&this.event.periods&&this.event.periods[0]&&this.event.periods[0].range&&(this.monthDate=this.event.periods[0].range.start),this.monthDate)},set:function(e){this.monthDate=e}}}}},971:function(e,t,n){var o=n(335)(n(972),n(973),!1,null,null,null);e.exports=o.exports},972:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(696),i=n(795),r=n.n(i),a=n(812),s=n.n(a);t.default={mixins:[o.a],props:{label:null,gallery:null},data:function(){return{clonedGallery:null,draggableOptions:{animation:150,group:"people",handle:".am-drag-handle"}}},mounted:function(){this.clonedGallery=JSON.parse(JSON.stringify(this.gallery))},methods:{galleryPictureSelected:function(e,t){this.clonedGallery.push({id:0,pictureFullPath:e,pictureThumbPath:t,position:this.clonedGallery.length+1}),this.$emit("galleryUpdated",this.clonedGallery)},deleteGalleryImage:function(e){this.clonedGallery.splice(e,1);for(var t=0;t<this.clonedGallery.length;t++)this.clonedGallery[t].position=t+1;this.$emit("galleryUpdated",this.clonedGallery)},dropGalleryImage:function(e){if(e.newIndex!==e.oldIndex){var t=this;this.clonedGallery.forEach(function(e){e.position=t.clonedGallery.indexOf(e)+1})}this.$emit("galleryUpdated",this.clonedGallery)}},components:{PictureUpload:s.a,Draggable:r.a}}},973:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-gallery-images"},[n("div",{staticClass:"am-event-section-title"},[e._v(e._s(e.label))]),e._v(" "),n("el-row",{attrs:{gutter:24}},[n("draggable",{attrs:{options:e.draggableOptions},on:{end:e.dropGalleryImage},model:{value:e.clonedGallery,callback:function(t){e.clonedGallery=t},expression:"clonedGallery"}},e._l(e.clonedGallery,function(t,o){return n("el-col",{key:o,attrs:{sm:12}},[n("div",{staticClass:"am-gallery-image-wrapper"},[n("div",{staticClass:"am-gallery-image",style:{"background-image":"url("+t.pictureFullPath+")"}},[n("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteGalleryImage(o)}}})]),e._v(" "),n("div",{staticClass:"am-gallery-image-title"},[n("span",{staticClass:"am-drag-handle"},[n("img",{staticClass:"svg-amelia",attrs:{width:"20px",src:e.$root.getUrl+"public/img/burger-menu.svg"}})]),e._v(" "),n("span",[e._v(e._s(t.pictureFullPath.substring(t.pictureFullPath.lastIndexOf("/")+1)))])])])])}),1),e._v(" "),n("el-col",{attrs:{sm:12}},[n("div",{staticClass:"am-gallery-image-add"},[n("div",[n("picture-upload",{attrs:{multiple:!0,"edited-entity":null,"entity-name":"gallery"},on:{pictureSelected:e.galleryPictureSelected}})],1)])])],1)],1)},staticRenderFns:[]}},974:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-event-inner"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[n("div",{staticClass:"am-dialog-loader-content"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),n("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.event&&!e.dialogLoading?n("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.event.id}},[e.showHeader?n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:18}},[e.event&&0!==e.event.id?n("h2",[e._v(e._s(e.$root.labels.edit_event))]):n("h2",[e._v(e._s(e.$root.labels.new_event))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:6}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1):e._e(),e._v(" "),e.mounted?n("el-form",{ref:"event",attrs:{model:e.event,"label-position":"top"}},[n("el-tabs",{model:{value:e.defaultEventTab,callback:function(t){e.defaultEventTab=t},expression:"defaultEventTab"}},[n("el-tab-pane",{attrs:{label:e.$root.labels.event_details,name:"details"}},[n("el-form-item",{attrs:{prop:"name",rules:e.rules.name},on:{input:function(t){return e.clearValidation()}}},[e._v("\n "+e._s(e.$root.labels.event_name)+"\n "),e.isCabinet?e._e():n("div",{staticClass:"am-event-translate",on:{click:function(t){return e.showDialogTranslate("name")}}},[n("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")]),e._v(" "),n("el-input",{staticStyle:{"margin-top":"5px !important"},attrs:{placeholder:e.$root.labels.enter_event_name},on:{change:function(t){return e.trimProperty(e.event,"name")}},model:{value:e.event.name,callback:function(t){e.$set(e.event,"name",t)},expression:"event.name"}})],1),e._v(" "),n("div",{staticClass:"am-event-dates am-section-grey"},[e._l(e.event.periods,function(t,o){return n("div",{key:o,staticClass:"am-event-date"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:6}},[n("p",[e._v(e._s(e.$root.labels.event_period_dates))])]),e._v(" "),n("el-col",{staticClass:"v-calendar-column",attrs:{sm:16}},[n("el-form-item",{attrs:{prop:"periods."+o+".range",rules:e.rules.range}},[n("v-date-picker",{staticStyle:{"margin-bottom":"16px","background-color":"#ffffff"},attrs:{mode:"range","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"bottom","popover-align":e.screenWidth<768?"center":"right","show-day-popover":!1,attributes:[{dates:{start:e.getNowDate()},eventDateIndex:o}],"is-expanded":!1,"is-required":!1,"is-read-only":!0,"is-double-paned":!1,"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"available-dates":{start:e.getNowDate()}},on:{input:function(t){return e.setDisabledTicketRangeDates(null,!1)}},model:{value:t.range,callback:function(n){e.$set(t,"range",n)},expression:"period.range"}})],1)],1)],1),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:6}},[n("p",[e._v(e._s(e.$root.labels.event_period_time))])]),e._v(" "),n("el-col",{staticClass:"am-event-period-start",attrs:{sm:8}},[n("el-form-item",{attrs:{prop:"periods."+o+".startTime",rules:e.rules.startTime}},[n("el-time-select",{attrs:{"picker-options":e.getTimeSelectOptionsWithLimits(null,e.isCabinet?null:t.endTime),"popper-class":"am-dropdown-cabinet",size:"large"},model:{value:t.startTime,callback:function(n){e.$set(t,"startTime",n)},expression:"period.startTime"}})],1)],1),e._v(" "),n("el-col",{attrs:{sm:8}},[n("el-form-item",{attrs:{prop:"periods."+o+".endTime",rules:e.rules.endTime}},[n("el-time-select",{attrs:{"picker-options":e.getTimeSelectOptionsWithLimits(e.isCabinet?null:t.startTime,null),"popper-class":"am-dropdown-cabinet",size:"large"},model:{value:t.endTime,callback:function(n){e.$set(t,"endTime",n)},expression:"period.endTime"}})],1)],1)],1),e._v(" "),e.$root.settings.zoom.enabled&&t.zoomMeeting?n("el-row",{attrs:{gutter:10}},["customer"!==e.$root.settings.role?n("el-col",{attrs:{sm:12}},[n("p",[e._v(e._s(e.$root.labels.zoom_start_link))])]):e._e(),e._v(" "),"customer"!==e.$root.settings.role?n("el-col",{attrs:{sm:12}},[n("p",[n("a",{staticClass:"am-link",attrs:{href:t.zoomMeeting.startUrl}},[e._v(e._s(e.$root.labels.zoom_click_to_start))])])]):e._e(),e._v(" "),n("el-col",{attrs:{sm:12}},[n("p",[e._v(e._s(e.$root.labels.zoom_join_link))])]),e._v(" "),n("el-col",{attrs:{sm:12}},[n("p",[n("a",{staticClass:"am-link",attrs:{href:t.zoomMeeting.joinUrl}},[e._v(e._s(e.$root.labels.zoom_click_to_join))])])])],1):e._e(),e._v(" "),e.$root.settings.lessonSpace.enabled&&t.lessonSpace?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:12}},[n("p",[e._v(e._s(e.$root.labels.lesson_space_link))])]),e._v(" "),n("el-col",{attrs:{sm:12}},[n("p",[n("a",{staticClass:"am-link",attrs:{href:t.lessonSpace}},[e._v(e._s(e.$root.labels.lesson_space_join))])])])],1):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.event.periods.length>1&&0===t.bookings.length,expression:"event.periods.length > 1 && period.bookings.length === 0"}],staticClass:"am-delete-element disabled",on:{click:function(t){return e.deleteEventDate(o)}}},[n("i",{staticClass:"el-icon-minus"})])],1)}),e._v(" "),n("div",{staticClass:"am-add-event-date"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.addEventDate()}}},[e._v(e._s(e.$root.labels.add_date))])],1)],2),e._v(" "),n("el-popover",e._b({ref:"recurringPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-row",{directives:[{name:"popover",rawName:"v-popover:recurringPop",arg:"recurringPop"}],staticClass:"am-section-grey"},[n("el-checkbox",{attrs:{disabled:e.$root.isLite},on:{change:e.changeRecurringCycle},model:{value:e.event.isRecurring,callback:function(t){e.$set(e.event,"isRecurring",t)},expression:"event.isRecurring"}},[e._v(e._s(e.$root.labels.event_recurring_enabled))]),e._v(" "),e.event.isRecurring&&!e.$root.isLite?n("div",{staticClass:"am-recurring-event"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:10,md:10,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_recurring_period))])]),e._v(" "),n("el-col",{attrs:{lg:14,md:14,sm:24}},[n("el-form-item",{attrs:{prop:"recurringCycle",rules:e.rules.recurringCycle}},[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.$root.labels.select_repeat_period,"popper-class":"am-dropdown-cabinet",disabled:!(0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle)},model:{value:e.event.recurring.cycle,callback:function(t){e.$set(e.event.recurring,"cycle",t)},expression:"event.recurring.cycle"}},e._l(e.recurringPeriods,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:10,md:10,sm:24}},[n("p",[e._v(e._s(e.$root.labels.recurring_every))])]),e._v(" "),n("el-col",{attrs:{lg:14,md:14,sm:24}},[n("el-form-item",{attrs:{prop:"recurringInterval",rules:e.rules.recurringInterval}},[n("div",{staticClass:"am-recurring-event-interval"},[n("el-input-number",{staticStyle:{width:"150px"},attrs:{min:1,disabled:0!==e.event.id&&null!==e.originRecurring.cycle},model:{value:e.event.recurring.cycleInterval,callback:function(t){e.$set(e.event.recurring,"cycleInterval",t)},expression:"event.recurring.cycleInterval"}}),e._v(" "),n("span",{staticStyle:{"margin-left":"16px"}},[e._v(e._s(e.getCycleLabels()))])],1)])],1)],1),e._v(" "),0===e.event.id&&"monthly"===e.event.recurring.cycle||0!==e.event.id&&"each"===e.originRecurring.monthlyRepeat&&"monthly"===e.originRecurring.cycle?n("el-row",{attrs:{gutter:10}},[n("el-col",{staticClass:"text-center",attrs:{lg:10,md:10,sm:24}},[0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle?n("el-radio",{attrs:{label:"each"},model:{value:e.monthlyRepeat,callback:function(t){e.monthlyRepeat=t},expression:"monthlyRepeat"}},[e._v("\n "+e._s(e.$root.labels.recurring_each)+"\n ")]):n("p",[e._v("\n "+e._s(e.$root.labels.recurring_each)+"\n ")])],1),e._v(" "),n("el-col",{staticClass:"v-calendar-column",attrs:{lg:14,md:14,sm:24}},[n("el-form-item",["each"===e.monthlyRepeat&&(0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle)?n("v-date-picker",{attrs:{mode:"single","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":e.screenWidth<768?"bottom":"top","popover-align":(e.screenWidth,"center"),"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","is-expanded":!1,"is-required":!1,"is-double-paned":!1,"show-day-popover":!1,"input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"min-date":e.calculateMinDate(),"max-date":e.calculateMaxDate()},model:{value:e.monthDateComp,callback:function(t){e.monthDateComp=t},expression:"monthDateComp"}}):n("el-input",{attrs:{disabled:!0,value:e.event.recurring&&e.event.recurring.monthDate?e.getFrontedFormattedDate(e.getDatabaseFormattedDate(e.event.recurring.monthDate)):""}})],1)],1)],1):e._e(),e._v(" "),0===e.event.id&&"monthly"===e.event.recurring.cycle||0!==e.event.id&&"on"===e.originRecurring.monthlyRepeat&&"monthly"===e.originRecurring.cycle?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:10,md:10,sm:24}},[0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle?n("el-radio",{attrs:{label:"on"},model:{value:e.monthlyRepeat,callback:function(t){e.monthlyRepeat=t},expression:"monthlyRepeat"}},[e._v("\n "+e._s(e.$root.labels.recurring_on)+"\n ")]):n("p",[e._v(e._s(e.$root.labels.recurring_on))])],1),e._v(" "),n("el-col",{staticClass:"text-center",attrs:{lg:14,md:14,sm:24}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.monthlyWeekDayRepeat[0].label,"popper-class":"am-dropdown-cabinet",disabled:"each"===e.monthlyRepeat||!(0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle)},model:{value:e.monthlyOnRepeat,callback:function(t){e.monthlyOnRepeat=t},expression:"monthlyOnRepeat"}},e._l(e.monthlyWeekDayRepeat,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.weekDays[0].label,"popper-class":"am-dropdown-cabinet",disabled:"each"===e.monthlyRepeat||!(0===e.event.id||0!==e.event.id&&null===e.originRecurring.cycle)},model:{value:e.monthlyOnDay,callback:function(t){e.monthlyOnDay=t},expression:"monthlyOnDay"}},e._l(e.weekDays,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1)],1)],1):e._e(),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:10,md:10,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_recurring_until))])]),e._v(" "),n("el-col",{staticClass:"v-calendar-column",attrs:{lg:14,md:14,sm:24}},[n("el-form-item",{attrs:{prop:"recurringUntilDate",rules:e.rules.recurringUntilDate}},[n("v-date-picker",{attrs:{mode:"single","input-class":"el-input__inner","popover-visibility":"focus","is-expanded":!1,"is-required":!1,"is-double-paned":!1,"show-day-popover":!1,"popover-direction":e.screenWidth<768?"bottom":"top","popover-align":(e.screenWidth,"center"),"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"available-dates":{start:0===e.event.id?e.getNowDate():e.originRecurring.until}},on:{dayclick:e.changeBookingEndsDate},model:{value:e.event.recurring.until,callback:function(t){e.$set(e.event.recurring,"until",t)},expression:"event.recurring.until"}})],1)],1)],1)],1):e._e()],1),e._v(" "),n("div",{staticClass:"am-section-grey"},[n("el-checkbox",{model:{value:e.event.bookingStartsNow,callback:function(t){e.$set(e.event,"bookingStartsNow",t)},expression:"event.bookingStartsNow"}},[e._v(e._s(e.$root.labels.event_booking_opens_now))]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.event.bookingStartsNow,expression:"!event.bookingStartsNow"}],staticClass:"am-booking-starts"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:24}},[n("label",{staticClass:"el-form-item__label"},[e._v(e._s(e.$root.labels.event_booking_opens_on))])]),e._v(" "),n("el-col",{staticClass:"v-calendar-column",attrs:{sm:15}},[n("el-form-item",{attrs:{prop:"bookingStartsDate",rules:e.rules.bookingStartsDate}},[n("v-date-picker",{attrs:{"is-double-paned":!1,mode:"single","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"bottom","popover-align":e.screenWidth<768?"center":"left","is-expanded":!1,"is-required":!1,"show-day-popover":!1,"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"available-dates":{start:e.getNowDate()}},on:{dayclick:e.changeBookingStartsDate},model:{value:e.event.bookingStartsDate,callback:function(t){e.$set(e.event,"bookingStartsDate",t)},expression:"event.bookingStartsDate"}})],1)],1),e._v(" "),n("el-col",{attrs:{sm:9}},[n("el-form-item",{attrs:{prop:"bookingStartsTime",rules:e.rules.bookingStartsTime}},[n("el-time-select",{attrs:{size:"large","popper-class":"am-dropdown-cabinet","picker-options":e.getTimeSelectOptionsWithLimits(null,null)},model:{value:e.event.bookingStartsTime,callback:function(t){e.$set(e.event,"bookingStartsTime",t)},expression:"event.bookingStartsTime"}})],1)],1)],1)],1),e._v(" "),e.event.isRecurring?n("div",[n("el-checkbox",{attrs:{"true-label":"same","false-label":"calculate"},model:{value:e.event.bookingOpensRec,callback:function(t){e.$set(e.event,"bookingOpensRec",t)},expression:"event.bookingOpensRec"}},[e._v("\n "+e._s(e.$root.labels.apply_to_all)+"\n ")]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_booking_opens_apply)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1):e._e()],1),e._v(" "),n("div",{staticClass:"am-section-grey"},[n("el-checkbox",{model:{value:e.event.bookingEndsAfter,callback:function(t){e.$set(e.event,"bookingEndsAfter",t)},expression:"event.bookingEndsAfter"}},[e._v(e._s(e.$root.labels.event_booking_closes_after))]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.event.bookingEndsAfter,expression:"!event.bookingEndsAfter"}],staticClass:"am-booking-ends"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:24}},[n("label",{staticClass:"el-form-item__label"},[e._v(e._s(e.$root.labels.event_booking_closes_on))])]),e._v(" "),n("el-col",{staticClass:"v-calendar-column",attrs:{sm:15}},[n("el-form-item",{attrs:{prop:"bookingEndsDate",rules:e.rules.bookingEndsDate}},[n("v-date-picker",{attrs:{mode:"single","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"bottom","popover-align":e.screenWidth<768?"center":"left","is-double-paned":!1,"is-required":!1,"is-expanded":!1,"show-day-popover":!1,"tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","input-props":{class:"el-input__inner",readOnly:"readonly"},formats:e.vCalendarFormats,"available-dates":{start:e.getNowDate()}},on:{dayclick:e.changeBookingEndsDate},model:{value:e.event.bookingEndsDate,callback:function(t){e.$set(e.event,"bookingEndsDate",t)},expression:"event.bookingEndsDate"}})],1)],1),e._v(" "),n("el-col",{attrs:{sm:9}},[n("el-form-item",{attrs:{prop:"bookingEndsTime",rules:e.rules.bookingEndsTime}},[n("el-time-select",{attrs:{"popper-class":"am-dropdown-cabinet","picker-options":e.getTimeSelectOptionsWithLimits(null,null),size:"large"},model:{value:e.event.bookingEndsTime,callback:function(t){e.$set(e.event,"bookingEndsTime",t)},expression:"event.bookingEndsTime"}})],1)],1)],1)],1),e._v(" "),e.event.isRecurring?n("div",[n("el-checkbox",{attrs:{"true-label":"same","false-label":"calculate"},model:{value:e.event.bookingClosesRec,callback:function(t){e.$set(e.event,"bookingClosesRec",t)},expression:"event.bookingClosesRec"}},[e._v("\n "+e._s(e.$root.labels.apply_to_all)+"\n ")]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_booking_closes_apply)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1):e._e()],1),e._v(" "),n("div",{staticClass:"am-border-bottom"},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_select_address))])]),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-select",{attrs:{placeholder:e.$root.labels.select,"popper-class":"am-dropdown-cabinet",clearable:!0,value:null},model:{value:e.event.locationId,callback:function(t){e.$set(e.event,"locationId",t)},expression:"event.locationId"}},[n("el-option",{key:null,attrs:{label:this.$root.labels.event_custom_address,value:null}}),e._v(" "),e._l(e.locations,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),n("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.event.locationId,expression:"!event.locationId"}],attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_custom_address))])]),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-input",{attrs:{placeholder:e.$root.labels.enter_address},model:{value:e.event.customLocation,callback:function(t){e.$set(e.event,"customLocation",t)},expression:"event.customLocation"}})],1)],1)],1),e._v(" "),n("div",{staticClass:"am-border-bottom"},[e.$root.settings.zoom.enabled?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("p",[e._v(e._s(e.$root.labels.zoom_user))])]),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.$root.labels.zoom_user_placeholder,"popper-class":"am-dropdown-cabinet"},on:{change:function(t){return e.clearValidation()}},model:{value:e.event.zoomUserId,callback:function(t){e.$set(e.event,"zoomUserId",t)},expression:"event.zoomUserId"}},e._l(e.zoomUsers,function(e,t){return n("el-option",{key:t,attrs:{label:e.first_name+" "+e.last_name+" ("+e.email+")",value:e.id}})}),1)],1)],1):e._e(),e._v(" "),e.canManage()?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("span",{staticStyle:{"line-height":"40px"}},[e._v("\n "+e._s(e.$root.labels.event_organizer)+"\n ")]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_organizer_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-popover",e._b({ref:"organizerPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-select",{directives:[{name:"popover",rawName:"v-popover:organizerPop",arg:"organizerPop"}],attrs:{"value-key":"id",clearable:"",placeholder:e.$root.labels.select,"popper-class":"am-dropdown-cabinet",disabled:e.$root.isLite},model:{value:e.event.organizerId,callback:function(t){e.$set(e.event,"organizerId",t)},expression:"event.organizerId"}},e._l(e.employees,function(e){return n("el-option",{key:e.id,attrs:{label:e.firstName+" "+e.lastName,value:e.id}})}),1)],1)],1):e._e(),e._v(" "),e.currentUser&&"provider"===e.currentUser.type?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("span",{staticStyle:{"line-height":"40px"}},[e._v("\n "+e._s(e.$root.labels.event_organizer)+"\n ")]),e._v(" "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_organizer_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-checkbox",{staticStyle:{"line-height":"40px"},attrs:{value:e.event.organizerId===e.currentUser.id,disabled:0!==e.event.id&&e.event.organizerId&&e.event.organizerId!==e.currentUser.id},on:{change:function(t){return e.assignOrganizer(t)}}})],1)],1):e._e(),e._v(" "),e.canManage()?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_staff))])]),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-select",{attrs:{multiple:"","value-key":"id",placeholder:e.$root.labels.select,"popper-class":"am-dropdown-cabinet"},model:{value:e.event.providers,callback:function(t){e.$set(e.event,"providers",t)},expression:"event.providers"}},e._l(e.employees,function(e){return n("el-option",{key:e.id,attrs:{label:e.firstName+" "+e.lastName,value:e}})}),1)],1)],1):e._e(),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("p",[e._v(e._s(e.$root.labels.event_tags))])]),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-popover",e._b({ref:"tagsPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-select",{directives:[{name:"popover",rawName:"v-popover:tagsPop",arg:"tagsPop"}],attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$root.labels.event_tags_select_or_create,"popper-class":"am-dropdown-cabinet","no-data-text":e.$root.labels.event_tags_create,"collapse-tags":"",disabled:e.$root.isLite},on:{change:e.tagsChanged},model:{value:e.event.tags,callback:function(t){e.$set(e.event,"tags",t)},expression:"event.tags"}},e._l(e.tags,function(t,o){return t?n("el-option",{key:o,attrs:{label:t,value:t}}):e._e()}),1)],1)],1)],1),e._v(" "),"customer"!==this.$root.settings.role&&0!==e.event.id?n("el-form-item",{staticStyle:{"margin-top":"20px"}},[n("el-checkbox",{on:{change:function(t){return e.clearValidation()}},model:{value:e.event.notifyParticipants,callback:function(t){e.$set(e.event,"notifyParticipants",t)},expression:"event.notifyParticipants"}},[e._v("\n "+e._s(e.$root.labels.notify_attendees)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.notify_attendees_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1):e._e(),e._v(" "),n("content-block",{staticStyle:{"margin-top":"20px"},attrs:{label:e.$root.labels.description,entity:e.event,textProperty:"description",htmlProperty:"descriptionHtml",hasTranslation:!e.isCabinet,hasQuill:!0,textModeProp:!0,allowImage:!1},on:{showDialogTranslate:function(t){return e.showDialogTranslate("description")}}})],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.$root.labels.pricing,name:"pricing"}},[n("div",{staticClass:"am-pricing"},[n("el-row",{style:{padding:0},attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.price)+":\n ")]),e._v(" "),n("div",{staticClass:"el-input",class:{"is-disabled":e.customPricingEnabled},style:{marginBottom:"0px"}},[e.customPricingEnabled?n("money",e._b({staticClass:"el-input el-input__inner",on:{input:e.priceChanged},model:{value:e.customPrice,callback:function(t){e.customPrice=t},expression:"customPrice"}},"money",e.moneyComponentData,!1)):n("money",e._b({staticClass:"el-input el-input__inner",on:{input:e.priceChanged},model:{value:e.event.price,callback:function(t){e.$set(e.event,"price",t)},expression:"event.price"}},"money",e.moneyComponentData,!1))],1)])],1),e._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_max_capacity)+":\n ")]),e._v(" "),n("el-input-number",{attrs:{min:1,disabled:e.customPricingEnabled},model:{value:e.event.maxCapacity,callback:function(t){e.$set(e.event,"maxCapacity",t)},expression:"event.maxCapacity"}})],1)],1)],1),e._v(" "),e.event.maxCapacity>1||e.getTicketsSpots()>1||e.maxCustomCapacityNum>1?n("div",[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:24,md:24,sm:24}},[n("el-checkbox",{model:{value:e.event.bringingAnyone,callback:function(t){e.$set(e.event,"bringingAnyone",t)},expression:"event.bringingAnyone"}},[e._v(e._s(e.$root.labels.event_bringing_anyone))])],1)],1),e._v(" "),e.event.bringingAnyone?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:24,md:24,sm:24}},[n("el-checkbox",{model:{value:e.event.aggregatedPrice,callback:function(t){e.$set(e.event,"aggregatedPrice",t)},expression:"event.aggregatedPrice"}},[e._v(e._s(e.$root.labels.event_aggregated_price))])],1)],1):e._e(),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{lg:24,md:24,sm:24}},[n("el-checkbox",{model:{value:e.event.bookMultipleTimes,callback:function(t){e.$set(e.event,"bookMultipleTimes",t)},expression:"event.bookMultipleTimes"}},[e._v(e._s(e.$root.labels.event_book_more_than_once))])],1)],1)],1):e._e(),e._v(" "),n("div",[n("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{"margin-top":"20px"}},[n("el-popover",e._b({ref:"depositPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-row",{directives:[{name:"popover",rawName:"v-popover:depositPop",arg:"depositPop"}],attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{class:{"am-lite-disabled":e.$root.isLite},attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.deposit_enabled)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-popover",e._b({ref:"depositPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:e.depositEnabledChanged},model:{value:e.depositEnabled,callback:function(t){e.depositEnabled=t},expression:"depositEnabled"}})],1)],1),e._v(" "),e.depositEnabled?n("el-row",{staticClass:"am-service-deposit",attrs:{gutter:24}},[n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.deposit_payment)+":\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.deposit_payment_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-select",{attrs:{placeholder:"","popper-class":"am-dropdown-cabinet"},on:{change:function(t){return e.depositChanged()}},model:{value:e.depositPayment,callback:function(t){e.depositPayment=t},expression:"depositPayment"}},e._l(e.depositOptions,function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.deposit_amount+("fixed"===e.depositPayment?" ("+e.getCurrencySymbol()+")":"")+("percentage"===e.depositPayment?" (%)":"")+":")+"\n ")]),e._v(" "),"fixed"===e.depositPayment?n("div",{staticClass:"el-input"},[n("money",e._b({staticClass:"el-input__inner",on:{input:e.depositChanged},model:{value:e.event.deposit,callback:function(t){e.$set(e.event,"deposit",t)},expression:"event.deposit"}},"money",e.moneyComponentData,!1))],1):e._e(),e._v(" "),"percentage"===e.depositPayment?n("el-input-number",{attrs:{min:0,max:100},on:{input:function(t){return e.depositChanged()}},model:{value:e.event.deposit,callback:function(t){e.$set(e.event,"deposit",t)},expression:"event.deposit"}}):e._e()],1)],1)],1):e._e(),e._v(" "),(e.event.maxCapacity>1||e.getTicketsSpots()>1||e.maxCustomCapacityNum>1)&&"fixed"===e.depositPayment&&e.depositEnabled?n("el-row",[n("el-col",[n("el-checkbox",{model:{value:e.event.depositPerPerson,callback:function(t){e.$set(e.event,"depositPerPerson",t)},expression:"event.depositPerPerson"}},[e._v("\n "+e._s(e.$root.labels.deposit_per_person)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.deposit_by_the_number_of_people)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)],1):e._e(),e._v(" "),e.depositEnabled?n("el-row",{staticClass:"am-service-deposit",attrs:{gutter:24}},[n("el-col",{attrs:{span:24}},[n("el-checkbox",{model:{value:e.event.fullPayment,callback:function(t){e.$set(e.event,"fullPayment",t)},expression:"event.fullPayment"}},[e._v("\n "+e._s(e.$root.labels.allow_total_event_amount)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_customers_to_pay_total)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)],1):e._e()],1)]),e._v(" "),n("div",{staticClass:"am-setting-box am-switch-box",style:{marginTop:"24px",overflow:"visible"}},[n("el-popover",e._b({ref:"ticketsPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[n("PopLite")],1),e._v(" "),n("el-row",{directives:[{name:"popover",rawName:"v-popover:ticketsPop",arg:"ticketsPop"}],attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{class:{"am-lite-disabled":e.$root.isLite},attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.custom_pricing_enabled)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:e.switchTicketing},model:{value:e.customPricingEnabled,callback:function(t){e.customPricingEnabled=t},expression:"customPricingEnabled"}})],1)],1),e._v(" "),e.customPricingEnabled?n("el-form-item",[n("el-row",{style:{flexWrap:"wrap"}},[n("el-col",{staticClass:"am-event-ticket-row",style:{marginBottom:"12px"}},[n("el-row",{style:{borderBottom:"1px solid #E2E6EC",padding:"12px",marginBottom:"8px",wordBreak:"break-word"},attrs:{type:"flex",gutter:24}},[n("el-col",{attrs:{span:2}}),e._v(" "),n("el-col",{attrs:{span:7}},[n("div",[e._v("\n "+e._s(e.$root.labels.name)+"\n "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$root.labels.translate,placement:"top"}},[e.isCabinet?e._e():n("span",{staticClass:"am-event-translate-ticket",on:{click:function(t){return e.showDialogTranslate("name",e.customTickets)}}},[n("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}})])])],1)]),e._v(" "),n("el-col",{attrs:{span:6}},[e._v(e._s(e.$root.labels.price))]),e._v(" "),n("el-col",{attrs:{span:7}},[e._v(e._s(e.$root.labels.event_spots))])],1),e._v(" "),e._l(e.customTickets,function(t,o){return n("el-row",{key:o,staticClass:"am-section-grey",style:{padding:"12px",background:"#F9FAFB",marginBottom:"12px"},attrs:{type:"flex",align:"middle",gutter:24},model:{value:e.customTickets[o],callback:function(t){e.$set(e.customTickets,o,t)},expression:"customTickets[index]"}},[n("el-col",{attrs:{span:2}},[n("el-checkbox",{style:{marginBottom:"0px"},attrs:{disabled:e.isTicketDisabled(o)},model:{value:t.enabled,callback:function(n){e.$set(t,"enabled",n)},expression:"ticket.enabled"}})],1),e._v(" "),n("el-col",{attrs:{span:7}},[n("el-input",{style:{marginBottom:"0px"},attrs:{size:"small"},on:{input:function(t){return e.customTicketNameChanged(t,o)}},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"ticket.name"}})],1),e._v(" "),n("el-col",{attrs:{span:6}},[n("money",e._b({staticClass:"el-input el-input__inner",style:{marginBottom:"0px",padding:"0 6px",textAlign:"center",height:"auto"},on:{input:e.priceChanged},model:{value:t.price,callback:function(n){e.$set(t,"price",n)},expression:"ticket.price"}},"money",e.moneyComponentData,!1))],1),e._v(" "),n("el-col",{attrs:{span:7}},[n("el-input-number",{style:{marginBottom:"0px",textAlign:"center"},attrs:{size:"small",min:1,disabled:e.maxCustomCapacity},on:{change:function(e){t.spots=t.spots<=0?1:t.spots}},model:{value:t.spots,callback:function(n){e.$set(t,"spots",n)},expression:"ticket.spots"}})],1),e._v(" "),e.customTickets.length>1?n("el-col",{style:{display:"flex",justifyContent:"center"},attrs:{span:2}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.ticketIsBooked(t.id),expression:"ticketIsBooked(ticket.id)"}],staticClass:"am-delete-element",on:{click:function(t){return e.deleteCustomTicket(o)}}},[n("i",{staticClass:"el-icon-minus"})])]):e._e()],1)}),e._v(" "),n("el-row",{style:{padding:"12px 0"}},[n("el-col",[n("div",{staticClass:"am-add-element",on:{click:e.addCustomTicket}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",[e._v("\n "+e._s(e.$root.labels.add_ticket_category)+"\n ")])])])],1),e._v(" "),e.customTickets.length?n("el-row",{staticStyle:{padding:"12px 0"},attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:13}},[n("el-checkbox",{model:{value:e.maxCustomCapacity,callback:function(t){e.maxCustomCapacity=t},expression:"maxCustomCapacity"}},[e._v("\n "+e._s(e.$root.labels.event_max_capacity)+":\n ")])],1),e._v(" "),n("el-col",{attrs:{span:11}},[n("el-input-number",{staticStyle:{"text-align":"center"},attrs:{min:1,disabled:!e.maxCustomCapacity,size:"small"},model:{value:e.maxCustomCapacityNum,callback:function(t){e.maxCustomCapacityNum=t},expression:"maxCustomCapacityNum"}})],1)],1):e._e(),e._v(" "),n("el-row",{style:{borderBottom:e.customTickets.length?"1px solid #E2E6EC":"",marginBottom:"12px",wordBreak:"break-word"}},[n("div",{staticClass:"am-setting"},[n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.custom_pricing_warning,closable:!1}})],1)])],2)],1),e._v(" "),e.customTickets.length?n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.pricing_by_date_enabled)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:!e.event.periods[0].range},model:{value:e.customPricingByDateRangeEnabled,callback:function(t){e.customPricingByDateRangeEnabled=t},expression:"customPricingByDateRangeEnabled"}})],1)],1):e._e(),e._v(" "),e.event.periods[0].range?e._e():n("el-row",{style:{borderBottom:e.customTickets.length?"1px solid #E2E6EC":"",marginBottom:"12px",marginTop:"12px",wordBreak:"break-word"}},[n("div",{staticClass:"am-setting"},[n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.custom_pricing_date_warning,closable:!1}})],1)]),e._v(" "),e.customPricingByDateRangeEnabled?n("el-row",{staticStyle:{"margin-bottom":"50px"}},[e._l(e.customTicketsDateRange,function(t,o){return n("el-col",{key:o,staticClass:"am-section-grey",style:{background:"#F9FAFB",padding:"8px 12px",marginTop:0===o?"10px":"12px",overflow:"visible"}},[n("el-row",{style:{minHeight:"50px",borderBottom:"1px solid #E2E6EC",display:"flex",alignItems:"baseline",padding:"8px 0"}},[n("el-col",{style:{marginBottom:0,fontWeight:500},attrs:{span:5}},[e._v(e._s(e.$root.labels.event_date_range))]),e._v(" "),n("el-col",{staticClass:"v-calendar-column",staticStyle:{overflow:"visible"},attrs:{span:17}},[n("v-date-picker",{staticStyle:{"margin-bottom":"0"},attrs:{"is-double-paned":!1,mode:"range","popover-visibility":"focus","popover-direction":"bottom","popover-align":e.screenWidth<768?"center":"right","tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner",readOnly:"readonly"},"is-expanded":!1,"is-required":!1,"is-read-only":!0,"input-class":"el-input__inner",formats:e.vCalendarFormats,"min-date":e.getStartTicketRangeDate("date",!1),"max-date":e.getEndTicketRangeDate("date",!1),"disabled-dates":e.customTicketsDateRangesSelected},on:{input:function(t){return e.setDisabledTicketRangeDates(null,!1)},"popover-did-appear":function(t){return e.setDisabledTicketRangeDates(o,!0)}},model:{value:e.customTicketsDateRange[o].range,callback:function(t){e.$set(e.customTicketsDateRange[o],"range",t)},expression:"customTicketsDateRange[i].range"}})],1),e._v(" "),n("el-col",{attrs:{span:2}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.ticketIsBooked(t.id),expression:"ticketIsBooked(ticket.id)"}],staticClass:"am-delete-element",staticStyle:{"margin-left":"10px"},on:{click:function(t){return e.deleteCustomTicketDateRange(o)}}},[n("i",{staticClass:"el-icon-minus"})])])],1),e._v(" "),e._l(e.customTicketsDateRange[o].tickets,function(t,i){return n("el-row",{key:o+""+i,style:{minHeight:"50px",borderBottom:i<e.customTicketsDateRange[o].tickets.length-1?"1px solid #E2E6EC":"",display:"flex",alignItems:"center",padding:"8px 0"}},[n("el-col",{attrs:{span:5}},[e._v(e._s(t.name))]),e._v(" "),n("el-col",{attrs:{span:12}}),e._v(" "),n("el-col",{attrs:{span:5}},[n("money",e._b({staticClass:"el-input el-input__inner",style:{marginBottom:"0px",padding:"0 6px"},model:{value:e.customTicketsDateRange[o].tickets[i].price,callback:function(t){e.$set(e.customTicketsDateRange[o].tickets[i],"price",t)},expression:"customTicketsDateRange[i].tickets[index].price"}},"money",e.moneyComponentData,!1),[e._v("\n >\n ")])],1),e._v(" "),n("el-col",{attrs:{span:2}})],1)})],2)}),e._v(" "),n("el-col",{style:{marginTop:"18px"},attrs:{span:24}},[n("div",{staticClass:"am-add-element",on:{click:e.addCustomTicketDateRange}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",[e._v("\n "+e._s(e.$root.labels.event_add_date_range)+"\n ")])])]),e._v(" "),n("el-col",{style:{marginTop:"14px",wordBreak:"break-word"},attrs:{span:24}},[n("div",{staticClass:"am-tickets-warning"},[n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.event_date_range_warning,closable:!1}})],1)])],2):e._e()],1):e._e()],1),e._v(" "),e.event.maxCapacity>1||e.getTicketsSpots()>1||e.maxCustomCapacityNum>1?n("div",[n("div",{staticClass:"am-setting-box am-switch-box am-event-close-after",staticStyle:{"margin-top":"20px"}},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.event_close_after_min)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-switch",{model:{value:e.closeAfterMin,callback:function(t){e.closeAfterMin=t},expression:"closeAfterMin"}})],1)],1),e._v(" "),e.closeAfterMin?n("el-row",{staticStyle:{"margin-top":"16px"},attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",[n("el-radio",{attrs:{label:!1},on:{change:function(t){return e.clearValidation()}},model:{value:e.event.closeAfterMinBookings,callback:function(t){e.$set(e.event,"closeAfterMinBookings",t)},expression:"event.closeAfterMinBookings"}},[e._v("\n "+e._s(e.$root.labels.event_close_min_total)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_close_min_total_tt)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)],1):e._e(),e._v(" "),e.closeAfterMin?n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",[n("el-radio",{attrs:{label:!0},on:{change:function(t){return e.clearValidation()}},model:{value:e.event.closeAfterMinBookings,callback:function(t){e.$set(e.event,"closeAfterMinBookings",t)},expression:"event.closeAfterMinBookings"}},[e._v("\n "+e._s(e.$root.labels.event_close_min_bookings)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_close_min_bookings_tt)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1)],1):e._e(),e._v(" "),e.closeAfterMin?n("el-row",{staticClass:"am-service-deposit",attrs:{gutter:24}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:e.$root.labels.event_close_minimum+":"}},[n("el-input-number",{attrs:{min:1,max:e.getMaxCapacity(e.event)},on:{input:function(t){return e.clearValidation()}},model:{value:e.event.closeAfterMin,callback:function(t){e.$set(e.event,"closeAfterMin",t)},expression:"event.closeAfterMin"}})],1)],1)],1):e._e()],1)]):e._e(),e._v(" "),e.event.maxCapacity>1||e.getTicketsSpots()>1||e.maxCustomCapacityNum>1?n("div",[n("div",{staticClass:"am-setting-box am-switch-box am-event-close-after",staticStyle:{"margin-top":"20px"}},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_extra_people)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_extra_people_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeMaxExtraPeople},model:{value:e.maxExtraPeopleEnabled,callback:function(t){e.maxExtraPeopleEnabled=t},expression:"maxExtraPeopleEnabled"}})],1)],1),e._v(" "),e.maxExtraPeopleEnabled?n("el-row",{attrs:{type:"flex"}},[n("el-col",[n("el-form-item",{attrs:{label:"placeholder"}},[n("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.limit_extra_people_set)+":\n ")]),e._v(" "),n("el-input-number",{attrs:{min:0,max:e.getMaxCapacity()-1},on:{input:function(t){return e.clearValidation()}},model:{value:e.event.maxExtraPeople,callback:function(t){e.$set(e.event,"maxExtraPeople",t)},expression:"event.maxExtraPeople"}})],1)],1)],1):e._e()],1)]):e._e()],1)]),e._v(" "),n("el-tab-pane",{attrs:{label:e.$root.labels.customize,name:"customize"}},[n("BlockLite"),e._v(" "),e.showGallery?n("gallery",{class:{"am-lite-disabled":e.$root.isLite,"am-lite-container-disabled":e.$root.isLite},attrs:{gallery:e.event.gallery,label:e.$root.labels.event_gallery},on:{galleryUpdated:e.galleryUpdated}}):e._e(),e._v(" "),n("div",{staticClass:"am-event-colors",class:{"am-lite-disabled":e.$root.isLite,"am-lite-container-disabled":e.$root.isLite}},[n("div",{staticClass:"am-event-section-title"},[e._v("\n "+e._s(e.$root.labels.event_colors)+"\n ")]),e._v(" "),n("div",{staticClass:"am-event-color-selection"},[n("div",[n("el-radio",{attrs:{label:1,value:"1"},model:{value:e.event.colorType,callback:function(t){e.$set(e.event,"colorType",t)},expression:"event.colorType"}},[e._v(e._s(e.$root.labels.event_colors_preset))]),e._v(" "),n("div",{staticClass:"am-event-swatches am-event-swatches-first"},e._l(e.colors,function(t){return n("span",{key:t,class:{"color-active":t===e.event.selectedColor},style:"background-color: "+t,attrs:{"data-color":t},on:{click:e.changeEventColor}})}),0)],1),e._v(" "),n("div",[n("el-radio",{attrs:{label:2,value:"2"},model:{value:e.event.colorType,callback:function(t){e.$set(e.event,"colorType",t)},expression:"event.colorType"}},[e._v(e._s(e.$root.labels.event_colors_custom))]),e._v(" "),n("el-input",{staticClass:"am-event-custom-color",attrs:{disabled:1===e.event.colorType,placeholder:"000000"},model:{value:e.event.customColor,callback:function(t){e.$set(e.event,"customColor",t)},expression:"event.customColor"}}),e._v(" "),n("div",{staticClass:"am-event-swatches"},[n("span",{style:"background-color: "+e.event.customColor,attrs:{"data-color":e.event.customColor}})])],1)])]),e._v(" "),n("div",{class:{"am-lite-disabled":e.$root.isLite,"am-lite-container-disabled":e.$root.isLite}},[n("el-checkbox",{model:{value:e.event.show,callback:function(t){e.$set(e.event,"show",t)},expression:"event.show"}},[e._v(e._s(e.$root.labels.event_show_on_site))])],1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.$root.labels.settings,name:"settings"}},[n("BlockLite"),e._v(" "),n("entity-settings",{attrs:{settings:e.settings,paymentsSettings:e.event.settings.payments,generalSettings:e.event.settings.general,lessonSpaceSettings:e.event.settings.lessonSpace}})],1)],1)],1):e._e()],1):e._e(),e._v(" "),e.event&&!e.dialogLoading&&"customer"!==this.$root.settings.role?n("dialog-actions",{attrs:{formName:"event",urlName:"events",isNew:0===e.event.id,entity:e.event,getParsedEntity:e.getParsedEntity,haveSaveConfirmation:e.haveSaveConfirmation,getCalendarEvents:e.getCalendarEvents,loadSaveButton:e.checkCalendarEvents,calendarConflict:e.calendarConflict,hasIcons:!1,updateStash:!0,hasApplyGloballyVisibility:e.originRecurring.until,hasApplyGloballyDeletion:e.originRecurring.until&&("rejected"===e.event.status||e.hasPassed()),status:{on:"approved",off:"rejected"},buttonType:{status:"approved"===e.event.status?"danger":"primary",remove:"danger",duplicate:"primary"},buttonText:{action:{remove:e.$root.labels.event_delete,status:"approved"===e.event.status?e.$root.labels.event_cancel:e.$root.labels.event_open,duplicate:e.$root.labels.event_duplicate},confirm:{save:e.calendarConflict.enabled?{yes:e.$root.labels.confirm,no:e.$root.labels.cancel}:e.originRecurring.until?{yes:e.$root.labels.update_following,no:e.$root.labels.save_single}:null,status:e.originRecurring.until?{yes:"rejected"===e.event.status?e.$root.labels.open_following:e.$root.labels.cancel_following,no:e.$root.labels.save_single}:null,remove:e.originRecurring.until?{yes:e.$root.labels.delete_following,no:e.$root.labels.save_single}:null}},action:{haveAdd:!0,haveEdit:!0,haveStatus:e.canManage()&&!e.hasPassed(),haveRemove:!0===e.$root.settings.capabilities.canDelete&&("rejected"===e.event.status||e.hasPassed()),haveRemoveEffect:"rejected"!==e.event.status&&!e.hasPassed(),haveDuplicate:"approved"===e.event.status},message:{success:{save:e.$root.labels.event_saved,remove:e.$root.labels.event_deleted,show:e.$root.labels.event_opened,hide:e.$root.labels.event_canceled},confirm:{save:e.calendarConflict.enabled?e.$root.labels.confirm_save_conflict:e.originRecurring.until?e.$root.labels.confirm_save_following:null,saveDetails:!e.calendarConflict.enabled&&e.customPricingEnabled?e.$root.labels.confirm_save_following_2:null,remove:e.originRecurring.until?e.$root.labels.confirm_delete_following:e.$root.labels.confirm_delete,show:e.originRecurring.until?e.$root.labels.confirm_open_following:e.$root.labels.confirm_open,hide:e.originRecurring.until?e.$root.labels.confirm_cancel_following:e.$root.labels.confirm_cancel,duplicate:e.$root.labels.confirm_duplicate_event}}},on:{validationFailCallback:e.validationFailCallback,errorCallback:e.errorCallback,confirmCalendarConflict:e.confirmCalendarConflict}}):e._e()],1)},staticRenderFns:[]}}});
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings