FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
public
/
js
/
chunks
Edit File: amelia-booking-calendar-0d421e0e1e2bdd88e543.js
wpJsonpAmeliaBookingPlugin([5],{1048:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1049);var o=n(91),i=n(816),r=n(792),s=n(700),a=n(673),l=n(336),c=n(817),u=n.n(c),d=n(796),p=n.n(d),h=n(891),f=n.n(h),m=n(823),g=n.n(m),v=n(660),y=n(659),b=n(680),w=n.n(b),x=n(654),C=n(0),S=n.n(C),k=n(658),E=n(693),T=n.n(E),D=n(684),P=n(1050),R=n.n(P),O=n(936),I=n.n(O);t.default={mixins:[o.a,i.a,r.a,s.a,a.a,l.a,v.a,y.a,x.a,k.a,D.a],data:function(){return{customersNoShowCount:[],currentUser:null,employeesPreselectedCount:0,appointmentsFetchCounter:0,eventsFetchCounter:0,occupiedSlots:[],initCall:!0,globalBusinessHours:[],employeesResources:[],customerServices:[],customerEmployees:[],parsedEmployees:null,previousViewName:null,customer:null,resources:[],dialogEvent:!1,dialogAppointment:!1,dialogPayment:!1,events:[],appointmentsFetched:!1,eventsFetched:!1,appointmentsFetchedFiltered:!1,eventsFetchedFiltered:!1,form:new w.a,minTimeInSeconds:null,maxTimeInSeconds:null,params:{dates:[],locations:[],providers:[],services:[],source:"calendar"},selectedDate:S()().toDate(),selectedPaymentModalData:null}},created:function(){w.a.defaults.axios=this.$http,this.config.slotLabelFormat=this.config.timeFormat=this.config.views.timelineDay.slotLabelFormat=this.momentTimeFormat,this.config.listDayAltFormat=this.momentDateFormat,this.config.views.week.columnFormat="ddd "+this.momentDateFormat.replace(/Y/g,"").replace(/y/g,"").replace(/^([^a-zA-Z0-9])*/g,"").replace(/([^a-zA-Z0-9])*$/g,"")},mounted:function(){this.employeesPreselectedCount=this.$root.settings.general.calendarEmployeesPreselected,this.setInitialCustomers(),this.getCalendarOptions(!0);var e=this.$refs.calendar.fireMethod("getView");this.params.dates=[e.start.format("YYYY-MM-DD"),e.end.clone().subtract(1,"days").format("YYYY-MM-DD")],this.initVCalendar()},methods:{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,e.microsoftTeamsUrl=null,e.appleCalendarEventId=null}),setTimeout(function(){t.dialogEvent=!0},300)},saveCallback:function(){this.getCalendarOptions(!1)},showDialogNewCustomer:function(){this.customer=this.getInitCustomerObject(),this.dialogCustomer=!0},getCalendarOptions:function(e){this.options.fetched=!1;var t=this;this.fetchEntities(function(n){if(n){var o=[];t.options.entities.tags.forEach(function(e){-1===t.options.entities.tags.indexOf(e.name)&&o.push(e.name)}),t.options.entities.tags=o,t.setBookings(0),e&&(t.params.providers=t.employeesPreselectedCount>0?t.options.entities.employees.map(function(e){return e.id}).slice(0,t.employeesPreselectedCount):[]),!e||t.employeesPreselectedCount>-1?t.getCalendar():(t.appointmentsFetched=!0,t.appointmentsFetchedFiltered=!0,t.eventsFetched=!0,t.eventsFetchedFiltered=!0)}t.fetched=!0,t.options.fetched=!0},{types:["locations","employees","categories","custom_fields","tags","packages","resources","coupons"],page:"calendar",isFrontEnd:!1,isPanel:!1,dates:t.params.dates})},getEmployeeDaysOffDates:function(e){var t=[];return e.forEach(function(e){for(var n=e.repeat?S()(S()().format("YYYY")+"-"+S()(e.startDate,"YYYY-MM-DD").format("MM-DD"),"YYYY-MM-DD"):S()(e.startDate,"YYYY-MM-DD"),o=e.repeat?S()(S()().format("YYYY")+"-"+S()(e.endDate,"YYYY-MM-DD").format("MM-DD"),"YYYY-MM-DD"):S()(e.endDate,"YYYY-MM-DD");n.isSameOrBefore(o);)t.push(n.format("YYYY-MM-DD")),n.add(1,"days")}),t},getParsedEmployees:function(){for(var e=S()(this.$root.settings.slotDateConstraints.minDate,"YYYY-MM-DD"),t=S()(this.$root.settings.slotDateConstraints.maxDate,"YYYY-MM-DD"),n=JSON.parse(JSON.stringify(this.options.entities.employees)),o=this.$refs.calendar.fireMethod("getView"),i=o.start.clone(),r=o.end.clone().subtract(1,"days"),s=[],a=[];i.isSameOrBefore(r);)s.push(i.format("YYYY-MM-DD")),(i.isBefore(e)||i.isSameOrAfter(t))&&"customer"===this.$root.settings.role&&a.push(i.format("YYYY-MM-DD")),i.add(1,"days");a=_.intersection(a,s);var l=s.filter(function(e){return-1!==a.indexOf(e)}).map(function(e){return S()(e).day()}),c=this;return n.forEach(function(e){var t=_.intersection(c.getEmployeeDaysOffDates(e.dayOffList),s),n=s.filter(function(e){return-1!==t.indexOf(e)}).map(function(e){return S()(e).day()});e.specialDayList.forEach(function(n){for(var o=[],i=S()(n.startDate,"YYYY-MM-DD");i.isSameOrBefore(S()(n.endDate,"YYYY-MM-DD"));)o.push(i.format("YYYY-MM-DD")),i.add(1,"days");o=(o=_.intersection(o,s)).filter(function(e){return-1===t.indexOf(e)});var r=s.filter(function(e){return-1!==o.indexOf(e)}).map(function(e){return S()(e).day()}),a=e.weekDayList.map(function(e){return 7===e.dayIndex?0:e.dayIndex}),l=[];e.weekDayList.forEach(function(e){var t=7===e.dayIndex?0:e.dayIndex;-1!==r.indexOf(t)&&(e.regularEndTime=e.endTime,e.regularStartTime=e.startTime,e.endTime=n.periodList[n.periodList.length-1].endTime,e.startTime=n.periodList[0].startTime,e.periodList=n.periodList,e.timeOutList=[],l.push(t))}),r.forEach(function(t){-1===a.indexOf(t)&&-1===l.indexOf(t)&&e.weekDayList.push({id:null,dayIndex:0===t?7:t,startTime:n.periodList[0].startTime,endTime:n.periodList[n.periodList.length-1].endTime,periodList:n.periodList,timeOutList:[]})})});var o=[];e.weekDayList.forEach(function(e,t){-1!==s.map(function(e){return S()(e).day()}).indexOf(7===e.dayIndex?0:e.dayIndex)&&-1===n.indexOf(7===e.dayIndex?0:e.dayIndex)&&-1===l.indexOf(7===e.dayIndex?0:e.dayIndex)||o.push(t)});for(var i=o.length-1;i>=0;i--)e.weekDayList.splice(o[i],1)}),n},setMinMaxTime:function(e,t,n){var o=t.substring(0,16).split(" "),i=n.substring(0,16).split(" ");if(o[0]===i[0]){var r=e.getStringTimeInSeconds(o[1]);(null===e.minTimeInSeconds||r<e.minTimeInSeconds)&&(e.minTimeInSeconds=r);var s=e.getStringTimeInSeconds(i[1]);(null===e.maxTimeInSeconds||s>e.maxTimeInSeconds)&&(e.maxTimeInSeconds=s)}else e.minTimeInSeconds=0,e.maxTimeInSeconds=86400},reFetchResources:function(){this.appointmentsFetchedFiltered&&this.eventsFetchedFiltered&&this.$refs.calendar.fireMethod("refetchResources")},getEvents:function(e){var t=this,n=0===this.params.providers.length?this.options.entities.employees.map(function(e){return e.id}):this.params.providers;"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents&&(n=this.options.entities.employees.map(function(e){return e.id}));var o=this.$refs.calendar.fireMethod("getView"),i=JSON.parse(JSON.stringify(this.params));"agendaWeek"!==o.type&&"listWeek"!==o.type||(i.dates[0]=S()(i.dates[0]).subtract(14,"days").format("YYYY-MM-DD"));var r=i.dates[0]===i.dates[1]?[i.dates[0]]:i.dates;this.$http.get(this.$root.getAjaxUrl+"/events",{params:this.getAppropriateUrlParams(Object.assign(JSON.parse(JSON.stringify(i)),{providers:n,status:"approved",dates:r}))}).then(function(n){if(e===t.eventsFetchCounter){var o=t,i="listWeek"===o.$refs.calendar.fireMethod("getView").name?'style="display: inline; margin-left: 10px;"':"",s=S()(t.params.dates[0],"YYYY-MM-DD"),a=S()(t.params.dates[1]+" 23:59:59","YYYY-MM-DD HH:mm:ss");n.data.data.events.forEach(function(e){var t="";e.providers.forEach(function(e){t+="<div "+i+'><img src="'+o.pictureLoad(e,!0)+'">'+e.firstName.replace(/<\/?[^>]+(>|$)/g,"")+" "+e.lastName.replace(/<\/?[^>]+(>|$)/g,"")+"</div>"}),o.getExplodedPeriods(o.getImplodedPeriods(e.periods)).forEach(function(n){e.providers.forEach(function(i,l){if("timelineDay"===o.$refs.calendar.fireMethod("getView").name||"day"===o.$refs.calendar.fireMethod("getView").name||0===l){var c="";if(e.locationId){var u=o.getLocationById(e.locationId);c=u.address?u.address:u.name}var d=S()(n.periodStart,"YYYY-MM-DD HH:mm:ss"),p=S()(n.periodEnd,"YYYY-MM-DD HH:mm:ss");if(1!==r.length&&!d.isBetween(s,a)&&!p.isBetween(s,a))return;o.setMinMaxTime(o,n.periodStart,n.periodEnd),o.events.push({id:e.id,title:e.name.replace(/<\/?[^>]+(>|$)/g,""),bookings:e.bookings,start:d.format(),end:p.format(),color:o.shadeColor(e.color,.7),borderColor:e.color,customer:o.$root.labels.event,employeesInfo:'<div style="display: inline-block;">'+t+"</div>",location:c.replace(/<\/?[^>]+(>|$)/g,"")||e.customLocation&&e.customLocation.replace(/<\/?[^>]+(>|$)/g,""),status:e.status,eventOverlap:!1,editable:o.canWriteEvents(),resourceId:i.id.toString(),type:"event",icon:'<img style="float: right;" src="'+o.$root.getUrl+'public/img/event.svg">'}),o.resources.push({id:i.id.toString(),title:i.firstName.replace(/<\/?[^>]+(>|$)/g,"")+" "+i.lastName.replace(/<\/?[^>]+(>|$)/g,"")})}})})}),t.appointmentsFetched&&t.setHours(),t.eventsFetched=!0,t.eventsFetchedFiltered=!0,t.reFetchResources()}}).catch(function(e){console.log(e.message),t.eventsFetched=!0,t.eventsFetchedFiltered=!0})},getAppointments:function(e){var t=this;"provider"===this.$root.settings.role&&1===this.options.entities.employees.length&&this.options.entities.employees[0].timeZone&&(this.params.timeZone=this.options.entities.employees[0].timeZone),this.$http.get(this.$root.getAjaxUrl+"/appointments",{params:this.getAppropriateUrlParams(this.params)}).then(function(n){if(e===t.appointmentsFetchCounter){t.currentUser=n.data.data.currentUser,"admin"!==t.$root.settings.role&&t.setMissingServices(n.data.data.appointments);var o=t,i={};if("customer"===t.$root.settings.role)t.useSortedDateStrings(Object.keys(n.data.data.appointments)).forEach(function(e){n.data.data.appointments[e].appointments.forEach(function(t){t.bookings.forEach(function(o){var r=JSON.parse(JSON.stringify(t));r.bookings=[o],e in i||(i[e]=n.data.data.appointments[e],i[e].appointments=[]),i[e].appointments.push(r)})})});else{var r=t.options.entities.customers.map(function(e){return parseInt(e.id)}),s=t.options.entities.customers;t.useSortedDateStrings(Object.keys(n.data.data.appointments)).forEach(function(e){n.data.data.appointments[e].appointments.forEach(function(e){e.checked=!1,e.bookings.forEach(function(e){-1===r.indexOf(parseInt(e.customer.id))&&(r.push(e.customer.id),s.push(e.customer))})})}),t.options.entities.customers=Object.values(s.sort(function(e,t){return e.firstName.toLowerCase()>t.firstName.toLowerCase()?1:-1})),i=n.data.data.appointments}if(t.useSortedDateStrings(Object.keys(i)).forEach(function(e){for(var t=0;t<i[e].appointments.length;t++)-1===["rejected","canceled","no-show"].indexOf(i[e].appointments[t].status)&&("customer"!==o.$root.settings.role||"customer"===o.$root.settings.role&&-1===["rejected","canceled","no-show"].indexOf(i[e].appointments[t].bookings[0].status))&&function(){var n=i[e].appointments[t],r=o.options.entities.employees.find(function(e){return e.id===n.providerId}).serviceList.find(function(e){return e.id===n.serviceId}),s=o.getCustomerInfo(n.bookings[0]),a=o.getProviderById(n.providerId),l=o.getLocationById(n.locationId?n.locationId:a.locationId);void 0===r&&(r=o.getServiceById(n.serviceId)),"customer"===o.$root.settings.role&&(-1===o.customerServices.indexOf(n.serviceId)&&o.customerServices.push(n.serviceId),-1===o.customerEmployees.indexOf(n.providerId)&&o.customerEmployees.push(n.providerId)),o.setMinMaxTime(o,n.bookingStart,n.bookingEnd),o.events.push({id:n.id,bookings:n.bookings,serviceId:r.id,timeBefore:null===r.timeBefore?0:r.timeBefore,timeAfter:null===r.timeAfter?0:r.timeAfter,title:r.name.replace(/<\/?[^>]+(>|$)/g,""),start:S()(n.bookingStart,"YYYY-MM-DD HH:mm").format(),end:S()(n.bookingEnd,"YYYY-MM-DD HH:mm").format(),color:o.shadeColor(r.color,.7),borderColor:r.color,customer:n.bookings.length>1?o.$root.labels.group_booking:s.firstName.replace(/<\/?[^>]+(>|$)/g,"")+" "+s.lastName.replace(/<\/?[^>]+(>|$)/g,""),employeeId:a.id,employeesInfo:'<div style="display: inline-block;"><div><img src="'+o.pictureLoad(a,!0)+'">'+a.firstName.replace(/<\/?[^>]+(>|$)/g,"")+" "+a.lastName.replace(/<\/?[^>]+(>|$)/g,"")+"</div></div>",location:l?l.address?l.address.replace(/<\/?[^>]+(>|$)/g,""):l.name.replace(/<\/?[^>]+(>|$)/g,""):"",status:n.status,eventOverlap:!1,resourceId:a.id.toString(),editable:o.canWriteAppointments()&&("customer"!==o.$root.settings.role||!n.past&&n.cancelable&&n.cancelable),past:n.past,cancelable:n.cancelable,type:"appointment",icon:""})}()}),t.eventsFetched&&t.setHours(),"customer"===t.$root.settings.role){o.occupiedSlots=n.data.data.occupied;var a=function(e){o.occupiedSlots[e].forEach(function(t){o.createBackgroundEvent(!(1===o.customerEmployees.length),e,t.startTime,t.endTime,t.employeeId,[])})};for(var l in o.occupiedSlots)a(l);t.createEmployeesBackgroundEvents(t.parsedEmployees)}t.appointmentsFetched=!0,t.appointmentsFetchedFiltered=!0,t.customersNoShowCount=n.data.data.customersNoShowCount,t.reFetchResources()}}).catch(function(e){t.appointmentsFetched=!0,t.appointmentsFetchedFiltered=!0})},setHours:function(){var e=this;this.parsedEmployees="customer"!==this.$root.settings.role?this.getParsedEmployees():this.getParsedEmployees().filter(function(t){return-1!==e.customerEmployees.indexOf(t.id)}),this.createResourcesForScheduler(this.parsedEmployees),this.setGlobalBusinessHours(this.parsedEmployees)},getCalendar:function(){var e=this;this.events=[],this.minTimeInSeconds=null,this.maxTimeInSeconds=null,this.appointmentsFetched=!1,this.eventsFetched=!1,this.appointmentsFetchedFiltered=!1,this.eventsFetchedFiltered=!1,Object.keys(this.params).forEach(function(t){return!e.params[t]&&0!==e.params[t]&&delete e.params[t]}),this.resources=[],this.selectedDate=S()(this.params.dates[0],"YYYY-MM-DD").toDate(),this.appointmentsFetchCounter++,this.eventsFetchCounter++,this.getAppointments(this.appointmentsFetchCounter),this.getEvents(this.eventsFetchCounter)},callViewRender:function(e){if(this.params.dates.length>0){var t=e.start.format("YYYY-MM-DD"),n=e.end.clone().subtract(1,"days").format("YYYY-MM-DD");S()(t).isBetween(this.params.dates[0],this.params.dates[1],null,"[]")&&S()(n).isBetween(this.params.dates[0],this.params.dates[1],null,"[]")&&this.previousViewName===e.name||(this.previousViewName=e.name,this.params.dates=[t,n],this.initCall||this.filterData(),this.initCall=!1)}},filterData:function(){this.getCalendarOptions(!1)},eventSelected:function(e){if("appointment"===e.type){if(!this.canWriteAppointments(e.employeeId)||!e.editable)return;this.showDialogEditAppointment(e.id)}if("event"===e.type){if(!this.canWriteEvents()||!e.editable)return;this.showDialogEditEvent(e.id)}},eventRender:function(e,t,n){if("timelineDay"!==n.name&&"fake"!==e.type&&(t.find(".fc-content").prepend('<span class="am-calendar-customer">'+e.customer+e.icon+"</span>"),t.find(".fc-title").prepend('<span class="am-calendar-status '+e.status+'"></span>'),t.find(".fc-content").append('<div class="flexed-between"><span class="am-calendar-employee">'+e.employeesInfo+"</span></div>")),"listWeek"!==n.name&&"fake"!==e.type){var o='<div class="am-tooltip el-tooltip__popper is-light"><span class="am-tooltip-color" style="background-color:'+e.borderColor+';"></span> <span class="am-calendar-status '+e.status+'"></span><h4>'+e.customer+"</h4><p>"+e.start.format(this.momentTimeFormat)+" - "+e.end.format(this.momentTimeFormat)+"</p><p>"+e.title+"</p>",i=e.editable?'<button type="button" class="el-button el-button--default"><span>'+this.$root.labels.edit+"</span></button>":"";o+=void 0!==e.location&&e.location&&""!==e.location?'<p icon="el-icon-location" class="am-tooltip-address">'+e.location+"</p>":"",o+='<div class="flexed-between"><h4>'+e.employeesInfo+"</h4>"+i+"</div></div>",t.append(o)}if("listWeek"===n.name){var r=t.find(".fc-list-item-time").html(),s=t.find(".fc-list-item-title").html();t.find(".fc-list-item-time").html(r+'<span class="am-calendar-list-customer-name">'+e.customer+"</span>"),t.find(".fc-list-item-title").html(s+'<span class="am-calendar-employee">'+e.employeesInfo+'</span><span class="am-calendar-status '+e.status+'"></span>')}},eventDrop:function(e,t,n){var o=this;if("event"!==e.type){var i=e,r=i.start.format("YYYY-MM-DD"),s=JSON.parse(JSON.stringify(this.getProviderById(i.employeeId))),a=i.start.isoWeekday(),l=s.weekDayList.find(function(e){return e.dayIndex===a}),c=i.start.clone().subtract(i.timeBefore,"seconds"),u=i.end.clone().add(i.timeAfter,"seconds"),d=c.format("HH:mm:ss"),p="00:00:00"===u.format("HH:mm:ss")?"24:00:00":u.format("HH:mm:ss"),h=c.format("YYYY-MM-DD HH:mm"),f=u.format("YYYY-MM-DD HH:mm"),m=S()().diff(S()(h),"seconds")>=0;s.specialDayList.forEach(function(e){if(i.start.isSameOrAfter(S()(e.startDate+" 00:00:00","YYYY-MM-DD HH:ii:ss"))&&i.start.isSameOrBefore(S()(e.endDate+" 24:00:00","YYYY-MM-DD HH:ii:ss"))){for(var t=[],n=S()(e.startDate,"YYYY-MM-DD");n.isSameOrBefore(S()(e.endDate,"YYYY-MM-DD"));)t.push(n.format("YYYY-MM-DD")),n.add(1,"days");-1!==t.indexOf(r)&&e.periodList.length&&(l={startTime:e.periodList[0].startTime,endTime:e.periodList[0].endTime,periodList:e.periodList,timeOutList:[],dayIndex:a})}});var g=void 0!==l&&S()(d,"HH:mm:ss").isBetween(S()(l.startTime,"HH:mm:ss"),S()(l.endTime,"HH:mm:ss"),null,"[)")&&S()(p,"HH:mm:ss").isBetween(S()(l.startTime,"HH:mm:ss"),S()(l.endTime,"HH:mm:ss"),null,"(]");-1!==this.getEmployeeDaysOffDates(s.dayOffList).indexOf(r)&&(g=!1);var v=!1,y=!0;if(void 0!==l){var b=[];l.periodList.forEach(function(e){0!==e.periodServiceList.length&&-1===e.periodServiceList.map(function(e){return e.serviceId}).indexOf(i.serviceId)||b.push({startTime:e.startTime,endTime:e.endTime})});for(var _=0;_<b.length;_++)_<b.length-1&&b[_].endTime===b[_+1].startTime&&(b[_+1].startTime=b[_].startTime,b.splice(_,1));l.periodList.length?b.forEach(function(e){S()(d,"HH:mm:ss").isSameOrAfter(S()(e.startTime,"HH:mm:ss"))&&S()(p,"HH:mm:ss").isSameOrBefore(S()(e.endTime,"HH:mm:ss"))&&(y=!1)}):y=!1;for(var w=0;w<l.timeOutList.length;w++)(S()(d,"HH:mm:ss").isBetween(S()(l.timeOutList[w].startTime,"HH:mm:ss"),S()(l.timeOutList[w].endTime,"HH:mm:ss"),null,"[)")||S()(p,"HH:mm:ss").isBetween(S()(l.timeOutList[w].startTime,"HH:mm:ss"),S()(l.timeOutList[w].endTime,"HH:mm:ss"),null,"(]")||S()(l.timeOutList[w].startTime,"HH:mm:ss").isBetween(S()(d,"HH:mm:ss"),S()(p,"HH:mm:ss"),null,"[)")||S()(l.timeOutList[w].endTime,"HH:mm:ss").isBetween(S()(d,"HH:mm:ss"),S()(p,"HH:mm:ss"),null,"(]"))&&(v=!0)}var x=this.$refs.calendar.fireMethod("clientEvents",function(e){var t=e.start.clone().subtract(e.timeBefore,"seconds").format("YYYY-MM-DD HH:mm"),n=e.end.clone().add(e.timeAfter,"seconds").format("YYYY-MM-DD HH:mm");return e.employeeId===i.employeeId&&i.id!==e.id&&(S()(h).isBetween(t,n,null,"[)")||S()(f).isBetween(t,n,null,"(]")||S()(t).isBetween(h,f,null,"[)")||S()(n).isBetween(h,f,null,"(]"))}),C=!1;if("customer"===this.$root.settings.role){for(var k in this.occupiedSlots)k===h&&this.occupiedSlots[k].forEach(function(e){(S()(d,"HH:mm:ss").isBetween(S()(e.startTime,"HH:mm:ss"),S()(e.endTime,"HH:mm:ss"),null,"[)")||S()(p,"HH:mm:ss").isBetween(S()(e.startTime,"HH:mm:ss"),S()(e.endTime,"HH:mm:ss"),null,"(]"))&&(C=!0)})}if(x=this.$root.settings.roles.allowAdminBookOverApp&&"admin"===this.$root.settings.role?[]:x,!this.canWriteAppointments(i.employeeId)||m||!g||v||0!==x.length||y||C){if(m)var E=this.$root.labels.appointment_drag_past;else E=g?v?this.$root.labels.appointment_drag_breaks:y?this.$root.labels.appointment_drag_out_schedule:this.$root.labels.appointment_drag_exist:this.$root.labels.appointment_drag_working_hours;this.notify(this.$root.labels.error,E,"error"),n()}else{var T=i.start.clone();T.subtract(t),this.$confirm(this.$root.labels.appointment_change_time+'<br><div class="am-old-time"><div><i class="el-icon-date"></i> '+this.getFrontedFormattedDate(T)+'</div><div><i class="el-icon-time"></i> '+this.getFrontedFormattedTime(T)+'</div></div><div class="am-new-time"><div><i class="el-icon-date"></i> '+this.getFrontedFormattedDate(i.start)+'</div><div><i class="el-icon-time"></i> '+this.getFrontedFormattedTime(i.start)+"</div></div>","Warning",{confirmButtonText:this.$root.labels.confirm,cancelButtonText:this.$root.labels.cancel,type:"warning",center:!0,dangerouslyUseHTMLString:!0}).then(function(){o.appointmentsFetchedFiltered=!1;var e="customer"===o.$root.settings.role?"/bookings/reassign/":"/appointments/time/",t="customer"===o.$root.settings.role?i.bookings[0].id:i.id,r={bookingStart:i.start.format("YYYY-MM-DD HH:mm")};"provider"===o.$root.settings.role&&o.$root.settings.roles.allowWriteAppointments&&o.options.entities.employees[0].timeZone&&(r.timeZone=o.options.entities.employees[0].timeZone),o.$http.post(""+o.$root.getAjaxUrl+e+t,r).then(function(e){o.appointmentsFetchedFiltered=!0,o.notify(o.$root.labels.success,o.$root.labels.appointment_rescheduled,"success")}).catch(function(e){o.appointmentsFetchedFiltered=!0;var t=o;setTimeout(function(){"timeSlotUnavailable"in e.response.data.data&&!0===e.response.data.data.timeSlotUnavailable&&t.notify(t.$root.labels.error,t.$root.labels.time_slot_unavailable,"error"),"customerAlreadyBooked"in e.response.data.data&&!0===e.response.data.data.customerAlreadyBooked&&t.notify(t.$root.labels.error,t.$root.labels.customer_already_booked_app,"error"),"rescheduleBookingUnavailable"in e.response.data.data&&!0===e.response.data.data.rescheduleBookingUnavailable&&t.notify(t.$root.labels.error,t.$root.labels.booking_reschedule_exception,"error")},200),n()})}).catch(function(){n()})}}else n()},shadeColor:function(e,t){var n=parseInt(e.slice(1),16),o=t<0?0:255,i=t<0?-1*t:t,r=n>>16,s=n>>8&255,a=255&n;return"#"+(16777216+65536*(Math.round((o-r)*i)+r)+256*(Math.round((o-s)*i)+s)+(Math.round((o-a)*i)+a)).toString(16).slice(1)},selectAllInCategory:function(e){var t=this.getCategoryServices(e).map(function(e){return e.id});_.isEqual(_.intersection(t,this.params.services),t)?this.params.services=_.difference(this.params.services,t):this.params.services=_.uniq(this.params.services.concat(t)),this.filterData()},filterEmployees:function(e){var t=this.params.providers.indexOf(e.id);-1!==t?this.params.providers.splice(t,1):this.params.providers.push(e.id),this.filterData()},filterAllEmployees:function(){this.employeesPreselectedCount=0,0!==this.params.providers.length&&(this.params.providers=[],this.filterData())},createResourcesForScheduler:function(e){var t=this;this.employeesResources=[];for(var n=0;n<e.length;n++){for(var o=[],i=function(i){var r=e[n].weekDayList[i],s=7===r.dayIndex?[0]:[r.dayIndex];e[n].id in t.employeesResources||(t.employeesResources[e[n].id]={}),s in t.employeesResources[e[n].id]||(t.employeesResources[e[n].id][s]={scheduled:[],unavailable:[]});var a=[],l=[];if(r.periodList.length>0)for(var c=0;c<r.periodList.length;c++){0!==c&&r.periodList[c-1].endTime!==r.periodList[c].startTime&&a.push({startTime:r.periodList[c-1].endTime,endTime:r.periodList[c].startTime});var u=r.periodList[c].periodServiceList.map(function(e){return e.serviceId});u.length>0&&l.push({start:r.periodList[c].startTime,end:r.periodList[c].endTime,services:u})}if(r.timeOutList.length>0)for(var d=0;d<r.timeOutList.length;d++)a.push({startTime:r.timeOutList[d].startTime,endTime:r.timeOutList[d].endTime});var p=[];if(a.length){a=a.sort(function(e,t){return S()(e.startTime,"HH:mm:ss").diff(S()().startOf("day"),"seconds")-S()(t.startTime,"HH:mm:ss").diff(S()().startOf("day"),"seconds")}),p.push(a.shift());for(var h=0;h<a.length;h++){var f=p[p.length-1],m=S()(f.endTime,"HH:mm:ss").diff(S()().startOf("day"),"seconds"),g=S()(a[h].startTime,"HH:mm:ss").diff(S()().startOf("day"),"seconds"),v=S()(a[h].endTime,"HH:mm:ss").diff(S()().startOf("day"),"seconds");m<g?p.push(a[h]):m<v&&(f.endTime=a[h].endTime,p.pop(),p.push(f)),p[p.length-1].startTime===p[p.length-1].endTime&&p.pop()}for(var y in p)t.employeesResources[e[n].id][s].unavailable.push({start:p[y].startTime,end:p[y].endTime});for(var b=0;b<p.length;b++){var _=p[b].startTime,w=p[b].endTime;0===b&&o.push({dow:s,start:r.startTime,end:_}),o.push({dow:s,start:w,end:b+1===p.length?r.endTime:p[b+1].startTime})}}else o.push({dow:s,start:r.startTime,end:r.endTime});var x=[];l.forEach(function(e){var t=e.start,n=e.end,o=[];for(var i in p){var r=p[i].startTime,s=p[i].endTime;S.a.duration(r)<S.a.duration(t)&&S.a.duration(s)>S.a.duration(t)&&S.a.duration(s)<S.a.duration(n)&&(t=s),S.a.duration(r)>S.a.duration(t)&&S.a.duration(s)<S.a.duration(n)&&o.push({startTime:r,endTime:s}),S.a.duration(r)>S.a.duration(t)&&S.a.duration(r)<S.a.duration(n)&&S.a.duration(s)>S.a.duration(n)&&(n=r)}if(o.length){x.push({parts:[],services:e.services}),x[x.length-1].parts.push({start:t,end:o[0].startTime});for(var a=0;a<o.length;a++)0!==a&&x[x.length-1].parts.push({start:o[a-1].endTime,end:o[a].startTime});x[x.length-1].parts.push({start:o[o.length-1].endTime,end:n})}else x.push({parts:[{start:t,end:n}],services:e.services})}),t.employeesResources[e[n].id][s].scheduled=x},r=0;r<e[n].weekDayList.length;r++)i(r);o.length&&this.resources.push({id:e[n].id.toString(),title:e[n].firstName.replace(/<\/?[^>]+(>|$)/g,"")+" "+e[n].lastName.replace(/<\/?[^>]+(>|$)/g,""),businessHours:o})}},initVCalendar:function(){var e=document.getElementsByClassName("fc-center");if(e.length){var t=document.getElementById("am-calendar-picker");e[0].addEventListener("click",function(){e[0].className.indexOf("am-datepicker-active")<0?(t.style.opacity="1",t.style.zIndex="11",e[0].className+=" am-datepicker-active"):(t.style.opacity="0",t.style.zIndex="0",e[0].classList.remove("am-datepicker-active"))})}},selectDay:function(){null!==this.selectedDate&&this.$refs.calendar.fireMethod("gotoDate",this.selectedDate),document.getElementsByClassName("fc-center")[0].click()},setGlobalBusinessHours:function(e){var t=[],n=S.a.duration("24:00:00"),o=S.a.duration("00:00:00");if(0!==this.params.providers.length){for(var i=[],r=0;r<e.length;r++)-1===_.indexOf(this.params.providers,e[r].id)&&i.push(e[r]);e=_.difference(e,i)}for(var s=0;s<e.length;s++)for(var a=8,l=0;l<e[s].weekDayList.length;l++){var c=e[s].weekDayList[l];if(void 0===t[c.dayIndex]&&(t[c.dayIndex]={}),"regularStartTime"in c&&S.a.duration(c.regularStartTime)<n&&(n=S.a.duration(c.regularStartTime)),S.a.duration(c.startTime)<n&&(n=S.a.duration(c.startTime)),"regularEndTime"in c&&S.a.duration(c.regularEndTime)>o&&(o=S.a.duration(c.regularEndTime)),S.a.duration(c.endTime)>o&&(o=S.a.duration(c.endTime)),(void 0===t[c.dayIndex].start||S.a.duration(c.startTime)<t[c.dayIndex].start)&&(t[c.dayIndex].start=S.a.duration(c.startTime)),(void 0===t[c.dayIndex].end||S.a.duration(c.endTime)>t[c.dayIndex].end)&&(t[c.dayIndex].end=S.a.duration(c.endTime)),c.timeOutList.length){var u=c.timeOutList.sort(function(e,t){return S.a.duration(e.startTime).asMilliseconds()-S.a.duration(t.startTime).asMilliseconds()});t[c.dayIndex]={start:S.a.duration(c.startTime),end:S.a.duration(u[0].startTime),dow:[7===c.dayIndex?0:c.dayIndex]};for(var d=0;d<c.timeOutList.length;d++){var p=u[d].endTime,h=d===c.timeOutList.length-1?c.endTime:u[d+1].startTime;t[a]={start:S.a.duration(p),end:S.a.duration(h),dow:[7===c.dayIndex?0:c.dayIndex]},a++}}t[c.dayIndex].dow=7===c.dayIndex?[0]:[c.dayIndex]}"month"===this.$refs.calendar.fireMethod("getView").name||0===t.length?(n=S.a.duration("00:00:00"),o=S.a.duration("24:00:00"),t={dow:[0,1,2,3,4,5,6],start:S.a.duration("00:00:00"),end:S.a.duration("00:00:00")}):null!==this.minTimeInSeconds&&null!==this.maxTimeInSeconds&&(this.minTimeInSeconds<n.asSeconds()&&(n=S.a.duration(this.secondsToTimeSelectStep(this.minTimeInSeconds>=3600?this.minTimeInSeconds-3600:this.minTimeInSeconds)+":00")),this.maxTimeInSeconds>o.asSeconds()&&(o=S.a.duration(this.secondsToTimeSelectStep(this.maxTimeInSeconds<=82800?this.maxTimeInSeconds+3600:86400)+":00"))),this.$refs.calendar.fireMethod("option",{businessHours:_.compact(t),minTime:n,maxTime:o}),this.globalBusinessHours=t,this.initVCalendar()},canWriteAppointments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"customer"===this.$root.settings.role&&this.$root.settings.roles.allowCustomerReschedule||"admin"===this.$root.settings.role||"manager"===this.$root.settings.role||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteAppointments&&(!e||e===this.currentUser.id)},canWriteEvents:function(){return"admin"===this.$root.settings.role||"manager"===this.$root.settings.role||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents},dayRender:function(e,t){var n=this,o=!1,i=!1,r=!1,s=!0,a=S()(this.$root.settings.slotDateConstraints.minDate,"YYYY-MM-DD"),l=S()(this.$root.settings.slotDateConstraints.maxDate,"YYYY-MM-DD"),c=e.isoWeekday(),u="customer"!==this.$root.settings.role?this.options.entities.employees:this.options.entities.employees.filter(function(e){return-1!==n.customerEmployees.indexOf(e.id)}),d=this;if(0!==this.params.providers.length){for(var p=[],h=0;h<u.length;h++)-1===_.indexOf(this.params.providers,u[h].id)&&p.push(u[h]);u=_.difference(u,p)}u.forEach(function(t){var n=t.weekDayList.find(function(e){return e.dayIndex===c});void 0!==n&&n.dayIndex===c&&(r=!0),t.specialDayList.forEach(function(t){e.isSameOrAfter(S()(t.startDate+" 00:00:00","YYYY-MM-DD HH:ii:ss"))&&e.isSameOrBefore(S()(t.endDate+" 24:00:00","YYYY-MM-DD HH:ii:ss"))&&(i=!0)}),-1!==d.getEmployeeDaysOffDates(t.dayOffList).indexOf(e.format("YYYY-MM-DD"))&&(o=!0),!r&&!i||o||(e.isBefore(a)||e.isAfter(l))&&"customer"===d.$root.settings.role||(s=!1)}),s&&(t.addClass("fc-nonbusiness"),t.addClass("fc-bgevent"),t.removeClass("fc-today"))},createEmployeesBackgroundEvents:function(e){for(var t=this,n={},o=this.$refs.calendar.fireMethod("getView"),i=o.start.clone(),r=o.end.clone().subtract(1,"days"),s=[];i.isSameOrBefore(r);)s[i.day()]=i.format("YYYY-MM-DD"),i.add(1,"days");var a=null;this.globalBusinessHours.forEach(function(e){(a=e.dow[0])in n||(n[a]={}),n[a].dayStart=S.a.utc(e.start.as("milliseconds")).format("HH:mm:ss"),n[a].dayEnd=S.a.utc(e.end.as("milliseconds")).format("HH:mm:ss")});var l=1===this.customerEmployees.length;e.forEach(function(e){var o=JSON.parse(JSON.stringify(n));e.weekDayList.forEach(function(e){(a=7===e.dayIndex?0:e.dayIndex)in o||(o[a]={}),o[a].employeeStart=e.startTime,o[a].employeeEnd=e.endTime});var i=function(n){e.id in t.employeesResources&&n in t.employeesResources[e.id]&&(t.employeesResources[e.id][n].scheduled.forEach(function(o){o.parts.forEach(function(i){t.createBackgroundEvent(!0,s[n],i.start,i.end,e.id,o.services)})}),t.employeesResources[e.id][n].unavailable.forEach(function(o){t.createBackgroundEvent(!l,s[n],o.start,o.end,e.id,[])})),"employeeStart"in o[n]&&"employeeEnd"in o[n]?(S.a.duration(o[n].employeeStart)>S.a.duration(o[n].dayStart)&&t.createBackgroundEvent(!l,s[n],o[n].dayStart,o[n].employeeStart,e.id,[]),S.a.duration(o[n].employeeEnd)<S.a.duration(o[n].dayEnd)&&t.createBackgroundEvent(!l,s[n],o[n].employeeEnd,o[n].dayEnd,e.id,[])):t.createBackgroundEvent(!l,s[n],o[n].dayStart,o[n].dayEnd,e.id,[])};for(var r in o)i(r)})},createBackgroundEvent:function(e,t,n,o,i,r){var s=[];r.length&&e&&r.forEach(function(e){s.push("am-ebe-"+i+"-"+e)}),this.events.push({start:S()(t+" "+n,"YYYY-MM-DD HH:mm:ss"),end:S()(t+" "+o,"YYYY-MM-DD HH:mm:ss"),color:"#d7d7d7",borderColor:"#d7d7d7",rendering:"background",className:e?r.length?"am-ebe "+s.join(" "):"am-ebe am-ebe-"+i:"",type:"fake"})},eventDragStart:function(e){jQuery(".am-ebe-"+e.employeeId).css("display","block"),_.difference(this.customerServices,[e.serviceId]).forEach(function(t){jQuery(".am-ebe-"+e.employeeId+"-"+t).css("display","block")})},eventDragStop:function(e){jQuery(".am-ebe-"+e.employeeId).css("display","none"),_.difference(this.customerServices,[e.serviceId]).forEach(function(t){jQuery(".am-ebe-"+e.employeeId+"-"+t).css("display","none")})},openRecurringAppointment:function(e){var t=this;this.dialogAppointment=!1,setTimeout(function(){t.showDialogEditAppointment(e)},200)}},computed:{config:function(){var e=this;return{eventDragStart:function(t){e.eventDragStart(t)},eventDragStop:function(t){e.eventDragStop(t)},dayRender:this.dayRender,locale:this.$root.locale,buttonText:{today:this.$root.labels.today,month:this.$root.labels.month,week:this.$root.labels.week,day:this.$root.labels.day,list:this.$root.labels.list,timelineDay:this.$root.labels.timeline},allDaySlot:!1,businessHours:{},defaultView:"agendaWeek",displayEventEnd:!0,displayEventTime:!0,editable:!0,eventDurationEditable:!1,eventLimit:2,eventLimitClick:"day",filterResourcesWithEvents:!0,firstDay:this.$root.settings.wordpress.startOfWeek,header:{left:"prev, today, next",center:"title",right:"month, agendaWeek, day, listWeek, timelineDay"},listDayAltFormat:"",noEventsMessage:this.$root.labels.no_appointments_to_display,nowIndicator:"customer"!==this.$root.settings.role,resources:function(t){t(e.resources)},resourceLabelText:this.$root.labels.employees,schedulerLicenseKey:"0395133833-fcs-1528299690",selectable:!1,slotEventOverlap:!1,slotDuration:this.secondsToTimeSelectStep(this.$root.settings.general.timeSlotLength),slotLabelInterval:this.secondsToTimeSelectStep(this.$root.settings.general.timeSlotLength),slotLabelFormat:"",timeFormat:"",viewRender:this.callViewRender,views:{month:{},week:{columnFormat:""},day:{titleFormat:"",type:"agenda",duration:{days:1},buttonText:"day"},timelineDay:{type:"timelineDay",buttonText:"timeline",displayEventTime:!1,slotLabelFormat:""}}}}},components:{GetPremiumBanner:I.a,PageHeader:T.a,FullCalendar:R.a,DialogEvent:f.a,DialogAppointment:u.a,DialogCustomer:p.a,DialogPayment:g.a}}},1049:function(e,t,n){var o;"undefined"!=typeof self&&self,o=function(e,t,n){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=36)}([function(t,n){t.exports=e},function(e,t){var n=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])};t.__extends=function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}},function(e,n){e.exports=t},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.resourceId=o,i}return o.__extends(t,e),t.prototype.toLegacy=function(t){var n=e.prototype.toLegacy.call(this,t);return n.resourceId=this.resourceId,n},t}(n(0).ComponentFootprint);t.default=i},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.mixInto=function(e){var t=this;r.Mixin.mixInto.call(this,e),["bindBaseRenderHandlers","queryScroll","applyScroll","triggerDayClick","triggerSelect","triggerExternalDrop","handleResourceAdd","handleResourceRemove"].forEach(function(n){e.prototype[n]=t.prototype[n]})},t.prototype.initResourceView=function(){var e=this,t=["hasResources"];this.canHandleSpecificResources||t.push("displayingDates"),this.watch("displayingResources",t,function(){e.requestResourcesRender(e.get("currentResources"))},function(){e.requestResourcesUnrender()}),this.watch("displayingBusinessHours",["businessHourGenerator","displayingResources","displayingDates"],function(t){e.requestBusinessHoursRender(t.businessHourGenerator)},function(){e.requestBusinessHoursUnrender()}),this.watch("displayingEvents",["displayingResources","hasEvents"],function(){e.requestEventsRender(e.get("currentEvents"))},function(){e.requestEventsUnrender()})},t.prototype.bindBaseRenderHandlers=function(){var e=!1,t=!1;this.on("resourcesRendered",function(){e||(e=!0,t&&this.whenSizeUpdated(this.triggerViewRender))}),this.on("datesRendered",function(){t||(t=!0,e&&this.whenSizeUpdated(this.triggerViewRender))}),this.on("before:resourcesUnrendered",function(){e&&(e=!1)}),this.on("before:datesUnrendered",function(){t&&(t=!1,this.triggerViewDestroy())})},t.prototype.queryScroll=function(){var e=r.View.prototype.queryScroll.apply(this,arguments);return this.isResourcesRendered&&i.extend(e,this.queryResourceScroll()),e},t.prototype.applyScroll=function(e){r.View.prototype.applyScroll.apply(this,arguments),this.isResourcesRendered&&this.applyResourceScroll(e)},t.prototype.queryResourceScroll=function(){return{}},t.prototype.applyResourceScroll=function(){},t.prototype.getResourceText=function(e){return this.getResourceTextFunc()(e)},t.prototype.getResourceTextFunc=function(){if(this.resourceTextFunc)return this.resourceTextFunc;var e=this.opt("resourceText");return"function"!=typeof e&&(e=function(e){return e.title||e.id}),this.resourceTextFunc=e,e},t.prototype.handleResourceAdd=function(e){this.requestResourceRender(e)},t.prototype.handleResourceRemove=function(e){this.requestResourceUnrender(e)},t.prototype.requestResourcesRender=function(e){var t=this;this.requestRender(function(){t.executeResourcesRender(e)},"resource","init")},t.prototype.requestResourcesUnrender=function(){var e=this;this.requestRender(function(){e.executeResourcesUnrender()},"resource","destroy")},t.prototype.requestResourceRender=function(e){var t=this;this.requestRender(function(){t.executeResourceRender(e)},"resource","add")},t.prototype.requestResourceUnrender=function(e){var t=this;this.requestRender(function(){t.executeResourceUnrender(e)},"resource","remove")},t.prototype.executeResourcesRender=function(e){this.renderResources(e),this.isResourcesRendered=!0,this.trigger("resourcesRendered")},t.prototype.executeResourcesUnrender=function(){this.trigger("before:resourcesUnrendered"),this.unrenderResources(),this.isResourcesRendered=!1},t.prototype.executeResourceRender=function(e){this.renderResource(e)},t.prototype.executeResourceUnrender=function(e){this.unrenderResource(e)},t.prototype.triggerDayClick=function(e,t,n){var o=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("dayClick",{context:t,args:[o.start,n,this,e.resourceId?this.calendar.resourceManager.getResourceById(e.resourceId):null]})},t.prototype.triggerSelect=function(e,t){var n=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("select",{context:this,args:[n.start,n.end,t,this,e.resourceId?this.calendar.resourceManager.getResourceById(e.resourceId):null]})},t.prototype.triggerExternalDrop=function(e,t,n,o,i){this.publiclyTrigger("drop",{context:n[0],args:[e.dateProfile.start.clone(),o,i,e.getResourceIds()[0],this]}),t&&this.publiclyTrigger("eventReceive",{context:this,args:[e.buildInstance().toLegacy(),this]})},t}(r.Mixin);t.default=s,s.prototype.isResourcesRendered=!1},,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(21),a=n(6),l=function(e){function t(t){var n=e.call(this,t)||this;return n.isResourceFootprintsEnabled=!0,n}return o.__extends(t,e),t.prototype.renderDates=function(e){this.dateProfile=e},t.prototype.renderResources=function(e){this.registerResources(e),this.renderGrid(),this.headContainerEl&&this.processHeadResourceEls(this.headContainerEl)},t.prototype.getHitFootprint=function(t){var n=e.prototype.getHitFootprint.call(this,t);return new a.default(n.unzonedRange,n.isAllDay,this.getColResource(t.col).id)},t.prototype.componentFootprintToSegs=function(e){for(var t=this.resourceCnt,n=[],o=0,r=this.datesAboveResources?this.sliceRangeByDay(e.unzonedRange):this.sliceRangeByRow(e.unzonedRange);o<r.length;o++)for(var s=r[o],l=0;l<t;l++){var c=this.flattenedResources[l];if(!(e instanceof a.default)||e.resourceId===c.id){var u=i.extend({},s);u.resource=c,this.isRTL?(u.leftCol=this.indicesToCol(l,s.lastRowDayIndex),u.rightCol=this.indicesToCol(l,s.firstRowDayIndex)):(u.leftCol=this.indicesToCol(l,s.firstRowDayIndex),u.rightCol=this.indicesToCol(l,s.lastRowDayIndex)),n.push(u)}}return n},t}(r.DayGrid);t.default=l,s.default.mixInto(l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(15),s=n(0),a=n(24),l=n(25),c=n(16),u=n(26),d=n(17),p=n(28),h=n(29),f=n(40),m=n(41),g=n(42),v=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.emphasizeWeeks=!1,o.isTimeBodyScrolled=!1,o.slotWidth=o.opt("slotWidth"),o}return o.__extends(t,e),t.prototype.normalizeComponentFootprint=function(e){var t,n,o=e.unzonedRange;if(this.isTimeScale)n=this.normalizeGridDate(o.getStart()),t=this.normalizeGridDate(o.getEnd());else{var i=this.computeDayRange(o);this.largeUnit?(n=i.start.clone().startOf(this.largeUnit),(t=i.end.clone().startOf(this.largeUnit)).isSame(i.end)&&t.isAfter(n)||t.add(this.slotDuration)):(n=i.start,t=i.end)}return new s.ComponentFootprint(new s.UnzonedRange(n,t),!this.isTimeScale)},t.prototype.componentFootprintToSegs=function(e){var t=e.unzonedRange.getStart(),n=e.unzonedRange.getEnd(),o=this.normalizeComponentFootprint(e),i=[];if(this.computeDateSnapCoverage(t)<this.computeDateSnapCoverage(n)){var r=o.unzonedRange.intersect(this.normalizedUnzonedRange);if(r){var s=r.getStart(),a=r.getEnd();i.push({start:s,end:a,isStart:r.isStart&&this.isValidDate(s),isEnd:r.isEnd&&this.isValidDate(a.clone().subtract(1))})}}return i},t.prototype.normalizeGridDate=function(e){var t=e.clone();return this.calendar.localizeMoment(t),this.isTimeScale?t.hasTime()||t.time(0):(t=t.clone().stripTime(),this.largeUnit&&t.startOf(this.largeUnit)),t},t.prototype.isValidDate=function(e){if(this.isHiddenDay(e))return!1;if(this.isTimeScale){var t=e.time()-this.dateProfile.minTime;return(t=(t%864e5+864e5)%864e5)<this.timeWindowMs}return!0},t.prototype.updateGridDates=function(){for(var e=-1,t=0,n=[],o=[],i=this.normalizedUnzonedStart.clone();i<this.normalizedUnzonedEnd;)this.isValidDate(i)?(e++,n.push(e),o.push(t)):n.push(e+.5),i.add(this.snapDuration),t++;this.snapDiffToIndex=n,this.snapIndexToDiff=o,this.snapCnt=e+1,this.slotCnt=this.snapCnt/this.snapsPerSlot},t.prototype.renderSkeleton=function(){this.el.addClass("fc-timeline"),!1===this.opt("eventOverlap")&&this.el.addClass("fc-no-overlap"),this.el.html(this.renderSkeletonHtml()),this.timeHeadEl=this.el.find("thead .fc-time-area"),this.timeBodyEl=this.el.find("tbody .fc-time-area"),this.timeHeadScroller=new a.default({overflowX:"clipped-scroll",overflowY:"hidden"}),this.timeHeadScroller.canvas=new l.default,this.timeHeadScroller.render(),this.timeHeadScroller.el.appendTo(this.timeHeadEl),this.timeBodyScroller=new a.default,this.timeBodyScroller.canvas=new l.default,this.timeBodyScroller.render(),this.timeBodyScroller.el.appendTo(this.timeBodyEl),this.isTimeBodyScrolled=!1,this.timeBodyScroller.on("scroll",s.proxy(this,"handleTimeBodyScrolled")),this.slatContainerEl=i('<div class="fc-slats"/>').appendTo(this.timeBodyScroller.canvas.bgEl),this.segContainerEl=i('<div class="fc-event-container"/>').appendTo(this.timeBodyScroller.canvas.contentEl),this.bgSegContainerEl=this.timeBodyScroller.canvas.bgEl,this.timeBodyBoundCache=new s.CoordCache({els:this.timeBodyScroller.canvas.el,isHorizontal:!0,isVertical:!0}),this.timeScrollJoiner=new c.default("horizontal",[this.timeHeadScroller,this.timeBodyScroller]),this.headDateFollower=new u.default(this.timeHeadScroller,!0),this.eventTitleFollower=new u.default(this.timeBodyScroller),this.eventTitleFollower.minTravel=50,this.isRTL?this.eventTitleFollower.containOnNaturalRight=!0:this.eventTitleFollower.containOnNaturalLeft=!0,e.prototype.renderSkeleton.call(this)},t.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'"> <thead class="fc-head"> <tr> <td class="fc-time-area '+e.getClass("widgetHeader")+'"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-time-area '+e.getClass("widgetContent")+'"></td> </tr> </tbody> </table>'},t.prototype.unrenderSkeleton=function(){this.handleTimeBodyScrolled(0),e.prototype.unrenderSkeleton.call(this)},t.prototype.renderDates=function(e){g.initScaleProps(this),this.timeWindowMs=e.maxTime-e.minTime,this.normalizedUnzonedStart=this.normalizeGridDate(e.renderUnzonedRange.getStart()),this.normalizedUnzonedEnd=this.normalizeGridDate(e.renderUnzonedRange.getEnd()),this.isTimeScale&&(this.normalizedUnzonedStart.add(e.minTime),this.normalizedUnzonedEnd.subtract(1,"day").add(e.maxTime)),this.normalizedUnzonedRange=new s.UnzonedRange(this.normalizedUnzonedStart,this.normalizedUnzonedEnd);var t=[],n=this.normalizedUnzonedStart.clone();for(this.calendar.localizeMoment(n);n<this.normalizedUnzonedEnd;)this.isValidDate(n)&&t.push(n.clone()),n.add(this.slotDuration);this.slotDates=t,this.updateGridDates();var o=this.renderSlatHtml();this.timeHeadScroller.canvas.contentEl.html(o.headHtml),this.timeHeadColEls=this.timeHeadScroller.canvas.contentEl.find("col"),this.slatContainerEl.html(o.bodyHtml),this.slatColEls=this.slatContainerEl.find("col"),this.slatEls=this.slatContainerEl.find("td"),this.slatCoordCache=new s.CoordCache({els:this.slatEls,isHorizontal:!0}),this.slatInnerCoordCache=new s.CoordCache({els:this.slatEls.find("> div"),isHorizontal:!0,offsetParent:this.timeBodyScroller.canvas.el});for(var i=0;i<this.slotDates.length;i++)n=this.slotDates[i],this.publiclyTrigger("dayRender",{context:this,args:[n,this.slatEls.eq(i),this]});this.headDateFollower&&this.headDateFollower.setSpriteEls(this.timeHeadEl.find("tr:not(:last-child) .fc-cell-text"))},t.prototype.unrenderDates=function(){this.headDateFollower&&this.headDateFollower.clearSprites(),this.timeHeadScroller.canvas.contentEl.empty(),this.slatContainerEl.empty(),this.timeHeadScroller.canvas.clearWidth(),this.timeBodyScroller.canvas.clearWidth()},t.prototype.renderSlatHtml=function(){for(var e,t,n,o,i=this.calendar.theme,r=this.labelInterval,a=this.headerFormats,l=a.map(function(e){return[]}),c=null,u=null,d=this.slotDates,p=[],h=a.map(function(e){return s.queryMostGranularFormatUnit(e)}),f=0,m=d;f<m.length;f++){for(var g=(t=m[f]).week(),v=this.emphasizeWeeks&&null!==u&&u!==g,y=0;y<a.length;y++){o=a[y],c=(n=l[y])[n.length-1];var b=null;if(a.length>1&&y<a.length-1){var _=t.format(o);c&&c.text===_?c.colspan+=1:b=this.buildCellObject(t,_,h[y])}else if(!c||s.isInt(s.divideRangeByDuration(this.normalizedUnzonedStart,t,r))){_=t.format(o);b=this.buildCellObject(t,_,h[y])}else c.colspan+=1;b&&(b.weekStart=v,n.push(b))}p.push({weekStart:v}),u=g}var w=r>this.slotDuration,x=1===this.slotDuration.as("days"),C='<table class="'+i.getClass("tableGrid")+'">';C+="<colgroup>";for(var S=0,k=d;S<k.length;S++)t=k[S],C+="<col/>";C+="</colgroup>",C+="<tbody>";for(var E=0;E<l.length;E++){n=l[E];var T=E===l.length-1;C+="<tr"+(w&&T?' class="fc-chrono"':"")+">";for(var D=0,P=n;D<P.length;D++){e=P[D];var R=[i.getClass("widgetHeader")];e.weekStart&&R.push("fc-em-cell"),x&&(R=R.concat(this.getDayClasses(e.date,!0))),C+='<th class="'+R.join(" ")+'" data-date="'+e.date.format()+'"'+(e.colspan>1?' colspan="'+e.colspan+'"':"")+'><div class="fc-cell-content">'+e.spanHtml+"</div></th>"}C+="</tr>"}C+="</tbody></table>";var O='<table class="'+i.getClass("tableGrid")+'">';O+="<colgroup>";for(var I=0,A=p;I<A.length;I++)e=A[I],O+="<col/>";O+="</colgroup>",O+="<tbody><tr>";for(E=0;E<p.length;E++)e=p[E],t=d[E],O+=this.slatCellHtml(t,e.weekStart);return{headHtml:C,bodyHtml:O+="</tr></tbody></table>"}},t.prototype.buildCellObject=function(e,t,n){return e=e.clone(),{text:t,spanHtml:this.buildGotoAnchorHtml({date:e,type:n,forceOff:!n},{class:"fc-cell-text"},s.htmlEscape(t)),date:e,colspan:1}},t.prototype.slatCellHtml=function(e,t){var n,o=this.calendar.theme;return this.isTimeScale?(n=[]).push(s.isInt(s.divideRangeByDuration(this.normalizedUnzonedStart,e,this.labelInterval))?"fc-major":"fc-minor"):(n=this.getDayClasses(e)).push("fc-day"),n.unshift(o.getClass("widgetContent")),t&&n.push("fc-em-cell"),'<td class="'+n.join(" ")+'" data-date="'+e.format()+'"><div /></td>'},t.prototype.renderBusinessHours=function(t){if(!this.largeUnit)return e.prototype.renderBusinessHours.call(this,t)},t.prototype.getNowIndicatorUnit=function(){if(this.isTimeScale)return s.computeGreatestUnit(this.slotDuration)},t.prototype.renderNowIndicator=function(e){var t=[];if(e=this.normalizeGridDate(e),this.normalizedUnzonedRange.containsDate(e)){var n=this.dateToCoord(e),o=this.isRTL?{right:-n}:{left:n};t.push(i("<div class='fc-now-indicator fc-now-indicator-arrow'></div>").css(o).appendTo(this.timeHeadScroller.canvas.el)[0]),t.push(i("<div class='fc-now-indicator fc-now-indicator-line'></div>").css(o).appendTo(this.timeBodyScroller.canvas.el)[0])}this.nowIndicatorEls=i(t)},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(e,t,n){var o,i,r,s;o=t?"auto":e-this.headHeight()-this.queryMiscHeight(),this.timeBodyScroller.setHeight(o);var a=this.timeHeadColEls;if(a){var l=Math.round(this.slotWidth||(this.slotWidth=this.computeSlotWidth()));r=l*this.slotDates.length,i="",s=l;var c=this.timeBodyScroller.getClientWidth();c>r&&(i=c,r="",s=Math.floor(c/this.slotDates.length))}else r="",i="";this.timeHeadScroller.canvas.setWidth(r),this.timeHeadScroller.canvas.setMinWidth(i),this.timeBodyScroller.canvas.setWidth(r),this.timeBodyScroller.canvas.setMinWidth(i),a&&this.timeHeadColEls.slice(0,-1).add(this.slatColEls.slice(0,-1)).css("width",s),this.timeHeadScroller.updateSize(),this.timeBodyScroller.updateSize(),this.timeScrollJoiner.update(),a&&(this.buildCoords(),this.updateSegPositions(),this.updateNowIndicator()),this.headDateFollower&&this.headDateFollower.update(),this.eventTitleFollower&&this.eventTitleFollower.update()},t.prototype.queryMiscHeight=function(){return this.el.outerHeight()-this.timeHeadScroller.el.outerHeight()-this.timeBodyScroller.el.outerHeight()},t.prototype.computeSlotWidth=function(){var e=0;this.timeHeadEl.find("tr:last-child th .fc-cell-text").each(function(t,n){var o=i(n).outerWidth();return e=Math.max(e,o)});var t=e+1,n=s.divideDurationByDuration(this.labelInterval,this.slotDuration),o=Math.ceil(t/n),r=this.timeHeadColEls.eq(0).css("min-width");return r&&(r=parseInt(r,10))&&(o=Math.max(o,r)),o},t.prototype.buildCoords=function(){this.timeBodyBoundCache.build(),this.slatCoordCache.build(),this.slatInnerCoordCache.build()},t.prototype.computeDateSnapCoverage=function(e){var t=s.divideRangeByDuration(this.normalizedUnzonedStart,e,this.snapDuration);if(t<0)return 0;if(t>=this.snapDiffToIndex.length)return this.snapCnt;var n=Math.floor(t),o=this.snapDiffToIndex[n];return s.isInt(o)?o+=t-n:o=Math.ceil(o),o},t.prototype.dateToCoord=function(e){var t=this.computeDateSnapCoverage(e)/this.snapsPerSlot,n=Math.floor(t),o=t-(n=Math.min(n,this.slotCnt-1)),i=this.slatInnerCoordCache;return this.isRTL?i.getRightPosition(n)-i.getWidth(n)*o-this.timeBodyBoundCache.getWidth(0):i.getLeftPosition(n)+i.getWidth(n)*o},t.prototype.rangeToCoords=function(e){return this.isRTL?{right:this.dateToCoord(e.start),left:this.dateToCoord(e.end)}:{left:this.dateToCoord(e.start),right:this.dateToCoord(e.end)}},t.prototype.headHeight=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.timeHeadScroller.canvas.contentEl.find("table");return n.height.apply(n,e)},t.prototype.updateSegPositions=function(){for(var e=0,t=[].concat(this.getEventSegs(),this.getBusinessHourSegs());e<t.length;e++){var n=t[e],o=this.rangeToCoords(n);n.el.css({left:n.left=o.left,right:-(n.right=o.right)})}},t.prototype.handleTimeBodyScrolled=function(e){e?this.isTimeBodyScrolled||(this.isTimeBodyScrolled=!0,this.el.addClass("fc-scrolled")):this.isTimeBodyScrolled&&(this.isTimeBodyScrolled=!1,this.el.removeClass("fc-scrolled"))},t.prototype.computeInitialDateScroll=function(){var e=this.get("dateProfile").activeUnzonedRange,t=0;if(this.isTimeScale){var n=this.opt("scrollTime");n&&(n=r.duration(n),t=this.dateToCoord(e.getStart().time(n)))}return{left:t}},t.prototype.queryDateScroll=function(){return{left:this.timeBodyScroller.getScrollLeft()}},t.prototype.applyDateScroll=function(e){null!=e.left&&(this.timeHeadScroller.setScrollLeft(e.left),this.timeBodyScroller.setScrollLeft(e.left))},t.prototype.prepareHits=function(){this.buildCoords()},t.prototype.queryHit=function(e,t){var n=this.snapsPerSlot,o=this.slatCoordCache,i=this.timeBodyBoundCache;if(i.isPointInBounds(e,t)){var r=o.getHorizontalIndex(e);if(null!=r){var s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=o.getWidth(r);if(this.isRTL){var p=o.getRightOffset(r);a=(p-e)/d,l=r*n+(s=Math.floor(a*n)),c=(u=p-s/n*d)-(s+1)/n*d}else{var h=o.getLeftOffset(r);a=(e-h)/d,l=r*n+(s=Math.floor(a*n)),c=h+s/n*d,u=h+(s+1)/n*d}return{snap:l,component:this,left:c,right:u,top:i.getTopOffset(0),bottom:i.getBottomOffset(0)}}}},t.prototype.getHitFootprint=function(e){return new s.ComponentFootprint(this.getSnapUnzonedRange(e.snap),!this.isTimeScale)},t.prototype.getHitEl=function(e){return this.getSnapEl(e.snap)},t.prototype.getSnapUnzonedRange=function(e){var t=this.normalizedUnzonedStart.clone();t.add(s.multiplyDuration(this.snapDuration,this.snapIndexToDiff[e]));var n=t.clone().add(this.snapDuration);return new s.UnzonedRange(t,n)},t.prototype.getSnapEl=function(e){return this.slatEls.eq(Math.floor(e/this.snapsPerSlot))},t.prototype.renderEventResize=function(e,t,n){for(var o=0,i=e;o<i.length;o++){var r=i[o];this.renderHighlight(r.componentFootprint)}return this.helperRenderer.renderEventResizingFootprints(e,t,n)},t.prototype.unrenderEventResize=function(){return this.unrenderHighlight(),this.helperRenderer.unrender()},t.prototype.renderDrag=function(e,t,n){if(t)return this.helperRenderer.renderEventDraggingFootprints(e,t,n),!0;for(var o=0,i=e;o<i.length;o++){var r=i[o];this.renderHighlight(r.componentFootprint)}return!1},t.prototype.unrenderDrag=function(){return this.helperRenderer.unrender(),this.unrenderHighlight()},t}(s.View);t.default=v,v.prototype.usesMinMaxTime=!0,v.prototype.eventRendererClass=d.default,v.prototype.fillRendererClass=p.default,v.prototype.businessHourRendererClass=s.BusinessHourRenderer,v.prototype.helperRendererClass=h.default,v.prototype.eventDraggingClass=f.default,v.prototype.eventResizingClass=m.default,s.StandardInteractionsMixin.mixInto(v)},function(e,t){e.exports=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.axis=e,this.scrollers=t;for(var n=0,o=this.scrollers;n<o.length;n++){var i=o[n];this.initScroller(i)}}return e.prototype.initScroller=function(e){var t=this;e.scrollEl.on("wheel mousewheel DomMouseScroll MozMousePixelScroll",function(){t.assignMasterScroller(e)}),e.on("scrollStart",function(){t.masterScroller||t.assignMasterScroller(e)}).on("scroll",function(){if(e===t.masterScroller)for(var n=0,o=t.scrollers;n<o.length;n++){var i=o[n];if(i!==e)switch(t.axis){case"horizontal":i.setNativeScrollLeft(e.getNativeScrollLeft());break;case"vertical":i.setScrollTop(e.getScrollTop())}}}).on("scrollEnd",function(){e===t.masterScroller&&t.unassignMasterScroller()})},e.prototype.assignMasterScroller=function(e){this.unassignMasterScroller(),this.masterScroller=e;for(var t=0,n=this.scrollers;t<n.length;t++){var o=n[t];o!==e&&o.disableTouchScroll()}},e.prototype.unassignMasterScroller=function(){if(this.masterScroller){for(var e=0,t=this.scrollers;e<t.length;e++){t[e].enableTouchScroll()}this.masterScroller=null}},e.prototype.update=function(){for(var e,t,n,o=this.scrollers.map(function(e){return e.getScrollbarWidths()}),i=0,r=0,s=0,a=0,l=0,c=o;l<c.length;l++)t=c[l],i=Math.max(i,t.left),r=Math.max(r,t.right),s=Math.max(s,t.top),a=Math.max(a,t.bottom);for(n=0;n<this.scrollers.length;n++)e=this.scrollers[n],t=o[n],e.canvas.setGutters("horizontal"===this.axis?{left:i-t.left,right:r-t.right}:{top:s-t.top,bottom:a-t.bottom})},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(27),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.computeDisplayEventTime=function(){return!this.view.isTimeScale},t.prototype.computeDisplayEventEnd=function(){return!1},t.prototype.computeEventTimeFormat=function(){return this.view.opt("extraSmallTimeFormat")},t.prototype.renderFgSegs=function(e){for(var t=this.view.eventTitleFollower,n=0,o=e;n<o.length;n++){var i=o[n],s=this.component.rangeToCoords(i);i.el.css({left:i.left=s.left,right:-(i.right=s.right)})}for(var l=0,c=e;l<c.length;l++){(i=c[l]).el.appendTo(this.component.segContainerEl)}for(var u=0,d=e;u<d.length;u++){(i=d[u]).height=i.el.outerHeight(!0)}this.buildSegLevels(e),this.component.segContainerHeight=a(e);for(var p=0,h=e;p<h.length;p++){(i=h[p]).el.css("top",i.top)}this.component.segContainerEl.height(this.component.segContainerHeight);for(var f=0,m=e;f<m.length;f++){var g=(i=m[f]).el.find(".fc-title");g.length&&(i.scrollFollowerSprite=new r.default(g),t.addSprite(i.scrollFollowerSprite))}},t.prototype.buildSegLevels=function(e){var t=[];this.sortEventSegs(e);for(var n=0,o=e;n<o.length;n++){var i=o[n];i.above=[];for(var r=0;r<t.length;){for(var s=!1,a=0,l=t[r];a<l.length;a++){var u=l[a];c(i,u)&&(i.above.push(u),s=!0)}if(!s)break;r+=1}for((t[r]||(t[r]=[])).push(i),r+=1;r<t.length;){for(var d=0,p=t[r];d<p.length;d++){var h=p[d];c(i,h)&&h.above.push(i)}r+=1}}return t},t.prototype.unrenderFgSegs=function(e){if(this.component.segContainerEl){for(var t=this.view.eventTitleFollower,n=0,o=e;n<o.length;n++){var i=o[n];i.scrollFollowerSprite&&t.removeSprite(i.scrollFollowerSprite)}this.component.segContainerEl.empty(),this.component.segContainerEl.height(""),this.component.segContainerHeight=null}},t.prototype.fgSegHtml=function(e,t){var n=e.footprint.eventDef,o=this.view.isEventDefDraggable(n),r=e.isStart&&this.view.isEventDefResizableFromStart(n),s=e.isEnd&&this.view.isEventDefResizableFromEnd(n),a=this.getSegClasses(e,o,r||s);a.unshift("fc-timeline-event","fc-h-event");var l=this.getTimeText(e.footprint);return'<a class="'+a.join(" ")+'" style="'+i.cssToStr(this.getSkinCss(e.footprint.eventDef))+'"'+(n.url?' href="'+i.htmlEscape(n.url)+'"':"")+'><div class="fc-content">'+(l?'<span class="fc-time">'+i.htmlEscape(l)+"</span>":"")+'<span class="fc-title">'+(n.title?i.htmlEscape(n.title):" ")+'</span></div><div class="fc-bg" />'+(r?'<div class="fc-resizer fc-start-resizer"></div>':"")+(s?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},t}(i.EventRenderer);function a(e){for(var t=0,n=0,o=e;n<o.length;n++){var i=o[n];t=Math.max(t,l(i))}return t}function l(e){return null==e.top&&(e.top=a(e.above)),e.top+e.height}function c(e,t){return e.left<t.right&&e.right>t.left}t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(44),a=function(e){function t(t){var n=e.call(this,t)||this;return n.children=[],n.depth=0,n.trHash={},n.trs=i(),n.isExpanded=n.view.opt("resourcesInitiallyExpanded"),n}return o.__extends(t,e),t.prototype.addChildRowNode=function(e,t){e.removeFromParentAndDom();var n=this.children;null!=t?n.splice(t,0,e):(t=n.length,n.push(e)),e.prevSibling=t>0?n[t-1]:null,t<n.length-1&&(n[t+1].prevSibling=e),e.parent=this,e.depth=this.depth+(this.hasOwnRow?1:0),this.descendantAdded(e)},t.prototype.removeChild=function(e){var t,n=this.children,o=!1;for(t=0;t<n.length;t++){if(n[t]===e){o=!0;break}}return!!o&&(t<n.length-1&&(n[t+1].prevSibling=e.prevSibling),n.splice(t,1),e.parent=null,e.prevSibling=null,this.descendantRemoved(e),e)},t.prototype.removeChildren=function(){for(var e=0,t=this.children;e<t.length;e++){var n=t[e];this.descendantRemoved(n)}this.children=[]},t.prototype.removeFromParentAndDom=function(){this.parent&&this.parent.removeChild(this),this.get("isInDom")&&this.removeElement()},t.prototype.getLastChild=function(){var e=this.children;return e[e.length-1]},t.prototype.getPrevRowInDom=function(){for(var e=this;e;){if(e.prevSibling){var t=void 0;for(e=e.prevSibling;t=e.getLastChild();)e=t}else e=e.parent;if(e&&e.get("isInDom")&&e.hasOwnRow)return e}return null},t.prototype.getLeadingRow=function(){return this.hasOwnRow?this:this.isExpanded&&this.children.length?this.children[0].getLeadingRow():void 0},t.prototype.getRows=function(e){void 0===e&&(e=[]),this.hasOwnRow&&e.push(this);for(var t=0,n=this.children;t<n.length;t++){n[t].getRows(e)}return e},t.prototype.getNodes=function(e){void 0===e&&(e=[]),e.push(this);for(var t=0,n=this.children;t<n.length;t++){n[t].getNodes(e)}return e},t.prototype.getDescendants=function(){for(var e=[],t=0,n=this.children;t<n.length;t++){n[t].getNodes(e)}return e},t.prototype.show=function(){this.get("isInDom")||this.renderSkeleton()},t.prototype.hide=function(){this.get("isInDom")&&this.removeElement()},t.prototype.renderSkeleton=function(){this.trHash={};var e=[];if(this.hasOwnRow){var t=this.getPrevRowInDom();for(var n in this.view.tbodyHash){var o=this.view.tbodyHash[n],s=i("<tr/>");this.trHash[n]=s,e.push(s[0]);var a="render"+r.capitaliseFirstLetter(n)+"Skeleton";this[a]&&this[a](s),t?t.trHash[n].after(s):o.prepend(s)}this.trs=i(e).on("click",".fc-expander",r.proxy(this,"toggleExpanded")),this.thisRowShown()}if(this.set("isInDom",!0),this.isExpanded)for(var l=0,c=this.children;l<c.length;l++){c[l].renderSkeleton()}},t.prototype.removeElement=function(){for(var e in this.trHash){var t=this.trHash[e],n="unrender"+r.capitaliseFirstLetter(e)+"Skeleton";this[n]&&this[n](t)}this.unset("isInDom"),this.thisRowHidden(),this.trHash={},this.trs.remove(),this.trs=i();for(var o=0,s=this.children;o<s.length;o++){var a=s[o];a.get("isInDom")&&a.removeElement()}},t.prototype.getTr=function(e){return this.trHash[e]},t.prototype.expand=function(){if(!this.isExpanded){this.isExpanded=!0,this.indicateExpanded();for(var e=0,t=this.children;e<t.length;e++){t[e].show()}this.view.calendar.updateViewSize(),this.animateExpand()}},t.prototype.collapse=function(){if(this.isExpanded){this.isExpanded=!1,this.indicateCollapsed();for(var e=0,t=this.children;e<t.length;e++){t[e].hide()}this.view.calendar.updateViewSize()}},t.prototype.toggleExpanded=function(){this.isExpanded?this.collapse():this.expand()},t.prototype.indicateExpanded=function(){this.trs.find(".fc-expander .fc-icon").removeClass(this.getCollapsedIcon()).addClass(this.getExpandedIcon())},t.prototype.indicateCollapsed=function(){this.trs.find(".fc-expander .fc-icon").removeClass(this.getExpandedIcon()).addClass(this.getCollapsedIcon())},t.prototype.indicateExpandingEnabled=function(){this.trs.find(".fc-expander-space").addClass("fc-expander"),this.isExpanded?this.indicateExpanded():this.indicateCollapsed()},t.prototype.indicateExpandingDisabled=function(){this.trs.find(".fc-expander-space").removeClass("fc-expander").find(".fc-icon").removeClass(this.getExpandedIcon()).removeClass(this.getCollapsedIcon())},t.prototype.updateExpandingEnabled=function(){this.hasOwnRow&&this.children.length?this.indicateExpandingEnabled():this.indicateExpandingDisabled()},t.prototype.getExpandedIcon=function(){return"fc-icon-down-triangle"},t.prototype.getCollapsedIcon=function(){return"fc-icon-"+(this.view.isRTL?"left":"right")+"-triangle"},t.prototype.animateExpand=function(){var e=this.children[0],t=e&&e.getLeadingRow(),n=t&&t.trs;n&&(n.addClass("fc-collapsed"),setTimeout(function(){n.addClass("fc-transitioning"),n.removeClass("fc-collapsed")}),n.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){n.removeClass("fc-transitioning")}))},t.prototype.getMaxTrInnerHeight=function(){var e=0;return i.each(this.trHash,function(t,n){var o=s.getOwnCells(n).find("> div:not(.fc-cell-content):first");e=Math.max(o.height(),e)}),e},t.prototype.setTrInnerHeight=function(e){i.each(this.trHash,function(t,n){s.getOwnCells(n).find("> div:not(.fc-cell-content):first").height(e)})},t.prototype.descendantAdded=function(e){this.get("isInDom")&&this.hasOwnRow&&1===this.children.length&&this.indicateExpandingEnabled(),(this.parent||this.view).descendantAdded(e)},t.prototype.descendantRemoved=function(e){this.get("isInDom")&&this.hasOwnRow&&0===this.children.length&&this.indicateExpandingDisabled(),(this.parent||this.view).descendantRemoved(e)},t.prototype.thisRowShown=function(){(this.parent||this.view).descendantShown(this)},t.prototype.thisRowHidden=function(){(this.parent||this.view).descendantHidden(this)},t.prototype.descendantShown=function(e){(this.parent||this.view).descendantShown(e)},t.prototype.descendantHidden=function(e){(this.parent||this.view).descendantHidden(e)},t}(r.DateComponent);t.default=a,a.prototype.hasOwnRow=!1},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.extractIds=function(t,n){var o=n.opt("eventResourceField")||"resourceId",i=[];if(t.resourceIds)for(var r=0,s=t.resourceIds;r<s.length;r++){var a=s[r];i.push(e.normalizeId(a))}return null!=t[o]&&i.push(e.normalizeId(t[o])),i},e.normalizeId=function(e){return String(e)},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(13),a=n(38),l=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.initResourceView(),o}return o.__extends(t,e),t}(i.AgendaView);t.default=l,l.prototype.timeGridClass=a.default,l.prototype.dayGridClass=s.default,r.default.mixInto(l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(6),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.mixInto=function(e){var t=this;r.Mixin.mixInto.call(this,e),["updateDayTableCols","computeColCnt","getColDayIndex","renderHeadTrHtml","renderBgCellsHtml","renderBusinessHours","allowCrossResource"].forEach(function(n){e.prototype[n]=t.prototype[n]})},t.prototype.registerResources=function(e){this.flattenedResources=this.flattenResources(e),this.resourceCnt=this.flattenedResources.length,this.updateDayTable()},t.prototype.flattenResources=function(e){var t,n=this.opt("resourceOrder");if(n){var o=r.parseFieldSpecs(n);t=function(e,t){return r.compareByFieldSpecs(e,t,o)}}else t=null;var i=[];return this.accumulateResources(e,t,i),i},t.prototype.accumulateResources=function(e,t,n){var o;t?(o=e.slice(0)).sort(t):o=e;for(var i=0,r=o;i<r.length;i++){var s=r[i];n.push(s),this.accumulateResources(s.children,t,n)}},t.prototype.updateDayTableCols=function(){this.datesAboveResources=this.opt("groupByDateAndResource"),r.DayTableMixin.prototype.updateDayTableCols.call(this)},t.prototype.computeColCnt=function(){return this.resourceCnt*this.daysPerRow},t.prototype.getColDayIndex=function(e){return this.isRTL&&(e=this.colCnt-1-e),this.datesAboveResources?Math.floor(e/(this.resourceCnt||1)):e%this.daysPerRow},t.prototype.getColResource=function(e){return this.flattenedResources[this.getColResourceIndex(e)]},t.prototype.getColResourceIndex=function(e){return this.isRTL&&(e=this.colCnt-1-e),this.datesAboveResources?e%(this.resourceCnt||1):Math.floor(e/this.daysPerRow)},t.prototype.indicesToCol=function(e,t){var n=this.datesAboveResources?t*(this.resourceCnt||1)+e:e*this.daysPerRow+t;return this.isRTL&&(n=this.colCnt-1-n),n},t.prototype.renderHeadTrHtml=function(){return this.daysPerRow>1?this.datesAboveResources?this.renderHeadDateAndResourceHtml():this.renderHeadResourceAndDateHtml():this.renderHeadResourceHtml()},t.prototype.renderHeadResourceHtml=function(){var e=this,t=this.flattenedResources.map(function(t){return e.renderHeadResourceCellHtml(t)});return t.length||t.push("<td> </td>"),this.wrapTr(t,"renderHeadIntroHtml")},t.prototype.renderHeadResourceAndDateHtml=function(){for(var e=[],t=[],n=this.daysPerRow,o=0,i=this.flattenedResources;o<i.length;o++){var r=i[o];e.push(this.renderHeadResourceCellHtml(r,null,this.daysPerRow));for(var s=0;s<n;s++){var a=this.dayDates[s].clone();t.push(this.renderHeadResourceDateCellHtml(a,r))}}return e.length||e.push("<td> </td>"),t.length||t.push("<td> </td>"),this.wrapTr(e,"renderHeadIntroHtml")+this.wrapTr(t,"renderHeadIntroHtml")},t.prototype.renderHeadDateAndResourceHtml=function(){for(var e=[],t=[],n=this.daysPerRow,o=0;o<n;o++){var i=this.dayDates[o].clone();e.push(this.renderHeadDateCellHtml(i,this.resourceCnt));for(var r=0,s=this.flattenedResources;r<s.length;r++){var a=s[r];t.push(this.renderHeadResourceCellHtml(a,i))}}return e.length||e.push("<td> </td>"),t.length||t.push("<td> </td>"),this.wrapTr(e,"renderHeadIntroHtml")+this.wrapTr(t,"renderHeadIntroHtml")},t.prototype.renderHeadResourceCellHtml=function(e,t,n){return void 0===n&&(n=1),'<th class="fc-resource-cell" data-resource-id="'+e.id+'"'+(t?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(n>1?' colspan="'+n+'"':"")+">"+r.htmlEscape(this.view.getResourceText(e))+"</th>"},t.prototype.renderHeadResourceDateCellHtml=function(e,t,n){return void 0===n&&(n=1),this.renderHeadDateCellHtml(e,n,'data-resource-id="'+t.id+'"')},t.prototype.processHeadResourceEls=function(e){var t=this;e.find(".fc-resource-cell").each(function(e,n){var o;o=t.datesAboveResources?t.getColResource(e):t.flattenedResources[t.isRTL?t.flattenedResources.length-1-e:e],t.publiclyTrigger("resourceRender",{context:o,args:[o,i(n),i(),t.view]})})},t.prototype.renderBgCellsHtml=function(e){for(var t=[],n=this.colCnt,o=0;o<n;o++){var i=this.getCellDate(e,o),r=this.getColResource(o);t.push(this.renderResourceBgCellHtml(i,r))}return t.length||t.push("<td> </td>"),t.join("")},t.prototype.renderResourceBgCellHtml=function(e,t){return this.renderBgCellHtml(e,'data-resource-id="'+t.id+'"')},t.prototype.wrapTr=function(e,t){return this.isRTL?(e.reverse(),"<tr>"+e.join("")+this[t]()+"</tr>"):"<tr>"+this[t]()+e.join("")+"</tr>"},t.prototype.renderBusinessHours=function(e){for(var t=this.hasAllDayBusinessHours,n=this.dateProfile.activeUnzonedRange,o=[],i=0,a=this.flattenedResources;i<a.length;i++){var l=a[i],c=(l.businessHourGenerator||e).buildEventInstanceGroup(t,n);if(c)for(var u=0,d=c.sliceRenderRanges(n);u<d.length;u++){var p=d[u];o.push(new r.EventFootprint(new s.default(p.unzonedRange,t,l.id),p.eventDef,p.eventInstance))}}return this.businessHourRenderer.renderEventFootprints(o)},t}(r.Mixin);t.default=a,a.prototype.resourceCnt=0,a.prototype.datesAboveResources=!1,a.prototype.allowCrossResource=!1},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(13),a=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.initResourceView(),o}return o.__extends(t,e),t}(i.BasicView);t.default=a,a.prototype.dayGridClass=s.default,r.default.mixInto(a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(13),a=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.initResourceView(),o}return o.__extends(t,e),t}(i.MonthView);t.default=a,a.prototype.dayGridClass=s.default,r.default.mixInto(a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=function(e){function t(t){var n=e.call(this,t)||this;return n.isHScrollbarsClipped=!1,n.isVScrollbarsClipped=!1,"clipped-scroll"===n.overflowX&&(n.overflowX="scroll",n.isHScrollbarsClipped=!0),"clipped-scroll"===n.overflowY&&(n.overflowY="scroll",n.isVScrollbarsClipped=!0),n}return o.__extends(t,e),t.prototype.renderEl=function(){var t=e.prototype.renderEl.call(this);return i('<div class="fc-scroller-clip" />').append(t)},t.prototype.updateSize=function(){var e=this.scrollEl,t=r.getScrollbarWidths(e),n={marginLeft:0,marginRight:0,marginTop:0,marginBottom:0};return this.isHScrollbarsClipped&&(n.marginTop=-t.top,n.marginBottom=-t.bottom),this.isVScrollbarsClipped&&(n.marginLeft=-t.left,n.marginRight=-t.right),e.css(n),e.toggleClass("fc-no-scrollbars",(this.isHScrollbarsClipped||"hidden"===this.overflowX)&&(this.isVScrollbarsClipped||"hidden"===this.overflowY)&&!(t.top||t.bottom||t.left||t.right))},t.prototype.getScrollbarWidths=function(){var e=r.getScrollbarWidths(this.scrollEl);return this.isHScrollbarsClipped&&(e.top=0,e.bottom=0),this.isVScrollbarsClipped&&(e.left=0,e.right=0),e},t}(n(39).default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(){function e(){this.gutters={}}return e.prototype.render=function(){this.el=o('<div class="fc-scroller-canvas"> <div class="fc-content"></div> <div class="fc-bg"></div> </div>'),this.contentEl=this.el.find(".fc-content"),this.bgEl=this.el.find(".fc-bg")},e.prototype.setGutters=function(e){e?o.extend(this.gutters,e):this.gutters={},this.updateSize()},e.prototype.setWidth=function(e){this.width=e,this.updateSize()},e.prototype.setMinWidth=function(e){this.minWidth=e,this.updateSize()},e.prototype.clearWidth=function(){this.width=null,this.minWidth=null,this.updateSize()},e.prototype.updateSize=function(){var e=this.gutters;this.el.toggleClass("fc-gutter-left",Boolean(e.left)).toggleClass("fc-gutter-right",Boolean(e.right)).toggleClass("fc-gutter-top",Boolean(e.top)).toggleClass("fc-gutter-bottom",Boolean(e.bottom)).css({paddingLeft:e.left||"",paddingRight:e.right||"",paddingTop:e.top||"",paddingBottom:e.bottom||"",width:null!=this.width?this.width+(e.left||0)+(e.right||0):"",minWidth:null!=this.minWidth?this.minWidth+(e.left||0)+(e.right||0):""}),this.bgEl.css({left:e.left||"",right:e.right||"",top:e.top||"",bottom:e.bottom||""})},e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(27),s=function(){function e(e,t){void 0===t&&(t=!1);var n=this;this.isHFollowing=!0,this.isVFollowing=!1,this.allowPointerEvents=!1,this.containOnNaturalLeft=!1,this.containOnNaturalRight=!1,this.minTravel=0,this.allowPointerEvents=t,this.scroller=e,this.spritesById={},e.on("scroll",function(){e.isTouchedEver?(n.isTouch=!0,n.isForcedRelative=!0):(n.isTouch=!1,n.handleScroll())}),e.on("scrollEnd",function(){n.handleScroll()})}return e.prototype.setSpriteEls=function(e){var t=this;this.clearSprites(),e.each(function(e,n){t.addSprite(new r.default(o(n)))})},e.prototype.clearSprites=function(){this.iterSprites(function(e){return e.clear()}),this.spritesById={}},e.prototype.addSprite=function(e){e.follower=this,this.spritesById[e.id]=e},e.prototype.removeSprite=function(e){e.clear(),delete this.spritesById[e.id]},e.prototype.handleScroll=function(){this.updateViewport(),this.updatePositions()},e.prototype.cacheDimensions=function(){this.updateViewport(),this.scrollbarWidths=this.scroller.getScrollbarWidths(),this.contentOffset=this.scroller.canvas.el.offset(),this.iterSprites(function(e){return e.cacheDimensions()})},e.prototype.updateViewport=function(){var e=this.scroller,t=e.getScrollFromLeft(),n=e.getScrollTop();return this.viewportRect={left:t,right:t+e.getClientWidth(),top:n,bottom:n+e.getClientHeight()}},e.prototype.forceRelative=function(){this.isForcedRelative||(this.isForcedRelative=!0,this.iterSprites(function(e){if(e.doAbsolute)return e.assignPosition()}))},e.prototype.clearForce=function(){this.isForcedRelative&&!this.isTouch&&(this.isForcedRelative=!1,this.iterSprites(function(e){return e.assignPosition()}))},e.prototype.update=function(){this.cacheDimensions(),this.updatePositions()},e.prototype.updatePositions=function(){this.iterSprites(function(e){return e.updatePosition()})},e.prototype.getContentRect=function(e){return i.getContentRect(e,this.contentOffset)},e.prototype.getBoundingRect=function(e){return i.getOuterRect(e,this.contentOffset)},e.prototype.iterSprites=function(e){for(var t in this.spritesById){e(this.spritesById[t],t)}},e}();t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=function(){function e(t){this.isEnabled=!0,this.isHFollowing=!1,this.isVFollowing=!1,this.doAbsolute=!1,this.isAbsolute=!1,this.isCentered=!1,this.isBlock=!1,this.el=t,this.id=String(e.uid++),this.isBlock="block"===this.el.css("display"),"relative"!==this.el.css("position")&&this.el.css("position","relative")}return e.prototype.disable=function(){this.isEnabled&&(this.isEnabled=!1,this.resetPosition(),this.unabsolutize())},e.prototype.enable=function(){this.isEnabled||(this.isEnabled=!0,this.assignPosition())},e.prototype.clear=function(){this.disable(),this.follower=null,this.absoluteEl=null},e.prototype.cacheDimensions=function(){var e=!1,t=!1,n=!1;this.naturalWidth=this.el.width(),this.resetPosition();var o=this.follower,i=this.naturalRect=o.getBoundingRect(this.el),a=this.el.parent();this.parentRect=o.getBoundingRect(a);var l,c,u=this.containerRect=(l=o.getContentRect(a),c=i,{left:Math.min(l.left,c.left),right:Math.max(l.right,c.right),top:Math.min(l.top,c.top),bottom:Math.max(l.bottom,c.bottom)}),d=o.minTravel;o.containOnNaturalLeft&&(u.left=i.left),o.containOnNaturalRight&&(u.right=i.right),o.isHFollowing&&r(u)-r(i)>=d&&(n="center"===this.el.css("text-align"),e=!0),o.isVFollowing&&s(u)-s(i)>=d&&(t=!0),this.isHFollowing=e,this.isVFollowing=t,this.isCentered=n},e.prototype.updatePosition=function(){this.computePosition(),this.assignPosition()},e.prototype.resetPosition=function(){this.el.css({top:"",left:""})},e.prototype.computePosition=function(){var e=this.follower.viewportRect,t=this.parentRect,n=this.containerRect,i=o.intersectRects(e,t),s=null,u=!1;if(i){s=function(e){return{left:e.left,right:e.right,top:e.top,bottom:e.bottom}}(this.naturalRect);var d=o.intersectRects(s,t);if(this.isCentered&&!a(e,t)||d&&!a(e,d)){if(u=!0,this.isHFollowing){if(this.isCentered){var p=r(s);s.left=(i.left+i.right)/2-p/2,s.right=s.left+p}else l(s,e)||(u=!1);l(s,n)&&(u=!1)}this.isVFollowing&&(c(s,e)||(u=!1),c(s,n)&&(u=!1)),a(e,s)||(u=!1)}}this.rect=s,this.doAbsolute=u},e.prototype.assignPosition=function(){if(this.isEnabled)if(this.rect)if(this.doAbsolute&&!this.follower.isForcedRelative)this.absolutize(),this.absoluteEl.css({top:this.rect.top-this.follower.viewportRect.top+this.follower.scrollbarWidths.top,left:this.rect.left-this.follower.viewportRect.left+this.follower.scrollbarWidths.left,width:this.isBlock?this.naturalWidth:""});else{var e=this.rect.top-this.naturalRect.top,t=this.rect.left-this.naturalRect.left;this.unabsolutize(),this.el.toggleClass("fc-following",Boolean(e||t)).css({top:e,left:t})}else this.unabsolutize()},e.prototype.absolutize=function(){this.isAbsolute||(this.absoluteEl||(this.absoluteEl=this.buildAbsoluteEl()),this.absoluteEl.appendTo(this.follower.scroller.el),this.el.css("visibility","hidden"),this.isAbsolute=!0)},e.prototype.unabsolutize=function(){this.isAbsolute&&(this.absoluteEl.detach(),this.el.css("visibility",""),this.isAbsolute=!1)},e.prototype.buildAbsoluteEl=function(){var e=this.el.clone().addClass("fc-following");return e.css({position:"absolute","z-index":1e3,"font-weight":this.el.css("font-weight"),"font-size":this.el.css("font-size"),"font-family":this.el.css("font-family"),"text-decoration":this.el.css("text-decoration"),color:this.el.css("color"),"padding-top":this.el.css("padding-top"),"padding-bottom":this.el.css("padding-bottom"),"padding-left":this.el.css("padding-left"),"padding-right":this.el.css("padding-right")}),this.follower.allowPointerEvents||e.css("pointer-events","none"),e},e.uid=0,e}();function r(e){return e.right-e.left}function s(e){return e.bottom-e.top}function a(e,t){return function(e,t){return t.left>=e.left&&t.right<=e.right}(e,t)&&function(e,t){return t.top>=e.top&&t.bottom<=e.bottom}(e,t)}function l(e,t){return e.left<t.left?(e.right=t.left+r(e),e.left=t.left,!0):e.right>t.right&&(e.left=t.right-r(e),e.right=t.right,!0)}function c(e,t){return e.top<t.top?(e.bottom=t.top+s(e),e.top=t.top,!0):e.bottom>t.bottom&&(e.top=t.bottom-s(e),e.bottom=t.bottom,!0)}t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.attachSegEls=function(e,t){if(t.length){var n=void 0;n="businessHours"===e?"bgevent":e.toLowerCase();for(var o=i('<div class="fc-'+n+'-container" />').appendTo(this.component.bgSegContainerEl),r=0,s=t;r<s.length;r++){var a=s[r],l=this.component.rangeToCoords(a);a.el.css({left:a.left=l.left,right:-(a.right=l.right)}),a.el.appendTo(o)}return o}},t}(n(0).FillRenderer);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderSegs=function(e,t){for(var n=[],o=0,r=e;o<r.length;o++){var s=r[o],a=this.component.rangeToCoords(s);s.el.css({left:s.left=a.left,right:-(s.right=a.right)}),t&&t.resourceId===(null!=this.component.resource?this.component.resource.id:void 0)?s.el.css("top",t.el.css("top")):s.el.css("top",0)}var l=i('<div class="fc-event-container fc-helper-container"/>').appendTo(this.component.innerEl);n.push(l[0]);for(var c=0,u=e;c<u.length;c++){s=u[c];l.append(s.el)}return i(n)},t}(n(0).HelperRenderer);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(16),a=n(6),l=n(9),c=n(14),u=n(43),d=n(45),p=n(18),h=n(46),f=n(47),m=n(31),g=n(33),v=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.canHandleSpecificResources=!0,o.isResourceFootprintsEnabled=!0,o.nestingCnt=0,o.indiBizCnt=0,o.isIndiBizRendered=!1,o.isGenericBizRendered=!1,o.initResourceView(),o.processResourceOptions(),o.spreadsheet=new u.default(o),o.rowHierarchy=new p.default(o),o.rowHierarchy.isExpanded=!0,o.resourceRowHash={},o}return o.__extends(t,e),t.prototype.processResourceOptions=function(){var e=this.opt("resourceColumns")||[],t=this.opt("resourceLabelText"),n=null;e.length?n=t:e.push({labelText:t||"Resources",text:this.getResourceTextFunc()});for(var o=[],i=[],s=[],a=!1,l=!1,c=0,u=e;c<u.length;c++){var d=u[c];d.group?i.push(d):o.push(d)}if(o[0].isMain=!0,i.length)s=i,a=!0;else{var p=this.opt("resourceGroupField");p&&(l=!0,s.push({field:p,text:this.opt("resourceGroupText"),render:this.opt("resourceGroupRender")}))}for(var h=[],f=0,m=r.parseFieldSpecs(this.opt("resourceOrder"));f<m.length;f++){for(var g=m[f],v=!1,y=0,b=s;y<b.length;y++){var _=b[y];if(_.field===g.field){_.order=g.order,v=!0;break}}v||h.push(g)}this.superHeaderText=n,this.isVGrouping=a,this.isHGrouping=l,this.groupSpecs=s,this.colSpecs=i.concat(o),this.orderSpecs=h},t.prototype.renderSkeleton=function(){e.prototype.renderSkeleton.call(this);var t=this.calendar.theme;this.spreadsheet.el=this.el.find("tbody .fc-resource-area"),this.spreadsheet.headEl=this.el.find("thead .fc-resource-area"),this.spreadsheet.renderSkeleton(),this.segContainerEl.remove(),this.segContainerEl=null;var n=i('<div class="fc-rows"> <table class="'+t.getClass("tableGrid")+'"> <tbody/> </table> </div>').appendTo(this.timeBodyScroller.canvas.contentEl);this.timeBodyTbodyEl=n.find("tbody"),this.tbodyHash={spreadsheet:this.spreadsheet.tbodyEl,event:this.timeBodyTbodyEl},this.resourceScrollJoiner=new s.default("vertical",[this.spreadsheet.bodyScroller,this.timeBodyScroller]),this.initDividerMoving()},t.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'"> <thead class="fc-head"> <tr> <td class="fc-resource-area '+e.getClass("widgetHeader")+'"></td> <td class="fc-divider fc-col-resizer '+e.getClass("widgetHeader")+'"></td> <td class="fc-time-area '+e.getClass("widgetHeader")+'"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-resource-area '+e.getClass("widgetContent")+'"></td> <td class="fc-divider fc-col-resizer '+e.getClass("widgetHeader")+'"></td> <td class="fc-time-area '+e.getClass("widgetContent")+'"></td> </tr> </tbody> </table>'},t.prototype.initDividerMoving=function(){var e=this,t=this.opt("resourceAreaWidth");this.dividerEls=this.el.find(".fc-divider"),this.dividerWidth=null!=t?t:this.spreadsheet.tableWidth,null!=this.dividerWidth&&this.positionDivider(this.dividerWidth),this.dividerEls.on("mousedown",function(t){e.dividerMousedown(t)})},t.prototype.dividerMousedown=function(e){var t=this,n=this.opt("isRTL"),o=this.el.width()-30,i=this.getNaturalDividerWidth();new r.DragListener({dragStart:function(){t.dividerEls.addClass("fc-active")},drag:function(e,r){var s;s=n?i-e:i+e,s=Math.max(s,30),s=Math.min(s,o),t.dividerWidth=s,t.positionDivider(s),t.calendar.updateViewSize()},dragEnd:function(){t.dividerEls.removeClass("fc-active")}}).startInteraction(e)},t.prototype.getNaturalDividerWidth=function(){return this.el.find(".fc-resource-area").width()},t.prototype.positionDivider=function(e){this.el.find(".fc-resource-area").css("width",e)},t.prototype.updateSize=function(t,n,o){var i;this.rowsNeedingHeightSync?(this.syncRowHeights(this.rowsNeedingHeightSync),this.rowsNeedingHeightSync=null):this.syncRowHeights();var r=this.syncHeadHeights();i=n?"auto":t-r-this.queryMiscHeight(),this.timeBodyScroller.setHeight(i),this.spreadsheet.bodyScroller.setHeight(i),this.spreadsheet.updateSize(),e.prototype.updateSize.call(this,t,n,o),this.resourceScrollJoiner.update()},t.prototype.queryMiscHeight=function(){return this.el.outerHeight()-Math.max(this.spreadsheet.headScroller.el.outerHeight(),this.timeHeadScroller.el.outerHeight())-Math.max(this.spreadsheet.bodyScroller.el.outerHeight(),this.timeBodyScroller.el.outerHeight())},t.prototype.syncHeadHeights=function(){this.spreadsheet.headHeight("auto"),this.headHeight("auto");var e=Math.max(this.spreadsheet.headHeight(),this.headHeight());return this.spreadsheet.headHeight(e),this.headHeight(e),e},t.prototype.queryResourceScroll=function(){for(var e={},t=this.timeBodyScroller.scrollEl.offset().top,n=0,o=this.getVisibleRows();n<o.length;n++){var i=o[n];if(i.resource){var r=i.getTr("event"),s=r.offset().top+r.outerHeight();if(s>t){e.resourceId=i.resource.id,e.bottom=s-t;break}}}return e},t.prototype.applyResourceScroll=function(e){if(e.resourceId){var t=this.getResourceRow(e.resourceId);if(t){var n=t.getTr("event");if(n){var o=this.timeBodyScroller.canvas.el.offset().top,i=n.offset().top+n.outerHeight()-e.bottom-o;this.timeBodyScroller.setScrollTop(i),this.spreadsheet.bodyScroller.setScrollTop(i)}}}},t.prototype.scrollToResource=function(e){var t=this.getResourceRow(e.id);if(t){var n=t.getTr("event");if(n){var o=this.timeBodyScroller.canvas.el.offset().top,i=n.offset().top-o;this.timeBodyScroller.setScrollTop(i),this.spreadsheet.bodyScroller.setScrollTop(i)}}},t.prototype.prepareHits=function(){var t=[];e.prototype.prepareHits.call(this),this.eventRows=this.getEventRows(),this.eventRows.forEach(function(e){e.get("isInDom")&&t.push(e)});var n=t.map(function(e){return e.getTr("event")[0]});this.shownEventRows=t,this.rowCoordCache=new r.CoordCache({els:n,isVertical:!0}),this.rowCoordCache.build()},t.prototype.releaseHits=function(){e.prototype.releaseHits.call(this),this.eventRows=null,this.shownEventRows=null,this.rowCoordCache.clear()},t.prototype.queryHit=function(t,n){var o=e.prototype.queryHit.call(this,t,n);if(o){var i=this.rowCoordCache.getVerticalIndex(n);if(null!=i)return{resourceId:this.shownEventRows[i].resource.id,snap:o.snap,component:this,left:o.left,right:o.right,top:this.rowCoordCache.getTopOffset(i),bottom:this.rowCoordCache.getBottomOffset(i)}}},t.prototype.getHitFootprint=function(t){var n=e.prototype.getHitFootprint.call(this,t);return new a.default(n.unzonedRange,n.isAllDay,t.resourceId)},t.prototype.getHitEl=function(e){return this.getSnapEl(e.snap)},t.prototype.renderResources=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];this.renderResource(o)}},t.prototype.unrenderResources=function(){for(var e in this.rowHierarchy.removeElement(),this.rowHierarchy.removeChildren(),this.resourceRowHash)this.removeChild(this.resourceRowHash[e]);this.resourceRowHash={}},t.prototype.renderResource=function(e){this.insertResource(e)},t.prototype.unrenderResource=function(e){this.removeResource(e)},t.prototype.executeEventRender=function(e){var t,n={},o={};for(var i in e){var r=e[i],s=r.getEventDef(),a=s.getResourceIds();if(a.length)for(var l=0,c=a;l<c.length;l++){(n[t=c[l]]||(n[t]={}))[i]=r}else s.hasBgRendering()&&(o[i]=r)}for(t in this.eventRenderer.render(o),n){var u=n[t],d=this.getResourceRow(t);d&&d.executeEventRender(u)}},t.prototype.renderBusinessHours=function(e){if(this.genericBiz=e,this.isIndiBizRendered=!1,this.isGenericBizRendered=!1,this.indiBizCnt){this.isIndiBizRendered=!0;for(var t=0,n=this.getEventRows();t<n.length;t++){var o=n[t];o.renderBusinessHours(o.resource.businessHourGenerator||e)}}else this.isGenericBizRendered=!0,this.businessHourRenderer.render(e)},t.prototype.updateIndiBiz=function(){(this.indiBizCnt&&this.isGenericBizRendered||!this.indiBizCnt&&this.isIndiBizRendered)&&(this.unrenderBusinessHours(),this.renderBusinessHours(this.genericBiz))},t.prototype.insertResource=function(e,t){var n=!t,o=new h.default(this,e);t||(e.parent?t=this.getResourceRow(e.parent.id):e.parentId&&(t=this.getResourceRow(e.parentId))),t?this.insertRowAsChild(o,t):this.insertRow(o),this.addChild(o),this.resourceRowHash[e.id]=o,e.businessHourGenerator&&(this.indiBizCnt++,this.isIndiBizRendered&&(o.businessHourGenerator=e.businessHourGenerator),this.updateIndiBiz());for(var i=0,r=e.children;i<r.length;i++){var s=r[i];this.insertResource(s,o)}return n&&function(e){for(;e;){if(!e.isExpanded)return!1;e=e.parent}return!0}(o.parent)&&o.renderSkeleton(),o},t.prototype.removeResource=function(e){var t=this.resourceRowHash[e.id];return t&&(delete this.resourceRowHash[e.id],this.removeChild(t),t.removeFromParentAndDom(),e.businessHourGenerator&&(this.indiBizCnt--,this.updateIndiBiz())),t},t.prototype.insertRow=function(e,t,n){if(void 0===t&&(t=this.rowHierarchy),void 0===n&&(n=this.groupSpecs),n.length){var o=this.ensureResourceGroup(e,t,n[0]);o instanceof f.default?this.insertRowAsChild(e,o):this.insertRow(e,o,n.slice(1))}else this.insertRowAsChild(e,t)},t.prototype.insertRowAsChild=function(e,t){return t.addChildRowNode(e,this.computeChildRowPosition(e,t))},t.prototype.computeChildRowPosition=function(e,t){if(this.orderSpecs.length)for(var n=0;n<t.children.length;n++){var o=t.children[n];if(this.compareResources(o.resource||{},e.resource||{})>0)return n}return null},t.prototype.compareResources=function(e,t){return r.compareByFieldSpecs(e,t,this.orderSpecs)},t.prototype.ensureResourceGroup=function(e,t,n){var o,i,s=(e.resource||{})[n.field],a=null;if(n.order)for(o=0;o<t.children.length;o++){i=t.children[o];var l=r.flexibleCompare(i.groupValue,s)*n.order;if(0===l){a=i;break}if(l>0)break}else for(o=0;o<t.children.length;o++)if((i=t.children[o]).groupValue===s){a=i;break}return a||(a=this.isVGrouping?new m.default(this,n,s):new f.default(this,n,s),t.addChildRowNode(a,o),a.renderSkeleton()),a},t.prototype.descendantAdded=function(e){var t=this.isNesting,n=Boolean(this.nestingCnt+=e.depth?1:0);t!==n&&(this.el.toggleClass("fc-nested",n).toggleClass("fc-flat",!n),this.isNesting=n)},t.prototype.descendantRemoved=function(e){var t=this.isNesting,n=Boolean(this.nestingCnt-=e.depth?1:0);t!==n&&(this.el.toggleClass("fc-nested",n).toggleClass("fc-flat",!n),this.isNesting=n)},t.prototype.descendantShown=function(e){(this.rowsNeedingHeightSync||(this.rowsNeedingHeightSync=[])).push(e)},t.prototype.descendantHidden=function(e){this.rowsNeedingHeightSync||(this.rowsNeedingHeightSync=[])},t.prototype.syncRowHeights=function(e,t){void 0===e&&(e=this.getVisibleRows()),void 0===t&&(t=!1);for(var n=0,o=e;n<o.length;n++){o[n].setTrInnerHeight("")}for(var i=e.map(function(e){var n=e.getMaxTrInnerHeight();return t&&(n+=n%2),n}),r=0;r<e.length;r++){e[r].setTrInnerHeight(i[r])}if(!t){var s=this.spreadsheet.tbodyEl.height(),a=this.timeBodyTbodyEl.height();Math.abs(s-a)>1&&this.syncRowHeights(e,!0)}},t.prototype.getVisibleRows=function(){for(var e=[],t=0,n=this.rowHierarchy.getRows();t<n.length;t++){var o=n[t];o.get("isInDom")&&e.push(o)}return e},t.prototype.getEventRows=function(){return this.rowHierarchy.getRows().filter(function(e){return e instanceof g.default})},t.prototype.getResourceRow=function(e){return this.resourceRowHash[e]},t.prototype.renderSelectionFootprint=function(t){if(!t.resourceId)return e.prototype.renderSelectionFootprint.call(this,t);var n=this.getResourceRow(t.resourceId);return n?n.renderSelectionFootprint(t):void 0},t.prototype.renderEventResize=function(e,t,n){var o=y(e);for(var i in o){var r=o[i],s=this.getResourceRow(i);s.helperRenderer.renderEventDraggingFootprints(r,t,n);for(var a=0,l=r;a<l.length;a++){var c=l[a];s.renderHighlight(c.componentFootprint)}}},t.prototype.unrenderEventResize=function(){for(var e=0,t=this.getEventRows();e<t.length;e++){var n=t[e];n.helperRenderer.unrender(),n.unrenderHighlight()}},t.prototype.renderDrag=function(e,t,n){var o,i,r=y(e);if(t){for(i in r)o=r[i],this.getResourceRow(i).helperRenderer.renderEventDraggingFootprints(o,t,n);return!0}for(i in r)for(var s=0,a=o=r[i];s<a.length;s++){var l=a[s];this.getResourceRow(i).renderHighlight(l.componentFootprint)}return!1},t.prototype.unrenderDrag=function(){for(var e=0,t=this.getEventRows();e<t.length;e++){var n=t[e];n.helperRenderer.unrender(),n.unrenderHighlight()}},t}(c.default);function y(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n];(t[i.componentFootprint.resourceId]||(t[i.componentFootprint.resourceId]=[])).push(i)}return t}t.default=v,v.prototype.eventRendererClass=d.default,l.default.mixInto(v)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(t,n,o){var i=e.call(this,t,n,o)||this;return i.rowspan=0,i}return o.__extends(t,e),t.prototype.renderRowspan=function(){var e,t=this.view.calendar.theme;this.rowspan?(this.groupTd||(this.groupTd=i('<td class="'+t.getClass("widgetContent")+'"/>').append(this.renderGroupContentEl())),this.groupTd.attr("rowspan",this.rowspan),(e=this.getLeadingRow().getTr("spreadsheet"))!==this.leadingTr&&(e&&e.prepend(this.groupTd),this.leadingTr=e)):(this.groupTd&&(this.groupTd.remove(),this.groupTd=null),this.leadingTr=null)},t.prototype.descendantShown=function(t){this.rowspan+=1,this.renderRowspan(),e.prototype.descendantShown.call(this,t)},t.prototype.descendantHidden=function(t){this.rowspan-=1,this.renderRowspan(),e.prototype.descendantHidden.call(this,t)},t}(n(32).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.groupSpec=n,i.groupValue=o,i}return o.__extends(t,e),t.prototype.descendantRemoved=function(t){e.prototype.descendantRemoved.call(this,t),this.children.length||this.removeFromParentAndDom()},t.prototype.renderGroupContentEl=function(){var e=i('<div class="fc-cell-content" />').append(this.renderGroupTextEl()),t=this.groupSpec.render;return"function"==typeof t&&(e=t(e,this.groupValue)||e),e},t.prototype.renderGroupTextEl=function(){var e=this.groupValue||"",t=this.groupSpec.text;return"function"==typeof t&&(e=t(e)||e),i('<span class="fc-cell-text" />').text(e)},t}(n(18).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(18),s=n(28),a=n(17),l=n(29),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderEventSkeleton=function(e){var t=this.view.calendar.theme;e.html('<td class="'+t.getClass("widgetContent")+'"> <div> <div class="fc-event-container" /> </div> </td>'),this.segContainerEl=e.find(".fc-event-container"),this.innerEl=this.bgSegContainerEl=e.find("td > div")},t.prototype.rangeToCoords=function(e){return this.view.rangeToCoords(e)},t.prototype.componentFootprintToSegs=function(e){return this.view.componentFootprintToSegs(e)},t}(r.default);t.default=c,c.prototype.fillRendererClass=s.default,c.prototype.eventRendererClass=a.default,c.prototype.helperRendererClass=l.default,c.prototype.businessHourRendererClass=i.BusinessHourRenderer,c.prototype.hasOwnRow=!0},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);n(37),n(48),n(50),n(51),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68);if(o.schedulerVersion="1.9.4",12!==o.internalApiVersion)throw new Error("v1.9.4 of FullCalendar Scheduler is incompatible with v"+o.version+" of the core.\nPlease see http://fullcalendar.io/support/ for more information.")},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(20),r=n(22),s=n(23),a=n(14),l=n(30);o.ResourceAgendaView=i.default,o.ResourceBasicView=r.default,o.ResourceMonthView=s.default,o.TimelineView=a.default,o.ResourceTimelineView=l.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(21),a=n(6),l=function(e){function t(t){var n=e.call(this,t)||this;return n.isResourceFootprintsEnabled=!0,n}return o.__extends(t,e),t.prototype.renderDates=function(e){this.dateProfile=e,this.renderSlats()},t.prototype.renderResources=function(e){this.registerResources(e),this.renderColumns(),this.headContainerEl&&this.processHeadResourceEls(this.headContainerEl)},t.prototype.getHitFootprint=function(t){var n=e.prototype.getHitFootprint.call(this,t);return new a.default(n.unzonedRange,n.isAllDay,this.getColResource(t.col).id)},t.prototype.componentFootprintToSegs=function(e){for(var t=this.resourceCnt,n=[],o=0,r=this.sliceRangeByTimes(e.unzonedRange);o<r.length;o++)for(var s=r[o],l=0;l<t;l++){var c=this.flattenedResources[l];if(!(e instanceof a.default)||e.resourceId===c.id){var u=i.extend({},s);u.resource=c,u.col=this.indicesToCol(l,s.dayIndex),n.push(u)}}return n},t}(r.TimeGrid);t.default=l,s.default.mixInto(l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=null,a=function(e){function t(t){var n=e.call(this,t)||this;return n.isScrolling=!1,n.isTouching=!1,n.isTouchedEver=!1,n.isMoving=!1,n.isTouchScrollEnabled=!0,n.requestMovingEnd=r.debounce(n.reportMovingEnd,500),n}return o.__extends(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.canvas&&(this.canvas.render(),this.canvas.el.appendTo(this.scrollEl)),this.bindHandlers()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindHandlers()},t.prototype.disableTouchScroll=function(){this.isTouchScrollEnabled=!1,this.bindPreventTouchScroll()},t.prototype.enableTouchScroll=function(){this.isTouchScrollEnabled=!0,this.isTouching||this.unbindPreventTouchScroll()},t.prototype.bindPreventTouchScroll=function(){this.preventTouchScrollHandler||this.scrollEl.on("touchmove",this.preventTouchScrollHandler=r.preventDefault)},t.prototype.unbindPreventTouchScroll=function(){this.preventTouchScrollHandler&&(this.scrollEl.off("touchmove",this.preventTouchScrollHandler),this.preventTouchScrollHandler=null)},t.prototype.bindHandlers=function(){return this.listenTo(this.scrollEl,{scroll:this.reportScroll,touchstart:this.reportTouchStart,touchend:this.reportTouchEnd})},t.prototype.unbindHandlers=function(){return this.stopListeningTo(this.scrollEl)},t.prototype.reportScroll=function(){this.isScrolling||this.reportScrollStart(),this.trigger("scroll"),this.isMoving=!0,this.requestMovingEnd()},t.prototype.reportScrollStart=function(){this.isScrolling||(this.isScrolling=!0,this.trigger("scrollStart",this.isTouching))},t.prototype.reportMovingEnd=function(){this.isMoving=!1,this.isTouching||this.reportScrollEnd()},t.prototype.reportScrollEnd=function(){this.isScrolling&&(this.trigger("scrollEnd"),this.isScrolling=!1)},t.prototype.reportTouchStart=function(){this.isTouching=!0,this.isTouchedEver=!0},t.prototype.reportTouchEnd=function(){this.isTouching&&(this.isTouching=!1,this.isTouchScrollEnabled&&this.unbindPreventTouchScroll(),this.isMoving||this.reportScrollEnd())},t.prototype.getScrollLeft=function(){var e=this.scrollEl.css("direction"),t=this.scrollEl[0],n=t.scrollLeft;if("rtl"===e)switch(s){case"positive":n=n+t.clientWidth-t.scrollWidth;break;case"reverse":n=-n}return n},t.prototype.setScrollLeft=function(e){var t=this.scrollEl.css("direction"),n=this.scrollEl[0];if("rtl"===t)switch(s){case"positive":e=e-n.clientWidth+n.scrollWidth;break;case"reverse":e=-e}n.scrollLeft=e},t.prototype.getScrollFromLeft=function(){var e=this.scrollEl.css("direction"),t=this.scrollEl[0],n=t.scrollLeft;if("rtl"===e)switch(s){case"negative":n=n-t.clientWidth+t.scrollWidth;break;case"reverse":n=-n-t.clientWidth+t.scrollWidth}return n},t.prototype.getNativeScrollLeft=function(){return this.scrollEl[0].scrollLeft},t.prototype.setNativeScrollLeft=function(e){this.scrollEl[0].scrollLeft=e},t}(r.Scroller);t.default=a,r.EmitterMixin.mixInto(a),r.ListenerMixin.mixInto(a),i(function(){var e,t,n;e=i('<div style=" position: absolute; top: -1000px; width: 1px; height: 1px; overflow: scroll; direction: rtl; font-size: 100px; ">A</div>').appendTo("body"),t=e[0],n=t.scrollLeft>0?"positive":(t.scrollLeft=1,t.scrollLeft>0?"reverse":"negative"),e.remove(),s=n})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.segDragStart=function(t,n){e.prototype.segDragStart.call(this,t,n),this.component.eventTitleFollower&&this.component.eventTitleFollower.forceRelative()},t.prototype.segDragStop=function(t,n){e.prototype.segDragStop.call(this,t,n),this.component.eventTitleFollower&&this.component.eventTitleFollower.clearForce()},t}(n(0).EventDragging);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.segResizeStart=function(t,n){if(e.prototype.segResizeStart.call(this,t,n),this.component.eventTitleFollower)return this.component.eventTitleFollower.forceRelative()},t.prototype.segResizeStop=function(t,n){if(e.prototype.segResizeStop.call(this,t,n),this.component.eventTitleFollower)return this.component.eventTitleFollower.clearForce()},t}(n(0).EventResizing);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(15),r=n(0),s=18,a=6,l=200;r.MAX_TIMELINE_SLOTS=1e3;var c=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function u(e,t){var n=e.opt(t);if(null!=n){var o=i.duration(n);if(+o)return o}}function d(e){var t=e.dateProfile.currentUnzonedRange,n=e.labelInterval;if(!n){var o=void 0;if(e.slotDuration){for(var l=0,u=c;l<u.length;l++){o=u[l];var d=i.duration(o),p=r.divideDurationByDuration(d,e.slotDuration);if(r.isInt(p)&&p<=a){n=d;break}}n||(n=e.slotDuration)}else for(var h=0,f=c;h<f.length;h++){if(o=f[h],n=i.duration(o),r.divideRangeByDuration(t.getStart(),t.getEnd(),n)>=s)break}e.labelInterval=n}return n}t.initScaleProps=function(e){e.labelInterval=u(e,"slotLabelInterval"),e.slotDuration=u(e,"slotDuration"),function(e){var t=e.dateProfile.currentUnzonedRange;if(e.labelInterval){var n=r.divideRangeByDuration(t.getStart(),t.getEnd(),e.labelInterval);n>r.MAX_TIMELINE_SLOTS&&(r.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){var o=r.divideRangeByDuration(t.getStart(),t.getEnd(),e.slotDuration);o>r.MAX_TIMELINE_SLOTS&&(r.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){var i=r.divideDurationByDuration(e.labelInterval,e.slotDuration);(!r.isInt(i)||i<1)&&(r.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(e),d(e),function(e){var t=e.dateProfile.currentUnzonedRange,n=e.slotDuration;if(!n){for(var o=d(e),s=0,u=c;s<u.length;s++){var p=u[s],h=i.duration(p),f=r.divideDurationByDuration(o,h);if(r.isInt(f)&&f>1&&f<=a){n=h;break}}if(n){var m=r.divideRangeByDuration(t.getStart(),t.getEnd(),n);m>l&&(n=null)}n||(n=o),e.slotDuration=n}}(e);var t=e.opt("slotLabelFormat"),n=o.type(t);e.headerFormats="array"===n?t:"string"===n?[t]:function(e){var t,n,o=e.labelInterval,i=r.computeGreatestUnit(o),s=e.opt("weekNumbers"),l=t=n=null;switch("week"!==i||s||(i="day"),i){case"year":l="YYYY";break;case"month":e.currentRangeAs("years")>1&&(l="YYYY"),t="MMM";break;case"week":e.currentRangeAs("years")>1&&(l="YYYY"),t=e.opt("shortWeekFormat");break;case"day":e.currentRangeAs("years")>1?l=e.opt("monthYearFormat"):e.currentRangeAs("months")>1&&(l="MMMM"),s&&(t=e.opt("weekFormat")),n="dd D";break;case"hour":s&&(l=e.opt("weekFormat")),e.currentRangeAs("days")>1&&(t=e.opt("dayOfMonthFormat")),n=e.opt("smallTimeFormat");break;case"minute":o.asMinutes()/60>=a?(l=e.opt("hourFormat"),t="[:]mm"):l=e.opt("mediumTimeFormat");break;case"second":o.asSeconds()/60>=a?(l="LT",t="[:]ss"):l="LTS";break;case"millisecond":l="LTS",t="[.]SSS"}return[].concat(l||[],t||[],n||[])}(e),e.isTimeScale=r.durationHasTime(e.slotDuration);var s=null;if(!e.isTimeScale){var p=r.computeGreatestUnit(e.slotDuration);/year|month|week/.test(p)&&(s=p)}e.largeUnit=s,e.emphasizeWeeks=1===e.slotDuration.as("days")&&e.currentRangeAs("weeks")>=2&&!e.opt("businessHours");var h=e.opt("snapDuration");e.snapDuration=h?i.duration(h):e.slotDuration,e.snapsPerSlot=r.divideDurationByDuration(e.slotDuration,e.snapDuration)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(24),s=n(25),a=n(16),l=n(26),c=n(31),u=function(){function e(e){this.colGroupHtml="",this.view=e,this.isRTL=this.view.opt("isRTL"),this.givenColWidths=this.colWidths=this.view.colSpecs.map(function(e){return e.width})}return e.prototype.renderSkeleton=function(){var e=this.view.calendar.theme;this.headScroller=new r.default({overflowX:"clipped-scroll",overflowY:"hidden"}),this.headScroller.canvas=new s.default,this.headScroller.render(),this.headScroller.canvas.contentEl.html(this.renderHeadHtml()),this.headEl.append(this.headScroller.el),this.bodyScroller=new r.default({overflowY:"clipped-scroll"}),this.bodyScroller.canvas=new s.default,this.bodyScroller.render(),this.bodyScroller.canvas.contentEl.html('<div class="fc-rows"> <table class="'+e.getClass("tableGrid")+'">'+this.colGroupHtml+"<tbody/> </table> </div>"),this.tbodyEl=this.bodyScroller.canvas.contentEl.find("tbody"),this.el.append(this.bodyScroller.el),this.scrollJoiner=new a.default("horizontal",[this.headScroller,this.bodyScroller]),this.headTable=this.headEl.find("table"),this.headColEls=this.headEl.find("col"),this.headCellEls=this.headScroller.canvas.contentEl.find("tr:last-child th"),this.bodyColEls=this.el.find("col"),this.bodyTable=this.el.find("table"),this.colMinWidths=this.computeColMinWidths(),this.applyColWidths(),this.initColResizing()},e.prototype.renderHeadHtml=function(){for(var e=this.view.calendar.theme,t=this.view.colSpecs,n='<table class="'+e.getClass("tableGrid")+'">',o="<colgroup>",r=0,s=t;r<s.length;r++){(l=s[r]).isMain?o+='<col class="fc-main-col"/>':o+="<col/>"}o+="</colgroup>",this.colGroupHtml=o,n+=o,n+="<tbody>",this.view.superHeaderText&&(n+='<tr class="fc-super"><th class="'+e.getClass("widgetHeader")+'" colspan="'+t.length+'"><div class="fc-cell-content"><span class="fc-cell-text">'+i.htmlEscape(this.view.superHeaderText)+"</span></div></th></tr>"),n+="<tr>";for(var a=0;a<t.length;a++){var l=t[a],c=a===t.length-1;n+='<th class="'+e.getClass("widgetHeader")+'"><div><div class="fc-cell-content">'+(l.isMain?'<span class="fc-expander-space"><span class="fc-icon"></span></span>':"")+'<span class="fc-cell-text">'+i.htmlEscape(l.labelText||"")+"</span></div>"+(c?"":'<div class="fc-col-resizer"></div>')+"</div></th>"}return n+="</tr>",n+="</tbody></table>"},e.prototype.initColResizing=function(){var e=this;this.headEl.find("th .fc-col-resizer").each(function(t,n){(n=o(n)).on("mousedown",function(o){e.colResizeMousedown(t,o,n)})})},e.prototype.colResizeMousedown=function(e,t,n){var o=this,r=this.colWidths=this.queryColWidths();r.pop(),r.push(null);var s=r[e],a=Math.min(this.colMinWidths[e],30);new i.DragListener({dragStart:function(){n.addClass("fc-active")},drag:function(t,n){var i=s+(o.isRTL?-t:t);i=Math.max(i,a),r[e]=i,o.applyColWidths()},dragEnd:function(){n.removeClass("fc-active")}}).startInteraction(t)},e.prototype.applyColWidths=function(){for(var e,t,n,o=this.colMinWidths,i=this.colWidths,r=!0,s=!1,a=0,l=0,c=i;l<c.length;l++)"number"==typeof(n=c[l])?a+=n:(r=!1,n&&(s=!0));var u=s&&!this.view.isHGrouping?"auto":"",d=i.map(function(e){return null!=e?e:u}),p=0;for(t=0;t<d.length;t++)p+="number"==typeof(e=d[t])?e:o[t];for(t=0;t<d.length;t++)e=d[t],this.headColEls.eq(t).css("width",e),this.bodyColEls.eq(t).css("width",e);this.headScroller.canvas.setMinWidth(p),this.bodyScroller.canvas.setMinWidth(p),this.tableMinWidth=p,this.tableWidth=r?a:void 0},e.prototype.computeColMinWidths=function(){var e=this;return this.givenColWidths.map(function(t,n){return"number"==typeof t?t:parseInt(e.headColEls.eq(n).css("min-width"),10)||30})},e.prototype.queryColWidths=function(){return this.headCellEls.map(function(e,t){return o(t).outerWidth()}).get()},e.prototype.updateSize=function(){this.headScroller.updateSize(),this.bodyScroller.updateSize(),this.scrollJoiner.update(),this.updateCellFollower()},e.prototype.headHeight=function(){var e=this.headScroller.canvas.contentEl.find("table");return e.height.apply(e,arguments)},e.prototype.updateCellFollower=function(){this.cellFollower&&this.cellFollower.clearSprites(),this.cellFollower=new l.default(this.bodyScroller,!0),this.cellFollower.isHFollowing=!1,this.cellFollower.isVFollowing=!0;for(var e=[],t=0,n=this.view.rowHierarchy.getNodes();t<n.length;t++){var i=n[t];if(i instanceof c.default&&i.groupTd){var r=i.groupTd.find(".fc-cell-content");r.length&&e.push(r[0])}}this.cellFollower.setSpriteEls(o(e)),this.cellFollower.update()},e}();t.default=u},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getOwnCells=function(e){return e.find("> td").filter(function(e,t){return t.rowSpan<=1})}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderFgRanges=function(e){},t.prototype.unrenderFgRanges=function(){},t}(n(17).default);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=n(33),a=function(e){function t(t,n){var o=e.call(this,t)||this;return o.resource=n,o.eventRenderer.designatedResource=o.resource,o}return o.__extends(t,e),t.prototype.renderSkeleton=function(){e.prototype.renderSkeleton.call(this),this.updateExpandingEnabled(),this.eventsPayload&&s.default.prototype.executeEventRender.call(this,this.eventsPayload),this.businessHourGenerator&&this.view.dateProfile&&s.default.prototype.renderBusinessHours.call(this,this.businessHourGenerator),this.view.publiclyTrigger("resourceRender",{context:this.resource,args:[this.resource,this.getTr("spreadsheet").find("> td"),this.getTr("event").find("> td"),this.view]})},t.prototype.removeElement=function(){e.prototype.removeElement.call(this),this.eventsPayload&&s.default.prototype.executeEventUnrender.call(this,this.eventsPayload),this.businessHourGenerator&&s.default.prototype.unrenderBusinessHours.call(this,this.businessHourGenerator)},t.prototype.renderEventSkeleton=function(t){e.prototype.renderEventSkeleton.call(this,t),t.attr("data-resource-id",this.resource.id)},t.prototype.executeEventRender=function(t){this.eventsPayload=t,this.get("isInDom")&&e.prototype.executeEventRender.call(this,this.eventsPayload)},t.prototype.executeEventUnrender=function(){e.prototype.executeEventUnrender.call(this),this.eventsPayload=null},t.prototype.renderBusinessHours=function(t){this.businessHourGenerator=t,this.get("isInDom")&&e.prototype.renderBusinessHours.call(this,this.businessHourGenerator)},t.prototype.unrenderBusinessHours=function(){e.prototype.unrenderBusinessHours.call(this),this.businessHourGenerator=null},t.prototype.renderSpreadsheetSkeleton=function(e){for(var t=this.view.calendar.theme,n=this.resource,o=0,s=this.view.colSpecs;o<s.length;o++){var a=s[o];if(!a.group){var l=a.field?n[a.field]||null:n,c="function"==typeof a.text?a.text(n,l):l,u=i('<div class="fc-cell-content">'+(a.isMain?this.renderGutterHtml():"")+'<span class="fc-cell-text">'+(c?r.htmlEscape(c):" ")+"</span></div>");"function"==typeof a.render&&(u=a.render(n,u,l)||u);var d=i('<td class="'+t.getClass("widgetContent")+'"/>').append(u);a.isMain&&d.wrapInner("<div/>"),e.append(d)}}e.attr("data-resource-id",n.id)},t.prototype.renderGutterHtml=function(){for(var e="",t=this.depth,n=0;n<t;n++)e+='<span class="fc-icon"/>';return e+='<span class="fc-expander-space"><span class="fc-icon"></span></span>'},t}(s.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderSkeleton=function(){e.prototype.renderSkeleton.call(this),this.updateExpandingEnabled()},t.prototype.renderSpreadsheetSkeleton=function(e){var t=this.renderGroupContentEl();return t.prepend('<span class="fc-expander"><span class="fc-icon"></span></span>'),i('<td class="fc-divider" />').attr("colspan",this.view.colSpecs.length).append(i("<div/>").append(t)).appendTo(e)},t.prototype.renderEventSkeleton=function(e){return e.append('<td class="fc-divider"> <div/> </td>')},t}(n(32).default);t.default=r,r.prototype.hasOwnRow=!0},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(19),s=n(49),a=n(6),l={constructed:i.Calendar.prototype.constructed,buildSelectFootprint:i.Calendar.prototype.buildSelectFootprint};i.Calendar.defaults.refetchResourcesOnNavigate=!1,i.Calendar.defaults.filterResourcesWithEvents=!1,i.Calendar.prototype.resourceManager=null,i.Calendar.prototype.constructed=function(){l.constructed.apply(this,arguments),this.resourceManager=new s.default(this)},i.Calendar.prototype.instantiateView=function(e){var t=this.viewSpecManager.getViewSpec(e),n=t.class;return this.opt("resources")&&!1!==t.options.resources&&(t.queryResourceClass?n=t.queryResourceClass(t)||n:t.resourceClass&&(n=t.resourceClass)),new n(this,t)},i.Calendar.prototype.getResources=function(){return Array.prototype.slice.call(this.resourceManager.topLevelResources)},i.Calendar.prototype.addResource=function(e,t){var n=this;void 0===t&&(t=!1),this.resourceManager.addResource(e).then(function(e){if(t&&n.view.scrollToResource)return n.view.scrollToResource(e)})},i.Calendar.prototype.removeResource=function(e){return this.resourceManager.removeResource(e)},i.Calendar.prototype.refetchResources=function(){this.resourceManager.clear(),this.view.flash("initialResources")},i.Calendar.prototype.rerenderResources=function(){this.resourceManager.resetCurrentResources()},i.Calendar.prototype.buildSelectFootprint=function(e,t,n){var o=l.buildSelectFootprint.apply(this,arguments);return n?new a.default(o.unzonedRange,o.isAllDay,n):o},i.Calendar.prototype.getResourceById=function(e){return this.resourceManager.getResourceById(e)},i.Calendar.prototype.getEventResourceId=function(e){return this.getEventResourceIds(e)[0]},i.Calendar.prototype.getEventResourceIds=function(e){var t=this.eventManager.getEventDefByUid(e._id);return t?t.getResourceIds():[]},i.Calendar.prototype.setEventResourceId=function(e,t){this.setEventResourceIds(e,t?[t]:[])},i.Calendar.prototype.setEventResourceIds=function(e,t){var n=this.eventManager.getEventDefByUid(e._id);n&&(n.resourceIds=t.map(function(e){return r.default.normalizeId(e)}))},i.Calendar.prototype.getResourceEvents=function(e){var t=this,n="object"==typeof e?e:this.getResourceById(e);return n?this.clientEvents(function(e){return-1!==o.inArray(n.id,t.getEventResourceIds(e))}):[]},i.Calendar.prototype.getEventResource=function(e){return this.getEventResources(e)[0]},i.Calendar.prototype.getEventResources=function(e){var t="object"==typeof e?e:this.clientEvents(e)[0],n=[];if(t)for(var o=0,i=this.getEventResourceIds(t);o<i.length;o++){var r=i[o],s=this.getResourceById(r);s&&n.push(s)}return n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=n(0),s=function(e){function t(t){var n=e.call(this)||this;return n.fetchId=0,n.calendar=t,n.initializeCache(),n}return o.__extends(t,e),t.prototype.getResources=function(e,t){var n=!e&&!this.currentStart||e&&this.currentStart&&e.isSame(this.currentStart)&&t.isSame(this.currentEnd);return this.fetching&&n?this.fetching:this.fetchResources(e,t)},t.prototype.fetchResources=function(e,t){var n=this,o=this.fetchId+=1;return this.fetching=r.Promise.construct(function(i,r){n.fetchResourceInputs(function(e){return o===n.fetchId?(n.setResources(e),i(n.topLevelResources)):r()},e,t)})},t.prototype.fetchResourceInputs=function(e,n,o){var r=this,s=this.calendar,a=s.opt("resources"),l=s.opt("timezone");switch("string"===i.type(a)&&(a={url:a}),i.type(a)){case"function":this.calendar.pushLoading(),a(function(t){r.calendar.popLoading(),e(t)},n,o,s.opt("timezone"));break;case"object":s.pushLoading();var c={};n&&o&&(c[s.opt("startParam")]=n.format(),c[s.opt("endParam")]=o.format(),l&&"local"!==l&&(c[s.opt("timezoneParam")]=l)),i.ajax(i.extend({data:c},t.ajaxDefaults,a)).then(function(t){s.popLoading(),e(t)});break;case"array":e(a);break;default:e([])}},t.prototype.getResourceById=function(e){return this.resourcesById[e]},t.prototype.getFlatResources=function(){var e=[];for(var t in this.resourcesById)e.push(this.resourcesById[t]);return e},t.prototype.initializeCache=function(){this.topLevelResources=[],this.resourcesById={}},t.prototype.setResources=function(e){var t,n=this,o=Boolean(this.topLevelResources);this.initializeCache();for(var i=[],r=0,s=e.map(function(e){return n.buildResource(e)});r<s.length;r++)t=s[r],this.addResourceToIndex(t)&&i.push(t);for(var a=0,l=i;a<l.length;a++)t=l[a],this.addResourceToTree(t);o?this.trigger("reset",this.topLevelResources):this.trigger("set",this.topLevelResources),this.calendar.publiclyTrigger("resourcesSet",[this.topLevelResources])},t.prototype.resetCurrentResources=function(){this.topLevelResources&&this.trigger("reset",this.topLevelResources)},t.prototype.clear=function(){this.topLevelResources=null,this.fetching=null},t.prototype.addResource=function(e){var t=this;return this.fetching?this.fetching.then(function(){var n=t.buildResource(e);return!!t.addResourceToIndex(n)&&(t.addResourceToTree(n),t.trigger("add",n,t.topLevelResources),n)}):r.Promise.reject()},t.prototype.addResourceToIndex=function(e){if(this.resourcesById[e.id])return!1;this.resourcesById[e.id]=e;for(var t=0,n=e.children;t<n.length;t++){var o=n[t];this.addResourceToIndex(o)}return!0},t.prototype.addResourceToTree=function(e){if(!e.parent){var t=void 0,n=String(null!=e.parentId?e.parentId:"");if(n){var o=this.resourcesById[n];if(!o)return!1;e.parent=o,t=o.children}else t=this.topLevelResources;t.push(e)}return!0},t.prototype.removeResource=function(e){var t=this,n="object"==typeof e?e.id:e;return this.fetching?this.fetching.then(function(){var e=t.removeResourceFromIndex(n);return e&&(t.removeResourceFromTree(e),t.trigger("remove",e,t.topLevelResources)),e}):r.Promise.reject()},t.prototype.removeResourceFromIndex=function(e){var t=this.resourcesById[e];if(t){delete this.resourcesById[e];for(var n=0,o=t.children;n<o.length;n++){var i=o[n];this.removeResourceFromIndex(i.id)}return t}return!1},t.prototype.removeResourceFromTree=function(e,t){void 0===t&&(t=this.topLevelResources);for(var n=0;n<t.length;n++){var o=t[n];if(o===e)return e.parent=null,t.splice(n,1),!0;if(this.removeResourceFromTree(e,o.children))return!0}return!1},t.prototype.buildResource=function(e){var n=this,o=i.extend({},e),s=e.eventClassName;return o.id=String(null!=e.id?e.id:"_fc"+t.resourceGuid++),o.eventClassName=function(){switch(i.type(s)){case"string":return s.split(/\s+/);case"array":return s;default:return[]}}(),e.businessHours&&(o.businessHourGenerator=new r.BusinessHourGenerator(e.businessHours,this.calendar)),o.children=(e.children||[]).map(function(e){var t=n.buildResource(e);return t.parent=o,t}),o},t.resourceGuid=1,t.ajaxDefaults={dataType:"json",cache:!1},t}(r.Class);t.default=s,r.EmitterMixin.mixInto(s)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(19),s=n(6),a={getPeerEventInstances:i.Constraints.prototype.getPeerEventInstances,isFootprintAllowed:i.Constraints.prototype.isFootprintAllowed,buildCurrentBusinessFootprints:i.Constraints.prototype.buildCurrentBusinessFootprints,footprintContainsFootprint:i.Constraints.prototype.footprintContainsFootprint,footprintsIntersect:i.Constraints.prototype.footprintsIntersect,eventRangeToEventFootprints:i.Constraints.prototype.eventRangeToEventFootprints,parseFootprints:i.Constraints.prototype.parseFootprints};i.Constraints.prototype.getPeerEventInstances=function(e){var t=e.getResourceIds(),n=a.getPeerEventInstances.apply(this,arguments);return t.length?n.filter(function(e){if(!e.def.resourceIds.length)return!0;for(var n=0,o=t;n<o.length;n++){var i=o[n];if(e.def.hasResourceId(i))return!0}return!1}):n},i.Constraints.prototype.isFootprintAllowed=function(e,t,n,i,l){if("object"==typeof n){var c=r.default.extractIds(n,this);if(c.length&&(!(e instanceof s.default)||-1===o.inArray(e.resourceId,c)))return!1}return a.isFootprintAllowed.apply(this,arguments)},i.Constraints.prototype.buildCurrentBusinessFootprints=function(e){for(var t=this._calendar.resourceManager.getFlatResources(),n=!1,o=0,i=t;o<i.length;o++){(h=i[o]).businessHourGenerator&&(n=!0)}if(n){for(var r=this._calendar.view,l=r.get("businessHourGenerator"),c=r.dateProfile.activeUnzonedRange,u=[],d=0,p=t;d<p.length;d++){var h,f=((h=p[d]).businessHourGenerator||l).buildEventInstanceGroup(e,c);if(f)for(var m=0,g=f.getAllEventRanges();m<g.length;m++){var v=g[m];u.push(new s.default(v.unzonedRange,e,h.id))}}return u}return a.buildCurrentBusinessFootprints.apply(this,arguments)},i.Constraints.prototype.footprintContainsFootprint=function(e,t){return(!(e instanceof s.default)||t instanceof s.default&&t.resourceId===e.resourceId)&&a.footprintContainsFootprint.apply(this,arguments)},i.Constraints.prototype.footprintsIntersect=function(e,t){return!(e instanceof s.default&&t instanceof s.default&&e.resourceId!==t.resourceId)&&a.footprintsIntersect.apply(this,arguments)},i.Constraints.prototype.eventRangeToEventFootprints=function(e){var t=e.eventDef,n=t.getResourceIds();return n.length?n.map(function(n){return new i.EventFootprint(new s.default(e.unzonedRange,t.isAllDay(),n),t,e.eventInstance)}):a.eventRangeToEventFootprints.apply(this,arguments)},i.Constraints.prototype.parseFootprints=function(e){var t=a.parseFootprints.apply(this,arguments),n=e.resourceIds||[];if(e.resourceId&&(n=[e.resourceId].concat(n)),n.length){for(var o=[],i=0,r=n;i<r.length;i++)for(var l=r[i],c=0,u=t;c<u.length;c++){var d=u[c];o.push(new s.default(d.unzonedRange,d.isAllDay,l))}return o}return t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(52),r={setElement:o.View.prototype.setElement,removeElement:o.View.prototype.removeElement,triggerViewRender:o.View.prototype.triggerViewRender};o.View.prototype.canHandleSpecificResources=!1,o.View.prototype.setElement=function(){r.setElement.apply(this,arguments),this.watchResources()},o.View.prototype.removeElement=function(){this.unwatchResources(),r.removeElement.apply(this,arguments)},o.View.prototype.triggerViewRender=function(){i.processLicenseKey(this.opt("schedulerLicenseKey"),this.el),r.triggerViewRender.apply(this,arguments)},o.View.prototype.watchResources=function(){var e=this,t=[],n=["initialResources"];this.opt("refetchResourcesOnNavigate")&&t.push("dateProfile"),this.opt("filterResourcesWithEvents")&&n.push("currentEvents"),this.watch("initialResources",t,function(t){return e.getInitialResources(t.dateProfile)}),this.watch("bindingResources",n,function(t){e.bindResourceChanges(t.currentEvents),e.setResources(t.initialResources,t.currentEvents)},function(){e.unbindResourceChanges(),e.unsetResources()})},o.View.prototype.unwatchResources=function(){this.unwatch("initialResources"),this.unwatch("bindingResources")},o.View.prototype.getInitialResources=function(e){var t=this.calendar;return e?t.resourceManager.getResources(t.msToMoment(e.activeUnzonedRange.startMs,e.isRangeAllDay),t.msToMoment(e.activeUnzonedRange.endMs,e.isRangeAllDay)):t.resourceManager.getResources()},o.View.prototype.bindResourceChanges=function(e){var t=this;this.listenTo(this.calendar.resourceManager,{set:function(n){t.setResources(n,e)},unset:function(){t.unsetResources()},reset:function(n){t.resetResources(n,e)},add:function(n,o){t.addResource(n,o,e)},remove:function(n,o){t.removeResource(n,o,e)}})},o.View.prototype.unbindResourceChanges=function(){this.stopListeningTo(this.calendar.resourceManager)},o.View.watch("displayingEvents",["displayingDates","hasEvents","currentResources"],function(e){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),o.View.prototype.setResources=function(e,t){t&&(e=this.filterResourcesWithEvents(e,t)),this.set("currentResources",e),this.set("hasResources",!0)},o.View.prototype.unsetResources=function(){this.unset("currentResources"),this.unset("hasResources")},o.View.prototype.resetResources=function(e,t){this.startBatchRender(),this.unsetResources(),this.setResources(e,t),this.stopBatchRender()},o.View.prototype.addResource=function(e,t,n){if(this.canHandleSpecificResources){if(n)this.filterResourcesWithEvents([e],n).length||(e=null);e&&(this.set("currentResources",t),this.handleResourceAdd(e))}else this.resetResources(t,n)},o.View.prototype.removeResource=function(e,t,n){this.canHandleSpecificResources?(this.set("currentResources",t),this.handleResourceRemove(e)):this.resetResources(t,n)},o.View.prototype.handleResourceAdd=function(e){},o.View.prototype.handleResourceRemove=function(e){},o.View.prototype.filterResourcesWithEvents=function(e,t){for(var n={},o=0,i=this.eventsPayloadToRanges(t);o<i.length;o++)for(var r=0,s=i[o].eventDef.getResourceIds();r<s.length;r++){n[s[r]]=!0}return function e(t,n){var o=[];for(var i=0,r=t;i<r.length;i++){var s=r[i];if(s.children.length){var a=e(s.children,n);if(a.length||n[s.id]){var l=Object.create(s);l.children=a,o.push(l)}}else n[s.id]&&o.push(s)}return o}(e,n)},o.View.prototype.eventsPayloadToRanges=function(e){var t=this._getDateProfile(),n=[];for(var o in e){var i=e[o].sliceRenderRanges(t.activeUnzonedRange);n.push.apply(n,i||[])}return n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(15),r=n(0),s="2018-03-28",a={years:1,weeks:1},l="http://fullcalendar.io/scheduler/license/",c=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"];function u(e){if(-1!==o.inArray(e,c))return!0;var t=(e||"").match(/^(\d+)\-fcs\-(\d+)$/);if(t&&10===t[1].length){var n=i.utc(1e3*parseInt(t[2],10)),l=i.utc(r.mockSchedulerReleaseDate||s);if(l.isValid()){var u=l.clone().subtract(a);if(n.isAfter(u))return!0}}return!1}function d(e){return/\w+\:\/\/fullcalendar\.io\/|\/demos\/[\w-]+\.html$/.test(e)}function p(e,t){return t.append(o('<div class="fc-license-message" />').html(e))}function h(e){return e.find(".fc-license-message").length>=1}t.processLicenseKey=function(e,t){if(!d(window.location.href)&&!u(e)&&!h(t))return p('Please use a valid license key. <a href="'+l+'">More Info</a>',t)},t.isValidKey=u,t.isImmuneUrl=d,t.renderingWarningInContainer=p,t.detectWarningInContainer=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(6),r={eventRangeToEventFootprints:o.DateComponent.prototype.eventRangeToEventFootprints};o.DateComponent.prototype.isResourceFootprintsEnabled=!1,o.DateComponent.prototype.eventRangeToEventFootprints=function(e){if(this.isResourceFootprintsEnabled){var t=e.eventDef,n=t.getResourceIds();return n.length?n.map(function(n){return new o.EventFootprint(new i.default(e.unzonedRange,t.isAllDay(),n),t,e.eventInstance)}):t.hasBgRendering()?r.eventRangeToEventFootprints.apply(this,arguments):[]}return r.eventRangeToEventFootprints.apply(this,arguments)},o.DateComponent.prototype.renderResources=function(e){this.callChildren("renderResources",arguments)},o.DateComponent.prototype.unrenderResources=function(){this.callChildren("unrenderResources",arguments)},o.DateComponent.prototype.renderResource=function(e){this.callChildren("renderResource",arguments)},o.DateComponent.prototype.unrenderResource=function(e){this.callChildren("unrenderResource",arguments)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i={isEventDefDraggable:o.InteractiveDateComponent.prototype.isEventDefDraggable};o.InteractiveDateComponent.prototype.allowCrossResource=!0,o.InteractiveDateComponent.prototype.isEventDefDraggable=function(e){return this.isEventDefResourceEditable(e)||i.isEventDefDraggable.call(this,e)},o.InteractiveDateComponent.prototype.isEventDefResourceEditable=function(e){var t=e.resourceEditable;return null==t&&null==(t=(e.source||{}).resourceEditable)&&null==(t=this.opt("eventResourceEditable"))&&(t=this.isEventDefGenerallyEditable(e)),t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i={getFallbackStylingObjs:o.EventRenderer.prototype.getFallbackStylingObjs};function r(e,t){return e.view.calendar.resourceManager.getResourceById(t)}o.EventRenderer.prototype.designatedResource=null,o.EventRenderer.prototype.currentResource=null,o.EventRenderer.prototype.beforeFgSegHtml=function(e){var t=e.footprint.componentFootprint.resourceId;this.designatedResource?this.currentResource=this.designatedResource:this.currentResource=t?r(this,t):null},o.EventRenderer.prototype.getFallbackStylingObjs=function(e){var t=i.getFallbackStylingObjs.apply(this,arguments);if(this.currentResource)t.unshift(this.currentResource);else{for(var n=[],o=0,s=e.getResourceIds();o<s.length;o++){var a=r(this,s[o]);a&&n.push(a)}t=n.concat(t)}return t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(6),r={computeSelectionFootprint:o.DateSelecting.prototype.computeSelectionFootprint};o.DateSelecting.prototype.computeSelectionFootprint=function(e,t){if(e.resourceId&&t.resourceId&&e.resourceId!==t.resourceId&&!this.component.allowCrossResource)return null;var n=r.computeSelectionFootprint.apply(this,arguments);return e.resourceId&&(n=new i.default(n.unzonedRange,n.isAllDay,e.resourceId)),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i={computeEventDropMutation:o.EventDragging.prototype.computeEventDropMutation};o.EventDragging.prototype.computeEventDropMutation=function(e,t,n){var r=this.component.isEventDefStartEditable(n);if(e.resourceId&&t.resourceId&&e.resourceId!==t.resourceId&&this.component.isEventDefResourceEditable(n)){var s=new o.EventDefMutation;return s.oldResourceId=e.resourceId,s.newResourceId=t.resourceId,r&&s.setDateMutation(this.computeEventDateMutation(e,t)),s}if(r)return i.computeEventDropMutation.apply(this,arguments)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i={computeEventStartResizeMutation:o.EventResizing.prototype.computeEventStartResizeMutation,computeEventEndResizeMutation:o.EventResizing.prototype.computeEventEndResizeMutation};o.EventResizing.prototype.computeEventStartResizeMutation=function(e,t,n){return e.resourceId&&t.resourceId&&e.resourceId!==t.resourceId&&!this.component.allowCrossResource?null:i.computeEventStartResizeMutation.apply(this,arguments)},o.EventResizing.prototype.computeEventEndResizeMutation=function(e,t,n){return e.resourceId&&t.resourceId&&e.resourceId!==t.resourceId&&!this.component.allowCrossResource?null:i.computeEventEndResizeMutation.apply(this,arguments)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i={computeExternalDrop:o.ExternalDropping.prototype.computeExternalDrop};o.ExternalDropping.prototype.computeExternalDrop=function(e,t){var n=i.computeExternalDrop.apply(this,arguments);return e.resourceId&&n.addResourceId(e.resourceId),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(0).EventSource.prototype.standardPropMap.resourceEditable=!0},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(19),s={applyMiscProps:i.EventDef.prototype.applyMiscProps,clone:i.EventDef.prototype.clone,toLegacy:i.EventDef.prototype.toLegacy};i.EventDef.defineStandardProps({resourceEditable:!0}),i.EventDef.prototype.resourceIds=null,i.EventDef.prototype.resourceEditable=null,i.EventDef.prototype.applyMiscProps=function(e){e=o.extend({},e),this.resourceIds=r.default.extractIds(e,this.source.calendar),delete e.resourceId,delete e.resourceIds,s.applyMiscProps.apply(this,arguments)},i.EventDef.prototype.hasResourceId=function(e){return-1!==o.inArray(e,this.resourceIds)},i.EventDef.prototype.removeResourceId=function(e){i.removeExact(this.resourceIds,e)},i.EventDef.prototype.addResourceId=function(e){this.hasResourceId(e)||this.resourceIds.push(e)},i.EventDef.prototype.getResourceIds=function(){return this.resourceIds?this.resourceIds.slice():[]},i.EventDef.prototype.clone=function(){var e=s.clone.apply(this,arguments);return e.resourceIds=this.getResourceIds(),e},i.EventDef.prototype.toLegacy=function(){var e=s.toLegacy.apply(this,arguments),t=this.getResourceIds();return e.resourceId=1===t.length?t[0]:null,e.resourceIds=t.length>1?t:null,null!=this.resourceEditable&&(e.resourceEditable=this.resourceEditable),e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=o.EventDefMutation.prototype.mutateSingle;o.EventDefMutation.prototype.oldResourceId=null,o.EventDefMutation.prototype.newResourceId=null,o.EventDefMutation.prototype.mutateSingle=function(e){var t=i.apply(this,arguments),n=null;return this.oldResourceId&&e.hasResourceId(this.oldResourceId)&&(n=e.getResourceIds(),e.removeResourceId(this.oldResourceId),e.addResourceId(this.newResourceId)),function(){t(),n&&(e.resourceIds=n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(14);o.defineView("timeline",{class:i.default,defaults:{eventResizableFromStart:!0}}),o.defineView("timelineDay",{type:"timeline",duration:{days:1}}),o.defineView("timelineWeek",{type:"timeline",duration:{weeks:1}}),o.defineView("timelineMonth",{type:"timeline",duration:{months:1}}),o.defineView("timelineYear",{type:"timeline",duration:{years:1}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(30);o.getViewConfig("timeline").resourceClass=i.default,o.Calendar.defaults.resourcesInitiallyExpanded=!0},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(22),r=n(23);o.getViewConfig("basic").queryResourceClass=function(e){var t=e.options.groupByResource||e.options.groupByDateAndResource,n=!1;if(null!=t?n=t:e.duration&&(n=1===e.duration.as("days")),n)return i.default},o.getViewConfig("month").queryResourceClass=function(e){if(e.options.groupByResource||e.options.groupByDateAndResource)return r.default}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(20);o.getViewConfig("agenda").queryResourceClass=function(e){var t=e.options.groupByResource||e.options.groupByDateAndResource,n=!1;if(null!=t?n=t:e.duration&&(n=1===e.duration.as("days")),n)return i.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}])},e.exports=o(n(991),n(941),n(0))},1050:function(e,t,n){var o=n(90)(n(1051),n(1063),!1,null,null,null);e.exports=o.exports},1051:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1052),i=n.n(o),r=n(1062),s=n.n(r),a=n(991),l=(n.n(a),n(941)),c=n.n(l);t.default={props:{events:{default:function(){return[]}},eventSources:{default:function(){return[]}},editable:{default:function(){return!0}},selectable:{default:function(){return!0}},selectHelper:{default:function(){return!0}},header:{default:function(){return{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"}}},defaultView:{default:function(){return"agendaWeek"}},sync:{default:function(){return!1}},config:{type:Object,default:function(){return{}}}},computed:{defaultConfig:function(){var e=this;return{header:this.header,defaultView:this.defaultView,editable:this.editable,selectable:this.selectable,selectHelper:this.selectHelper,aspectRatio:2,timeFormat:"HH:mm",events:this.events,eventSources:this.eventSources,eventRender:function(){this.sync&&(e.events=cal.fullCalendar("clientEvents"));for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["event-render"].concat(i()(n)))},viewRender:function(){this.sync&&(e.events=cal.fullCalendar("clientEvents"));for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["view-render"].concat(i()(n)))},eventDestroy:function(t){this.sync&&(e.events=cal.fullCalendar("clientEvents"))},eventClick:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["event-selected"].concat(i()(n)))},eventDrop:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["event-drop"].concat(i()(n)))},eventReceive:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["event-receive"].concat(i()(n)))},eventResize:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["event-resize"].concat(i()(n)))},dayClick:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.$emit.apply(e,["day-click"].concat(i()(n)))},select:function(t,n,o,i,r){e.$emit("event-created",{start:t,end:n,allDay:!t.hasTime()&&!n.hasTime(),view:i,resource:r})}}}},mounted:function(){var e=this,t=c()(this.$el);this.$on("remove-event",function(t){t&&t.hasOwnProperty("id")?c()(e.$el).fullCalendar("removeEvents",t.id):c()(e.$el).fullCalendar("removeEvents",t)}),this.$on("rerender-events",function(){c()(e.$el).fullCalendar("rerenderEvents")}),this.$on("refetch-events",function(){c()(e.$el).fullCalendar("refetchEvents")}),this.$on("render-event",function(t){c()(e.$el).fullCalendar("renderEvent",t)}),this.$on("reload-events",function(){c()(e.$el).fullCalendar("removeEvents"),c()(e.$el).fullCalendar("addEventSource",e.events)}),this.$on("rebuild-sources",function(){c()(e.$el).fullCalendar("removeEventSources"),e.eventSources.map(function(t){c()(e.$el).fullCalendar("addEventSource",t)})}),t.fullCalendar(s()(this.config,this.defaultConfig))},methods:{fireMethod:function(){var e;return(e=c()(this.$el)).fullCalendar.apply(e,arguments)}},watch:{events:{deep:!0,handler:function(e){c()(this.$el).fullCalendar("removeEvents"),c()(this.$el).fullCalendar("addEventSource",this.events)}},eventSources:{deep:!0,handler:function(e){this.$emit("rebuild-sources")}}},beforeDestroy:function(){this.$off("remove-event"),this.$off("rerender-events"),this.$off("refetch-events"),this.$off("render-event"),this.$off("reload-events"),this.$off("rebuild-sources")}}},1052:function(e,t,n){"use strict";t.__esModule=!0;var o,i=n(1053),r=(o=i)&&o.__esModule?o:{default:o};t.default=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(0,r.default)(e)}},1053:function(e,t,n){e.exports={default:n(1054),__esModule:!0}},1054:function(e,t,n){n(347),n(1055),e.exports=n(64).Array.from},1055:function(e,t,n){"use strict";var o=n(348),i=n(93),r=n(144),s=n(1056),a=n(1057),l=n(349),c=n(1058),u=n(1059);i(i.S+i.F*!n(1061)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,p=r(e),h="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(p);if(g&&(m=o(m,f>2?arguments[2]:void 0,2)),void 0==y||h==Array&&a(y))for(n=new h(t=l(p.length));t>v;v++)c(n,v,g?m(p[v],v):p[v]);else for(d=y.call(p),n=new h;!(i=d.next()).done;v++)c(n,v,g?s(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},1056:function(e,t,n){var o=n(65);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}}},1057:function(e,t,n){var o=n(92),i=n(51)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},1058:function(e,t,n){"use strict";var o=n(52),i=n(66);e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},1059:function(e,t,n){var o=n(1060),i=n(51)("iterator"),r=n(92);e.exports=n(64).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||r[o(e)]}},1060:function(e,t,n){var o=n(143),i=n(51)("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,s;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"==(s=o(t))&&"function"==typeof t.callee?"Arguments":s}},1061:function(e,t,n){var o=n(51)("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],s=r[o]();s.next=function(){return{done:n=!0}},r[o]=function(){return s},e(r)}catch(e){}return n}},1062:function(e,t,n){(function(e,n){var o=200,i="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",a="[object Boolean]",l="[object Date]",c="[object Function]",u="[object GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",D="[object Uint16Array]",P="[object Uint32Array]",R=/\w*$/,O=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,A={};A[w]=A[x]=A[C]=A[S]=A[k]=A[E]=A[T]=A[D]=A[P]=!0,A[s]=A["[object Array]"]=A[b]=A[a]=A[_]=A[l]=A["[object Error]"]=A[c]=A[d]=A[p]=A[h]=A[f]=A[m]=A[g]=A[y]=!1;var M={};M[s]=M["[object Array]"]=M[b]=M[_]=M[a]=M[l]=M[w]=M[x]=M[C]=M[S]=M[k]=M[d]=M[p]=M[h]=M[f]=M[m]=M[g]=M[v]=M[E]=M[T]=M[D]=M[P]=!0,M["[object Error]"]=M[c]=M[y]=!1;var $="object"==typeof e&&e&&e.Object===Object&&e,F="object"==typeof self&&self&&self.Object===Object&&self,N=$||F||Function("return this")(),L="object"==typeof t&&t&&!t.nodeType&&t,B=L&&"object"==typeof n&&n&&!n.nodeType&&n,j=B&&B.exports===L,H=j&&$.process,q=function(){try{return H&&H.binding("util")}catch(e){}}(),z=q&&q.isTypedArray;function U(e,t){return e.set(t[0],t[1]),e}function Y(e,t){return e.add(t),e}function V(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function G(e,t){for(var n=-1,o=e?e.length:0;++n<o&&!1!==t(e[n],n,e););return e}function W(e,t,n,o){var i=-1,r=e?e.length:0;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}function K(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Z(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}function J(e,t){return function(n){return e(t(n))}}function X(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Q,ee=Array.prototype,te=Function.prototype,ne=Object.prototype,oe=N["__core-js_shared__"],ie=(Q=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",re=te.toString,se=ne.hasOwnProperty,ae=re.call(Object),le=ne.toString,ce=RegExp("^"+re.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=j?N.Buffer:void 0,de=N.Symbol,pe=N.Uint8Array,he=J(Object.getPrototypeOf,Object),fe=Object.create,me=ne.propertyIsEnumerable,ge=ee.splice,ve=Object.getOwnPropertySymbols,ye=ue?ue.isBuffer:void 0,be=J(Object.keys,Object),_e=Math.max,we=Je(N,"DataView"),xe=Je(N,"Map"),Ce=Je(N,"Promise"),Se=Je(N,"Set"),ke=Je(N,"WeakMap"),Ee=Je(Object,"create"),Te=ot(we),De=ot(xe),Pe=ot(Ce),Re=ot(Se),Oe=ot(ke),Ie=de?de.prototype:void 0,Ae=Ie?Ie.valueOf:void 0;function Me(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function $e(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ne(e){this.__data__=new $e(e)}function Le(e,t){var n=st(e)||rt(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],o=n.length,i=!!o;for(var r in e)!t&&!se.call(e,r)||i&&("length"==r||et(r,o))||n.push(r);return n}function Be(e,t,n){(void 0===n||it(e[t],n))&&("number"!=typeof t||void 0!==n||t in e)||(e[t]=n)}function je(e,t,n){var o=e[t];se.call(e,t)&&it(o,n)&&(void 0!==n||t in e)||(e[t]=n)}function He(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1}function qe(e,t,n,o,i,r,y){var O;if(o&&(O=r?o(e,i,r,y):o(e)),void 0!==O)return O;if(!pt(e))return e;var I=st(e);if(I){if(O=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return We(e,O)}else{var A=Qe(e),$=A==c||A==u;if(ct(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(A==h||A==s||$&&!r){if(K(e))return r?e:{};if(O=function(e){return"function"!=typeof e.constructor||tt(e)?{}:(t=he(e),pt(t)?fe(t):{});var t}($?{}:e),!t)return function(e,t){return Ke(e,Xe(e),t)}(e,function(e,t){return e&&Ke(t,vt(t),e)}(O,e))}else{if(!M[A])return r?e:{};O=function(e,t,n,o){var i=e.constructor;switch(t){case b:return Ge(e);case a:case l:return new i(+e);case _:return function(e,t){var n=t?Ge(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,o);case w:case x:case C:case S:case k:case E:case T:case D:case P:return function(e,t){var n=t?Ge(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,o);case d:return function(e,t,n){return W(t?n(Z(e),!0):Z(e),U,new e.constructor)}(e,o,n);case p:case g:return new i(e);case f:return(c=new(s=e).constructor(s.source,R.exec(s))).lastIndex=s.lastIndex,c;case m:return function(e,t,n){return W(t?n(X(e),!0):X(e),Y,new e.constructor)}(e,o,n);case v:return r=e,Ae?Object(Ae.call(r)):{}}var r;var s,c}(e,A,qe,t)}}y||(y=new Ne);var F=y.get(e);if(F)return F;if(y.set(e,O),!I)var N=n?function(e){return function(e,t,n){var o=t(e);return st(e)?o:function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}(o,n(e))}(e,vt,Xe)}(e):vt(e);return G(N||e,function(i,r){N&&(i=e[r=i]),je(O,r,qe(i,t,n,o,r,e,y))}),O}function ze(e){return!(!pt(e)||ie&&ie in e)&&(ut(e)||K(e)?ce:O).test(ot(e))}function Ue(e){if(!pt(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=tt(e),n=[];for(var o in e)("constructor"!=o||!t&&se.call(e,o))&&n.push(o);return n}function Ye(e,t,n,o,i){if(e!==t){if(!st(t)&&!mt(t))var r=Ue(t);G(r||t,function(s,a){if(r&&(s=t[a=s]),pt(s))i||(i=new Ne),function(e,t,n,o,i,r,s){var a=e[n],l=t[n],c=s.get(l);if(c)return void Be(e,n,c);var u=r?r(a,l,n+"",e,t,s):void 0,d=void 0===u;d&&(u=l,st(l)||mt(l)?st(a)?u=a:lt(a)?u=We(a):(d=!1,u=qe(l,!0)):function(e){if(!ht(e)||le.call(e)!=h||K(e))return!1;var t=he(e);if(null===t)return!0;var n=se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&re.call(n)==ae}(l)||rt(l)?rt(a)?u=function(e){return Ke(e,(t=e,at(t)?Le(t,!0):Ue(t)));var t}(a):!pt(a)||o&&ut(a)?(d=!1,u=qe(l,!0)):u=a:d=!1);d&&(s.set(l,u),i(u,l,o,r,s),s.delete(l));Be(e,n,u)}(e,t,a,n,Ye,o,i);else{var l=o?o(e[a],s,a+"",e,t,i):void 0;void 0===l&&(l=s),Be(e,a,l)}})}}function Ve(e,t){return t=_e(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=_e(n.length-t,0),r=Array(i);++o<i;)r[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r,V(e,this,s)}}function Ge(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function We(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}function Ke(e,t,n,o){n||(n={});for(var i=-1,r=t.length;++i<r;){var s=t[i],a=o?o(n[s],e[s],s,n,e):void 0;je(n,s,void 0===a?e[s]:a)}return n}function Ze(e,t){var n,o,i=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ze(n)?n:void 0}Me.prototype.clear=function(){this.__data__=Ee?Ee(null):{}},Me.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Me.prototype.get=function(e){var t=this.__data__;if(Ee){var n=t[e];return n===i?void 0:n}return se.call(t,e)?t[e]:void 0},Me.prototype.has=function(e){var t=this.__data__;return Ee?void 0!==t[e]:se.call(t,e)},Me.prototype.set=function(e,t){return this.__data__[e]=Ee&&void 0===t?i:t,this},$e.prototype.clear=function(){this.__data__=[]},$e.prototype.delete=function(e){var t=this.__data__,n=He(t,e);return!(n<0||(n==t.length-1?t.pop():ge.call(t,n,1),0))},$e.prototype.get=function(e){var t=this.__data__,n=He(t,e);return n<0?void 0:t[n][1]},$e.prototype.has=function(e){return He(this.__data__,e)>-1},$e.prototype.set=function(e,t){var n=this.__data__,o=He(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},Fe.prototype.clear=function(){this.__data__={hash:new Me,map:new(xe||$e),string:new Me}},Fe.prototype.delete=function(e){return Ze(this,e).delete(e)},Fe.prototype.get=function(e){return Ze(this,e).get(e)},Fe.prototype.has=function(e){return Ze(this,e).has(e)},Fe.prototype.set=function(e,t){return Ze(this,e).set(e,t),this},Ne.prototype.clear=function(){this.__data__=new $e},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $e){var i=n.__data__;if(!xe||i.length<o-1)return i.push([e,t]),this;n=this.__data__=new Fe(i)}return n.set(e,t),this};var Xe=ve?J(ve,Object):function(){return[]},Qe=function(e){return le.call(e)};function et(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function tt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ne)}function nt(e,t,n,o,i,r){return pt(e)&&pt(t)&&(r.set(t,e),Ye(e,t,void 0,nt,r),r.delete(t)),e}function ot(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function it(e,t){return e===t||e!=e&&t!=t}function rt(e){return lt(e)&&se.call(e,"callee")&&(!me.call(e,"callee")||le.call(e)==s)}(we&&Qe(new we(new ArrayBuffer(1)))!=_||xe&&Qe(new xe)!=d||Ce&&"[object Promise]"!=Qe(Ce.resolve())||Se&&Qe(new Se)!=m||ke&&Qe(new ke)!=y)&&(Qe=function(e){var t=le.call(e),n=t==h?e.constructor:void 0,o=n?ot(n):void 0;if(o)switch(o){case Te:return _;case De:return d;case Pe:return"[object Promise]";case Re:return m;case Oe:return y}return t});var st=Array.isArray;function at(e){return null!=e&&dt(e.length)&&!ut(e)}function lt(e){return ht(e)&&at(e)}var ct=ye||function(){return!1};function ut(e){var t=pt(e)?le.call(e):"";return t==c||t==u}function dt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ht(e){return!!e&&"object"==typeof e}var ft,mt=z?(ft=z,function(e){return ft(e)}):function(e){return ht(e)&&dt(e.length)&&!!A[le.call(e)]};var gt=Ve(function(e){return e.push(void 0,nt),V(bt,void 0,e)});function vt(e){return at(e)?Le(e):function(e){if(!tt(e))return be(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var yt,bt=(yt=function(e,t,n,o){Ye(e,t,n,o)},Ve(function(e,t){var n=-1,o=t.length,i=o>1?t[o-1]:void 0,r=o>2?t[2]:void 0;for(i=yt.length>3&&"function"==typeof i?(o--,i):void 0,r&&function(e,t,n){if(!pt(n))return!1;var o=typeof t;return!!("number"==o?at(n)&&et(t,n.length):"string"==o&&t in n)&&it(n[t],e)}(t[0],t[1],r)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var s=t[n];s&&yt(e,s,n,i)}return e}));n.exports=gt}).call(t,n(37),n(345)(e))},1063:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"calendar",attrs:{id:"calendar"}})},staticRenderFns:[]}},1064:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-wrap"},[n("div",{staticClass:"am-body",attrs:{id:"am-calendar"}},[n("get-premium-banner"),e._v(" "),n("page-header",{attrs:{categories:e.filterCategoriesByProviderServiceIDs(e.options.entities.categories),locations:e.options.entities.locations,params:e.params,fetched:e.appointmentsFetched&&e.eventsFetched},on:{newAppointmentBtnClicked:function(t){return e.showDialogNewAppointment()},changeFilter:e.filterData,selectAllInCategory:e.selectAllInCategory}}),e._v(" "),n("div",{staticClass:"am-section am-calendar"},[!0===e.$root.settings.capabilities.canReadOthers?n("div",{staticClass:"am-calendar-employees"},[e.$root.licence.isLite?e._e():n("div",{staticClass:"am-calendar-employee",class:{active:0===e.params.providers.length&&0===e.employeesPreselectedCount},on:{click:e.filterAllEmployees}},[n("div",{staticClass:"am-profile-photo"},[n("div",{staticClass:"am-all"},[e._v(e._s(e.$root.labels.all))])]),e._v(" "),n("p",[e._v(e._s(e.$root.labels.all_employees))])]),e._v(" "),e._l(e.options.entities.employees,function(t){return n("div",{key:t.id,staticClass:"am-calendar-employee",class:{active:-1!==e.params.providers.indexOf(t.id)},on:{click:function(n){return e.filterEmployees(t)}}},[n("div",{staticClass:"am-profile-photo"},[n("img",{attrs:{src:e.pictureLoad(t,!0)},on:{error:function(n){return e.imageLoadError(t,!0)}}})]),e._v(" "),n("p",{staticClass:"am-calendar-employee-name"},[e._v(e._s(t.firstName+" "+t.lastName))])])})],2):e._e(),e._v(" "),n("div",{staticClass:"am-calendar-scroll"},[n("v-date-picker",{staticClass:"am-calendar-picker",attrs:{locale:e.$root.locale,mode:"single",id:"am-calendar-picker","tint-color":"#1A84EE","show-day-popover":!1,"is-expanded":!1,"is-inline":!0,"is-required":!0,formats:e.vCalendarFormats},on:{input:e.selectDay},model:{value:e.selectedDate,callback:function(t){e.selectedDate=t},expression:"selectedDate"}}),e._v(" "),n("full-calendar",{ref:"calendar",class:{"am-licence-calendar":e.notInLicence("starter")},attrs:{events:e.events,config:e.config},on:{"event-selected":e.eventSelected,"event-render":e.eventRender,"event-drop":e.eventDrop,"event-drag-start":e.eventDragStart,"event-drag-stop":e.eventDragStop}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.appointmentsFetched&&e.eventsFetched&&e.appointmentsFetchedFiltered&&e.eventsFetchedFiltered),expression:"!appointmentsFetched || !eventsFetched || !appointmentsFetchedFiltered || !eventsFetchedFiltered"}],staticClass:"am-spinner am-section"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}})])],1)]),e._v(" "),"customer"!==e.$root.settings.role&&e.canWriteAppointments()?n("div",{staticClass:"am-button-new",attrs:{id:"am-button-new"}},[n("el-button",{attrs:{id:"am-plus-symbol",type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.showDialogNewAppointment()}}})],1):e._e(),e._v(" "),n("transition",{attrs:{name:"slide"}},[e.dialogEvent?n("el-dialog",{staticClass:"am-side-dialog am-dialog-event",attrs:{"close-on-click-modal":!1,"show-close":!1,visible:e.dialogEvent},on:{"update:visible":function(t){e.dialogEvent=t}}},[n("dialog-event",{attrs:{event:e.event,employees:e.options.entities.employees,locations:e.options.entities.locations,tags:e.options.entities.tags},on:{closeDialog:e.closeDialogEvent,saveCallback:e.saveCallback,duplicateCallback:e.duplicateEventCallback}})],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"slide"}},[e.dialogAppointment?n("el-dialog",{staticClass:"am-side-dialog",attrs:{"close-on-click-modal":!1,visible:e.dialogAppointment,"show-close":!1},on:{"update:visible":function(t){e.dialogAppointment=t}}},[n("dialog-appointment",{attrs:{appointment:e.appointment,recurringAppointments:e.recurringAppointments,savedAppointment:e.savedAppointment,bookings:e.bookings,options:e.options,customerCreatedCount:e.customerCreatedCount,packageCustomer:null,"current-user":e.currentUser,customersNoShowCount:e.customersNoShowCount},on:{sortBookings:e.sortBookings,saveCallback:e.saveCallback,duplicateCallback:e.duplicateAppointmentCallback,closeDialog:e.closeDialogAppointment,showDialogNewCustomer:e.showDialogNewCustomer,editPayment:e.editPayment,openRecurringAppointment:e.openRecurringAppointment}})],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"slide"}},[e.dialogCustomer?n("el-dialog",{staticClass:"am-side-dialog",attrs:{"close-on-click-modal":!1,size:"full",visible:e.dialogCustomer,"show-close":!1},on:{"update:visible":function(t){e.dialogCustomer=t}}},[n("dialog-customer",{attrs:{customer:e.customer},on:{saveCallback:e.saveCustomerCallback,closeDialog:function(t){e.dialogCustomer=!1}}})],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"slide"}},[e.dialogPayment?n("el-dialog",{staticClass:"am-side-dialog am-dialog-coupon",attrs:{"close-on-click-modal":!1,visible:e.dialogPayment,"show-close":!1},on:{"update:visible":function(t){e.dialogPayment=t}}},[n("dialog-payment",{attrs:{modalData:e.selectedPaymentModalData,appointmentFetched:!0,bookingFetched:!0},on:{closeDialogPayment:function(t){e.dialogPayment=!1},updatePaymentCallback:e.updatePaymentCallback,deletePaymentCallback:e.deletePaymentCallback}})],1):e._e()],1),e._v(" "),n("el-col",{attrs:{md:6}},[n("a",{staticClass:"am-help-button",attrs:{href:"https://wpamelia.com/admin-calendar/",target:"_blank",rel:"nofollow"}},[n("i",{staticClass:"el-icon-question"}),e._v(" "+e._s(e.$root.labels.need_help)+"?\n ")])])],1)])},staticRenderFns:[]}},1609:function(e,t,n){var o=n(90)(n(1048),n(1064),!1,null,null,null);e.exports=o.exports},654: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:{deleteImage:function(e){e.pictureThumbPath="",e.pictureFullPath=""},getAppropriateUrlParams:function(e){if("disableUrlParams"in this.$root.settings.activation&&!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(662);e.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){n(662).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];if(this.usedColors.push(this.colors[i]),this.colors.splice(i,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),n)return 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";var s=document.createElement("canvas");s.width=100,s.height=100;var a=s.getContext("2d");return a.fillStyle=r.startsWith("#")?r:"#"+r,a.fillRect(0,0,s.width,s.height),a.font="40px Arial",a.fillStyle="#ffffff",a.textAlign="center",a.textBaseline="middle",a.fillText(o,s.width/2,s.height/2),s.toDataURL("image/png")},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,"")}}}},655: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()}}}},656:function(e,t,n){"use strict";var o=n(686),i=n(344),r=Object.prototype.toString;function s(e){return"[object Array]"===r.call(e)}function a(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||s(e)||(e=[e]),s(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:s,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:a,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 a(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*$/,"")}}},657: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(),s=this.getPriceSuffix(),a=parseInt(e=Math.abs(+e||0).toFixed(n))+"",l=a.length>3?a.length%3:0;return(t?r:"")+(l?a.substr(0,l)+o:"")+a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o)+(n?i+Math.abs(e-a).toFixed(n).slice(2):"")+(t?s:"")},getPercentage:function(e,t){return e*t/100}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},658:function(e,t,n){"use strict";t.a={methods:{notify:function(e,t,n,o,i){var r=this;void 0===o&&(o=""),setTimeout(function(){var s={customClass:o,title:e,message:t,type:n,offset:50};void 0!==i&&(s.duration=i),r.$notify(s)},700)}}}},659:function(e,t,n){"use strict";var o=n(679),i=n(672),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(JSON.parse(JSON.stringify(this.getServiceById(t))),n):null},getProviderBadge:function(e,t){var n=this.$root.settings.roles.providerBadges.badges.map(function(e){return e.id}),o=null;if(!e.badgeId||!n.includes(e.badgeId))return null;switch(o=this.$root.settings.roles.providerBadges.badges.find(function(t){return t.id===e.badgeId}),t){case"":return!0;case"color":return o.color;case"content":return o.content;default:return!0}},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=[],s=null!==t.categoryId?e.categories.find(function(e){return e.id===t.categoryId}):null,a=s?s.serviceList.map(function(e){return e.id}):[];if(null!==t.categoryId&&0===a.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 s=parseInt(e);if(null!==t.employeeId&&t.employeeId!==s||null!==t.locationId&&!n.isEmployeeLocation(s,t.locationId)||null!==t.serviceId&&!n.isEmployeeService(s,t.serviceId)||null!==t.categoryId&&0===a.filter(function(e){return n.isEmployeeService(s,e)}).length||null!==t.categoryId&&null!==t.locationId&&0===a.filter(function(e){return n.isEmployeeServiceLocation(s,e,t.locationId)}).length||null!==t.serviceId&&null!==t.locationId&&!n.isEmployeeServiceLocation(s,t.serviceId,t.locationId))return"continue";for(var l in-1===i.indexOf(s)&&i.push(s),n.options.entitiesRelations[s])if(n.options.entitiesRelations[s].hasOwnProperty(l)){var c=parseInt(l);null!==t.serviceId&&t.serviceId!==c||null!==t.categoryId&&-1===a.indexOf(c)||null!==t.locationId&&!n.isEmployeeServiceLocation(s,c,t.locationId)||(-1===o.indexOf(c)&&o.push(c),n.options.entitiesRelations[s][c].length&&n.options.entitiesRelations[s][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:null,durations:[],persons:[],periods:{default:[],custom:[]}}:"object"!==r(e.customPricing)&&(e.customPricing=this.getArrayCustomPricing(e)),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}),s=this.options.entities.locations.map(function(e){return e.id}),a=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!==a.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!==s.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)})}this.options.entities.taxes=e.taxes}},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:[],this.responseEntities.taxes=e.taxes?e.taxes:[],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,"customers"in e&&e.customers.length&&(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:[],this.options.entities.taxes="taxes"in e?e.taxes:[]},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({lite:!0,types:t.types,dates:t.dates})};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)},setMissingServices:function(e){var t=this,n=this.options.entities.services.map(function(e){return parseInt(e.id)});Object.keys(e).forEach(function(o){e[o].appointments.forEach(function(e){e.service&&-1===n.indexOf(parseInt(e.serviceId))&&(t.options.entities.services.push(e.service),n.push(parseInt(e.serviceId)))})})},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.$root.settings.roles.providerBadges.badges.map(function(e){return e.id});this.visibleEmployees.forEach(function(t){t.badgeId&&n.includes(t.badgeId)?t.badge=e.$root.settings.roles.providerBadges.badges.find(function(e){return e.id===t.badgeId}):t.badge=null});var o=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?o:this.getFilteredEntities(o.map(function(e){return e.id}),"employees","providerId").sort(function(e,t){return e.disabled-t.disabled})},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").sort(function(e,t){return e.disabled-t.disabled})},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").sort(function(e,t){return e.disabled-t.disabled})}}}},660: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}},getSecondsInStringTime:function(e){return i.a.utc(1e3*e).format("HH:mm")},getStringTimeInSeconds:function(e){return i()(e,"HH:mm").diff(i()().startOf("day"),"seconds")}}}},661:function(e,t,n){"use strict";var o=n(657);t.a={mixins:[o.a],methods:{isDurationPricingEnabled:function(e){return null!==e&&("duration"===e.enabled||!0===e.enabled)&&"durations"in e},isPersonPricingEnabled:function(e){return null!==e&&"person"===e.enabled&&"persons"in e},isPeriodPricingEnabled:function(e){return null!==e&&"period"===e.enabled&&"periods"in e&&!this.$root.licence.isLite&&!this.$root.licence.isStarter&&!this.$root.licence.isBasic},getBookingServicePrice:function(e,t,n,o,i){return this.isDurationPricingEnabled(e.customPricing)?this.getBookingDurationPrice(e,t):this.isPersonPricingEnabled(e.customPricing)?this.getBookingPersonPrice(e,n):this.isPeriodPricingEnabled(e.customPricing)&&o&&i?this.getBookingPeriodPrice(e,parseInt(o),i):e.price},getBookingDurationPrice:function(e,t){return t&&e.customPricing.durations.filter(function(e){return e.duration===t}).length?e.customPricing.durations.find(function(e){return e.duration===t}).price:e.price},getBookingPersonPrice:function(e,t){var n=e.customPricing.persons.map(function(e){return e.range}).sort(function(e,t){return t.range-e.range});if(t&&n.length){var o=n.filter(function(e){return e>=t}),i=0===o.length?n[n.length-1]:o[0];return e.customPricing.persons.find(function(e){return e.range===i}).price}return e.price},getBookingPeriodPrice:function(e,t,n){var o=n.split(" ");if(o[0]in this.pricedCalendarTimeSlots&&o[1].substr(0,5)in this.pricedCalendarTimeSlots[o[0]]){var i=this.pricedCalendarTimeSlots[o[0]][o[1].substr(0,5)].filter(function(e){return e.e===t});return i.length?i[0].p:e.price}return e.price}}}},662:function(e,t,n){(function(n){var o,i,r,s;s=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},s=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,s=new XMLHttpRequest;s.open("GET",i,!0),s.onload=function(){if(s.status>=200&&s.status<400){var n=(new DOMParser).parseFromString(s.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"),a=document.createTextNode(r.longdesc.value);i.appendChild(a),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.")},s.onerror=function(){console.error("There was an error connecting to the origin server.")},s.send()})};return n.init=function(e,n){o&&(t=r(i,e||{}),s(n||function(){}),document.documentElement.className+=" "+t.initClass)},n}(s),void 0===(r="function"==typeof o?o.apply(t,i):o)||(e.exports=r)}).call(t,n(37))},663: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"}}}},664: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}}}},666:function(e,t,n){"use strict";t.a={methods:{getEntityTax:function(e,t){var n=[];"taxes"in this&&this.taxes&&this.taxes.length?n=this.taxes:"options"in this&&"entities"in this.options&&"taxes"in this.options.entities&&this.options.entities.taxes&&this.options.entities.taxes.length&&(n=this.options.entities.taxes);var o=n.find(function(n){return n[t+"List"].find(function(t){return t.id===e})});return!o||void 0===o||"status"in o&&"visible"!==o.status?null:o},getEntityTaxAmount:function(e,t){switch(e.type){case"percentage":return this.getPercentage(t,e.amount);case"fixed":return e.amount}},getAmountData:function(e,t,n){e&&!e.excluded&&(t=this.getBaseAmount(t,e));var o=n?t/100*n.discount+n.deduction:0,i=0;return e&&(i=this.getEntityTaxAmount(e,t-o)),{total:t,discount:o,tax:i}},getEventBookingPriceAmount:function(e){var t=0;return e.ticketsData&&e.ticketsData.length?e.ticketsData.forEach(function(n){t+=n.price*(e.aggregatedPrice?n.persons:1)}):t=e.price*(e.aggregatedPrice?e.persons:1),this.getAmountData(e.tax&&e.tax.length?e.tax[0]:null,t,e.coupon)},getAppointmentPriceAmount:function(e,t,n,o,i){var r=this,s=null,a=this.$root.settings.payments.taxes.excluded,l=this.$root.settings.payments.taxes.enabled;"tax"in e?(a=(s=e.tax&&e.tax.length?e.tax[0]:null)?s.excluded:a,l=null!==s):l&&(s=this.getEntityTax(e.id,"service"));var c=(e.aggregatedPrice?n:1)*e.price,u=0,d=0,p=0,h=0;if(o){u=c,d=c,l&&s&&!a&&(c=this.getBaseAmount(c,s));var f=o.discount?this.getPercentage(c,o.discount):0,m=c-f;c=m;var g=o.deduction,v=0;if(m>0&&g>0&&(c=m-(v=m>=g?g:m),g=m>=g?0:g-m),l&&s&&a)h=this.getEntityTaxAmount(s,c);else if(l&&s&&!a){c=this.getBaseAmount((e.aggregatedPrice?n:1)*e.price,s);var y=this.getEntityTaxAmount(s,c-f-v);i?u=c+y:(u=c,d=c,h=y)}p=f+v,t.forEach(function(t){var s=null,a=r.$root.settings.payments.taxes.excluded,l=r.$root.settings.payments.taxes.enabled;"tax"in t?(t.tax&&!Array.isArray(t.tax)&&(t.tax=JSON.parse(t.tax)),a=(s=t.tax&&t.tax.length?t.tax[0]:null)?s.excluded:a,l=null!==s):l&&(s=r.getEntityTax(t.extraId,"extra"));var c=null===t.aggregatedPrice?e.aggregatedPrice:t.aggregatedPrice,d=t.price*t.quantity*(c?n:1),f=d;l&&s&&!a&&(d=r.getBaseAmount(d,s));var m=o.discount?r.getPercentage(d,o.discount):0,v=d-m;d=v;var y=0;if(v>0&&g>0&&(d=v-(y=v>=g?g:v),g=v>=g?0:g-v),l&&s&&a)h+=r.getEntityTaxAmount(s,d);else if(l&&s&&!a){d=r.getBaseAmount(t.price*t.quantity*(c?n:1),s);var b=r.getEntityTaxAmount(s,d-m-y);i?f=d+b:(f=d,h+=b)}else!l||s||a||(f=t.price*t.quantity*(c?n:1));u+=f,p+=m+y})}else l&&s&&a?h=this.getEntityTaxAmount(s,c):l&&s&&!a&&!i&&(c=this.getBaseAmount((e.aggregatedPrice?n:1)*e.price,s),h=this.getEntityTaxAmount(s,c)),u=c,d=c,t.forEach(function(t){var o=null===t.aggregatedPrice?e.aggregatedPrice:t.aggregatedPrice,s=t.price*t.quantity*(o?n:1),a=null,l=r.$root.settings.payments.taxes.excluded,c=r.$root.settings.payments.taxes.enabled;"tax"in t?(t.tax&&!Array.isArray(t.tax)&&(t.tax=JSON.parse(t.tax)),l=(a=t.tax&&t.tax.length?t.tax[0]:null)?a.excluded:l,c=null!==a):c&&(a=r.getEntityTax(t.extraId,"extra")),c&&a&&l?h+=r.getEntityTaxAmount(a,s):c&&a&&!l&&!i&&(s=r.getBaseAmount(t.price*t.quantity*(o?n:1),a),h+=r.getEntityTaxAmount(a,s)),u+=s});return{total:u,totalBookable:d,discount:p,tax:h}},getBaseAmount:function(e,t){switch(t.type){case"percentage":return e/(1+t.amount/100);case"fixed":return e-t.amount}},getPercentage:function(e,t){return e*t/100},getRound:function(e){return Math.round(100*e)/100}}}},667:function(e,t,n){"use strict";t.a={data:function(){return{defaultFormsData:{stepByStepForm:{selectServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{serviceHeadingFormField:{labels:{please_select_service:{value:"",translations:{x:""}},book_appointment:{value:"",translations:{x:""}}},visibility:!0}},itemsDraggable:{serviceFormField:{labels:{service:{value:"",translations:{x:""}}}},servicePackageFormField:{labels:{package_available:{value:"",translations:{x:""}},package_discount_text:{value:"",translations:{x:""}}},visibility:!0},locationFormField:{labels:{locations:{value:"",translations:{x:""}}},visibility:!0,required:!1},employeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},visibility:!0,required:!1,anyEmployeeVisible:!0},bringingFormField:{labels:{bringing_anyone_with_you:{value:"",translations:{x:""}},number_of_additional_persons:{value:"",translations:{x:""}}}},addExtraFormField:{labels:{add_extra:{value:"",translations:{x:""}},extra_colon:{value:"",translations:{x:""}},qty_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}}},visibility:!0}}},calendarDateTimeForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135},itemsStatic:{timeZoneFormField:{visibility:!1},calendarHeadingFormField:{labels:{pick_date_and_time:{value:"",translations:{x:""}}},visibility:!0},calendarAppointmentFormField:{endDateVisibility:!0},recurringSwitchFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0}}},recurringSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringSetupHeadingFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},recurringSettingsFormField:{labels:{recurring_repeat:{value:"",translations:{x:""}},recurring_every:{value:"",translations:{x:""}},recurring_on:{value:"",translations:{x:""}},recurring_until:{value:"",translations:{x:""}},recurring_times:{value:"",translations:{x:""}}}}}},recurringDatesForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringDatesHeadingFormField:{labels:{recurring_appointments:{value:"",translations:{x:""}},recurring_edit:{value:"",translations:{x:""}}},visibility:!0},recurringInfoFormField:{labels:{date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}}}}}},selectPackageForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageHeadingFormField:{labels:{please_select_package:{value:"",translations:{x:""}}},visibility:!0},packageFormField:{labels:{package_colon:{value:"",translations:{x:""}}}}}},packageInfoForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageInfoFormField:{labels:{package_discount_text:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},employees:{value:"",translations:{x:""}}}}}},packageSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0.1)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageEmployeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},anyEmployeeVisible:!0},packageLocationFormField:{labels:{location:{value:"",translations:{x:""}}}},packageRulesFormField:{labels:{package_min_book:{value:"",translations:{x:""}},package_min_book_plural:{value:"",translations:{x:""}}}},packageCalendarFormField:{labels:{no_selected_slot_requirements:{value:"",translations:{x:""}}},endDateVisibility:!0,timeZoneVisibility:!0}}},packageListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageListFormField:{labels:{package_list_overview:{value:"",translations:{x:""}},appointments:{value:"",translations:{x:""}},appointment:{value:"",translations:{x:""}},date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},location:{value:"",translations:{x:""}}}}}},confirmBookingForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{confirmServiceHeadingFormField:{visibility:!0},confirmHeadingDataFormField:{labels:{employee:{value:"",translations:{x:""}},date_colon:{value:"",translations:{x:""}},time_colon:{value:"",translations:{x:""}},location_colon:{value:"",translations:{x:""}}},visibility:!0},recurringStringFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},extras_costs_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},catalogForm:{catalogListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{categories:{value:"",translations:{x:""},visibility:!0},services_lower:{value:"",translations:{x:""},visibility:!0}},parts:{service_images_thumbs:{visibility:!0}}},categoryListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{back:{value:"",translations:{x:""}},view_more:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}},services:{value:"",translations:{x:""}},package:{value:"",translations:{x:""}},package_discount_text:{value:"",translations:{x:""}}},parts:{service_badge:{visibility:!0},service_price:{visibility:!0},service_employees_list:{visibility:!0},package_badge:{visibility:!0},package_price:{visibility:!0},package_services_list:{visibility:!0}}},categoryServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{capacity_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},description:{value:"",translations:{x:""}},service_info:{value:"",translations:{x:""}},category_colon:{value:"",translations:{x:""}},extras:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}},maximum_quantity_colon:{value:"",translations:{x:""}},description_colon:{value:"",translations:{x:""}},employees:{value:"",translations:{x:""}}},parts:{capacity_colon:{visibility:!0},duration_colon:{visibility:!0},description:{visibility:!0},service_info:{visibility:!0},extras:{visibility:!0},employees:{visibility:!0}}},categoryPackageForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},parts:{package_rules_description:{visibility:!0},selected_services:{visibility:!0}}},selectServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{serviceHeadingFormField:{labels:{book_appointment:{value:"",translations:{x:""}}},visibility:!0}},itemsDraggable:{locationFormField:{labels:{locations:{value:"",translations:{x:""}}},visibility:!0,required:!1},employeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},visibility:!0,required:!1,anyEmployeeVisible:!0},bringingFormField:{labels:{bringing_anyone_with_you:{value:"",translations:{x:""}},number_of_additional_persons:{value:"",translations:{x:""}}}},addExtraFormField:{labels:{add_extra:{value:"",translations:{x:""}},extra_colon:{value:"",translations:{x:""}},qty_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}}},visibility:!0}}},calendarDateTimeForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135},itemsStatic:{timeZoneFormField:{visibility:!1},calendarHeadingFormField:{labels:{pick_date_and_time:{value:"",translations:{x:""}}},visibility:!0},calendarAppointmentFormField:{endDateVisibility:!0},recurringSwitchFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0}}},recurringSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringSetupHeadingFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},recurringSettingsFormField:{labels:{recurring_repeat:{value:"",translations:{x:""}},recurring_every:{value:"",translations:{x:""}},recurring_on:{value:"",translations:{x:""}},recurring_until:{value:"",translations:{x:""}},recurring_times:{value:"",translations:{x:""}}}}}},recurringDatesForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringDatesHeadingFormField:{labels:{recurring_appointments:{value:"",translations:{x:""}},recurring_edit:{value:"",translations:{x:""}}},visibility:!0},recurringInfoFormField:{labels:{date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}}}}}},packageSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0.1)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageEmployeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},anyEmployeeVisible:!0},packageLocationFormField:{labels:{location:{value:"",translations:{x:""}}}},packageRulesFormField:{labels:{package_min_book:{value:"",translations:{x:""}},package_min_book_plural:{value:"",translations:{x:""}}}},packageCalendarFormField:{labels:{no_selected_slot_requirements:{value:"",translations:{x:""}}},endDateVisibility:!0,timeZoneVisibility:!0}}},packageListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageListFormField:{labels:{appointments:{value:"",translations:{x:""}},appointment:{value:"",translations:{x:""}},date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},location:{value:"",translations:{x:""}}}}}},confirmBookingForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{confirmServiceHeadingFormField:{visibility:!0},confirmHeadingDataFormField:{labels:{employee:{value:"",translations:{x:""}},date_colon:{value:"",translations:{x:""}},time_colon:{value:"",translations:{x:""}},location_colon:{value:"",translations:{x:""}}},visibility:!0},recurringStringFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},extras_costs_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},eventListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},eventFilterForm:{itemsStatic:{eventFilterFormField:{labels:{event_type:{value:"",translations:{x:""}},event_location:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0}}}}},eventDetailsForm:{itemsStatic:{eventDetailsFormField:{labels:{open:{value:"",translations:{x:""}},closed:{value:"",translations:{x:""}},canceled:{value:"",translations:{x:""}},full:{value:"",translations:{x:""}},upcoming:{value:"",translations:{x:""}},event_capacity:{value:"",translations:{x:""},visibility:!0},location:{visibility:!0},event_date:{visibility:!0},time_zone:{visibility:!1},event_free:{value:"",translations:{x:""}},event_price:{visibility:!0},event_about:{value:"",translations:{x:""}},event_book:{value:"",translations:{x:""},visibility:!0},event_book_persons:{value:"",translations:{x:""}},ev_spot:{value:"",translations:{x:""}},ev_spots:{value:"",translations:{x:""}},ev_no_spots:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0}},showSingleEvent:!0}}},confirmBookingForm:{event:{itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{event:{itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},eventCalendarForm:{selectEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#f2f3f5",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},labels:{event_today:{value:"",translations:{x:""}},event_filters:{value:"",translations:{x:""}},event_location:{value:"",translations:{x:""}},event_type:{value:"",translations:{x:""}},event_status:{value:"",translations:{x:""}},event_employee:{value:"",translations:{x:""}},event_spot:{value:"",translations:{x:""}},event_spots_left:{value:"",translations:{x:""}},event_no_spots:{value:"",translations:{x:""}},event_day:{value:"",translations:{x:""}},event_upcoming_events:{value:"",translations:{x:""}},event_free:{value:"",translations:{x:""}},event_upcoming_empty:{value:"",translations:{x:""}},event:{value:"",translations:{x:""}},events:{value:"",translations:{x:""}},open:{value:"",translations:{x:""}},full:{value:"",translations:{x:""}},upcoming:{value:"",translations:{x:""}},closed:{value:"",translations:{x:""}},canceled:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0},upcoming_events_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0},event_price_block:{visibility:!0},event_day_block:{visibility:!0}}},infoEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{event_book_now:{value:"",translations:{x:""}},event_show_less:{value:"",translations:{x:""}},event_schedule:{value:"",translations:{x:""}},event_hosted_by:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0},event_price_block:{visibility:!0}}},inviteEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052"},labels:{event_book_event:{value:"",translations:{x:""}},event_many_people:{value:"",translations:{x:""}},event_book_persons:{value:"",translations:{x:""}},ev_spot:{value:"",translations:{x:""}},ev_spots:{value:"",translations:{x:""}},ev_no_spots:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0},event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},confirmBookingForm:{event:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{dialogEventCalendarHeadingFormField:{labels:{event_book_event:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{event:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{dialogEventCalendarHeadingFormField:{labels:{event_book_event:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}}}}},methods:{getTranslatedForms:function(e){var t=this,n=this.$root.settings.customization.forms&&this.$root.settings.customization.forms.hasOwnProperty(e)?this.$root.settings.customization.forms:this.defaultFormsData,o=window.localeLanguage[0];return Object.keys(n[e]).forEach(function(i){"labels"in n[e][i]?t.getTranslatedLabels(n[e][i],o):"confirmBookingForm"!==i&&"globalSettings"!==i&&"congratulationsForm"!==i?n[e][i]=t.getTranslatedFormScreen(n[e][i],e,i,o):"confirmBookingForm"!==i&&"congratulationsForm"!==i||Object.keys(n[e][i]).forEach(function(r){n[e][i][r]=t.getTranslatedFormScreen(n[e][i][r],e,i,o)})}),n},getTranslatedFormScreen:function(e,t,n,o){var i=this;return["itemsDraggable","itemsStatic"].forEach(function(t){t in e&&Object.keys(e[t]).forEach(function(n){i.getTranslatedLabels(e[t][n],o)})}),e},getTranslatedLabels:function(e,t){if("labels"in e){var n=window.wpAmeliaSettings.general.usedLanguages,o=n.includes(t);Object.keys(e.labels).forEach(function(i){if("translations"in e.labels[i]&&t in e.labels[i].translations&&o)e.labels[i].value=e.labels[i].translations[t];else if(e.labels[i].translations)for(var r=n.map(function(e){return e.length>2?e.slice(0,2):e}),s=t.length>2?t.slice(0,2):t,a=r.includes(s),l=Object.keys(e.labels[i].translations),c=Object.keys(e.labels[i].translations).map(function(e){return e.length>2?e.slice(0,2):e}),u=0;u<c.length;u++)if(c[u]===s&&a){e.labels[i].value=e.labels[i].translations[l[u]];break}})}}}}},668: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"]},{value:"waiting",label:this.$root.labels.waiting_list}]}},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 s=o||Object.keys(i.payments)[0],a=i.payments[s].payments.sort(function(e,t){return e.id>t.id?1:-1});i.paymentId=a[0].id,i.packageCustomerId=s,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(s)}))}),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.location.href=e.data.data.paymentLink: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=this.$root.settings;t&&t.payments&&t.payments.paymentLinks&&(n=JSON.parse(t));var o=n.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,s="package"===e.type?e.price:e.bookings[0].price,a=!1;switch(e.type){case"package":a=!e.expireDateString||i()(e.expireDateString,"YYYY-MM-DD HH:mm:ss").isAfter(i()());break;case"appointment":a=i()(e.bookingStart,"YYYY-MM-DD HH:mm:ss").isAfter(i()())&&e.bookings[0].payments.length>0;break;case"event":a=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&&o&&o.enabled&&r&&s>0&&a},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.square.enabled||"square"in e&&!e.square.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:"square",label:this.$root.labels.on_line}):t.push({value:"mollie",label:this.$root.labels.on_line}),t}}}},669:function(e,t,n){"use strict";(function(t){var o=n(656),i=n(716),r={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,l={adapter:("undefined"!=typeof XMLHttpRequest?a=n(687):void 0!==t&&(a=n(687)),a),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)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(s(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))},671:function(e,t,n){var o=n(90)(n(682),n(683),!1,null,null,null);e.exports=o.exports},672:function(e,t,n){"use strict";var o=n(661),i=n(0),r=n.n(i),s="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],methods:{getArrayCustomPricing:function(e){var t=e.customPricing,n=null;if(void 0===t||null===t||""===t)n={enabled:null,durations:{},persons:{},periods:{default:[],custom:[]}};else if("object"===(void 0===t?"undefined":s(t))){if(Array.isArray(t.durations))return"persons"in t||(t.persons=[]),"periods"in t||(t.periods={default:[],custom:[]}),!0===t.enabled&&(t.enabled="duration"),t;n=JSON.parse(JSON.stringify(t))}else n=JSON.parse(t);!0===n.enabled&&(n.enabled="duration"),n.persons="persons"in n?n.persons:[],n.periods="periods"in n?n.periods:{default:[],custom:[]};var o=[];Object.keys(n.persons).length&&(o.push({start:1,range:Object.keys(n.persons)[0]-1,price:e.price,rules:[]}),Object.keys(n.persons).forEach(function(t,i){o.push({start:parseInt(t),range:i!==Object.keys(n.persons).length-1?Object.keys(n.persons)[i+1]-1:e.maxCapacity,price:n.persons[t].price,rules:n.persons[t].rules})}));var i=[];return Object.keys(n.durations).forEach(function(e){i.push({duration:parseInt(e),price:n.durations[e].price,rules:n.durations[e].rules})}),n.periods.custom.forEach(function(e){e.dates.start=r()(e.dates.start).toDate(),e.dates.end=r()(e.dates.end).toDate()}),{enabled:n.enabled,durations:i,persons:o,periods:n.periods}},getJsonCustomPricing:function(e){var t={},n=e.customPricing;n&&n.durations.filter(function(e){return e.duration}).length>0&&n.durations.forEach(function(e){t[e.duration]={price:e.price,rules:e.rules}});var o={};n&&n.persons.length&&n.persons.forEach(function(e,t){0!==t&&(o[n.persons[t-1].range+1]={price:e.price,rules:e.rules})});var i=[];n.periods.default.filter(function(e){return e.days.length}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),i.push(e)});var s=[];n.periods.custom.filter(function(e){return e.dates.start&&e.dates.end}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),e.dates.start=r()(e.dates.start).format("YYYY-MM-DD"),e.dates.end=r()(e.dates.end).format("YYYY-MM-DD"),s.push(e)});var a=null;return n&&this.isDurationPricingEnabled(n)?a="duration":n&&this.isPersonPricingEnabled(n)?a="person":n&&this.isPeriodPricingEnabled(n)&&(i.length||s.length)&&(a="period"),JSON.stringify({enabled:a,durations:t,persons:o,periods:{default:i,custom:s}})}}}},673:function(e,t,n){"use strict";t.a={data:function(){return{searchCounter:0,loadingCustomers:!1,searchCustomersTimer:null,searchedCustomers:[],dialogCustomer:!1}},methods:{setCustomerFromUrl:function(e){var t=null;this.options.entities.customers.length&&(t=this.options.entities.customers.find(function(t){return t.id==e})),t&&(this.params.customerId=t.id)},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,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};"customer"!==this.$root.settings.role&&this.searchCustomers("",function(){var n=e.options&&"entities"in e.options&&"customers"in e.options.entities?e.options.entities.customers:[],o=n.map(function(e){return parseInt(e.id)}),i=n;e.searchedCustomers.forEach(function(e){-1===o.indexOf(parseInt(e.id))&&(o.push(e.id),i.push(e))}),e.$nextTick(function(){e.options.entities.customers=Object.values(i.sort(function(e,t){return e.firstName.toLowerCase()>t.firstName.toLowerCase()?1:-1})),e.params&&e.params.customerId&&e.setCustomerFromUrl(e.params.customerId),t()})})},searchCustomers:function(e,t){var n=this;clearTimeout(this.searchCustomersTimer),this.loadingCustomers=!0,this.searchCounter++,this.searchCustomersTimer=setTimeout(function(){var o=n.searchCounter,i={search:e,page:1,limit:n.$root.settings.general.customersFilterLimit,skipCount:1};n.params&&n.params.customerId&&(i.customers=[n.params.customerId]),n.$http.get(n.$root.getAjaxUrl+"/users/customers",{params:i}).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)},getNoShowClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(o&&"blocked"===o)return"am-customer-name am-customer-blocked";if(!this.$root.settings.roles.enableNoShowTag)return"";var i=null,r=this.searchedCustomers.map(function(e){return e.id}),s=this.options&&this.options.entities?this.options.entities.customers.map(function(e){return e.id}):[];if(n)i=n.noShowCount;else if(null!==t&&0!==t.length&&null!==e){var a=t.find(function(t){return t.id===e});i=a?a.count:0}else r.includes(e)&&this.searchedCustomers.length&&0!==e?i=this.searchedCustomers.find(function(t){return t.id===e}).noShowCount:s.includes(e)&&this.options.entities.customers&&0!==e&&(i=this.options.entities.customers.find(function(t){return t.id===e}).noShowCount);var l="";if(i)switch(l="am-customer-name",!0){case 1===i:l+=" am-no-show-gray";break;case 2===i:l+=" am-no-show-yellow";break;case i>=3:l+=" am-no-show-red"}return l},getOptionClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=e.customer?e.customer:e,i=this.getNoShowClass(o.id,t,o.noShowCount?o:null,n)||"";return i+=o.email?" am-drop-item-name":""}}}},674:function(e,t,n){"use strict";(function(e){var o=n(752),i=n(753),r=n(746);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<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|f(t,n),i=(e=a(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|h(t.length);return 0===(e=a(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?a(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=a(e,t<0?0:0|h(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|h(t.length);e=a(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(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 j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(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:v(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):v(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,o,i){var r,s=1,a=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;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(r=n;r<a;r++)if(c(e,r)===c(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*s}else-1!==u&&(r-=r-u),u=-1}else for(n+l>a&&(n=a-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 y(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 s=0;s<o;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function b(e,t,n,o){return q(j(t,e.length-n),e,n,o)}function _(e,t,n,o){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function w(e,t,n,o){return _(e,t,n,o)}function x(e,t,n,o){return q(H(t),e,n,o)}function C(e,t,n,o){return q(function(e,t){for(var n,o,i,r=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function S(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var r,s,a,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],s=e[i+2],128==(192&r)&&128==(192&s)&&(l=(15&c)<<12|(63&r)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=e[i+1],s=e[i+2],a=e[i+3],128==(192&r)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a)>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<=E)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=E));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=s(),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?a(e,t):void 0!==n?"string"==typeof o?a(e,t).fill(n,o):a(e,t).fill(n):a(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 s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o},l.byteLength=f,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?k(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 k(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(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,s=n-t,a=Math.min(r,s),c=this.slice(o,i),u=e.slice(t,n),d=0;d<a;++d)if(c[d]!==u[d]){r=c[d],s=u[d];break}return r<s?-1:s<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 g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(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 y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(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 E=4096;function T(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 D(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 R(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 O(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 I(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 A(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 M(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 $(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 F(e,t,n,o,r){return r||$(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function N(e,t,n,o,r){return r||$(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||O(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||O(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||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(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||O(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||O(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||O(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||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(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||O(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||O(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||O(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||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(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)||I(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)||I(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||I(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||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(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):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(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):M(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);I(this,e,t,n,i-1,-i)}var r=0,s=1,a=0;for(this[t]=255&e;++r<n&&(s*=256);)e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&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);I(this,e,t,n,i-1,-i)}var r=n-1,s=1,a=0;for(this[t+r]=255&e;--r>=0&&(s*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(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||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(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):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(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):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(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 s=l.isBuffer(e)?e:j(new l(e,o).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var o=e.length,i=null,r=[],s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+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 H(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(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(37))},675: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"}]}}}},676: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=(s=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),r=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(r).concat([i]).join("\n")}var s;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 s=e[i];"number"==typeof s[0]&&o[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},677:function(e,t,n){var o=n(90)(n(691),n(692),!1,null,null,null);e.exports=o.exports},678:function(e,t,n){"use strict";var o=n(655);t.a={mixins:[o.a],data:function(){return{}},methods:{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:{enabled:this.$root.settings.payments.wc.enabled,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},square:{enabled:this.$root.settings.payments.square.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},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled};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},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled},t.waitingList={enabled:!1,addingMethod:this.$root.settings.appointments.waitingListEvents.addingMethod,maxCapacity:1,maxExtraPeopleEnabled:!1,maxExtraPeople:0};break;case"package":t.general={redirectUrlAfterAppointment:null}}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){var t=this;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.square.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 n=JSON.parse(e);"payments"in n||(n.payments={}),["onSite","stripe","payPal","wc","mollie","razorpay","square"].forEach(function(e){e in n.payments||(n.payments[e]=t.$root.clonedSettings.payments[e])}),n.payments.wc=this.$root.clonedSettings.payments.wc,n.payments.mollie=this.$root.clonedSettings.payments.mollie,this.$root.clonedSettings.payments.onSite||(n.payments.onSite=this.$root.clonedSettings.payments.onSite),this.$root.clonedSettings.payments.square||(n.payments.square=this.$root.clonedSettings.payments.square),this.$root.clonedSettings.payments.payPal.enabled||(n.payments.payPal=this.$root.clonedSettings.payments.payPal),this.$root.clonedSettings.payments.stripe.enabled||(n.payments.stripe=this.$root.clonedSettings.payments.stripe),this.$root.clonedSettings.payments.razorpay.enabled&&n.payments.razorpay||(n.payments.razorpay=this.$root.clonedSettings.payments.razorpay),("onSite"in n.payments?n.payments.onSite&&this.$root.clonedSettings.payments.onSite:this.$root.clonedSettings.payments.onSite)&&("payPal"in n.payments?n.payments.payPal.enabled&&this.$root.clonedSettings.payments.payPal.enabled:this.$root.clonedSettings.payments.payPal.enabled)&&("stripe"in n.payments?n.payments.stripe.enabled&&this.$root.clonedSettings.payments.stripe.enabled:this.$root.clonedSettings.payments.stripe.enabled)&&("mollie"in n.payments?n.payments.mollie.enabled&&this.$root.clonedSettings.payments.mollie.enabled:this.$root.clonedSettings.payments.mollie.enabled)&&("razorpay"in n.payments?n.payments.razorpay.enabled&&this.$root.clonedSettings.payments.razorpay.enabled:this.$root.clonedSettings.payments.razorpay.enabled)&&("square"in n.payments?n.payments.square.enabled&&this.$root.clonedSettings.payments.square.enabled:this.$root.clonedSettings.payments.square.enabled)&&(n.payments=this.$root.clonedSettings.payments),e=JSON.stringify(n)}if(!0===this.$root.clonedSettings.payments.wc.enabled&&null!==e){var o=JSON.parse(e);"payments"in o||(o.payments={}),o.payments.onSite=this.$root.clonedSettings.payments.onSite,o.payments.stripe=this.$root.clonedSettings.payments.stripe,o.payments.payPal=this.$root.clonedSettings.payments.payPal,o.payments.mollie=this.$root.clonedSettings.payments.mollie,o.payments.square=this.$root.clonedSettings.payments.square,o.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(o)}if(!0===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var i=JSON.parse(e);"payments"in i||(i.payments={}),this.$root.clonedSettings.payments.onSite||(i.payments.onSite=this.$root.clonedSettings.payments.onSite,i.payments.mollie=this.$root.clonedSettings.payments.mollie),i.payments.stripe=this.$root.clonedSettings.payments.stripe,i.payments.payPal=this.$root.clonedSettings.payments.payPal,i.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(i)}if(!0===this.$root.clonedSettings.payments.square.enabled&&null!==e){var r=JSON.parse(e);"payments"in r||(r.payments={}),this.$root.clonedSettings.payments.onSite||(r.payments.onSite=this.$root.clonedSettings.payments.onSite,r.payments.square=this.$root.clonedSettings.payments.square),r.payments.stripe=this.$root.clonedSettings.payments.stripe,r.payments.payPal=this.$root.clonedSettings.payments.payPal,r.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(r)}"oliverPos"in this.$root.shortcodeData&&this.$root.shortcodeData.oliverPos&&((e=JSON.parse(e)).payments.onSite=!0,e.payments.stripe.enabled=!1,e.payments.payPal.enabled=!1,e.payments.razorpay.enabled=!1,e=JSON.stringify(e)),this.replaceExistingObjectProperties(this.$root.settings,null!==e?JSON.parse(e):this.$root.clonedSettings)}},prepareBookableEntityPaymentsForSave:function(e){var t=this,n={};return e&&"payments"in e&&("onSite"in e.payments&&e.payments.onSite!==this.$root.settings.payments.onSite&&(n.onSite=e.payments.onSite),["stripe","payPal","razorpay","mollie","square"].forEach(function(o){o in e.payments&&e.payments[o].enabled!==t.$root.settings.payments[o].enabled&&(n[o]=e.payments[o])}),"wc"in e.payments&&(e.payments.wc.enabled!==this.$root.settings.payments.wc.enabled||"productId"in e.payments.wc&&e.payments.wc.productId!==this.$root.settings.payments.wc.productId)&&(n.wc=e.payments.wc),n.paymentLinks=e.payments.paymentLinks),e.payments=n,e},prepareServiceSettingsForSave:function(e){var t=JSON.parse(JSON.stringify(e.settings));return"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:{}}},679: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],s="",a=0;a<i.length;a++)if(i[a]===r){s=n[o[a]];break}return s},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:{}}},680: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=a(n(713)),r=a(n(731)),s=a(n(732));function a(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,s.default)(i),"post"!==t&&(i.append("_method",t.toUpperCase()),t="post")),this.progress=0,this.errors.clear(),this.isPending=!0,new Promise(function(r,s){e.defaults.axios[t](n,i,o.config()).then(function(e){r(e.data)}).catch(function(e){o.handleError(e),s(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},681: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(702),r={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(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(g(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(g(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function g(e){var t,n,o=document.querySelector("style["+p+'~="'+e.id+'"]');if(o){if(c)return u;o.parentNode.removeChild(o)}if(h){var i=l++;o=a||(a=m()),t=b.bind(null,o,i,!1),n=b.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 s=i(e,t);return f(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(l=r[a.id]).refs--,n.push(l)}t?f(s=i(e,t)):s=[];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 v,y=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function b(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var r=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}},682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(675);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){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:{}}},683: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:[]}},684:function(e,t,n){"use strict";var o=n(666);t.a={mixins:[o.a],data:function(){return{}},methods:{getPaymentType:function(e){return e.gateway&&"onSite"!==e.gateway?"partiallyPaid"===e.status?"deposit":"online":"onsite"},longNamePayments:function(e){return["mollie","razorpay","square"].includes(e)},getPaymentData:function(e,t,n,o){var i=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s={};if(s.paymentId=e.id,t){s.bookableType="appointment";var a=this.getProviderById(t.providerId);a.fullName=a.firstName+" "+a.lastName,s.appointment=[{bookable:this.getServiceById(t.serviceId),bookingStart:t.bookingStart,providers:[a]}],t.bookings.forEach(function(t){t.payments.forEach(function(n){n.id===e.id&&(s.appointment[0].booking=t)})}),r.forEach(function(e){var t=i.getProviderById(e.providerId);t.fullName=t.firstName+" "+t.lastName,s.appointment.push({bookable:i.getServiceById(e.serviceId),bookingStart:e.bookingStart,providers:[t],booking:e.bookings[0]})})}return n&&(s.bookableType="event",s.event=[{bookable:n,bookingStart:n.periods[0].periodStart,providers:n.providers}],n.bookings.forEach(function(t){t.payments.forEach(function(n){n.id===e.id&&(s.event[0].booking=t)})})),o&&(s.bookableType="package",s.package=[{bookable:o.package,bookingStart:null,providers:[],booking:o.booking}]),s.customer={email:e.customerEmail,firstName:e.customerFirstName,lastName:e.customerLastName,id:e.customerId},s},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}},getPaymentClassName:function(e){var t=e.gateway;return"oliver"===e.gatewayTitle&&(t="oliver"),"am-appointment-payment am-appointment-payment-"+t},getPaymentIconName:function(e){return"onSite"!==e.gateway&&"stripe"!==e.gateway||"oliver"!==e.gatewayTitle?e.gateway+".svg":"oliver.png"},getPaymentGatewayNiceName:function(e){return"stripe"===e.gateway&&"oliver"===e.gatewayTitle?this.$root.labels.oliver_on_line:"onSite"===e.gateway&&"oliver"===e.gatewayTitle?this.$root.labels.oliver_on_site:"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){switch(e){case"razorpay":return"76px";case"square":return"70px";case"mollie":return"38px";default:return"16px"}},getPaymentAmountData:function(e,t){var n={bookablePriceTotal:0,extrasPriceTotal:0,tax:0,wcTax:0,discountTotal:0,paidDeposit:0,paidRemaining:0,paid:0,refunded:0,subtotal:0,total:0,due:0},o=this;return e.forEach(function(e){var i=e.booking;switch(i.tax&&!Array.isArray(i.tax)&&(i.tax=JSON.parse(i.tax)),t){case"appointment":var r=o.getAppointmentPriceAmount({price:i.price,aggregatedPrice:i.aggregatedPrice,tax:i.tax,id:null},i.extras,i.persons,i.coupon,!1);n.bookablePriceTotal+=r.totalBookable,n.extrasPriceTotal+=r.total-r.totalBookable,n.tax+=r.tax,n.discountTotal+=r.discount;break;case"event":var s=o.getEventBookingPriceAmount(i);n.bookablePriceTotal+=s.total,n.extrasPriceTotal+=0,n.tax+=s.tax,n.discountTotal+=s.discount;break;case"package":var a=null;i.payments.forEach(function(e){a=e.coupon?e.coupon:a});var l=i.price*(i.aggregatedPrice?i.persons:1),c=o.getAmountData(i.tax&&i.tax.length?i.tax[0]:null,l,a);n.bookablePriceTotal+=c.total,n.extrasPriceTotal+=0,n.tax+=c.tax,n.discountTotal+=c.discount}var u=0,d=0;i.payments.forEach(function(e){n.discountTotal+=e.wcOrderId?e.wcItemCouponValue:0,"paid"===e.status?d+=e.amount:"partiallyPaid"===e.status&&(u+=e.amount),e.wcOrderId&&e.wcItemTaxValue&&(n.wcTax+=e.wcItemTaxValue)}),n.paidDeposit+=u,n.paidRemaining+=d,n.refunded+=i.payments.filter(function(e){return"refunded"===e.status}).reduce(function(e,t){return e+t.amount},0)}),n.subTotal=n.bookablePriceTotal+n.extrasPriceTotal,n.total=n.subTotal+n.tax+n.wcTax,n.total-=n.discountTotal,n.paid=n.paidDeposit+n.paidRemaining,n.total=n.total>=0?n.total:0,n.due=n.total-n.paid>0?n.total-n.paid:0,n}}}},686: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)}}},687:function(e,t,n){"use strict";var o=n(656),i=n(717),r=n(719),s=n(720),a=n(721),l=n(688),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(722);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 h=new XMLHttpRequest,f="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||a(e.url)||(h=new window.XDomainRequest,f="onload",m=!0,h.onprogress=function(){},h.ontimeout=function(){}),e.auth){var g=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+c(g+":"+v)}if(h.open(e.method.toUpperCase(),r(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h[f]=function(){if(h&&(4===h.readyState||m)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:e,request:h};i(t,u,o),h=null}},h.onerror=function(){u(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},o.isStandardBrowserEnv()){var y=n(723),b=(e.withCredentials||a(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&o.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),u(e),h=null)}),void 0===d&&(d=null),h.send(d)})}},688:function(e,t,n){"use strict";var o=n(718);e.exports=function(e,t,n,i,r){var s=new Error(e);return o(s,t,n,i,r)}},689:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},690: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},691: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,s=!1,a=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,h=void 0;try{for(var f,m=u.types[Symbol.iterator]();!(d=(f=m.next()).done);d=!0){var g=f.value;if(n.includes(g)){t.push(u);break}}}catch(e){p=!0,h=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw h}}}}catch(e){s=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}return t}}}},692: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:[]}},693:function(e,t,n){var o=n(90)(n(694),n(695),!1,null,null,null);e.exports=o.exports},694:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(91),i=n(336),r=n(654);t.default={mixins:[o.a,i.a,r.a],props:["oldCustomize","appointmentsApproved","appointmentsPending","employeesTotal","customersTotal","locationsTotal","packagesTotal","resourcesTotal","servicesTotal","categoriesTotal","financeTotal","addNewTaxBtnDisplay","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")},showDialogTax:function(){this.$emit("newTaxBtnClicked")},showDialogCoupon:function(){this.$emit("newCouponBtnClicked")},showDialogCustomFields:function(){this.$emit("newCustomFieldBtnClicked")},selectAllInCategory:function(e){this.$emit("selectAllInCategory",e)},changeFilter:function(){this.$emit("changeFilter")}}}},695: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(" "),"wpamelia-employees"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&!0===e.$root.settings.capabilities.canWriteOthers?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._e(),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(" "),"wpamelia-locations"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled(),attrs:{type:"primary",disabled:e.notInLicence()},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(),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(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"packages"===e.bookableType?n("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:e.notInLicence("pro")},on:{click:function(t){e.packagesTotal>=0?e.showDialogPackage():e.showDialogPackageBooking()}}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.packagesTotal>=0?e.$root.labels.add_package:e.$root.labels.book_package))])]):e._e(),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"resources"===e.bookableType?n("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:e.notInLicence("pro")},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(),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewTaxBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled(),attrs:{type:"primary",disabled:e.notInLicence()},on:{click:e.showDialogTax}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_tax))])]):e._e(),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewCouponBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:e.licenceClassDisabled("starter"),attrs:{type:"primary",disabled:e.notInLicence("starter")},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(),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:[]}},697:function(e,t,n){var o=n(90)(n(739),n(740),!1,null,null,null);e.exports=o.exports},698:function(e,t,n){"use strict";var o=n(0),i=n.n(o),r=n(661);t.a={mixins:[r.a],data:function(){return{recurringDates:[]}},methods:{getRecurringAppointmentsData:function(){var e=this,t=[];return this.recurringData.dates.forEach(function(n){var o=e.getProviderService(n.providerId,e.appointment.serviceId);t.push({providerId:n.providerId,locationId:n.locationId,bookingStart:i()(n.date).format("YYYY-MM-DD")+" "+n.time,price:e.getBookingServicePrice(o,e.appointment.serviceDuration,e.appointment.bookings[0].persons,n.providerId,i()(n.date).format("YYYY-MM-DD")+" "+n.time),depositData:"disabled"!==o.depositPayment?{deposit:o.deposit,depositPayment:o.depositPayment,depositPerPerson:o.depositPerPerson}:null})}),t.shift(),t},toggleRecurringActive:function(){this.appointment.serviceId&&"disabled"!==this.getServiceById(this.appointment.serviceId).recurringCycle?this.isRecurringAvailable=!0:(this.isRecurringAvailable=!1,this.activeRecurring=!1)},getDefaultRecurringSettings:function(e,t,n){var o=this.getAvailableRecurringDates(n),r="all"===t?"daily":t,s="",a=i()(e,"YYYY-MM-DD"),l=a.format("D");switch(r){case"daily":s="day";break;case"weekly":s="week";break;case"monthly":s="month"}return{selectedMonthlyWeekDayString:a.format("dddd"),monthDateRule:Math.ceil(l/7),cycle:r,maxDate:i()(e,"YYYY-MM-DD HH:mm").add(1,"days").toDate(),maxCount:1,selectedWeekDayIndex:a.isoWeekday()-1,calendarDates:o,cycleInterval:1,weekDaysSelected:[a.isoWeekday()-1],repeatIntervalLabels:this.getRepeatIntervalLabels(this.$root.labels[s],this.$root.labels[s+"s"],i()(o[o.length-1]).diff(a,"days"))}},getAvailableRecurringDates:function(e){var t=[];return this.useSortedDateStrings(Object.keys(e)).forEach(function(e){t.push(i()(e+" 00:00:00"))}),t},getRepeatIntervalLabels:function(e,t,n){for(var o=[],i=0;i<n;i++)o.push({label:0===i?e:i+1+" "+t,value:i+1});return o}}}},699: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 s=n.i(i.a)(r.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var a=e.getElementsByTagName("input");1!==a.length||(e=a[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(o.a)(e.value,s),t=Math.max(t,s.suffix.length),t=e.value.length-t,t=Math.max(t,s.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-s.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(s(t.precision)));var n=e.indexOf("-")>=0?"-":"",o=l(a(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=a(r(e),t);return parseFloat(o)*n}function r(e){return l(e).replace(/\D+/g,"")||"0"}function s(e){return function(e,t,n){return Math.max(e,Math.min(t,n))}(0,e,20)}function a(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(s(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){a.a[e]=t[e]}),e.directive("money",s.a),e.component("money",r.a)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=n.n(i),s=n(1),a=n(0);n.d(t,"Money",function(){return r.a}),n.d(t,"VMoney",function(){return s.a}),n.d(t,"options",function(){return a.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||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,r=e.default);var a="function"==typeof r?r.options:r;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),n&&(a._scopeId=n),o){var l=a.computed||(a.computed={});Object.keys(o).forEach(function(e){var t=o[e];l[e]=function(){return t}})}return{esModule:i,exports:r,options:a}}},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()},700: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,this.options.entities.taxes="taxes"in e?e.taxes:[];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,this.options.entities.taxes="taxes"in e?e.taxes:[]},getEntities:function(e){var t=this;if(this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({lite:!0,types:["locations","tags","custom_fields","employees","taxes"]})}).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 s=t&&t.periodEnd===i.periodStart;s&&n.pop(),t={periodStart:s?t.periodStart:i.periodStart,periodEnd:i.periodEnd,isConnected:s},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],s=e.periodEnd.split(" ")[1];"00:00:00"===s&&(s="24:00:00",o.subtract(1,"days"));for(var a=[];n.isSameOrBefore(o);)a.push(n.format("YYYY-MM-DD")),n.add(1,"days");a.forEach(function(n){t.push({periodStart:n+" "+r,periodEnd:n+" "+s,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},disableTicketSelection:function(e,t,n,o){if(e.bringingAnyone)return this.getMaxTicketSelected(e,t,n)<=0;var i,r=[];return n.forEach(function(e){r.push(e.persons)}),i=-1!==r.indexOf(1)?1:0,e.maxCustomCapacity?i!==o:i!==o||t.spots===t.sold}}}},702:function(e,t){e.exports=function(e,t){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],s=r[0],a={id:e+":"+i,css:r[1],media:r[2],sourceMap:r[3]};o[s]?o[s].parts.push(a):n.push(o[s]={id:s,parts:[a]})}return n}},704:function(e,t,n){"use strict";var o=n(666),i=n(661);t.a={mixins:[i.a,o.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)},getAppointmentPrice:function(e,t){var n=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=0;return t.filter(function(e){return null===e.packageCustomerService}).forEach(function(t){["approved","pending"].includes(t.status)&&(i+=n.getBookingPrice(t,!1,t.price,t.aggregatedPrice,e.id))}),o?this.getFormattedPrice(i>=0?i:0,!this.$root.settings.payments.hideCurrencySymbolFrontend):i>=0?i:0},getBookingPrice:function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r={price:t?n:e.price,aggregatedPrice:o,id:t?null:i};t||(r.tax=e.tax);var s=this.getAppointmentPriceAmount(r,e.extras.filter(function(e){return!("selected"in e)||e.selected}),e.persons,e.coupon,!1);return s.discount>s.total?0:s.total-s.discount+s.tax},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}}}},705: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){})}}}},706:function(e,t,n){var o=n(90)(null,n(707),!1,null,null,null);e.exports=o.exports},707:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},708:function(e,t,n){var o=n(90)(null,n(709),!1,null,null,null);e.exports=o.exports},709:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},711: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.appointment.bookings[0].customer.translations=this.currentUser.translations,this.phonePopulated=!!this.currentUser.phone&&""!==this.currentUser.phone.trim())}}}},713:function(e,t,n){e.exports=n(714)},714:function(e,t,n){"use strict";var o=n(656),i=n(686),r=n(715),s=n(669);function a(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=a(s);l.Axios=r,l.create=function(e){return a(o.merge(s,e))},l.Cancel=n(690),l.CancelToken=n(729),l.isCancel=n(689),l.all=function(e){return Promise.all(e)},l.spread=n(730),e.exports=l,e.exports.default=l},715:function(e,t,n){"use strict";var o=n(669),i=n(656),r=n(724),s=n(725),a=n(727),l=n(728);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&&!a(e.url)&&(e.url=l(e.baseURL,e.url));var t=[s,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},716:function(e,t,n){"use strict";var o=n(656);e.exports=function(e,t){o.forEach(e,function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])})}},717:function(e,t,n){"use strict";var o=n(688);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)}},718: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}},719:function(e,t,n){"use strict";var o=n(656);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 s=[];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)),s.push(i(t)+"="+i(e))}))}),r=s.join("&")}return r&&(e+=(-1===e.indexOf("?")?"?":"&")+r),e}},720:function(e,t,n){"use strict";var o=n(656);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}},721:function(e,t,n){"use strict";var o=n(656);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}},722: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),s="",a=0,l=o;r.charAt(0|a)||(l="=",a%1);s+=l.charAt(63&t>>8-a%1*8)){if((n=r.charCodeAt(a+=.75))>255)throw new i;t=t<<8|n}return s}},723:function(e,t,n){"use strict";var o=n(656);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,i,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(i)&&a.push("path="+i),o.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.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(){}}},724:function(e,t,n){"use strict";var o=n(656);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},725:function(e,t,n){"use strict";var o=n(656),i=n(726),r=n(689),s=n(669);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(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||s.adapter)(e).then(function(t){return a(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return r(t)||(a(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},726:function(e,t,n){"use strict";var o=n(656);e.exports=function(e,t,n){return o.forEach(n,function(n){e=n(e,t)}),e}},727:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},728:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},729:function(e,t,n){"use strict";var o=n(690);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},730:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},731: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(11),s=(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?s.default.delete(this.errors,e):this.errors={}}},{key:"any",value:function(){return Object.keys(this.errors).length>0}}]),e}()},732: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,s,a){if(n instanceof FormData&&(a=s,s=n,n=null),(n=n||{}).indices=!o(n.indices)&&n.indices,n.nulls=!!o(n.nulls)||n.nulls,s=s||new FormData,o(t))return s;if(function(e){return null===e}(t))n.nulls&&s.append(a,"");else if(i(t))if(t.length)t.forEach(function(t,o){var i=a+"["+(n.indices?o:"")+"]";e(t,n,s,i)});else{var l=a+"[]";s.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)?s.append(a,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,s,a?a+"["+o+"]":o)}):s.append(a,t.toISOString());return s}},733:function(e,t,n){var o=n(90)(n(750),n(754),!1,null,null,null);e.exports=o.exports},734: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),s=n(5)(i.a,r.a,!1,null,null,null);t.default=s.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)),s=window.Quill||i.default,a=function(e,t){t&&(r.default.props.globalOptions.default=function(){return t}),e.component(r.default.name,r.default)},l={Quill:s,quillEditor:r.default,install:a};t.default=l,t.Quill=s,t.quillEditor=r.default,t.install=a},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)),s=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 s(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,s=e.quill.getText();"<p><br></p>"===i&&(i=""),e._content=i,e.$emit("input",e._content),e.$emit("change",{html:i,text:s,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 s,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,a=e.default);var c,u="function"==typeof a?a.options:a;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:s,exports:a,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(751))},735:function(e,t,n){"use strict";var o=n(658),i=n(336);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},{value:"%company_vat_number%",label:this.$root.labels.ph_company_vat_number}],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,type:"package"},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used,type:"package"}],employeePlaceholders:[{value:"%employee_id%",label:this.$root.labels.ph_employee_id},{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_due_amount%",label:this.$root.labels.ph_payment_due_amount},{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},{value:"%payment_link_square%",label:this.$root.labels.ph_payment_link_square}],categoryPlaceholders:[{value:"%category_id%",label:this.$root.labels.ph_category_id},{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_id%",label:this.$root.labels.ph_service_id},{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_id%",label:this.$root.labels.ph_location_id},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%location_phone%",label:this.$root.labels.ph_location_phone},{value:"%location_latitude%",label:this.$root.labels.ph_location_latitude},{value:"%location_longitude%",label:this.$root.labels.ph_location_longitude}],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_approve_url%",label:this.$root.labels.ph_appointment_approve_url,parse:"link"},{value:"%appointment_reject_url%",label:this.$root.labels.ph_appointment_reject_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,type:"appointment"},{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:"%microsoft_teams_url%",label:this.$root.labels.ph_microsoft_teams_url},{value:"%lesson_space_url%",label:this.$root.labels.ph_lesson_space_url},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name,type:"appointment"},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description,type:"appointment"},{value:"%time_zone%",label:this.$root.labels.ph_time_zone,type:"appointment"}],eventPlaceholders:[{value:"%attendee_code%",label:this.$root.labels.ph_attendee_code},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used,type:"event"},{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_id%",label:this.$root.labels.ph_event_id},{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:"%microsoft_teams_url_date%",label:this.$root.labels.ph_microsoft_teams_url_date},{value:"%microsoft_teams_url_date_time%",label:this.$root.labels.ph_microsoft_teams_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,type:"event"},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description,type:"event"},{value:"%time_zone%",label:this.$root.labels.ph_time_zone,type:"event"}],cartPlaceholders:[{value:"%cart_appointments_details%",label:this.$root.labels.ph_cart_appointments_details}],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>","%appointment_approve_url%":'<a href="%appointment_approve_url%">'+this.$root.labels.ph_appointment_approve_url+"</a>","%appointment_reject_url%":'<a href="%appointment_reject_url%">'+this.$root.labels.ph_appointment_reject_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>","%appointment_approve_url%":'<a href="%appointment_approve_url%">'+this.$root.labels.ph_appointment_approve_url+"</a>","%appointment_reject_url%":'<a href="%appointment_reject_url%">'+this.$root.labels.ph_appointment_reject_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)))},getCartPlaceholders:function(){return this.initialGroupedPlaceholders.cartPlaceholders},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}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extras_details%",label:this.$root.labels.ph_extras_details})},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)}},computed:{}}},738:function(e,t,n){"use strict";var o=n(735);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]}}}},739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(680),i=n.n(o),r=n(658),s=n(336),a=n(668),l=n(705);t.default={mixins:[r.a,s.a,a.a,l.a],props:{formName:"",urlName:null,urlSubName:{type:String,default:""},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,haveBlock:!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,showBlockConfirmation:!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"block":case"duplicate":return this.hasIcons?null:this.buttonType.duplicate}},closeDialog:function(){this.$parent.$emit("closeDialog")},closeMessage:function(){this.showSaveConfirmation=!1,this.$emit("closeSaveConfirmation")},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)},errorEntityMissing:function(e){return!!("data"in e.response&&"data"in e.response.data&&"object"===e.response.data.data&&"entityMissing"in e.response.data.data&&e.response.data.data.entityMissing)&&(this.dialogLoading=!1,this.notify(this.$root.labels.error,e.response.data.message,"error"),!0)},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){if(e.response){if(t.errorEntityMissing(e))return;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.urlSubName+"/"+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){if(e.response){if(t.errorEntityMissing(e))return;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)})},blockEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:"visible"===this.entity.status?this.status.block:this.status.on,applyGlobally:e}).then(function(){t.onSuccess(t.$root.labels.success,t.message.success.block,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,this.showBlockConfirmation=!1},handleDuplicateConfirmation:function(){this.showDuplicateConfirmation=!this.showDuplicateConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showVisibilityConfirmation=!1,this.showBlockConfirmation=!1},handleVisibilityConfirmation:function(){this.showVisibilityConfirmation=!this.showVisibilityConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1,this.showBlockConfirmation=!1},handleBlockConfirmation:function(){this.showBlockConfirmation=!this.showBlockConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1,this.showVisibilityConfirmation=!1},handleDeleteConfirmation:function(){var e=this;this.showVisibilityConfirmation=!1,this.showDuplicateConfirmation=!1,this.showSaveConfirmation=!1,this.showBlockConfirmation=!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}},getConfirmBlockButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.status?{yes:this.buttonText.confirm.status.block,no:this.buttonText.confirm.status.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},isStatusBlocked:function(){return this.entity.status===this.status.block}},computed:{},components:{}}},740: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",{staticClass:"am-dialog-action-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}})],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().no)+"\n ")]):e._e()],1)]):e._e()]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[e.status?n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBlockConfirmation,expression:"showBlockConfirmation"}],staticClass:"am-dialog-confirmation"},[n("h3",[e._v(e._s(e.message.confirm.block))]),e._v(" "),n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showBlockConfirmation=!e.showBlockConfirmation}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.blockEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmBlockButtonText().yes)+"\n ")])],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",{staticStyle:{display:"block"}},[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",staticStyle:{display:"block"}},[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(" "),n("el-col",{attrs:{span:22}},[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(" "),n("el-col",{attrs:{span:2}},[e.showSaveConfirmation?n("el-button",{staticClass:"am-dialog-action-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:function(t){return e.closeMessage()}}}):e._e()],1)],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(),e._v(" "),e.action.haveBlock?n("el-button",{staticClass:"am-button-block",attrs:{type:e.getButtonType("block")},on:{click:e.handleBlockConfirmation}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.block,src:e.$root.getUrl+(e.isStatusBlocked()?"public/img/unblock.svg":"public/img/block.svg")}}),e._v(" "),n("span",[e._v("\n "+e._s(e.getConfirmBlockButtonText().yes)+"\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:[]}},746:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},749: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,s,a=String(i(t)),l=o(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-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"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("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=a(e),h=!r(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),f=h?!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(!h||!f||"replace"===e&&!u||"split"===e&&!d){var m=/./[p],g=n(s,p,""[e],function(e,t,n,o,i){return t.exec===l?h&&!i?{done:!0,value:m.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}),v=g[0],y=g[1];o(String.prototype,e,v),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.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,s;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"==(s=o(t))&&"function"==typeof t.callee?"Arguments":s}},"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"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||i(n,s,e[t]?""+e[t]:c.join(String(t)))),e===o?e[t]=n:a?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[s]||a.call(this)})},"2b4c":function(e,t,n){var o=n("5537")("wks"),i=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=s&&r[e]||(s?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"),s=n("35e8"),a=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,n,g,v,y,b){l(n,t,g);var _,w,x,C=function(e){if(!p&&e in T)return T[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",k=v==f,E=!1,T=e.prototype,D=T[d]||T["@@iterator"]||v&&T[v],P=D||C(v),R=v?k?C("entries"):P:void 0,O="Array"==t&&T.entries||D;if(O&&((x=u(O.call(new e)))!==Object.prototype&&x.next&&(c(x,S,!0),o||"function"==typeof x[d]||s(x,d,m))),k&&D&&D.name!==f&&(E=!0,P=function(){return D.call(this)}),o&&!b||!p&&!E&&T[d]||s(T,d,P),a[t]=P,a[S]=m,v)if(_={values:k?P:C(f),keys:y?P:C(h),entries:R},b)for(w in _)w in T||r(T,w,_[w]);else i(i.P+i.F*(p||E),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,s;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"==(s=o(t))&&"function"==typeof t.callee?"Arguments":s}},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],s=r[o]();s.next=function(){return{done:n=!0}},r[o]=function(){return s},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,s="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=s&&r[e]||(s?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,s=i,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(s=function(e){var t,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",o.call(d))),l&&(t=d[a]),s=i.call(d,e),l&&s&&(d[a]=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),e.exports=s},"53e2":function(e,t,n){var o=n("07e3"),i=n("241e"),r=n("5559")("IE_PROTO"),s=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?s:null}},"549b":function(e,t,n){"use strict";var o=n("d864"),i=n("63b6"),r=n("241e"),s=n("b0dc"),a=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),h="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(p);if(g&&(m=o(m,f>2?arguments[2]:void 0,2)),void 0==y||h==Array&&a(y))for(n=new h(t=l(p.length));t>v;v++)c(n,v,g?m(p[v],v):p[v]);else for(d=y.call(p),n=new h;!(i=d.next()).done;v++)c(n,v,g?s(d,m,[i.value,v],!0):i.value);return n.length=v,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__",s=i[r]||(i[r]={});(e.exports=function(e,t){return s[e]||(s[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,s){var a,l=o(t),c=i(l.length),u=r(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)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"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(e,t,n){var u,d,p,h,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,y=e&c.B,b=m?o:g?o[t]||(o[t]={}):(o[t]||{})[l],_=m?i:i[t]||(i[t]={}),w=_[l]||(_[l]={});for(u in m&&(n=t),n)p=((d=!f&&b&&void 0!==b[u])?b:n)[u],h=y&&d?a(p,o):v&&"function"==typeof p?a(Function.call,p):p,b&&s(b,u,p,e&c.U),_[u]!=p&&r(_,u,h),v&&w[u]!=p&&(w[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"),s=n("35e8"),a=n("07e3"),l="prototype",c=function(e,t,n){var u,d,p,h=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,b=f?i:i[t]||(i[t]={}),_=b[l],w=f?o:m?o[t]:(o[t]||{})[l];for(u in f&&(n=t),n)(d=!h&&w&&void 0!==w[u])&&a(b,u)||(p=d?w[u]:n[u],b[u]=f&&"function"!=typeof w[u]?n[u]:v&&d?r(p,o):y&&w[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):g&&"function"==typeof p?r(Function.call,p):p,g&&((b.virtual||(b.virtual={}))[u]=p,e&c.R&&_&&!_[u]&&s(_,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"),s=n("5168")("toStringTag"),a="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<a.length;l++){var c=a[l],u=o[c],d=u&&u.prototype;d&&!d[s]&&i(d,s,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,s,a=String(i(t)),l=o(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-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,s=r(t),a=s.length,l=0;a>l;)o.f(e,n=s[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"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return s(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"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(s,{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"),s=n("241e"),a=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=s(e),l=arguments.length,c=1,u=i.f,d=r.f;l>c;)for(var p,h=a(arguments[c++]),f=u?o(h).concat(u(h)):o(h),m=f.length,g=0;m>g;)d.call(h,p=f[g++])&&(n[p]=h[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"),s=n("5559")("IE_PROTO"),a=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?(a[l]=o(e),n=new a,a[l]=null,n[s]=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"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,f=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),s=void 0==o?void 0:o[t];return void 0!==s?s.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),h="function"==typeof t;h||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}for(var b=[];;){var _=l(d,p);if(null===_)break;if(b.push(_),!v)break;""===String(_[0])&&(d.lastIndex=a(p,r(d.lastIndex),y))}for(var w="",x=0,C=0;C<b.length;C++){_=b[C];for(var S=String(_[0]),k=c(u(s(_.index),p.length),0),E=[],T=1;T<_.length;T++)E.push(f(_[T]));var D=_.groups;if(h){var P=[S].concat(E,k,p);void 0!==D&&P.push(D);var R=String(t.apply(void 0,P))}else R=g(S,p,k,E,D,t);k>=x&&(w+=p.slice(x,k)+R,x=k+S.length)}return w+p.slice(x)}];function g(e,t,o,r,s,a){var l=o+e.length,c=r.length,u=h;return void 0!==s&&(s=i(s),u=p),n.call(a,u,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(l);case"<":a=s[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}a=r[u-1]}return void 0===a?"":a})}})},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,s){var a,l=o(t),c=i(l.length),u=r(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)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"),s=n("36c3");e.exports=n("30f1")(Array,"Array",function(e,t){this._t=s(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 a}),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 s=/-(\w)/g,a=function(e){var t=i()(null);return function(n){return t[n]||(t[n]=e(n))}}(function(e){return e.replace(s,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],s={};s[e]=t(n),o(o.S+o.F*r(function(){n(1)}),"Object",s)}},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"),s=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return s(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__",s=i[r]||(i[r]={});(e.exports=function(e,t){return s[e]||(s[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),s=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,c=[];for(n in a)n!=s&&o(a,n)&&c.push(n);for(;t.length>l;)o(a,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"),s="startsWith",a=""[s];o(o.P+o.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return a?a.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),s=(n("f559"),n("a4bb")),a=n.n(s),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 s,a=d()(e);!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h=n("774e"),f=n.n(h),m=n("c8bb"),g=n.n(m);function v(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(g()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return f()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y=n("a352"),b=n.n(y),_=n("c649");function w(e,t){var n=this;this.$nextTick(function(){return n.$emit(e.toLowerCase(),t)})}function x(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",a()(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,s=t.props,l=t.attrs;return o("on",i),o("props",s),r()(n.attrs,l),n}var C=["Start","Add","Remove","Update","End"],S=["Choose","Sort","Filter","Clone"],k=["Move"].concat(C,S).map(function(e){return"on"+e}),E=null,T={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(v(n),v(e)):v(n)),o&&(r=o.length,e=e?[].concat(v(e),v(o)):v(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 s=x(this.$attrs,this.componentData);return e(this.getTag(),s,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={};C.forEach(function(n){t["on"+n]=function(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}.call(e,n)}),S.forEach(function(n){t["on"+n]=w.bind(e,n)});var n=a()(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 b.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===k.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,s=v(t).map(function(e,t){return t>=r?i.length:i.indexOf(e)});return n?s.filter(function(e){return-1!==e}):s}(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=v(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(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,s={list:i,component:o};if(t!==n&&i&&o.getUnderlyingVm){var a=o.getUnderlyingVm(n);if(a)return r()(a,s)}return s},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),E=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=v(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(E)||!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,s=this.computeFutureIndex(o,e);return r()(i,{futureIndex:s}),n(r()({},e,{relatedContext:o,draggedContext:i}),t)},onDragEnd:function(){this.computeIndexes(),E=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var D=T;t.default=D}}).default},e.exports=o(n(805))},750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(734),i=(n.n(o),n(738));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(e){this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e",""),this.$emit("changeQuillContent",e)},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}}},751: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),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),p=n(32),h=n(33),f=n(31),m=n(1),g={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:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:p.default,Style:h.default,Store:f.default}};t.default=g},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 s,a={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=s.ANY),"string"==typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?n=u.block:e&s.LEVEL&s.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&s.LEVEL&n.scope&&t&s.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"}(s=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?a[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),s=n(20),a=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+s.length(t):t.delete?e-t.delete:e},0)},l.prototype.length=function(){return this.reduce(function(e,t){return e+s.length(t)},0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=s.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+=s.length(r)}return new l(n)},l.prototype.compose=function(e){for(var t=s.iterator(this.ops),n=s.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),a=n.next(i);if("number"==typeof a.retain){var c={};"number"==typeof r.retain?c.retain=i:c.insert=r.insert;var u=s.attributes.compose(r.attributes,a.attributes,"number"==typeof r.retain);u&&(c.attributes=u),o.push(c)}else"number"==typeof a.delete&&"number"==typeof r.retain&&o.push(a)}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:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),r=new l,c=o(n[0],n[1],t),u=s.iterator(this.ops),d=s.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 a=u.next(n),l=d.next(n);i(a.insert,l.insert)?r.retain(n,s.attributes.diff(a.attributes,l.attributes)):r.push(l).delete(n)}t-=n}}),r.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),o=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var r=n.peek(),a=s.length(r)-n.peekLength(),c="string"==typeof r.insert?r.insert.indexOf(t,a)-a:-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=s.iterator(this.ops),o=s.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()),a=n.next(r),c=o.next(r);if(a.delete)continue;c.delete?i.push(c):i.retain(r,s.attributes.transform(a.attributes,c.attributes,t))}else i.retain(s.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.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,s,a,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!==(s=t[n])&&(p&&s&&(r(s)||(a=i(s)))?(a?(a=!1,l=o&&i(o)?o:[]):l=o&&r(o)?o:{},c[n]=e(p,l,s)):void 0!==s&&(c[n]=s));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 s=i.get;return void 0!==s?s.call(o):void 0},r=d(n(3)),s=d(n(2)),a=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 h(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 f(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),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,a.default.Embed),o(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.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=a.default.create(g.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=a.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return f(t,a.default.Block),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))},new s.default).insert("\n",v(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||(a.default.query(o,a.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"),s=r.shift();s.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),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;r.reduce(function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length},e+s.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 v(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:v(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,a.default.Embed,u.default],t.bubbleFormats=v,t.BlockEmbed=m,t.default=g},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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s=g(n(2)),a=g(n(14)),l=g(n(8)),c=g(n(9)),u=g(n(0)),d=n(15),p=g(d),h=g(n(3)),f=g(n(10)),m=g(n(34));function g(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 y=(0,f.default)("quill"),b=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 y.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 a.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;w.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"),f.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]&&y.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||y.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=x(e,t,n),s=i(r,4);return e=s[0],t=s[1],n=s[3],w.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 w.call(this,function(){var o=n.getSelection(!0),i=new s.default;if(null==o)return i;if(u.default.query(e,u.default.Scope.BLOCK))i=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),i;i=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,l.default.sources.SILENT),i},o)}},{key:"formatLine",value:function(e,t,n,o,r){var s,a=this,l=x(e,t,n,o,r),c=i(l,4);return e=c[0],t=c[1],s=c[2],r=c[3],w.call(this,function(){return a.editor.formatLine(e,t,s)},r,e,0)}},{key:"formatText",value:function(e,t,n,o,r){var s,a=this,l=x(e,t,n,o,r),c=i(l,4);return e=c[0],t=c[1],s=c[2],r=c[3],w.call(this,function(){return a.editor.formatText(e,t,s)},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=x(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=x(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 w.call(this,function(){return i.editor.insertEmbed(t,n,o)},r,t)}},{key:"insertText",value:function(e,t,n,o,r){var s,a=this,l=x(e,0,n,o,r),c=i(l,4);return e=c[0],s=c[2],r=c[3],w.call(this,function(){return a.editor.insertText(e,t,s)},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=x(e,t,n),s=i(r,4);return e=s[0],t=s[1],n=s[3],w.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 w.call(this,function(){e=new s.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=x(t,n,o),s=i(r,4);t=s[0],n=s[1],o=s[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 s.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 w.call(this,function(){return e=new s.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function _(e,t){if((t=(0,h.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.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,h.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=b.import("modules/"+t);return null==n?y.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,h.default)(!0,{},b.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 w(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),r=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==o?i=C(i,a,t):0!==o&&(i=C(i,n,o,t)),this.setSelection(i,l.default.sources.SILENT)),a.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,a,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 a}function x(e,t,n,i,r){var s={};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))?(s=n,r=i):"string"==typeof n&&(null!=i?s[n]=i:r=n),[e,t,s,r=r||l.default.sources.API]}function C(e,t,n,o){if(null==e)return null;var r=void 0,a=void 0;if(t instanceof s.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],a=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)}),h=i(p,2);r=h[0],a=h[1]}return new d.Range(r,a-r)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.6",b.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=x,t.default=b},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 s=i.get;return void 0!==s?s.call(o):void 0},r=a(n(7)),s=a(n(0));function a(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,s.default.Inline),o(t,[{key:"formatAt",value:function(e,n,o,r){if(t.compare(this.statics.blotName,o)<0&&s.default.query(o,s.default.Scope.BLOT)){var a=this.isolate(e,n);r&&a.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,s.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 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,r.default.Text),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}}(),i=r(n(54));function r(e){return e&&e.__esModule?e:{default:e}}var s=(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 a=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",s.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(){s.log.apply(s,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 s=i.get;return void 0!==s?s.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}();a.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"},a.sources={API:"api",SILENT:"silent",USER:"user"},t.default=a},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),s=1;s<n;s++)r[s-1]=arguments[s];(t=console)[e].apply(t,r)}}function s(e){return o.reduce(function(t,n){return t[n]=r.bind(console,n,e),t},{})}r.level=s.level=function(e){i=e},t.default=s},function(e,t,n){var o=Array.prototype.slice,i=n(52),r=n(53),s=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(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e))return!!r(t)&&(e=o.call(e),t=o.call(t),s(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],!s(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s=i.get;return void 0!==s?s.call(o):void 0},s=d(n(2)),a=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 h(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 f(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),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,c.default),t}();m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(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 s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(u.default,this.length()-1),s=o(i,1)[0];null!=s&&s.deleteAt(s.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!=a.default.query(o,a.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 s=this.newlineIndex(e,!0)+1,l=r-s+1,c=this.isolate(s,l),u=c.next;c.format(o,i),u instanceof t&&u.formatAt(0,e-s+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),s=r[0],a=r[1];s.insertAt(a,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(a.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=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.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}();g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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}}(),s=v(n(2)),a=v(n(20)),l=v(n(0)),c=v(n(13)),u=v(n(24)),d=n(4),p=v(d),h=v(n(16)),f=v(n(21)),m=v(n(11)),g=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=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,f.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,f.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 s.default)}(e)).reduce(function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var h=s.insert;h.endsWith("\n")&&n&&(n=!1,h=h.slice(0,-1)),e>=r&&!h.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,h);var f=t.scroll.line(e),m=i(f,2),v=m[0],y=m[1],b=(0,g.default)({},(0,d.bubbleFormats)(v));if(v instanceof p.default){var _=v.descendant(l.default.Leaf,y),w=i(_,1)[0];b=(0,g.default)(b,(0,d.bubbleFormats)(w))}u=a.default.attributes.diff(b,u)||{}}else if("object"===o(s.insert)){var x=Object.keys(s.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,s.insert[x])}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 s.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)),s=t;r.forEach(function(t){var r=t.length();if(t instanceof c.default){var a=e-t.offset(n.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,i,o[i])}else t.format(i,o[i]);s-=r})}}),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,f.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 s.default).retain(e).retain(t,(0,f.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 s.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 g.default.apply(g.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 s.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 s.default).retain(e).insert(t,(0,f.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 h.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),r=i(o,2),a=r[0],l=r[1],u=0,d=new s.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new s.default).insert(n).concat(d)),h=(new s.default).retain(e).concat(p);return this.applyDelta(h)}},{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(y)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),r=(0,d.bubbleFormats)(i),a=i.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),p=(new s.default).insert(c),h=(new s.default).insert(i.value());e=(new s.default).retain(a).concat(p.diff(h,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,r):e.push(t)},new s.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=b},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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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)),s=c(n(21)),a=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"),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},f=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 h(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,s=n.endNode,a=n.endOffset;o.setNativeRange(i,r,s,a)}}),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),s=o(r,2),a=s[0],l=s[1];if(null==a)return null;var c=a.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),h=o(p,2);if(a=h[0],l=h[1],null==a)return null;var f=a.position(l,!0),m=o(f,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",v=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),g="right"),v=d.getBoundingClientRect()):(v=a.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.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],s=n[1],a=r.default.find(i,!0),l=a.offset(t.scroll);return 0===s?l:a instanceof r.default.Container?l+a.length():l+a.index(i,s)}),s=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(i)));return new h(a,s-a)}},{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 s,a=t.scroll.leaf(e),l=o(a,2),c=l[0],u=l[1],d=c.position(u,0!==n),p=o(d,2);s=p[0],u=p[1],i.push(s,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)),s=o(r,1)[0],a=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));a=o(l,1)[0]}if(null!=s&&null!=a){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 s=(this.getNativeRange()||{}).native;if(null==s||i||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||o!==s.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 a=document.createRange();a.setStart(e,t),a.setEnd(n,o),r.removeAllRanges(),r.addRange(a)}}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,a.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,s.default)(this.lastRange),(0,s.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=h,t.default=f},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),s=(o=r)&&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,s.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 s=i.get;return void 0!==s?s.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}();a.blotName="break",a.tagName="BR",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)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),s=n(30),a=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 a.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,s){(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-=s}),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 s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new a.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=a.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],s=[[this,e]];return i instanceof t?s.concat(i.path(r,n)):(null!=i&&s.push([i,r]),s)},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=a.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=a.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}(s.default);function c(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.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),s=n(31),a=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new s.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}(a.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),s=n(1),a=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=s.Scope.INLINE_BLOT,t}(r.default);t.default=a},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 s(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 s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.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}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},s.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(s,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var p=[],h=[],f=void 0!==t;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function s(c,m){if(null===c)return null;if(0===m)return c;var g,v;if("object"!=typeof c)return c;if(e(c,n))g=new n;else if(e(c,o))g=new o;else if(e(c,i))g=new i(function(e,t){c.then(function(t){e(s(t,m-1))},function(e){t(s(e,m-1))})});else if(r.__isArray(c))g=[];else if(r.__isRegExp(c))g=new RegExp(c.source,a(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(r.__isDate(c))g=new Date(c.getTime());else{if(f&&t.isBuffer(c))return g=new t(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(v=Object.getPrototypeOf(c),g=Object.create(v)):(g=Object.create(u),v=u)}if(l){var y=p.indexOf(c);if(-1!=y)return h[y];p.push(c),h.push(g)}for(var b in e(c,n)&&c.forEach(function(e,t){var n=s(t,m-1),o=s(e,m-1);g.set(n,o)}),e(c,o)&&c.forEach(function(e){var t=s(e,m-1);g.add(t)}),c){var _;v&&(_=Object.getOwnPropertyDescriptor(v,b)),_&&null==_.set||(g[b]=s(c[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(b=0;b<w.length;b++){var x=w[b];(!(S=Object.getOwnPropertyDescriptor(c,x))||S.enumerable||d)&&(g[x]=s(c[x],m-1),S.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(c);for(b=0;b<C.length;b++){var S,k=C[b];(S=Object.getOwnPropertyDescriptor(c,k))&&S.enumerable||(g[k]=s(c[k],m-1),Object.defineProperty(g,k,{enumerable:!1}))}}return g}(s,c)}function s(e){return Object.prototype.toString.call(e)}function a(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=s,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},r.__getRegExpFlags=a,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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s=i.get;return void 0!==s?s.call(o):void 0},s=h(n(0)),a=h(n(8)),l=n(4),c=h(l),u=h(n(16)),d=h(n(13)),p=h(n(25));function h(e){return e&&e.__esModule?e:{default:e}}function f(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,s.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),s=o(i,2),a=s[0],c=s[1],p=this.line(e+n),h=o(p,1)[0];if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&a!==h&&c>0){if(a instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var f=a.newlineIndex(a.length(),!0);if(f>-1&&(a=a.split(f+1))===h)return void this.optimize()}else if(h instanceof d.default){var m=h.newlineIndex(0);m>-1&&h.split(m+1)}var g=h.children.head instanceof u.default?null:h.children.head;a.moveChildren(h,g),a.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==s.default.query(n,s.default.Scope.BLOCK)){var i=s.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 a=s.default.create(n,o);this.appendChild(a)}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===s.default.Scope.INLINE_BLOT){var o=s.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(f,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){f(t)?i.push(t):t instanceof s.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(a.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=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.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(a.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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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}}(),s=m(n(21)),a=m(n(11)),l=m(n(3)),c=m(n(2)),u=m(n(20)),d=m(n(0)),p=m(n(5)),h=m(n(10)),f=m(n(9));function m(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 v=(0,h.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=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},S),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},w),o.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),o.addBinding({key:t.keys.DELETE},{collapsed:!1},C),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),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,f.default),r(t,null,[{key:"match",value:function(e,t){return t=T(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=T(e);if(null==o||null==o.key)return v.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,s=(e.bindings[r]||[]).filter(function(e){return t.match(n,e)});if(0!==s.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],h=u[1],f=e.quill.getLeaf(l.index),m=i(f,2),g=m[0],v=m[1],y=0===l.length?[g,v]:e.quill.getLeaf(l.index+l.length),b=i(y,2),_=b[0],w=b[1],x=g instanceof d.default.Text?g.value().slice(0,v):"",C=_ instanceof d.default.Text?_.value().slice(w):"",S={collapsed:0===l.length,empty:0===l.length&&p.length()<=1,format:e.quill.getFormat(l),offset:h,prefix:x,suffix:C};s.some(function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==S.format[e]}))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,a.default)(t.format[e],S.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&(!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,l,S))})&&n.preventDefault()}}}})}}]),t}();function _(e,t){var n,o=e===b.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},o,/^$/),g(n,"handler",function(n){var o=n.index;e===b.keys.RIGHT&&(o+=n.length+1);var r=this.quill.getLeaf(o);return!(i(r,1)[0]instanceof d.default.Embed)||(e===b.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 w(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 s=this.quill.getLine(e.index-1),a=i(s,1)[0];if(null!=a&&a.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 x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},r=0,s=this.quill.getLine(e.index),a=i(s,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1)[0];if(c){var d=a.formats(),h=this.quill.getFormat(e.index,1);o=u.default.attributes.diff(d,h)||{},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 C(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 S(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 k(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,r=t.length,s=this.quill.scroll.descendant(n,o),a=i(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,f=l.newlineIndex(u+c+r),m=l.domNode.textContent.slice(h,f).split("\n");c=0,m.forEach(function(t,i){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===i?o+=n.TAB.length:r+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+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 E(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(void 0===e?"undefined":o(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:E("bold"),italic:E("italic"),underline:E("underline"),indent:{key:b.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:b.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:b.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":k(!0),"outdent code-block":k(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:b.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:b.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:b.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],s=(0,l.default)({},o.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",s).retain(o.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.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],s=o[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(r.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,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),s=r[0],a=r[1];if(a>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-a).delete(n+1).retain(s.length()-2-a).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:b.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],s=(new c.default).retain(e.index+o.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,p.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s=i.get;return void 0!==s?s.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}}(),s=l(n(0)),a=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,s.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!==s.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 a.default?(i=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.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=s(n(0)),i=n(4),r=s(i);function s(e){return e&&e.__esModule?e:{default:e}}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,o.default.Container),t}();a.allowedChildren=[r.default,i.BlockEmbed,a],t.default=a},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),s=(o=r)&&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,s.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 s=i.get;return void 0!==s?s.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 s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),c=new a("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=a,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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(6),a=(o=s)&&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,a.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=a(n(23)),s=a(n(107));function a(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=s.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=v(n(0)),i=v(n(5)),r=n(4),s=v(r),a=v(n(16)),l=v(n(25)),c=v(n(24)),u=v(n(35)),d=v(n(6)),p=v(n(22)),h=v(n(7)),f=v(n(55)),m=v(n(42)),g=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":s.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":h.default,"modules/clipboard":f.default,"modules/history":m.default,"modules/keyboard":g.default}),o.default.register(s.default,a.default,c.default,d.default,p.default,h.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 s=o.create(this.statics.scope);r.wrap(s),s.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),s=n(1),a=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),a=r.default.keys(this.domNode);t.concat(n).concat(a).forEach(function(t){var n=s.query(t,s.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=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,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var s=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=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){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 s=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=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){!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=s(n(0)),r=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var a="\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(a),n.rightGuard=document.createTextNode(a),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 s=i.get;return void 0!==s?s.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(a).join("");if(e===this.leftGuard)if(this.prev instanceof r.default){var s=this.prev.length();this.prev.insertAt(s,o),t={startNode:this.prev.domNode,startOffset:s+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=a,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 s={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new r.default.Attributor.Attribute("align","align",s),l=new r.default.Attributor.Class("align","ql-align",s),c=new r.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,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},s=n(26);var a=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=a,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 s={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},a=new r.default.Attributor.Attribute("direction","dir",s),l=new r.default.Attributor.Class("direction","ql-direction",s),c=new r.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,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),s=(o=r)&&o.__esModule?o:{default:o};var a={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new s.default.Attributor.Class("font","ql-font",a),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,s.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 s=i.get;return void 0!==s?s.call(o):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}())("font","font-family",a);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 s=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},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=a(n(0)),r=a(n(5)),s=a(n(9));function a(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,s.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=h(n(3)),r=h(n(2)),s=h(n(8)),a=h(n(23)),l=h(n(34)),c=h(n(59)),u=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function f(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 g(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 v=[!1,"center","right","justify"],y=["#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"],b=[!1,"serif","monospace"],_=["1","2","3",!1],w=["small",!1,"large","huge"],x=function(e){function t(e,n){f(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 g(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 s=i.get;return void 0!==s?s.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")&&S(e,v),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")&&S(e,y,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,b):e.classList.contains("ql-header")?S(e,_):e.classList.contains("ql-size")&&S(e,w)),new d.default(e)});this.quill.on(s.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}();x.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}),s.default.sources.USER),e.quill.setSelection(o.index+1,s.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 C=function(e){function t(e,n){f(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 g(t,p.default),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){a.default.match(t,"enter")?(e.save(),t.preventDefault()):a.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,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.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,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",s.default.sources.USER),this.quill.setSelection(o+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}();function S(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=C,t.default=x},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],s=e-i[1],a=this.iterator(r);(o=a())&&s<e+t;){var l=o.length();e>s?n(o,e-s,Math.min(t,s+l-e)):n(o,0,Math.min(l,e+t-s)),s+=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),s=n(1),a={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,a),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 a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&a(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.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=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=s.find(e,!1);a(t,!1),t instanceof r.default&&t.children.forEach(function(e){a(e,!1)})})):"attributes"===e.type&&a(t.prev)),a(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=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==o&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],n)}),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=s.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),s=n(1);var a=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]||s.query(o,s.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=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.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)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var o=s.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=s.query(n,s.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!=s.query(o,s.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!=s.query(n,s.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var i=this.split(t),r=s.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=s.Scope.BLOCK_BLOT,t.tagName="P",t}(r.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)});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),s=n(1),a=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=s.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=s.Scope.INLINE_BLOT,t}(r.default);t.default=a},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=a(e,t),p=e.substring(0,d);d=l(e=e.substring(d),t=t.substring(d));var h=e.substring(e.length-d),f=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 h=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,s,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var p=a(e.substring(n),t.substring(u)),h=l(e.substring(0,n),t.substring(0,u));d.length<h+p&&(d=t.substring(u-h,u)+t.substring(u,u+p),o=e.substring(0,n-h),i=e.substring(n+p),r=t.substring(0,u-h),s=t.substring(u+p))}return 2*d.length>=e.length?[o,i,r,s,d]:null}var r,s,c,u,d,p=i(n,o,Math.ceil(n.length/4)),h=i(n,o,Math.ceil(n.length/2));if(!p&&!h)return null;r=h?p&&p[4].length>h[4].length?p:h:p;e.length>t.length?(s=r[0],c=r[1],u=r[2],d=r[3]):(u=r[0],d=r[1],s=r[2],c=r[3]);var f=r[4];return[s,c,u,d,f]}(e,t);if(h){var f=h[0],m=h[1],g=h[2],v=h[3],y=h[4],b=r(f,g),_=r(m,v);return b.concat([[i,y]],_)}return function(e,t){for(var i=e.length,r=t.length,a=Math.ceil((i+r)/2),l=a,c=2*a,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 h=i-r,f=h%2!=0,m=0,g=0,v=0,y=0,b=0;b<a;b++){for(var _=-b+m;_<=b-g;_+=2){for(var w=l+_,x=(T=_==-b||_!=b&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-_;T<i&&x<r&&e.charAt(T)==t.charAt(x);)T++,x++;if(u[w]=T,T>i)g+=2;else if(x>r)m+=2;else if(f){var C=l+h-_;if(C>=0&&C<c&&-1!=d[C]){var S=i-d[C];if(T>=S)return s(e,t,T,x)}}}for(var k=-b+v;k<=b-y;k+=2){for(var C=l+k,E=(S=k==-b||k!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-k;S<i&&E<r&&e.charAt(i-S-1)==t.charAt(r-E-1);)S++,E++;if(d[C]=S,S>i)y+=2;else if(E>r)v+=2;else if(!f){var w=l+h-k;if(w>=0&&w<c&&-1!=u[w]){var T=u[w],x=l+T-w;if(T>=(S=i-S))return s(e,t,T,x)}}}}return[[n,e],[o,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&f.unshift([i,p]),h&&f.push([i,h]),function e(t){t.push([i,""]);var r=0;var s=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:s++,u+=t[r][1],r++;break;case i:s+c>1?(0!==s&&0!==c&&(0!==(p=a(d,u))&&(r-s-c>0&&t[r-s-c-1][0]==i?t[r-s-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===s?t.splice(r-c,s+c,[o,d]):0===c?t.splice(r-s,s+c,[n,u]):t.splice(r-s-c,s+c,[n,u],[o,d]),r=r-s-c+(s?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,s=0,u="",d=""}""===t[t.length-1][1]&&t.pop();var h=!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),h=!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),h=!0)),r++;h&&e(t)}(f),null!=c&&(f=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 s=e[r];if(s[0]===n||s[0]===i){var a=o+s[1].length;if(t===a)return[r+1,e];if(t<a){e=e.slice();var l=t-o,c=[s[0],s[1].slice(0,l)],u=[s[0],s[1].slice(l)];return e.splice(r,1,c,u),[r+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=o[1],s=o[0],a=r[s],l=r[s+1];if(null==a)return e;if(a[0]!==i)return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return r.splice(s,2,l,a),u(r,s,2);if(null!=l&&0===l[1].indexOf(a[1])){r.splice(s,2,[l[0],a[1]],[0,a[1]]);var c=l[1].slice(a[1].length);return c.length>0&&r.splice(s+2,0,[l[0],c]),u(r,s,3)}return e}(f,c)),f=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},s=2;s<e.length;s+=1)e[s-2][0]===i&&((a=e[s-2][1]).charCodeAt(a.length-1)>=55296&&a.charCodeAt(a.length-1)<=56319)&&e[s-1][0]===n&&r(e[s-1][1])&&e[s][0]===o&&r(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));var a;if(!t)return e;for(var l=[],s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}(f)}function s(e,t,n,o){var i=e.substring(0,n),s=t.substring(0,o),a=e.substring(n),l=t.substring(o),c=r(i,s),u=r(a,l);return c.concat(u)}function a(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 s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.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},s.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,s=i.length,a=new Array(s);r<s;r++)a[r]=i[r].fn;return a},s.prototype.emit=function(e,t,n,i,r,s){var a=o?o+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],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,s),!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,h=u.length;for(c=0;c<h;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},s.prototype.on=function(e,t,n){var i=new r(t,n||this),s=o?o+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.once=function(e,t,n){var i=new r(t,n||this,!0),s=o?o+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,r){var s=o?o+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new i:delete this._events[s]}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=o,s.EventEmitter=s,void 0!==e&&(e.exports=s)},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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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}}(),s=b(n(3)),a=b(n(2)),l=b(n(0)),c=b(n(5)),u=b(n(10)),d=b(n(9)),p=n(36),h=n(37),f=b(n(13)),m=n(26),g=n(38),v=n(39),y=n(40);function b(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 w=(0,u.default)("quill:clipboard"),x="__ql-matcher",C=[[Node.TEXT_NODE,F],[Node.TEXT_NODE,M],["br",function(e,t){P(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,function(e,t){var n={},o=e.style||{};o.fontStyle&&"italic"===D(e).fontStyle&&(n.italic=!0);o.fontWeight&&(D(e).fontWeight.startsWith("bold")||parseInt(D(e).fontWeight)>=700)&&(n.bold=!0);Object.keys(n).length>0&&(t=T(t,n));parseFloat(o.textIndent||0)>0&&(t=(new a.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 a.default).retain(t.length()-1).retain(1,{indent:o}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new a.default}]],S=[p.AlignAttribute,g.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),k=[p.AlignStyle,h.BackgroundStyle,m.ColorStyle,g.DirectionStyle,v.FontStyle,y.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),E=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=[],C.concat(o.options.matchers).forEach(function(e){var t=i(e,2),r=t[0],s=t[1];(n.matchVisual||s!==$)&&o.addMatcher(r,s)}),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[f.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,_({},f.default.blotName,t[f.default.blotName]))}var o=this.prepareMatching(),r=i(o,2),s=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 a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(i,r){var s=e(r,n,o);return r.nodeType===t.ELEMENT_NODE&&(s=n.reduce(function(e,t){return t(r,e)},s),s=(r[x]||[]).reduce(function(e,t){return t(r,e)},s)),i.concat(s)},new a.default):new a.default}(this.container,s,l);return P(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),w.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 a.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 a.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),s=r[0],a=r[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),function(e){e[x]=e[x]||[],e[x].push(a)})}}),[t,n]}}]),t}();function T(e,t,n){return"object"===(void 0===t?"undefined":o(t))?Object.keys(t).reduce(function(e,n){return T(e,n,t[n])},e):e.reduce(function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,s.default)({},_({},t,n),o.attributes))},new a.default)}function D(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 R(e){if(0===e.childNodes.length)return!1;var t=D(e);return["block","list-item"].indexOf(t.display)>-1}function O(e,t,n){return T(n,e,!0)}function I(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=S[t])||n.attrName!==t&&n.keyName!==t||(r[n.attrName]=n.value(e)||void 0),null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(n=k[t],r[n.attrName]=n.value(e)||void 0))}),Object.keys(r).length>0&&(t=T(t,r)),t}function A(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 a.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function M(e,t){return P(t,"\n")||(R(e)||t.length()>0&&e.nextSibling&&R(e.nextSibling))&&t.insert("\n"),t}function $(e,t){if(R(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat(D(e).marginTop)+parseFloat(D(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function F(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(!D(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&&R(e.parentNode)||null!=e.previousSibling&&R(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&R(e.parentNode)||null!=e.nextSibling&&R(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}E.DEFAULTS={matchers:[],matchVisual:!0},t.default=E,t.matchAttributor=I,t.matchBlot=A,t.matchNewline=M,t.matchSpacing=$,t.matchText=F},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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(6),a=(o=s)&&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,a.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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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)),s=u(n(0)),a=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"),h=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 s=document.createElement("div");m(s,r.options.container),e.container.parentNode.insertBefore(s,e.container),r.container=s}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(a.default.events.EDITOR_CHANGE,function(e,t){e===a.default.events.SELECTION_CHANGE&&r.update(t)}),r.quill.on(a.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==s.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(s.default.query(n).prototype instanceof s.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)),a.default.sources.USER)}else t.quill.format(n,l,a.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],s=i[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[r])a=s.querySelector("option[selected]");else if(!Array.isArray(t[r])){var l=t[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[r]===s.getAttribute("value")||null!=t[r]&&t[r].toString()===s.getAttribute("value")||null==t[r]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[r])})}}]),t}();function f(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)f(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):f(n,t,o)}}),e.appendChild(n)})}h.DEFAULTS={},h.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!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.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,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.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,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=h,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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(28),a=(o=s)&&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,a.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),s=(o=r)&&o.__esModule?o:{default:o};var a=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,s.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 s=i.get;return void 0!==s?s.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=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){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 s=i.bottom-i.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s=i.get;return void 0!==s?s.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}}(),s=h(n(3)),a=h(n(8)),l=n(43),c=h(l),u=h(n(27)),d=n(15),p=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function f(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 g(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 v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return g(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 b(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}();y.DEFAULTS=(0,s.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 b=function(e){function t(e,n){f(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 g(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,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(t,n,i){if(null!=t){if(0===t.length&&i===a.default.sources.USER){var r=e.quill.scroll.descendant(u.default,t.index),s=o(r,2),l=s[0],c=s[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}();b.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=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=$(n(29)),i=n(36),r=n(38),s=n(64),a=$(n(65)),l=$(n(66)),c=n(67),u=$(c),d=n(37),p=n(26),h=n(39),f=n(40),m=$(n(56)),g=$(n(68)),v=$(n(27)),y=$(n(69)),b=$(n(70)),_=$(n(71)),w=$(n(72)),x=$(n(73)),C=n(13),S=$(C),k=$(n(74)),E=$(n(75)),T=$(n(57)),D=$(n(41)),P=$(n(28)),R=$(n(59)),O=$(n(60)),I=$(n(61)),A=$(n(108)),M=$(n(62));function $(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":h.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":f.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":h.FontClass,"formats/size":f.SizeClass,"formats/blockquote":a.default,"formats/code-block":S.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":C.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":k.default,"modules/syntax":E.default,"modules/toolbar":T.default,"themes/bubble":A.default,"themes/snow":M.default,"ui/icons":D.default,"ui/picker":P.default,"ui/icon-picker":O.default,"ui/color-picker":R.default,"ui/tooltip":I.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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(0),a=(o=s)&&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,a.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:a.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 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,r.default),t}();s.blotName="blockquote",s.tagName="blockquote",t.default=s},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),s=(o=r)&&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,s.default),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}();a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},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 s=i.get;return void 0!==s?s.call(o):void 0},r=l(n(0)),s=l(n(4)),a=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,s.default),o(t,[{key:"format",value:function(e,n){e!==h.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 h=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,a.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}();h.blotName="list",h.scope=r.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},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 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,r.default),t}();s.blotName="italic",s.tagName=["EM","I"],t.default=s},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),s=(o=r)&&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,s.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 s=i.get;return void 0!==s?s.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}();a.blotName="script",a.tagName=["SUB","SUP"],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 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,r.default),t}();s.blotName="strike",s.tagName="S",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 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,r.default),t}();s.blotName="underline",s.tagName="U",t.default=s},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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(0),a=(o=s)&&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,a.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 s=i.get;return void 0!==s?s.call(o):void 0},s=n(4),a=n(27),l=(o=a)&&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,s.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=a(n(35)),r=a(n(5)),s=a(n(9));function a(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 s=i.get;return void 0!==s?s.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,s.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)),s=l(n(9)),a=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,a.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 s=i.get;return void 0!==s?s.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 h=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),f=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,s.default),o(t,null,[{key:"register",value:function(){r.default.register(h,!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}();f.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=h,t.default=f},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 s=i.get;return void 0!==s?s.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)),s=d(n(8)),a=n(43),l=d(a),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 h(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 f(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"]],g=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=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return f(t,l.default),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(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}();g.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 v=function(e){function t(e,n){p(this,t);var o=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(s.default.events.EDITOR_CHANGE,function(e,t,n,i){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===s.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 a=r[r.length-1],l=o.quill.getIndex(a),u=Math.min(a.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 f(t,a.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(s.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}();v.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=v,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=n()}).call(t,n(674).Buffer)},752: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],s=n[1],a=new r(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),l=0,u=s>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)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;2===s&&(t=i[e.charCodeAt(d)]<<2|i[e.charCodeAt(d+1)]>>4,a[l++]=255&t);1===s&&(t=i[e.charCodeAt(d)]<<10|i[e.charCodeAt(d+1)]<<4|i[e.charCodeAt(d+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t);return a},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r=[],s=0,a=n-i;s<a;s+=16383)r.push(u(e,s,s+16383>a?a:s+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,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)o[a]=s[a],i[s.charCodeAt(a)]=a;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,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(o[(r=i)>>18&63]+o[r>>12&63]+o[r>>6&63]+o[63&r]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},753:function(e,t){t.read=function(e,t,n,o,i){var r,s,a=8*i-o-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,r=h&(1<<-u)-1,h>>=-u,u+=a;u>0;r=256*r+e[t+d],d+=p,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=o;u>0;s=256*s+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,o),r-=c}return(h?-1:1)*s*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var s,a,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,h=o?0:r-1,f=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+h]=255&s,h+=f,s/=256,c-=8);e[n+h-f]|=128*m}},754: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:24}},[e._v("\n "+e._s(e.label+":")+"\n ")])],1),e._v(" "),n("el-row",{attrs:{type:"flex",align:"middle"}},[n("el-col",{attrs:{span:12}},[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),e._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"am-service-translate am-event-translate",staticStyle:{cursor:"pointer","line-height":"inherit"},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)],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._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(" "),n("el-row",[n("el-col",[n("el-alert",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.content_mode_tooltip,closable:!1}})],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:[]}},791:function(e,t,n){var o=n(90)(n(794),n(795),!1,null,null,null);e.exports=o.exports},792:function(e,t,n){"use strict";var o=n(668),i=n(0),r=n.n(i),s=n(678),a=n(336);t.a={mixins:[s.a,o.a,a.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:[]}},searchCounter:0,loadingEvents:!1,searchEventsTimer:null,searchedEvents:[],searchEventsQuery:""}},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}})),void 0===this.$store&&"provider"===this.$root.settings.role&&1===this.options.entities.employees.length&&this.options.entities.employees[0].timeZone&&(n=Object.assign({params:{timeZone:this.options.entities.employees[0].timeZone}})),this.$http.get(this.$root.getAjaxUrl+"/events/"+e,n).then(function(e){var n=Object.assign(t.getInitEventObject(),e.data.data.event),i=[],s=t;e.data.data.event.periods.forEach(function(e){"UTC"===o&&(e.periodStart=s.getConvertedUtcToLocalDateTime(e.periodStart),e.periodEnd=s.getConvertedUtcToLocalDateTime(e.periodEnd));var t=r()(e.periodStart,"YYYY-MM-DD HH:mm:ss"),n=r()(e.periodEnd,"YYYY-MM-DD HH:mm:ss"),a=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:a,endTime:l,bookings:e.bookings,zoomMeeting:e.zoomMeeting,lessonSpace:e.lessonSpace,googleCalendarEventId:e.googleCalendarEventId,googleMeetUrl:e.googleMeetUrl,outlookCalendarEventId:e.outlookCalendarEventId,microsoftTeamsUrl:e.microsoftTeamsUrl,appleCalendarEventId:e.appleCalendarEventId})}),n.periods=i;var a=[];n.tags.forEach(function(e){a.push(e.name)}),n.tags=a,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=s.getCustomerById(e.customerId);e.customer.firstName=n?n.firstName:s.$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.payments=e.payments.sort(function(e,t){return new Date(e.dateTime)-new Date(t.dateTime)}),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:[]},handleDateTimeFormat:function(e){return[this.getFrontedFormattedDate(e.split(" ")[0]),this.getFrontedFormattedTime(e.split(" ")[1])]},showDialogAttendees:function(e){this.eventBookings=null,this.dialogAttendees=!0,this.getEvent(e)},searchEvents:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e||o.length<this.$root.settings.general.eventsFilterLimit)return this.loadingEvents=!0,this.searchedEvents=o,void setTimeout(function(){t.loadingEvents=!1},500);this.searchEventsQuery=e,clearTimeout(this.searchEventsTimer),this.loadingEvents=!0,this.searchCounter++,this.searchEventsTimer=setTimeout(function(){var o=t.searchCounter;t.$http.get(t.$root.getAjaxUrl+"/events",{params:{search:e,page:1,limit:t.$root.settings.general.eventsFilterLimit,skipCount:1,dates:[r()().format("YYYY-MM-DD")]}}).then(function(e){o>=t.searchCounter&&(t.searchedEvents=n?t.groupRecurringEvents(e.data.data.events):e.data.data.events),t.loadingEvents=!1}).catch(function(e){t.loadingEvents=!1})},500)},getNotRetrievedEvents:function(e,t,n){var o=e.map(function(e){return e.id}),i=[];return t.forEach(function(e){i=i.concat(e[n].filter(function(e){return-1===o.indexOf(e.id)}))}),i},groupRecurringEvents:function(e){var t=this,n=[];if(e)for(var o=function(o){var i=e[o];if("approved"!==i.status)return"continue";if(n.find(function(e){return(e.id===i.parentId||e.parentId===i.parentId)&&null!==i.parentId}))return"continue";var r=n.find(function(e){return e.name===i.name&&e.id!==i.id});r?(i.displayName=i.name+" ("+t.getFrontedFormattedDateTime(i.periods[0].periodStart)+")",r.displayName=r.name+" ("+t.getFrontedFormattedDateTime(r.periods[0].periodStart)+")",n.push(i)):n.push(i)},i=0;i<e.length;i++)o(i);return n}},watch:{}}},794:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(663),i=n(336),r=n(664),s=n(677),a=n.n(s),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 s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&a.return&&a.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 s,a=Object.entries(t.customFields)[Symbol.iterator]();!(o=(s=a.next()).done);o=!0){var c=s.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&&a.return&&a.return()}finally{if(i)throw r}}})}},watch:{"appointment.bookings":function(){var e=this;this.$nextTick(function(){e.setAddressCustomFields()})}},components:{VueGoogleAutocomplete:a.a}}},795: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:"",types:""},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:[]}},796:function(e,t,n){var o=n(90)(n(797),n(801),!1,null,null,null);e.exports=o.exports},797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(697),i=n.n(o),r=n(671),s=n.n(r),a=n(654),l=n(336),c=n(658),u=n(663),d=n(655),p=n(798),h=n.n(p);t.default={mixins:[a.a,l.a,c.a,d.a,u.a],props:{customer:null},data:function(){return{customerTabs:"details",customerCustomFields:null,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),this.usedLanguages.includes(this.customer.language)||(this.customer.language=this.$root.settings.wordpress.locale),this.getLanguagesData()},mounted:function(){this.inlineSVG()},methods:{showCustomerActivity:function(e){var t=new URL(window.location.href.replaceAll("customers",e));t.searchParams.set("customerId",this.customer.id),window.location.href=t},getLanguagesData:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["settings","custom_fields"]})}).then(function(t){e.languagesData=t.data.data.settings.languages,e.customerCustomFields=t.data.data.customFields.filter(function(e){return"customer"===e.saveType})}).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.customFields&&(e.customFields=JSON.stringify(this.customer.customFields)),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},clearValidation:function(){void 0!==this.$refs.customer&&this.$refs.customer.clearValidate()},selectCreateNewWPUser:function(){this.customer.externalId=0,this.$refs.wpUser.blur()}},components:{CustomerCustomFields:h.a,PhoneInput:s.a,DialogActions:i.a}}},798:function(e,t,n){var o=n(90)(n(799),n(800),!1,null,null,null);e.exports=o.exports},799:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(663),i=n(336),r=n(664),s=n(677),a=n.n(s);t.default={mixins:[o.a,i.a,r.a],props:{entityId:null,entityType:null,customer:{default:function(){}},customFields:{default:function(){return[]}},hideAttachmentCustomField:{required:!1,default:!1,type:Boolean},isCabinet:{type:Boolean,default:!1,required:!1}},created:function(){for(var e in this.setInitCustomerCustomFields(),this.customer.customFields)"datepicker"===this.customer.customFields[e].type&&this.customer.customFields[e].value&&(this.customer.customFields[e].value=this.$moment(this.customer.customFields[e].value).toDate())},methods:{setAddressCF:function(e,t){this.customer.customFields[t].value=e},googleMapsLoaded:function(){return window.google&&this.$root.settings.general.gMapApiKey},clearValidation:function(){this.$emit("clearValidation")},setInitCustomerCustomFields:function(){var e=this.customer.customFields?this.customer.customFields:{};this.customFields.forEach(function(t){void 0===e[t.id]&&(e[t.id]={value:"checkbox"===t.type||"attachment"===t.type||"radio"===t.type?[]:"",type:t.type,label:t.label})}),this.customer.customFields=e}},components:{VueGoogleAutocomplete:a.a}}},800: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"},[n("div",{staticClass:"am-customer-extras"},[n("div",{staticClass:"am-custom-fields"},e._l(e.customFields,function(t,o){return"content"!==t.type?n("el-form-item",{key:t.id,attrs:{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",{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.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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",{attrs:{id:"address-autocomplete-"+o+"-"+t.id,classname:"el-input__inner",value:e.customer.customFields[t.id].value,placeholder:"",types:""},on:{input:function(n){e.customer.customFields[t.id].value=n},change:function(n){return e.setAddressCF(n,t.id)}}}):n("el-input",{attrs:{placeholder:""},model:{value:e.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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",{attrs:{"aria-required":"false"},on:{change:function(t){return e.clearValidation()}},model:{value:e.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.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.customer.customFields[t.id].value,function(o,i){return n("div",{staticStyle:{margin:"15px",clear:"left"}},[n("a",{key:i,attrs:{href:e.$root.useUploadsAmeliaPath?e.$root.getAjaxUrl+"/fields/"+t.id+"/"+e.customer.id+"/"+i+(e.isCabinet?"&source=cabinet-provider":""):e.$root.getUploadsAmeliaUrl+e.customer.id+"_"+o.fileName,target:"_blank"}},[e._v("\n "+e._s(o.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.customer.customFields[t.id].value,callback:function(n){e.$set(e.customer.customFields[t.id],"value",n)},expression:"customer.customFields[customField.id].value"}})],1):e._e()],2):e._e()}),1)])])},staticRenderFns:[]}},801: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-tabs",{model:{value:e.customerTabs,callback:function(t){e.customerTabs=t},expression:"customerTabs"}},[n("el-tab-pane",{attrs:{label:e.$root.labels.details,name:"details"}},[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(" "),1!==e.usedLanguages.length||e.usedLanguages[0]!==e.$root.settings.wordpress.locale?n("el-form-item",{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:""},model:{value:e.customer.language,callback:function(t){e.$set(e.customer,"language",t)},expression:"customer.language"}},[n("template",{slot:"prefix"},[n("img",{staticClass:"select-languages-flag",attrs:{src:e.getLanguageFlag(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._e(),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(" "),e.customer.countAppointmentBookings>0||e.customer.countEventBookings>0?n("div",{staticClass:"am-customer-activity"},[n("span",{staticClass:"am-customer-activity-title"},[e._v(e._s(e.$root.labels.customer_activity+":"))]),e._v(" "),n("div",{staticClass:"align-left"},[e.customer.countAppointmentBookings>0?n("div",{staticClass:"am-customer-activity-box"},[n("span",[e._v(e._s(e.$root.labels.appointments)+": "+e._s(e.customer.countAppointmentBookings))]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.showCustomerActivity("appointments")}}},[e._v("\n "+e._s(e.$root.labels.view_appointments)+"\n ")])],1):e._e(),e._v(" "),e.customer.countEventBookings>0?n("div",{staticClass:"am-customer-activity-box"},[n("span",[e._v(e._s(e.$root.labels.events_booked)+": "+e._s(e.customer.countEventBookings))]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.showCustomerActivity("events")}}},[e._v("\n "+e._s(e.$root.labels.view_events)+"\n ")])],1):e._e()])]):e._e(),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),e._v(" "),e.customerCustomFields&&e.customerCustomFields.length?n("el-tab-pane",{attrs:{label:e.$root.labels.custom_fields,name:"customFields"}},[n("customer-custom-fields",{attrs:{customer:e.customer,customFields:e.customerCustomFields,entityType:"customer"},on:{clearValidation:e.clearValidation}})],1):e._e()],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",block:"blocked"},buttonText:{confirm:{status:{yes:"visible"===e.customer.status?e.$root.labels.visibility_hide:e.$root.labels.visibility_show,no:e.$root.labels.no,block:"visible"===e.customer.status?e.$root.labels.block:e.$root.labels.unblock}}},action:{haveAdd:!0,haveEdit:!0,haveStatus:!1,haveRemove:!0===e.$root.settings.capabilities.canDelete,haveRemoveEffect:!0,haveDuplicate:!1,haveBlock:!e.$root.licence.isLite},message:{success:{save:e.$root.labels.customer_saved,remove:e.$root.labels.customer_deleted,show:"",hide:"",block:"visible"===this.customer.status?e.$root.labels.customer_blocked:e.$root.labels.customer_unblocked},confirm:{remove:e.$root.labels.confirm_delete_customer,show:"",hide:"",duplicate:"",block:"visible"===this.customer.status?e.$root.labels.confirm_block_customer:e.$root.labels.confirm_unblock_customer}}},on:{errorCallback:e.errorCallback}})],1)},staticRenderFns:[]}},805: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,s,a,l,c,u,d,p,h,f,m,g,v,y,b,_,w,x,C,S,k,E,T,D=[],P=!1,R=!1,O=!1,I=[],A=!1,M=!1,$=[],F=/\s+/g,N="Sortable"+(new Date).getTime(),L=window,B=L.document,j=L.parseInt,H=L.setTimeout,q=L.jQuery||L.Zepto,z=L.Polymer,U={capture:!1,passive:!1},Y=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),V=!!navigator.userAgent.match(/Edge/i),G=!!navigator.userAgent.match(/firefox/i),W=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),K=!!navigator.userAgent.match(/iP(ad|od|hone)/i),Z=V||Y?"cssFloat":"float",J="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=Ce(e),o=j(n.width)-j(n.paddingLeft)-j(n.paddingRight)-j(n.borderLeftWidth)-j(n.borderRightWidth),i=Re(e,0,t),r=Re(e,1,t),s=i&&Ce(i),a=r&&Ce(r),l=s&&j(s.marginLeft)+j(s.marginRight)+He(i).width,c=a&&j(a.marginLeft)+j(a.marginRight)+He(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"!==s.float){var u="left"===s.float?"left":"right";return!r||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=o&&"none"===n[Z]||r&&"none"===n[Z]&&l+c>o)?"vertical":"horizontal"},se=function(e,t){if(!e||!e.getBoundingClientRect)return ae();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ce(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 ae();if(o||t)return n;o=!0}}}while(n=n.parentNode);return ae()},ae=function(){return Y?B.documentElement:B.scrollingElement},le=function(e,t,n){e.scrollLeft+=t,e.scrollTop+=n},ce=Fe(function(e,t,n,o){if(t.scroll){var i=n?n[N]:window,r=t.scrollSensitivity,s=t.scrollSpeed,u=e.clientX,d=e.clientY,p=ae(),h=!1;l!==n&&(ue(),a=t.scroll,c=t.scrollFn,!0===a&&(a=se(n,!0),l=a));var f=0,m=a;do{var g,v,y,b,w,x,C,S,k,E=m,T=He(E),R=T.top,O=T.bottom,I=T.left,A=T.right,M=T.width,$=T.height;if(g=E.scrollWidth,v=E.scrollHeight,y=Ce(E),S=E.scrollLeft,k=E.scrollTop,E===p?(x=M<g&&("auto"===y.overflowX||"scroll"===y.overflowX||"visible"===y.overflowX),C=$<v&&("auto"===y.overflowY||"scroll"===y.overflowY||"visible"===y.overflowY)):(x=M<g&&("auto"===y.overflowX||"scroll"===y.overflowX),C=$<v&&("auto"===y.overflowY||"scroll"===y.overflowY)),b=x&&(te(A-u)<=r&&S+M<g)-(te(I-u)<=r&&!!S),w=C&&(te(O-d)<=r&&k+$<v)-(te(R-d)<=r&&!!k),!D[f])for(var F=0;F<=f;F++)D[F]||(D[F]={});D[f].vx==b&&D[f].vy==w&&D[f].el===E||(D[f].el=E,D[f].vx=b,D[f].vy=w,clearInterval(D[f].pid),!E||0==b&&0==w||(h=!0,D[f].pid=setInterval(function(){o&&0===this.layer&&(ve.active._emulateDragOver(!0),ve.active._onTouchMove(_,!0));var t=D[this.layer].vy?D[this.layer].vy*s:0,n=D[this.layer].vx?D[this.layer].vx*s:0;"function"==typeof c&&"continue"!==c.call(i,n,t,e,_,D[this.layer].el)||le(D[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&m!==p&&(m=se(m,!1)));P=h}},30),ue=function(){D.forEach(function(e){clearInterval(e.pid)}),D=[]},de=function(e){function t(e,n){return function(o,i,r,s){var a=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==e&&(n||a))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,s),n)(o,i,r,s);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[N]&&e.parentNode[N]._computeIsAligned(t)},he=function(){!X&&n&&Ce(n,"display","none")},fe=function(){!X&&n&&Ce(n,"display","")};B.addEventListener("click",function(e){if(O)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),O=!1,!1},!0);var me,ge=function(t){if(e){var n=function(e,t){for(var n=0;n<I.length;n++)if(!Oe(I[n])){var o=He(I[n]),i=I[n][N].options.emptyInsertThreshold,r=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(i&&r&&s)return I[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[N]._onDragOver(o)}}};function ve(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=Ne({},t),e[N]=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:j(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ve.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&&J,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)),I.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[])}function ye(e,t,n,o){if(e){n=n||B;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&$e(e,t):$e(e,t))||o&&e===n)return e;if(e===n)break}while(e=be(e))}return null}function be(e){return e.host&&e!==B&&e.host.nodeType?e.host:e.parentNode}function _e(e,t,n){e.addEventListener(t,n,!Y&&U)}function we(e,t,n){e.removeEventListener(t,n,!Y&&U)}function xe(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(F," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(F," ")}}function Ce(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 Se(e){var t="";do{var n=Ce(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 ke(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 Ee(e,t,n,i,r,s,a,l,c,u,d){var p,h=(e=e||t[N]).options,f="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=s||t,p.item=i||t,p.clone=o,p.oldIndex=a,p.newIndex=l,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=m?m.lastPutMode:void 0,t&&t.dispatchEvent(p),h[f]&&h[f].call(e,p)}function Te(e,t,n,o,i,r,s,a){var l,c,u=e[N],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||He(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function De(e){e.draggable=!1}function Pe(){Q=!1}function Re(t,o,i){for(var r=0,s=0,a=t.children;s<a.length;){if("none"!==a[s].style.display&&a[s]!==n&&a[s]!==e&&ye(a[s],i.draggable,t,!1)){if(r===o)return a[s];r++}s++}return null}function Oe(e){for(var t=e.lastElementChild;t&&(t===n||"none"===Ce(t,"display"));)t=t.previousElementSibling;return t||null}function Ie(t){return Me(e)<Me(t)?1:-1}function Ae(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 Me(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||e===o||t&&!$e(e,t)||n++;return n}function $e(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 Fe(e,t){return function(){if(!me){var n=arguments,o=this;me=H(function(){1===n.length?e.call(o,n[0]):e.apply(o,n),me=void 0},t)}}}function Ne(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Le(e){return z&&z.dom?z.dom(e).cloneNode(!0):q?q(e).clone(!0)[0]:e.cloneNode(!0)}function Be(e){return H(e,0)}function je(e){return clearTimeout(e)}function He(e,t,n,o){if(e.getBoundingClientRect||e===L){var i,r,s,a,l,c,u;if(e!==L&&e!==ae()?(r=(i=e.getBoundingClientRect()).top,s=i.left,a=i.bottom,l=i.right,c=i.height,u=i.width):(r=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),o&&e!==L&&(n=n||e.parentNode,!Y))do{if(n&&n.getBoundingClientRect&&"none"!==Ce(n,"transform")){var d=n.getBoundingClientRect();r-=d.top+j(Ce(n,"border-top-width")),s-=d.left+j(Ce(n,"border-left-width")),a=r+i.height,l=s+i.width;break}}while(n=n.parentNode);if(t&&e!==L){var p=Se(n||e),h=p&&p.a,f=p&&p.d;p&&(a=(r/=f)+(c/=f),l=(s/=h)+(u/=h))}return{top:r,left:s,bottom:a,right:l,width:u,height:c}}}function qe(e,t){for(var n=se(e,!0),o=He(e)[t];n;){var i=He(n)[t];if(!("top"===t||"left"===t?o>=i:o<=i))return n;if(n===ae())break;n=se(n,!1)}return!1}function ze(e){var t=0,n=0,o=ae();if(e)do{var i=Se(e),r=i.a,s=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==o&&(e=e.parentNode));return[t,n]}return ve.prototype={constructor:ve,_computeIsAligned:function(t){var o;if(n&&!X?(he(),o=B.elementFromPoint(t.clientX,t.clientY),fe()):o=t.target,o=ye(o,this.options.draggable,this.el,!1),!ee&&e&&e.parentNode===this.el){for(var i,r,s,a,l,c,u,d,p=this.el.children,h=0;h<p.length;h++)ye(p[h],this.options.draggable,this.el,!1)&&p[h]!==o&&(p[h].sortableMouseAligned=(i=t.clientX,r=t.clientY,s=p[h],a=this._getDirection(t,null),this.options,void 0,void 0,void 0,void 0,l=He(s),c="vertical"===a?l.left:l.top,u="vertical"===a?l.right:l.bottom,c<(d="vertical"===a?i:r)&&d<u));ye(o,this.options.draggable,this.el,!0)||(x=null),ee=!0,H(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,a=this.options,l=a.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,h=a.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||a.disabled||p.isContentEditable||(d=ye(d,a.draggable,r,!1),s===d))){if(n=Me(d),o=Me(d,a.draggable),"function"==typeof h){if(h.call(this,t,d,this))return Ee(i,p,"filter",d,r,r,n,void 0,o),void(l&&t.cancelable&&t.preventDefault())}else if(h&&(h=h.split(",").some(function(e){if(e=ye(p,e.trim(),r,!1))return Ee(i,e,"filter",d,r,r,n,void 0,o),!0})))return void(l&&t.cancelable&&t.preventDefault());a.handle&&!ye(p,a.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),s=this;if(n||V||Y||W){ce(t,s.options,r,n);var a=se(r,!0);!P||g&&o===v&&i===y||(g&&clearInterval(g),g=setInterval(function(){if(e){var r=se(B.elementFromPoint(o,i),!0);r!==a&&(a=r,ue(),ce(t,s.options,a,n))}},10),v=o,y=i)}else{if(!s.options.bubbleScroll||se(r,!0)===ae())return void ue();ce(t,s.options,se(r,!1),!1)}}},_prepareDragStart:function(n,o,a,l,c){var d,h=this,m=h.el,g=h.options,v=m.ownerDocument;a&&!e&&a.parentNode===m&&(i=m,t=(e=a).parentNode,r=e.nextSibling,s=a,f=g.group,u=l,p=c,b={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(){h._disableDelayedDragEvents(),!G&&h.nativeDraggable&&(e.draggable=!0),h._triggerDragStart(n,o),Ee(h,i,"choose",e,i,i,u,void 0,p),xe(e,g.chosenClass,!0)},g.ignore.split(",").forEach(function(t){ke(e,t.trim(),De)}),_e(v,"dragover",ge),_e(v,"mousemove",ge),_e(v,"touchmove",ge),_e(v,"mouseup",h._onDrop),_e(v,"touchend",h._onDrop),_e(v,"touchcancel",h._onDrop),G&&this.nativeDraggable&&(this.options.touchStartThreshold=4,e.draggable=!0),!g.delay||g.delayOnTouchOnly&&!o||this.nativeDraggable&&(V||Y)?d():(_e(v,"mouseup",h._disableDelayedDrag),_e(v,"touchend",h._disableDelayedDrag),_e(v,"touchcancel",h._disableDelayedDrag),_e(v,"mousemove",h._delayedDragTouchMoveHandler),_e(v,"touchmove",h._delayedDragTouchMoveHandler),g.supportPointer&&_e(v,"pointermove",h._delayedDragTouchMoveHandler),h._dragStartTimer=H(d,g.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&&De(e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;we(e,"mouseup",this._disableDelayedDrag),we(e,"touchend",this._disableDelayedDrag),we(e,"touchcancel",this._disableDelayedDrag),we(e,"mousemove",this._delayedDragTouchMoveHandler),we(e,"touchmove",this._delayedDragTouchMoveHandler),we(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(R=!1,i&&e){this.nativeDraggable&&(_e(B,"dragover",this._handleAutoScroll),_e(B,"dragover",pe));var o=this.options;!t&&xe(e,o.dragClass,!1),xe(e,o.ghostClass,!0),Ce(e,"transform",""),ve.active=this,t&&this._appendGhost(),Ee(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,he();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[N])if(o[N]._onDragOver({clientX:_.clientX,clientY:_.clientY,target:n,rootEl:o})&&!this.options.dragoverBubble)break;n=o}while(o=o.parentNode);e.parentNode[N]._computeIsAligned(_),fe()}},_onTouchMove:function(e,t){if(b){var o=this.options,i=o.fallbackTolerance,r=o.fallbackOffset,s=e.touches?e.touches[0]:e,a=n&&Se(n),l=n&&a&&a.a,c=n&&a&&a.d,u=K&&E&&ze(E),d=(s.clientX-b.clientX+r.x)/(l||1)+(u?u[0]-$[0]:0)/(l||1),p=(s.clientY-b.clientY+r.y)/(c||1)+(u?u[1]-$[1]:0)/(c||1),h=e.touches?"translate3d("+d+"px,"+p+"px,0)":"translate("+d+"px,"+p+"px)";if(!ve.active&&!R){if(i&&ne(te(s.clientX-this._lastX),te(s.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}!t&&this._handleAutoScroll(s,!0),w=!0,_=s,Ce(n,"webkitTransform",h),Ce(n,"mozTransform",h),Ce(n,"msTransform",h),Ce(n,"transform",h),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!n){var t=this.options.fallbackOnBody?B.body:i,o=He(e,!0,t,!K),r=(Ce(e),this.options);if(K){for(E=t;"static"===Ce(E,"position")&&"none"===Ce(E,"transform")&&E!==B;)E=E.parentNode;if(E!==B){var s=He(E,!0);o.top-=s.top,o.left-=s.left}E!==B.body&&E!==B.documentElement?(E===B&&(E=ae()),o.top+=E.scrollTop,o.left+=E.scrollLeft):E=ae(),$=ze(E)}xe(n=e.cloneNode(!0),r.ghostClass,!1),xe(n,r.fallbackClass,!0),xe(n,r.dragClass,!0),Ce(n,"box-sizing","border-box"),Ce(n,"margin",0),Ce(n,"top",o.top),Ce(n,"left",o.left),Ce(n,"width",o.width),Ce(n,"height",o.height),Ce(n,"opacity","0.8"),Ce(n,"position",K?"absolute":"fixed"),Ce(n,"zIndex","100000"),Ce(n,"pointerEvents","none"),t.appendChild(n)}},_onDragStart:function(t,n){var r=this,s=t.dataTransfer,a=r.options;(o=Le(e)).draggable=!1,o.style["will-change"]="",this._hideClone(),xe(o,r.options.chosenClass,!1),r._cloneId=Be(function(){r.options.removeCloneOnHide||i.insertBefore(o,e),Ee(r,i,"clone",e)}),!n&&xe(e,a.dragClass,!0),n?(O=!0,r._loopId=setInterval(r._emulateDragOver,50)):(we(B,"mouseup",r._onDrop),we(B,"touchend",r._onDrop),we(B,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",a.setData&&a.setData.call(r,s,e)),_e(B,"drop",r),Ce(e,"transform","translateZ(0)")),R=!0,r._dragStartId=Be(r._dragStarted.bind(r,n,t)),_e(B,"selectstart",r),W&&Ce(B.body,"user-select","none")},_onDragOver:function(n){var o,s,a,l=this.el,c=n.target,d=this.options,h=d.group,g=ve.active,v=f===h,y=d.sort,b=this;if(!Q){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),w=!0,c=ye(c,d.draggable,l,!0),e.contains(n.target)||c.animated)return U(!1);if(c!==e&&(O=!1),g&&!d.disabled&&(v?y||(a=!i.contains(e)):m===this||(this.lastPutMode=f.checkPull(this,g,e,n))&&h.checkPut(this,g,e,n))){var _=this._getDirection(n,c);if(o=He(e),a)return this._hideClone(),t=i,r?i.insertBefore(e,r):i.appendChild(e),U(!0);var E=Oe(l);if(!E||function(e,t,n){var o=He(Oe(n)),i="vertical"===t?e.clientY:e.clientX,r="vertical"===t?e.clientX:e.clientY,s="vertical"===t?o.bottom:o.right,a="vertical"===t?o.left:o.top,l="vertical"===t?o.right:o.bottom;return"vertical"===t?r>l+10||r<=l&&i>s&&r>=a:i>s&&r>a||i<=s&&r>l+10}(n,_,l)&&!E.animated){if(E&&l===n.target&&(c=E),c&&(s=He(c)),v?g._hideClone():g._showClone(this),!1!==Te(i,l,e,o,c,s,n,!!c))return l.appendChild(e),t=l,T=null,Y(),U(!0)}else if(c&&c!==e&&c.parentNode===l){var D,P=0,R=c.sortableMouseAligned,I=e.parentNode!==l,$="vertical"===_?"top":"left",F=qe(c,"top")||qe(e,"top"),L=F?F.scrollTop:void 0;if(x!==c&&(S=null,D=He(c)[$],A=!1),function(t,n,o){var i=t===e&&T||He(t),r=n===e&&T||He(n),s="vertical"===o?i.left:i.top,a="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 s===c||a===u||s+l/2===c+d/2}(e,c,_)&&R||I||F||d.invertSwap||"insert"===S||"swap"===S?("swap"!==S&&(M=d.invertSwap||I),P=function(t,n,o,i,r,s,a){var l=He(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,h=He(e),f=!1;if(!s)if(a&&k<u*i)if(!A&&(1===C?c>d+u*r/2:c<p-u*r/2)&&(A=!0),A)f=!0;else{"vertical"===o?h.top:h.left,"vertical"===o?h.bottom:h.right;if(1===C?c<d+k:c>p-k)return-1*C}else if(c>d+u*(1-i)/2&&c<p-u*(1-i)/2)return Ie(n);if((f=f||s)&&(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,M,x===c),S="swap"):(P=Ie(c),S="insert"),0===P)return U(!1);T=null,x=c,C=P,s=He(c);var j=c.nextElementSibling,q=!1,z=Te(i,l,e,o,c,s,n,q=1===P);if(!1!==z)return 1!==z&&-1!==z||(q=1===z),Q=!0,H(Pe,30),v?g._hideClone():g._showClone(this),q&&!j?l.appendChild(e):c.parentNode.insertBefore(e,q?j:c),F&&le(F,0,L-F.scrollTop),t=e.parentNode,void 0===D||M||(k=te(D-He(c)[$])),Y(),U(!0)}if(l.contains(e))return U(!1)}return!1}function U(t){return t&&(v?g._hideClone():g._showClone(b),g&&(xe(e,m?m.options.ghostClass:g.options.ghostClass,!1),xe(e,d.ghostClass,!0)),m!==b&&b!==ve.active?m=b:b===ve.active&&(m=null),o&&b._animate(o,e),c&&s&&b._animate(s,c)),(c===e&&!e.animated||c===l&&!c.animated)&&(x=null),d.dragoverBubble||n.rootEl||c===B||(b._handleAutoScroll(n),e.parentNode[N]._computeIsAligned(n),!t&&ge(n)),!d.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function Y(){Ee(b,i,"change",c,l,i,u,Me(e),p,Me(e,d.draggable),n)}},_animate:function(t,n){var o=this.options.animation;if(o){var i=He(n);if(n===e&&(T=i),1===t.nodeType&&(t=He(t)),t.left+t.width/2!==i.left+i.width/2||t.top+t.height/2!==i.top+i.height/2){var r=Se(this.el),s=r&&r.a,a=r&&r.d;Ce(n,"transition","none"),Ce(n,"transform","translate3d("+(t.left-i.left)/(s||1)+"px,"+(t.top-i.top)/(a||1)+"px,0)"),this._repaint(n),Ce(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ce(n,"transform","translate3d(0,0,0)")}"number"==typeof n.animated&&clearTimeout(n.animated),n.animated=H(function(){Ce(n,"transition",""),Ce(n,"transform",""),n.animated=!1},o)}},_repaint:function(e){return e.offsetWidth},_offMoveEvents:function(){we(B,"touchmove",this._onTouchMove),we(B,"pointermove",this._onTouchMove),we(B,"dragover",ge),we(B,"mousemove",ge),we(B,"touchmove",ge)},_offUpEvents:function(){var e=this.el.ownerDocument;we(e,"mouseup",this._onDrop),we(e,"touchend",this._onDrop),we(e,"pointerup",this._onDrop),we(e,"touchcancel",this._onDrop),we(B,"selectstart",this)},_onDrop:function(s){var a=this.el,l=this.options;R=!1,P=!1,M=!1,A=!1,clearInterval(this._loopId),clearInterval(g),ue(),clearTimeout(me),me=void 0,clearTimeout(this._dragStartTimer),je(this._cloneId),je(this._dragStartId),we(B,"mousemove",this._onTouchMove),this.nativeDraggable&&(we(B,"drop",this),we(a,"dragstart",this._onDragStart),we(B,"dragover",this._handleAutoScroll),we(B,"dragover",pe)),W&&Ce(B.body,"user-select",""),this._offMoveEvents(),this._offUpEvents(),s&&(w&&(s.cancelable&&s.preventDefault(),!l.dropBubble&&s.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(i===t||m&&"clone"!==m.lastPutMode)&&o&&o.parentNode&&o.parentNode.removeChild(o),e&&(this.nativeDraggable&&we(e,"dragend",this),De(e),e.style["will-change"]="",xe(e,m?m.options.ghostClass:this.options.ghostClass,!1),xe(e,this.options.chosenClass,!1),Ee(this,i,"unchoose",e,t,i,u,null,p,null,s),i!==t?(d=Me(e),h=Me(e,l.draggable),d>=0&&(Ee(null,t,"add",e,t,i,u,d,p,h,s),Ee(this,i,"remove",e,t,i,u,d,p,h,s),Ee(null,t,"sort",e,t,i,u,d,p,h,s),Ee(this,i,"sort",e,t,i,u,d,p,h,s)),m&&m.save()):e.nextSibling!==r&&(d=Me(e),h=Me(e,l.draggable),d>=0&&(Ee(this,i,"update",e,t,i,u,d,p,h,s),Ee(this,i,"sort",e,t,i,u,d,p,h,s))),ve.active&&(null!=d&&-1!==d||(d=u,h=p),Ee(this,i,"end",e,t,i,u,d,p,h,s),this.save()))),this._nulling()},_nulling:function(){i=e=t=n=r=o=s=a=l=D.length=g=v=y=b=_=w=d=u=x=C=T=m=f=ve.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++)ye(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Ae(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,o){var i=n.children[o];ye(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 ye(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[N]=null,we(e,"mousedown",this._onTapStart),we(e,"touchstart",this._onTapStart),we(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(we(e,"dragover",this),we(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),I.splice(I.indexOf(this.el),1),this.el=e=null},_hideClone:function(){o.cloneHidden||(Ce(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),Ce(o,"display",""),o.cloneHidden=!1):this._hideClone()}},_e(B,"touchmove",function(e){(ve.active||R)&&e.cancelable&&e.preventDefault()}),ve.utils={on:_e,off:we,css:Ce,find:ke,is:function(e,t){return!!ye(e,t,e,!1)},extend:Ne,throttle:Fe,closest:ye,toggleClass:xe,clone:Le,index:Me,nextTick:Be,cancelNextTick:je,detectDirection:re,getChild:Re},ve.create=function(e,t){return new ve(e,t)},ve.version="1.9.0",ve})},806:function(e,t,n){var o=n(90)(n(826),n(827),!1,null,null,null);e.exports=o.exports},816:function(e,t,n){"use strict";var o=n(663),i=n(336),r=n(668),s=n(684),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.a={mixins:[o.a,r.a,i.a,s.a],data:function(){return{recurringAppointments:[],customerCreatedCount:0,appointment:null,bookings:[],duplicateEvent:!1,exportAction:"",exportParams:{fields:[{label:this.$root.labels.customers,value:"customers",checked:!0},{label:this.$root.labels.employee,value:"employee",checked:!0},{label:this.$root.labels.service,value:"service",checked:!0},{label:this.$root.labels.location,value:"location",checked:!0},{label:this.$root.labels.start_time,value:"startTime",checked:!0},{label:this.$root.labels.end_time,value:"endTime",checked:!0},{label:this.$root.labels.duration,value:"duration",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.price,value:"price",checked:!0},{label:this.$root.labels.note,value:"note",checked:!0},{label:this.$root.labels.status,value:"status",checked:!0},{label:this.$root.labels.custom_fields,value:"customFields",checked:!0},{label:this.$root.labels.ph_booking_number_of_persons,value:"persons",checked:!0},{label:this.$root.labels.coupon_code,value:"couponCode",checked:!0},{label:this.$root.labels.extras,value:"extras",checked:!0}]},savedAppointment:null,totalBookings:0,statuses:[{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}],noShowStatus:[{value:"no-show",label:this.$root.labels["no-show"]}],options:{fetched:!1,availableEntitiesIds:{packages:[],categories:[],employees:[],locations:[],services:[]},entities:{categories:[],customers:[],customFields:[],employees:[],locations:[],services:[]}}}},methods:{getInitAppointmentObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=[];if(e){var n=this.options.entities.customers.find(function(t){return t.id===e.customerId});t=[{id:0,customer:n,status:this.$root.settings.general.defaultAppointmentStatus,duration:null,persons:1,total:0,extras:[],payments:[],price:0,coupon:null,added:!1,visible:!0,info:JSON.stringify({firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone}),aggregatedPrice:null,packageCustomerService:{packageCustomer:{id:e.id}},customFields:{}}]}return{id:0,bookings:t,categoryId:"",serviceId:"",providerId:"",locationId:"",selectedDate:null,selectedPeriod:"",status:this.$root.settings.general.defaultAppointmentStatus,internalNotes:"",notifyParticipants:this.$root.settings.notifications.notifyCustomers,createPaymentLinks:!0,dateTimeSlots:[],calendarTimeSlots:[],occupiedTimeSlots:[],bookedTimeSlots:{},loadedDates:{},extrasTotalPrice:0,serviceTotalPrice:0,discountTotalPrice:0,providerServiceMinCapacity:0,providerServiceMaxCapacity:0,extrasCount:0,extrasSelectedCount:0,duration:0,lessonSpace:0}},showDialogNewAppointment:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.setBookings(0),this.savedAppointment=null,this.dialogAppointment=!0,setTimeout(function(){e.appointment=e.getInitAppointmentObject(t),t&&e.setBookingCustomFields()},500)},showDialogEditAppointment:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.dialogAppointment=!0,setTimeout(function(){t.getAppointment(e,n)},500)},saveAppointmentCallback:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.appointment=this.getInitAppointmentObject(null),e&&"booking"in e&&e.booking&&!t&&this.$http.post(this.$root.getAjaxUrl+"/bookings/success/"+e.booking.id,{type:"appointment",appointmentStatusChanged:e.appointmentStatusChanged,paymentId:"paymentId"in e&&e.paymentId?e.paymentId:null,packageBookingFromBackend:"packageBookingFromBackend"in e?e.packageBookingFromBackend:null}),this.getAppointmentOptions(!0)},closeDialogAppointment:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.duplicateEvent=e,this.dialogAppointment=!1},setBookings:function(e){var t=[],n=this;this.options.entities.customers.forEach(function(o){if("hidden"!==o.status){var i=0,r=[],s=[],a=null,l=0,c=null,u=1,d=null,p=null,h=JSON.stringify({firstName:o.firstName,lastName:o.lastName,email:o.email,phone:o.phone});n.appointment&&e&&n.appointment.bookings.forEach(function(e){e.customerId===o.id&&(i=e.id,r=e.extras,s=e.payments,l=e.price,c=e.duration,u=e.persons,a=e.coupon,h=e.info,d=e.aggregatedPrice,p=e.packageCustomerService)}),t.push({id:i,customer:o,status:n.$root.settings.general.defaultAppointmentStatus,duration:c,persons:u,total:0,extras:r,payments:s,price:l,coupon:a,added:!1,info:h,aggregatedPrice:d,packageCustomerService:p,customFields:{}})}}),this.bookings=t},getAppointment:function(e,t){var n=this,o=null,i="";void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(i=""===this.$store.state.cabinet.timeZone?"UTC":this.$store.state.cabinet.timeZone,o=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType,timeZone:i}})),void 0===this.$store&&"provider"===this.$root.settings.role&&1===this.options.entities.employees.length&&this.options.entities.employees[0].timeZone&&(o=Object.assign({params:{timeZone:this.options.entities.employees[0].timeZone}})),this.$http.get(this.$root.getAjaxUrl+"/appointments/"+e,o).then(function(o){n.totalBookings=o.data.data.appointment.bookings.length,t&&(o.data.data.appointment.bookings=o.data.data.appointment.bookings.filter(function(e){return parseInt(e.customerId)===parseInt(t)}));var r=n;n.savedAppointment=JSON.parse(JSON.stringify(o.data.data.appointment)),n.savedAppointment.categoryId=n.getServiceById(n.savedAppointment.serviceId).categoryId,n.appointment=Object.assign(n.getInitAppointmentObject(null),o.data.data.appointment),n.appointment.notifyParticipants=!!n.appointment.notifyParticipants,n.appointment.createPaymentLinks=!!n.appointment.createPaymentLinks,"UTC"===i&&n.$root.settings.general.showClientTimeZone&&(n.appointment.bookingStart=n.getConvertedUtcToLocalDateTime(n.appointment.bookingStart),n.appointment.bookingEnd=n.getConvertedUtcToLocalDateTime(n.appointment.bookingEnd),n.savedAppointment.bookingStart=n.getConvertedUtcToLocalDateTime(n.savedAppointment.bookingStart),n.savedAppointment.bookingEnd=n.getConvertedUtcToLocalDateTime(n.savedAppointment.bookingEnd)),n.appointment.bookings.forEach(function(e){var t=null;r.options.entities.services.forEach(function(e){e.id===r.appointment.serviceId&&(t=JSON.parse(JSON.stringify(e.extras))).forEach(function(e){e.quantity=1,e.selected=!1})}),e.customer=null,e.added=!1,r.options.entities.customers.forEach(function(t){if(t.id===e.customerId){e.customer=t;var n=r.getCustomerInfo(e);0!==e.id&&n&&(e.info=JSON.stringify({firstName:n.firstName,lastName:n.lastName,email:n.email,phone:n.phone})),e.added=!0}}),e.extras.forEach(function(e){t.forEach(function(t){t.extraId===e.extraId&&(t.id=e.id,t.selected=!0,t.quantity=e.quantity?e.quantity:1,t.price=e.price,t.aggregatedPrice=e.aggregatedPrice,t.tax=e.tax)})}),t.forEach(function(e){e.selected||(e.id=0)}),e.extras=t,"[]"!==e.customFields&&null!==e.customFields||(e.customFields="{}"),e.customFields=JSON.parse(e.customFields)}),n.setBookings(e),n.recurringAppointments=o.data.data.recurring,n.appointment.lessonSpace=null!==n.appointment.lessonSpace?n.appointment.lessonSpace.split("https://www.thelessonspace.com/space/")[1]:0,o.data.data.appointment.lessonSpaceDetails&&r.options.entities.spaces&&!r.options.entities.spaces.find(function(e){return e.id===o.data.data.appointment.lessonSpaceDetails.id})&&r.options.entities.spaces.push(o.data.data.appointment.lessonSpaceDetails)}).catch(function(e){console.log(e.message)})},sortBookings:function(e){e.sort(function(e,t){return(e.customer.firstName+" "+e.customer.lastName).localeCompare(t.customer.firstName+" "+t.customer.lastName)})},duplicateAppointmentCallback:function(e){var t=this;this.appointment=e,this.appointment.id=0,this.appointment.selectedDate=null,this.appointment.selectedPeriod="",this.appointment.dateTimeSlots=[],this.appointment.calendarTimeSlots=[],this.appointment.bookings[0].packageCustomerService&&(this.appointment.bookings[0].payments=[]),setTimeout(function(){t.dialogAppointment=!0},300)},getCustomersFromGroup:function(e){var t=this,n="";return e.bookings.forEach(function(e){if(t.options.entities.customers.length){var o=t.getCustomerInfo(e);o&&(n+='<span class="am-appointment-status-symbol am-appointment-status-symbol-'+e.status+'"></span><span>'+o.firstName+" "+o.lastName+"</span><br>")}}),n},saveCustomerCallback:function(e){delete e.user.birthday,this.options.entities.customers.push(e.user);var t=this.appointment&&this.appointment.serviceId?this.getServiceById(this.appointment.serviceId):null,n={id:0,customer:e.user,customerId:e.user.id,status:this.$root.settings.general.defaultAppointmentStatus,persons:1,duration:t?t.duration:null,total:0,extras:t?t.extras:[],payments:[],coupon:null,info:JSON.stringify({firstName:e.user.firstName,lastName:e.user.lastName,email:e.user.email,phone:e.user.phone}),customFields:[],added:!0};this.bookings.push(n),this.sortBookings(this.bookings),null!==this.appointment&&(this.appointment.bookings.push(n),this.sortBookings(this.appointment.bookings)),this.setBookingCustomFields(),this.customerCreatedCount++},updateAppointmentStatus:function(e,t,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.updateStatusDisabled=!0,this.form.post(this.$root.getAjaxUrl+"/appointments/status/"+e.id,{status:t,packageCustomerId:"packageCustomerId"in e&&e.packageCustomerId?e.packageCustomerId:null}).then(function(r){var s=[];"bookingsWithChangedStatus"in r.data&&(s=r.data.bookingsWithChangedStatus.map(function(e){return e.id})),n&&o.setTotalStatusCounts(e,t,r.data.status,s),o.notify(t===r.data.status?o.$root.labels.success:o.$root.labels.error,o.$root.labels.appointment_status_changed+o.$root.labels[r.data.status].toLowerCase(),t===r.data.status?"success":"error"),e.status=r.data.status,"packageCustomerId"in e&&e.packageCustomerId&&i&&i(),o.updateStatusDisabled=!1}).catch(function(t){"timeSlotUnavailable"in t.response.data.data&&!0===t.response.data.data.timeSlotUnavailable&&(o.notify(o.$root.labels.error,o.$root.labels.time_slot_unavailable,"error"),e.status=t.response.data.data.status),o.updateStatusDisabled=!1})},updateAppointmentBookingStatus:function(e,t,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.updateStatusDisabled=!0,this.form.post(this.$root.getAjaxUrl+"/bookings/status/"+e.id,{status:t}).then(function(r){o.notify(t===r.data.booking.status?o.$root.labels.success:o.$root.labels.error,o.$root.labels.booking_status_changed+o.$root.labels[r.data.booking.status].toLowerCase(),t===r.data.booking.status?"success":"error"),e.status=r.data.booking.status,n&&i&&i(),o.updateStatusDisabled=!1}).catch(function(t){"timeSlotUnavailable"in t.response.data.data&&!0===t.response.data.data.timeSlotUnavailable&&(o.notify(o.$root.labels.error,o.$root.labels.time_slot_unavailable,"error"),e.status=t.response.data.data.status),o.updateStatusDisabled=!1})},packageTooltipContent:function(e){var t=this.bookingTypeCountInPackage(e),n="";for(var o in t.regular&&(n+=t.regular+"/"+e.length+" "+this.$root.labels.bookings_regular_tooltip+"<br/>"),t.package){var i=this.getPackageById(parseInt(o));n+=t.package[o].count+"/"+e.length+" "+this.$root.labels.bookings_package_tooltip+" <strong>"+(i?i.name:"Package")+"</strong><br/>"}return n},deletePaymentCallback:function(e){this.updatePaymentCallback(e,!0)},bookingTypeCountInPackage:function(e){for(var t={regular:0,package:{}},n=0;n<e.length;n++)if(null!==e[n].packageCustomerService){var o=e[n].packageCustomerService.packageCustomer.packageId,i=e[n].packageCustomerService.packageCustomer.payment;o in t.package?(t.package[o].count++,t.package[o].payment+=i?i.ampunt:0):t.package[o]={count:1,price:i?i.amount:0}}else t.regular++;return t},getAppointmentPaymentMethods:function(e){var t=[];return e.forEach(function(e){var n=e.payments.length?e.payments[0].gateway:null;""!==n&&null!==n||(n="onSite"),-1===t.indexOf(n)&&t.push(n)}),t},getAppointmentPayment:function(e){var t=this,n=[];return e.forEach(function(e){var o=e.payments.length?e.payments[0]:null;null===o&&(o="onSite"),n.find(function(e){return t.getPaymentType(e)===t.getPaymentType(o)})||n.push(o)}),n},editPayment:function(e){if(e.package){var t=e.payment;t.coupon=e.booking.packageCustomerService.packageCustomer.couponId?e.booking.coupon:null,e.booking={price:e.booking.packageCustomerService.packageCustomer.price,payments:[t],extras:[]}}this.selectedPaymentModalData=this.getPaymentData(e.payment,e.package?null:this.savedAppointment,null,e.package?e:null),this.selectedPaymentModalData.customer=this.getCustomerById(e.payment.customerId),this.selectedPaymentModalData.recurring=e.recurring,this.dialogPayment=!0},updatePaymentCallback:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this;this.appointment.bookings.forEach(function(o){o.payments.forEach(function(i,r){if(i.id===e.id)if(t){o.payments.splice(r,1);var s=n.savedAppointment.bookings.findIndex(function(e){return e.id===o.id});-1!==s&&n.savedAppointment.bookings[s].payments.splice(r,1)}else{o.payments.splice(r,1,e);var a=n.savedAppointment.bookings.findIndex(function(e){return e.id===o.id});-1!==a&&n.savedAppointment.bookings[a].payments.splice(r,1,e)}})}),this.dialogPayment=!1},filterCategoriesByProviderServiceIDs:function(e){var t=this;if(this.currentUser&&"provider"===this.$root.settings.role){var n=this.options.entities.employees.find(function(e){return e.id===t.currentUser.id}).serviceList.map(function(e){return e.id});return e.map(function(e){if(e.serviceList&&e.serviceList.length>0){var t=e.serviceList.filter(function(e){return n.includes(e.id)});return a({},e,{serviceList:t})}return e}).filter(function(e){return e.serviceList&&e.serviceList.length>0})}return e}},watch:{dialogAppointment:function(){!1===this.dialogAppointment&&!1===this.duplicateEvent&&(this.appointment=null)}}}},817:function(e,t,n){var o=n(90)(n(818),n(822),!1,null,null,null);e.exports=o.exports},818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(91),i=n(666),r=n(667),s=n(704),a=n(663),l=n(336),c=n(660),u=n(697),d=n.n(u),p=n(819),h=n.n(p),f=n(791),m=n.n(f),g=n(659),v=n(655),y=n(654),b=n(0),_=n.n(b),w=n(658),x=n(657),C=n(661),S=n(706),k=n.n(S),E=n(698),T=n(708),D=n.n(T),P=n(664),R=n(673),O=n(337),I=n.n(O);t.default={mixins:[o.a,i.a,R.a,g.a,y.a,l.a,c.a,w.a,x.a,C.a,a.a,s.a,E.a,v.a,P.a,r.a],props:{currentUser:null,packageServices:null,packageCustomer:null,selectedTimeZone:"",appointment:null,recurringAppointments:null,savedAppointment:null,totalBookings:{type:Number,default:0},bookings:null,options:null,customerCreatedCount:0,showHeader:{required:!1,default:!0,type:Boolean},haveDuplicate:{required:!1,default:!0,type:Boolean},hideAttachmentCustomField:{required:!1,default:!1,type:Boolean},isCabinet:{type:Boolean,default:!1,required:!1},customersNoShowCount:{type:Array,default:function(){return[]},required:!1}},data:function(){var e=this,t=function(t,n,o){n||(e.newAppointmentTabs="schedule"),o()};return{saveConfirmMessage:null,requiredDuration:0,existingAppointmentAcknowledged:!1,fullAppointmentAcknowledged:!1,intersectedAppointmentAcknowledged:!1,calendarNavigating:!1,slotsIndexCounter:0,startDateTime:null,endDateTime:null,monthsLoad:0,searchSpacesTimer:null,loadingSpaces:!1,spaces:[],searchSpacesCounter:0,coupon:null,showCoupon:!1,clonedBookings:null,cachedClonedBookings:[],serviceUpdated:!1,recurringDatesChanged:!1,selectedRecurringDates:[],activeRecurring:!1,enabledRecurring:!1,initialRecurringData:null,recurringData:this.getDefaultRecurringData(),isProviderService:!0,availableDates:[],categorySpinnerActive:!1,dialogLoading:!0,disabledWeekdays:{weekdays:[1,2,3,4,5,6,7]},employeeSpinnerActive:!1,filter:null,locationSpinnerActive:!1,mounted:!1,newAppointmentTabs:"schedule",serviceSpinnerActive:!1,statusMessage:"",loadingTimeSlots:!1,pricedSlots:{},pricedCalendarTimeSlots:{},pricedOccupiedTimeSlots:{},attributes:[],payment:{amount:0,gateway:"onSite"},rulesInit:{bookings:[{required:!0,message:this.$root.labels.select_customer_warning,trigger:"submit",type:"array"},{validator:function(t,n,o){e.appointment.serviceId&&e.appointment.providerId&&e.isProviderService&&e.getApprovedPersonsCount()>e.appointment.providerServiceMaxCapacity?(e.newAppointmentTabs="schedule",o(new Error(e.$root.labels.select_max_customer_count_warning+" "+e.appointment.providerServiceMaxCapacity))):o()},trigger:"submit"}],serviceId:[{required:!0,message:this.$root.labels.select_service_warning,trigger:"submit",type:"number"}],providerId:[{required:!0,message:this.$root.labels.select_employee_warning,trigger:"submit",type:"number"}],selectedDate:[{validator:t,trigger:"submit"},{required:!0,message:this.$root.labels.select_date_warning,trigger:"submit",type:"date"}],"selectedPeriod.time":[{validator:t,trigger:"submit"},{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}]},rules:{},statuses:[{id:1,value:"approved",label:this.$root.labels.approved},{id:0,value:"pending",label:this.$root.labels.pending},{id:2,value:"canceled",label:this.$root.labels.canceled},{id:3,value:"rejected",label:this.$root.labels.rejected}],noShowStatus:[{id:4,value:"no-show",label:this.$root.labels["no-show"]}],renderObject:{recurringSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringSetupHeadingFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},recurringSettingsFormField:{labels:{recurring_repeat:{value:"",translations:{x:""}},recurring_every:{value:"",translations:{x:""}},recurring_on:{value:"",translations:{x:""}},recurring_until:{value:"",translations:{x:""}},recurring_times:{value:"",translations:{x:""}}}}}},recurringDatesForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringDatesHeadingFormField:{labels:{recurring_appointments:{value:"",translations:{x:""}},recurring_edit:{value:"",translations:{x:""}}},visibility:!0},recurringInfoFormField:{labels:{date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}}}}}}}}},mounted:function(){this.monthsLoad=1,this.startDateTime=_()().startOf("month").format("YYYY-MM-DD"),this.endDateTime=null,this.appointment&&0===this.appointment.id&&this.instantiateDialog(),this.rules=this.rulesInit},methods:{isGenerateLinkVisible:function(){return"customer"!==this.$root.settings.role&&!this.packageCustomer&&this.appointment.notifyParticipants&&this.appointment.serviceId&&this.isPaymentLinkEnabled(this.appointment.serviceId)},isPaymentLinkEnabled:function(e){var t=this.getServiceById(e),n=t&&t.settings?JSON.parse(t.settings):null,o=n&&"payments"in n&&n.payments&&"paymentLinks"in n.payments&&n.payments.paymentLinks?n.payments.paymentLinks:this.$root.settings.payments.paymentLinks;return o&&o.enabled},changedMonth:function(e){void 0!==e&&"key"in e&&(this.availableDates=[],this.disabledWeekdays={weekdays:[1,2,3,4,5,6,7]},this.calendarNavigating=!0,this.startDateTime=_()(e.year+"-"+e.month+"-01 00:00","YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm"),this.endDateTime=_()(e.year+"-"+e.month+"-01 00:00","YYYY-MM-DD HH:mm").add(1,"month").format("YYYY-MM-DD HH:mm"),this.getTimeSlots(this.updateCalendar))},getAllowedStatuses:function(){var e=this;return this.isCabinet&&_()(this.appointment.bookingStart)<_()()&&"no-show"!==this.appointment.status?this.statuses.filter(function(t){return t.value===e.appointment.status}).concat(this.noShowStatus):this.statuses.concat(this.getDateTime(this.appointment.bookingEnd)<this.getNowDate()?this.noShowStatus:[])},disableStatusChange:function(){return this.isCabinet&&_()(this.appointment.bookingStart)<_()()&&"no-show"===this.appointment.status},getAllowedServices:function(){var e=this,t=[];return this.packageServices&&0===this.packageServices.length?[this.getServiceById(this.appointment.serviceId)]:(t=this.packageServices&&this.packageServices.length?this.servicesFiltered.filter(function(t){return-1!==e.packageServices.map(function(e){return e.id}).indexOf(t.id)}):this.servicesFiltered,this.packageServices&&this.packageServices.length&&this.appointment.id&&this.appointment.serviceId&&-1===t.map(function(e){return e.id}).indexOf(this.appointment.serviceId)&&t.push(this.getServiceById(this.appointment.serviceId)),t.sort(function(e,t){return e.disabled-t.disabled}))},filterServices:function(){var e=this;this.options.entities.services.forEach(function(e){e.disabled=!1});var t=this.options.entities.coupons?this.options.entities.coupons.find(function(t){return t.id===e.coupon}):null;t&&this.options.entities.services.forEach(function(e){t.serviceList.map(function(e){return e.id}).includes(e.id)||(e.disabled=!0)})},searchExistingSpaces:function(e){var t=this;e?this.searchSpaces(e):setTimeout(function(){clearTimeout(t.searchSpacesTimer),t.spaces=t.options.entities.spaces},500)},searchSpaces:function(e){var t=this;clearTimeout(this.searchSpacesTimer),this.loadingSpaces=!0,this.searchSpacesCounter++,this.searchSpacesTimer=setTimeout(function(){var n=t.searchSpacesCounter;t.$http.get(t.$root.getAjaxUrl+"/entities",{params:{types:["lessonSpace_spaces"],lessonSpaceSearch:e}}).then(function(e){var o=t.options.entities.spaces;n>=t.searchSpacesCounter&&(o=e.data.data.spaces),t.spaces=o,t.loadingSpaces=!1}).catch(function(e){t.loadingSpaces=!1})},500)},searchExistingCustomers:function(e){var t=this;e?this.searchCustomers(e,this.setFilteredBookings):setTimeout(function(){clearTimeout(t.searchCustomersTimer),t.setFilteredBookings(!1)},500)},setFilteredBookings:function(e){var t=this,n=[];this.appointment.bookings.forEach(function(e){n.push(e.customerId)});var o=this.searchedCustomers;void 0===e||e||(o=this.options.entities.customers,this.clonedBookings=[]);var i=this.clonedBookings.map(function(e){return e.customer}).map(function(e){return e.id});o.forEach(function(e){-1===n.indexOf(e.id)&&-1===i.indexOf(e.id)&&t.clonedBookings.push({id:0,customer:e,status:t.$root.settings.general.defaultAppointmentStatus,duration:t.appointment.serviceId?t.getServiceById(t.appointment.serviceId).duration:null,persons:1,total:0,extras:[],payments:[],price:0,coupon:null,added:!1,visible:!0,info:JSON.stringify({firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone}),aggregatedPrice:null,packageCustomerService:null,customFields:{}})});for(var r=o.map(function(e){return e.id}),s=this.clonedBookings.length-1;s>=0;s--)-1===r.indexOf(this.clonedBookings[s].customer.id)?this.clonedBookings[s].visible=!1:this.clonedBookings[s].visible=!0},selectedTime:function(){var e=this,t=this;this.existingAppointmentAcknowledged=!1,this.fullAppointmentAcknowledged=!1,this.intersectedAppointmentAcknowledged=!1,this.saveConfirmMessage="";var n=this.getStringFromDate(this.appointment.selectedDate);n in this.appointment.calendarTimeSlots&&this.appointment.selectedPeriod.time in this.appointment.calendarTimeSlots[n]&&this.appointment.calendarTimeSlots[n][this.appointment.selectedPeriod.time].forEach(function(e){e[0]===t.appointment.providerId&&(t.appointment.locationId=e[1])}),this.selectedRecurringDates.length?this.$nextTick(function(){e.refreshRecurringData()}):this.activeRecurring&&this.enabledRecurring&&this.setRecurringData(),this.clearValidation()},updateByCustomer:function(){var e=this;this.dialogLoading=!0;var t=this.getStringFromDate(this.appointment.selectedDate)+" "+this.appointment.selectedPeriod.time;this.$http.post(this.$root.getAjaxUrl+"/bookings/reassign/"+this.appointment.bookings[0].id,{bookingStart:t}).then(function(t){e.$emit("saveCallback",t),setTimeout(function(){e.dialogLoading=!1,e.$emit("closeDialog")},300),e.notify(e.$root.labels.success,e.$root.labels.appointment_rescheduled,"success")}).catch(function(t){if(t.response){e.dialogLoading=!1;var n=e;setTimeout(function(){"timeSlotUnavailable"in t.response.data.data&&!0===t.response.data.data.timeSlotUnavailable&&n.notify(n.$root.labels.error,n.$root.labels.time_slot_unavailable,"error"),"rescheduleBookingUnavailable"in t.response.data.data&&!0===t.response.data.data.rescheduleBookingUnavailable&&n.notify(n.$root.labels.error,n.$root.labels.booking_reschedule_exception,"error"),"customerAlreadyBooked"in t.response.data.data&&!0===t.response.data.data.customerAlreadyBooked&&n.notify(n.$root.labels.error,n.$root.labels.customer_already_booked_app,"error")},200)}})},editPayment:function(e){this.$emit("editPayment",e)},instantiateDialog:function(){null!==this.appointment&&(this.clonedBookings=JSON.parse(JSON.stringify(this.bookings)),this.spaces=this.options.entities.spaces,this.clonedBookings.forEach(function(e){e.visible=!0}),this.cachedClonedBookings=JSON.parse(JSON.stringify(this.clonedBookings)),"provider"===this.$root.settings.role&&(this.currentUser?this.appointment.providerId=this.currentUser.id:this.appointment.providerId=this.options.entities.employees[0].id),this.$root.licence.isLite&&this.options.entities.employees.length&&(this.appointment.providerId=this.options.entities.employees[0].id),0!==this.appointment.id?(this.appointment.bookings.forEach(function(e){e.payments.sort(function(e,t){return new Date(e.dateTime)-new Date(t.dateTime)})}),this.activeRecurring=this.recurringAppointments.length>0,this.initialRecurringData=this.getDefaultRecurringSettings(this.appointment.selectedDate,this.getServiceById(this.appointment.serviceId).recurringCycle,this.appointment.calendarTimeSlots),this.setCategory(),this.setLocation(),this.handleCustomerChange(),this.coupon=this.appointment.bookings[0].coupon?this.appointment.bookings[0].coupon.id:null,this.showCoupon=!!this.coupon,this.startDateTime=_()(this.appointment.bookingStart,"YYYY-MM-DD HH:mm:ss").startOf("month").format("YYYY-MM-DD"),this.endDateTime=_()(this.appointment.bookingStart,"YYYY-MM-DD HH:mm:ss").startOf("month").add(1,"month").format("YYYY-MM-DD"),this.getTimeSlots(function(e,t){var n=this,o=n.appointment.bookingStart.split(" "),i=o[0],r=o[1].slice(0,-3);if(i in e){if(!(r in e[i])){var s=Object.keys(e[i]);s.push(r);var a={};s.sort().forEach(function(t){a[t]=t===r?[n.appointment.providerId]:e[i][t]}),e[i]=a}}else e[i]={},e[i][r]=[[this.appointment.providerId,this.appointment.locationId]];this.appointment.selectedDate=_()(i).toDate(),this.appointment.selectedPeriod={time:r,employee:n.appointment.providerId},this.updateCalendar(e,t)}.bind(this))):""!==this.appointment.serviceId?(this.setCategory(),this.setLocation(),this.getTimeSlots(this.updateCalendar)):0===this.appointment.id&&(this.dialogLoading=!1,this.showCoupon=!0),this.mounted=!0)},setCategory:function(){var e=this;this.appointment.categoryId=this.options.entities.services.find(function(t){return t.id===e.appointment.serviceId}).categoryId},setLocation:function(){var e=this;this.appointment.locationId=this.appointment.locationId?this.appointment.locationId:this.options.entities.employees.find(function(t){return e.appointment.providerId===t.id}).locationId},closeDialog:function(){this.$emit("closeDialog")},getParsedEntity:function(){var e=this;this.existingAppointmentAcknowledged=!1,this.fullAppointmentAcknowledged=!1,this.intersectedAppointmentAcknowledged=!1,this.saveConfirmMessage="";var t=[];if(null!==this.packageCustomer&&this.appointment.id)return{bookingStart:this.getBookingStart(),status:this.appointment.bookings[0].status,locationId:this.appointment.locationId,providerId:this.appointment.providerId,serviceId:this.appointment.serviceId,timeZone:"UTC"===this.selectedTimeZone?null:this.selectedTimeZone,notifyParticipants:this.appointment.notifyParticipants?1:0,createPaymentLinks:this.appointment.createPaymentLinks?1:0,customFields:this.appointment.bookings[0].customFields,internalNotes:this.appointment.internalNotes};if(null!==this.packageCustomer)return this.appointment.bookings.forEach(function(n){var o=n.customFields;for(var i in o)"datepicker"===o[i].type&&o[i].value&&(o[i].value=o[i].value instanceof Date?e.getStringFromDate(o[i].value):o[i].value);var r=!1,s=e.packageCustomer.appointments[0].packageCustomerId;e.packageCustomer.data.forEach(function(e){e.bookings.forEach(function(e){parseInt(e.packageCustomerId)===parseInt(s)&&(r=!0)})});var a={id:null,customerId:n.customer.id,customer:n.customer,status:n.status,duration:n.duration,persons:n.persons,extras:[],customFields:e.getAllowedCustomFields(o,"services",e.appointment.serviceId),payments:n.payments,packageCustomerService:{id:r?e.packageCustomer.data.find(function(t){return parseInt(t.serviceId)===parseInt(e.appointment.serviceId)}).bookings.find(function(e){return parseInt(e.packageCustomerId)===parseInt(s)}).id:e.packageCustomer.data.find(function(t){return t.serviceId===e.appointment.serviceId}).bookings.filter(function(e){return e.count})[0].id},utcOffset:null};t.push(a)}),{type:"appointment",bookings:t,bookingStart:this.getBookingStart(),notifyParticipants:this.appointment.notifyParticipants?1:0,locationId:this.appointment.locationId,providerId:this.appointment.providerId,serviceId:this.appointment.serviceId,payment:null,recurring:[],package:[],timeZone:"UTC"===this.selectedTimeZone?null:this.selectedTimeZone,utc:"UTC"===this.selectedTimeZone,locale:null,createPaymentLinks:this.appointment.createPaymentLinks?1:0,packageBookingFromBackend:!0};this.appointment.bookings.forEach(function(n){var o=[];for(var i in n.customFields)"datepicker"===n.customFields[i].type&&n.customFields[i].value&&(n.customFields[i].value=n.customFields[i].value instanceof Date?e.getStringFromDate(n.customFields[i].value):n.customFields[i].value);n.extras.forEach(function(e){e.selected&&o.push({id:e.id,customerBookingId:n.id,extraId:e.extraId,quantity:e.quantity,price:e.price})});var r={id:n.id,customerId:n.customer.id,customer:n.customer,status:n.status,duration:n.duration,persons:n.persons,extras:o,customFields:JSON.stringify(n.customFields),payments:n.payments,packageCustomerService:n.packageCustomerService,aggregatedPrice:n.aggregatedPrice};r.coupon="admin"!==e.$root.settings.role&&"manager"!==e.$root.settings.role||!e.options.entities.coupons?n.coupon:e.options.entities.coupons.find(function(t){return t.id===e.coupon}),t.push(r)}),this.activeRecurring&&this.enabledRecurring&&"dates"in this.recurringData&&this.recurringData.dates.length&&this.recurringData.dates.forEach(function(t,n){n in e.selectedRecurringDates&&(e.selectedRecurringDates[n].bookingStart=_()(t.date).format("YYYY-MM-DD")+" "+t.time)});var n=[];if(this.savedAppointment&&"bookings"in this.savedAppointment){var o=t.map(function(e){return e.id});this.savedAppointment.bookings.forEach(function(e){-1===o.indexOf(e.id)&&n.push(e)})}return t.forEach(function(t){var n=e.getAllowedCustomFields(JSON.parse(t.customFields),"services",e.appointment.serviceId);t.customFields=n}),{serviceId:this.appointment.serviceId,providerId:this.appointment.providerId,locationId:this.appointment.locationId,bookings:t,removedBookings:n,bookingStart:this.getBookingStart(),utc:"UTC"===this.selectedTimeZone,timeZone:"UTC"===this.selectedTimeZone?null:this.selectedTimeZone,notifyParticipants:this.appointment.notifyParticipants?1:0,createPaymentLinks:this.appointment.createPaymentLinks?1:0,internalNotes:this.appointment.internalNotes,id:this.appointment.id,payment:this.payment,recurring:this.activeRecurring&&this.enabledRecurring?this.selectedRecurringDates:[],lessonSpace:this.appointment.lessonSpace?"https://www.thelessonspace.com/space/"+this.appointment.lessonSpace:null}},getBookingStart:function(){var e=this.getStringFromDate(this.appointment.selectedDate)+" "+this.appointment.selectedPeriod.time;return"UTC"===this.selectedTimeZone&&this.$root.settings.general.showClientTimeZone&&(e=_()(e,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm")),e},showDialogNewCustomer:function(){this.$emit("showDialogNewCustomer")},getPossibleCustomDurations:function(e){var t=this.getServiceById(this.appointment.serviceId),n=t.customPricing.durations.map(function(e){return e.duration});return n.push(t.duration),e.duration&&-1===n.indexOf(e.duration)&&n.push(e.duration),n.sort(function(e,t){return e-t}),n},handleBookingDurationChange:function(){var e=this.appointment.serviceId?this.getServiceById(this.appointment.serviceId):null;e&&e.customPricing&&(this.isDurationPricingEnabled(e.customPricing)&&this.setDuration(),this.appointment.bookings.forEach(function(t){t.duration&&0!==e.customPricing.durations.filter(function(e){return e.duration===t.duration}).length||(t.duration=e.duration)}))},handleCustomerChange:function(){var e=this;this.setServiceExtrasForCustomers(!1),this.handleBookingDurationChange(),this.setPrice(),this.setServiceCapacityForProvider(),this.setBookingCustomFields(),this.addCustomFieldsValidationRules(),this.mounted&&this.getTimeSlots(this.updateCalendar),this.showCoupon=!0;var t=this.cachedClonedBookings.map(function(e){return e.customer}).map(function(e){return e.id}),n=this.clonedBookings.map(function(e){return e.customer}).map(function(e){return e.id}),o=[];t.forEach(function(e){-1===n.indexOf(e)&&o.push(e)});for(var i=this.clonedBookings.length-1;i>=0;i--)-1!==o.indexOf(this.clonedBookings[i].customer.id)&&this.clonedBookings.splice(i,1);setTimeout(function(){e.clonedBookings.forEach(function(e){e.visible=!0}),e.cachedClonedBookings=JSON.parse(JSON.stringify(e.clonedBookings))},200),this.$emit("sortBookings",this.appointment.bookings)},handleCustomerRemove:function(e){this.appointment.duration;for(var t=this.clonedBookings.length-1;t>=0;t--)this.clonedBookings[t].customer.id===this.appointment.bookings[e].customer.id&&this.clonedBookings.splice(t,1);this.clearValidation(),this.appointment.bookings.splice(e,1),this.setPrice(),this.setSelectedExtrasCount(),this.setDuration(),this.mounted&&this.getTimeSlots(this.updateCalendar)},setServiceExtrasForCustomers:function(e){var t=this,n=null;t.appointment.serviceId&&(t.options.entities.services.forEach(function(e){e.id===t.appointment.serviceId&&(n=e.extras,t.appointment.extrasCount=n.length)}),t.appointment.bookings.forEach(function(t){(e||!t.id&&!t.added)&&(t.extras=JSON.parse(JSON.stringify(n)),t.extras.forEach(function(e){e.selected=!1,e.id=0,e.customerBookingId=0})),t.added=!0}),this.setSelectedExtrasCount(),this.setDuration())},handleSelected:function(){for(var e=this,t=document.querySelectorAll(".am-appointment-status-option.selected"),n=0;n<t.length;n++)t[n].addEventListener("click",function(t){e.handleGroupStatusChange()})},handleGroupStatusChange:function(){this.clearValidation();var e=this;this.appointment.bookings.forEach(function(t){t.status=e.appointment.status})},handleEmployeeChange:function(){var e=this;this.serviceSpinnerActive=!0,this.locationSpinnerActive=!0,this.categorySpinnerActive=!0,this.setServiceExtrasForCustomers(!1),this.setServiceCapacityForProvider(),this.setPrice(),!this.appointment.providerId&&this.enabledRecurring?this.enabledRecurring=!1:this.mounted&&this.getTimeSlots(this.updateCalendar),setTimeout(function(){e.serviceSpinnerActive=!1,e.locationSpinnerActive=!1,e.categorySpinnerActive=!1},300)},handleLocationChange:function(){var e=this;this.clearValidation(),this.serviceSpinnerActive=!0,this.employeeSpinnerActive=!0,this.categorySpinnerActive=!0,this.mounted&&this.getTimeSlots(this.updateCalendar),setTimeout(function(){e.serviceSpinnerActive=!1,e.employeeSpinnerActive=!1,e.categorySpinnerActive=!1},300)},handleServiceChange:function(){var e=this;this.locationSpinnerActive=!0,this.employeeSpinnerActive=!0,this.categorySpinnerActive=!0,this.setServiceCapacityForProvider(),this.handleBookingDurationChange(),this.setPrice(),this.setServiceExtrasForCustomers(!0),this.addCustomFieldsValidationRules(),this.serviceUpdated=!0,this.mounted&&this.getTimeSlots(this.updateCalendar),setTimeout(function(){e.locationSpinnerActive=!1,e.employeeSpinnerActive=!1,e.categorySpinnerActive=!1},300)},handleCategoryChange:function(){var e=this;this.clearValidation(),this.locationSpinnerActive=!0,this.employeeSpinnerActive=!0,this.serviceSpinnerActive=!0,setTimeout(function(){e.locationSpinnerActive=!1,e.employeeSpinnerActive=!1,e.serviceSpinnerActive=!1},300)},getProviderService:function(){var e=this,t=null;return this.appointment.providerId&&this.appointment.serviceId&&this.options.entities.employees.forEach(function(n){n.id===e.appointment.providerId&&n.serviceList.forEach(function(n){n.id===e.appointment.serviceId&&(t=n)})}),this.appointment.id&&this.appointment.serviceId&&!t?(this.isProviderService=!1,this.getServiceById(this.appointment.serviceId)):t},setServiceCapacityForProvider:function(){var e=this.getProviderService(),t=this.appointment.serviceId?this.getServiceById(this.appointment.serviceId):null;this.appointment.providerServiceMaxCapacity=e?e.maxCapacity:0,this.appointment.providerServiceMaxAdditonalCapacity=t&&null!==t.maxExtraPeople&&(!e||t.maxExtraPeople<e.maxCapacity)?t.maxExtraPeople+1:e?e.maxCapacity:0,this.appointment.providerServiceMinCapacity=e?e.minCapacity:0,this.setStatusMessage()},setStatusMessage:function(){this.statusMessage=this.getApprovedPersonsCount()<this.appointment.providerServiceMinCapacity?"(minimum "+this.appointment.providerServiceMinCapacity+")":""},handlePersonsChange:function(){this.handleBookingChange(!0)},handleBookingChange:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.appointment.duration;this.handleBookingDurationChange(),this.setPrice(),this.setStatusMessage(),(e||this.options.entities.resources.length>0||t!==this.appointment.duration)&&this.getTimeSlots(this.updateCalendar)},getApprovedPersonsCount:function(){var e=0;return this.appointment.bookings.forEach(function(t){"approved"===t.status&&(e+=t.persons)}),e},setPrice:function(){this.clearValidation();var e=this,t=!(!this.appointment||!this.savedAppointment)&&this.appointment.serviceId!==parseInt(this.savedAppointment.serviceId);e.$nextTick(function(){if(e.appointment.serviceId&&e.appointment.providerId&&e.appointment.bookings){var n=e.getProviderService(),o=e.getServiceById(e.appointment.serviceId),i=0,r=0,s=0,a=0;e.appointment.bookings.forEach(function(l){if(["approved","pending"].includes(l.status)){var c=e.savedAppointment&&l.id?e.savedAppointment.bookings.find(function(e){return e.id===l.id}):null,u=c&&c.persons!==l.persons&&e.isPersonPricingEnabled(o.customPricing),d=c&&(null===l.duration?n.duration:l.duration)!==c.duration&&e.isDurationPricingEnabled(o.customPricing),p=e.getBookingServicePrice(n,l.duration,l.persons,e.appointment.providerId,e.appointment.bookingStart),h={price:l.id?t||d||u?p:l.price:p,aggregatedPrice:l.id?l.aggregatedPrice:o.aggregatedPrice,id:l.id?null:e.appointment.serviceId};l.id&&(h.tax=l.tax);var f=e.getAppointmentPriceAmount(h,l.extras.filter(function(e){return e.selected}),l.persons,l.coupon,!1);l.extrasTotalPrice=f.total-f.totalBookable,l.bookingPrice=f.total,l.serviceTotalPrice=f.totalBookable,l.discountTotalPrice=f.discount,l.taxTotalPrice=f.tax,i+=l.serviceTotalPrice,r+=l.extrasTotalPrice,s+=l.discountTotalPrice,a+=l.taxTotalPrice}}),e.appointment.serviceTotalPrice=i,e.appointment.extrasTotalPrice=r,e.appointment.discountTotalPrice=s,e.appointment.taxTotalPrice=a}})},handleExtrasSelectionChange:function(e){void 0===e.quantity&&(e.quantity=1),this.setPrice(),this.setSelectedExtrasCount(),this.setDuration(),e.duration>0&&this.mounted&&this.getTimeSlots(this.updateCalendar)},updateCalendar:function(e,t){var n=this,o=this;if(this.appointment.selectedDate){var i=this.getStringFromDate(this.appointment.selectedDate);i in this.appointment.calendarTimeSlots&&!(i in e)&&this.calendarNavigating&&(e[i]=this.appointment.calendarTimeSlots[i])}this.appointment.calendarTimeSlots=e,this.appointment.occupiedTimeSlots=t;var r=[];this.useSortedDateStrings(Object.keys(this.appointment.calendarTimeSlots)).forEach(function(e){r.push(o.getDate(e))});var s=!this.appointment.selectedDate&&!this.availableDates.length&&r.length&&!this.calendarNavigating;this.availableDates=r,s&&(this.appointment.selectedDate=this.availableDates[0],this.$nextTick(function(){n.appointment.selectedDate=null})),this.disabledWeekdays={weekdays:[]},this.disabledWeekdays=0===this.availableDates.length?{weekdays:[1,2,3,4,5,6,7]}:null,this.dateChange()},getTimeSlots:function(e){var t=this,n=this.appointment,o=[],i=0;if(n.serviceId){this.loadingTimeSlots=!0,this.appointment.bookings.forEach(function(e){i+="approved"===e.status||"pending"===e.status?e.persons:0,e.extras.forEach(function(e){e.selected&&o.push({id:e.extraId,quantity:e.quantity})})}),this.slotsIndexCounter++;var r=this.slotsIndexCounter,s=n.id;this.savedAppointment&&this.packageCustomer&&this.totalBookings>1&&(this.savedAppointment.serviceId!==n.serviceId||this.savedAppointment.providerId!==n.providerId||this.savedAppointment.locationId!==n.locationId)&&(s=null),this.$http.get(this.$root.getAjaxUrl+"/slots",{params:this.getAppropriateUrlParams({serviceId:n.serviceId,serviceDuration:this.getMaxBookingDuration(),locationId:n.locationId,providerIds:n.providerId?[n.providerId]:[],extras:JSON.stringify(o),excludeAppointmentId:s,group:"customer"===this.$root.settings.role||this.packageCustomer||!this.appointment.id?1:0,timeZone:this.selectedTimeZone,monthsLoad:this.monthsLoad,startDateTime:this.startDateTime?this.startDateTime:this.appointment.selectedDate&&this.appointment.selectedPeriod&&this.appointment.selectedPeriod.time?_()(this.getBookingStart(),"YYYY-MM-DD HH:mm").subtract("1","days").format("YYYY-MM-DD HH:mm"):null,endDateTime:this.endDateTime,page:"appointments",persons:this.packageCustomer||!i?1:i,structured:!0})}).then(function(o){if(r<t.slotsIndexCounter)t.fetchedSlots=!0;else{t.requiredDuration=o.data.data.duration,t.existingAppointmentAcknowledged=!1,t.fullAppointmentAcknowledged=!1,t.intersectedAppointmentAcknowledged=!1;var i="UTC"===t.selectedTimeZone&&(t.$root.settings.general.showClientTimeZone||"provider"===t.$root.settings.role&&t.isCabinet);t.appointment.bookedTimeSlots={};var s=i?t.getConvertedTimeSlots(o.data.data.slots):o.data.data.slots,a=i?t.getConvertedTimeSlots(o.data.data.occupied):o.data.data.occupied,l={};Object.keys(s).forEach(function(e){l[e]={},Object.keys(s[e]).forEach(function(t){l[e][t]=[],s[e][t].forEach(function(n){l[e][t].push([n.e,n.l].concat("c"in n?[n.c,n.s,n.d]:[]))})})});var c={};Object.keys(a).forEach(function(e){c[e]={},Object.keys(a[e]).forEach(function(t){c[e][t]=[],a[e][t].forEach(function(n){c[e][t].push([n.e,n.l].concat("c"in n?[n.c,n.s,n.d]:[]))})})}),t.pricedCalendarTimeSlots=s,t.pricedOccupiedTimeSlots=a,n.providerId&&(t.setBookedTimeSlots(l,l,!1),t.setBookedTimeSlots(c,l,!0)),e(l,c),t.dialogLoading=!1,t.loadingTimeSlots=!1}}).catch(function(e){console.log(e.message),t.loadingTimeSlots=!1})}},setPeriodsPricing:function(e){var t=this,n={};this.options.entities.employees.forEach(function(t){var o=t.serviceList.find(function(t){return t.id===parseInt(e)});n[t.id]=o.price});var o={};Object.keys(this.pricedCalendarTimeSlots).forEach(function(e){o[e]={slots:{}},Object.keys(t.pricedCalendarTimeSlots[e]).forEach(function(i){var r=!1,s=!1,a=!1,l=null,c=null;t.pricedCalendarTimeSlots[e][i].forEach(function(e){var t=null===e.p?n[e.e]:e.p;t===n[e.e]?a=!0:t<n[e.e]?s=!0:t>n[e.e]&&(r=!0),(null===l||t<l)&&(l=t),(null===c||t>c)&&(c=t)}),o[e].slots[i]={type:!s||r||a?!r||s||a?"mid":"high":"low",price:l===c?l:null}}),o[e].price=0===Object.values(o[e].slots).filter(function(e){return null===e.price}).length;var i=Object.values(o[e].slots).map(function(e){return e.type});i.filter(function(e){return"low"===e}).length===i.length?o[e].type="low":i.filter(function(e){return"high"===e}).length===i.length?o[e].type="high":o[e].type="mid"}),this.pricedSlots=o;var i=[{highlight:{key:"low",backgroundColor:"rgba(196, 255, 201, 1)"},dates:[]},{highlight:{key:"mid",backgroundColor:"rgba(196, 235, 255, 1)"},dates:[]},{highlight:{key:"high",backgroundColor:"rgba(255, 196, 196, 1)"},dates:[]}];Object.keys(this.pricedSlots).forEach(function(e){switch(t.pricedSlots[e].type){case"low":i[0].dates.push(_()(e).toDate());break;case"mid":i[1].dates.push(_()(e).toDate());break;case"high":i[2].dates.push(_()(e).toDate())}}),this.attributes=i},dateSelected:function(){this.calendarNavigating=!1,this.existingAppointmentAcknowledged=!1,this.fullAppointmentAcknowledged=!1,this.intersectedAppointmentAcknowledged=!1,this.saveConfirmMessage="",this.dateChange()},dateChange:function(){var e=this;this.clearValidation();var t=this,n=[],o=null,i=!1;this.appointment.selectedDate&&this.appointment.calendarTimeSlots&&(o=this.appointment.calendarTimeSlots[this.getStringFromDate(this.appointment.selectedDate)])?(Object.keys(o).forEach(function(e){t.appointment.selectedPeriod&&t.appointment.selectedPeriod.hasOwnProperty("time")&&t.appointment.selectedPeriod.time===e&&(i=!0),"24:00"!==e&&n.push({time:e,employees:o[e]})}),i||(this.appointment.selectedPeriod="")):this.calendarNavigating||(this.appointment.selectedDate=null,this.appointment.selectedPeriod=""),this.appointment.dateTimeSlots=n,this.calendarNavigating=!1,this.appointment.id||this.$nextTick(function(){e.refreshRecurringData()})},openRecurringAppointment:function(e){this.$emit("openRecurringAppointment",e)},handleTabClick:function(e){"recurring"===e.name&&(this.recurringDatesChanged=!1)},isPriceChanged:function(){var e=this,t=!1,n=!(!this.$root.settings.payments||!this.$root.settings.payments.paymentLinks)&&this.$root.settings.payments.paymentLinks.enabled,o=this.appointment.serviceId?this.getServiceById(this.appointment.serviceId):null,i=o&&o.settings?JSON.parse(o.settings):null;if(i&&i.payments&&i.payments.paymentLinks&&(n=i.payments.paymentLinks.enabled),n&&0!==this.appointment.id&&this.appointment.serviceId){var r=function(n){var i=e.clonedBookings.find(function(e){return e.id===n.id});if(i&&0!==i.id&&e.getBookingPrice(i,!1,i.bookingPrice?i.bookingPrice:i.price,i.aggregatedPrice,o.id)<e.getBookingPrice(n,!1,n.bookingPrice?n.bookingPrice:n.price,n.aggregatedPrice,o.id))return t=!0,e.saveConfirmMessage=e.$root.labels.price_changed_message,"break"},s=!0,a=!1,l=void 0;try{for(var c,u=this.appointment.bookings[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){if("break"===r(c.value))break}}catch(e){a=!0,l=e}finally{try{!s&&u.return&&u.return()}finally{if(a)throw l}}}return t},isExistingAppointment:function(){var e=this.appointment.selectedDate?this.getStringFromDate(this.appointment.selectedDate):null;return this.appointment.serviceId&&this.appointment.providerId&&this.appointment.selectedPeriod&&this.appointment.selectedPeriod.time&&(!this.savedAppointment||this.savedAppointment.providerId!==this.appointment.providerId||this.savedAppointment.bookingStart!==e+" "+this.appointment.selectedPeriod.time+":00")&&e&&e in this.appointment.bookedTimeSlots&&this.appointment.selectedPeriod.time in this.appointment.bookedTimeSlots[e].onTimeFree},isFullAppointment:function(){var e=this.appointment.selectedDate?this.getStringFromDate(this.appointment.selectedDate):null;return this.appointment.serviceId&&this.appointment.providerId&&this.appointment.selectedPeriod&&this.appointment.selectedPeriod.time&&(!this.savedAppointment||this.savedAppointment.providerId!==this.appointment.providerId||this.savedAppointment.bookingStart!==e+" "+this.appointment.selectedPeriod.time+":00")&&e&&e in this.appointment.bookedTimeSlots&&(this.appointment.selectedPeriod.time in this.appointment.bookedTimeSlots[e].onTimeFull||this.appointment.selectedPeriod.time in this.appointment.bookedTimeSlots[e].duringTime)},isIntersectedAppointment:function(){var e=this,t=this.appointment.selectedDate?this.getStringFromDate(this.appointment.selectedDate):null,n=!1;if(this.appointment.serviceId&&this.appointment.providerId&&this.appointment.selectedPeriod&&this.appointment.selectedPeriod.time&&(!this.savedAppointment||this.savedAppointment.providerId!==this.appointment.providerId||this.savedAppointment.bookingStart!==t+" "+this.appointment.selectedPeriod.time+":00")&&t in this.appointment.bookedTimeSlots){var o=this.getStringTimeInSeconds(this.appointment.selectedPeriod.time)/60;if(o+this.requiredDuration<=1440){var i=o+this.requiredDuration,r=0;["onTimeFree","onTimeFull"].forEach(function(s){Object.keys(e.appointment.bookedTimeSlots[t][s]).forEach(function(t){(r=e.getStringTimeInSeconds(t)/60)>o&&r<i&&(n=!0)})})}else{var s=_()(t+" "+this.appointment.selectedPeriod.time).add(1,"days").format("YYYY-MM-DD");if(s in this.appointment.bookedTimeSlots){var a=o+this.requiredDuration-1440;["onTimeFree","onTimeFull"].forEach(function(t){Object.keys(e.appointment.bookedTimeSlots[s][t]).forEach(function(t){e.getStringTimeInSeconds(t)/60<a&&(n=!0)})})}}}return n},getSlotLabel:function(e){var t="";if(this.appointment.providerId&&this.appointment.selectedDate){var n=this.getStringFromDate(this.appointment.selectedDate);n in this.appointment.bookedTimeSlots&&(e.time in this.appointment.bookedTimeSlots[n].onTimeFree||e.time in this.appointment.bookedTimeSlots[n].onTimeFull||e.time in this.appointment.bookedTimeSlots[n].duringTime)&&(t=' <span style="float: right; font-style: italic;">'+this.$root.labels.booked+"</span>")}return this.getFrontedFormattedTime(e.time+":00")+t},setBookedTimeSlots:function(e,t,n){var o=this,i=n?"onTimeFull":"onTimeFree",r=!0,s=0,a=0,l=0;Object.keys(e).forEach(function(n){Object.keys(e[n]).forEach(function(c){e[n][c].filter(function(e){return e.length>2}).forEach(function(e){if(s=o.getStringTimeInSeconds(c)/60,r=s+e[4]<=1440,a=r?s+e[4]:s+e[4]-1440,n in o.appointment.bookedTimeSlots||(o.appointment.bookedTimeSlots[n]={onTimeFull:{},onTimeFree:{},duringTime:{}}),c in o.appointment.bookedTimeSlots[n][i]||(o.appointment.bookedTimeSlots[n][i][c]=!0),n in t&&Object.keys(t[n]).forEach(function(e){(l=o.getStringTimeInSeconds(e)/60)>s&&l<(r?a:1440)&&!(e in o.appointment.bookedTimeSlots[n].duringTime)&&(o.appointment.bookedTimeSlots[n].duringTime[e]=!0)}),!r){var u=_()(n+" "+c).add(1,"days").format("YYYY-MM-DD");u in o.appointment.bookedTimeSlots||(o.appointment.bookedTimeSlots[u]={onTimeFull:{},onTimeFree:{},duringTime:{}}),u in t&&Object.keys(t[u]).forEach(function(e){(l=o.getStringTimeInSeconds(e)/60)<a&&!(e in o.appointment.bookedTimeSlots[u].duringTime)&&(o.appointment.bookedTimeSlots[u].duringTime[e]=!0)})}})})})},closeSaveConfirmation:function(){this.existingAppointmentAcknowledged=!1,this.fullAppointmentAcknowledged=!1,this.intersectedAppointmentAcknowledged=!1,this.saveConfirmMessage=""},haveSaveConfirmation:function(){if(this.isExistingAppointment()&&!this.existingAppointmentAcknowledged)return this.existingAppointmentAcknowledged=!0,this.fullAppointmentAcknowledged=!0,this.intersectedAppointmentAcknowledged=!0,this.saveConfirmMessage=this.$root.labels.group_booking_message,!0;if(this.isFullAppointment()&&!this.fullAppointmentAcknowledged)return this.existingAppointmentAcknowledged=!0,this.fullAppointmentAcknowledged=!0,this.intersectedAppointmentAcknowledged=!0,this.saveConfirmMessage=this.$root.labels.over_booking_message,!0;if(this.isIntersectedAppointment()&&!this.intersectedAppointmentAcknowledged)return this.existingAppointmentAcknowledged=!0,this.fullAppointmentAcknowledged=!0,this.intersectedAppointmentAcknowledged=!0,this.saveConfirmMessage=this.$root.labels.over_booking_message,!0;var e=this.activeRecurring&&this.enabledRecurring&&this.recurringDatesChanged;return e&&(this.recurringDatesChanged=!1,this.newAppointmentTabs="recurring",this.saveConfirmMessage=this.$root.labels.recurring_changed_message),e},getSelectedDistinctExtras:function(){var e=[],t=[];return this.appointment.bookings.forEach(function(n){n.extras.filter(function(e){return e.selected}).forEach(function(n){-1===t.indexOf(n.id)&&(e.push(n),t.push(n.id))})}),e},refreshRecurringData:function(){this.activeRecurring&&this.enabledRecurring&&this.appointment.selectedDate&&this.appointment.selectedPeriod?(this.serviceUpdated&&(this.serviceUpdated=!1,this.setRecurringData()),this.activeRecurring=!1,this.recurringData.startDate=_()(this.appointment.selectedDate).format("YYYY-MM-DD HH:mm:ss"),this.recurringData.startTime=this.appointment.selectedPeriod.time,this.initialRecurringData.calendarDates=this.getAvailableRecurringDates(this.appointment.calendarTimeSlots),this.activeRecurring=!0,null!==this.recurringData.setupCallback&&this.recurringData.setupCallback("count")):this.appointment.selectedDate||(this.recurringData=this.getDefaultRecurringData(),this.initialRecurringData=null,this.selectedRecurringDates=[])},recurringDatesDefined:function(e){var t=[];if(e.forEach(function(e){t.push({bookingStart:_()(e.date).format("YYYY-MM-DD")+" "+e.time,providerId:e.providerId,locationId:e.locationId})}),"recurring"!==this.newAppointmentTabs)if(this.recurringDatesChanged=!1,t.length!==this.selectedRecurringDates.length)this.recurringDatesChanged=!0;else for(var n=0;n<t.length;n++)if(t[n].bookingStart!==this.selectedRecurringDates[n].bookingStart){this.recurringDatesChanged=!0;break}this.selectedRecurringDates=t},setRecurringData:function(){if(this.appointment.selectedDate&&this.appointment.selectedPeriod){this.recurringData.dates=[],this.recurringData.startDate=_()(this.appointment.selectedDate).format("YYYY-MM-DD HH:mm:ss"),this.recurringData.startTime=this.appointment.selectedPeriod.time;var e=this.getServiceById(this.appointment.serviceId);this.initialRecurringData=this.getDefaultRecurringSettings(this.appointment.selectedDate,e.recurringCycle,this.appointment.calendarTimeSlots)}},setSelectedExtrasCount:function(){var e=0;this.appointment.bookings.forEach(function(t){t.extras.forEach(function(t){t.selected&&e++})}),this.appointment.extrasSelectedCount=e},getMaxBookingDuration:function(){var e=0;return this.appointment.bookings.forEach(function(t){("pending"===t.status||"approved"===t.status)&&t.duration>e&&(e=t.duration)}),e},setDuration:function(){if(this.appointment.serviceId){var e=this.getMaxBookingDuration(),t=0!==e?e:this.getServiceById(this.appointment.serviceId).duration;this.appointment.bookings.forEach(function(e){var n=0;e.extras.forEach(function(e){e.selected&&e.duration>n&&(n=e.duration)}),t+=n}),this.appointment.duration=t}},clearValidation:function(){void 0!==this.$refs.appointment&&this.$refs.appointment.clearValidate()},errorCallback:function(e){var t=this;setTimeout(function(){"timeSlotUnavailable"in e&&!0===e.timeSlotUnavailable&&(t.notify(t.$root.labels.error,t.$root.labels.time_slot_unavailable,"error"),t.getTimeSlots(t.updateCalendar)),"packageBookingUnavailable"in e&&!0===e.packageBookingUnavailable&&(t.notify(t.$root.labels.error,t.$root.labels.package_booking_unavailable,"error"),t.getTimeSlots(t.updateCalendar)),"customerAlreadyBooked"in e&&!0===e.customerAlreadyBooked&&t.notify(t.$root.labels.error,t.$root.labels.customer_already_booked,"error")},200)},addCustomFieldsValidationRules:function(){if(this.appointment.serviceId&&this.appointment.bookings.length>0){this.rules=this.rulesInit;for(var e=0;e<this.appointment.bookings.length;e++)for(var t=0;t<this.options.entities.customFields.length;t++)this.isCustomFieldVisible(this.options.entities.customFields[t],"appointment",this.appointment.serviceId)&&(void 0===this.rules.bookings[e]&&this.$set(this.rules.bookings,e,{type:"array"}),void 0===this.rules.bookings[e].customFields&&this.$set(this.rules.bookings[e],"customFields",{}),this.rules.bookings[e].customFields[this.options.entities.customFields[t].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.services.map(function(e){return e.id})}));return this.options.entities.customFields.length>0&&this.appointment.bookings.length>0&&this.appointment.serviceId&&(e.includes(this.appointment.serviceId)||this.options.entities.customFields.filter(function(e){return e.allServices}).length>0)},getDefaultRecurringData:function(){return{dates:[],startDate:null,startTime:null,pageRecurringDates:[],pagination:{show:this.$root.settings.general.itemsPerPage,page:1,count:0},recurringString:"",datesCallback:null,setupCallback:null}},enableRecurring:function(){var e=this;this.enabledRecurring&&(this.recurringDatesChanged=!1,this.monthsLoad=0,this.startDateTime=null,this.endDateTime=null,this.getTimeSlots(function(t,n){e.initialRecurringData=null,e.recurringData={dates:[],startDate:null,startTime:null,pageRecurringDates:[],pagination:{show:e.$root.settings.general.itemsPerPage,page:1,count:0},recurringString:"",datesCallback:null,setupCallback:null},e.updateCalendar(t,n),e.setRecurringData(),e.activeRecurring=!0,e.newAppointmentTabs="recurring"}))},validationTabFailCallback:function(){this.newAppointmentTabs="customFields"}},computed:{selectedCustomersMessage:function(){return""!==this.statusMessage?this.$root.labels.selected_customers+" "+this.statusMessage+":":this.$root.labels.selected_customers+":"},customersMaxLimit:function(){var e=this.appointment.bookings.filter(function(e){return"canceled"===e.status||"rejected"===e.status}).length;return this.appointment.serviceId&&this.appointment.providerId&&this.getProviderService()?this.getProviderService().maxCapacity+e:this.appointment.serviceId&&!this.appointment.providerId?this.getServiceById(this.appointment.serviceId).maxCapacity+e:0},showCustomer:function(){return"customer"!==this.$root.settings.role}},watch:{customerCreatedCount:function(){var e=this,t=this.clonedBookings.map(function(e){return e.customer.id});this.bookings.forEach(function(n){-1===t.indexOf(n.customer.id)&&(n.visible=!0,e.clonedBookings.push(n))}),this.clonedBookings.sort(function(e,t){return(e.customer.firstName+" "+e.customer.lastName).localeCompare(t.customer.firstName+" "+t.customer.lastName)}),this.addCustomFieldsValidationRules()},appointment:function(){this.instantiateDialog(),"provider"===this.$root.settings.role&&this.isCabinet&&null!==this.appointment&&null!==this.appointment.providerId&&(this.appointment.providerId=this.options.entities.employees[0].id)}},components:{DialogAppointmentPayment:h.a,DialogCustomFields:m.a,RecurringSetup:D.a,RecurringDates:k.a,DialogActions:d.a,LicenceBlockHeader:I.a}}},819:function(e,t,n){var o=n(90)(n(820),n(821),!1,null,null,null);e.exports=o.exports},820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(336),i=n(657),r=n(684),s=n(659),a=n(673);t.default={mixins:[o.a,i.a,r.a,s.a,a.a],props:{appointment:{default:function(){},type:Object},isCabinet:!1,options:null,recurring:{default:function(){return[]},type:Array}},data:function(){return{paymentStatuses:[{value:"paid",label:this.$root.labels.paid},{value:"pending",label:this.$root.labels.pending},{value:"partiallyPaid",label:this.$root.labels.partially_paid}]}},methods:{showDialogEditPayment:function(e,t){e.customerId=t.customerId;var n=t.packageCustomerService?this.getPackageById(t.packageCustomerService.packageCustomer.packageId):null;this.$emit("editPayment",{payment:e,appointment:this.appointment,booking:t,package:t.packageCustomerService?n||{name:"Package"}:null,recurring:this.recurring})},getPaymentStatus:function(e){var t="";return this.paymentStatuses.forEach(function(n){n.value===e&&(t=n.label)}),t},getPackageDiscount:function(e){var t=e.packageCustomerService.packageCustomer.price,n=e.coupon;return t/100*(n?n.discount:0)+(n?n.deduction:0)},getPackageDue:function(e){var t=this.getPackageTotal(e)-(e.payments.length>0?e.payments.filter(function(e){return"refunded"!==e.status}).reduce(function(e,t){return e+t.amount},0):0);return t>=0?t:0},getPackageTotal:function(e){var t=e.packageCustomerService.packageCustomer.price+this.getPackageTax(e)-this.getPackageDiscount(e);return t>=0?t:0},getPackageTax:function(e){return e.packageCustomerService.packageCustomer.payments.length>0&&e.packageCustomerService.packageCustomer.payments.filter(function(e){return e.wcItemTaxValue}).length>0?e.packageCustomerService.packageCustomer.payments.reduce(function(e,t){return e+t.wcItemTaxValue},0):0},getBookingSubtotal:function(e){return e.serviceTotalPrice+e.extrasTotalPrice},getBookingDiscount:function(e){return e.discountTotalPrice+(e.payments.length>0&&e.payments.filter(function(e){return e.wcItemCouponValue}).length>0?e.payments.reduce(function(e,t){return e+t.wcItemCouponValue},0):0)},getBookingDue:function(e){var t=this.getBookingTotal(e)-(e.payments.length>0?e.payments.filter(function(e){return"refunded"!==e.status&&"pending"!==e.status}).reduce(function(e,t){return e+t.amount},0):0);return t>=0?t:0},getRefundedAmount:function(e){return e.payments.filter(function(e){return"refunded"===e.status}).reduce(function(e,t){return e+t.amount},0)},getBookingTotal:function(e){var t=this.getBookingSubtotal(e)+e.taxTotalPrice+this.getBookingTax(e)-this.getBookingDiscount(e);return t>=0?t:0},getBookingTax:function(e){return e.payments.length>0&&e.payments.filter(function(e){return e.wcItemTaxValue}).length>0?e.payments.reduce(function(e,t){return e+t.wcItemTaxValue},0):0}}}},821: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"},[e.appointment.bookings.length>0?n("div",e._l(e.appointment.bookings,function(t){return t.id?n("div",{staticClass:"am-customer-extras"},[n("el-row",{staticClass:"am-customer-extras-data"},[n("el-col",[n("h3",{class:e.getNoShowClass(t.customerId)},[e._v(e._s(t.customer.firstName)+" "+e._s(t.customer.lastName))]),e._v(" "),n("span",[e._v(e._s(t.customer.email))])])],1),e._v(" "),n("div",{staticClass:"am-appointment-payments-dialog"},[n("el-row",{staticClass:"am-customer-extras-payment",attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.payment))])]),e._v(" "),n("el-col",{attrs:{span:12}},[n("span",{staticClass:"am-link",on:{click:function(n){return e.showDialogEditPayment(t.payments[0],t)}}},[e._v("\n "+e._s(e.$root.labels.edit_payment_details)+"\n ")])]),e._v(" "),n("el-col",{attrs:{span:12}},[n("span",[e._v(e._s(e.$root.labels.date)+":")])]),e._v(" "),n("el-col",{attrs:{span:12}},e._l(t.payments,function(t){return n("el-row",{key:t.id},[n("span",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFrontedFormattedDate(t.dateTime)))])])}),1),e._v(" "),n("el-col",{attrs:{span:12}},[n("span",[e._v(e._s(e.$root.labels.payment_method)+":")])]),e._v(" "),n("el-col",{attrs:{span:12}},e._l(t.payments,function(t,o){return n("el-row",{key:t.id,attrs:{align:"center"}},[n("span",{key:t.id,staticClass:"am-semi-strong"},[n("img",{staticClass:"svg-amelia",style:{width:e.getPaymentIconWidth(t.gateway),verticalAlign:"middle"},attrs:{src:e.$root.getUrl+"public/img/payments/"+e.getPaymentIconName(t)}}),e._v(" "),e.longNamePayments(t.gateway)?e._e():n("span",[e._v(e._s(e.getPaymentGatewayNiceName(t)))])])])}),1),e._v(" "),t.payments.find(function(e){return e.wcOrderId})&&!e.isCabinet?n("el-col",{attrs:{span:12}},[n("span",[e._v(e._s(e.$root.labels.wc_order)+":")])]):e._e(),e._v(" "),t.payments.find(function(e){return e.wcOrderId})&&!e.isCabinet?n("el-col",{attrs:{span:12}},e._l(t.payments,function(t){return n("el-row",{key:t.id},[n("a",{attrs:{href:t.wcOrderUrl,target:"_blank"}},[e._v("\n #"+e._s(t.wcOrderId)+"\n ")])])}),1):e._e(),e._v(" "),n("el-col",{attrs:{span:12}},[n("span",[e._v(e._s(e.$root.labels.status)+":")])]),e._v(" "),n("el-col",{attrs:{span:12}},e._l(t.payments,function(t){return n("el-row",{key:t.id},[n("span",{staticClass:"am-semi-strong am-payment-status"},[n("span",{class:"am-payment-status-symbol am-payment-status-symbol-"+t.status}),e._v("\n "+e._s(e.getPaymentStatusNiceName(t.status))+"\n ")])])}),1),e._v(" "),t.packageCustomerService?n("el-col",{attrs:{span:12}},[n("span",[e._v(e._s(e.$root.labels.package)+":")])]):e._e(),e._v(" "),t.packageCustomerService?n("el-col",{staticClass:"am-payment-package-name",attrs:{span:12}},[n("img",{attrs:{src:e.$root.getUrl+"public/img/am-package.svg"}}),e._v(" "),n("span",{staticClass:"am-semi-strong"},[e._v("\n "+e._s((e.pack=e.getPackageById(t.packageCustomerService.packageCustomer.packageId))?e.pack.name:"Package")+"\n ")])]):e._e()],1),e._v(" "),t.packageCustomerService?n("el-row",{staticClass:"subtotal",attrs:{gutter:10}},[n("div",{staticClass:"am-payment-package-deal"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/am-package-black.svg"}}),e._v(" "),n("span",[e._v(e._s(e.$root.labels.package_deal))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.package_price)+":\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.packageCustomerService.packageCustomer.price))+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.discount_amount)+":\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(e.getPackageDiscount(t)))+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[1===t.payments.length?n("span",[e._v(e._s(e.$root.labels.paid))]):e._e(),e._v(" "),t.payments.length>1?n("span",[e._v(e._s(e.$root.labels.paid_deposit))]):e._e()]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("el-row",{staticStyle:{"margin-bottom":"0"}},[1===t.payments.length?n("span",[e._v("\n "+e._s(e.getFormattedPrice(t.payments.filter(function(e){return"pending"!==e.status&&"refunded"!==e.status}).reduce(function(e,t){return e+t.amount},0)))+"\n ")]):e._e(),e._v(" "),t.payments.length>1?n("span",[e._v("\n "+e._s(e.getFormattedPrice(t.payments.filter(function(e){return"partiallyPaid"===e.status}).reduce(function(e,t){return e+t.amount},0)))+"\n ")]):e._e()])],1),e._v(" "),t.packageCustomerService.packageCustomer.payments.length>1?n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.paid_remaining_amount))])]):e._e(),e._v(" "),t.packageCustomerService.packageCustomer.payments.length>1?n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("el-row",{staticStyle:{"margin-bottom":"0"}},[n("span",[e._v("\n "+e._s(e.getFormattedPrice(t.packageCustomerService.packageCustomer.payments.filter(function(e){return"paid"===e.status}).reduce(function(e,t){return e+t.amount},0)))+"\n ")])])],1):e._e(),e._v(" "),e.getRefundedAmount(t)>0?n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.refunded))])]):e._e(),e._v(" "),e.getRefundedAmount(t)>0?n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(e.getRefundedAmount(t))))])]):e._e(),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.due)+":")])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(e.getPackageDue(t))))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.total)+":")])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",{staticClass:"am-strong"},[e._v(e._s(e.getFormattedPrice(e.getPackageTotal(t))))])])],1):n("el-row",{staticClass:"subtotal",attrs:{gutter:10}},[n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.price)+":\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.serviceTotalPrice))+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.extras)+":\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.extrasTotalPrice))+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.subtotal)+":")])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(e.getBookingSubtotal(t))))])]),e._v(" "),e.getBookingDiscount(t)?n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.discount_amount)+":\n ")]):e._e(),e._v(" "),e.getBookingDiscount(t)?n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice((e.discount=e.getBookingDiscount(t))>(e.subtotal=e.getBookingSubtotal(t))?e.subtotal:e.discount))+"\n ")]):e._e(),e._v(" "),t.taxTotalPrice?n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.tax)+":\n ")]):e._e(),e._v(" "),t.taxTotalPrice?n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.taxTotalPrice))+"\n ")]):e._e(),e._v(" "),e.getBookingTax(t)?n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.tax)+" (Woo):\n ")]):e._e(),e._v(" "),e.getBookingTax(t)?n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(e.getBookingTax(t)))+"\n ")]):e._e(),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[1===t.payments.length?n("span",[e._v(e._s(e.$root.labels.paid)+":")]):e._e(),e._v(" "),t.payments.length>1?n("span",[e._v(e._s(e.$root.labels.paid_deposit)+":")]):e._e()]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[1===t.payments.length?n("span",[e._v(e._s(e.getFormattedPrice(t.payments.filter(function(e){return"pending"!==e.status&&"refunded"!==e.status}).reduce(function(e,t){return e+t.amount},0))))]):e._e(),e._v(" "),t.payments.length>1?n("span",[e._v(e._s(e.getFormattedPrice(t.payments.filter(function(e){return"partiallyPaid"===e.status}).reduce(function(e,t){return e+t.amount},0))))]):e._e()]),e._v(" "),t.payments.length>1?n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.paid_remaining_amount)+":")])]):e._e(),e._v(" "),t.payments.length>1?n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(t.payments.filter(function(e){return"paid"===e.status}).reduce(function(e,t){return e+t.amount},0))))])]):e._e(),e._v(" "),e.getRefundedAmount(t)>0?n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.refunded)+":")])]):e._e(),e._v(" "),e.getRefundedAmount(t)>0?n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(e.getRefundedAmount(t))))])]):e._e(),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",[e._v(e._s(e.$root.labels.due)+":")])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",[e._v(e._s(e.getFormattedPrice(e.getBookingDue(t))))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:14}},[n("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.total)+":")])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[n("span",{staticClass:"am-strong"},[e._v(e._s(e.getFormattedPrice(e.getBookingTotal(t))))])])],1)],1)],1):e._e()}),0):n("div",[n("p",{attrs:{align:"center"}},[e._v(e._s(e.$root.labels.no_selected_customers))])])])},staticRenderFns:[]}},822:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"am-dialog-appointment"},[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(" "),null===e.appointment||e.dialogLoading?e._e():n("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.appointment.id}},[e.showHeader?n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:18}},[0!==e.appointment.id?n("h2",[e._v(e._s(e.$root.labels.edit_appointment))]):n("h2",[e._v(e._s(e.$root.labels.new_appointment))])]),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&&null!==e.appointment?n("el-form",{ref:"appointment",attrs:{model:e.appointment,rules:e.rules,"label-position":"top"}},[n("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.newAppointmentTabs,callback:function(t){e.newAppointmentTabs=t},expression:"newAppointmentTabs"}},[n("el-tab-pane",{attrs:{label:e.$root.labels.schedule,name:"schedule"}},[e.showCustomer?n("el-form-item",{staticClass:"am-appointment-customer",attrs:{label:e.$root.labels.customers_singular_plural+":",prop:"bookings"}},[n("el-select",{staticClass:"no-tags",attrs:{"value-key":"customer.id",remote:"",multiple:"",filterable:"","collapse-tags":"",loading:e.loadingCustomers,"multiple-limit":e.customersMaxLimit,placeholder:e.$root.labels.select_customers,"popper-class":"am-dropdown-cabinet","remote-method":e.searchExistingCustomers,disabled:null!==e.packageCustomer},on:{change:e.handleCustomerChange},model:{value:e.appointment.bookings,callback:function(t){e.$set(e.appointment,"bookings",t)},expression:"appointment.bookings"}},[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.clonedBookings,function(t,o){return t.visible?n("el-option",{key:o,staticClass:"am-has-option-meta",attrs:{label:null!==(e.user=e.getCustomerInfo(t))?e.user.firstName.trim()||e.user.lastName.trim()?e.user.firstName+" "+e.user.lastName:e.$root.labels.customer+" "+e.user.id:"",value:t}},[n("span",{class:e.getOptionClass(t,e.customersNoShowCount,t.customer.status)},[e._v("\n "+e._s(t.customer.firstName.trim()||t.customer.lastName.trim()?"":e.$root.labels.customer+" "+t.customer.id)+" "+e._s(t.customer.firstName+" "+t.customer.lastName)+"\n ")]),e._v(" "),t.customer.email?n("span",{staticClass:"am-drop-item-meta"},[e._v("\n "+e._s(t.customer.email)+"\n ")]):e._e()]):e._e()}),e._v(" "),e._l([{customer:{id:0,firstName:"",lastName:"",email:"",info:JSON.stringify({firstName:"",lastName:"",email:"",phone:""})}}],function(t){return 0===e.clonedBookings.length?n("el-option",{key:t.customer.id,staticClass:"am-has-option-meta",style:{display:"none"},attrs:{label:null!==(e.user=e.getCustomerInfo(t))?e.user.firstName.trim()||e.user.lastName.trim()?e.user.firstName+" "+e.user.lastName:e.$root.labels.customer+" "+e.user.id:"",value:t}}):e._e()})],2)])],1):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.appointment.bookings.length>0&&"customer"!==this.$root.settings.role?n("div",{staticClass:"am-selected-dropdown-items"},[n("el-form-item",{attrs:{label:e.selectedCustomersMessage}}),e._v(" "),e._l(e.appointment.bookings,function(t,o){return n("div",{key:o,staticClass:"am-selected-dropdown-item"},[n("el-row",{staticClass:"am-selected-dropdown-item__inner",attrs:{align:"middle",gutter:4,justify:"left"}},[n("el-col",{attrs:{sm:10}},[n("h3",{class:e.isCabinet?"":e.getNoShowClass(e.packageServices&&!e.appointment.id?e.getCustomerInfo(t).id:t.customerId,e.customersNoShowCount,null,t.customer.status)},[e._v("\n "+e._s(null!==(e.user=e.getCustomerInfo(t))?e.user.firstName.trim()||e.user.lastName.trim()?e.user.firstName+" "+e.user.lastName:e.$root.labels.customer+" "+e.user.id:"")+"\n ")]),e._v(" "),t.customer.email?n("a",{staticClass:"am-customer-link",attrs:{href:"mailto:"+t.customer.email}},[e._v("\n "+e._s(t.customer.email)+"\n ")]):e._e(),e._v(" "),t.customer.phone?n("a",{staticClass:"am-customer-link",attrs:{href:"tel:"+t.customer.phone}},[e._v("\n "+e._s(t.customer.phone)+"\n ")]):e._e()]),e._v(" "),n("el-col",{staticClass:"am-align-right",attrs:{sm:14}},[n("div",{staticClass:"am-appointment-status small"},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+t.status}),e._v(" "),n("el-select",{attrs:{disabled:e.disableStatusChange(),"popper-class":"am-dropdown-cabinet"},on:{change:e.handleBookingChange},model:{value:t.status,callback:function(n){e.$set(t,"status",n)},expression:"booking.status"}},e._l(e.getAllowedStatuses(),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-"+e.value})])}),1)],1),e._v(" "),n("div",{staticClass:"am-appointment-persons small"},[n("img",{staticClass:"svg-amelia",attrs:{slot:"prefix",width:"16px",src:e.$root.getUrl+"public/img/group.svg"},slot:"prefix"}),e._v(" "),n("el-select",{staticClass:"small-status",attrs:{"popper-class":"am-dropdown-cabinet","no-data-text":e.$root.labels.choose_a_group_service,disabled:null!==e.packageCustomer||"packageCustomerService"in t&&null!==t.packageCustomerService},on:{change:e.handlePersonsChange},model:{value:t.persons,callback:function(n){e.$set(t,"persons",n)},expression:"booking.persons"}},e._l(e.appointment.providerServiceMaxAdditonalCapacity,function(e){return n("el-option",{key:e,attrs:{value:e}})}),1)],1),e._v(" "),!e.packageServices&&e.appointment.serviceId&&e.isDurationPricingEnabled(e.getServiceById(e.appointment.serviceId).customPricing)?n("div",{staticClass:"am-appointment-duration small"},[n("img",{staticClass:"svg-amelia",attrs:{slot:"prefix",width:"16px",src:e.$root.getUrl+"public/img/duration.svg"},slot:"prefix"}),e._v(" "),n("el-select",{staticClass:"small-status",attrs:{"popper-class":"am-dropdown-cabinet","no-data-text":e.$root.labels.choose_a_group_service},on:{change:e.handleBookingChange},model:{value:t.duration,callback:function(n){e.$set(t,"duration",n)},expression:"booking.duration"}},e._l(e.getPossibleCustomDurations(t),function(t){return n("el-option",{key:t,attrs:{label:e.secondsToNiceDuration(t),value:t}})}),1)],1):e._e(),e._v(" "),null===e.packageCustomer?n("div",{staticClass:"am-appointment-remove small"},[n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})]),e._v(" "),n("i",{staticClass:"el-icon-close remove",on:{click:function(t){return e.handleCustomerRemove(o)}}})],1):e._e()])],1)],1)}),e._v(" "),e.appointment.bookings.length>1?n("div",{staticClass:"group-status-change"},[n("el-row",{attrs:{gutter:4}},[n("el-col",{attrs:{sm:14}},[n("h3",[e._v(e._s(e.$root.labels.change_group_status))])]),e._v(" "),n("el-col",{attrs:{sm:10}},[n("el-form-item",[n("div",{staticClass:"am-appointment-status"},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+e.appointment.status}),e._v(" "),n("el-select",{attrs:{disabled:e.disableStatusChange(),"popper-class":"am-dropdown-cabinet"},on:{change:e.handleGroupStatusChange,"visible-change":e.handleSelected},model:{value:e.appointment.status,callback:function(t){e.$set(e.appointment,"status",t)},expression:"appointment.status"}},e._l(e.getAllowedStatuses(),function(t){return n("el-option",{key:t.value,staticClass:"am-appointment-status-option",attrs:{label:t.label,value:t.value}},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+t.value},[e._v("\n "+e._s(t.label)+"\n ")])])}),1)],1)])],1)],1)],1):e._e()],2):e._e()]),e._v(" "),n("el-form-item",{class:{active:e.categorySpinnerActive},attrs:{label:e.$root.labels.category+":"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_service_category,"popper-class":"am-dropdown-cabinet",disabled:"customer"===e.$root.settings.role},on:{change:e.handleCategoryChange},model:{value:e.appointment.categoryId,callback:function(t){e.$set(e.appointment,"categoryId",t)},expression:"appointment.categoryId"}},e._l(e.categoriesFiltered,function(t){return n("el-option",{directives:[{name:"show",rawName:"v-show",value:"provider"===e.$root.settings.role&&!t.disabled||"provider"!==e.$root.settings.role,expression:"($root.settings.role === 'provider' && !item.disabled) || $root.settings.role !== 'provider'"}],key:t.id,attrs:{disabled:t.disabled,label:t.name,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._v(" "),n("el-form-item",{class:{active:e.serviceSpinnerActive},attrs:{prop:"serviceId",label:e.capitalizeFirstLetter(e.$root.labels.service)+":"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_service+":","popper-class":"am-dropdown-cabinet am-appointment-services",disabled:"customer"===e.$root.settings.role},on:{change:e.handleServiceChange},model:{value:e.appointment.serviceId,callback:function(t){e.$set(e.appointment,"serviceId",t)},expression:"appointment.serviceId"}},e._l(e.getAllowedServices(),function(t){return n("el-option",{directives:[{name:"show",rawName:"v-show",value:"provider"===e.$root.settings.role&&!t.disabled||"provider"!==e.$root.settings.role,expression:"($root.settings.role === 'provider' && !item.disabled) || $root.settings.role !== 'provider'"}],key:t.id,attrs:{disabled:t.disabled,label:t.name,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._v(" "),e.locationsFiltered.length?n("el-form-item",{class:{active:e.locationSpinnerActive},attrs:{label:e.$root.labels.location+":",disabled:"customer"===e.$root.settings.role}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_location,"popper-class":"am-dropdown-cabinet"},on:{change:e.handleLocationChange},model:{value:e.appointment.locationId,callback:function(t){e.$set(e.appointment,"locationId",t)},expression:"appointment.locationId"}},e._l(e.locationsFiltered,function(t){return n("el-option",{directives:[{name:"show",rawName:"v-show",value:"provider"===e.$root.settings.role&&!t.disabled||"provider"!==e.$root.settings.role,expression:"($root.settings.role === 'provider' && !item.disabled) || $root.settings.role !== 'provider'"}],key:t.id,attrs:{disabled:t.disabled,label:t.name,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(" "),e.notInLicence("starter")?e._e():n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.$root.settings.capabilities.canReadOthers&&e.$root.settings.capabilities.canWriteOthers,expression:"$root.settings.capabilities.canReadOthers && $root.settings.capabilities.canWriteOthers"}],class:{active:e.employeeSpinnerActive},attrs:{label:e.capitalizeFirstLetter(e.$root.labels.employee)+":",prop:"providerId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_employee,"popper-class":"am-dropdown-cabinet am-appointment-employees",disabled:"customer"===e.$root.settings.role},on:{change:e.handleEmployeeChange},model:{value:e.appointment.providerId,callback:function(t){e.$set(e.appointment,"providerId",t)},expression:"appointment.providerId"}},e._l(e.employeesFiltered,function(t){return n("el-option",{key:t.id,attrs:{disabled:t.disabled,label:t.firstName+" "+t.lastName,value:t.id}},[n("span",[e._v("\n "+e._s(t.firstName+" "+t.lastName)+"\n ")]),e._v(" "),t.badge?n("span",{staticClass:"am-employee-badge",style:{background:t.badge.color}},[e._v("\n "+e._s(t.badge.content)+"\n ")]):e._e()])}),1),e._v(" "),n("img",{staticClass:"svg-amelia is-spinner",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}})],1),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.$root.settings.lessonSpace.enabled&&"customer"!==e.$root.settings.role,expression:"$root.settings.lessonSpace.enabled && $root.settings.role !== 'customer'"}],attrs:{label:e.$root.labels.lesson_space+":",prop:"lessonSpaceId"}},[n("el-select",{attrs:{filterable:"",clearable:"","popper-class":"am-dropdown-cabinet",disabled:"customer"===e.$root.settings.role,loading:e.loadingSpaces,remote:"","remote-method":e.searchExistingSpaces},model:{value:e.appointment.lessonSpace,callback:function(t){e.$set(e.appointment,"lessonSpace",t)},expression:"appointment.lessonSpace"}},[n("el-option",{key:0,attrs:{label:e.$root.labels.lesson_space_new_space,value:0}}),e._v(" "),e._l(e.spaces,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),e.packageServices&&e.packageServices.length||!(e.couponsFilteredService.length>0)||!e.showCoupon||"admin"!==e.$root.settings.role&&"manager"!==e.$root.settings.role?e._e():n("el-form-item",{class:{active:e.categorySpinnerActive},attrs:{label:e.$root.labels.apply_coupon}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:e.$root.labels.select_coupon,"popper-class":"am-dropdown-cabinet",disabled:"customer"===e.$root.settings.role},on:{change:e.filterServices},model:{value:e.coupon,callback:function(t){e.coupon=t},expression:"coupon"}},e._l(e.couponsFilteredService,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._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{staticClass:"v-calendar-column",attrs:{lg:12,md:12,sm:24}},[n("el-form-item",{class:{active:e.loadingTimeSlots&&!e.calendarNavigating},style:{"pointer-events":e.loadingTimeSlots&&!e.calendarNavigating?"none":"all"},attrs:{label:e.$root.labels.date+":",prop:"selectedDate"}},[n("v-date-picker",{attrs:{mode:"single","popover-visibility":"focus","popover-direction":"top","popover-align":e.screenWidth<768?"center":"left","tint-color":e.isCabinet?e.$root.settings.customization.primaryColor:"#1A84EE","is-required":!0,"is-expanded":!1,"show-day-popover":!1,"input-props":{class:"el-input__inner",readOnly:"readonly"},"available-dates":e.availableDates,"disabled-dates":e.disabledWeekdays,disabled:!1,formats:e.vCalendarFormats,"popover-keep-visible-on-input":!0,"theme-styles":{weeks:e.loadingTimeSlots?{background:"url("+e.$root.getUrl+"public/img/oval-spinner.svg)",backgroundRepeat:"no-repeat",backgroundSize:"40%",backgroundPosition:"center",pointerEvents:"none"}:{},dayCellNotInMonth:{opacity:0,display:"none"}},attributes:e.attributes},on:{"update:fromPage":e.changedMonth,input:e.dateSelected},model:{value:e.appointment.selectedDate,callback:function(t){e.$set(e.appointment,"selectedDate",t)},expression:"appointment.selectedDate"}}),e._v(" "),n("img",{staticClass:"svg-amelia is-spinner is-spinner-right",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}})],1)],1),e._v(" "),n("el-col",{attrs:{lg:12,md:12,sm:24}},[n("el-form-item",{class:{active:e.loadingTimeSlots},attrs:{label:e.$root.labels.time+":",prop:"selectedPeriod.time"}},[n("el-select",{attrs:{"value-key":"time",filterable:"",placeholder:e.$root.labels.select_time,"popper-class":"am-dropdown-cabinet am-appointment-slots"},on:{change:function(t){return e.selectedTime()}},model:{value:e.appointment.selectedPeriod,callback:function(t){e.$set(e.appointment,"selectedPeriod",t)},expression:"appointment.selectedPeriod"}},e._l(e.appointment.dateTimeSlots,function(t){return n("el-option",{key:t.time,attrs:{label:e.getFrontedFormattedTime(t.time+":00"),value:t},domProps:{innerHTML:e._s(e.getSlotLabel(t))}})}),1),e._v(" "),n("img",{staticClass:"svg-amelia is-spinner",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}})],1)],1)],1),e._v(" "),e.packageServices||"customer"===e.$root.settings.role||e.appointment.id||!e.appointment.serviceId||"disabled"===e.getServiceById(e.appointment.serviceId).recurringCycle?e._e():n("el-form-item",{staticClass:"am-recurring-check"},[n("el-checkbox",{attrs:{disabled:!e.appointment.selectedDate||!e.appointment.selectedPeriod||!e.appointment.providerId},on:{change:function(t){return e.enableRecurring()}},model:{value:e.enabledRecurring,callback:function(t){e.enabledRecurring=t},expression:"enabledRecurring"}},[e._v("\n "+e._s(e.$root.labels.recurring_active)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recurring_active_tooltip)},slot:"content"}),e._v(" "),e.appointment.providerId?e._e():n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recurring_select_employee)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1),e._v(" "),"customer"!==this.$root.settings.role?n("el-form-item",[n("el-checkbox",{on:{change:function(t){return e.clearValidation()}},model:{value:e.appointment.notifyParticipants,callback:function(t){e.$set(e.appointment,"notifyParticipants",t)},expression:"appointment.notifyParticipants"}},[e._v("\n "+e._s(e.$root.labels.notify_customers)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.notify_customers_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1):e._e(),e._v(" "),e.isGenerateLinkVisible()?n("el-form-item",[n("el-checkbox",{on:{change:function(t){return e.clearValidation()}},model:{value:e.appointment.createPaymentLinks,callback:function(t){e.$set(e.appointment,"createPaymentLinks",t)},expression:"appointment.createPaymentLinks"}},[e._v("\n "+e._s(e.$root.labels.generate_payment_links)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.generate_payment_links_tooltip)},slot:"content"}),e._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)],1):e._e(),e._v(" "),"customer"!==this.$root.settings.role?n("div",{staticClass:"am-divider"}):e._e(),e._v(" "),"customer"!==this.$root.settings.role?n("el-form-item",{attrs:{label:e.$root.labels.note_internal+":"}},[n("el-input",{attrs:{type:"textarea",placeholder:"",autosize:{minRows:4,maxRows:6}},on:{input:function(t){return e.clearValidation()}},model:{value:e.appointment.internalNotes,callback:function(t){e.$set(e.appointment,"internalNotes",t)},expression:"appointment.internalNotes"}})],1):e._e()],1),e._v(" "),"customer"===e.$root.settings.role||e.packageCustomer?e._e():n("el-tab-pane",{attrs:{name:"extras"}},[n("LicenceBlockHeader",{attrs:{licence:"starter"}}),e._v(" "),n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.$root.labels.extras)+"\n "),e.appointment.serviceId&&e.appointment.bookings.length>0&&e.appointment.extrasSelectedCount>0?n("el-badge",{staticClass:"mark",attrs:{value:e.appointment.extrasSelectedCount}}):e._e()],1),e._v(" "),n("div",{staticClass:"am-dialog-table",class:e.licenceClassDisabled("starter")},[e.appointment.providerId&&e.appointment.serviceId&&e.appointment.extrasCount>0&&e.appointment.bookings.length>0?n("div",e._l(e.appointment.bookings,function(t,o){return["approved","pending","rejected"].includes(t.status)?n("div",{key:o,staticClass:"am-customer-extras"},[n("el-row",{staticClass:"am-customer-extras-data"},[n("el-col",[n("h3",[e._v("\n "+e._s(t.customer.firstName+" "+t.customer.lastName)+"\n ")]),e._v(" "),n("span",[e._v(e._s(t.customer.email))])])],1),e._v(" "),e._l(t.extras,function(t){return n("el-row",{key:t.extraId,attrs:{gutter:10}},[n("el-col",{attrs:{sm:10,xs:24}},[n("el-row",[n("el-col",{attrs:{sm:4,xs:2}},[n("el-checkbox",{on:{change:function(n){return e.handleExtrasSelectionChange(t)}},model:{value:t.selected,callback:function(n){e.$set(t,"selected",n)},expression:"item.selected"}})],1),e._v(" "),n("el-col",{attrs:{sm:20,xs:22}},[n("span",[e._v(e._s(t.name))])])],1)],1),e._v(" "),n("el-col",{attrs:{sm:14,xs:24}},[n("el-row",[n("el-col",{staticClass:"align-right",attrs:{sm:14,xs:14}},[n("el-input-number",{attrs:{size:"small",type:"number",min:1,max:t.maxQuantity,value:t.quantity,disabled:!t.selected},on:{change:function(n){return e.handleExtrasSelectionChange(t)}},model:{value:t.quantity,callback:function(n){e.$set(t,"quantity",n)},expression:"item.quantity"}})],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{sm:10,xs:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.price))+"\n ")])],1)],1)],1)}),e._v(" "),n("el-row",{staticClass:"subtotal",attrs:{gutter:10}},[n("el-col",{staticClass:"align-right",attrs:{span:14}},[e._v("\n "+e._s(e.$root.labels.subtotal)+":\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:10}},[e._v("\n "+e._s(e.getFormattedPrice(t.extrasTotalPrice))+"\n ")])],1)],2):e._e()}),0):e.appointment.serviceId&&e.appointment.providerId&&0===e.appointment.extrasCount?n("div",[n("p",{attrs:{align:"center"}},[e._v(e._s(e.$root.labels.service_no_extras))])]):n("div",[n("p",{attrs:{align:"center"}},[e._v(e._s(e.$root.labels.no_selected_extras_requirements))])])])],1),e._v(" "),0!==e.appointment.id&&"customer"!==this.$root.settings.role?n("el-tab-pane",{attrs:{label:e.$root.labels.payment,name:"payment"}},[n("dialog-appointment-payment",{attrs:{appointment:e.appointment,options:e.options,"is-cabinet":e.isCabinet,recurring:e.recurringAppointments},on:{editPayment:e.editPayment}})],1):e._e(),e._v(" "),e.showCustomFieldsTab()&&"customer"!==this.$root.settings.role?n("el-tab-pane",{attrs:{label:e.$root.labels.custom_fields,name:"customFields"}},[n("dialog-custom-fields",{attrs:{appointment:e.appointment,entityId:e.appointment.serviceId,customFields:this.options.entities.customFields,showCustomerInfo:!0,"hide-attachment-custom-field":e.hideAttachmentCustomField,"is-cabinet":e.isCabinet,entityType:"appointment"},on:{clearValidation:e.clearValidation}})],1):e._e(),e._v(" "),e.$root.settings.zoom.enabled&&e.appointment.zoomMeeting?n("el-tab-pane",{staticClass:"am-zoom-tabpane",attrs:{label:e.$root.labels.zoom,name:"zoom"}},["customer"!==this.$root.settings.role?n("div",[e._v("\n "+e._s(e.$root.labels.zoom_start_link)+":\n "),n("a",{staticClass:"am-link",attrs:{href:e.appointment.zoomMeeting.startUrl}},[e._v("\n "+e._s(e.$root.labels.zoom_click_to_start)+"\n ")])]):e._e(),e._v(" "),n("div",[e._v("\n "+e._s(e.$root.labels.zoom_join_link)+":\n "),n("a",{staticClass:"am-link",attrs:{href:e.appointment.zoomMeeting.joinUrl}},[e._v("\n "+e._s(e.$root.labels.zoom_click_to_join)+"\n ")])])]):e._e(),e._v(" "),e.$root.settings.lessonSpace.enabled&&e.appointment.lessonSpace?n("el-tab-pane",{staticClass:"am-zoom-tabpane",attrs:{label:e.$root.labels.lesson_space,name:"lessonSpace"}},[n("div",[e._v("\n "+e._s(e.$root.labels.lesson_space_link)+":\n "),n("a",{staticClass:"am-link",attrs:{href:e.appointment.lessonSpace}},[e._v("\n "+e._s(e.$root.labels.lesson_space_join)+"\n ")])])]):e._e(),e._v(" "),(e.$root.licence.isBasic||e.$root.licence.isPro||e.$root.licence.isDeveloper)&&e.appointment.serviceId&&(e.appointment.id?e.recurringAppointments.length:e.activeRecurring&&e.enabledRecurring&&"disabled"!==e.getServiceById(e.appointment.serviceId).recurringCycle)?n("el-tab-pane",{attrs:{label:e.$root.labels.linked,name:"recurring"}},[e.appointment.id?n("div",e._l(e.appointment.bookings,function(t){return n("div",{staticClass:"am-dialog-table"},[n("div",[n("div",{staticClass:"am-customer-extras"},[e.recurringAppointments.filter(function(e){return e.bookings.filter(function(e){return parseInt(e.customer.id)===parseInt(t.customer.id)}).length}).length?n("el-row",{staticClass:"am-customer-extras-data"},[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))])])],1):e._e()],1)]),e._v(" "),e._l(e.recurringAppointments.filter(function(e){return e.bookings.filter(function(e){return parseInt(e.customer.id)===parseInt(t.customer.id)}).length}),function(o,i){return n("el-row",{key:t.id+"-"+i},[n("el-col",{staticStyle:{"line-height":"40px"},attrs:{span:3}},[e._v("\n "+e._s(i+1)+"\n ")]),e._v(" "),n("el-col",{staticStyle:{"line-height":"40px"},attrs:{span:12}},[e._v("\n "+e._s(e.getFrontedFormattedDateTime(o.bookingStart))+"\n ")]),e._v(" "),n("el-col",{attrs:{span:9}},[n("el-button",{on:{click:function(t){return e.openRecurringAppointment(o.id)}}},[e._v("\n "+e._s(e.$root.labels.edit)+"\n ")])],1)],1)})],2)}),0):e.appointment.selectedDate&&e.appointment.selectedPeriod&&e.activeRecurring&&e.enabledRecurring&&e.initialRecurringData?n("div",[n("recurring-setup",{attrs:{initialRecurringData:e.initialRecurringData,recurringData:e.recurringData,disabledWeekdays:e.disabledWeekdays,availableDates:e.availableDates,calendarTimeSlots:e.appointment.calendarTimeSlots,occupiedTimeSlots:e.appointment.occupiedTimeSlots,service:e.getServiceById(e.appointment.serviceId),isFrontend:!1,"form-type":"recurring","forms-data":e.renderObject}}),e._v(" "),n("recurring-dates",{attrs:{dialogClass:"am-recurring-dates",recurringData:e.recurringData,availableDates:e.availableDates,calendarTimeSlots:e.appointment.calendarTimeSlots,isFrontend:!1,"form-type":"recurring","forms-data":e.renderObject,service:e.getServiceById(e.appointment.serviceId),selectedExtras:e.getSelectedDistinctExtras()},on:{datesDefined:e.recurringDatesDefined}})],1):e.activeRecurring&&e.enabledRecurring?n("div",[n("p",{attrs:{align:"center"}},[e._v(e._s(e.$root.labels.no_selected_slot_requirements))])]):e._e()]):e._e()],1)],1):e._e()],1),e._v(" "),null===e.appointment||e.dialogLoading||"customer"===this.$root.settings.role?e._e():n("dialog-actions",{attrs:{formName:"appointment",urlName:null===e.packageCustomer?"appointments":"bookings",urlSubName:null===e.packageCustomer?"":"/reassign",isNew:0===e.appointment.id,entity:null!=e.packageCustomer&&e.appointment.id?e.appointment.bookings[0]:e.appointment,getParsedEntity:e.getParsedEntity,haveSaveConfirmation:e.haveSaveConfirmation,hasIcons:!0,status:{on:"visible",off:"hidden"},action:{haveAdd:!0,haveEdit:!0,haveStatus:!1,haveRemove:!0===e.$root.settings.capabilities.canDelete,haveRemoveEffect:!1,haveDuplicate:e.haveDuplicate,haveSaveWarning:e.isExistingAppointment()||e.isFullAppointment()||e.isIntersectedAppointment()||this.activeRecurring&&this.enabledRecurring},buttonText:null,message:{success:{save:e.$root.labels.appointment_saved,remove:e.$root.labels.appointment_deleted,show:"",hide:""},confirm:{remove:e.$root.labels.confirm_delete_appointment,show:"",hide:"",duplicate:e.$root.labels.confirm_duplicate_appointment,save:e.saveConfirmMessage}}},on:{errorCallback:e.errorCallback,validationTabFailCallback:e.validationTabFailCallback,closeSaveConfirmation:e.closeSaveConfirmation}}),e._v(" "),n("div",["customer"===this.$root.settings.role?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",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.updateByCustomer}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)]):e._e()])],1)},staticRenderFns:[]}},823:function(e,t,n){var o=n(90)(n(824),n(825),!1,null,null,null);e.exports=o.exports},824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(680),i=n.n(o),r=n(699),s=(n.n(r),n(336)),a=n(654),l=n(658),c=n(657),u=n(684),d=n(673),p=n(666);t.default={mixins:[a.a,s.a,l.a,c.a,u.a,d.a,p.a],props:{modalData:null,bookingFetched:!1,customersNoShowCount:null,invoiceInDialog:!1},data:function(){return{dialogLoading:!0,refundBtnLoading:!1,refundMainBtnLoading:!1,finance:{bookablePriceTotal:0,extrasPriceTotal:0,discountTotal:0,subTotal:0,due:0,refunded:0,total:0,paidDeposit:0,paidRemaining:0,tax:0,wcTax:0,multipleBookings:!1},form:new i.a,payment:null,paymentStatuses:[{value:"pending",label:this.$root.labels.pending},{value:"paid",label:this.$root.labels.paid},{value:"partiallyPaid",label:this.$root.labels.partially_paid}],showDeleteConfirmation:!1,showUpdatePaymentAmount:!1,payments:[],showRefundConfirmation:!1,refundAmount:0,invoiceLoading:{preview:!1,download:!1,send:!1}}},created:function(){i.a.defaults.axios=this.$http,this.$root.licence.isBasic||this.$root.licence.isStarter||this.$root.licence.isLite||this.paymentStatuses.push({value:"refunded",label:this.$root.labels.refunded}),this.bookingFetched&&(this.setFinance(),this.dialogLoading=!1)},updated:function(){this.$nextTick(function(){var e=this;setTimeout(function(){e.inlineSVG()},5)})},methods:{showPaidSeparate:function(){return this.payments.filter(function(e){return"partiallyPaid"===e.status}).length>0&&!this.invoiceInDialog},createFileUrlFromResponse:function(e){for(var t=atob(e.data),n=new Array(t.length),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);var i=new Uint8Array(n),r=new Blob([i],{type:"application/pdf;base64"});return URL.createObjectURL(r)},sendInvoice:function(){var e=this;if(this.invoiceLoading.send=!0,this.modalData.customer.email){var t=this.payments.find(function(e){return null===e.parentId});this.$http.post(this.$root.getAjaxUrl+"/invoices/"+t.id,{sendEmail:!0}).then(function(t){e.notify(e.$root.labels.success,e.$root.labels.invoice_sent,"success"),e.invoiceLoading.send=!1}).catch(function(t){console.log(t.response.data.message),e.notify(e.$root.labels.error,e.$root.labels.invoice_sending_failed,"error"),e.invoiceLoading.send=!1})}else this.notify(this.$root.labels.error,this.$root.labels.send_invoice_no_email,"error"),this.invoiceLoading.send=!1},previewInvoice:function(){var e=this;this.invoiceLoading.preview=!0;var t=this.payments.find(function(e){return null===e.parentId});this.$http.post(this.$root.getAjaxUrl+"/invoices/"+t.id).then(function(t){window.open(e.createFileUrlFromResponse(t)),e.invoiceLoading.preview=!1}).catch(function(t){console.log(t.message),e.invoiceLoading.preview=!1})},downloadInvoice:function(){var e=this;this.invoiceLoading.download=!0;var t=this.payments.find(function(e){return null===e.parentId});this.$http.post(this.$root.getAjaxUrl+"/invoices/"+t.id).then(function(t){var n=e.createFileUrlFromResponse(t),o=document.createElement("a");o.href=n,o.download="Invoice",document.body.appendChild(o),o.click(),document.body.removeChild(o),e.invoiceLoading.download=!1}).catch(function(t){console.log(t.message),e.invoiceLoading.download=!1})},showRefundModal:function(e){var t=this;this.showDeleteConfirmation=!1,this.showUpdatePaymentAmount=!1,this.payment=e,this.refundMainBtnLoading=!0,this.$http.get(this.$root.getAjaxUrl+"/payments/transaction/"+e.id).then(function(e){t.refundAmount=e.data.data.refundAmount,t.showRefundConfirmation=!0,t.refundMainBtnLoading=!1}).catch(function(e){console.log(e.message),t.refundMainBtnLoading=!1})},showUpdateModal:function(e){this.showUpdatePaymentAmount=!0,this.showDeleteConfirmation=!1,this.payment=e},showDeleteModal:function(e){this.showDeleteConfirmation=!0,this.showRefundConfirmation=!1,this.showUpdatePaymentAmount=!1,this.payment=e},paymentRefundable:function(e){return!this.$root.licence.isBasic&&!this.$root.licence.isStarter&&!this.$root.licence.isLite&&("partiallyPaid"===e.status||"paid"===e.status)&&(e.transactionId||e.wcOrderId)&&("mollie"!==e.gateway||e.transactionId&&!e.transactionId.includes("pl_"))&&"onSite"!==e.gateway},refundPayment:function(){var e=this;this.refundBtnLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/payments/refund/"+this.payment.id).then(function(t){e.notify(e.$root.labels.success,e.$root.labels.payment_refunded,"success"),e.refundBtnLoading=!1,e.payment.status="refunded",e.showRefundConfirmation=!1,e.$emit("updatePaymentCallback",e.payment)}).catch(function(t){console.log(t),e.refundBtnLoading=!1,e.notify(e.$root.labels.error,t.response.data.message?t.response.data.message:e.$root.labels.payment_refund_failed,"error")})},getTicketsData:function(){var e=[];return"event"===this.modalData.bookableType&&this.modalData[this.modalData.bookableType][0]&&this.modalData.event.forEach(function(t){t.booking.ticketsData.forEach(function(n){var o=t.bookable.customTickets.find(function(e){return e.id===n.eventTicketId});o&&e.push({name:o.name,persons:n.persons})})}),e},instantiateDialog:function(){null!==this.modalData.bookings&&(this.setFinance(),this.dialogLoading=!1)},setFinance:function(){var e=this;JSON.parse(JSON.stringify(this.modalData[this.modalData.bookableType])).forEach(function(t){e.payments=e.payments.concat(t.booking.payments)}),this.payments.sort(function(e,t){return new Date(e.dateTime)-new Date(t.dateTime)});var t=this.modalData.bookableType,n=this.modalData[t];this.finance=this.getPaymentAmountData(n,t),this.finance.multipleBookings=n.length>0},closeDialog:function(){this.$emit("closeDialogPayment")},getPaymentStatus:function(e){var t="";return this.paymentStatuses.forEach(function(n){n.value===e&&(t=n.label)}),t},deletePayment:function(){var e=this;this.dialogLoading=!0,this.$http.post(this.$root.getAjaxUrl+"/payments/delete/"+this.payment.id).then(function(t){e.dialogLoading=!1,t.data&&(e.$emit("deletePaymentCallback",e.payment),e.showDeleteConfirmation=!e.showDeleteConfirmation,e.notify(e.$root.labels.success,e.$root.labels.payment_deleted,"success"))}).catch(function(t){e.dialogLoading=!1,e.errorMessage=t.message})},updatePayment:function(){var e=this;this.payment?(this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/payments/"+this.payment.id,this.payment).then(function(){e.showUpdatePaymentAmount=!e.showUpdatePaymentAmount,e.setFinance(),e.notify(e.$root.labels.success,e.$root.labels.payment_saved,"success"),e.$emit("updatePaymentCallback",e.payment),e.dialogLoading=!1}).catch(function(t){e.dialogLoading=!1,e.errorMessage=t.message})):this.$emit("updatePaymentCallback")},getPaymentIconName:function(e){return"onSite"!==e.gateway&&"stripe"!==e.gateway||"oliver"!==e.gatewayTitle?e.gateway+".svg":"oliver.png"},getPaymentGatewayNiceName:function(e){return"stripe"===e.gateway&&"oliver"===e.gatewayTitle?this.$root.labels.oliver_on_line:"onSite"===e.gateway&&"oliver"===e.gatewayTitle?this.$root.labels.oliver_on_site:"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}},watch:{bookingFetched:function(){!0===this.bookingFetched&&this.instantiateDialog()}},components:{Money:r.Money}}},825: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"},[n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:18}},[n("h2",[e._v(e._s(e.invoiceInDialog?e.$root.labels.invoice_details:e.$root.labels.payment_details))])]),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._v(" "),n("div",{staticClass:"am-payment-details"},[!e.payments[0].invoiceNumber||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():n("el-row",{staticClass:"am-payment-details-row"},[n("h4",[e._v(e._s(e.$root.labels.invoice_number+": #"+e.payments[0].invoiceNumber))])]),e._v(" "),n("el-row",{staticClass:"am-payment-details-row"},[n("h4",[e._v(e._s(e.$root.labels.customer))]),e._v(" "),n("el-col",{attrs:{span:24}},[n("h3",{class:e.getNoShowClass(e.modalData.customer.id,e.customersNoShowCount)},[e._v(e._s(e.modalData.customer.id?e.modalData.customer.firstName+" "+e.modalData.customer.lastName:""))]),e._v(" "),n("p",[e._v(e._s(e.modalData.customer?e.modalData.customer.email:""))])])],1),e._v(" "),e._l(e.payments,function(t,o){return n("el-row",{key:t.id,staticClass:"am-payment-details-row"},[n("div",{staticClass:"am-payment-details-row-header"},[n("h4",[e._v(e._s(e.$root.labels.payment)+" "+e._s(e.payments.length>1?"#"+(o+1):"")+" ")]),e._v(" "),!e.invoiceInDialog&&e.payments.length>1?n("div",{staticClass:"am-payment-details-row-options"},[e.paymentRefundable(t)?n("div",[n("el-button",{attrs:{size:"small",loading:e.refundMainBtnLoading},on:{click:function(n){return e.showRefundModal(t)}}},[e._v("\n "+e._s(e.$root.labels.refund)+"\n ")])],1):e._e(),e._v(" "),n("el-button",{staticClass:"am-button-icon",staticStyle:{padding:"7px 10px"},attrs:{size:"small"},on:{click:function(n){return e.showUpdateModal(t)}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.edit,src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),!0===e.$root.settings.capabilities.canDelete?n("el-button",{staticClass:"am-button-icon",staticStyle:{padding:"7px 10px","margin-left":"0px"},attrs:{size:"small"},on:{click:function(n){return e.showDeleteModal(t)}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}})]):e._e()],1):e._e()]),e._v(" "),n("el-col",{attrs:{span:12}},[n("p",[e._v(e._s(e.invoiceInDialog?e.$root.labels.issue_date:e.$root.labels.date))]),e._v(" "),n("p",[e._v(e._s(e.$root.labels.payment_method))]),e._v(" "),t.wcOrderId?n("p",[e._v(e._s(e.$root.labels.wc_order)+":")]):e._e(),e._v(" "),n("p",[e._v(e._s(e.$root.labels.status))]),e._v(" "),n("p",[e._v(e._s(e.$root.labels.id))])]),e._v(" "),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.invoiceInDialog?e.getFrontedFormattedDate(t.created):e.getFrontedFormattedDate(t.dateTime)))]),e._v(" "),n("p",{staticClass:"am-semi-strong"},[n("img",{staticClass:"svg-amelia",style:{width:e.getPaymentIconWidth(t.gateway),verticalAlign:"middle"},attrs:{src:e.$root.getUrl+"public/img/payments/"+e.getPaymentIconName(t)}}),e._v(" "),e.longNamePayments(t.gateway)?e._e():n("span",[e._v(e._s(e.getPaymentGatewayNiceName(t)))])]),e._v(" "),t.wcOrderId?n("p",[n("a",{attrs:{href:t.wcOrderUrl,target:"_blank"}},[e._v("\n #"+e._s(t.wcOrderId)+"\n ")])]):e._e(),e._v(" "),n("div",{staticClass:"am-payment-status"},[n("span",{class:"am-payment-status-symbol am-payment-status-symbol-"+t.status}),e._v(" "),n("p",{staticClass:"am-semi-strong"},[n("span",[e._v(e._s(e.getPaymentStatusNiceName(t.status)))])])]),e._v(" "),n("p",{staticClass:"am-semi-strong"},[e._v(e._s(t.id))])])],1)}),e._v(" "),e._l(e.modalData[e.modalData.bookableType],function(t,o){return n("el-row",{key:o,staticClass:"am-payment-details-row"},[n("h4",[e._v(e._s(e.$root.labels[e.modalData.bookableType+"_info"]))]),e._v(" "),n("el-col",{attrs:{span:12}},[n("p",[e._v(e._s(e.$root.labels[e.modalData.bookableType]))]),e._v(" "),"package"!==e.modalData.bookableType?n("p",[e._v(e._s(e.$root.labels.date))]):e._e(),e._v(" "),t.providers.length&&"appointment"===e.modalData.bookableType?n("p",[e._v(e._s(e.$root.labels.employee))]):e._e(),e._v(" "),"event"===e.modalData.bookableType&&e.getTicketsData().length?n("p",[e._v(e._s(e.$root.labels.event_tickets))]):e._e()]),e._v(" "),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"am-semi-strong"},[e._v(e._s(t.bookable.name))]),e._v(" "),"package"!==e.modalData.bookableType?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFrontedFormattedDateTime(t.bookingStart)))]):e._e(),e._v(" "),t.providers.length>0&&"appointment"===e.modalData.bookableType?n("p",{staticClass:"am-semi-strong"},[n("img",{staticClass:"am-employee-photo",attrs:{src:e.pictureLoad(t.providers[0],!0)},on:{error:function(n){return e.imageLoadError(t.providers[0].id,!0)}}}),e._v("\n "+e._s(t.providers[0].fullName)+"\n ")]):e._e(),e._v(" "),"event"===e.modalData.bookableType&&e.getTicketsData().length?n("p",{staticClass:"am-semi-strong",staticStyle:{"white-space":"unset"}},e._l(e.getTicketsData(),function(t){return n("span",{staticClass:"am-attendees-plus"},[e._v("\n "+e._s(t.persons)+" x "+e._s(t.name)+"\n ")])}),0):e._e()])],1)}),e._v(" "),n("el-row",{staticClass:"am-payment-details-row am-payment-summary"},[n("el-col",{attrs:{span:12}},[n("p",[e._v(e._s(e.$root.labels[(e.finance.multipleBookings?"bookings":"appointment"===e.modalData.bookableType?"service":e.modalData.bookableType)+"_price"]))]),e._v(" "),"package"!==e.modalData.bookableType&&"event"!==e.modalData.bookableType?n("p",[e._v(e._s(e.$root.labels.extras))]):e._e(),e._v(" "),"package"!==e.modalData.bookableType&&"event"!==e.modalData.bookableType?n("p",[e._v(e._s(e.$root.labels.subtotal))]):e._e(),e._v(" "),e.finance.discountTotal?n("p",[e._v(e._s(e.$root.labels.discount_amount))]):e._e(),e._v(" "),e.finance.tax?n("p",[e._v(e._s(e.$root.labels.tax))]):e._e(),e._v(" "),e.payments.filter(function(e){return e.wcOrderId&&e.wcItemTaxValue}).length>0?n("p",[e._v(e._s(e.$root.labels.tax)+" (Woo)")]):e._e(),e._v(" "),e.showPaidSeparate()?e._e():n("p",[e._v(e._s(e.$root.labels.paid))]),e._v(" "),e.showPaidSeparate()?n("p",[e._v(e._s(e.$root.labels.paid_deposit))]):e._e(),e._v(" "),e.showPaidSeparate()?n("p",[e._v(e._s(e.$root.labels.paid_remaining_amount))]):e._e(),e._v(" "),e.finance.refunded>0?n("p",[e._v(e._s(e.$root.labels.refunded))]):e._e(),e._v(" "),n("p",[e._v(e._s(e.$root.labels.due))]),e._v(" "),n("p",{staticClass:"am-payment-total"},[e._v(e._s(e.$root.labels.total))])]),e._v(" "),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.bookablePriceTotal)))]),e._v(" "),"package"!==e.modalData.bookableType&&"event"!==e.modalData.bookableType?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.extrasPriceTotal)))]):e._e(),e._v(" "),"package"!==e.modalData.bookableType&&"event"!==e.modalData.bookableType?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.subTotal)))]):e._e(),e._v(" "),e.finance.discountTotal?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.discountTotal>e.finance.subTotal?e.finance.subTotal:e.finance.discountTotal)))]):e._e(),e._v(" "),e.finance.tax?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.tax)))]):e._e(),e._v(" "),e.payments.filter(function(e){return e.wcOrderId&&e.wcItemTaxValue}).length>0?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.wcTax)))]):e._e(),e._v(" "),e.showPaidSeparate()?e._e():n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.paidRemaining+e.finance.paidDeposit)))]),e._v(" "),e.showPaidSeparate()?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.paidDeposit)))]):e._e(),e._v(" "),e.showPaidSeparate()?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.paidRemaining)))]):e._e(),e._v(" "),e.finance.refunded>0?n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.refunded)))]):e._e(),e._v(" "),n("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.getFormattedPrice(e.finance.due)+(e.payments[0].wcItemTaxValue&&e.finance.due>0?e.$root.labels.plus_tax:"")))]),e._v(" "),n("p",{staticClass:"am-semi-strong am-payment-total"},[e._v(e._s(e.getFormattedPrice(e.finance.total)+(e.payments[0].wcItemTaxValue&&e.finance.due>0?e.$root.labels.plus_tax:"")))])])],1)],2)]),e._v(" "),!0!==e.$root.settings.capabilities.canWriteOthers||e.dialogLoading?e._e():n("div",{staticClass:"am-dialog-footer"},[n("div",{staticClass:"am-dialog-footer-actions"},[n("transition",{attrs:{name:"slide-vertical"}},[e.showDeleteConfirmation?n("div",{staticClass:"am-dialog-confirmation"},[n("h3",[e._v(e._s(e.$root.labels.confirm_delete_payment))]),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:function(t){return e.deletePayment()}}},[e._v("\n "+e._s(e.$root.labels.delete)+"\n ")])],1)]):e._e()]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[e.showUpdatePaymentAmount?n("div",{staticClass:"am-dialog-confirmation"},[n("el-form",{attrs:{"label-position":"top"}},[n("h3",[e._v(e._s(e.$root.labels.enter_new_payment_amount))]),e._v(" "),n("el-row",{staticClass:"am-no-padding",attrs:{gutter:24}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:e.$root.labels.payment+":"}},[n("money",e._b({staticClass:"el-input__inner",model:{value:e.payment.amount,callback:function(t){e.$set(e.payment,"amount",t)},expression:"payment.amount"}},"money",e.moneyComponentData,!1))],1)],1),e._v(" "),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:e.$root.labels.status+":"}},[n("el-select",{model:{value:e.payment.status,callback:function(t){e.$set(e.payment,"status",t)},expression:"payment.status"}},e._l(e.paymentStatuses,function(t){return n("el-option",{key:t.value,staticClass:"am-appointment-status-option",attrs:{label:t.label,value:t.value}},[n("span",{class:"am-appointment-status-symbol am-appointment-status-symbol-"+t.value}),e._v(" "),n("span",[e._v(e._s(t.label))])])}),1)],1)],1)],1),e._v(" "),n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showUpdatePaymentAmount=!e.showUpdatePaymentAmount}}},[e._v("\n "+e._s(e.$root.labels.close)+"\n ")])],1)],1)],1):e._e()]),e._v(" "),n("transition",{attrs:{name:"slide-vertical"}},[!e.showRefundConfirmation||e.$root.licence.isBasic||e.$root.licence.isStarter||e.$root.licence.isLite?e._e():n("div",{staticClass:"am-dialog-confirmation"},[n("h3",[e._v(e._s(e.$root.labels.confirm_refund_payment))]),e._v(" "),n("h3",[n("b",[e._v(e._s(e.$root.labels.refund_payment_amount)+" "+e._s(e.getFormattedPrice(e.refundAmount)))])]),e._v(" "),n("div",{staticClass:"align-left"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.showRefundConfirmation=!1}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"primary",loading:e.refundBtnLoading},on:{click:function(t){return e.refundPayment()}}},[e._v("\n "+e._s(e.$root.labels.confirm)+"\n ")])],1)])]),e._v(" "),e.invoiceInDialog?n("el-row",[n("el-col",{staticClass:"align-left invoice-download",attrs:{sm:8,span:8}},[n("el-button",{attrs:{loading:e.invoiceLoading.download},on:{click:function(t){return e.downloadInvoice()}}},[e._v("\n "+e._s(e.$root.labels.download)+"\n ")])],1),e._v(" "),n("el-col",{staticClass:"align-left invoice-download-mobile",attrs:{sm:4,span:4}},[n("el-button",{staticClass:"button-export am-button-icon",on:{click:function(t){return e.downloadInvoice()}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:"Import",src:e.$root.getUrl+"public/img/import.svg"}})])],1),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{sm:16,span:16}},[n("el-button",{staticClass:"am-dialog-create",attrs:{loading:e.invoiceLoading.preview},on:{click:function(t){return e.previewInvoice()}}},[e._v("\n "+e._s(e.$root.labels.preview)+"\n ")]),e._v(" "),n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.invoiceLoading.send},on:{click:function(t){return e.sendInvoice()}}},[e._v("\n "+e._s(e.$root.labels.send_invoice)+"\n ")])],1)],1):n("el-row",[1===e.payments.length?n("el-col",{staticClass:"align-left",attrs:{sm:12}},[!0===e.$root.settings.capabilities.canDelete?n("el-button",{staticClass:"am-button-icon",style:{display:"none"},on:{click:function(t){return e.showDeleteModal(e.payments[0])}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}})]):e._e(),e._v(" "),n("el-button",{staticClass:"am-button-icon",on:{click:function(t){return e.showUpdateModal(e.payments[0])}}},[n("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.edit,src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),e.paymentRefundable(e.payments[0])?n("el-button",{attrs:{loading:e.refundMainBtnLoading},on:{click:function(t){return e.showRefundModal(e.payments[0])}}},[e._v("\n "+e._s(e.$root.labels.refund)+"\n ")]):e._e()],1):e._e(),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{sm:e.payments.length>1?24:12}},[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"},on:{click:function(t){return e.updatePayment()}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])])},staticRenderFns:[]}},826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"#picture-upload",props:{deleteIconVisibility:!1,editedEntity:null,entityName:"",multiple:!1},data:function(){return{pictureFullPath:"",pictureThumbPath:""}},mounted:function(){},methods:{removeImage:function(e){e.stopPropagation(),this.pictureFullPath="",this.pictureThumbPath="",this.$emit("deleteImage")},openMediaModal:function(){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"}}}},827: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}},[e.deleteIconVisibility?n("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.removeImage(t)}}}):e._e(),e._v(" "),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:[]}},874:function(e,t,n){var o=n(90)(n(878),n(879),!1,null,null,null);e.exports=o.exports},878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(91);t.default={props:{zoomSettings:null,lessonSpaceSettings:null,googleMeetSettings:null,microsoftTeamsSettings:null,paymentsSettings:null,generalSettings:null,settings:null,providers:null},mixins:[o.a],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(){}}}},879: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"},[null!==e.generalSettings?n("el-collapse",{class:e.licenceClass(),model:{value:e.generalSettingsCollapse,callback:function(t){e.generalSettingsCollapse=t},expression:"generalSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),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.licence.isPro||e.$root.licence.isDeveloper?e.$root.labels.redirect_url_after_app_or_package_tt: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),e._v(" "),n("LicenceBlock")],1):e._e(),e._v(" "),null!==e.paymentsSettings?n("el-collapse",{staticClass:"am-entity-settings-payments",class:e.licenceClass("starter"),model:{value:e.paymentsSettingsCollapse,callback:function(t){e.paymentsSettingsCollapse=t},expression:"paymentsSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence("starter"),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(" "),!e.notInLicence("basic")||e.licenceVisible()?n("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass("basic")},[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",{attrs:{disabled:e.notInLicence()},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(),e._v(" "),n("LicenceBlock")],1):e._e(),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}},[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.wc_service)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.wc.enabled,callback:function(t){e.$set(e.paymentsSettings.wc,"enabled",t)},expression:"paymentsSettings.wc.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.paymentsSettings.wc.enabled?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):e._e()],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.square.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/square.svg"}})]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.paymentsSettings.square.enabled,callback:function(t){e.$set(e.paymentsSettings.square,"enabled",t)},expression:"paymentsSettings.square.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.paymentsSettings.wc.enabled&&(e.$root.settings.payments.wc.enabled||!e.paymentsSettings.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.square.enabled&&(e.$root.settings.payments.square.enabled||!e.paymentsSettings.square.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),e._v(" "),n("LicenceBlock",{attrs:{licence:"starter"}})],1):e._e(),e._v(" "),e.zoomSettings||e.lessonSpaceSettings||e.googleMeetSettings||e.microsoftTeamsSettings?n("el-collapse",{class:e.licenceClass(),model:{value:e.integrationsSettingsCollapse,callback:function(t){e.integrationsSettingsCollapse=t},expression:"integrationsSettingsCollapse"}},[n("el-collapse-item",{staticClass:"am-setting-box",attrs:{disabled:e.notInLicence(),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(" "),e.googleMeetSettings?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.enable_google_meet)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.googleMeetSettings.enabled,callback:function(t){e.$set(e.googleMeetSettings,"enabled",t)},expression:"googleMeetSettings.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.microsoftTeamsSettings?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.enable_microsoft_teams)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:8}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.microsoftTeamsSettings.enabled,callback:function(t){e.$set(e.microsoftTeamsSettings,"enabled",t)},expression:"microsoftTeamsSettings.enabled"}})],1)],1)],1):e._e(),e._v(" "),e.lessonSpaceSettings?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):e._e()],2),e._v(" "),n("LicenceBlock")],1):e._e()],1)},staticRenderFns:[]}},891:function(e,t,n){var o=n(90)(n(892),n(896),!1,null,null,null);e.exports=o.exports},892:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(91),i=n(668),r=n(336),s=n(338),a=n.n(s),l=n(337),c=n.n(l),u=n(697),d=n.n(u),p=n(660),h=n(874),f=n.n(h),m=n(893),g=n.n(m),v=n(654),y=n(658),b=n(657),_=n(664),w=n(655),x=n(678),C=n(698),S=n(711),k=n(699),E=(n.n(k),n(0)),T=n.n(E),D=n(733),P=n.n(D);function R(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)}t.default={mixins:[o.a,i.a,r.a,p.a,v.a,y.a,b.a,_.a,w.a,x.a,C.a,S.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:{enabled:!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.amount_fixed},{value:"percentage",label:this.$root.labels.amount_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_fifth,value:"fifth"},{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?(e.defaultEventTab="pricing",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&&T()(this.event.periods[this.event.periods.length-1].range.end,"YYYY-MM-DD HH:mm:ss").isBefore(T()())},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=T()(i,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"),r=T()(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,microsoftTeamsUrl:n.microsoftTeamsUrl,appleCalendarEventId:n.appleCalendarEventId})}),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?T()(this.event.bookingStartsDate):T()();if(t)return T()(n).format("YYYY-MM-DD").split("-");switch(e){case"date":return T()(n).toDate();case"moment":return T()(n);case"string":return T()(n).format("YYYY-MM-DD")}},getEndTicketRangeDate:function(e,t){var n=this.event.bookingEndsDate?T()(this.event.bookingEndsDate):T()(this.event.periods[0].range.start,"YYYY-MM-DD");if(t)return T()(n).format("YYYY-MM-DD").split("-");switch(e){case"date":return T()(n).toDate();case"moment":return T()(n);case"string":return T()(n).format("YYYY-MM-DD")}},getPeriodDates:function(e,t,n){for(var o=[];e.isSameOrBefore(t);){switch(n){case"date":o.push(T()(e).toDate());break;case"moment":o.push(T()(e));break;case"string":o.push(T()(e).format("YYYY-MM-DD"))}e.add(1,"days")}return o},clearRange:function(e){this.customTicketsDateRange[e].range=null,this.setDisabledTicketRangeDates(null,!1)},setDisabledTicketRangeDates:function(e,t){var n=this,o=[];this.customTicketsDateRange.forEach(function(t,i){if(t.range&&(null===e||e!==i)){var r=T()(t.range.start),s=T()(t.range.end);o=o.concat(n.getPeriodDates(r,s,"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,waitingListSpots:0,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)})},getMaxEndPeriod:function(){var e=this.event.periods.map(function(e){return e.range&&e.range.end}).filter(function(e){return e instanceof Date&&!isNaN(e)});return e.length>0?new Date(Math.max.apply(Math,R(e))):null},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,R(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(e){this.event.gallery=e},validationFailCallback:function(){"disabled"!==this.event.depositPayment&&this.event.deposit<=0?this.defaultEventTab="pricing":this.defaultEventTab="details"},tagsChanged:function(e){var t=e[e.length-1];-1===this.tags.indexOf(t)&&this.tags.push(t)},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,waitingListSpots:t.waitingListSpots,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:T()(n.startDate).toDate(),end:T()(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=T()(this.event.recurring.monthDate).toDate():this.event.recurring.monthDate=T()(this.event.periods[0].range.start).toDate()),this.event.periods[0].range&&T()(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=[];this.event.tags.forEach(function(e){o.push({name:e})});var i=this.prepareBookableEntityPaymentsForSave(JSON.parse(JSON.stringify(this.event.settings)));this.depositEnabled?this.event.depositPayment=this.depositPayment:this.event.depositPayment="disabled";for(var r=this.monthDate?this.monthDate:this.event.recurring.monthDate?this.event.recurring.monthDate:null,s=this.customTickets.map(function(e){return{id:e.id%1!=0?null:e.id,name:e.name,price:e.price,spots:e.spots,waitingListSpots:e.waitingListSpots,enabled:e.enabled,dateRanges:[],translations:e.translations}}),a=function(e){for(var n=0;n<t.customTicketsDateRange.length;n++)if(t.customTicketsDateRange[n].tickets.map(function(e){return e.name}).includes(s[e].name)){var o=t.customTicketsDateRange[n].tickets.filter(function(t){return t.name===s[e].name});t.customTicketsDateRange[n].range&&t.customTicketsDateRange[n].range.end&&t.customTicketsDateRange[n].range.start&&s[e].dateRanges.push({enabled:o[0].enabled,endDate:T()(t.customTicketsDateRange[n].range.end).format("YYYY-MM-DD"),startDate:T()(t.customTicketsDateRange[n].range.start).format("YYYY-MM-DD"),price:o[0].price})}},l=0;l<s.length;l++)a(l);s.forEach(function(e){e.dateRanges=JSON.stringify(e.dateRanges)});var c=JSON.parse(JSON.stringify(this.event.providers));if(this.currentUser&&"provider"===this.currentUser.type)if(this.event.organizerId===this.currentUser.id){var u=c.map(function(e){return e.id}).indexOf(this.event.organizerId);u>-1&&c.splice(u,1)}else if(!c.find(function(e){return e.id===t.currentUser.id})){var d=this.employees.find(function(e){return e.id===t.currentUser.id});c.push(d)}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:this.event.isRecurring&&this.event.recurring?{monthlyRepeat:this.monthlyRepeat,monthDate:"each"===this.monthlyRepeat&&r?this.getDateString(r)+" "+this.getTimeString(n[0].periodStart)+":00":null,monthlyOnRepeat:"on"===this.monthlyRepeat?this.monthlyOnRepeat:null,monthlyOnDay:"on"===this.monthlyRepeat?this.monthlyOnDay:null,cycleInterval:this.event.recurring.cycleInterval,cycle:this.event.recurring.cycle,order:this.event.recurring.order,until:this.event.recurring.until?this.getDateString(this.event.recurring.until)+" "+this.getTimeString(this.event.recurring.until)+":00":null}: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:o,providers:c,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(i),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:s,notifyParticipants:this.event.notifyParticipants,aggregatedPrice:this.event.aggregatedPrice}},errorCallback:function(e){var t=this;setTimeout(function(){"message"in e&&t.notify(t.$root.labels.error,e.message,"error")},200)},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(e){this.event.colorType=1,Array.from(e.target.parentNode.children).forEach(function(e){e.className.includes("color-active")&&e.classList.remove("color-active")}),e.target.className=e.target.className+" color-active",this.event.selectedColor=e.target.getAttribute("data-color")},showDialogTranslate:function(e,t){this.$emit("showDialogTranslate",e,void 0!==t?t:[])},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.$root.licence.isLite||this.$root.licence.isStarter||this.getZoomUsers()},updated:function(){this.instantiateDialog()},components:{LicenceBlock:a.a,LicenceBlockHeader:c.a,EntitySettings:f.a,DialogActions:d.a,ContentBlock:P.a,Money:k.Money,Gallery:g.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}}}}},893:function(e,t,n){var o=n(90)(n(894),n(895),!1,null,null,null);e.exports=o.exports},894:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(654),i=n(749),r=n.n(i),s=n(806),a=n.n(s);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:a.a,Draggable:r.a}}},895: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:[]}},896: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"},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,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(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&&!e.$root.licence.isLite&&!e.$root.licence.isStarter?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.googleCalendar.googleMeetEnabled&&t.googleMeetUrl&&!e.$root.licence.isLite&&!e.$root.licence.isStarter?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:12}},[n("p",[e._v(e._s(e.$root.labels.google_meet_link))])]),e._v(" "),n("el-col",{attrs:{sm:12}},[n("p",[n("a",{staticClass:"am-link",attrs:{href:t.googleMeetUrl}},[e._v(e._s(e.$root.labels.google_meet_join))])])])],1):e._e(),e._v(" "),e.$root.settings.outlookCalendar.microsoftTeamsEnabled&&t.microsoftTeamsUrl&&!e.$root.licence.isLite&&!e.$root.licence.isStarter?n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{sm:12}},[n("p",[e._v(e._s(e.$root.labels.microsoft_teams_link))])]),e._v(" "),n("el-col",{attrs:{sm:12}},[n("p",[n("a",{staticClass:"am-link",attrs:{href:t.microsoftTeamsUrl}},[e._v(e._s(e.$root.labels.microsoft_teams_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(" "),e.isCabinet&&e.notInLicence()?e._e():n("div",{staticClass:"am-section-grey",class:e.licenceClass()},[n("el-checkbox",{attrs:{disabled:e.notInLicence()},on:{change:e.changeRecurringCycle},model:{value:e.event.isRecurring,callback:function(t){e.$set(e.event,"isRecurring",t)},expression:"event.isRecurring"}},[e._v("\n "+e._s(e.$root.labels.event_recurring_enabled)+"\n ")]),e._v(" "),e.event.isRecurring?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(),e._v(" "),n("LicenceBlock")],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(),end:e.getMaxEndPeriod()}},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(),end:e.getMaxEndPeriod()}},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"},[e.locations.length?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,filterable:!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._e(),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||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():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._v(" "),!e.canManage()||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():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-select",{attrs:{"value-key":"id",clearable:"",placeholder:e.$root.labels.select,"popper-class":"am-dropdown-cabinet"},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._v(" "),!e.currentUser||"provider"!==e.currentUser.type||e.$root.licence.isLite||e.$root.licence.isStarter?e._e():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._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(" "),e.isCabinet&&e.notInLicence("starter")?e._e():n("div",{class:e.licenceClass("starter"),style:{marginLeft:e.notInLicence("starter")?"":"0px;",marginRight:e.notInLicence("starter")?"":"0px;"}},[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-select",{attrs:{disabled:e.notInLicence("starter"),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":""},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),e._v(" "),n("LicenceBlock",{attrs:{licence:"starter"}})],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"}},[0!==e.event.id&&e.event.bookings.length&&!e.$root.licence.isLite?n("el-row",{style:{wordBreak:"break-word"}},[n("div",{staticClass:"am-setting"},[n("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.custom_pricing_adjustment,closable:!1}})],1)]):e._e(),e._v(" "),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",[e.isCabinet&&e.notInLicence()?e._e():n("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass(),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.deposit_enabled)+"\n ")]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:5}},[n("el-switch",{attrs:{disabled:e.notInLicence(),"active-text":"","inactive-text":""},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",{attrs:{prop:"deposit",rules:e.rules.deposit}},[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&&e.event.aggregatedPrice?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(),e._v(" "),n("LicenceBlock")],1)]),e._v(" "),e.isCabinet&&e.notInLicence()?e._e():n("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClass(),style:{marginTop:"24px",overflow:"visible",cursor:0!==e.event.id&&e.event.bookings.length?"not-allowed":"auto"}},[n("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{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",{style:0!==e.event.id&&e.event.bookings.length&&{cursor:"not-allowed",pointerEvents:"none"},attrs:{disabled:e.notInLicence(),"active-text":"","inactive-text":""},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(" "),e.maxCustomCapacity?e._e():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("el-form-item",[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)}},model:{value:e.customTicketsDateRange[o].range,callback:function(t){e.$set(e.customTicketsDateRange[o],"range",t)},expression:"customTicketsDateRange[i].range"}}),e._v(" "),n("span",{staticClass:"am-v-date-picker-suffix el-input__suffix-inner",on:{click:function(t){return e.clearRange(o)}}},[n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close"})])],1)],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(),e._v(" "),n("LicenceBlock")],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)],1),e._v(" "),!e.notInLicence("starter")||e.licenceVisible()?n("el-tab-pane",{attrs:{label:e.$root.labels.customize,name:"customize"}},[n("LicenceBlockHeader",{attrs:{licence:"starter"}}),e._v(" "),e.showGallery?n("gallery",{class:e.licenceClassDisabled("starter"),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:e.licenceClassDisabled("starter")},[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||e.notInLicence("starter"),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:e.licenceClassDisabled("starter")},[n("el-checkbox",{attrs:{disabled:e.notInLicence("starter")},model:{value:e.event.show,callback:function(t){e.$set(e.event,"show",t)},expression:"event.show"}},[e._v("\n "+e._s(e.$root.labels.event_show_on_site)+"\n ")])],1)],1):e._e(),e._v(" "),(e.notInLicence("pro")?e.licenceVisible():e.$root.settings.appointments.waitingListEvents.enabled)?n("el-tab-pane",{attrs:{label:e.$root.labels.waiting_list,name:"waitingList"}},[n("LicenceBlockHeader",{attrs:{licence:"pro"}}),e._v(" "),n("div",{staticClass:"am-setting-box am-switch-box",class:e.licenceClassDisabled("pro")},[n("el-row",{staticStyle:{display:"flex"},attrs:{type:"flex",align:"middle",gutter:24}},[n("el-col",{attrs:{span:20}},[n("span",{staticStyle:{"line-height":"1"}},[e._v(e._s(e.$root.labels.events_show_waiting_list_booking_full))])]),e._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:4}},[n("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.event.settings.waitingList.enabled,callback:function(t){e.$set(e.event.settings.waitingList,"enabled",t)},expression:"event.settings.waitingList.enabled"}})],1)],1),e._v(" "),e.event.settings.waitingList.enabled?n("el-row",{staticStyle:{"margin-top":"24px"},attrs:{align:"middle",gutter:24}},[n("el-col",{staticStyle:{"margin-top":"24px"},attrs:{span:24}},[e._v("\n "+e._s(e.$root.labels.maximum_capacity)+":\n ")]),e._v(" "),n("el-col",{staticStyle:{"margin-top":"8px"},attrs:{span:24}},[n("el-input-number",{attrs:{min:1,"auto-complete":"off",disabled:e.customPricingEnabled&&!e.maxCustomCapacity},model:{value:e.event.settings.waitingList.maxCapacity,callback:function(t){e.$set(e.event.settings.waitingList,"maxCapacity",t)},expression:"event.settings.waitingList.maxCapacity"}})],1),e._v(" "),(e.isCabinet?!e.notInLicence():e.customPricingEnabled)?n("div",{class:e.licenceClass(),style:{padding:"12px",display:"flex",flexDirection:"column"}},[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:7}},[n("div",[e._v("\n "+e._s(e.$root.labels.name)+"\n ")])]),e._v(" "),n("el-col",{attrs:{span:10}}),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:7}},[n("el-input",{style:{marginBottom:"0px"},attrs:{disabled:!0,size:"small"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"ticket.name"}})],1),e._v(" "),n("el-col",{attrs:{span:10}}),e._v(" "),n("el-col",{attrs:{span:7}},[n("el-input-number",{style:{marginBottom:"0px",textAlign:"center"},attrs:{size:"small",min:0,disabled:!t.enabled||e.maxCustomCapacity},model:{value:t.waitingListSpots,callback:function(n){e.$set(t,"waitingListSpots",n)},expression:"ticket.waitingListSpots"}})],1)],1)})],2)],1)],1):e._e()],1):e._e(),e._v(" "),n("div",{staticClass:"am-waiting-list-limit-per-ticket-box"},[n("el-col",{attrs:{span:15}},[n("el-checkbox",{model:{value:e.event.settings.waitingList.maxExtraPeopleEnabled,callback:function(t){e.$set(e.event.settings.waitingList,"maxExtraPeopleEnabled",t)},expression:"event.settings.waitingList.maxExtraPeopleEnabled"}},[e._v("\n "+e._s(e.$root.labels.limit_extra_people)+"\n ")])],1),e._v(" "),n("el-col",{attrs:{span:9}},[n("el-input-number",{attrs:{disabled:!e.event.settings.waitingList.maxExtraPeopleEnabled,min:0,size:"small","auto-complete":"off"},model:{value:e.event.settings.waitingList.maxExtraPeople,callback:function(t){e.$set(e.event.settings.waitingList,"maxExtraPeople",t)},expression:"event.settings.waitingList.maxExtraPeople"}})],1)],1)],1):e._e()],1)],1):e._e(),e._v(" "),n("el-tab-pane",{attrs:{label:e.$root.labels.settings,name:"settings"}},[n("entity-settings",{attrs:{settings:e.settings,paymentsSettings:e.event.settings.payments,generalSettings:e.event.settings.general,lessonSpaceSettings:e.event.settings.lessonSpace,"google-meet-settings":e.event.settings.googleMeet,"microsoft-teams-settings":e.event.settings.microsoftTeams}})],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}:"rejected"===e.event.status?{yes:e.$root.labels.open,no:e.$root.labels.open}: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:[]}},936:function(e,t,n){var o=n(90)(n(939),n(940),!1,function(e){n(937)},null,null);e.exports=o.exports},937:function(e,t,n){var o=n(938);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n(681)("11863f75",o,!0,{})},938:function(e,t,n){(e.exports=n(676)(!1)).push([e.i,".am-amelia-banner-get-more{position:relative;background:radial-gradient(94.97% 235.95% at 26.13% 80.5%,#517df5 0,#002381 100%);padding:40px 80px;gap:10px;margin-bottom:20px}@media only screen and (max-width:1340px){.am-amelia-banner-get-more{padding:40px 30px}}@media only screen and (max-width:860px){.am-amelia-banner-get-more{padding:24px}}.am-amelia-banner-get-more-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.am-amelia-banner-get-more-content-left{width:50%}@media only screen and (max-width:1340px){.am-amelia-banner-get-more-content-left{width:40%}.am-amelia-banner-get-more-content-left img{width:100%;height:auto}}.am-amelia-banner-get-more-content-left .am-get-more-premium-sm{display:none}.am-amelia-banner-get-more-content-right{width:50%}@media only screen and (max-width:1340px){.am-amelia-banner-get-more-content-right{width:60%}}.am-amelia-banner-get-more-content-right-text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.am-amelia-banner-get-more-content-right-button-holder{width:50%}@media only screen and (max-width:460px){.am-amelia-banner-get-more-content-right-button-holder{width:100%}}.am-amelia-banner-get-more-content-right-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:26px}.am-amelia-banner-get-more-content-right-buttons .el-button{font-family:Amelia Roboto,sans-serif;padding:8px 16px;gap:10px;border-radius:7px;background:linear-gradient(351.76deg,#ffd601 -8.07%,#fcff7d 123.41%);min-width:302px;font-size:16px;font-weight:500;line-height:22px;text-align:center}.am-amelia-banner-get-more-content-right-buttons .el-button.am-upgrade-to-premium{color:#04080b}.am-amelia-banner-get-more-content-right-buttons .el-button.am-upgrade-to-premium:hover{border-color:#ffd601}.am-amelia-banner-get-more-content-right-buttons .el-button.am-learn-more{background:transparent;color:#fff;border:1px solid #fff}.am-amelia-banner-get-more-content-right-buttons .el-button.am-learn-more span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;gap:10px}@media only screen and (max-width:1600px){.am-amelia-banner-get-more-content-right-buttons .el-button{min-width:100%}}@media only screen and (max-width:1600px){.am-amelia-banner-get-more-content-right-buttons{gap:12px}}@media only screen and (max-width:460px){.am-amelia-banner-get-more-content-right-buttons{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}@media only screen and (max-width:860px){.am-amelia-banner-get-more-content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.am-amelia-banner-get-more-content-left{width:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex}.am-amelia-banner-get-more-content-left img{max-width:343px;margin-bottom:20px}.am-amelia-banner-get-more-content-left img.am-get-more-premium-sm{display:block}.am-amelia-banner-get-more-content-left img.am-get-more-premium{display:none}.am-amelia-banner-get-more-content-right{width:100%}}.am-amelia-banner-get-more-close-btn{cursor:pointer;height:20px;width:20px;position:absolute;right:10px;top:10px}.am-amelia-banner-text-holder{font-family:Amelia Roboto,sans-serif;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:8px;width:50%;font-size:18px;font-weight:500;line-height:24px;text-align:left;color:#fff!important}@media only screen and (max-width:460px){.am-amelia-banner-text-holder{width:100%}}",""])},939:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"GetPremiumBanner",data:function(){return{premiumBannerVisibility:!0,getMoreBanner:["Dedicated customer support","No hidden costs or add-ons","Monthly updates","Premium features","Unlimited number of employees","Numerous integrations"]}},created:function(){this.premiumBannerVisibility=this.$root.settings.activation.premiumBannerVisibility},methods:{goToWpAmeliaPricing:function(){window.open("https://wpamelia.com/pricing/?utm_source=amelia-lite&utm_medium=lite-upgrade&utm_content=amelia&utm_campaign=amelia-lite","_blank","noopener,noreferrer")},goToLiteVsPremium:function(){window.location="admin.php?page=wpamelia-lite-vs-premium"},closeForever:function(){this.premiumBannerVisibility=!1,this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{premiumBannerVisibility:!1}}).then(function(e){}).catch(function(e){console.log(e.message)})}}}},940:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.$root.licence.isLite&&e.premiumBannerVisibility?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"am-amelia-banner-get-more"},[n("a",{staticClass:"am-amelia-banner-get-more-close-btn",on:{click:e.closeForever}},[n("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#FFFFFF",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{opacity:"0.8",d:"M15 15L5 5M15 5L5 15",stroke:"#FFFFFF","stroke-linecap":"round"}})])]),e._v(" "),n("div",{staticClass:"am-amelia-banner-get-more-content"},[n("div",{staticClass:"am-amelia-banner-get-more-content-left"},[n("img",{staticClass:"am-get-more-premium",attrs:{src:e.$root.getUrl+"public/img/am-get-more-premium.svg"}}),e._v(" "),n("img",{staticClass:"am-get-more-premium-sm",attrs:{src:e.$root.getUrl+"public/img/am-get-more-premium-sm.svg"}})]),e._v(" "),n("div",{staticClass:"am-amelia-banner-get-more-content-right"},[n("div",{staticClass:"am-amelia-banner-get-more-content-right-text"},e._l(e.getMoreBanner,function(t){return n("div",{key:t,staticClass:"am-amelia-banner-text-holder"},[n("img",{attrs:{src:e.$root.getUrl+"public/img/check-white.svg"}}),e._v(" "+e._s(t)+"\n ")])}),0),e._v(" "),n("div",{staticClass:"am-amelia-banner-get-more-content-right-buttons"},[n("div",{staticClass:"am-amelia-banner-get-more-content-right-button-holder"},[n("el-button",{staticClass:"am-upgrade-to-premium",on:{click:e.goToWpAmeliaPricing}},[e._v("\n Upgrade to Premium\n ")])],1),e._v(" "),n("div",{staticClass:"am-amelia-banner-get-more-content-right-button-holder"},[n("el-button",{staticClass:"am-learn-more",on:{click:e.goToLiteVsPremium}},[e._v("\n Learn More "),n("img",{attrs:{src:e.$root.getUrl+"public/img/arrow-right.svg"}})])],1)])])])])]):e._e()},staticRenderFns:[]}},941:function(e,t,n){var o;!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var r=[],s=n.document,a=Object.getPrototypeOf,l=r.slice,c=r.concat,u=r.push,d=r.indexOf,p={},h=p.toString,f=p.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},_={type:!0,src:!0,noModule:!0};function w(e,t,n){var o,i=(t=t||s).createElement("script");if(i.text=e,n)for(o in _)n[o]&&(i[o]=n[o]);t.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[h.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},C.extend=C.fn.extend=function(){var e,t,n,o,i,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(o=e[t])&&(c&&o&&(C.isPlainObject(o)||(i=Array.isArray(o)))?(i?(i=!1,r=n&&Array.isArray(n)?n:[]):r=n&&C.isPlainObject(n)?n:{},s[t]=C.extend(c,r,o)):void 0!==o&&(s[t]=o));return s},C.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){w(e)},each:function(e,t){var n,o=0;if(k(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(S,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?C.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,i=e.length;o<n;o++)e[i++]=t[o];return e.length=i,e},grep:function(e,t,n){for(var o=[],i=0,r=e.length,s=!n;i<r;i++)!t(e[i],i)!==s&&o.push(e[i]);return o},map:function(e,t,n){var o,i,r=0,s=[];if(k(e))for(o=e.length;r<o;r++)null!=(i=t(e[r],r,n))&&s.push(i);else for(r in e)null!=(i=t(e[r],r,n))&&s.push(i);return c.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=r[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,o,i,r,s,a,l,c,u,d,p,h,f,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,x=0,C=0,S=se(),k=se(),E=se(),T=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,P=[],R=P.pop,O=P.push,I=P.push,A=P.slice,M=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",L="\\["+F+"*("+N+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+F+"*\\]",B=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",j=new RegExp(F+"+","g"),H=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),q=new RegExp("^"+F+"*,"+F+"*"),z=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),U=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),Y=new RegExp(B),V=new RegExp("^"+N+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ee=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{I.apply(P=A.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){I={apply:P.length?function(e,t){O.apply(e,A.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function re(e,t,o,i){var r,a,c,u,d,f,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return o;if(!i&&((t?t.ownerDocument||t:w)!==h&&p(t),t=t||h,m)){if(11!==x&&(d=J.exec(e)))if(r=d[1]){if(9===x){if(!(c=t.getElementById(r)))return o;if(c.id===r)return o.push(c),o}else if(y&&(c=y.getElementById(r))&&b(t,c)&&c.id===r)return o.push(c),o}else{if(d[2])return I.apply(o,t.getElementsByTagName(e)),o;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(o,t.getElementsByClassName(r)),o}if(n.qsa&&!E[e+" "]&&(!g||!g.test(e))){if(1!==x)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=_),a=(f=s(e)).length;a--;)f[a]="#"+u+" "+ve(f[a]);v=f.join(","),y=X.test(e)&&me(t.parentNode)||t}if(v)try{return I.apply(o,y.querySelectorAll(v)),o}catch(e){}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,o,i)}function se(){var e=[];return function t(n,i){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[_]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)o.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function fe(e){return ae(function(t){return t=+t,ae(function(n,o){for(var i,r=e([],n.length,t),s=r.length;s--;)n[i=r[s]]&&(n[i]=!(o[i]=n[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=re.setDocument=function(e){var t,i,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(f=(h=s).documentElement,m=!r(h),w!==h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=le(function(e){return f.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length}),n.getById?(o.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,o,i,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(i=t.getElementsByName(e),o=0;r=i[o++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],i=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[i++];)1===n.nodeType&&o.push(n);return o}return r},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(h.querySelectorAll))&&(le(function(e){f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+$+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(f.compareDocumentPosition),b=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e===h||e.ownerDocument===w&&b(w,e)?-1:t===h||t.ownerDocument===w&&b(w,t)?1:u?M(u,e)-M(u,t):0:4&o?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,o=0,i=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!i||!r)return e===h?-1:t===h?1:i?-1:r?1:u?M(u,e)-M(u,t):0;if(i===r)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[o]===a[o];)o++;return o?ue(s[o],a[o]):s[o]===w?-1:a[o]===w?1:0},h):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(U,"='$1']"),n.matchesSelector&&m&&!E[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var o=y.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var i=o.attrHandle[t.toLowerCase()],r=i&&D.call(o.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ne)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,o=[],i=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[r++];)t===e[r]&&(i=o.push(r));for(;i--;)e.splice(o[i],1)}return u=null,e},i=re.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=i(t);return n},(o=re.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var i=re.attr(o,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,i){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===o&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,h,f,m=r!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(r){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(b=(h=(c=(u=(d=(p=g)[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[x,h,b];break}}else if(y&&(b=h=(c=(u=(d=(p=t)[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((u=(d=p[_]||(p[_]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=i)===o||b%o==0&&b/o>=0}}},PSEUDO:function(e,t){var n,i=o.pseudos[e]||o.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var o,r=i(e,t),s=r.length;s--;)e[o=M(e,r[s])]=!(n[o]=r[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],o=a(e.replace(H,"$1"));return o[_]?ae(function(e,t,n,i){for(var r,s=o(e,null,i,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Q,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return V.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Q,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,n){return[n<0?n+t:n]}),even:fe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:fe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:fe(function(e,t,n){for(var o=n<0?n+t:n;--o>=0;)e.push(o);return e}),gt:fe(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=pe(t);function ge(){}function ve(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function ye(e,t,n){var o=t.dir,i=t.next,r=i||o,s=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){for(;t=t[o];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,p=[x,a];if(l){for(;t=t[o];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||s)if(u=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[o]||t;else{if((c=u[r])&&c[0]===x&&c[1]===a)return p[2]=c[2];if(u[r]=p,p[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,o){for(var i=e.length;i--;)if(!e[i](t,n,o))return!1;return!0}:e[0]}function _e(e,t,n,o,i){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,o,i)||(s.push(r),c&&t.push(a)));return s}function we(e,t,n,o,i,r){return o&&!o[_]&&(o=we(o)),i&&!i[_]&&(i=we(i,r)),ae(function(r,s,a,l){var c,u,d,p=[],h=[],f=s.length,m=r||function(e,t,n){for(var o=0,i=t.length;o<i;o++)re(e,t[o],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!r&&t?m:_e(m,p,e,a,l),v=n?i||(r?e:f||o)?[]:s:g;if(n&&n(g,v,a,l),o)for(c=_e(v,h),o(c,[],a,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d));if(r){if(i||e){if(i){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);i(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=i?M(r,d):p[u])>-1&&(r[c]=!(s[c]=d))}}else v=_e(v===s?v.splice(f,v.length):v),i?i(null,s,v,l):I.apply(s,v)})}function xe(e){for(var t,n,i,r=e.length,s=o.relative[e[0].type],a=s||o.relative[" "],l=s?1:0,u=ye(function(e){return e===t},a,!0),d=ye(function(e){return M(t,e)>-1},a,!0),p=[function(e,n,o){var i=!s&&(o||n!==c)||((t=n).nodeType?u(e,n,o):d(e,n,o));return t=null,i}];l<r;l++)if(n=o.relative[e[l].type])p=[ye(be(p),n)];else{if((n=o.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<r&&!o.relative[e[i].type];i++);return we(l>1&&be(p),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<i&&xe(e.slice(l,i)),i<r&&xe(e=e.slice(i)),i<r&&ve(e))}p.push(n)}return be(p)}return ge.prototype=o.filters=o.pseudos,o.setFilters=new ge,s=re.tokenize=function(e,t){var n,i,r,s,a,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=o.preFilter;a;){for(s in n&&!(i=q.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(r=[])),n=!1,(i=z.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(H," ")}),a=a.slice(n.length)),o.filter)!(i=G[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),r.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):k(e,l).slice(0)},a=re.compile=function(e,t){var n,i=[],r=[],a=E[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=xe(t[n]))[_]?i.push(a):r.push(a);(a=E(e,function(e,t){var n=t.length>0,i=e.length>0,r=function(r,s,a,l,u){var d,f,g,v=0,y="0",b=r&&[],_=[],w=c,C=r||i&&o.find.TAG("*",u),S=x+=null==w?1:Math.random()||.1,k=C.length;for(u&&(c=s===h||s||u);y!==k&&null!=(d=C[y]);y++){if(i&&d){for(f=0,s||d.ownerDocument===h||(p(d),a=!m);g=e[f++];)if(g(d,s||h,a)){l.push(d);break}u&&(x=S)}n&&((d=!g&&d)&&v--,r&&b.push(d))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,_,s,a);if(r){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=R.call(l));_=_e(_)}I.apply(l,_),u&&!r&&_.length>0&&v+t.length>1&&re.uniqueSort(l)}return u&&(x=S,c=w),b};return n?ae(r):r}(r,i))).selector=e}return a},l=re.select=function(e,t,n,i){var r,l,c,u,d,p="function"==typeof e&&e,h=!i&&s(e=p.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&o.relative[l[1].type]){if(!(t=(o.find.ID(c.matches[0].replace(Q,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=G.needsContext.test(e)?0:l.length;r--&&(c=l[r],!o.relative[u=c.type]);)if((d=o.find[u])&&(i=d(c.matches[0].replace(Q,ee),X.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(r,1),!(e=i.length&&ve(l)))return I.apply(n,i),n;break}}return(p||a(e,h))(i,t,!m,n,!t||X.test(e)&&me(t.parentNode)||t),n},n.sortStable=_.split("").sort(T).join("")===_,n.detectDuplicates=!!d,p(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce($,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),re}(n);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var T=function(e,t,n){for(var o=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;o.push(e)}return o},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},P=C.expr.match.needsContext;function R(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return y(t)?C.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return d.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?C.find.matchesSelector(o,e)?[o]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,o=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<o;t++)if(C.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)C.find(e,i[t],n);return o>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&P.test(e)?C(e):e||[],!1).length}});var A,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),O.test(o[1])&&C.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=s.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,A=C(s);var $=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,i=this.length,r=[],s="string"!=typeof e&&C(e);if(!P.test(e))for(;o<i;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?d.call(C(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return R(e,"iframe")?e.contentDocument:(R(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,o){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=C.filter(o,i)),this.length>1&&(F[e]||C.uniqueSort(i),$.test(e)&&i.reverse()),this.pushStack(i)}});var L=/[^\x20\t\r\n\f]+/g;function B(e){return e}function j(e){throw e}function H(e,t,n,o){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(L)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,o,i,r=[],s=[],a=-1,l=function(){for(i=i||e.once,o=t=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,i&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(a=r.length-1,s.push(n)),function t(n){C.each(n,function(n,o){y(o)?e.unique&&c.has(o)||r.push(o):o&&o.length&&"string"!==x(o)&&t(o)})}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;(n=C.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--}),this},has:function(e){return e?C.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return i=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return i=s=[],n||t||(r=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",i={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,o){var i=y(e[o[4]])&&e[o[4]];r[o[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,o,i){var r=0;function s(e,t,o,i){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e<r)){if((n=o.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?i?c.call(n,s(r,t,B,i),s(r,t,j,i)):(r++,c.call(n,s(r,t,B,i),s(r,t,j,i),s(r,t,B,t.notifyWith))):(o!==B&&(a=void 0,l=[n]),(i||t.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,u.stackTrace),e+1>=r&&(o!==j&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),n.setTimeout(u))}}return C.Deferred(function(n){t[0][3].add(s(0,n,y(i)?i:B,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:B)),t[2][3].add(s(0,n,y(o)?o:j))}).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},r={};return C.each(t,function(e,n){var s=n[2],a=n[5];i[n[1]]=s.add,a&&s.add(function(){o=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),r[n[0]]=function(){return r[n[0]+"With"](this===r?void 0:this,arguments),this},r[n[0]+"With"]=s.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,o=Array(n),i=l.call(arguments),r=C.Deferred(),s=function(e){return function(n){o[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||r.resolveWith(o,i)}};if(t<=1&&(H(e,r.done(s(n)).resolve,r.reject,!t),"pending"===r.state()||y(i[n]&&i[n].then)))return r.then();for(;n--;)H(i[n],s(n),r.reject);return r.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout(function(){throw e})};var z=C.Deferred();function U(){s.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),C.ready()}C.fn.ready=function(e){return z.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||z.resolveWith(s,[C]))}}),C.ready.then=z.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(C.ready):(s.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var Y=function(e,t,n,o,i,r,s){var a=0,l=e.length,c=null==n;if("object"===x(n))for(a in i=!0,n)Y(e,t,a,n[a],!0,r,s);else if(void 0!==o&&(i=!0,y(o)||(s=!0),c&&(s?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;a<l;a++)t(e[a],n,s?o:o.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):r},V=/^-ms-/,G=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace(G,W)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=C.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(o in t)i[K(o)]=t[o];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in o?[t]:t.match(L)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||C.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var X=new J,Q=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Q.hasData(e)||X.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,o,i,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(i=Q.get(r),1===r.nodeType&&!X.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(o=s[n].name).indexOf("data-")&&(o=K(o.slice(5)),ne(r,o,i[o]));X.set(r,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Q.set(this,e)}):Y(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Q.get(r,e))?n:void 0!==(n=ne(r,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),C.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=X.get(e,t),n&&(!o||Array.isArray(n)?o=X.access(e,t,C.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),o=n.length,i=n.shift(),r=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===t&&n.unshift("inprogress"),delete r.stop,i.call(e,function(){C.dequeue(e,t)},r)),!o&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:C.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each(function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,i=C.Deferred(),r=this,s=this.length,a=function(){--o||i.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=X.get(r[s],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(a));return a(),i.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&C.contains(e.ownerDocument,e)&&"none"===C.css(e,"display")},ae=function(e,t,n,o){var i,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in i=n.apply(e,o||[]),t)e.style[r]=s[r];return i};function le(e,t,n,o){var i,r,s=20,a=o?function(){return o.cur()}:function(){return C.css(e,t,"")},l=a(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),u=(C.cssNumber[t]||"px"!==c&&+l)&&ie.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)C.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,C.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=u,o.end=i)),i}var ce={};function ue(e){var t,n=e.ownerDocument,o=e.nodeName,i=ce[o];return i||(t=n.body.appendChild(n.createElement(o)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ce[o]=i,i)}function de(e,t){for(var n,o,i=[],r=0,s=e.length;r<s;r++)(o=e[r]).style&&(n=o.style.display,t?("none"===n&&(i[r]=X.get(o,"display")||null,i[r]||(o.style.display="")),""===o.style.display&&se(o)&&(i[r]=ue(o))):"none"!==n&&(i[r]="none",X.set(o,"display",n)));for(r=0;r<s;r++)null!=i[r]&&(e[r].style.display=i[r]);return e}C.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?C(this).show():C(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,fe=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&R(e,t)?C.merge([e],n):n}function ve(e,t){for(var n=0,o=e.length;n<o;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ye,be,_e=/<|&#?\w+;/;function we(e,t,n,o,i){for(var r,s,a,l,c,u,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===x(r))C.merge(p,r.nodeType?[r]:r);else if(_e.test(r)){for(s=s||d.appendChild(t.createElement("div")),a=(he.exec(r)||["",""])[1].toLowerCase(),l=me[a]||me._default,s.innerHTML=l[1]+C.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;C.merge(p,s.childNodes),(s=d.firstChild).textContent=""}else p.push(t.createTextNode(r));for(d.textContent="",h=0;r=p[h++];)if(o&&C.inArray(r,o)>-1)i&&i.push(r);else if(c=C.contains(r.ownerDocument,r),s=ge(d.appendChild(r),"script"),c&&ve(s),n)for(u=0;r=s[u++];)fe.test(r.type||"")&&n.push(r);return d}ye=s.createDocumentFragment().appendChild(s.createElement("div")),(be=s.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),v.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var xe=s.documentElement,Ce=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Te(){return!1}function De(){try{return s.activeElement}catch(e){}}function Pe(e,t,n,o,i,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(o=o||n,n=void 0),t)Pe(e,a,n,o,t[a],r);return e}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===r&&(s=i,(i=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,i,o,n)})}C.event={global:{},add:function(e,t,n,o,i){var r,s,a,l,c,u,d,p,h,f,m,g=X.get(e);if(g)for(n.handler&&(n=(r=n).handler,i=r.selector),i&&C.find.matchesSelector(xe,i),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)h=m=(a=ke.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h&&(d=C.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=C.event.special[h]||{},u=C.extend({type:h,origType:m,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:f.join(".")},r),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,f,s)||e.addEventListener&&e.addEventListener(h,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),C.event.global[h]=!0)},remove:function(e,t,n,o,i){var r,s,a,l,c,u,d,p,h,f,m,g=X.hasData(e)&&X.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(h=m=(a=ke.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},p=l[h=(o?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)u=p[r],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(p.splice(r,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||C.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)C.event.remove(e,h+t[c],n,o,!0);C.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,o,i,r,s,a=C.event.fix(e),l=new Array(arguments.length),c=(X.get(this,"events")||{})[a.type]||[],u=C.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(o=((C.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,l))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,o,i,r,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[i=(o=t[n]).selector+" "]&&(s[i]=o.needsContext?C(i,this).index(c)>-1:C.find(i,this,null,[c]).length),s[i]&&r.push(o);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==De()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===De()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&R(this,"input"))return this.click(),!1},_default:function(e){return R(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ce.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=e.relatedTarget,i=e.handleObj;return o&&(o===this||C.contains(this,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),C.fn.extend({on:function(e,t,n,o){return Pe(this,e,t,n,o)},one:function(e,t,n,o){return Pe(this,e,t,n,o,1)},off:function(e,t,n){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,C(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){C.event.remove(this,e,n,t)})}});var Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Oe=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,o,i,r,s,a,l,c;if(1===t.nodeType){if(X.hasData(e)&&(r=X.access(e),s=X.set(t,r),c=r.events))for(i in delete s.handle,s.events={},c)for(n=0,o=c[i].length;n<o;n++)C.event.add(t,i,c[i][n]);Q.hasData(e)&&(a=Q.access(e),l=C.extend({},a),Q.set(t,l))}}function Le(e,t,n,o){t=c.apply([],t);var i,r,s,a,l,u,d=0,p=e.length,h=p-1,f=t[0],m=y(f);if(m||p>1&&"string"==typeof f&&!v.checkClone&&Ie.test(f))return e.each(function(i){var r=e.eq(i);m&&(t[0]=f.call(this,i,r.html())),Le(r,t,n,o)});if(p&&(r=(i=we(t,e[0].ownerDocument,!1,e,o)).firstChild,1===i.childNodes.length&&(i=r),r||o)){for(a=(s=C.map(ge(i,"script"),$e)).length;d<p;d++)l=i,d!==h&&(l=C.clone(l,!0,!0),a&&C.merge(s,ge(l,"script"))),n.call(e[d],l,d);if(a)for(u=s[s.length-1].ownerDocument,C.map(s,Fe),d=0;d<a;d++)l=s[d],fe.test(l.type||"")&&!X.access(l,"globalEval")&&C.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&C._evalUrl(l.src):w(l.textContent.replace(Ae,""),u,l))}return e}function Be(e,t,n){for(var o,i=t?C.filter(t,e):e,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||C.cleanData(ge(o)),o.parentNode&&(n&&C.contains(o.ownerDocument,o)&&ve(ge(o,"script")),o.parentNode.removeChild(o));return e}C.extend({htmlPrefilter:function(e){return e.replace(Re,"<$1></$2>")},clone:function(e,t,n){var o,i,r,s,a,l,c,u=e.cloneNode(!0),d=C.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=ge(u),o=0,i=(r=ge(e)).length;o<i;o++)a=r[o],l=s[o],void 0,"input"===(c=l.nodeName.toLowerCase())&&pe.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||ge(e),s=s||ge(u),o=0,i=r.length;o<i;o++)Ne(r[o],s[o]);else Ne(e,u);return(s=ge(u,"script")).length>0&&ve(s,!d&&ge(e,"script")),u},cleanData:function(e){for(var t,n,o,i=C.event.special,r=0;void 0!==(n=e[r]);r++)if(Z(n)){if(t=n[X.expando]){if(t.events)for(o in t.events)i[o]?C.event.remove(n,o):C.removeEvent(n,o,t.handle);n[X.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return Y(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return Y(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!me[(he.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(ge(this)),n&&n.replaceChild(t,this))},e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){C.fn[e]=function(e){for(var n,o=[],i=C(e),r=i.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),C(i[s])[t](n),u.apply(o,n.get());return this.pushStack(o)}});var je=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},qe=new RegExp(re.join("|"),"i");function ze(e,t,n){var o,i,r,s,a=e.style;return(n=n||He(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||C.contains(e.ownerDocument,e)||(s=C.style(e,t)),!v.pixelBoxStyles()&&je.test(s)&&qe.test(t)&&(o=a.width,i=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=i,a.maxWidth=r)),void 0!==s?s+"":s}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xe.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);o="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",r=36===u.offsetWidth||"absolute",xe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var o,i,r,a,l,c=s.createElement("div"),u=s.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),o},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r}}))}();var Ye=/^(none|table(?!-c[ea]).+)/,Ve=/^--/,Ge={position:"absolute",visibility:"hidden",display:"block"},We={letterSpacing:"0",fontWeight:"400"},Ke=["Webkit","Moz","ms"],Ze=s.createElement("div").style;function Je(e){var t=C.cssProps[e];return t||(t=C.cssProps[e]=function(e){if(e in Ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ze)return e}(e)||e),t}function Xe(e,t,n){var o=ie.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function Qe(e,t,n,o,i,r){var s="width"===t?1:0,a=0,l=0;if(n===(o?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=C.css(e,n+re[s],!0,i)),o?("content"===n&&(l-=C.css(e,"padding"+re[s],!0,i)),"margin"!==n&&(l-=C.css(e,"border"+re[s]+"Width",!0,i))):(l+=C.css(e,"padding"+re[s],!0,i),"padding"!==n?l+=C.css(e,"border"+re[s]+"Width",!0,i):a+=C.css(e,"border"+re[s]+"Width",!0,i));return!o&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))),l}function et(e,t,n){var o=He(e),i=ze(e,t,o),r="border-box"===C.css(e,"boxSizing",!1,o),s=r;if(je.test(i)){if(!n)return i;i="auto"}return s=s&&(v.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===C.css(e,"display",!1,o))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(i=parseFloat(i)||0)+Qe(e,t,n||(r?"border":"content"),s,o,i)+"px"}function tt(e,t,n,o,i){return new tt.prototype.init(e,t,n,o,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,r,s,a=K(t),l=Ve.test(t),c=e.style;if(l||(t=Je(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,o))?i:c[t];"string"===(r=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=le(e,t,i),r="number"),null!=n&&n==n&&("number"===r&&(n+=i&&i[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,o))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,o){var i,r,s,a=K(t);return Ve.test(t)||(t=Je(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=ze(e,t,o)),"normal"===i&&t in We&&(i=We[t]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),C.each(["height","width"],function(e,t){C.cssHooks[t]={get:function(e,n,o){if(n)return!Ye.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,o):ae(e,Ge,function(){return et(e,t,o)})},set:function(e,n,o){var i,r=He(e),s="border-box"===C.css(e,"boxSizing",!1,r),a=o&&Qe(e,t,o,s,r);return s&&v.scrollboxSize()===r.position&&(a-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-Qe(e,t,"border",!1,r)-.5)),a&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),Xe(0,n,a)}}}),C.cssHooks.marginLeft=Ue(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var o=0,i={},r="string"==typeof n?n.split(" "):[n];o<4;o++)i[e+re[o]+t]=r[o]||r[o-2]||r[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=Xe)}),C.fn.extend({css:function(e,t){return Y(this,function(e,t,n){var o,i,r={},s=0;if(Array.isArray(t)){for(o=He(e),i=t.length;s<i;s++)r[t[s]]=C.css(e,t[s],!1,o);return r}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,arguments.length>1)}}),C.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,o,i,r){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[C.cssProps[e.prop]]&&!C.cssHooks[e.prop]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=tt.prototype.init,C.fx.step={};var nt,ot,it=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function st(){ot&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,C.fx.interval),C.fx.tick())}function at(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function lt(e,t){var n,o=0,i={height:e};for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=re[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var o,i=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),r=0,s=i.length;r<s;r++)if(o=i[r].call(n,t,e))return o}function ut(e,t,n){var o,i,r=0,s=ut.prefilters.length,a=C.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=nt||at(),n=Math.max(0,c.startTime+c.duration-t),o=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(o);return a.notifyWith(e,[c,o,n]),o<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||at(),duration:n.duration,tweens:[],createTween:function(t,n){var o=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(i)return this;for(i=!0;n<o;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,o,i,r,s;for(n in e)if(i=t[o=K(n)],r=e[n],Array.isArray(r)&&(i=r[1],r=e[n]=r[0]),n!==o&&(e[o]=r,delete e[n]),(s=C.cssHooks[o])&&"expand"in s)for(n in r=s.expand(r),delete e[o],r)n in e||(e[n]=r[n],t[n]=i);else t[o]=i}(u,c.opts.specialEasing);r<s;r++)if(o=ut.prefilters[r].call(c,e,u,c.opts))return y(o.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=o.stop.bind(o)),o;return C.map(u,ct,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(L);for(var n,o=0,i=e.length;o<i;o++)n=e[o],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,i,r,s,a,l,c,u,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&se(e),g=X.get(e,"fxshow");for(o in n.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[o],it.test(i)){if(delete t[o],r=r||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[o])continue;m=!0}h[o]=g&&g[o]||C.style(e,o)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(o in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=X.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=C.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=X.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&de([e],!0),p.done(function(){for(o in m||de([e]),X.remove(e,"fxshow"),h)C.style(e,o,h[o])})),l=ct(m?g[o]:0,o,p),o in g||(g[o]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),C.speed=function(e,t,n){var o=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in C.fx.speeds?o.duration=C.fx.speeds[o.duration]:o.duration=C.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&C.dequeue(this,o.queue)},o},C.fn.extend({fadeTo:function(e,t,n,o){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var i=C.isEmptyObject(e),r=C.speed(t,n,o),s=function(){var t=ut(this,C.extend({},e),r);(i||X.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",r=C.timers,s=X.get(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&rt.test(i)&&o(s[i]);for(i=r.length;i--;)r[i].elem!==this||null!=e&&r[i].queue!==e||(r[i].anim.stop(n),t=!1,r.splice(i,1));!t&&n||C.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=X.get(this),o=n[e+"queue"],i=n[e+"queueHooks"],r=C.timers,s=o?o.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),C.each(["toggle","show","hide"],function(e,t){var n=C.fn[t];C.fn[t]=function(e,o,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,o,i)}}),C.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){C.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),nt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ot||(ot=!0,st())},C.fx.stop=function(){ot=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,o){var i=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(i)}})},function(){var e=s.createElement("input"),t=s.createElement("select").appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var dt,pt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return Y(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,n):(1===r&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(o=i.get(e,t))?o:null==(o=C.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&R(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[o++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||C.find.attr;pt[t]=function(e,t,o){var i,r,s=t.toLowerCase();return o||(r=pt[s],pt[s]=i,i=null!=n(e,t,o)?s:null,pt[s]=r),i}});var ht=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function mt(e){return(e.match(L)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}C.fn.extend({prop:function(e,t){return Y(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:e[t]=n:i&&"get"in i&&null!==(o=i.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,o,i,r,s,a,l=0;if(y(e))return this.each(function(t){C(this).addClass(e.call(this,t,gt(this)))});if((t=vt(e)).length)for(;n=this[l++];)if(i=gt(n),o=1===n.nodeType&&" "+mt(i)+" "){for(s=0;r=t[s++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");i!==(a=mt(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,i,r,s,a,l=0;if(y(e))return this.each(function(t){C(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(i=gt(n),o=1===n.nodeType&&" "+mt(i)+" "){for(s=0;r=t[s++];)for(;o.indexOf(" "+r+" ")>-1;)o=o.replace(" "+r+" "," ");i!==(a=mt(o))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,i,r,s;if(o)for(i=0,r=C(this),s=vt(e);t=s[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+mt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;C.fn.extend({val:function(e){var t,n,o,i=this[0];return arguments.length?(o=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=o?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(yt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:mt(C.text(e))}},select:{get:function(e){var t,n,o,i=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:i.length;for(o=r<0?l:s?r:0;o<l;o++)if(((n=i[o]).selected||o===r)&&!n.disabled&&(!n.parentNode.disabled||!R(n.parentNode,"optgroup"))){if(t=C(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,o,i=e.options,r=C.makeArray(t),s=i.length;s--;)((o=i[s]).selected=C.inArray(C.valHooks.option.get(o),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,o,i){var r,a,l,c,u,d,p,h,m=[o||s],g=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=l=o=o||s,3!==o.nodeType&&8!==o.nodeType&&!bt.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(g=(v=g.split(".")).shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:C.makeArray(t,[e]),p=C.event.special[g]||{},i||!p.trigger||!1!==p.trigger.apply(o,t))){if(!i&&!p.noBubble&&!b(o)){for(c=p.delegateType||g,bt.test(c+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),l=a;l===(o.ownerDocument||s)&&m.push(l.defaultView||l.parentWindow||n)}for(r=0;(a=m[r++])&&!e.isPropagationStopped();)h=a,e.type=r>1?c:p.bindType||g,(d=(X.get(a,"events")||{})[e.type]&&X.get(a,"handle"))&&d.apply(a,t),(d=u&&a[u])&&d.apply&&Z(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),t)||!Z(o)||u&&y(o[g])&&!b(o)&&((l=o[u])&&(o[u]=null),C.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,_t),o[g](),e.isPropagationStopped()&&h.removeEventListener(g,_t),C.event.triggered=void 0,l&&(o[u]=l)),e.result}},simulate:function(e,t,n){var o=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(o,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var o=this.ownerDocument||this,i=X.access(o,t);i||o.addEventListener(e,n,!0),X.access(o,t,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this,i=X.access(o,t)-1;i?X.access(o,t,i):(o.removeEventListener(e,n,!0),X.remove(o,t))}}});var wt=n.location,xt=Date.now(),Ct=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,o){var i;if(Array.isArray(t))C.each(t,function(t,i){n||St.test(e)?o(e,i):Dt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==x(t))o(e,t);else for(i in t)Dt(e+"["+i+"]",t[i],n,o)}C.param=function(e,t){var n,o=[],i=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return o.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var Pt=/%20/g,Rt=/#.*$/,Ot=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,At=/^(?:GET|HEAD)$/,Mt=/^\/\//,$t={},Ft={},Nt="*/".concat("*"),Lt=s.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,i=0,r=t.toLowerCase().match(L)||[];if(y(n))for(;o=r[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function jt(e,t,n,o){var i={},r=e===Ft;function s(a){var l;return i[a]=!0,C.each(e[a]||[],function(e,a){var c=a(t,n,o);return"string"!=typeof c||r||i[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Ht(e,t){var n,o,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:o||(o={}))[n]=t[n]);return o&&C.extend(!0,e,o),e}Lt.href=wt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,C.ajaxSettings),t):Ht(C.ajaxSettings,e)},ajaxPrefilter:Bt($t),ajaxTransport:Bt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,i,r,a,l,c,u,d,p,h,f=C.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=f.statusCode||{},_={},w={},x="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=It.exec(r);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return o&&o.abort(t),k(0,t),this}};if(v.promise(S),f.url=((e||f.url||wt.href)+"").replace(Mt,wt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(L)||[""],null==f.crossDomain){c=s.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Lt.protocol+"//"+Lt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),jt($t,f,t,S),u)return S;for(p in(d=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!At.test(f.type),i=f.url.replace(Rt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pt,"+")):(h=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Ct.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ot,"$1"),h=(Ct.test(i)?"&":"?")+"_="+xt+++h),f.url=i+h),f.ifModified&&(C.lastModified[i]&&S.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&S.setRequestHeader("If-None-Match",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Nt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(m,S,f)||u))return S.abort();if(x="abort",y.add(f.complete),S.done(f.success),S.fail(f.error),o=jt(Ft,f,t,S)){if(S.readyState=1,d&&g.trigger("ajaxSend",[S,f]),u)return S;f.async&&f.timeout>0&&(l=n.setTimeout(function(){S.abort("timeout")},f.timeout));try{u=!1,o.send(_,k)}catch(e){if(u)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,s,a){var c,p,h,_,w,x=t;u||(u=!0,l&&n.clearTimeout(l),o=void 0,r=a||"",S.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(_=function(e,t,n){for(var o,i,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(i in a)if(a[i]&&a[i].test(o)){l.unshift(i);break}if(l[0]in n)r=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){r=i;break}s||(s=i)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,S,s)),_=function(e,t,n,o){var i,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(i in c)if((a=i.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,_,S,c),c?(f.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=_.state,p=_.data,c=!(h=_.error))):(h=x,!e&&x||(x="error",e<0&&(e=0))),S.status=e,S.statusText=(t||x)+"",c?v.resolveWith(m,[p,x,S]):v.rejectWith(m,[S,x,h]),S.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[S,f,c?p:h]),y.fireWith(m,[S,x]),d&&(g.trigger("ajaxComplete",[S,f]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,o,i){return y(n)&&(i=i||o,o=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:o},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},zt=C.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,C.ajaxTransport(function(e){var t,o;if(v.cors||zt&&!e.crossDomain)return{send:function(i,r){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=o=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(qt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),o=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=o:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&o()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,i){t=C("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ut,Yt=[],Vt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,o){var i,r,s,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||C.error(i+" was not called"),s[0]},e.dataTypes[0]="json",r=n[i],n[i]=function(){s=arguments},o.always(function(){void 0===r?C(n).removeProp(i):n[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Yt.push(i)),s&&y(r)&&r(s[0]),s=r=void 0}),"script"}),v.createHTMLDocument=((Ut=s.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((o=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(o)):t=s),i=O.exec(e),r=!n&&[],i?[t.createElement(i[1])]:(i=we([e],t,r),r&&r.length&&C(r).remove(),C.merge([],i.childNodes)));var o,i,r},C.fn.load=function(e,t,n){var o,i,r,s=this,a=e.indexOf(" ");return a>-1&&(o=mt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(o?C("<div>").append(C.parseHTML(e)).find(o):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var o,i,r,s,a,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(o=u.position()).top,i=o.left):(s=parseFloat(r)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],i={top:0,left:0};if("fixed"===C.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(o,"marginTop",!0),left:t.left-i.left-C.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||xe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(o){return Y(this,function(e,o,i){var r;if(b(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===i)return r?r[t]:e[o];r?r.scrollTo(n?r.pageXOffset:i,n?i:r.pageYOffset):e[o]=i},e,o,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=Ue(v.pixelPosition,function(e,n){if(n)return n=ze(e,t),je.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){C.fn[o]=function(i,r){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return Y(this,function(t,n,i){var r;return b(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?C.css(t,n,a):C.style(t,n,i,a)},t,s?i:void 0,s)}})}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),C.proxy=function(e,t){var n,o,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=l.call(arguments,2),(i=function(){return e.apply(t||this,o.concat(l.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=R,C.isFunction=y,C.isWindow=b,C.camelCase=K,C.type=x,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(o=function(){return C}.apply(t,[]))||(e.exports=o);var Gt=n.jQuery,Wt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Wt),e&&n.jQuery===C&&(n.jQuery=Gt),C},i||(n.jQuery=n.$=C),C})},991:function(e,t,n){var o;"undefined"!=typeof self&&self,o=function(e,t){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=236)}([function(t,n){t.exports=e},,function(e,t){var n=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])};t.__extends=function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}},function(e,n){e.exports=t},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(3);function r(e){e.height("")}function s(e){var t,n=e[0].offsetWidth-e[0].clientWidth,o=e[0].offsetHeight-e[0].clientHeight;return n=a(n),t={left:0,right:0,top:0,bottom:o=a(o)},!function(){null===l&&(e=i("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=e.children().offset().left>e.offset().left,e.remove(),l=t);var e,t;return l}()||"rtl"!==e.css("direction")?t.right=n:t.left=n,t}function a(e){return e=Math.max(0,e),e=Math.round(e)}t.compensateScroll=function(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})},t.uncompensateScroll=function(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})},t.disableCursor=function(){i("body").addClass("fc-not-allowed")},t.enableCursor=function(){i("body").removeClass("fc-not-allowed")},t.distributeHeight=function(e,t,n){var o=Math.floor(t/e.length),s=Math.floor(t-o*(e.length-1)),a=[],l=[],c=[],u=0;r(e),e.each(function(t,n){var r=t===e.length-1?s:o,d=i(n).outerHeight(!0);d<r?(a.push(n),l.push(d),c.push(i(n).height())):u+=d}),n&&(t-=u,o=Math.floor(t/a.length),s=Math.floor(t-o*(a.length-1))),i(a).each(function(e,t){var n=e===a.length-1?s:o,r=l[e],u=n-(r-c[e]);r<n&&i(t).height(u)})},t.undistributeHeight=r,t.matchCellWidths=function(e){var t=0;return e.find("> *").each(function(e,n){var o=i(n).outerWidth();o>t&&(t=o)}),t++,e.width(t),t},t.subtractInnerElHeight=function(e,t){var n,o=e.add(t);return o.css({position:"relative",left:-1}),n=e.outerHeight()-t.outerHeight(),o.css({position:"",left:""}),n},t.getScrollParent=function(e){var t=e.css("position"),n=e.parents().filter(function(){var e=i(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&n.length?n:i(e[0].ownerDocument||document)},t.getOuterRect=function(e,t){var n=e.offset(),o=n.left-(t?t.left:0),i=n.top-(t?t.top:0);return{left:o,right:o+e.outerWidth(),top:i,bottom:i+e.outerHeight()}},t.getClientRect=function(e,t){var n=e.offset(),o=s(e),i=n.left+c(e,"border-left-width")+o.left-(t?t.left:0),r=n.top+c(e,"border-top-width")+o.top-(t?t.top:0);return{left:i,right:i+e[0].clientWidth,top:r,bottom:r+e[0].clientHeight}},t.getContentRect=function(e,t){var n=e.offset(),o=n.left+c(e,"border-left-width")+c(e,"padding-left")-(t?t.left:0),i=n.top+c(e,"border-top-width")+c(e,"padding-top")-(t?t.top:0);return{left:o,right:o+e.width(),top:i,bottom:i+e.height()}},t.getScrollbarWidths=s;var l=null;function c(e,t){return parseFloat(e.css(t))||0}function u(e){e.preventDefault()}function d(e,t,n,o,i){if(n.func)return n.func(e,t);var r=e[n.field],s=t[n.field];return null==r&&o&&(r=o[n.field]),null==s&&i&&(s=i[n.field]),p(r,s)*(n.order||1)}function p(e,t){return e||t?null==t?-1:null==e?1:"string"===i.type(e)||"string"===i.type(t)?String(e).localeCompare(String(t)):e-t:0}function h(e,n){var o,i,r;for(o=0;o<t.unitsDesc.length&&!((r=f(i=t.unitsDesc[o],e,n))>=1&&_(r));o++);return i}function f(e,t,n){return null!=n?n.diff(t,e,!0):o.isDuration(t)?t.as(e):t.end.diff(t.start,e,!0)}function m(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;if(n&&n.log)return n.log.apply(n,e)}t.isPrimaryMouseButton=function(e){return 1===e.which&&!e.ctrlKey},t.getEvX=function(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageX:e.pageX},t.getEvY=function(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageY:e.pageY},t.getEvIsTouch=function(e){return/^touch/.test(e.type)},t.preventSelection=function(e){e.addClass("fc-unselectable").on("selectstart",u)},t.allowSelection=function(e){e.removeClass("fc-unselectable").off("selectstart",u)},t.preventDefault=u,t.intersectRects=function(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n},t.constrainPoint=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},t.getRectCenter=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},t.diffPoints=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},t.parseFieldSpecs=function(e){var t,n,o=[],r=[];for("string"==typeof e?r=e.split(/\s*,\s*/):"function"==typeof e?r=[e]:i.isArray(e)&&(r=e),t=0;t<r.length;t++)"string"==typeof(n=r[t])?o.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&o.push({func:n});return o},t.compareByFieldSpecs=function(e,t,n,o,i){var r,s;for(r=0;r<n.length;r++)if(s=d(e,t,n[r],o,i))return s;return 0},t.compareByFieldSpec=d,t.flexibleCompare=p,t.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],t.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],t.diffDayTime=function(e,t){return o.duration({days:e.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:e.time()-t.time()})},t.diffDay=function(e,t){return o.duration({days:e.clone().stripTime().diff(t.clone().stripTime(),"days")})},t.diffByUnit=function(e,t,n){return o.duration(Math.round(e.diff(t,n,!0)),n)},t.computeGreatestUnit=h,t.computeDurationGreatestUnit=function(e,t){var n=h(e);return"week"===n&&"object"==typeof t&&t.days&&(n="day"),n},t.divideRangeByDuration=function(e,t,n){var o;return m(n)?(t-e)/n:(o=n.asMonths(),Math.abs(o)>=1&&_(o)?t.diff(e,"months",!0)/o:t.diff(e,"days",!0)/n.asDays())},t.divideDurationByDuration=function(e,t){var n,o;return m(e)||m(t)?e/t:(n=e.asMonths(),o=t.asMonths(),Math.abs(n)>=1&&_(n)&&Math.abs(o)>=1&&_(o)?n/o:e.asDays()/t.asDays())},t.multiplyDuration=function(e,t){var n;return m(e)?o.duration(e*t):(n=e.asMonths(),Math.abs(n)>=1&&_(n)?o.duration({months:n*t}):o.duration({days:e.asDays()*t}))},t.durationHasTime=m,t.isNativeDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date},t.isTimeString=function(e){return"string"==typeof e&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)},t.log=g,t.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;return n&&n.warn?n.warn.apply(n,e):g.apply(null,e)};var v={}.hasOwnProperty;function y(e,t){return v.call(e,t)}function b(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function _(e){return e%1==0}t.mergeProps=function e(t,n){var o,i,r,s,a,l,c={};if(n)for(o=0;o<n.length;o++){for(i=n[o],r=[],s=t.length-1;s>=0;s--)if("object"==typeof(a=t[s][i]))r.unshift(a);else if(void 0!==a){c[i]=a;break}r.length&&(c[i]=e(r))}for(o=t.length-1;o>=0;o--)for(i in l=t[o])i in c||(c[i]=l[i]);return c},t.copyOwnProps=function(e,t){for(var n in e)y(e,n)&&(t[n]=e[n])},t.hasOwnProp=y,t.applyAll=function(e,t,n){if(i.isFunction(e)&&(e=[e]),e){var o=void 0,r=void 0;for(o=0;o<e.length;o++)r=e[o].apply(t,n)||r;return r}},t.removeMatching=function(e,t){for(var n=0,o=0;o<e.length;)t(e[o])?(e.splice(o,1),n++):o++;return n},t.removeExact=function(e,t){for(var n=0,o=0;o<e.length;)e[o]===t?(e.splice(o,1),n++):o++;return n},t.isArraysEqual=function(e,t){var n,o=e.length;if(null==o||o!==t.length)return!1;for(n=0;n<o;n++)if(e[n]!==t[n])return!1;return!0},t.firstDefined=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]},t.htmlEscape=b,t.stripHtmlEntities=function(e){return e.replace(/&.*?;/g,"")},t.cssToStr=function(e){var t=[];return i.each(e,function(e,n){null!=n&&t.push(e+":"+n)}),t.join(";")},t.attrsToStr=function(e){var t=[];return i.each(e,function(e,n){null!=n&&t.push(e+'="'+b(n)+'"')}),t.join(" ")},t.capitaliseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.compareNumbers=function(e,t){return e-t},t.isInt=_,t.proxy=function(e,t){var n=e[t];return function(){return n.apply(e,arguments)}},t.debounce=function(e,t,n){var o,i,r,s,a;void 0===n&&(n=!1);var l=function(){var c=+new Date-s;c<t?o=setTimeout(l,t-c):(o=null,n||(a=e.apply(r,i),r=i=null))};return function(){r=this,i=arguments,s=+new Date;var c=n&&!o;return o||(o=setTimeout(l,t)),c&&(a=e.apply(r,i),r=i=null),a}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(10),r=function(){function e(e,t){this.isStart=!0,this.isEnd=!0,o.isMoment(e)&&(e=e.clone().stripZone()),o.isMoment(t)&&(t=t.clone().stripZone()),e&&(this.startMs=e.valueOf()),t&&(this.endMs=t.valueOf())}return e.invertRanges=function(t,n){var o,i,r=[],a=n.startMs;for(t.sort(s),o=0;o<t.length;o++)(i=t[o]).startMs>a&&r.push(new e(a,i.startMs)),i.endMs>a&&(a=i.endMs);return a<n.endMs&&r.push(new e(a,n.endMs)),r},e.prototype.intersect=function(t){var n=this.startMs,o=this.endMs,i=null;return null!=t.startMs&&(n=null==n?t.startMs:Math.max(n,t.startMs)),null!=t.endMs&&(o=null==o?t.endMs:Math.min(o,t.endMs)),(null==n||null==o||n<o)&&((i=new e(n,o)).isStart=this.isStart&&n===this.startMs,i.isEnd=this.isEnd&&o===this.endMs),i},e.prototype.intersectsWith=function(e){return(null==this.endMs||null==e.startMs||this.endMs>e.startMs)&&(null==this.startMs||null==e.endMs||this.startMs<e.endMs)},e.prototype.containsRange=function(e){return(null==this.startMs||null!=e.startMs&&e.startMs>=this.startMs)&&(null==this.endMs||null!=e.endMs&&e.endMs<=this.endMs)},e.prototype.containsDate=function(e){var t=e.valueOf();return(null==this.startMs||t>=this.startMs)&&(null==this.endMs||t<this.endMs)},e.prototype.constrainDate=function(e){var t=e.valueOf();return null!=this.startMs&&t<this.startMs&&(t=this.startMs),null!=this.endMs&&t>=this.endMs&&(t=this.endMs-1),t},e.prototype.equals=function(e){return this.startMs===e.startMs&&this.endMs===e.endMs},e.prototype.clone=function(){var t=new e(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},e.prototype.getStart=function(){return null!=this.startMs?i.default.utc(this.startMs).stripZone():null},e.prototype.getEnd=function(){return null!=this.endMs?i.default.utc(this.endMs).stripZone():null},e.prototype.as=function(e){return o.utc(this.endMs).diff(o.utc(this.startMs),e,!0)},e}();function s(e,t){return e.startMs-t.startMs}t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(208),s=n(33),a=n(49),l=function(e){function t(n){var o=e.call(this)||this;return o.calendar=n,o.className=[],o.uid=String(t.uuid++),o}return o.__extends(t,e),t.parse=function(e,t){var n=new this(t);return!("object"!=typeof e||!n.applyProps(e))&&n},t.normalizeId=function(e){return e?String(e):null},t.prototype.fetch=function(e,t,n){},t.prototype.removeEventDefsById=function(e){},t.prototype.removeAllEventDefs=function(){},t.prototype.getPrimitive=function(e){},t.prototype.parseEventDefs=function(e){var t,n,o=[];for(t=0;t<e.length;t++)(n=this.parseEventDef(e[t]))&&o.push(n);return o},t.prototype.parseEventDef=function(e){var t=this.calendar.opt("eventDataTransform"),n=this.eventDataTransform;return t&&(e=t(e,this.calendar)),n&&(e=n(e,this.calendar)),a.default.parse(e,this)},t.prototype.applyManualStandardProps=function(e){return null!=e.id&&(this.id=t.normalizeId(e.id)),i.isArray(e.className)?this.className=e.className:"string"==typeof e.className&&(this.className=e.className.split(/\s+/)),!0},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}(s.default);t.default=l,r.default.mixInto(l),l.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=0,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.listenTo=function(e,t,n){if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&this.listenTo(e,o,t[o]);else"string"==typeof t&&e.on(t+"."+this.getListenerNamespace(),i.proxy(n,this))},t.prototype.stopListeningTo=function(e,t){e.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=r++),"_listener"+this.listenerId},t}(n(14).default);t.default=s},,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(3),r=n(4),s=/^\s*\d{4}-\d\d$/,a=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,l=o.fn;t.newMomentProto=l;var c=i.extend({},l);t.oldMomentProto=c;var u=o.momentProperties;u.push("_fullCalendar"),u.push("_ambigTime"),u.push("_ambigZone"),t.oldMomentFormat=function(e,t){return c.format.call(e,t)};var d=function(){return p(arguments)};function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var l,c,u,d,p=e[0],h=1===e.length&&"string"==typeof p;return o.isMoment(p)||r.isNativeDate(p)||void 0===p?d=o.apply(null,e):(l=!1,c=!1,h?s.test(p)?(e=[p+="-01"],l=!0,c=!0):(u=a.exec(p))&&(l=!u[5],c=!0):i.isArray(p)&&(c=!0),d=t||l?o.utc.apply(o,e):o.apply(null,e),l?(d._ambigTime=!0,d._ambigZone=!0):n&&(c?d._ambigZone=!0:h&&d.utcOffset(p))),d._fullCalendar=!0,d}t.default=d,d.utc=function(){var e=p(arguments,!0);return e.hasTime()&&e.utc(),e},d.parseZone=function(){return p(arguments,!0,!0)},l.week=l.weeks=function(e){var t=this._locale._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?c.isoWeek.apply(this,arguments):c.week.apply(this,arguments)},l.time=function(e){if(!this._fullCalendar)return c.time.apply(this,arguments);if(null==e)return o.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,o.isDuration(e)||o.isMoment(e)||(e=o.duration(e));var t=0;return o.isDuration(e)&&(t=24*Math.floor(e.asDays())),this.hours(t+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},l.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},l.hasTime=function(){return!this._ambigTime},l.stripZone=function(){var e;return this._ambigZone||(e=this._ambigTime,this.utc(!0),this._ambigTime=e||!1,this._ambigZone=!0),this},l.hasZone=function(){return!this._ambigZone},l.local=function(e){return c.local.call(this,this._ambigZone||e),this._ambigTime=!1,this._ambigZone=!1,this},l.utc=function(e){return c.utc.call(this,e),this._ambigTime=!1,this._ambigZone=!1,this},l.utcOffset=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),c.utcOffset.apply(this,arguments)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.on=function(e,t){return i(this).on(e,this._prepareIntercept(t)),this},t.prototype.one=function(e,t){return i(this).one(e,this._prepareIntercept(t)),this},t.prototype._prepareIntercept=function(e){var t=function(t,n){return e.apply(n.context||this,n.args||[])};return e.guid||(e.guid=i.guid++),t.guid=e.guid,t},t.prototype.off=function(e,t){return i(this).off(e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return i(this).triggerHandler(e,{args:t}),this},t.prototype.triggerWith=function(e,t,n){return i(this).triggerHandler(e,{context:t,args:n}),this},t.prototype.hasHandlers=function(e){var t=i._data(this,"events");return t&&t[e]&&t[e].length>0},t}(n(14).default);t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.isAllDay=!1,this.unzonedRange=e,this.isAllDay=t}return e.prototype.toLegacy=function(e){return{start:e.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:e.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(34),r=n(209),s=n(17),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.buildInstances=function(){return[this.buildInstance()]},t.prototype.buildInstance=function(){return new r.default(this,this.dateProfile)},t.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},t.prototype.rezone=function(){var e=this.source.calendar,t=this.dateProfile;this.dateProfile=new s.default(e.moment(t.start),t.end?e.moment(t.end):null,e)},t.prototype.applyManualStandardProps=function(t){var n=e.prototype.applyManualStandardProps.call(this,t),o=s.default.parse(t,this.source);return!!o&&(this.dateProfile=o,null!=t.date&&(this.miscProps.date=t.date),n)},t}(i.default);t.default=a,a.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.mixInto=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e.prototype[n]||(e.prototype[n]=t.prototype[n])})},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e.prototype[n]=t.prototype[n]})},e}();t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.view=e._getView(),this.component=e}return e.prototype.opt=function(e){return this.view.opt(e)},e.prototype.end=function(){},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.version="3.9.0",t.internalApiVersion=12;var o=n(4);t.applyAll=o.applyAll,t.debounce=o.debounce,t.isInt=o.isInt,t.htmlEscape=o.htmlEscape,t.cssToStr=o.cssToStr,t.proxy=o.proxy,t.capitaliseFirstLetter=o.capitaliseFirstLetter,t.getOuterRect=o.getOuterRect,t.getClientRect=o.getClientRect,t.getContentRect=o.getContentRect,t.getScrollbarWidths=o.getScrollbarWidths,t.preventDefault=o.preventDefault,t.parseFieldSpecs=o.parseFieldSpecs,t.compareByFieldSpecs=o.compareByFieldSpecs,t.compareByFieldSpec=o.compareByFieldSpec,t.flexibleCompare=o.flexibleCompare,t.computeGreatestUnit=o.computeGreatestUnit,t.divideRangeByDuration=o.divideRangeByDuration,t.divideDurationByDuration=o.divideDurationByDuration,t.multiplyDuration=o.multiplyDuration,t.durationHasTime=o.durationHasTime,t.log=o.log,t.warn=o.warn,t.removeExact=o.removeExact,t.intersectRects=o.intersectRects;var i=n(47);t.formatDate=i.formatDate,t.formatRange=i.formatRange,t.queryMostGranularFormatUnit=i.queryMostGranularFormatUnit;var r=n(31);t.datepickerLocale=r.datepickerLocale,t.locale=r.locale;var s=n(10);t.moment=s.default;var a=n(11);t.EmitterMixin=a.default;var l=n(7);t.ListenerMixin=l.default;var c=n(48);t.Model=c.default;var u=n(207);t.Constraints=u.default;var d=n(5);t.UnzonedRange=d.default;var p=n(12);t.ComponentFootprint=p.default;var h=n(212);t.BusinessHourGenerator=h.default;var f=n(34);t.EventDef=f.default;var m=n(37);t.EventDefMutation=m.default;var g=n(38);t.EventSourceParser=g.default;var v=n(6);t.EventSource=v.default;var y=n(51);t.defineThemeSystem=y.defineThemeSystem;var b=n(18);t.EventInstanceGroup=b.default;var _=n(52);t.ArrayEventSource=_.default;var w=n(215);t.FuncEventSource=w.default;var x=n(216);t.JsonFeedEventSource=x.default;var C=n(36);t.EventFootprint=C.default;var S=n(33);t.Class=S.default;var k=n(14);t.Mixin=k.default;var E=n(53);t.CoordCache=E.default;var T=n(54);t.DragListener=T.default;var D=n(20);t.Promise=D.default;var P=n(217);t.TaskQueue=P.default;var R=n(218);t.RenderQueue=R.default;var O=n(39);t.Scroller=O.default;var I=n(19);t.Theme=I.default;var A=n(219);t.DateComponent=A.default;var M=n(40);t.InteractiveDateComponent=M.default;var $=n(220);t.Calendar=$.default;var F=n(41);t.View=F.default;var N=n(22);t.defineView=N.defineView,t.getViewConfig=N.getViewConfig;var L=n(55);t.DayTableMixin=L.default;var B=n(56);t.BusinessHourRenderer=B.default;var j=n(42);t.EventRenderer=j.default;var H=n(57);t.FillRenderer=H.default;var q=n(58);t.HelperRenderer=q.default;var z=n(222);t.ExternalDropping=z.default;var U=n(223);t.EventResizing=U.default;var Y=n(59);t.EventPointing=Y.default;var V=n(224);t.EventDragging=V.default;var G=n(225);t.DateSelecting=G.default;var W=n(60);t.StandardInteractionsMixin=W.default;var K=n(226);t.AgendaView=K.default;var Z=n(227);t.TimeGrid=Z.default;var J=n(61);t.DayGrid=J.default;var X=n(62);t.BasicView=X.default;var Q=n(229);t.MonthView=Q.default;var ee=n(230);t.ListView=ee.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=function(){function e(e,t,n){this.start=e,this.end=t||null,this.unzonedRange=this.buildUnzonedRange(n)}return e.parse=function(t,n){var o=t.start||t.date,i=t.end;if(!o)return!1;var r=n.calendar,s=r.moment(o),a=i?r.moment(i):null,l=t.allDay,c=r.opt("forceEventDuration");return!!s.isValid()&&(!a||a.isValid()&&a.isAfter(s)||(a=null),null==l&&null==(l=n.allDayDefault)&&(l=r.opt("allDayDefault")),!0===l?(s.stripTime(),a&&a.stripTime()):!1===l&&(s.hasTime()||s.time(0),a&&!a.hasTime()&&a.time(0)),!a&&c&&(a=r.getDefaultEventEnd(!s.hasTime(),s)),new e(s,a,r))},e.isStandardProp=function(e){return"start"===e||"date"===e||"end"===e||"allDay"===e},e.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},e.prototype.buildUnzonedRange=function(e){var t=this.start.clone().stripZone().valueOf(),n=this.getEnd(e).stripZone().valueOf();return new o.default(t,n)},e.prototype.getEnd=function(e){return this.end?this.end.clone():e.getDefaultEventEnd(this.isAllDay(),this.start)},e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(35),r=n(211),s=function(){function e(e){this.eventInstances=e||[]}return e.prototype.getAllEventRanges=function(e){return e?this.sliceNormalRenderRanges(e):this.eventInstances.map(i.eventInstanceToEventRange)},e.prototype.sliceRenderRanges=function(e){return this.isInverse()?this.sliceInverseRenderRanges(e):this.sliceNormalRenderRanges(e)},e.prototype.sliceNormalRenderRanges=function(e){var t,n,o,i=this.eventInstances,s=[];for(t=0;t<i.length;t++)(o=(n=i[t]).dateProfile.unzonedRange.intersect(e))&&s.push(new r.default(o,n.def,n));return s},e.prototype.sliceInverseRenderRanges=function(e){var t=this.eventInstances.map(i.eventInstanceToUnzonedRange),n=this.getEventDef();return(t=o.default.invertRanges(t,e)).map(function(e){return new r.default(e,n)})},e.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},e.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},e}();t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=function(){function e(e){this.optionsManager=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},e.prototype.setIconOverride=function(e){var t,n;if(o.isPlainObject(e)){for(n in t=o.extend({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();t.default=i,i.prototype.classes={},i.prototype.iconClasses={},i.prototype.baseIconClass="",i.prototype.iconOverridePrefix=""},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i={construct:function(e){var t=o.Deferred(),n=t.promise();return"function"==typeof e&&e(function(e){t.resolve(e),r(n,e)},function(){t.reject(),s(n)}),n},resolve:function(e){var t=o.Deferred().resolve(e).promise();return r(t,e),t},reject:function(){var e=o.Deferred().reject().promise();return s(e),e}};function r(e,t){e.then=function(n){return"function"==typeof n?i.resolve(n(t)):e}}function s(e){e.then=function(t,n){return"function"==typeof n&&n(),e}}t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(16),r=n(11),s=n(7);i.touchMouseIgnoreWait=500;var a=null,l=0,c=function(){function e(){this.isTouching=!1,this.mouseIgnoreDepth=0}return e.get=function(){return a||(a=new e).bind(),a},e.needed=function(){e.get(),l++},e.unneeded=function(){--l||(a.unbind(),a=null)},e.prototype.bind=function(){var e=this;this.listenTo(o(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){e.handleTouchMove(o.Event(t))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(t){e.handleScroll(o.Event(t))},!0)},e.prototype.unbind=function(){this.stopListeningTo(o(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},e.prototype.handleTouchStart=function(e){this.stopTouch(e,!0),this.isTouching=!0,this.trigger("touchstart",e)},e.prototype.handleTouchMove=function(e){this.isTouching&&this.trigger("touchmove",e)},e.prototype.handleTouchCancel=function(e){this.isTouching&&(this.trigger("touchcancel",e),this.stopTouch(e))},e.prototype.handleTouchEnd=function(e){this.stopTouch(e)},e.prototype.handleMouseDown=function(e){this.shouldIgnoreMouse()||this.trigger("mousedown",e)},e.prototype.handleMouseMove=function(e){this.shouldIgnoreMouse()||this.trigger("mousemove",e)},e.prototype.handleMouseUp=function(e){this.shouldIgnoreMouse()||this.trigger("mouseup",e)},e.prototype.handleClick=function(e){this.shouldIgnoreMouse()||this.trigger("click",e)},e.prototype.handleSelectStart=function(e){this.trigger("selectstart",e)},e.prototype.handleContextMenu=function(e){this.trigger("contextmenu",e)},e.prototype.handleScroll=function(e){this.trigger("scroll",e)},e.prototype.stopTouch=function(e,t){void 0===t&&(t=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",e),t||this.startTouchMouseIgnore())},e.prototype.startTouchMouseIgnore=function(){var e=this,t=i.touchMouseIgnoreWait;t&&(this.mouseIgnoreDepth++,setTimeout(function(){e.mouseIgnoreDepth--},t))},e.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},e}();t.default=c,s.default.mixInto(c),r.default.mixInto(c)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(16);t.viewHash={},o.views=t.viewHash,t.defineView=function(e,n){t.viewHash[e]=n},t.getViewConfig=function(e){return t.viewHash[e]}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(e){function t(t,n){var o=e.call(this,n)||this;return o.component=t,o}return o.__extends(t,e),t.prototype.handleInteractionStart=function(t){var n,o,r,s=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),t?(r=o={left:i.getEvX(t),top:i.getEvY(t)},s&&(n=i.getOuterRect(s),r=i.constrainPoint(r,n)),this.origHit=this.queryHit(r.left,r.top),s&&this.options.subjectCenter&&(this.origHit&&(n=i.intersectRects(this.origHit,n)||n),r=i.getRectCenter(n)),this.coordAdjust=i.diffPoints(r,o)):(this.origHit=null,this.coordAdjust=null),e.prototype.handleInteractionStart.call(this,t)},t.prototype.handleDragStart=function(t){var n;e.prototype.handleDragStart.call(this,t),(n=this.queryHit(i.getEvX(t),i.getEvY(t)))&&this.handleHitOver(n)},t.prototype.handleDrag=function(t,n,o){var r;e.prototype.handleDrag.call(this,t,n,o),s(r=this.queryHit(i.getEvX(o),i.getEvY(o)),this.hit)||(this.hit&&this.handleHitOut(),r&&this.handleHitOver(r))},t.prototype.handleDragEnd=function(t){this.handleHitDone(),e.prototype.handleDragEnd.call(this,t)},t.prototype.handleHitOver=function(e){var t=s(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},t.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},t.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},t.prototype.handleInteractionEnd=function(t,n){e.prototype.handleInteractionEnd.call(this,t,n),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},t.prototype.handleScrollEnd=function(){e.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},t.prototype.queryHit=function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)},t}(n(54).default);function s(e,t){return!e&&!t||!(!e||!t)&&(e.component===t.component&&a(e,t)&&a(t,e))}function a(e,t){for(var n in e)if(!/^(component|left|right|top|bottom)$/.test(n)&&e[n]!==t[n])return!1;return!0}t.default=r},,,,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),r=n(16),s=n(32),a=n(4);t.localeOptionHash={},r.locales=t.localeOptionHash;var l={buttonText:function(e){return{prev:a.stripHtmlEntities(e.prevText),next:a.stripHtmlEntities(e.nextText),today:a.stripHtmlEntities(e.currentText)}},monthYearFormat:function(e){return e.showMonthAfterYear?"YYYY["+e.yearSuffix+"] MMMM":"MMMM YYYY["+e.yearSuffix+"]"}},c={dayOfMonthFormat:function(e,t){var n=e.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(e){return e.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},u={smallDayDateFormat:function(e){return e.isRTL?"D dd":"dd D"},weekFormat:function(e){return e.isRTL?"w[ "+e.weekNumberTitle+"]":"["+e.weekNumberTitle+" ]w"},smallWeekFormat:function(e){return e.isRTL?"w["+e.weekNumberTitle+"]":"["+e.weekNumberTitle+"]w"}};function d(e,n){var i,r;i=t.localeOptionHash[e]||(t.localeOptionHash[e]={}),n&&(i=t.localeOptionHash[e]=s.mergeOptions([i,n])),r=p(e),o.each(c,function(e,t){null==i[e]&&(i[e]=t(r,i))}),s.globalDefaults.locale=e}function p(e){return i.localeData(e)||i.localeData("en")}t.populateInstanceComputableOptions=function(e){o.each(u,function(t,n){null==e[t]&&(e[t]=n(e))})},t.datepickerLocale=function(e,n,i){var r=t.localeOptionHash[e]||(t.localeOptionHash[e]={});r.isRTL=i.isRTL,r.weekNumberTitle=i.weekHeader,o.each(l,function(e,t){r[e]=t(i)});var s=o.datepicker;s&&(s.regional[n]=s.regional[e]=i,s.regional.en=s.regional[""],s.setDefaults(i))},t.locale=d,t.getMomentLocaleData=p,d("en",s.englishDefaults)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var i=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=function(e){return o.mergeProps(e,i)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(){function e(){}return e.extend=function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(this);return i.copyOwnProps(e,t.prototype),t},e.mixin=function(e){i.copyOwnProps(e,this.prototype)},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(208),r=function(){function e(e){this.source=e,this.className=[],this.miscProps={}}return e.parse=function(e,t){var n=new this(t);return!!n.applyProps(e)&&n},e.normalizeId=function(e){return String(e)},e.generateId=function(){return"_fc"+e.uuid++},e.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,e.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=o.extend({},this.miscProps),t},e.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},e.prototype.hasBgRendering=function(){var e=this.getRendering();return"inverse-background"===e||"background"===e},e.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},e.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},e.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},e.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},e.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},e.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},e.prototype.toLegacy=function(){var t=o.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),null!=this.rawId&&(t.id=this.rawId),e.copyVerbatimStandardProps(this,t),t},e.prototype.applyManualStandardProps=function(t){return null!=t.id?this.id=e.normalizeId(this.rawId=t.id):this.id=e.generateId(),null!=t._id?this.uid=String(t._id):this.uid=e.generateId(),o.isArray(t.className)&&(this.className=t.className),"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},e.prototype.applyMiscProps=function(e){o.extend(this.miscProps,e)},e.uuid=0,e.defineStandardProps=i.default.defineStandardProps,e.copyVerbatimStandardProps=i.default.copyVerbatimStandardProps,e}();t.default=r,i.default.mixInto(r),r.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(211),i=n(36),r=n(12);t.eventDefsToEventInstances=function(e,t){var n,o=[];for(n=0;n<e.length;n++)o.push.apply(o,e[n].buildInstances(t));return o},t.eventInstanceToEventRange=function(e){return new o.default(e.dateProfile.unzonedRange,e.def,e)},t.eventRangeToEventFootprint=function(e){return new i.default(new r.default(e.unzonedRange,e.eventDef.isAllDay()),e.eventDef,e.eventInstance)},t.eventInstanceToUnzonedRange=function(e){return e.dateProfile.unzonedRange},t.eventFootprintToComponentFootprint=function(e){return e.componentFootprint}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){this.componentFootprint=e,this.eventDef=t,n&&(this.eventInstance=n)}return e.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=n(17),r=n(34),s=n(50),a=n(13),l=function(){function e(){}return e.createFromRawProps=function(t,n,a){var l,c,u,d,p=t.def,h={},f={},m={},g={},v=null,y=null;for(l in n)i.default.isStandardProp(l)?h[l]=n[l]:p.isStandardProp(l)?f[l]=n[l]:p.miscProps[l]!==n[l]&&(m[l]=n[l]);return(c=i.default.parse(h,p.source))&&(u=s.default.createFromDiff(t.dateProfile,c,a)),f.id!==p.id&&(v=f.id),o.isArraysEqual(f.className,p.className)||(y=f.className),r.default.copyVerbatimStandardProps(f,g),(d=new e).eventDefId=v,d.className=y,d.verbatimStandardProps=g,d.miscProps=m,u&&(d.dateMutation=u),d},e.prototype.mutateSingle=function(e){var t;return this.dateMutation&&(t=e.dateProfile,e.dateProfile=this.dateMutation.buildNewDateProfile(t,e.source.calendar)),null!=this.eventDefId&&(e.id=r.default.normalizeId(e.rawId=this.eventDefId)),this.className&&(e.className=this.className),this.verbatimStandardProps&&a.default.copyVerbatimStandardProps(this.verbatimStandardProps,e),this.miscProps&&e.applyMiscProps(this.miscProps),t?function(){e.dateProfile=t}:function(){}},e.prototype.setDateMutation=function(e){e&&!e.isEmpty()?this.dateMutation=e:this.dateMutation=null},e.prototype.isEmpty=function(){return!this.dateMutation},e}();t.default=l},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={sourceClasses:[],registerClass:function(e){this.sourceClasses.unshift(e)},parse:function(e,t){var n,o,i=this.sourceClasses;for(n=0;n<i.length;n++)if(o=i[n].parse(e,t))return o}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=function(e){function t(t){var n=e.call(this)||this;return t=t||{},n.overflowX=t.overflowX||t.overflow||"auto",n.overflowY=t.overflowY||t.overflow||"auto",n}return o.__extends(t,e),t.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},t.prototype.renderEl=function(){return this.scrollEl=i('<div class="fc-scroller"></div>')},t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.destroy=function(){this.el.remove()},t.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},t.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":n})},t.prototype.setHeight=function(e){this.scrollEl.height(e)},t.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},t.prototype.setScrollTop=function(e){this.scrollEl.scrollTop(e)},t.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},t.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},t.prototype.getScrollbarWidths=function(){return r.getScrollbarWidths(this.scrollEl)},t}(n(33).default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(219),a=n(21),l=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.segSelector=".fc-event-container > *",o.dateSelectingClass&&(o.dateClicking=new o.dateClickingClass(o)),o.dateSelectingClass&&(o.dateSelecting=new o.dateSelectingClass(o)),o.eventPointingClass&&(o.eventPointing=new o.eventPointingClass(o)),o.eventDraggingClass&&o.eventPointing&&(o.eventDragging=new o.eventDraggingClass(o,o.eventPointing)),o.eventResizingClass&&o.eventPointing&&(o.eventResizing=new o.eventResizingClass(o,o.eventPointing)),o.externalDroppingClass&&(o.externalDropping=new o.externalDroppingClass(o)),o}return o.__extends(t,e),t.prototype.setElement=function(t){e.prototype.setElement.call(this,t),this.dateClicking&&this.dateClicking.bindToEl(t),this.dateSelecting&&this.dateSelecting.bindToEl(t),this.bindAllSegHandlersToEl(t)},t.prototype.removeElement=function(){this.endInteractions(),e.prototype.removeElement.call(this)},t.prototype.executeEventUnrender=function(){this.endInteractions(),e.prototype.executeEventUnrender.call(this)},t.prototype.bindGlobalHandlers=function(){e.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},t.prototype.unbindGlobalHandlers=function(){e.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},t.prototype.bindDateHandlerToEl=function(e,t,n){var o=this;this.el.on(t,function(e){if(!i(e.target).is(o.segSelector+":not(.fc-helper),"+o.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return n.call(o,e)})},t.prototype.bindAllSegHandlersToEl=function(e){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(e)})},t.prototype.bindSegHandlerToEl=function(e,t,n){var o=this;e.on(t,this.segSelector,function(e){var t=i(e.currentTarget);if(!t.is(".fc-helper")){var r=t.data("fc-seg");if(r&&!o.shouldIgnoreEventPointing())return n.call(o,r,e)}})},t.prototype.shouldIgnoreMouse=function(){return a.default.get().shouldIgnoreMouse()},t.prototype.shouldIgnoreTouch=function(){var e=this._getView();return e.isSelected||e.selectedEvent},t.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},t.prototype.canStartSelection=function(e,t){return r.getEvIsTouch(t)&&!this.canStartResize(e,t)&&(this.isEventDefDraggable(e.footprint.eventDef)||this.isEventDefResizable(e.footprint.eventDef))},t.prototype.canStartDrag=function(e,t){return!this.canStartResize(e,t)&&this.isEventDefDraggable(e.footprint.eventDef)},t.prototype.canStartResize=function(e,t){var n=this._getView(),o=e.footprint.eventDef;return(!r.getEvIsTouch(t)||n.isEventDefSelected(o))&&this.isEventDefResizable(o)&&i(t.target).is(".fc-resizer")},t.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(e){e&&e.end()})},t.prototype.isEventDefDraggable=function(e){return this.isEventDefStartEditable(e)},t.prototype.isEventDefStartEditable=function(e){var t=e.isStartExplicitlyEditable();return null==t&&null==(t=this.opt("eventStartEditable"))&&(t=this.isEventDefGenerallyEditable(e)),t},t.prototype.isEventDefGenerallyEditable=function(e){var t=e.isExplicitlyEditable();return null==t&&(t=this.opt("editable")),t},t.prototype.isEventDefResizableFromStart=function(e){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(e)},t.prototype.isEventDefResizableFromEnd=function(e){return this.isEventDefResizable(e)},t.prototype.isEventDefResizable=function(e){var t=e.isDurationExplicitlyEditable();return null==t&&null==(t=this.opt("eventDurationEditable"))&&(t=this.isEventDefGenerallyEditable(e)),t},t.prototype.diffDates=function(e,t){return this.largeUnit?r.diffByUnit(e,t,this.largeUnit):r.diffDayTime(e,t)},t.prototype.isEventInstanceGroupAllowed=function(e){var t,n=this._getView(),o=this.dateProfile,i=this.eventRangesToEventFootprints(e.getAllEventRanges());for(t=0;t<i.length;t++)if(!o.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;return n.calendar.constraints.isEventInstanceGroupAllowed(e)},t.prototype.isExternalInstanceGroupAllowed=function(e){var t,n=this._getView(),o=this.dateProfile,i=this.eventRangesToEventFootprints(e.getAllEventRanges());for(t=0;t<i.length;t++)if(!o.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;for(t=0;t<i.length;t++)if(!n.calendar.constraints.isSelectionFootprintAllowed(i[t].componentFootprint))return!1;return!0},t}(s.default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(0),s=n(4),a=n(218),l=n(221),c=n(40),u=n(21),d=n(5),p=function(e){function t(t,n){var o=e.call(this,null,n.options)||this;return o.batchRenderDepth=0,o.isSelected=!1,o.calendar=t,o.viewSpec=n,o.type=n.type,o.name=o.type,o.initRenderQueue(),o.initHiddenDays(),o.dateProfileGenerator=new o.dateProfileGeneratorClass(o),o.bindBaseRenderHandlers(),o.eventOrderSpecs=s.parseFieldSpecs(o.opt("eventOrder")),o.initialize&&o.initialize(),o}return o.__extends(t,e),t.prototype._getView=function(){return this},t.prototype.opt=function(e){return this.options[e]},t.prototype.initRenderQueue=function(){this.renderQueue=new a.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},t.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},t.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},t.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},t.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},t.prototype.requestRender=function(e,t,n){this.renderQueue.queue(e,t,n)},t.prototype.whenSizeUpdated=function(e){this.renderQueue.isRunning?this.renderQueue.one("stop",e.bind(this)):e.call(this)},t.prototype.computeTitle=function(e){var t;return t=/^(year|month)$/.test(e.currentRangeUnit)?e.currentUnzonedRange:e.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,e.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,e.isRangeAllDay)},e.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(e),this.opt("titleRangeSeparator"))},t.prototype.computeTitleFormat=function(e){var t=e.currentRangeUnit;return"year"===t?"YYYY":"month"===t?this.opt("monthYearFormat"):e.currentUnzonedRange.as("days")>1?"ll":"LL"},t.prototype.setDate=function(e){var t=this.get("dateProfile"),n=this.dateProfileGenerator.build(e,void 0,!0);t&&t.activeUnzonedRange.equals(n.activeUnzonedRange)||this.set("dateProfile",n)},t.prototype.unsetDate=function(){this.unset("dateProfile")},t.prototype.fetchInitialEvents=function(e){var t=this.calendar,n=e.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(e.activeUnzonedRange.startMs,n),t.msToMoment(e.activeUnzonedRange.endMs,n))},t.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},t.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},t.prototype.setEvents=function(e){this.set("currentEvents",e),this.set("hasEvents",!0)},t.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},t.prototype.resetEvents=function(e){this.startBatchRender(),this.unsetEvents(),this.setEvents(e),this.stopBatchRender()},t.prototype.requestDateRender=function(e){var t=this;this.requestRender(function(){t.executeDateRender(e)},"date","init")},t.prototype.requestDateUnrender=function(){var e=this;this.requestRender(function(){e.executeDateUnrender()},"date","destroy")},t.prototype.executeDateRender=function(t){e.prototype.executeDateRender.call(this,t),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},t.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),e.prototype.executeDateUnrender.call(this)},t.prototype.bindBaseRenderHandlers=function(){var e=this;this.on("datesRendered",function(){e.whenSizeUpdated(e.triggerViewRender)}),this.on("before:datesUnrendered",function(){e.triggerViewDestroy()})},t.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.requestEventsRender=function(e){var t=this;this.requestRender(function(){t.executeEventRender(e),t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},t.prototype.requestEventsUnrender=function(){var e=this;this.requestRender(function(){e.triggerBeforeEventsDestroyed(),e.executeEventUnrender()},"event","destroy")},t.prototype.requestBusinessHoursRender=function(e){var t=this;this.requestRender(function(){t.renderBusinessHours(e)},"businessHours","init")},t.prototype.requestBusinessHoursUnrender=function(){var e=this;this.requestRender(function(){e.unrenderBusinessHours()},"businessHours","destroy")},t.prototype.bindGlobalHandlers=function(){e.prototype.bindGlobalHandlers.call(this),this.listenTo(u.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},t.prototype.unbindGlobalHandlers=function(){e.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(u.default.get())},t.prototype.startNowIndicator=function(){var e,t,n,o=this;this.opt("nowIndicator")&&(e=this.getNowIndicatorUnit())&&(t=s.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(e).add(1,e).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,t(),n=+r.duration(1,e),n=Math.max(100,n),o.nowIndicatorIntervalID=setInterval(t,n)},n))},t.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.updateSize=function(t,n,o){this.setHeight?this.setHeight(t,n):e.prototype.updateSize.call(this,t,n,o),this.updateNowIndicator()},t.prototype.addScroll=function(e){var t=this.queuedScroll||(this.queuedScroll={});i.extend(t,e)},t.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},t.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},t.prototype.queryScroll=function(){var e={};return this.isDatesRendered&&i.extend(e,this.queryDateScroll()),e},t.prototype.applyScroll=function(e){e.isDateInit&&this.isDatesRendered&&i.extend(e,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(e)},t.prototype.computeInitialDateScroll=function(){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(e){},t.prototype.reportEventDrop=function(e,t,n,o){var i=this.calendar.eventManager.mutateEventsWithId(e.def.id,t),s=t.dateMutation;s&&(e.dateProfile=s.buildNewDateProfile(e.dateProfile,this.calendar)),this.triggerEventDrop(e,s&&s.dateDelta||r.duration(),i,n,o)},t.prototype.triggerEventDrop=function(e,t,n,o,i){this.publiclyTrigger("eventDrop",{context:o[0],args:[e.toLegacy(),t,n,i,{},this]})},t.prototype.reportExternalDrop=function(e,t,n,o,i,r){t&&this.calendar.eventManager.addEventDef(e,n),this.triggerExternalDrop(e,t,o,i,r)},t.prototype.triggerExternalDrop=function(e,t,n,o,i){this.publiclyTrigger("drop",{context:n[0],args:[e.dateProfile.start.clone(),o,i,this]}),t&&this.publiclyTrigger("eventReceive",{context:this,args:[e.buildInstance().toLegacy(),this]})},t.prototype.reportEventResize=function(e,t,n,o){var i=this.calendar.eventManager.mutateEventsWithId(e.def.id,t);e.dateProfile=t.dateMutation.buildNewDateProfile(e.dateProfile,this.calendar),this.triggerEventResize(e,t.dateMutation.endDelta,i,n,o)},t.prototype.triggerEventResize=function(e,t,n,o,i){this.publiclyTrigger("eventResize",{context:o[0],args:[e.toLegacy(),t,n,i,{},this]})},t.prototype.select=function(e,t){this.unselect(t),this.renderSelectionFootprint(e),this.reportSelection(e,t)},t.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):e.prototype.renderSelectionFootprint.call(this,t)},t.prototype.reportSelection=function(e,t){this.isSelected=!0,this.triggerSelect(e,t)},t.prototype.triggerSelect=function(e,t){var n=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("select",{context:this,args:[n.start,n.end,t,this]})},t.prototype.unselect=function(e){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[e,this]}))},t.prototype.selectEventInstance=function(e){this.selectedEventInstance&&this.selectedEventInstance===e||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===e&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=e)},t.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(e){e.el&&e.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},t.prototype.isEventDefSelected=function(e){return this.selectedEventInstance&&this.selectedEventInstance.def.id===e.id},t.prototype.handleDocumentMousedown=function(e){s.isPrimaryMouseButton(e)&&this.processUnselect(e)},t.prototype.processUnselect=function(e){this.processRangeUnselect(e),this.processEventUnselect(e)},t.prototype.processRangeUnselect=function(e){var t;this.isSelected&&this.opt("unselectAuto")&&((t=this.opt("unselectCancel"))&&i(e.target).closest(t).length||this.unselect(e))},t.prototype.processEventUnselect=function(e){this.selectedEventInstance&&(i(e.target).closest(".fc-selected").length||this.unselectEventInstance())},t.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.triggerDayClick=function(e,t,n){var o=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("dayClick",{context:t,args:[o.start,n,this]})},t.prototype.isDateInOtherMonth=function(e,t){return!1},t.prototype.getUnzonedRangeOption=function(e){var t=this.opt(e);if("function"==typeof t&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t)return this.calendar.parseUnzonedRange(t)},t.prototype.initHiddenDays=function(){var e,t=this.opt("hiddenDays")||[],n=[],o=0;for(!1===this.opt("weekends")&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==i.inArray(e,t))||o++;if(!o)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},t.prototype.trimHiddenDays=function(e){var t=e.getStart(),n=e.getEnd();return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null===t||null===n||t<n?new d.default(t,n):null},t.prototype.isHiddenDay=function(e){return r.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},t.prototype.skipHiddenDays=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var o=e.clone();this.isHiddenDayHash[(o.day()+(n?t:0)+7)%7];)o.add(t,"days");return o},t}(c.default);t.default=p,p.prototype.usesMinMaxTime=!1,p.prototype.dateProfileGeneratorClass=l.default,p.watch("displayingDates",["isInDom","dateProfile"],function(e){this.requestDateRender(e.dateProfile)},function(){this.requestDateUnrender()}),p.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(e){this.requestBusinessHoursRender(e.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),p.watch("initialEvents",["dateProfile"],function(e){return this.fetchInitialEvents(e.dateProfile)}),p.watch("bindingEvents",["initialEvents"],function(e){this.setEvents(e.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),p.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),p.watch("title",["dateProfile"],function(e){return this.title=this.computeTitle(e.dateProfile)}),p.watch("legacyDateProps",["dateProfile"],function(e){var t=this.calendar,n=e.dateProfile;this.start=t.msToMoment(n.activeUnzonedRange.startMs,n.isRangeAllDay),this.end=t.msToMoment(n.activeUnzonedRange.endMs,n.isRangeAllDay),this.intervalStart=t.msToMoment(n.currentUnzonedRange.startMs,n.isRangeAllDay),this.intervalEnd=t.msToMoment(n.currentUnzonedRange.endMs,n.isRangeAllDay)})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=function(){function e(e,t){this.view=e._getView(),this.component=e,this.fillRenderer=t}return e.prototype.opt=function(e){return this.view.opt(e)},e.prototype.rangeUpdated=function(){var e,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),null==(e=this.opt("displayEventTime"))&&(e=this.computeDisplayEventTime()),null==(t=this.opt("displayEventEnd"))&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.render=function(e){var t,n,o,i=this.component._getDateProfile(),r=[],s=[];for(t in e)o=(n=e[t]).sliceRenderRanges(i.activeUnzonedRange),n.getEventDef().hasBgRendering()?r.push.apply(r,o):s.push.apply(s,o);this.renderBgRanges(r),this.renderFgRanges(s)},e.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},e.prototype.renderFgRanges=function(e){var t=this.component.eventRangesToEventFootprints(e),n=this.component.eventFootprintsToSegs(t);n=this.renderFgSegEls(n),!1!==this.renderFgSegs(n)&&(this.fgSegs=n)},e.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},e.prototype.renderBgRanges=function(e){var t=this.component.eventRangesToEventFootprints(e),n=this.component.eventFootprintsToSegs(t);!1!==this.renderBgSegs(n)&&(this.bgSegs=n)},e.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},e.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},e.prototype.renderFgSegs=function(e){return!1},e.prototype.unrenderFgSegs=function(e){},e.prototype.renderBgSegs=function(e){var t=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",e,{getClasses:function(e){return t.getBgClasses(e.footprint.eventDef)},getCss:function(e){return{"background-color":t.getBgColor(e.footprint.eventDef)}},filterEl:function(e,n){return t.filterEventRenderEl(e.footprint,n)}})},e.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},e.prototype.renderFgSegEls=function(e,t){var n=this;void 0===t&&(t=!1);var i,r=this.view.hasPublicHandlers("eventRender"),s="",a=[];if(e.length){for(i=0;i<e.length;i++)this.beforeFgSegHtml(e[i]),s+=this.fgSegHtml(e[i],t);o(s).each(function(t,i){var s=e[t],l=o(i);r&&(l=n.filterEventRenderEl(s.footprint,l)),l&&(l.data("fc-seg",s),s.el=l,a.push(s))})}return a},e.prototype.beforeFgSegHtml=function(e){},e.prototype.fgSegHtml=function(e,t){},e.prototype.getSegClasses=function(e,t,n){var o=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(e.footprint.eventDef));return t&&o.push("fc-draggable"),n&&o.push("fc-resizable"),this.view.isEventDefSelected(e.footprint.eventDef)&&o.push("fc-selected"),o},e.prototype.filterEventRenderEl=function(e,t){var n=e.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:n,args:[n,t,this.view]});return!1===i?t=null:i&&!0!==i&&(t=o(i)),t},e.prototype.getTimeText=function(e,t,n){return this._getTimeText(e.eventInstance.dateProfile.start,e.eventInstance.dateProfile.end,e.componentFootprint.isAllDay,t,n)},e.prototype._getTimeText=function(e,t,n,o,i){return null==o&&(o=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?this.view.formatRange({start:e,end:t},!1,o):e.format(o):""},e.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getBgClasses=function(e){var t=this.getClasses(e);return t.push("fc-bgevent"),t},e.prototype.getClasses=function(e){var t,n=this.getStylingObjs(e),o=[];for(t=0;t<n.length;t++)o.push.apply(o,n[t].eventClassName||n[t].className||[]);return o},e.prototype.getSkinCss=function(e){return{"background-color":this.getBgColor(e),"border-color":this.getBorderColor(e),color:this.getTextColor(e)}},e.prototype.getBgColor=function(e){var t,n,o=this.getStylingObjs(e);for(t=0;t<o.length&&!n;t++)n=o[t].eventBackgroundColor||o[t].eventColor||o[t].backgroundColor||o[t].color;return n||(n=this.opt("eventBackgroundColor")||this.opt("eventColor")),n},e.prototype.getBorderColor=function(e){var t,n,o=this.getStylingObjs(e);for(t=0;t<o.length&&!n;t++)n=o[t].eventBorderColor||o[t].eventColor||o[t].borderColor||o[t].color;return n||(n=this.opt("eventBorderColor")||this.opt("eventColor")),n},e.prototype.getTextColor=function(e){var t,n,o=this.getStylingObjs(e);for(t=0;t<o.length&&!n;t++)n=o[t].eventTextColor||o[t].textColor;return n||(n=this.opt("eventTextColor")),n},e.prototype.getStylingObjs=function(e){var t=this.getFallbackStylingObjs(e);return t.unshift(e),t},e.prototype.getFallbackStylingObjs=function(e){return[e.source]},e.prototype.sortEventSegs=function(e){e.sort(i.proxy(this,"compareEventSegs"))},e.prototype.compareEventSegs=function(e,t){var n=e.footprint,o=t.footprint,r=n.componentFootprint,s=o.componentFootprint,a=r.unzonedRange,l=s.unzonedRange;return a.startMs-l.startMs||l.endMs-l.startMs-(a.endMs-a.startMs)||s.isAllDay-r.isAllDay||i.compareByFieldSpecs(n.eventDef,o.eventDef,this.view.eventOrderSpecs,n.eventDef.miscProps,o.eventDef.miscProps)},e}();t.default=r},,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(10);function i(e){return"en"!==e.locale()?e.clone().locale("en"):e}o.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?d(this,arguments[0]):this._ambigTime?o.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?o.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?o.oldMomentFormat(i(this)):o.oldMomentProto.format.apply(this,arguments)},o.newMomentProto.toISOString=function(){return this._ambigTime?o.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?o.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?o.oldMomentProto.toISOString.apply(i(this),arguments):o.oldMomentProto.toISOString.apply(this,arguments)};var r="\v",s="",a="",l=new RegExp(a+"([^"+a+"]*)"+a,"g"),c={t:function(e){return o.oldMomentFormat(e,"a").charAt(0)},T:function(e){return o.oldMomentFormat(e,"A").charAt(0)}},u={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};function d(e,t){return function(e,t){return v(g(e,t).join(""))}(h(t).fakeFormatString,e)}t.formatDate=d,t.formatRange=function(e,t,n,i,r){return e=o.default.parseZone(e),t=o.default.parseZone(t),function(e,t,n,o,i){var r,s,a,l=e.sameUnits,c=t.clone().stripZone(),u=n.clone().stripZone(),d=g(e.fakeFormatString,t),p=g(e.fakeFormatString,n),h="",f="",m="",y="",b="";for(r=0;r<l.length&&(!l[r]||c.isSame(u,l[r]));r++)h+=d[r];for(s=l.length-1;s>r&&(!l[s]||c.isSame(u,l[s]))&&(s-1!==r||"."!==d[s]);s--)f=d[s]+f;for(a=r;a<=s;a++)m+=d[a],y+=p[a];return(m||y)&&(b=i?y+o+m:m+o+y),v(h+b+f)}(h(n=e.localeData().longDateFormat(n)||n),e,t,i||" - ",r)};var p={};function h(e){return p[e]||(p[e]=function(e){var t=f(e);return{fakeFormatString:function e(t){var n=[];var o;var i;for(o=0;o<t.length;o++)"string"==typeof(i=t[o])?n.push("["+i+"]"):i.token?i.token in c?n.push(s+"["+i.token+"]"):n.push(i.token):i.maybe&&n.push(a+e(i.maybe)+a);return n.join(r)}(t),sameUnits:function e(t){var n=[];var o;var i;var r;for(o=0;o<t.length;o++)(i=t[o]).token?(r=u[i.token.charAt(0)],n.push(r?r.unit:"second")):i.maybe?n.push.apply(n,e(i.maybe)):n.push(null);return n}(t)}}(e))}function f(e){for(var t,n=[],o=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=o.exec(e);)t[1]?n.push.apply(n,m(t[1])):t[2]?n.push({maybe:f(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push.apply(n,m(t[5]));return n}function m(e){return". "===e?["."," "]:[e]}function g(e,t){var n,i,a=[],l=o.oldMomentFormat(t,e).split(r);for(n=0;n<l.length;n++)(i=l[n]).charAt(0)===s?a.push(c[i.substring(1)](t)):a.push(i);return a}function v(e){return e.replace(l,function(e,t){return t.match(/[1-9]/)?t:""})}t.queryMostGranularFormatUnit=function(e){var t,n,o,i,r=f(e);for(t=0;t<r.length;t++)(n=r[t]).token&&(o=u[n.token.charAt(0)])&&(!i||o.value>i.value)&&(i=o);return i?i.unit:null}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(33),r=n(11),s=n(7),a=function(e){function t(){var t=e.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}return o.__extends(t,e),t.watch=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[e]=t},t.prototype.constructed=function(){},t.prototype.applyGlobalWatchers=function(){var e,t=this._globalWatchArgs;for(e in t)this.watch.apply(this,[e].concat(t[e]))},t.prototype.has=function(e){return e in this._props},t.prototype.get=function(e){return void 0===e?this._props:this._props[e]},t.prototype.set=function(e,t){var n;"string"==typeof e?(n={})[e]=void 0===t?null:t:n=e,this.setProps(n)},t.prototype.reset=function(e){var t,n=this._props,o={};for(t in n)o[t]=void 0;for(t in e)o[t]=e[t];this.setProps(o)},t.prototype.unset=function(e){var t,n,o={};for(t="string"==typeof e?[e]:e,n=0;n<t.length;n++)o[t[n]]=void 0;this.setProps(o)},t.prototype.setProps=function(e){var t,n,o={},i=0;for(t in e)"object"!=typeof(n=e[t])&&n===this._props[t]||(o[t]=n,i++);if(i){for(t in this.trigger("before:batchChange",o),o)n=o[t],this.trigger("before:change",t,n),this.trigger("before:change:"+t,n);for(t in o)void 0===(n=o[t])?delete this._props[t]:this._props[t]=n,this.trigger("change:"+t,n),this.trigger("change",t,n);this.trigger("batchChange",o)}},t.prototype.watch=function(e,t,n,o){var i=this;this.unwatch(e),this._watchers[e]=this._watchDeps(t,function(t){var o=n.call(i,t);o&&o.then?(i.unset(e),o.then(function(t){i.set(e,t)})):i.set(e,o)},function(t){i.unset(e),o&&o.call(i,t)})},t.prototype.unwatch=function(e){var t=this._watchers[e];t&&(delete this._watchers[e],t.teardown())},t.prototype._watchDeps=function(e,t,n){var o=this,i=0,r=e.length,s=0,a={},l=[],c=!1,u=function(e,t){o.on(e,t),l.push([e,t])};return e.forEach(function(e){var o=!1;"?"===e.charAt(0)&&(e=e.substring(1),o=!0),u("before:change:"+e,function(e){1==++i&&s===r&&(c=!0,n(a),c=!1)}),u("change:"+e,function(n){!function(e,n,o){void 0===n?(o||void 0===a[e]||s--,delete a[e]):(o||void 0!==a[e]||s++,a[e]=n),--i||s===r&&(c||t(a))}(e,n,o)})}),e.forEach(function(e){var t=!1;"?"===e.charAt(0)&&(e=e.substring(1),t=!0),o.has(e)?(a[e]=o.get(e),s++):t&&s++}),s===r&&t(a),{teardown:function(){for(var e=0;e<l.length;e++)o.off(l[e][0],l[e][1]);l=null,s===r&&n()},flash:function(){s===r&&(n(),t(a))}}},t.prototype.flash=function(e){var t=this._watchers[e];t&&t.flash()},t}(i.default);t.default=a,a.prototype._globalWatchArgs={},r.default.mixInto(a),s.default.mixInto(a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),r=n(13),s=n(210);t.default={parse:function(e,t){return i.isTimeString(e.start)||o.isDuration(e.start)||i.isTimeString(e.end)||o.isDuration(e.end)?s.default.parse(e,t):r.default.parse(e,t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=n(17),r=function(){function e(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}return e.createFromDiff=function(t,n,i){var r,s,a,l=t.end&&!n.end,c=t.isAllDay()&&!n.isAllDay(),u=!t.isAllDay()&&n.isAllDay();function d(e,t){return i?o.diffByUnit(e,t,i):n.isAllDay()?o.diffDay(e,t):o.diffDayTime(e,t)}return r=d(n.start,t.start),n.end&&(s=d(n.unzonedRange.getEnd(),t.unzonedRange.getEnd()).subtract(r)),(a=new e).clearEnd=l,a.forceTimed=c,a.forceAllDay=u,a.setDateDelta(r),a.setEndDelta(s),a},e.prototype.buildNewDateProfile=function(e,t){var n=e.start.clone(),o=null,r=!1;return e.end&&!this.clearEnd?o=e.end.clone():this.endDelta&&!o&&(o=t.getDefaultEventEnd(e.isAllDay(),n)),this.forceTimed?(r=!0,n.hasTime()||n.time(0),o&&!o.hasTime()&&o.time(0)):this.forceAllDay&&(n.hasTime()&&n.stripTime(),o&&o.hasTime()&&o.stripTime()),this.dateDelta&&(r=!0,n.add(this.dateDelta),o&&o.add(this.dateDelta)),this.endDelta&&(r=!0,o.add(this.endDelta)),this.startDelta&&(r=!0,n.add(this.startDelta)),r&&(n=t.applyTimezone(n),o&&(o=t.applyTimezone(o))),!o&&t.opt("forceEventDuration")&&(o=t.getDefaultEventEnd(e.isAllDay(),n)),new i.default(n,o,t)},e.prototype.setDateDelta=function(e){e&&e.valueOf()?this.dateDelta=e:this.dateDelta=null},e.prototype.setStartDelta=function(e){e&&e.valueOf()?this.startDelta=e:this.startDelta=null},e.prototype.setEndDelta=function(e){e&&e.valueOf()?this.endDelta=e:this.endDelta=null},e.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(213),i=n(214),r={};t.defineThemeSystem=function(e,t){r[e]=t},t.getThemeSystemClass=function(e){return e?!0===e?i.default:r[e]:o.default}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(20),a=n(6),l=n(13),c=function(e){function t(t){var n=e.call(this,t)||this;return n.eventDefs=[],n}return o.__extends(t,e),t.parse=function(e,t){var n;return i.isArray(e.events)?n=e:i.isArray(e)&&(n={events:e}),!!n&&a.default.parse.call(this,n,t)},t.prototype.setRawEventDefs=function(e){this.rawEventDefs=e,this.eventDefs=this.parseEventDefs(e)},t.prototype.fetch=function(e,t,n){var o,i=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==n)for(o=0;o<i.length;o++)i[o]instanceof l.default&&i[o].rezone();return this.currentTimezone=n,s.default.resolve(i)},t.prototype.addEventDef=function(e){this.eventDefs.push(e)},t.prototype.removeEventDefsById=function(e){return r.removeMatching(this.eventDefs,function(t){return t.id===e})},t.prototype.removeAllEventDefs=function(){this.eventDefs=[]},t.prototype.getPrimitive=function(){return this.rawEventDefs},t.prototype.applyManualStandardProps=function(t){var n=e.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),n},t}(a.default);t.default=c,c.defineStandardProps({events:!1})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=function(){function e(e){this.isHorizontal=!1,this.isVertical=!1,this.els=o(e.els),this.isHorizontal=e.isHorizontal,this.isVertical=e.isVertical,this.forcedOffsetParentEl=e.offsetParent?o(e.offsetParent):null}return e.prototype.build=function(){var e=this.forcedOffsetParentEl;!e&&this.els.length>0&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},e.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},e.prototype.ensureBuilt=function(){this.origin||this.build()},e.prototype.buildElHorizontals=function(){var e=[],t=[];this.els.each(function(n,i){var r=o(i),s=r.offset().left,a=r.outerWidth();e.push(s),t.push(s+a)}),this.lefts=e,this.rights=t},e.prototype.buildElVerticals=function(){var e=[],t=[];this.els.each(function(n,i){var r=o(i),s=r.offset().top,a=r.outerHeight();e.push(s),t.push(s+a)}),this.tops=e,this.bottoms=t},e.prototype.getHorizontalIndex=function(e){this.ensureBuilt();var t,n=this.lefts,o=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<o[t])return t},e.prototype.getVerticalIndex=function(e){this.ensureBuilt();var t,n=this.tops,o=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<o[t])return t},e.prototype.getLeftOffset=function(e){return this.ensureBuilt(),this.lefts[e]},e.prototype.getLeftPosition=function(e){return this.ensureBuilt(),this.lefts[e]-this.origin.left},e.prototype.getRightOffset=function(e){return this.ensureBuilt(),this.rights[e]},e.prototype.getRightPosition=function(e){return this.ensureBuilt(),this.rights[e]-this.origin.left},e.prototype.getWidth=function(e){return this.ensureBuilt(),this.rights[e]-this.lefts[e]},e.prototype.getTopOffset=function(e){return this.ensureBuilt(),this.tops[e]},e.prototype.getTopPosition=function(e){return this.ensureBuilt(),this.tops[e]-this.origin.top},e.prototype.getBottomOffset=function(e){return this.ensureBuilt(),this.bottoms[e]},e.prototype.getBottomPosition=function(e){return this.ensureBuilt(),this.bottoms[e]-this.origin.top},e.prototype.getHeight=function(e){return this.ensureBuilt(),this.bottoms[e]-this.tops[e]},e.prototype.queryBoundingRect=function(){var e;return this.els.length>0&&!(e=i.getScrollParent(this.els.eq(0))).is(document)?i.getClientRect(e):null},e.prototype.isPointInBounds=function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},e.prototype.isLeftInBounds=function(e){return!this.boundingRect||e>=this.boundingRect.left&&e<this.boundingRect.right},e.prototype.isTopInBounds=function(e){return!this.boundingRect||e>=this.boundingRect.top&&e<this.boundingRect.bottom},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(7),s=n(21),a=function(){function e(e){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=e||{}}return e.prototype.startInteraction=function(e,t){if(void 0===t&&(t={}),"mousedown"===e.type){if(s.default.get().shouldIgnoreMouse())return;if(!i.isPrimaryMouseButton(e))return;e.preventDefault()}this.isInteracting||(this.delay=i.firstDefined(t.delay,this.options.delay,0),this.minDistance=i.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,i.preventSelection(o("body")),this.isInteracting=!0,this.isTouch=i.getEvIsTouch(e),this.isGeneric="dragstart"===e.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=i.getEvX(e),this.originY=i.getEvY(e),this.scrollEl=i.getScrollParent(o(e.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(e),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e))},e.prototype.handleInteractionStart=function(e){this.trigger("interactionStart",e)},e.prototype.endInteraction=function(e,t){this.isInteracting&&(this.endDrag(e),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(e,t),i.allowSelection(o("body")))},e.prototype.handleInteractionEnd=function(e,t){this.trigger("interactionEnd",e,t||!1)},e.prototype.bindHandlers=function(){var e=s.default.get();this.isGeneric?this.listenTo(o(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(e,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(e,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(e,{selectstart:i.preventDefault,contextmenu:i.preventDefault})},e.prototype.unbindHandlers=function(){this.stopListeningTo(s.default.get()),this.stopListeningTo(o(document))},e.prototype.startDrag=function(e,t){this.startInteraction(e,t),this.isDragging||(this.isDragging=!0,this.handleDragStart(e))},e.prototype.handleDragStart=function(e){this.trigger("dragStart",e)},e.prototype.handleMove=function(e){var t=i.getEvX(e)-this.originX,n=i.getEvY(e)-this.originY,o=this.minDistance;this.isDistanceSurpassed||t*t+n*n>=o*o&&this.handleDistanceSurpassed(e),this.isDragging&&this.handleDrag(t,n,e)},e.prototype.handleDrag=function(e,t,n){this.trigger("drag",e,t,n),this.updateAutoScroll(n)},e.prototype.endDrag=function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},e.prototype.handleDragEnd=function(e){this.trigger("dragEnd",e)},e.prototype.startDelay=function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},e.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},e.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},e.prototype.handleTouchMove=function(e){this.isDragging&&this.shouldCancelTouchScroll&&e.preventDefault(),this.handleMove(e)},e.prototype.handleMouseMove=function(e){this.handleMove(e)},e.prototype.handleTouchScroll=function(e){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(e,!0)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.options[e]&&this.options[e].apply(this,t),this["_"+e]&&this["_"+e].apply(this,t)},e.prototype.initAutoScroll=function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",i.debounce(this.handleDebouncedScroll,100))},e.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},e.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=i.getOuterRect(this.scrollEl))},e.prototype.updateAutoScroll=function(e){var t,n,o,r,s=this.scrollSensitivity,a=this.scrollBounds,l=0,c=0;a&&(t=(s-(i.getEvY(e)-a.top))/s,n=(s-(a.bottom-i.getEvY(e)))/s,o=(s-(i.getEvX(e)-a.left))/s,r=(s-(a.right-i.getEvX(e)))/s,t>=0&&t<=1?l=t*this.scrollSpeed*-1:n>=0&&n<=1&&(l=n*this.scrollSpeed),o>=0&&o<=1?c=o*this.scrollSpeed*-1:r>=0&&r<=1&&(c=r*this.scrollSpeed)),this.setScrollVel(l,c)},e.prototype.setScrollVel=function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(i.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},e.prototype.constrainScrollVel=function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},e.prototype.scrollIntervalFunc=function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},e.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},e.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},e.prototype.handleScrollEnd=function(){},e}();t.default=a,r.default.mixInto(a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.updateDayTable=function(){for(var e,t,n,o=this,i=o.view,r=i.calendar,s=r.msToUtcMoment(o.dateProfile.renderUnzonedRange.startMs,!0),a=r.msToUtcMoment(o.dateProfile.renderUnzonedRange.endMs,!0),l=-1,c=[],u=[];s.isBefore(a);)i.isHiddenDay(s)?c.push(l+.5):(l++,c.push(l),u.push(s.clone())),s.add(1,"days");if(this.breakOnWeeks){for(t=u[0].day(),e=1;e<u.length&&u[e].day()!==t;e++);n=Math.ceil(u.length/e)}else n=1,e=u.length;this.dayDates=u,this.dayIndices=c,this.daysPerRow=e,this.rowCnt=n,this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(e,t){return this.dayDates[this.getCellDayIndex(e,t)].clone()},t.prototype.getCellRange=function(e,t){var n=this.getCellDate(e,t);return{start:n,end:n.clone().add(1,"days")}},t.prototype.getCellDayIndex=function(e,t){return e*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(e){return this.isRTL?this.colCnt-1-e:e},t.prototype.getDateDayIndex=function(e){var t=this.dayIndices,n=e.diff(this.dayDates[0],"days");return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(e){var t,n,o,i,r,s=this.daysPerRow,a=this.view.computeDayRange(e),l=this.getDateDayIndex(a.start),c=this.getDateDayIndex(a.end.clone().subtract(1,"days")),u=[];for(t=0;t<this.rowCnt;t++)o=(n=t*s)+s-1,i=Math.max(l,n),r=Math.min(c,o),(i=Math.ceil(i))<=(r=Math.floor(r))&&u.push({row:t,firstRowDayIndex:i-n,lastRowDayIndex:r-n,isStart:i===l,isEnd:r===c});return u},t.prototype.sliceRangeByDay=function(e){var t,n,o,i,r,s,a=this.daysPerRow,l=this.view.computeDayRange(e),c=this.getDateDayIndex(l.start),u=this.getDateDayIndex(l.end.clone().subtract(1,"days")),d=[];for(t=0;t<this.rowCnt;t++)for(o=(n=t*a)+a-1,i=n;i<=o;i++)r=Math.max(c,i),s=Math.min(u,i),(r=Math.ceil(r))<=(s=Math.floor(s))&&d.push({row:t,firstRowDayIndex:r-n,lastRowDayIndex:s-n,isStart:r===c,isEnd:s===u});return d},t.prototype.renderHeadHtml=function(){var e=this.view.calendar.theme;return'<div class="fc-row '+e.getClass("headerRow")+'"><table class="'+e.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},t.prototype.renderHeadDateCellsHtml=function(){var e,t,n=[];for(e=0;e<this.colCnt;e++)t=this.getCellDate(0,e),n.push(this.renderHeadDateCellHtml(t));return n.join("")},t.prototype.renderHeadDateCellHtml=function(e,t,n){var o,r=this,s=r.view,a=r.dateProfile.activeUnzonedRange.containsDate(e),l=["fc-day-header",s.calendar.theme.getClass("widgetHeader")];return o="function"==typeof r.opt("columnHeaderHtml")?r.opt("columnHeaderHtml")(e):"function"==typeof r.opt("columnHeaderText")?i.htmlEscape(r.opt("columnHeaderText")(e)):i.htmlEscape(e.format(r.colHeadFormat)),1===r.rowCnt?l=l.concat(r.getDayClasses(e,!0)):l.push("fc-"+i.dayIDs[e.day()]),'<th class="'+l.join(" ")+'"'+(1===(a&&r.rowCnt)?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+(a?s.buildGotoAnchorHtml({date:e,forceOff:r.rowCnt>1||1===r.colCnt},o):o)+"</th>"},t.prototype.renderBgTrHtml=function(e){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+"</tr>"},t.prototype.renderBgIntroHtml=function(e){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(e){var t,n,o=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),o.push(this.renderBgCellHtml(n));return o.join("")},t.prototype.renderBgCellHtml=function(e,t){var n=this,o=n.view,i=n.dateProfile.activeUnzonedRange.containsDate(e),r=n.getDayClasses(e);return r.unshift("fc-day",o.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(i?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"></td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))},t}(n(14).default);t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.component=e,this.fillRenderer=t}return e.prototype.render=function(e){var t=this.component,n=t._getDateProfile().activeUnzonedRange,o=e.buildEventInstanceGroup(t.hasAllDayBusinessHours,n),i=o?t.eventRangesToEventFootprints(o.sliceRenderRanges(n)):[];this.renderEventFootprints(i)},e.prototype.renderEventFootprints=function(e){var t=this.component.eventFootprintsToSegs(e);this.renderSegs(t),this.segs=t},e.prototype.renderSegs=function(e){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",e,{getClasses:function(e){return["fc-nonbusiness","fc-bgevent"]}})},e.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},e.prototype.getSegs=function(){return this.segs||[]},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=function(){function e(e){this.fillSegTag="div",this.component=e,this.elsByFill={}}return e.prototype.renderFootprint=function(e,t,n){this.renderSegs(e,this.component.componentFootprintToSegs(t),n)},e.prototype.renderSegs=function(e,t,n){var o;return t=this.buildSegEls(e,t,n),(o=this.attachSegEls(e,t))&&this.reportEls(e,o),t},e.prototype.unrender=function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},e.prototype.buildSegEls=function(e,t,n){var i,r=this,s="",a=[];if(t.length){for(i=0;i<t.length;i++)s+=this.buildSegHtml(e,t[i],n);o(s).each(function(e,i){var s=t[e],l=o(i);n.filterEl&&(l=n.filterEl(s,l)),l&&(l=o(l)).is(r.fillSegTag)&&(s.el=l,a.push(s))})}return a},e.prototype.buildSegHtml=function(e,t,n){var o=n.getClasses?n.getClasses(t):[],r=i.cssToStr(n.getCss?n.getCss(t):{});return"<"+this.fillSegTag+(o.length?' class="'+o.join(" ")+'"':"")+(r?' style="'+r+'"':"")+" />"},e.prototype.attachSegEls=function(e,t){},e.prototype.reportEls=function(e,t){this.elsByFill[e]?this.elsByFill[e]=this.elsByFill[e].add(t):this.elsByFill[e]=o(t)},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),i=n(36),r=n(6),s=function(){function e(e,t){this.view=e._getView(),this.component=e,this.eventRenderer=t}return e.prototype.renderComponentFootprint=function(e){this.renderEventFootprints([this.fabricateEventFootprint(e)])},e.prototype.renderEventDraggingFootprints=function(e,t,n){this.renderEventFootprints(e,t,"fc-dragging",n?null:this.view.opt("dragOpacity"))},e.prototype.renderEventResizingFootprints=function(e,t,n){this.renderEventFootprints(e,t,"fc-resizing")},e.prototype.renderEventFootprints=function(e,t,n,o){var i,r=this.component.eventFootprintsToSegs(e),s="fc-helper "+(n||"");for(r=this.eventRenderer.renderFgSegEls(r),i=0;i<r.length;i++)r[i].el.addClass(s);if(null!=o)for(i=0;i<r.length;i++)r[i].el.css("opacity",o);this.helperEls=this.renderSegs(r,t)},e.prototype.renderSegs=function(e,t){},e.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},e.prototype.fabricateEventFootprint=function(e){var t,n=this.view.calendar,s=n.footprintToDateProfile(e),a=new o.default(new r.default(n));return a.dateProfile=s,t=a.buildInstance(),new i.default(e,a,t)},e}();t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(21),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"click",this.handleClick.bind(this)),t.bindSegHandlerToEl(e,"mouseenter",this.handleMouseover.bind(this)),t.bindSegHandlerToEl(e,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(e,t){!1===this.component.publiclyTrigger("eventClick",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,this.view]})&&t.preventDefault()},t.prototype.handleMouseover=function(e,t){i.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=e,this.view.isEventDefResizable(e.footprint.eventDef)&&e.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(e,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(e.footprint.eventDef)&&e.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:e.el[0],args:[e.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(n(15).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(14),r=n(245),s=n(225),a=n(59),l=n(224),c=n(223),u=n(222),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(i.default);t.default=d,d.prototype.dateClickingClass=r.default,d.prototype.dateSelectingClass=s.default,d.prototype.eventPointingClass=a.default,d.prototype.eventDraggingClass=l.default,d.prototype.eventResizingClass=c.default,d.prototype.externalDroppingClass=u.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(53),a=n(249),l=n(5),c=n(12),u=n(36),d=n(56),p=n(60),h=n(40),f=n(55),m=n(250),g=n(251),v=n(252),y=function(e){function t(t){var n=e.call(this,t)||this;return n.cellWeekNumbersVisible=!1,n.bottomCoordPadding=0,n.isRigid=!1,n.hasAllDayBusinessHours=!0,n}return o.__extends(t,e),t.prototype.componentFootprintToSegs=function(e){var t,n,o=this.sliceRangeByRow(e.unzonedRange);for(t=0;t<o.length;t++)n=o[t],this.isRTL?(n.leftCol=this.daysPerRow-1-n.lastRowDayIndex,n.rightCol=this.daysPerRow-1-n.firstRowDayIndex):(n.leftCol=n.firstRowDayIndex,n.rightCol=n.lastRowDayIndex);return o},t.prototype.renderDates=function(e){this.dateProfile=e,this.updateDayTable(),this.renderGrid()},t.prototype.unrenderDates=function(){this.removeSegPopover()},t.prototype.renderGrid=function(){var e,t,n=this.view,o=this.rowCnt,i=this.colCnt,r="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),e=0;e<o;e++)r+=this.renderDayRowHtml(e,this.isRigid);for(this.el.html(r),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new s.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new s.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),e=0;e<o;e++)for(t=0;t<i;t++)this.publiclyTrigger("dayRender",{context:n,args:[this.getCellDate(e,t),this.getCellEl(e,t),n]})},t.prototype.renderDayRowHtml=function(e,t){var n=this.view.calendar.theme,o=["fc-row","fc-week",n.getClass("dayRow")];return t&&o.push("fc-rigid"),'<div class="'+o.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+this.renderBgTrHtml(e)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(e){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+"</tr>"},t.prototype.renderNumberIntroHtml=function(e){return this.renderIntroHtml()},t.prototype.renderNumberCellsHtml=function(e){var t,n,o=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),o.push(this.renderNumberCellHtml(n));return o.join("")},t.prototype.renderNumberCellHtml=function(e){var t,n,o=this.view,i="",r=this.dateProfile.activeUnzonedRange.containsDate(e),s=this.getIsDayNumbersVisible()&&r;return s||this.cellWeekNumbersVisible?((t=this.getDayClasses(e)).unshift("fc-day-top"),this.cellWeekNumbersVisible&&(n="ISO"===e._locale._fullCalendar_weekCalc?1:e._locale.firstDayOfWeek()),i+='<td class="'+t.join(" ")+'"'+(r?' data-date="'+e.format()+'"':"")+">",this.cellWeekNumbersVisible&&e.day()===n&&(i+=o.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),s&&(i+=o.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.format("D"))),i+="</td>"):"<td/>"},t.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},t.prototype.queryHit=function(e,t){if(this.colCoordCache.isLeftInBounds(e)&&this.rowCoordCache.isTopInBounds(t)){var n=this.colCoordCache.getHorizontalIndex(e),o=this.rowCoordCache.getVerticalIndex(t);if(null!=o&&null!=n)return this.getCellHit(o,n)}},t.prototype.getHitFootprint=function(e){var t=this.getCellRange(e.row,e.col);return new c.default(new l.default(t.start,t.end),!0)},t.prototype.getHitEl=function(e){return this.getCellEl(e.row,e.col)},t.prototype.getCellHit=function(e,t){return{row:e,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(e),bottom:this.rowCoordCache.getBottomOffset(e)}},t.prototype.getCellEl=function(e,t){return this.cellEls.eq(e*this.colCnt+t)},t.prototype.executeEventUnrender=function(){this.removeSegPopover(),e.prototype.executeEventUnrender.call(this)},t.prototype.getOwnEventSegs=function(){return e.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},t.prototype.renderDrag=function(e,t,n){var o;for(o=0;o<e.length;o++)this.renderHighlight(e[o].componentFootprint);if(e.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(e,t,n),!0},t.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},t.prototype.renderEventResize=function(e,t,n){var o;for(o=0;o<e.length;o++)this.renderHighlight(e[o].componentFootprint);this.helperRenderer.renderEventResizingFootprints(e,t,n)},t.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(e){var t,n,o=this.eventRenderer.rowStructs||[];for(t=0;t<o.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},t.prototype.computeRowLevelLimit=function(e){var t,n,o,r=this.rowEls.eq(e).height(),s=this.eventRenderer.rowStructs[e].tbodyEl.children();function a(e,t){o=Math.max(o,i(t).outerHeight())}for(t=0;t<s.length;t++)if(n=s.eq(t).removeClass("fc-limited"),o=0,n.find("> td > :first-child").each(a),n.position().top+o>r)return t;return!1},t.prototype.limitRow=function(e,t){var n,o,r,s,a,l,c,u,d,p,h,f,m,g,v,y=this,b=this.eventRenderer.rowStructs[e],_=[],w=0,x=function(n){for(;w<n;)(l=y.getCellSegs(e,w,t)).length&&(d=o[t-1][w],v=y.renderMoreLink(e,w,l),g=i("<div/>").append(v),d.append(g),_.push(g[0])),w++};if(t&&t<b.segLevels.length){for(n=b.segLevels[t-1],o=b.cellMatrix,r=b.tbodyEl.children().slice(t).addClass("fc-limited").get(),s=0;s<n.length;s++){for(x((a=n[s]).leftCol),u=[],c=0;w<=a.rightCol;)l=this.getCellSegs(e,w,t),u.push(l),c+=l.length,w++;if(c){for(p=(d=o[t-1][a.leftCol]).attr("rowspan")||1,h=[],f=0;f<u.length;f++)m=i('<td class="fc-more-cell"/>').attr("rowspan",p),l=u[f],v=this.renderMoreLink(e,a.leftCol+f,[a].concat(l)),g=i("<div/>").append(v),m.append(g),h.push(m[0]),_.push(m[0]);d.addClass("fc-limited").after(i(h)),r.push(d[0])}}x(this.colCnt),b.moreEls=i(_),b.limitedEls=i(r)}},t.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},t.prototype.renderMoreLink=function(e,t,n){var o=this,r=this.view;return i('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(s){var a=o.opt("eventLimitClick"),l=o.getCellDate(e,t),c=i(s.currentTarget),u=o.getCellEl(e,t),d=o.getCellSegs(e,t),p=o.resliceDaySegs(d,l),h=o.resliceDaySegs(n,l);"function"==typeof a&&(a=o.publiclyTrigger("eventLimitClick",{context:r,args:[{date:l.clone(),dayEl:u,moreEl:c,segs:p,hiddenSegs:h},s,r]})),"popover"===a?o.showSegPopover(e,t,c,p):"string"==typeof a&&r.calendar.zoomTo(l,a)})},t.prototype.showSegPopover=function(e,t,n,o){var i,r,s=this,l=this.view,c=n.parent();i=1===this.rowCnt?l.el:this.rowEls.eq(e),r={className:"fc-more-popover "+l.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(e,t,o),parentEl:l.el,top:i.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){s.popoverSegs&&s.triggerBeforeEventSegsDestroyed(s.popoverSegs),s.segPopover.removeElement(),s.segPopover=null,s.popoverSegs=null}},this.isRTL?r.right=c.offset().left+c.outerWidth()+1:r.left=c.offset().left-1,this.segPopover=new a.default(r),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(o)},t.prototype.renderSegPopoverContent=function(e,t,n){var o,s=this.view.calendar.theme,a=this.getCellDate(e,t).format(this.opt("dayPopoverFormat")),l=i('<div class="fc-header '+s.getClass("popoverHeader")+'"><span class="fc-close '+s.getIconClass("close")+'"></span><span class="fc-title">'+r.htmlEscape(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+s.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),c=l.find(".fc-event-container");for(n=this.eventRenderer.renderFgSegEls(n,!0),this.popoverSegs=n,o=0;o<n.length;o++)this.hitsNeeded(),n[o].hit=this.getCellHit(e,t),this.hitsNotNeeded(),c.append(n[o].el);return l},t.prototype.resliceDaySegs=function(e,t){var n,o,r,s=t.clone(),a=s.clone().add(1,"days"),d=new l.default(s,a),p=[];for(n=0;n<e.length;n++)(r=(o=e[n]).footprint.componentFootprint.unzonedRange.intersect(d))&&p.push(i.extend({},o,{footprint:new u.default(new c.default(r,o.footprint.componentFootprint.isAllDay),o.footprint.eventDef,o.footprint.eventInstance),isStart:o.isStart&&r.isStart,isEnd:o.isEnd&&r.isEnd}));return this.eventRenderer.sortEventSegs(p),p},t.prototype.getMoreLinkText=function(e){var t=this.opt("eventLimitText");return"function"==typeof t?t(e):"+"+e+" "+t},t.prototype.getCellSegs=function(e,t,n){for(var o,i=this.eventRenderer.rowStructs[e].segMatrix,r=n||0,s=[];r<i.length;)(o=i[r][t])&&s.push(o),r++;return s},t}(h.default);t.default=y,y.prototype.eventRendererClass=m.default,y.prototype.businessHourRendererClass=d.default,y.prototype.helperRendererClass=g.default,y.prototype.fillRendererClass=v.default,p.default.mixInto(y),f.default.mixInto(y)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(39),a=n(41),l=n(228),c=n(61),u=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.dayGrid=o.instantiateDayGrid(),o.dayGrid.isRigid=o.hasRigidRows(),o.opt("weekNumbers")&&(o.opt("weekNumbersWithinDays")?(o.dayGrid.cellWeekNumbersVisible=!0,o.dayGrid.colWeekNumbersVisible=!1):(o.dayGrid.cellWeekNumbersVisible=!1,o.dayGrid.colWeekNumbersVisible=!0)),o.addChild(o.dayGrid),o.scroller=new s.default({overflowX:"hidden",overflowY:"auto"}),o}return o.__extends(t,e),t.prototype.instantiateDayGrid=function(){return new(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}return o.__extends(t,e),t.prototype.renderHeadIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+e.calendar.theme.getClass("widgetHeader")+'" '+e.weekNumberStyleAttr()+"><span>"+r.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},t.prototype.renderNumberIntroHtml=function(e){var t=this.view,n=this.getCellDate(e,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"</td>":""},t.prototype.renderBgIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+e.calendar.theme.getClass("widgetContent")+'" '+e.weekNumberStyleAttr()+"></td>":""},t.prototype.renderIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"></td>":""},t.prototype.getIsNumbersVisible=function(){return c.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},t}(this.dayGridClass))(this)},t.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit),e.prototype.executeDateRender.call(this,t)},t.prototype.renderSkeleton=function(){var e,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),e=this.scroller.el.addClass("fc-day-grid-container"),t=i('<div class="fc-day-grid" />').appendTo(e),this.el.find(".fc-body > tr > td").append(e),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(t)},t.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'"></td></tr></tbody></table>'},t.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},t.prototype.updateSize=function(t,n,o){var i,s,a=this.opt("eventLimit"),l=this.dayGrid.headContainerEl.find(".fc-row");this.dayGrid.rowEls?(e.prototype.updateSize.call(this,t,n,o),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=r.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),r.uncompensateScroll(l),this.dayGrid.removeSegPopover(),a&&"number"==typeof a&&this.dayGrid.limitRows(a),i=this.computeScrollerHeight(t),this.setGridHeight(i,n),a&&"number"!=typeof a&&this.dayGrid.limitRows(a),n||(this.scroller.setHeight(i),((s=this.scroller.getScrollbarWidths()).left||s.right)&&(r.compensateScroll(l,s),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(s))):n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},t.prototype.computeScrollerHeight=function(e){return e-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(e,t){t?r.undistributeHeight(this.dayGrid.rowEls):r.distributeHeight(this.dayGrid.rowEls,e,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t}(a.default);t.default=u,u.prototype.dateProfileGeneratorClass=l.default,u.prototype.dayGridClass=c.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(12),r=n(49),s=n(6),a=n(35),l=function(){function e(e,t){this.eventManager=e,this._calendar=t}return e.prototype.opt=function(e){return this._calendar.opt(e)},e.prototype.isEventInstanceGroupAllowed=function(e){var t,n=e.getEventDef(),o=this.eventRangesToEventFootprints(e.getAllEventRanges()),i=this.getPeerEventInstances(n).map(a.eventInstanceToEventRange),r=this.eventRangesToEventFootprints(i),s=n.getConstraint(),l=n.getOverlap(),c=this.opt("eventAllow");for(t=0;t<o.length;t++)if(!this.isFootprintAllowed(o[t].componentFootprint,r,s,l,o[t].eventInstance))return!1;if(c)for(t=0;t<o.length;t++)if(!1===c(o[t].componentFootprint.toLegacy(this._calendar),o[t].getEventLegacy()))return!1;return!0},e.prototype.getPeerEventInstances=function(e){return this.eventManager.getEventInstancesWithoutId(e.id)},e.prototype.isSelectionFootprintAllowed=function(e){var t,n=this.eventManager.getEventInstances().map(a.eventInstanceToEventRange),o=this.eventRangesToEventFootprints(n);return!!this.isFootprintAllowed(e,o,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(!(t=this.opt("selectAllow"))||!1!==t(e.toLegacy(this._calendar)))},e.prototype.isFootprintAllowed=function(e,t,n,o,i){var r,s;if(null!=n&&(r=this.constraintValToFootprints(n,e.isAllDay),!this.isFootprintWithinConstraints(e,r)))return!1;if(s=this.collectOverlapEventFootprints(t,e),!1===o){if(s.length)return!1}else if("function"==typeof o&&!function(e,t,n){var o;for(o=0;o<e.length;o++)if(!t(e[o].eventInstance.toLegacy(),n?n.toLegacy():null))return!1;return!0}(s,o,i))return!1;return!(i&&!function(e,t){var n,o,i,r,s=t.toLegacy();for(n=0;n<e.length;n++){if(o=e[n].eventInstance,i=o.def,!1===(r=i.getOverlap()))return!1;if("function"==typeof r&&!r(o.toLegacy(),s))return!1}return!0}(s,i))},e.prototype.isFootprintWithinConstraints=function(e,t){var n;for(n=0;n<t.length;n++)if(this.footprintContainsFootprint(t[n],e))return!0;return!1},e.prototype.constraintValToFootprints=function(e,t){var n;return"businessHours"===e?this.buildCurrentBusinessFootprints(t):"object"==typeof e?(n=this.parseEventDefToInstances(e))?this.eventInstancesToFootprints(n):this.parseFootprints(e):null!=e?(n=this.eventManager.getEventInstancesWithId(e),this.eventInstancesToFootprints(n)):void 0},e.prototype.buildCurrentBusinessFootprints=function(e){var t=this._calendar.view,n=t.get("businessHourGenerator"),o=t.dateProfile.activeUnzonedRange,i=n.buildEventInstanceGroup(e,o);return i?this.eventInstancesToFootprints(i.eventInstances):[]},e.prototype.eventInstancesToFootprints=function(e){var t=e.map(a.eventInstanceToEventRange);return this.eventRangesToEventFootprints(t).map(a.eventFootprintToComponentFootprint)},e.prototype.collectOverlapEventFootprints=function(e,t){var n,o=[];for(n=0;n<e.length;n++)this.footprintsIntersect(t,e[n].componentFootprint)&&o.push(e[n]);return o},e.prototype.parseEventDefToInstances=function(e){var t=this.eventManager,n=r.default.parse(e,new s.default(this._calendar));return!!n&&n.buildInstances(t.currentPeriod.unzonedRange)},e.prototype.eventRangesToEventFootprints=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventRangeToEventFootprints(e[t]));return n},e.prototype.eventRangeToEventFootprints=function(e){return[a.eventRangeToEventFootprint(e)]},e.prototype.parseFootprints=function(e){var t,n;return e.start&&((t=this._calendar.moment(e.start)).isValid()||(t=null)),e.end&&((n=this._calendar.moment(e.end)).isValid()||(n=null)),[new i.default(new o.default(t,n),t&&!t.hasTime()||n&&!n.hasTime())]},e.prototype.footprintContainsFootprint=function(e,t){return e.unzonedRange.containsRange(t.unzonedRange)},e.prototype.footprintsIntersect=function(e,t){return e.unzonedRange.intersectsWith(t.unzonedRange)},e}();t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.defineStandardProps=function(e){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap)),i.copyOwnProps(e,t.standardPropMap)},t.copyVerbatimStandardProps=function(e,t){var n,o=this.prototype.standardPropMap;for(n in o)null!=e[n]&&!0===o[n]&&(t[n]=e[n])},t.prototype.applyProps=function(e){var t,n=this.standardPropMap,o={},i={};for(t in e)!0===n[t]?this[t]=e[t]:!1===n[t]?o[t]=e[t]:i[t]=e[t];return this.applyMiscProps(i),this.applyManualStandardProps(o)},t.prototype.applyManualStandardProps=function(e){return!0},t.prototype.applyMiscProps=function(e){},t.prototype.isStandardProp=function(e){return e in this.standardPropMap},t}(n(14).default);t.default=r,r.prototype.standardPropMap={}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.def=e,this.dateProfile=t}return e.prototype.toLegacy=function(){var e=this.dateProfile,t=this.def.toLegacy();return t.start=e.start.clone(),t.end=e.end?e.end.clone():null,t},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(0),s=n(34),a=n(209),l=n(17),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},t.prototype.buildInstances=function(e){for(var t,n,o,i=this.source.calendar,r=e.getStart(),s=e.getEnd(),c=[];r.isBefore(s);)this.dowHash&&!this.dowHash[r.day()]||(n=(t=i.applyTimezone(r)).clone(),o=null,this.startTime?n.time(this.startTime):n.stripTime(),this.endTime&&(o=t.clone().time(this.endTime)),c.push(new a.default(this,new l.default(n,o,i)))),r.add(1,"days");return c},t.prototype.setDow=function(e){this.dowHash||(this.dowHash={});for(var t=0;t<e.length;t++)this.dowHash[e[t]]=!0},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.startTime&&(t.startTime=r.duration(this.startTime)),t.endTime&&(t.endTime=r.duration(this.endTime)),this.dowHash&&(t.dowHash=i.extend({},this.dowHash)),t},t}(s.default);t.default=c,c.prototype.applyProps=function(e){var t=s.default.prototype.applyProps.call(this,e);return e.start&&(this.startTime=r.duration(e.start)),e.end&&(this.endTime=r.duration(e.end)),e.dow&&this.setDow(e.dow),t},c.defineStandardProps({start:!1,end:!1,dow:!1})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,n){this.unzonedRange=e,this.eventDef=t,n&&(this.eventInstance=n)}}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(35),r=n(18),s=n(210),a=n(6),l={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},c=function(){function e(e,t){this.rawComplexDef=e,this.calendar=t}return e.prototype.buildEventInstanceGroup=function(e,t){var n,o=this.buildEventDefs(e);if(o.length)return(n=new r.default(i.eventDefsToEventInstances(o,t))).explicitEventDef=o[0],n},e.prototype.buildEventDefs=function(e){var t,n=this.rawComplexDef,i=[],r=!1,s=[];for(!0===n?i=[{}]:o.isPlainObject(n)?i=[n]:o.isArray(n)&&(i=n,r=!0),t=0;t<i.length;t++)r&&!i[t].dow||s.push(this.buildEventDef(e,i[t]));return s},e.prototype.buildEventDef=function(e,t){var n=o.extend({},l,t);return e&&(n.start=null,n.end=null),s.default.parse(n,new a.default(this.calendar))},e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(n(19).default);t.default=i,i.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},i.prototype.baseIconClass="fc-icon",i.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},i.prototype.iconOverrideOption="buttonIcons",i.prototype.iconOverrideCustomButtonOption="icon",i.prototype.iconOverridePrefix="fc-icon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(n(19).default);t.default=i,i.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},i.prototype.baseIconClass="ui-icon",i.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},i.prototype.iconOverrideOption="themeButtonIcons",i.prototype.iconOverrideCustomButtonOption="themeIcon",i.prototype.iconOverridePrefix="ui-icon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(20),s=n(6),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.parse=function(e,t){var n;return i.isFunction(e.events)?n=e:i.isFunction(e)&&(n={events:e}),!!n&&s.default.parse.call(this,n,t)},t.prototype.fetch=function(e,t,n){var o=this;return this.calendar.pushLoading(),r.default.construct(function(i){o.func.call(o.calendar,e.clone(),t.clone(),n,function(e){o.calendar.popLoading(),i(o.parseEventDefs(e))})})},t.prototype.getPrimitive=function(){return this.func},t.prototype.applyManualStandardProps=function(t){var n=e.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,n},t}(s.default);t.default=a,a.defineStandardProps({events:!1})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(20),a=n(6),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.parse=function(e,t){var n;return"string"==typeof e.url?n=e:"string"==typeof e&&(n={url:e}),!!n&&a.default.parse.call(this,n,t)},t.prototype.fetch=function(e,n,o){var a=this,l=this.ajaxSettings,c=l.success,u=l.error,d=this.buildRequestParams(e,n,o);return this.calendar.pushLoading(),s.default.construct(function(e,n){i.ajax(i.extend({},t.AJAX_DEFAULTS,l,{url:a.url,data:d,success:function(t,o,s){var l;a.calendar.popLoading(),t?(l=r.applyAll(c,a,[t,o,s]),i.isArray(l)&&(t=l),e(a.parseEventDefs(t))):n()},error:function(e,t,o){a.calendar.popLoading(),r.applyAll(u,a,[e,t,o]),n()}}))})},t.prototype.buildRequestParams=function(e,t,n){var o,r,s,a,l=this.calendar,c=this.ajaxSettings,u={};return null==(o=this.startParam)&&(o=l.opt("startParam")),null==(r=this.endParam)&&(r=l.opt("endParam")),null==(s=this.timezoneParam)&&(s=l.opt("timezoneParam")),a=i.isFunction(c.data)?c.data():c.data||{},i.extend(u,a),u[o]=e.format(),u[r]=t.format(),n&&"local"!==n&&(u[s]=n),u},t.prototype.getPrimitive=function(){return this.url},t.prototype.applyMiscProps=function(e){this.ajaxSettings=e},t.AJAX_DEFAULTS={dataType:"json",cache:!1},t}(a.default);t.default=l,l.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),i=function(){function e(){this.q=[],this.isPaused=!1,this.isRunning=!1}return e.prototype.queue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.q.push.apply(this.q,e),this.tryStart()},e.prototype.pause=function(){this.isPaused=!0},e.prototype.resume=function(){this.isPaused=!1,this.tryStart()},e.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},e.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},e.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},e.prototype.runRemaining=function(){var e,t,n=this;do{if(e=this.q.shift(),(t=this.runTask(e))&&t.then)return void t.then(function(){n.canRunNext()&&n.runRemaining()})}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},e.prototype.runTask=function(e){return e()},e}();t.default=i,o.default.mixInto(i)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(t){var n=e.call(this)||this;return n.waitsByNamespace=t||{},n}return o.__extends(t,e),t.prototype.queue=function(e,t,n){var o,i={func:e,namespace:t,type:n};t&&(o=this.waitsByNamespace[t]),this.waitNamespace&&(t===this.waitNamespace&&null!=o?this.delayWait(o):(this.clearWait(),this.tryStart())),this.compoundTask(i)&&(this.waitNamespace||null==o?this.tryStart():this.startWait(t,o))},t.prototype.startWait=function(e,t){this.waitNamespace=e,this.spawnWait(t)},t.prototype.delayWait=function(e){clearTimeout(this.waitId),this.spawnWait(e)},t.prototype.spawnWait=function(e){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null,t.tryStart()},e)},t.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},t.prototype.canRunNext=function(){if(!e.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var t=this.q,n=0;n<t.length;n++)if(t[n].namespace!==this.waitNamespace)return!0;return!1}return!0},t.prototype.runTask=function(e){e.func()},t.prototype.compoundTask=function(e){var t,n=this.q,o=!0;if(e.namespace&&"destroy"===e.type)for(t=n.length-1;t>=0;t--)switch(n[t].type){case"init":o=!1;case"add":case"remove":n.splice(t,1)}return o&&n.push(e),o},t}(n(217).default);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(0),s=n(4),a=n(10),l=n(47),c=n(237),u=n(35),d=function(e){function t(n,o){var i=e.call(this)||this;return i.isRTL=!1,i.hitsNeededDepth=0,i.hasAllDayBusinessHours=!1,i.isDatesRendered=!1,n&&(i.view=n),o&&(i.options=o),i.uid=String(t.guid++),i.childrenByUid={},i.nextDayThreshold=r.duration(i.opt("nextDayThreshold")),i.isRTL=i.opt("isRTL"),i.fillRendererClass&&(i.fillRenderer=new i.fillRendererClass(i)),i.eventRendererClass&&(i.eventRenderer=new i.eventRendererClass(i,i.fillRenderer)),i.helperRendererClass&&i.eventRenderer&&(i.helperRenderer=new i.helperRendererClass(i,i.eventRenderer)),i.businessHourRendererClass&&i.fillRenderer&&(i.businessHourRenderer=new i.businessHourRendererClass(i,i.fillRenderer)),i}return o.__extends(t,e),t.prototype.addChild=function(e){return!this.childrenByUid[e.uid]&&(this.childrenByUid[e.uid]=e,!0)},t.prototype.removeChild=function(e){return!!this.childrenByUid[e.uid]&&(delete this.childrenByUid[e.uid],!0)},t.prototype.updateSize=function(e,t,n){this.callChildren("updateSize",arguments)},t.prototype.opt=function(e){return this._getView().opt(e)},t.prototype.publiclyTrigger=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getCalendar();return n.publiclyTrigger.apply(n,e)},t.prototype.hasPublicHandlers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getCalendar();return n.hasPublicHandlers.apply(n,e)},t.prototype.executeDateRender=function(e){this.dateProfile=e,this.renderDates(e),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},t.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},t.prototype.renderDates=function(e){},t.prototype.unrenderDates=function(){},t.prototype.getNowIndicatorUnit=function(){},t.prototype.renderNowIndicator=function(e){this.callChildren("renderNowIndicator",arguments)},t.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},t.prototype.renderBusinessHours=function(e){this.businessHourRenderer&&this.businessHourRenderer.render(e),this.callChildren("renderBusinessHours",arguments)},t.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},t.prototype.executeEventRender=function(e){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(e)):this.renderEvents&&this.renderEvents(function(e){var t,n,o,i=[];for(t in e)for(n=e[t].eventInstances,o=0;o<n.length;o++)i.push(n[o].toLegacy());return i}(e)),this.callChildren("executeEventRender",arguments)},t.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},t.prototype.getBusinessHourSegs=function(){var e=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){e.push.apply(e,t.getBusinessHourSegs())}),e},t.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},t.prototype.getEventSegs=function(){var e=this.getOwnEventSegs();return this.iterChildren(function(t){e.push.apply(e,t.getEventSegs())}),e},t.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},t.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},t.prototype.triggerAfterEventSegsRendered=function(e){var t=this;this.hasPublicHandlers("eventAfterRender")&&e.forEach(function(e){var n;e.el&&(n=e.footprint.getEventLegacy(),t.publiclyTrigger("eventAfterRender",{context:n,args:[n,e.el,t]}))})},t.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},t.prototype.triggerBeforeEventSegsDestroyed=function(e){var t=this;this.hasPublicHandlers("eventDestroy")&&e.forEach(function(e){var n;e.el&&(n=e.footprint.getEventLegacy(),t.publiclyTrigger("eventDestroy",{context:n,args:[n,e.el,t]}))})},t.prototype.showEventsWithId=function(e){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===e&&t.el&&t.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},t.prototype.hideEventsWithId=function(e){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===e&&t.el&&t.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},t.prototype.renderDrag=function(e,t,n){var o=!1;return this.iterChildren(function(i){i.renderDrag(e,t,n)&&(o=!0)}),o},t.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},t.prototype.renderEventResize=function(e,t,n){this.callChildren("renderEventResize",arguments)},t.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},t.prototype.renderSelectionFootprint=function(e){this.renderHighlight(e),this.callChildren("renderSelectionFootprint",arguments)},t.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},t.prototype.renderHighlight=function(e){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",e,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},t.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},t.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},t.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(e,t){var n,o,i=this.childrenByUid;for(n in i)if(o=i[n].queryHit(e,t))break;return o},t.prototype.getSafeHitFootprint=function(e){var t=this.getHitFootprint(e);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},t.prototype.getHitFootprint=function(e){},t.prototype.getHitEl=function(e){},t.prototype.eventRangesToEventFootprints=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventRangeToEventFootprints(e[t]));return n},t.prototype.eventRangeToEventFootprints=function(e){return[u.eventRangeToEventFootprint(e)]},t.prototype.eventFootprintsToSegs=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventFootprintToSegs(e[t]));return n},t.prototype.eventFootprintToSegs=function(e){var t,n,o,i=e.componentFootprint.unzonedRange;for(t=this.componentFootprintToSegs(e.componentFootprint),n=0;n<t.length;n++)o=t[n],i.isStart||(o.isStart=!1),i.isEnd||(o.isEnd=!1),o.footprint=e;return t},t.prototype.componentFootprintToSegs=function(e){return[]},t.prototype.callChildren=function(e,t){this.iterChildren(function(n){n[e].apply(n,t)})},t.prototype.iterChildren=function(e){var t,n=this.childrenByUid;for(t in n)e(n[t])},t.prototype._getCalendar=function(){return this.calendar||this.view.calendar},t.prototype._getView=function(){return this.view},t.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},t.prototype.buildGotoAnchorHtml=function(e,t,n){var o,r,l,c;return i.isPlainObject(e)?(o=e.date,r=e.type,l=e.forceOff):o=e,c={date:(o=a.default(o)).format("YYYY-MM-DD"),type:r||"day"},"string"==typeof t&&(n=t,t=null),t=t?" "+s.attrsToStr(t):"",n=n||"",!l&&this.opt("navLinks")?"<a"+t+' data-goto="'+s.htmlEscape(JSON.stringify(c))+'">'+n+"</a>":"<span"+t+">"+n+"</span>"},t.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||s.htmlEscape(this.opt("allDayText"))},t.prototype.getDayClasses=function(e,t){var n,o=this._getView(),i=[];return this.dateProfile.activeUnzonedRange.containsDate(e)?(i.push("fc-"+s.dayIDs[e.day()]),o.isDateInOtherMonth(e,this.dateProfile)&&i.push("fc-other-month"),n=o.calendar.getNow(),e.isSame(n,"day")?(i.push("fc-today"),!0!==t&&i.push(o.calendar.theme.getClass("today"))):e<n?i.push("fc-past"):i.push("fc-future")):i.push("fc-disabled-day"),i},t.prototype.formatRange=function(e,t,n,o){var i=e.end;return t&&(i=i.clone().subtract(1)),l.formatRange(e.start,i,n,o,this.isRTL)},t.prototype.currentRangeAs=function(e){return this._getDateProfile().currentUnzonedRange.as(e)},t.prototype.computeDayRange=function(e){var t=this._getCalendar(),n=t.msToUtcMoment(e.startMs,!0),o=t.msToUtcMoment(e.endMs),i=+o.time(),r=o.clone().stripTime();return i&&i>=this.nextDayThreshold&&r.add(1,"days"),r<=n&&(r=n.clone().add(1,"days")),{start:n,end:r}},t.prototype.isMultiDayRange=function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1},t.guid=0,t}(c.default);t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),r=n(4),s=n(32),a=n(238),l=n(21),c=n(11),u=n(7),d=n(239),p=n(240),h=n(241),f=n(207),m=n(31),g=n(10),v=n(5),y=n(12),b=n(17),_=n(242),w=n(212),x=n(38),C=n(49),S=n(13),k=n(37),E=n(6),T=n(51),D=function(){function e(e,t){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,l.default.needed(),this.el=e,this.viewsByType={},this.optionsManager=new p.default(this,t),this.viewSpecManager=new h.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new f.default(this.eventManager,this),this.constructed()}return e.prototype.constructed=function(){},e.prototype.getView=function(){return this.view},e.prototype.publiclyTrigger=function(e,t){var n,i,r=this.opt(e);if(o.isPlainObject(t)?(n=t.context,i=t.args):o.isArray(t)&&(i=t),null==n&&(n=this.el[0]),i||(i=[]),this.triggerWith(e,n,i),r)return r.apply(n,i)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.option=function(e,t){var n;if("string"==typeof e){if(void 0===t)return this.optionsManager.get(e);(n={})[e]=t,this.optionsManager.add(n)}else"object"==typeof e&&this.optionsManager.add(e)},e.prototype.opt=function(e){return this.optionsManager.get(e)},e.prototype.instantiateView=function(e){var t=this.viewSpecManager.getViewSpec(e);if(!t)throw new Error('View type "'+e+'" is not valid');return new t.class(this,t)},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecManager.getViewSpec(e))},e.prototype.changeView=function(e,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone()),this.renderView(e)},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t),this.currentDate=e.clone(),this.renderView(n?n.type:null)},e.prototype.initCurrentDate=function(){var e=this.opt("defaultDate");this.currentDate=null!=e?this.moment(e).stripZone():this.getNow()},e.prototype.prev=function(){var e=this.view,t=e.dateProfileGenerator.buildPrev(e.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},e.prototype.next=function(){var e=this.view,t=e.dateProfileGenerator.buildNext(e.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},e.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},e.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},e.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},e.prototype.gotoDate=function(e){this.currentDate=this.moment(e).stripZone(),this.renderView()},e.prototype.incrementDate=function(e){this.currentDate.add(i.duration(e)),this.renderView()},e.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},e.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},e.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},e.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},e.prototype.initialRender=function(){var e=this,t=this.el;t.addClass("fc"),t.on("click.fc","a[data-goto]",function(t){var n=o(t.currentTarget).data("goto"),i=e.moment(n.date),s=n.type,a=e.view.opt("navLink"+r.capitaliseFirstLetter(s)+"Click");"function"==typeof a?a(i,t):("string"==typeof a&&(s=a),e.zoomTo(i,s))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(n){var o=new(T.getThemeSystemClass(n.themeSystem||n.theme))(e.optionsManager),i=o.getClass("widget");e.theme=o,i&&t.addClass(i)},function(){var n=e.theme.getClass("widget");e.theme=null,n&&t.removeClass(n)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){e.businessHourGenerator=new w.default(t.businessHours,e),e.view&&e.view.set("businessHourGenerator",e.businessHourGenerator)},function(){e.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(e){t.toggleClass("fc-ltr",!e.isRTL),t.toggleClass("fc-rtl",e.isRTL)}),this.contentEl=o("<div class='fc-view-container'/>").prependTo(t),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&o(window).resize(this.windowResizeProxy=r.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(o(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),l.default.unneeded()},e.prototype.elementVisible=function(){return this.el.is(":visible")},e.prototype.bindViewHandlers=function(e){var t=this;e.watch("titleForCalendar",["title"],function(n){e===t.view&&t.setToolbarsTitle(n.title)}),e.watch("dateProfileForCalendar",["dateProfile"],function(n){e===t.view&&(t.currentDate=n.dateProfile.date,t.updateToolbarButtons(n.dateProfile))})},e.prototype.unbindViewHandlers=function(e){e.unwatch("titleForCalendar"),e.unwatch("dateProfileForCalendar")},e.prototype.renderView=function(e){var t,n=this.view;this.freezeContentHeight(),n&&e&&n.type!==e&&this.clearView(),!this.view&&e&&(t=this.view=this.viewsByType[e]||(this.viewsByType[e]=this.instantiateView(e)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(o("<div class='fc-view fc-"+e+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",e)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender()),this.thawContentHeight()},e.prototype.clearView=function(){var e=this.view;this.toolbarsManager.proxyCall("deactivateButton",e.type),this.unbindViewHandlers(e),e.removeElement(),e.unsetDate(),this.view=null},e.prototype.reinitView=function(){var e=this.view,t=e.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(e.type),this.view.applyScroll(t),this.thawContentHeight()},e.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},e.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},e.prototype.updateViewSize=function(e){void 0===e&&(e=!1);var t,n=this.view;if(!this.ignoreUpdateViewSize&&n)return e&&(this.calcSize(),t=n.queryScroll()),this.ignoreUpdateViewSize++,n.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),e),this.ignoreUpdateViewSize--,e&&n.applyScroll(t),!0},e.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},e.prototype._calcSize=function(){var e=this.opt("contentHeight"),t=this.opt("height");this.suggestedViewHeight="number"==typeof e?e:"function"==typeof e?e():"number"==typeof t?t-this.queryToolbarsHeight():"function"==typeof t?t()-this.queryToolbarsHeight():"parent"===t?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},e.prototype.windowResize=function(e){e.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},e.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},e.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},e.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},e.prototype.initToolbars=function(){this.header=new d.default(this,this.computeHeaderOptions()),this.footer=new d.default(this,this.computeFooterOptions()),this.toolbarsManager=new a.default([this.header,this.footer])},e.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},e.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},e.prototype.renderHeader=function(){var e=this.header;e.setToolbarOptions(this.computeHeaderOptions()),e.render(),e.el&&this.el.prepend(e.el)},e.prototype.renderFooter=function(){var e=this.footer;e.setToolbarOptions(this.computeFooterOptions()),e.render(),e.el&&this.el.append(e.el)},e.prototype.setToolbarsTitle=function(e){this.toolbarsManager.proxyCall("updateTitle",e)},e.prototype.updateToolbarButtons=function(e){var t=this.getNow(),n=this.view,o=n.dateProfileGenerator.build(t),i=n.dateProfileGenerator.buildPrev(n.get("dateProfile")),r=n.dateProfileGenerator.buildNext(n.get("dateProfile"));this.toolbarsManager.proxyCall(o.isValid&&!e.currentUnzonedRange.containsDate(t)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(i.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(r.isValid?"enableButton":"disableButton","next")},e.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(e,t){return e+(t.el?t.el.outerHeight(!0):0)},0)},e.prototype.select=function(e,t){this.view.select(this.buildSelectFootprint.apply(this,arguments))},e.prototype.unselect=function(){this.view&&this.view.unselect()},e.prototype.buildSelectFootprint=function(e,t){var n,o=this.moment(e).stripZone();return n=t?this.moment(t).stripZone():o.hasTime()?o.clone().add(this.defaultTimedEventDuration):o.clone().add(this.defaultAllDayEventDuration),new y.default(new v.default(o,n),!o.hasTime())},e.prototype.initMomentInternals=function(){var e=this;this.defaultAllDayEventDuration=i.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=i.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var n,o=t.weekNumberCalculation,i=t.firstDay;"iso"===o&&(o="ISO");var r=Object.create(m.getMomentLocaleData(t.locale));t.monthNames&&(r._months=t.monthNames),t.monthNamesShort&&(r._monthsShort=t.monthNamesShort),t.dayNames&&(r._weekdays=t.dayNames),t.dayNamesShort&&(r._weekdaysShort=t.dayNamesShort),null==i&&"ISO"===o&&(i=1),null!=i&&((n=Object.create(r._week)).dow=i,r._week=n),"ISO"!==o&&"local"!==o&&"function"!=typeof o||(r._fullCalendar_weekCalc=o),e.localeData=r,e.currentDate&&e.localizeMoment(e.currentDate)})},e.prototype.moment=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"local"===this.opt("timezone")?(e=g.default.apply(null,t)).hasTime()&&e.local():e="UTC"===this.opt("timezone")?g.default.utc.apply(null,t):g.default.parseZone.apply(null,t),this.localizeMoment(e),e},e.prototype.msToMoment=function(e,t){var n=g.default.utc(e);return t?n.stripTime():n=this.applyTimezone(n),this.localizeMoment(n),n},e.prototype.msToUtcMoment=function(e,t){var n=g.default.utc(e);return t&&n.stripTime(),this.localizeMoment(n),n},e.prototype.localizeMoment=function(e){e._locale=this.localeData},e.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},e.prototype.applyTimezone=function(e){if(!e.hasTime())return e.clone();var t,n=this.moment(e.toArray()),o=e.time().asMilliseconds()-n.time().asMilliseconds();return o&&(t=n.clone().add(o),e.time().asMilliseconds()-t.time().asMilliseconds()==0&&(n=t)),n},e.prototype.footprintToDateProfile=function(e,t){void 0===t&&(t=!1);var n,o=g.default.utc(e.unzonedRange.startMs);return t||(n=g.default.utc(e.unzonedRange.endMs)),e.isAllDay?(o.stripTime(),n&&n.stripTime()):(o=this.applyTimezone(o),n&&(n=this.applyTimezone(n))),new b.default(o,n,this)},e.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),this.moment(e).stripZone()},e.prototype.humanizeDuration=function(e){return e.locale(this.opt("locale")).humanize()},e.prototype.parseUnzonedRange=function(e){var t=null,n=null;return e.start&&(t=this.moment(e.start).stripZone()),e.end&&(n=this.moment(e.end).stripZone()),t||n?t&&n&&n.isBefore(t)?null:new v.default(t,n):null},e.prototype.initEventManager=function(){var e=this,t=new _.default(this),n=this.opt("eventSources")||[],o=this.opt("events");this.eventManager=t,o&&n.unshift(o),t.on("release",function(t){e.trigger("eventsReset",t)}),t.freeze(),n.forEach(function(n){var o=x.default.parse(n,e);o&&t.addSource(o)}),t.thaw()},e.prototype.requestEvents=function(e,t){return this.eventManager.requestEvents(e,t,this.opt("timezone"),!this.opt("lazyFetching"))},e.prototype.getEventEnd=function(e){return e.end?e.end.clone():this.getDefaultEventEnd(e.allDay,e.start)},e.prototype.getDefaultEventEnd=function(e,t){var n=t.clone();return e?n.stripTime().add(this.defaultAllDayEventDuration):n.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&n.stripZone(),n},e.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},e.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},e.prototype.renderEvents=function(e,t){this.eventManager.freeze();for(var n=0;n<e.length;n++)this.renderEvent(e[n],t);this.eventManager.thaw()},e.prototype.renderEvent=function(e,t){void 0===t&&(t=!1);var n=this.eventManager,o=C.default.parse(e,e.source||n.stickySource);o&&n.addEventDef(o,t)},e.prototype.removeEvents=function(e){var t,n=this.eventManager,o=[],i={};if(null==e)n.removeAllEventDefs();else{for(n.getEventInstances().forEach(function(e){o.push(e.toLegacy())}),o=P(o,e),t=0;t<o.length;t++)i[this.eventManager.getEventDefByUid(o[t]._id).id]=!0;for(t in n.freeze(),i)n.removeEventDefsById(t);n.thaw()}},e.prototype.clientEvents=function(e){var t=[];return this.eventManager.getEventInstances().forEach(function(e){t.push(e.toLegacy())}),P(t,e)},e.prototype.updateEvents=function(e){this.eventManager.freeze();for(var t=0;t<e.length;t++)this.updateEvent(e[t]);this.eventManager.thaw()},e.prototype.updateEvent=function(e){var t,n,o=this.eventManager.getEventDefByUid(e._id);o instanceof S.default&&(t=o.buildInstance(),n=k.default.createFromRawProps(t,e,null),this.eventManager.mutateEventsWithId(o.id,n))},e.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},e.prototype.getEventSourceById=function(e){return this.eventManager.getSourceById(E.default.normalizeId(e))},e.prototype.addEventSource=function(e){var t=x.default.parse(e,this);t&&this.eventManager.addSource(t)},e.prototype.removeEventSources=function(e){var t,n,o=this.eventManager;if(null==e)this.eventManager.removeAllSources();else{for(t=o.multiQuerySources(e),o.freeze(),n=0;n<t.length;n++)o.removeSource(t[n]);o.thaw()}},e.prototype.removeEventSource=function(e){var t,n=this.eventManager,o=n.querySources(e);for(n.freeze(),t=0;t<o.length;t++)n.removeSource(o[t]);n.thaw()},e.prototype.refetchEventSources=function(e){var t,n=this.eventManager,o=n.multiQuerySources(e);for(n.freeze(),t=0;t<o.length;t++)n.refetchSource(o[t]);n.thaw()},e.defaults=s.globalDefaults,e.englishDefaults=s.englishDefaults,e.rtlDefaults=s.rtlDefaults,e}();function P(e,t){return null==t?e:o.isFunction(t)?e.filter(t):(t+="",e.filter(function(e){return e.id==t||e._id===t}))}t.default=D,c.default.mixInto(D),u.default.mixInto(D)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4),r=n(5),s=function(){function e(e){this._view=e}return e.prototype.opt=function(e){return this._view.opt(e)},e.prototype.trimHiddenDays=function(e){return this._view.trimHiddenDays(e)},e.prototype.msToUtcMoment=function(e,t){return this._view.calendar.msToUtcMoment(e,t)},e.prototype.buildPrev=function(e){var t=e.date.clone().startOf(e.currentRangeUnit).subtract(e.dateIncrement);return this.build(t,-1)},e.prototype.buildNext=function(e){var t=e.date.clone().startOf(e.currentRangeUnit).add(e.dateIncrement);return this.build(t,1)},e.prototype.build=function(e,t,n){void 0===n&&(n=!1);var i,r,s,a,l,c,u,d,p=!e.hasTime();return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(e=this.msToUtcMoment(i.constrainDate(e),p)),a=this.buildCurrentRangeInfo(e,t),l=/^(year|month|week|day)$/.test(a.unit),c=this.buildRenderRange(this.trimHiddenDays(a.unzonedRange),a.unit,l),u=(c=this.trimHiddenDays(c)).clone(),this.opt("showNonCurrentDates")||(u=u.intersect(a.unzonedRange)),r=o.duration(this.opt("minTime")),s=o.duration(this.opt("maxTime")),(u=(u=this.adjustActiveRange(u,r,s)).intersect(i))&&(e=this.msToUtcMoment(u.constrainDate(e),p)),d=a.unzonedRange.intersectsWith(i),{validUnzonedRange:i,currentUnzonedRange:a.unzonedRange,currentRangeUnit:a.unit,isRangeAllDay:l,activeUnzonedRange:u,renderUnzonedRange:c,minTime:r,maxTime:s,isValid:d,date:e,dateIncrement:this.buildDateIncrement(a.duration)}},e.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new r.default},e.prototype.buildCurrentRangeInfo=function(e,t){var n,o=this._view.viewSpec,r=null,s=null,a=null;return o.duration?(r=o.duration,s=o.durationUnit,a=this.buildRangeFromDuration(e,t,r,s)):(n=this.opt("dayCount"))?(s="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?s=i.computeGreatestUnit(a.getStart(),a.getEnd()):(r=this.getFallbackDuration(),s=i.computeGreatestUnit(r),a=this.buildRangeFromDuration(e,t,r,s)),{duration:r,unit:s,unzonedRange:a}},e.prototype.getFallbackDuration=function(){return o.duration({days:1})},e.prototype.adjustActiveRange=function(e,t,n){var o=e.getStart(),i=e.getEnd();return this._view.usesMinMaxTime&&(t<0&&o.time(0).add(t),n>864e5&&i.time(n-864e5)),new r.default(o,i)},e.prototype.buildRangeFromDuration=function(e,t,n,s){var a,l,c,u,d,p=this.opt("dateAlignment");function h(){c=e.clone().startOf(p),u=c.clone().add(n),d=new r.default(c,u)}return p||((a=this.opt("dateIncrement"))?(l=o.duration(a),p=l<n?i.computeDurationGreatestUnit(l,a):s):p=s),n.as("days")<=1&&this._view.isHiddenDay(c)&&(c=this._view.skipHiddenDays(c,t)).startOf("day"),h(),this.trimHiddenDays(d)||(e=this._view.skipHiddenDays(e,t),h()),d},e.prototype.buildRangeFromDayCount=function(e,t,n){var o,i=this.opt("dateAlignment"),s=0,a=e.clone();i&&a.startOf(i),a.startOf("day"),o=(a=this._view.skipHiddenDays(a,t)).clone();do{o.add(1,"day"),this._view.isHiddenDay(o)||s++}while(s<n);return new r.default(a,o)},e.prototype.buildCustomVisibleRange=function(e){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(e));return!t||null!=t.startMs&&null!=t.endMs?t:null},e.prototype.buildRenderRange=function(e,t,n){return e.clone()},e.prototype.buildDateIncrement=function(e){var t,n=this.opt("dateIncrement");return n?o.duration(n):(t=this.opt("dateAlignment"))?o.duration(1,t):e||o.duration({days:1})},e}();t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(0),s=n(16),a=n(4),l=n(10),c=n(7),u=n(23),d=n(13),p=n(18),h=n(6),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragging=!1,t}return o.__extends(t,e),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToDocument=function(){this.listenTo(i(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},t.prototype.unbindFromDocument=function(){this.stopListeningTo(i(document))},t.prototype.handleDragStart=function(e,t){var n,o;this.opt("droppable")&&(n=i((t?t.item:null)||e.target),o=this.opt("dropAccept"),(i.isFunction(o)?o.call(n[0],n):n.is(o))&&(this.isDragging||this.listenToExternalDrag(n,e,t)))},t.prototype.listenToExternalDrag=function(e,t,n){var o,l=this,c=this.component,d=this.view,h=function(e){var t,n,o,a,l=s.dataAttrPrefix;l&&(l+="-");(t=e.data(l+"event")||null)&&(t="object"==typeof t?i.extend({},t):{},null==(n=t.start)&&(n=t.time),o=t.duration,a=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick);null==n&&(n=e.data(l+"start"));null==n&&(n=e.data(l+"time"));null==o&&(o=e.data(l+"duration"));null==a&&(a=e.data(l+"stick"));return n=null!=n?r.duration(n):null,o=null!=o?r.duration(o):null,a=Boolean(a),{eventProps:t,startTime:n,duration:o,stick:a}}(e);(this.dragListener=new u.default(c,{interactionStart:function(){l.isDragging=!0},hitOver:function(e){var t,n=!0,i=e.component.getSafeHitFootprint(e);i&&(o=l.computeExternalDrop(i,h))?(t=new p.default(o.buildInstances()),n=h.eventProps?c.isEventInstanceGroupAllowed(t):c.isExternalInstanceGroupAllowed(t)):n=!1,n||(o=null,a.disableCursor()),o&&c.renderDrag(c.eventRangesToEventFootprints(t.sliceRenderRanges(c.dateProfile.renderUnzonedRange,d.calendar)))},hitOut:function(){o=null},hitDone:function(){a.enableCursor(),c.unrenderDrag()},interactionEnd:function(t){o&&d.reportExternalDrop(o,Boolean(h.eventProps),Boolean(h.stick),e,t,n),l.isDragging=!1,l.dragListener=null}})).startDrag(t)},t.prototype.computeExternalDrop=function(e,t){var n,o=this.view.calendar,r=l.default.utc(e.unzonedRange.startMs).stripZone();return e.isAllDay&&(t.startTime?r.time(t.startTime):r.stripTime()),t.duration&&(n=r.clone().add(t.duration)),r=o.applyTimezone(r),n&&(n=o.applyTimezone(n)),d.default.parse(i.extend({},t.eventProps,{start:r,end:n}),new h.default(o))},t}(n(15).default);t.default=f,c.default.mixInto(f),s.dataAttrPrefix=""},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(37),a=n(50),l=n(23),c=function(e){function t(t,n){var o=e.call(this,t)||this;return o.isResizing=!1,o.eventPointing=n,o}return o.__extends(t,e),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"mousedown",this.handleMouseDown.bind(this)),t.bindSegHandlerToEl(e,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMouseDown=function(e,t){this.component.canStartResize(e,t)&&this.buildDragListener(e,i(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(e,t){this.component.canStartResize(e,t)&&this.buildDragListener(e,i(t.target).is(".fc-start-resizer")).startInteraction(t)},t.prototype.buildDragListener=function(e,t){var n,o,i=this,s=this.component,a=this.view,c=a.calendar,u=c.eventManager,d=e.el,p=e.footprint.eventDef,h=e.footprint.eventInstance;return this.dragListener=new l.default(s,{scroll:this.opt("dragScroll"),subjectEl:d,interactionStart:function(){n=!1},dragStart:function(t){n=!0,i.eventPointing.handleMouseout(e,t),i.segResizeStart(e,t)},hitOver:function(n,l,d){var h,f=!0,m=s.getSafeHitFootprint(d),g=s.getSafeHitFootprint(n);m&&g&&(o=t?i.computeEventStartResizeMutation(m,g,e.footprint):i.computeEventEndResizeMutation(m,g,e.footprint))?(h=u.buildMutatedEventInstanceGroup(p.id,o),f=s.isEventInstanceGroupAllowed(h)):f=!1,f?o.isEmpty()&&(o=null):(o=null,r.disableCursor()),o&&(a.hideEventsWithId(e.footprint.eventDef.id),a.renderEventResize(s.eventRangesToEventFootprints(h.sliceRenderRanges(s.dateProfile.renderUnzonedRange,c)),e))},hitOut:function(){o=null},hitDone:function(){a.unrenderEventResize(e),a.showEventsWithId(e.footprint.eventDef.id),r.enableCursor()},interactionEnd:function(t){n&&i.segResizeStop(e,t),o&&a.reportEventResize(h,o,d,t),i.dragListener=null}})},t.prototype.segResizeStart=function(e,t){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segResizeStop=function(e,t){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventStartResizeMutation=function(e,t,n){var o,i,r=n.componentFootprint.unzonedRange,l=this.component.diffDates(t.unzonedRange.getStart(),e.unzonedRange.getStart());return r.getStart().add(l)<r.getEnd()&&((o=new a.default).setStartDelta(l),(i=new s.default).setDateMutation(o),i)},t.prototype.computeEventEndResizeMutation=function(e,t,n){var o,i,r=n.componentFootprint.unzonedRange,l=this.component.diffDates(t.unzonedRange.getEnd(),e.unzonedRange.getEnd());return r.getEnd().add(l)>r.getStart()&&((o=new a.default).setEndDelta(l),(i=new s.default).setDateMutation(o),i)},t}(n(15).default);t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=n(37),s=n(50),a=n(54),l=n(23),c=n(244),u=function(e){function t(t,n){var o=e.call(this,t)||this;return o.isDragging=!1,o.eventPointing=n,o}return o.__extends(t,e),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.getSelectionDelay=function(){var e=this.opt("eventLongPressDelay");return null==e&&(e=this.opt("longPressDelay")),e},t.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"mousedown",this.handleMousedown.bind(this)),t.bindSegHandlerToEl(e,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMousedown=function(e,t){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(e,t)&&this.buildDragListener(e).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(e,t){var n=this.component,o={delay:this.view.isEventDefSelected(e.footprint.eventDef)?0:this.getSelectionDelay()};n.canStartDrag(e,t)?this.buildDragListener(e).startInteraction(t,o):n.canStartSelection(e,t)&&this.buildSelectListener(e).startInteraction(t,o)},t.prototype.buildSelectListener=function(e){var t=this,n=this.view,o=e.footprint.eventDef,i=e.footprint.eventInstance;if(this.dragListener)return this.dragListener;var r=this.dragListener=new a.default({dragStart:function(e){r.isTouch&&!n.isEventDefSelected(o)&&i&&n.selectEventInstance(i)},interactionEnd:function(e){t.dragListener=null}});return r},t.prototype.buildDragListener=function(e){var t,n,o,r=this,s=this.component,a=this.view,u=a.calendar,d=u.eventManager,p=e.el,h=e.footprint.eventDef,f=e.footprint.eventInstance;if(this.dragListener)return this.dragListener;var m=this.dragListener=new l.default(a,{scroll:this.opt("dragScroll"),subjectEl:p,subjectCenter:!0,interactionStart:function(o){e.component=s,t=!1,(n=new c.default(e.el,{additionalClass:"fc-dragging",parentEl:a.el,opacity:m.isTouch?null:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2})).hide(),n.start(o)},dragStart:function(n){m.isTouch&&!a.isEventDefSelected(h)&&f&&a.selectEventInstance(f),t=!0,r.eventPointing.handleMouseout(e,n),r.segDragStart(e,n),a.hideEventsWithId(e.footprint.eventDef.id)},hitOver:function(t,l,c){var p,f,g,v=!0;e.hit&&(c=e.hit),p=c.component.getSafeHitFootprint(c),f=t.component.getSafeHitFootprint(t),p&&f&&(o=r.computeEventDropMutation(p,f,h))?(g=d.buildMutatedEventInstanceGroup(h.id,o),v=s.isEventInstanceGroupAllowed(g)):v=!1,v||(o=null,i.disableCursor()),o&&a.renderDrag(s.eventRangesToEventFootprints(g.sliceRenderRanges(s.dateProfile.renderUnzonedRange,u)),e,m.isTouch)?n.hide():n.show(),l&&(o=null)},hitOut:function(){a.unrenderDrag(e),n.show(),o=null},hitDone:function(){i.enableCursor()},interactionEnd:function(i){delete e.component,n.stop(!o,function(){t&&(a.unrenderDrag(e),r.segDragStop(e,i)),a.showEventsWithId(e.footprint.eventDef.id),o&&a.reportEventDrop(f,o,p,i)}),r.dragListener=null}});return m},t.prototype.segDragStart=function(e,t){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segDragStop=function(e,t){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventDropMutation=function(e,t,n){var o=new r.default;return o.setDateMutation(this.computeEventDateMutation(e,t)),o},t.prototype.computeEventDateMutation=function(e,t){var n,o,i=e.unzonedRange.getStart(),r=t.unzonedRange.getStart(),a=!1,l=!1,c=!1;return e.isAllDay!==t.isAllDay&&(a=!0,t.isAllDay?(c=!0,i.stripTime()):l=!0),n=this.component.diffDates(r,i),(o=new s.default).clearEnd=a,o.forceTimed=l,o.forceAllDay=c,o.setDateDelta(n),o},t}(n(15).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=n(23),s=n(12),a=n(5),l=function(e){function t(t){var n=e.call(this,t)||this;return n.dragListener=n.buildDragListener(),n}return o.__extends(t,e),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.getDelay=function(){var e=this.opt("selectLongPressDelay");return null==e&&(e=this.opt("longPressDelay")),e},t.prototype.bindToEl=function(e){var t=this,n=this.component,o=this.dragListener;n.bindDateHandlerToEl(e,"mousedown",function(e){t.opt("selectable")&&!n.shouldIgnoreMouse()&&o.startInteraction(e,{distance:t.opt("selectMinDistance")})}),n.bindDateHandlerToEl(e,"touchstart",function(e){t.opt("selectable")&&!n.shouldIgnoreTouch()&&o.startInteraction(e,{delay:t.getDelay()})}),i.preventSelection(e)},t.prototype.buildDragListener=function(){var e,t=this,n=this.component;return new r.default(n,{scroll:this.opt("dragScroll"),interactionStart:function(){e=null},dragStart:function(e){t.view.unselect(e)},hitOver:function(o,r,s){var a,l;s&&(a=n.getSafeHitFootprint(s),l=n.getSafeHitFootprint(o),(e=a&&l?t.computeSelection(a,l):null)?n.renderSelectionFootprint(e):!1===e&&i.disableCursor())},hitOut:function(){e=null,n.unrenderSelection()},hitDone:function(){i.enableCursor()},interactionEnd:function(n,o){!o&&e&&t.view.reportSelection(e,n)}})},t.prototype.computeSelection=function(e,t){var n=this.computeSelectionFootprint(e,t);return!(n&&!this.isSelectionFootprintAllowed(n))&&n},t.prototype.computeSelectionFootprint=function(e,t){var n=[e.unzonedRange.startMs,e.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return n.sort(i.compareNumbers),new s.default(new a.default(n[0],n[3]),e.isAllDay)},t.prototype.isSelectionFootprintAllowed=function(e){return this.component.dateProfile.validUnzonedRange.containsRange(e.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(e)},t}(n(15).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,i,r=n(2),s=n(0),a=n(3),l=n(4),c=n(39),u=n(41),d=n(227),p=n(61),h=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.usesMinMaxTime=!0,o.timeGrid=o.instantiateTimeGrid(),o.addChild(o.timeGrid),o.opt("allDaySlot")&&(o.dayGrid=o.instantiateDayGrid(),o.addChild(o.dayGrid)),o.scroller=new c.default({overflowX:"hidden",overflowY:"auto"}),o}return r.__extends(t,e),t.prototype.instantiateTimeGrid=function(){var e=new this.timeGridClass(this);return l.copyOwnProps(o,e),e},t.prototype.instantiateDayGrid=function(){var e=new this.dayGridClass(this);return l.copyOwnProps(i,e),e},t.prototype.renderSkeleton=function(){var e,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),e=this.scroller.el.addClass("fc-time-grid-container"),t=a('<div class="fc-time-grid" />').appendTo(e),this.el.find(".fc-body > tr > td").append(e),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(t),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},t.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+e.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},t.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.updateSize=function(t,n,o){var i,r,s;if(e.prototype.updateSize.call(this,t,n,o),this.axisWidth=l.matchCellWidths(this.el.find(".fc-axis")),this.timeGrid.colEls){var a=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),l.uncompensateScroll(a),this.dayGrid&&(this.dayGrid.removeSegPopover(),(i=this.opt("eventLimit"))&&"number"!=typeof i&&(i=5),i&&this.dayGrid.limitRows(i)),n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r),((s=this.scroller.getScrollbarWidths()).left||s.right)&&(l.compensateScroll(a,s),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(s),this.timeGrid.getTotalSlatHeight()<r&&this.timeGrid.bottomRuleEl.show())}else n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},t.prototype.computeScrollerHeight=function(e){return e-l.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.computeInitialDateScroll=function(){var e=s.duration(this.opt("scrollTime")),t=this.timeGrid.computeTimeTop(e);return(t=Math.ceil(t))&&t++,{top:t}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},t.prototype.getHitFootprint=function(e){return e.component.getHitFootprint(e)},t.prototype.getHitEl=function(e){return e.component.getHitEl(e)},t.prototype.executeEventRender=function(e){var t,n,o={},i={};for(t in e)(n=e[t]).getEventDef().isAllDay()?o[t]=n:i[t]=n;this.timeGrid.executeEventRender(i),this.dayGrid&&this.dayGrid.executeEventRender(o)},t.prototype.renderDrag=function(e,t,n){var o=f(e),i=!1;return i=this.timeGrid.renderDrag(o.timed,t,n),this.dayGrid&&(i=this.dayGrid.renderDrag(o.allDay,t,n)||i),i},t.prototype.renderEventResize=function(e,t,n){var o=f(e);this.timeGrid.renderEventResize(o.timed,t,n),this.dayGrid&&this.dayGrid.renderEventResize(o.allDay,t,n)},t.prototype.renderSelectionFootprint=function(e){e.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(e):this.timeGrid.renderSelectionFootprint(e)},t}(u.default);function f(e){var t,n=[],o=[];for(t=0;t<e.length;t++)e[t].componentFootprint.isAllDay?n.push(e[t]):o.push(e[t]);return{allDay:n,timed:o}}t.default=h,h.prototype.timeGridClass=d.default,h.prototype.dayGridClass=p.default,o={renderHeadIntroHtml:function(){var e,t=this.view,n=t.calendar,o=n.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(e=o.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.theme.getClass("widgetHeader")+'" '+t.axisStyleAttr()+">"+t.buildGotoAnchorHtml({date:o,type:"week",forceOff:this.colCnt>1},l.htmlEscape(e))+"</th>"):'<th class="fc-axis '+n.theme.getClass("widgetHeader")+'" '+t.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.calendar.theme.getClass("widgetContent")+'" '+e.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},i={renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.calendar.theme.getClass("widgetContent")+'" '+e.axisStyleAttr()+"><span>"+e.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(0),s=n(4),a=n(40),l=n(56),c=n(60),u=n(55),d=n(53),p=n(5),h=n(12),f=n(246),m=n(247),g=n(248),v=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],y=function(e){function t(t){var n=e.call(this,t)||this;return n.processOptions(),n}return o.__extends(t,e),t.prototype.componentFootprintToSegs=function(e){var t,n=this.sliceRangeByTimes(e.unzonedRange);for(t=0;t<n.length;t++)this.isRTL?n[t].col=this.daysPerRow-1-n[t].dayIndex:n[t].col=n[t].dayIndex;return n},t.prototype.sliceRangeByTimes=function(e){var t,n,o=[];for(n=0;n<this.daysPerRow;n++)(t=e.intersect(this.dayRanges[n]))&&o.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:n});return o},t.prototype.processOptions=function(){var e,t=this.opt("slotDuration"),n=this.opt("snapDuration");t=r.duration(t),n=n?r.duration(n):t,this.slotDuration=t,this.snapDuration=n,this.snapsPerSlot=t/n,e=this.opt("slotLabelFormat"),i.isArray(e)&&(e=e[e.length-1]),this.labelFormat=e||this.opt("smallTimeFormat"),e=this.opt("slotLabelInterval"),this.labelInterval=e?r.duration(e):this.computeLabelInterval(t)},t.prototype.computeLabelInterval=function(e){var t,n,o;for(t=v.length-1;t>=0;t--)if(n=r.duration(v[t]),o=s.divideDurationByDuration(n,e),s.isInt(o)&&o>1)return n;return r.duration(e)},t.prototype.renderDates=function(e){this.dateProfile=e,this.updateDayTable(),this.renderSlats(),this.renderColumns()},t.prototype.unrenderDates=function(){this.unrenderColumns()},t.prototype.renderSkeleton=function(){var e=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},t.prototype.renderSlats=function(){var e=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+e.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new d.default({els:this.slatEls,isVertical:!0})},t.prototype.renderSlatRowHtml=function(){for(var e,t,n,o=this.view,i=o.calendar,a=i.theme,l=this.isRTL,c=this.dateProfile,u="",d=r.duration(+c.minTime),p=r.duration(0);d<c.maxTime;)e=i.msToUtcMoment(c.renderUnzonedRange.startMs).time(d),t=s.isInt(s.divideDurationByDuration(p,this.labelInterval)),n='<td class="fc-axis fc-time '+a.getClass("widgetContent")+'" '+o.axisStyleAttr()+">"+(t?"<span>"+s.htmlEscape(e.format(this.labelFormat))+"</span>":"")+"</td>",u+='<tr data-time="'+e.format("HH:mm:ss")+'"'+(t?"":' class="fc-minor"')+">"+(l?"":n)+'<td class="'+a.getClass("widgetContent")+'"/>'+(l?n:"")+"</tr>",d.add(this.slotDuration),p.add(this.slotDuration);return u},t.prototype.renderColumns=function(){var e=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new p.default(t.clone().add(e.minTime),t.clone().add(e.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new d.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},t.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){var e,t,n="";for(e=0;e<this.colCnt;e++)n+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';t=this.contentSkeletonEl=i('<div class="fc-content-skeleton"><table><tr>'+n+"</tr></table></div>"),this.colContainerEls=t.find(".fc-content-col"),this.helperContainerEls=t.find(".fc-helper-container"),this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=t.find(".fc-bgevent-container"),this.highlightContainerEls=t.find(".fc-highlight-container"),this.businessContainerEls=t.find(".fc-business-container"),this.bookendCells(t.find("tr")),this.el.append(t)},t.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},t.prototype.groupSegsByCol=function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},t.prototype.attachSegsByCol=function(e,t){var n,o,i;for(n=0;n<this.colCnt;n++)for(o=e[n],i=0;i<o.length;i++)t.eq(n).append(o[i].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(e){if(this.colContainerEls){var t,n=this.componentFootprintToSegs(new h.default(new p.default(e,e.valueOf()+1),!1)),o=this.computeDateTop(e,e),r=[];for(t=0;t<n.length;t++)r.push(i('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",o).appendTo(this.colContainerEls.eq(n[t].col))[0]);n.length>0&&r.push(i('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",o).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=i(r)}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(t,n,o){e.prototype.updateSize.call(this,t,n,o),this.slatCoordCache.build(),o&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},t.prototype.computeDateTop=function(e,t){return this.computeTimeTop(r.duration(e-t.clone().stripTime()))},t.prototype.computeTimeTop=function(e){var t,n,o=this.slatEls.length,i=(e-this.dateProfile.minTime)/this.slotDuration;return i=Math.max(0,i),i=Math.min(o,i),t=Math.floor(i),n=i-(t=Math.min(t,o-1)),this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*n},t.prototype.updateSegVerticals=function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},t.prototype.computeSegVerticals=function(e){var t,n,o,i=this.opt("agendaEventMinHeight");for(t=0;t<e.length;t++)n=e[t],o=this.dayDates[n.dayIndex],n.top=this.computeDateTop(n.startMs,o),n.bottom=Math.max(n.top+i,this.computeDateTop(n.endMs,o))},t.prototype.assignSegVerticals=function(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).el.css(this.generateSegVerticalCss(n))},t.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},t.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},t.prototype.releaseHits=function(){this.colCoordCache.clear()},t.prototype.queryHit=function(e,t){var n=this.snapsPerSlot,o=this.colCoordCache,i=this.slatCoordCache;if(o.isLeftInBounds(e)&&i.isTopInBounds(t)){var r=o.getHorizontalIndex(e),s=i.getVerticalIndex(t);if(null!=r&&null!=s){var a=i.getTopOffset(s),l=i.getHeight(s),c=(t-a)/l,u=Math.floor(c*n),d=a+u/n*l,p=a+(u+1)/n*l;return{col:r,snap:s*n+u,component:this,left:o.getLeftOffset(r),right:o.getRightOffset(r),top:d,bottom:p}}}},t.prototype.getHitFootprint=function(e){var t,n=this.getCellDate(0,e.col),o=this.computeSnapTime(e.snap);return n.time(o),t=n.clone().add(this.snapDuration),new h.default(new p.default(n,t),!1)},t.prototype.computeSnapTime=function(e){return r.duration(this.dateProfile.minTime+this.snapDuration*e)},t.prototype.getHitEl=function(e){return this.colEls.eq(e.col)},t.prototype.renderDrag=function(e,t,n){var o;if(t){if(e.length)return this.helperRenderer.renderEventDraggingFootprints(e,t,n),!0}else for(o=0;o<e.length;o++)this.renderHighlight(e[o].componentFootprint)},t.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},t.prototype.renderEventResize=function(e,t,n){this.helperRenderer.renderEventResizingFootprints(e,t,n)},t.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},t.prototype.renderSelectionFootprint=function(e){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(e):this.renderHighlight(e)},t.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},t}(a.default);t.default=y,y.prototype.eventRendererClass=f.default,y.prototype.businessHourRendererClass=l.default,y.prototype.helperRendererClass=m.default,y.prototype.fillRendererClass=g.default,c.default.mixInto(y),u.default.mixInto(y)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(5),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.buildRenderRange=function(t,n,o){var r=e.prototype.buildRenderRange.call(this,t,n,o),s=this.msToUtcMoment(r.startMs,o),a=this.msToUtcMoment(r.endMs,o);return/^(year|month)$/.test(n)&&(s.startOf("week"),a.weekday()&&a.add(1,"week").startOf("week")),new i.default(s,a)},t}(n(221).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(0),r=n(4),s=n(62),a=n(253),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.setGridHeight=function(e,t){t&&(e*=this.dayGrid.rowCnt/6),r.distributeHeight(this.dayGrid.rowEls,e,!t)},t.prototype.isDateInOtherMonth=function(e,t){return e.month()!==i.utc(t.currentUnzonedRange.startMs).month()},t}(s.default);t.default=l,l.prototype.dateProfileGeneratorClass=a.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(5),a=n(41),l=n(39),c=n(254),u=n(255),d=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.segSelector=".fc-list-item",o.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),o}return o.__extends(t,e),t.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},t.prototype.unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,n,o){e.prototype.updateSize.call(this,t,n,o),this.scroller.clear(),n||this.scroller.setHeight(this.computeScrollerHeight(t))},t.prototype.computeScrollerHeight=function(e){return e-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.renderDates=function(e){for(var t=this.calendar,n=t.msToUtcMoment(e.renderUnzonedRange.startMs,!0),o=t.msToUtcMoment(e.renderUnzonedRange.endMs,!0),i=[],r=[];n<o;)i.push(n.clone()),r.push(new s.default(n,n.clone().add(1,"day"))),n.add(1,"day");this.dayDates=i,this.dayRanges=r},t.prototype.componentFootprintToSegs=function(e){var t,n,o,i=this.dayRanges,r=[];for(t=0;t<i.length;t++)if((n=e.unzonedRange.intersect(i[t]))&&(o={startMs:n.startMs,endMs:n.endMs,isStart:n.isStart,isEnd:n.isEnd,dayIndex:t},r.push(o),!o.isEnd&&!e.isAllDay&&t+1<i.length&&e.unzonedRange.endMs<i[t+1].startMs+this.nextDayThreshold)){o.endMs=e.unzonedRange.endMs,o.isEnd=!0;break}return r},t.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},t.prototype.renderSegList=function(e){var t,n,o,r=this.groupSegsByDay(e),s=i('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),a=s.find("tbody");for(t=0;t<r.length;t++)if(n=r[t])for(a.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(n),o=0;o<n.length;o++)a.append(n[o].el);this.contentEl.empty().append(s)},t.prototype.groupSegsByDay=function(e){var t,n,o=[];for(t=0;t<e.length;t++)(o[(n=e[t]).dayIndex]||(o[n.dayIndex]=[])).push(n);return o},t.prototype.dayHeaderHtml=function(e){var t=this.opt("listDayFormat"),n=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+e.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(t?this.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},r.htmlEscape(e.format(t))):"")+(n?this.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},r.htmlEscape(e.format(n))):"")+"</td></tr>"},t}(a.default);t.default=d,d.prototype.eventRendererClass=c.default,d.prototype.eventPointingClass=u.default},,,,,,function(e,t,n){var o=n(3),i=n(16),r=n(4),s=n(220);n(10),n(47),n(256),n(257),n(260),n(261),n(262),n(263),o.fullCalendar=i,o.fn.fullCalendar=function(e){var t=Array.prototype.slice.call(arguments,1),n=this;return this.each(function(i,a){var l,c=o(a),u=c.data("fullCalendar");"string"==typeof e?"getCalendar"===e?i||(n=u):"destroy"===e?u&&(u.destroy(),c.removeData("fullCalendar")):u?o.isFunction(u[e])?(l=u[e].apply(u,t),i||(n=l),"destroy"===e&&c.removeData("fullCalendar")):r.warn("'"+e+"' is an unknown FullCalendar method."):r.warn("Attempting to call a FullCalendar method on an element with no calendar."):u||(u=new s.default(c,e),c.data("fullCalendar",u),u.render())}),n},e.exports=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.setElement=function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(n(48).default);t.default=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.items=e||[]}return e.prototype.proxyCall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=[];return this.items.forEach(function(n){o.push(n[e].apply(n,t))}),o},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=function(){function e(e,t){this.el=null,this.viewsWithButtons=[],this.calendar=e,this.toolbarOptions=t}return e.prototype.setToolbarOptions=function(e){this.toolbarOptions=e},e.prototype.render=function(){var e=this.toolbarOptions.layout,t=this.el;e?(t?t.empty():t=this.el=o("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),t.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},e.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},e.prototype.renderSection=function(e){var t=this,n=this.calendar,r=n.theme,s=n.optionsManager,a=n.viewSpecManager,l=o('<div class="fc-'+e+'"/>'),c=this.toolbarOptions.layout[e],u=s.get("customButtons")||{},d=s.overrides.buttonText||{},p=s.get("buttonText")||{};return c&&o.each(c.split(" "),function(e,s){var c,h=o(),f=!0;o.each(s.split(","),function(e,s){var l,c,m,g,v,y,b,_,w;"title"===s?(h=h.add(o("<h2> </h2>")),f=!1):((l=u[s])?(m=function(e){l.click&&l.click.call(_[0],e)},(g=r.getCustomButtonIconClass(l))||(g=r.getIconClass(s))||(v=l.text)):(c=a.getViewSpec(s))?(t.viewsWithButtons.push(s),m=function(){n.changeView(s)},(v=c.buttonTextOverride)||(g=r.getIconClass(s))||(v=c.buttonTextDefault)):n[s]&&(m=function(){n[s]()},(v=d[s])||(g=r.getIconClass(s))||(v=p[s])),m&&(b=["fc-"+s+"-button",r.getClass("button"),r.getClass("stateDefault")],v?(y=i.htmlEscape(v),w=""):g&&(y="<span class='"+g+"'></span>",w=' aria-label="'+s+'"'),_=o('<button type="button" class="'+b.join(" ")+'"'+w+">"+y+"</button>").click(function(e){_.hasClass(r.getClass("stateDisabled"))||(m(e),(_.hasClass(r.getClass("stateActive"))||_.hasClass(r.getClass("stateDisabled")))&&_.removeClass(r.getClass("stateHover")))}).mousedown(function(){_.not("."+r.getClass("stateActive")).not("."+r.getClass("stateDisabled")).addClass(r.getClass("stateDown"))}).mouseup(function(){_.removeClass(r.getClass("stateDown"))}).hover(function(){_.not("."+r.getClass("stateActive")).not("."+r.getClass("stateDisabled")).addClass(r.getClass("stateHover"))},function(){_.removeClass(r.getClass("stateHover")).removeClass(r.getClass("stateDown"))}),h=h.add(_)))}),f&&h.first().addClass(r.getClass("cornerLeft")).end().last().addClass(r.getClass("cornerRight")).end(),h.length>1?(c=o("<div/>"),f&&c.addClass(r.getClass("buttonGroup")),c.append(h),l.append(c)):l.append(h)}),l},e.prototype.updateTitle=function(e){this.el&&this.el.find("h2").text(e)},e.prototype.activateButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").addClass(this.calendar.theme.getClass("stateActive"))},e.prototype.deactivateButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},e.prototype.disableButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},e.prototype.enableButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},e.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=n(32),a=n(31),l=function(e){function t(t,n){var o=e.call(this)||this;return o._calendar=t,o.overrides=i.extend({},n),o.dynamicOverrides={},o.compute(),o}return o.__extends(t,e),t.prototype.add=function(e){var t,n=0;for(t in this.recordOverrides(e),e)n++;if(1===n){if("height"===t||"contentHeight"===t||"aspectRatio"===t)return void this._calendar.updateViewSize(!0);if("defaultDate"===t)return;if("businessHours"===t)return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(t))return;if("timezone"===t)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},t.prototype.compute=function(){var e,t,n,o;e=r.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),(t=a.localeOptionHash[e])||(e=s.globalDefaults.locale,t=a.localeOptionHash[e]||{}),n=r.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,s.globalDefaults.isRTL)?s.rtlDefaults:{},this.dirDefaults=n,this.localeDefaults=t,o=s.mergeOptions([s.globalDefaults,n,t,this.overrides,this.dynamicOverrides]),a.populateInstanceComputableOptions(o),this.reset(o)},t.prototype.recordOverrides=function(e){var t;for(t in e)this.dynamicOverrides[t]=e[t];this._calendar.viewSpecManager.clearCache(),this.compute()},t}(n(48).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(3),r=n(22),s=n(4),a=n(32),l=n(31),c=function(){function e(e,t){this.optionsManager=e,this._calendar=t,this.clearCache()}return e.prototype.clearCache=function(){this.viewSpecCache={}},e.prototype.getViewSpec=function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},e.prototype.getUnitViewSpec=function(e){var t,n,o;if(-1!==i.inArray(e,s.unitsDesc))for(t=this._calendar.header.getViewsWithButtons(),i.each(r.viewHash,function(e){t.push(e)}),n=0;n<t.length;n++)if((o=this.getViewSpec(t[n]))&&o.singleUnit===e)return o},e.prototype.buildViewSpec=function(e){for(var t,n,i,l,c,u=this.optionsManager.overrides.views||{},d=[],p=[],h=[],f=e;f;)t=r.viewHash[f],n=u[f],f=null,"function"==typeof t&&(t={class:t}),t&&(d.unshift(t),p.unshift(t.defaults||{}),i=i||t.duration,f=f||t.type),n&&(h.unshift(n),i=i||n.duration,f=f||n.type);return(t=s.mergeProps(d)).type=e,!!t.class&&((i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration)&&(l=o.duration(i)).valueOf()&&(c=s.computeDurationGreatestUnit(l,i),t.duration=l,t.durationUnit=c,1===l.as(c)&&(t.singleUnit=c,h.unshift(u[c]||{}))),t.defaults=a.mergeOptions(p),t.overrides=a.mergeOptions(h),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,e),t)},e.prototype.buildViewSpecOptions=function(e){var t=this.optionsManager;e.options=a.mergeOptions([a.globalDefaults,e.defaults,t.dirDefaults,t.localeDefaults,t.overrides,e.overrides,t.dynamicOverrides]),l.populateInstanceComputableOptions(e.options)},e.prototype.buildViewSpecButtonText=function(e,t){var n=this.optionsManager;function o(n){var o=n.buttonText||{};return o[t]||(e.buttonTextKey?o[e.buttonTextKey]:null)||(e.singleUnit?o[e.singleUnit]:null)}e.buttonTextOverride=o(n.dynamicOverrides)||o(n.overrides)||e.overrides.buttonText,e.buttonTextDefault=o(n.localeDefaults)||o(n.dirDefaults)||e.defaults.buttonText||o(a.globalDefaults)||(e.duration?this._calendar.humanizeDuration(e.duration):null)||t},e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(243),s=n(52),a=n(6),l=n(38),c=n(13),u=n(18),d=n(11),p=n(7),h=function(){function e(e){this.calendar=e,this.stickySource=new s.default(e),this.otherSources=[]}return e.prototype.requestEvents=function(e,t,n,o){return!o&&this.currentPeriod&&this.currentPeriod.isWithinRange(e,t)&&n===this.currentPeriod.timezone||this.setPeriod(new r.default(e,t,n)),this.currentPeriod.whenReleased()},e.prototype.addSource=function(e){this.otherSources.push(e),this.currentPeriod&&this.currentPeriod.requestSource(e)},e.prototype.removeSource=function(e){i.removeExact(this.otherSources,e),this.currentPeriod&&this.currentPeriod.purgeSource(e)},e.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},e.prototype.refetchSource=function(e){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(e),t.requestSource(e),t.thaw())},e.prototype.refetchAllSources=function(){var e=this.currentPeriod;e&&(e.freeze(),e.purgeAllSources(),e.requestSources(this.getSources()),e.thaw())},e.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},e.prototype.multiQuerySources=function(e){e?o.isArray(e)||(e=[e]):e=[];var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.querySources(e[t]));return n},e.prototype.querySources=function(e){var t,n,i=this.otherSources;for(t=0;t<i.length;t++)if((n=i[t])===e)return[n];return(n=this.getSourceById(a.default.normalizeId(e)))?[n]:(e=l.default.parse(e,this.calendar))?o.grep(i,function(t){return n=t,e.getPrimitive()===n.getPrimitive();var n}):void 0},e.prototype.getSourceById=function(e){return o.grep(this.otherSources,function(t){return t.id&&t.id===e})[0]},e.prototype.setPeriod=function(e){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=e,this.bindPeriod(e),e.requestSources(this.getSources())},e.prototype.bindPeriod=function(e){this.listenTo(e,"release",function(e){this.trigger("release",e)})},e.prototype.unbindPeriod=function(e){this.stopListeningTo(e)},e.prototype.getEventDefByUid=function(e){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(e)},e.prototype.addEventDef=function(e,t){t&&this.stickySource.addEventDef(e),this.currentPeriod&&this.currentPeriod.addEventDef(e)},e.prototype.removeEventDefsById=function(e){this.getSources().forEach(function(t){t.removeEventDefsById(e)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(e)},e.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(e){e.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},e.prototype.mutateEventsWithId=function(e,t){var n,o=this.currentPeriod,i=[];return o?(o.freeze(),(n=o.getEventDefsById(e)).forEach(function(e){o.removeEventDef(e),i.push(t.mutateSingle(e)),o.addEventDef(e)}),o.thaw(),function(){o.freeze();for(var e=0;e<n.length;e++)o.removeEventDef(n[e]),i[e](),o.addEventDef(n[e]);o.thaw()}):function(){}},e.prototype.buildMutatedEventInstanceGroup=function(e,t){var n,o,i=this.getEventDefsById(e),r=[];for(n=0;n<i.length;n++)(o=i[n].clone())instanceof c.default&&(t.mutateSingle(o),r.push.apply(r,o.buildInstances()));return new u.default(r)},e.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},e.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},e.prototype.getEventDefsById=function(e){return this.currentPeriod.getEventDefsById(e)},e.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},e.prototype.getEventInstancesWithId=function(e){return this.currentPeriod.getEventInstancesWithId(e)},e.prototype.getEventInstancesWithoutId=function(e){return this.currentPeriod.getEventInstancesWithoutId(e)},e}();t.default=h,d.default.mixInto(h),p.default.mixInto(h)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(20),s=n(11),a=n(5),l=n(18),c=function(){function e(e,t,n){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=e,this.end=t,this.timezone=n,this.unzonedRange=new a.default(e.clone().stripZone(),t.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}return e.prototype.isWithinRange=function(e,t){return!e.isBefore(this.start)&&!t.isAfter(this.end)},e.prototype.requestSources=function(e){this.freeze();for(var t=0;t<e.length;t++)this.requestSource(e[t]);this.thaw()},e.prototype.requestSource=function(e){var t=this,n={source:e,status:"pending",eventDefs:null};this.requestsByUid[e.uid]=n,this.pendingCnt+=1,e.fetch(this.start,this.end,this.timezone).then(function(e){"cancelled"!==n.status&&(n.status="completed",n.eventDefs=e,t.addEventDefs(e),t.pendingCnt--,t.tryRelease())},function(){"cancelled"!==n.status&&(n.status="failed",t.pendingCnt--,t.tryRelease())})},e.prototype.purgeSource=function(e){var t=this.requestsByUid[e.uid];t&&(delete this.requestsByUid[e.uid],"pending"===t.status?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===t.status&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},e.prototype.purgeAllSources=function(){var e,t,n=this.requestsByUid,o=0;for(e in n)"pending"===(t=n[e]).status?t.status="cancelled":"completed"===t.status&&o++;this.requestsByUid={},this.pendingCnt=0,o&&this.removeAllEventDefs()},e.prototype.getEventDefByUid=function(e){return this.eventDefsByUid[e]},e.prototype.getEventDefsById=function(e){var t=this.eventDefsById[e];return t?t.slice():[]},e.prototype.addEventDefs=function(e){for(var t=0;t<e.length;t++)this.addEventDef(e[t])},e.prototype.addEventDef=function(e){var t,n=this.eventDefsById,o=e.id,i=n[o]||(n[o]=[]),r=e.buildInstances(this.unzonedRange);for(i.push(e),this.eventDefsByUid[e.uid]=e,t=0;t<r.length;t++)this.addEventInstance(r[t],o)},e.prototype.removeEventDefsById=function(e){var t=this;this.getEventDefsById(e).forEach(function(e){t.removeEventDef(e)})},e.prototype.removeAllEventDefs=function(){var e=o.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},e||this.tryRelease()},e.prototype.removeEventDef=function(e){var t=this.eventDefsById,n=t[e.id];delete this.eventDefsByUid[e.uid],n&&(i.removeExact(n,e),n.length||delete t[e.id],this.removeEventInstancesForDef(e))},e.prototype.getEventInstances=function(){var e,t=this.eventInstanceGroupsById,n=[];for(e in t)n.push.apply(n,t[e].eventInstances);return n},e.prototype.getEventInstancesWithId=function(e){var t=this.eventInstanceGroupsById[e];return t?t.eventInstances.slice():[]},e.prototype.getEventInstancesWithoutId=function(e){var t,n=this.eventInstanceGroupsById,o=[];for(t in n)t!==e&&o.push.apply(o,n[t].eventInstances);return o},e.prototype.addEventInstance=function(e,t){var n=this.eventInstanceGroupsById;(n[t]||(n[t]=new l.default)).eventInstances.push(e),this.tryRelease()},e.prototype.removeEventInstancesForDef=function(e){var t,n=this.eventInstanceGroupsById,o=n[e.id];o&&(t=i.removeMatching(o.eventInstances,function(t){return t.def===e}),o.eventInstances.length||delete n[e.id],t&&this.tryRelease())},e.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},e.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},e.prototype.whenReleased=function(){var e=this;return this.releaseCnt?r.default.resolve(this.eventInstanceGroupsById):r.default.construct(function(t){e.one("release",t)})},e.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},e.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},e}();t.default=c,s.default.mixInto(c)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(7),s=function(){function e(e,t){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=t=t||{},this.sourceEl=e,this.parentEl=t.parentEl?o(t.parentEl):e.parent()}return e.prototype.start=function(e){this.isFollowing||(this.isFollowing=!0,this.y0=i.getEvY(e),this.x0=i.getEvX(e),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),i.getEvIsTouch(e)?this.listenTo(o(document),"touchmove",this.handleMove):this.listenTo(o(document),"mousemove",this.handleMove))},e.prototype.stop=function(e,t){var n=this,i=this.options.revertDuration,r=function(){n.isAnimating=!1,n.removeElement(),n.top0=n.left0=null,t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(o(document)),e&&i&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:i,complete:r})):r())},e.prototype.getEl=function(){var e=this.el;return e||((e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex})).addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},e.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},e.prototype.updatePosition=function(){var e,t;this.getEl(),null==this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},e.prototype.handleMove=function(e){this.topDelta=i.getEvY(e)-this.y0,this.leftDelta=i.getEvX(e)-this.x0,this.isHidden||this.updatePosition()},e.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},e.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},e}();t.default=s,r.default.mixInto(s)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(23),r=function(e){function t(t){var n=e.call(this,t)||this;return n.dragListener=n.buildDragListener(),n}return o.__extends(t,e),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.bindToEl=function(e){var t=this.component,n=this.dragListener;t.bindDateHandlerToEl(e,"mousedown",function(e){t.shouldIgnoreMouse()||n.startInteraction(e)}),t.bindDateHandlerToEl(e,"touchstart",function(e){t.shouldIgnoreTouch()||n.startInteraction(e)})},t.prototype.buildDragListener=function(){var e,t=this,n=this.component,o=new i.default(n,{scroll:this.opt("dragScroll"),interactionStart:function(){e=o.origHit},hitOver:function(t,n,o){n||(e=null)},hitOut:function(){e=null},interactionEnd:function(o,i){var r;!i&&e&&(r=n.getSafeHitFootprint(e))&&t.view.triggerDayClick(r,n.getHitEl(e),o)}});return o.shouldCancelTouchScroll=!1,o.scrollAlwaysKills=!0,o},t}(n(15).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.timeGrid=t,o}return o.__extends(t,e),t.prototype.renderFgSegs=function(e){this.renderFgSegsIntoContainers(e,this.timeGrid.fgContainerEls)},t.prototype.renderFgSegsIntoContainers=function(e,t){var n,o;for(n=this.timeGrid.groupSegsByCol(e),o=0;o<this.timeGrid.colCnt;o++)this.updateFgSegCoords(n[o]);this.timeGrid.attachSegsByCol(n,t)},t.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(e){e.el.remove()})},t.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.fgSegHtml=function(e,t){var n,o,r,s=this.view,a=s.calendar,l=e.footprint.componentFootprint,c=l.isAllDay,u=e.footprint.eventDef,d=s.isEventDefDraggable(u),p=!t&&e.isStart&&s.isEventDefResizableFromStart(u),h=!t&&e.isEnd&&s.isEventDefResizableFromEnd(u),f=this.getSegClasses(e,d,p||h),m=i.cssToStr(this.getSkinCss(u));if(f.unshift("fc-time-grid-event","fc-v-event"),s.isMultiDayRange(l.unzonedRange)){if(e.isStart||e.isEnd){var g=a.msToMoment(e.startMs),v=a.msToMoment(e.endMs);n=this._getTimeText(g,v,c),o=this._getTimeText(g,v,c,"LT"),r=this._getTimeText(g,v,c,null,!1)}}else n=this.getTimeText(e.footprint),o=this.getTimeText(e.footprint,"LT"),r=this.getTimeText(e.footprint,null,!1);return'<a class="'+f.join(" ")+'"'+(u.url?' href="'+i.htmlEscape(u.url)+'"':"")+(m?' style="'+m+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+i.htmlEscape(r)+'" data-full="'+i.htmlEscape(o)+'"><span>'+i.htmlEscape(n)+"</span></div>":"")+(u.title?'<div class="fc-title">'+i.htmlEscape(u.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(h?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},t.prototype.updateFgSegCoords=function(e){this.timeGrid.computeSegVerticals(e),this.computeFgSegHorizontals(e),this.timeGrid.assignSegVerticals(e),this.assignFgSegHorizontals(e)},t.prototype.computeFgSegHorizontals=function(e){var t,n,o;if(this.sortEventSegs(e),function(e){var t,n,o,i,r;for(t=0;t<e.length;t++)for(n=e[t],o=0;o<n.length;o++)for((i=n[o]).forwardSegs=[],r=t+1;r<e.length;r++)a(i,e[r],i.forwardSegs)}(t=function(e){var t,n,o,i=[];for(t=0;t<e.length;t++){for(n=e[t],o=0;o<i.length&&a(n,i[o]).length;o++);n.level=o,(i[o]||(i[o]=[])).push(n)}return i}(e)),n=t[0]){for(o=0;o<n.length;o++)s(n[o]);for(o=0;o<n.length;o++)this.computeFgSegForwardBack(n[o],0,0)}},t.prototype.computeFgSegForwardBack=function(e,t,n){var o,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeFgSegForwardBack(i[0],t+1,n),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),o=0;o<i.length;o++)this.computeFgSegForwardBack(i[o],0,e.forwardCoord)},t.prototype.sortForwardSegs=function(e){e.sort(i.proxy(this,"compareForwardSegs"))},t.prototype.compareForwardSegs=function(e,t){return t.forwardPressure-e.forwardPressure||(e.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(e,t)},t.prototype.assignFgSegHorizontals=function(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).el.css(this.generateFgSegHorizontalCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short")},t.prototype.generateFgSegHorizontalCss=function(e){var t,n,o=this.opt("slotEventOverlap"),i=e.backwardCoord,r=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.timeGrid.isRTL;return o&&(r=Math.min(1,i+2*(r-i))),a?(t=1-r,n=i):(t=i,n=1-r),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",o&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},t}(n(42).default);function s(e){var t,n,o=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<o.length;t++)s(n=o[t]),i=Math.max(i,1+n.forwardPressure);e.forwardPressure=i}}function a(e,t,n){void 0===n&&(n=[]);for(var o=0;o<t.length;o++)i=e,r=t[o],i.bottom>r.top&&i.top<r.bottom&&n.push(t[o]);var i,r;return n}t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderSegs=function(e,t){var n,o,r,s=[];for(this.eventRenderer.renderFgSegsIntoContainers(e,this.component.helperContainerEls),n=0;n<e.length;n++)o=e[n],t&&t.col===o.col&&(r=t.el,o.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")})),s.push(o.el[0]);return i(s)},t}(n(58).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.attachSegEls=function(e,t){var n,o=this.component;return"bgEvent"===e?n=o.bgContainerEls:"businessHours"===e?n=o.businessContainerEls:"highlight"===e&&(n=o.highlightContainerEls),o.updateSegVerticals(t),o.attachSegsByCol(o.groupSegsByCol(t),n),t.map(function(e){return e.el[0]})},t}(n(57).default);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(7),s=function(){function e(e){this.isHidden=!0,this.margin=10,this.options=e||{}}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options;this.el=o('<div class="fc-popover"/>').addClass(t.className||"").css({top:0,left:0}).append(t.content).appendTo(t.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),t.autoHide&&this.listenTo(o(document),"mousedown",this.documentMousedown)},e.prototype.documentMousedown=function(e){this.el&&!o(e.target).closest(this.el).length&&this.hide()},e.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(o(document),"mousedown")},e.prototype.position=function(){var e,t,n,r,s,a=this.options,l=this.el.offsetParent().offset(),c=this.el.outerWidth(),u=this.el.outerHeight(),d=o(window),p=i.getScrollParent(this.el);r=a.top||0,s=void 0!==a.left?a.left:void 0!==a.right?a.right-c:0,p.is(window)||p.is(document)?(p=d,e=0,t=0):(e=(n=p.offset()).top,t=n.left),e+=d.scrollTop(),t+=d.scrollLeft(),!1!==a.viewportConstrain&&(r=Math.min(r,e+p.outerHeight()-u-this.margin),r=Math.max(r,e+this.margin),s=Math.min(s,t+p.outerWidth()-c-this.margin),s=Math.max(s,t+this.margin)),this.el.css({top:r-l.top,left:s-l.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}();t.default=s,r.default.mixInto(s)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=n(4),s=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.dayGrid=t,o}return o.__extends(t,e),t.prototype.renderBgRanges=function(t){t=i.grep(t,function(e){return e.eventDef.isAllDay()}),e.prototype.renderBgRanges.call(this,t)},t.prototype.renderFgSegs=function(e){var t=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.each(function(e,n){i(n).find(".fc-content-skeleton > table").append(t[e].tbodyEl)})},t.prototype.unrenderFgSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},t.prototype.renderSegRows=function(e){var t,n,o=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)o.push(this.renderSegRow(n,t[n]));return o},t.prototype.renderSegRow=function(e,t){var n,o,r,s,a,l,c,u=this.dayGrid.colCnt,d=this.buildSegLevels(t),p=Math.max(1,d.length),h=i("<tbody/>"),f=[],m=[],g=[];function v(e){for(;r<e;)(c=(g[n-1]||[])[r])?c.attr("rowspan",parseInt(c.attr("rowspan")||1,10)+1):(c=i("<td/>"),s.append(c)),m[n][r]=c,g[n][r]=c,r++}for(n=0;n<p;n++){if(o=d[n],r=0,s=i("<tr/>"),f.push([]),m.push([]),g.push([]),o)for(a=0;a<o.length;a++){for(v((l=o[a]).leftCol),c=i('<td class="fc-event-container"/>').append(l.el),l.leftCol!==l.rightCol?c.attr("colspan",l.rightCol-l.leftCol+1):g[n][r]=c;r<=l.rightCol;)m[n][r]=c,f[n][r]=l,r++;s.append(c)}v(u),this.dayGrid.bookendCells(s),h.append(s)}return{row:e,tbodyEl:h,cellMatrix:m,segMatrix:f,segLevels:d,segs:t}},t.prototype.buildSegLevels=function(e){var t,n,o,i=[];for(this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],o=0;o<i.length&&a(n,i[o]);o++);n.level=o,(i[o]||(i[o]=[])).push(n)}for(o=0;o<i.length;o++)i[o].sort(l);return i},t.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},t.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},t.prototype.fgSegHtml=function(e,t){var n,o,i=this.view,s=e.footprint.eventDef,a=e.footprint.componentFootprint.isAllDay,l=i.isEventDefDraggable(s),c=!t&&a&&e.isStart&&i.isEventDefResizableFromStart(s),u=!t&&a&&e.isEnd&&i.isEventDefResizableFromEnd(s),d=this.getSegClasses(e,l,c||u),p=r.cssToStr(this.getSkinCss(s)),h="";return d.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(e.footprint))&&(h='<span class="fc-time">'+r.htmlEscape(n)+"</span>"),o='<span class="fc-title">'+(r.htmlEscape(s.title||"")||" ")+"</span>",'<a class="'+d.join(" ")+'"'+(s.url?' href="'+r.htmlEscape(s.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?o+" "+h:h+" "+o)+"</div>"+(c?'<div class="fc-resizer fc-start-resizer" />':"")+(u?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},t}(n(42).default);function a(e,t){var n,o;for(n=0;n<t.length;n++)if((o=t[n]).leftCol<=e.rightCol&&o.rightCol>=e.leftCol)return!0;return!1}function l(e,t){return e.leftCol-t.leftCol}t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderSegs=function(e,t){var n,o=[];return n=this.eventRenderer.renderSegRows(e),this.component.rowEls.each(function(e,r){var s,a,l=i(r),c=i('<div class="fc-helper-skeleton"><table/></div>');t&&t.row===e?a=t.el.position().top:((s=l.find(".fc-content-skeleton tbody")).length||(s=l.find(".fc-content-skeleton table")),a=s.position().top),c.css("top",a).find("table").append(n[e].tbodyEl),l.append(c),o.push(c[0])}),i(o)},t}(n(58).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fillSegTag="td",t}return o.__extends(t,e),t.prototype.attachSegEls=function(e,t){var n,o,i,r=[];for(n=0;n<t.length;n++)o=t[n],i=this.renderFillRow(e,o),this.component.rowEls.eq(o.row).append(i),r.push(i[0]);return r},t.prototype.renderFillRow=function(e,t){var n,o,r,s=this.component.colCnt,a=t.leftCol,l=t.rightCol+1;return n="businessHours"===e?"bgevent":e.toLowerCase(),r=(o=i('<div class="fc-'+n+'-skeleton"><table><tr/></table></div>')).find("tr"),a>0&&r.append('<td colspan="'+a+'"/>'),r.append(t.el.attr("colspan",l-a)),l<s&&r.append('<td colspan="'+(s-l)+'"/>'),this.component.bookendCells(r),o},t}(n(57).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(228),r=n(5),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.buildRenderRange=function(t,n,o){var i,s=e.prototype.buildRenderRange.call(this,t,n,o),a=this.msToUtcMoment(s.startMs,o),l=this.msToUtcMoment(s.endMs,o);return this.opt("fixedWeekCount")&&(i=Math.ceil(l.diff(a,"weeks",!0)),l.add(6-i,"weeks")),new r.default(a,l)},t}(i.default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(4),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderFgSegs=function(e){e.length?this.component.renderSegList(e):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(e){var t,n=this.view,o=n.calendar,r=o.theme,s=e.footprint,a=s.eventDef,l=s.componentFootprint,c=a.url,u=["fc-list-item"].concat(this.getClasses(a)),d=this.getBgColor(a);return t=l.isAllDay?n.getAllDayHtml():n.isMultiDayRange(l.unzonedRange)?e.isStart||e.isEnd?i.htmlEscape(this._getTimeText(o.msToMoment(e.startMs),o.msToMoment(e.endMs),l.isAllDay)):n.getAllDayHtml():i.htmlEscape(this.getTimeText(s)),c&&u.push("fc-has-url"),'<tr class="'+u.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+r.getClass("widgetContent")+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+r.getClass("widgetContent")+'"><span class="fc-event-dot"'+(d?' style="background-color:'+d+'"':"")+'></span></td><td class="fc-list-item-title '+r.getClass("widgetContent")+'"><a'+(c?' href="'+i.htmlEscape(c)+'"':"")+">"+i.htmlEscape(a.title||"")+"</a></td></tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(n(42).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=n(3),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.handleClick=function(t,n){var o;e.prototype.handleClick.call(this,t,n),i(n.target).closest("a[href]").length||(o=t.footprint.eventDef.url)&&!n.isDefaultPrevented()&&(window.location.href=o)},t}(n(59).default);t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),i=n(52),r=n(215),s=n(216);o.default.registerClass(i.default),o.default.registerClass(r.default),o.default.registerClass(s.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(51),i=n(213),r=n(214),s=n(258),a=n(259);o.defineThemeSystem("standard",i.default),o.defineThemeSystem("jquery-ui",r.default),o.defineThemeSystem("bootstrap3",s.default),o.defineThemeSystem("bootstrap4",a.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(n(19).default);t.default=i,i.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},i.prototype.baseIconClass="glyphicon",i.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},i.prototype.iconOverrideOption="bootstrapGlyphicons",i.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",i.prototype.iconOverridePrefix="glyphicon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t}(n(19).default);t.default=i,i.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},i.prototype.baseIconClass="fa",i.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},i.prototype.iconOverrideOption="bootstrapFontAwesome",i.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",i.prototype.iconOverridePrefix="fa-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(62),r=n(229);o.defineView("basic",{class:i.default}),o.defineView("basicDay",{type:"basic",duration:{days:1}}),o.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),o.defineView("month",{class:r.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(226);o.defineView("agenda",{class:i.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),o.defineView("agendaDay",{type:"agenda",duration:{days:1}}),o.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=n(230);o.defineView("list",{class:i.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),o.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),o.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),o.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),o.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}])},e.exports=o(n(0),n(941))}});
Save
Back