File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/public/js/chunks/amelia-booking-settings-973e604c7001c8d15aa4.js
Back
wpJsonpAmeliaBookingPlugin([1],{1006:function(e,t,o){var i=o(335)(o(1415),o(1416),!1,null,null,null);e.exports=i.exports},1007:function(e,t,o){var i=o(335)(o(1417),o(1419),!1,null,null,null);e.exports=i.exports},1008:function(e,t,o){"use strict";var i=o(701),n=o(715);t.a={mixins:[n.a,i.a],methods:{getEmployeeActivityLabel:function(e){switch(e){case"available":return this.$root.labels.available;case"away":return this.$root.labels.away;case"break":return this.$root.labels.break;case"busy":return this.$root.labels.busy;case"dayoff":return this.$root.labels.dayoff}},getParsedEditCategorizedServiceList:function(e,t){var o=this,i=[];return t.forEach(function(t){var n=[];t.serviceList.filter(function(t){return"visible"===t.status||"hidden"===t.status&&-1!==e.serviceList.map(function(e){return e.id}).indexOf(t.id)}).forEach(function(t){var i=null;if(e&&e.serviceList.forEach(function(e){e.id===t.id&&((i=Object.assign({},e)).customPricing=o.getArrayCustomPricing(e.customPricing),i.state=!0)}),i)n.push(i);else{var a=Object.assign({},t);a.customPricing=o.getArrayCustomPricing(a.customPricing),a.state=!1,n.push(a)}}),i.push({id:t.id,name:t.name,serviceList:n})}),i},getParsedServiceList:function(e){var t=[];return e.forEach(function(e){e.serviceList.forEach(function(e){e.state&&t.push(Object.assign({},e))})}),t},getParsedEditWeekDayList:function(e){for(var t=[],o=this,i=[this.$root.labels.weekday_monday,this.$root.labels.weekday_tuesday,this.$root.labels.weekday_wednesday,this.$root.labels.weekday_thursday,this.$root.labels.weekday_friday,this.$root.labels.weekday_saturday,this.$root.labels.weekday_sunday],n=0;n<7;n++)t.push({id:null,form:{type:null,isNew:null,index:null,show:!1,data:{}},day:i[n],time:[],breaks:[],periods:[]});return e&&e.weekDayList.forEach(function(e){var n=e.dayIndex-1;e.timeOutList.forEach(function(e){t[n].breaks.push({id:e.id,time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)]})}),t[n].periods=o.getParsedWeekDayPeriods(e),t[n].time=[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],t[n].day=i[e.dayIndex-1],t[n].id=e.id}),t},getParsedWeekDayPeriods:function(e){var t=[];return e.periodList.forEach(function(e){t.push({time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],id:e.id,locationIds:e.periodLocationList.length?e.periodLocationList.map(function(e){return e.locationId}):e.locationId?[e.locationId]:[],serviceIds:e.periodServiceList.map(function(e){return e.serviceId}),locationId:e.locationId,periodLocationList:e.periodLocationList,periodServiceList:e.periodServiceList,savedPeriodServiceList:JSON.parse(JSON.stringify(e.periodServiceList))})}),!t.length&&e.startTime&&e.endTime&&t.push({time:[e.startTime.substring(0,e.startTime.length-3),e.endTime.substring(0,e.endTime.length-3)],id:null,locationIds:[],serviceIds:[],locationId:null,periodLocationList:[],periodServiceList:[],savedPeriodServiceList:[]}),t},getParsedWeekDayList:function(e){var t=[],o=this;return e.forEach(function(e,i){var n=[];e.breaks.forEach(function(e){e.time&&e.time.length&&e.time[0]&&e.time[1]&&n.push({id:e.id,startTime:e.time[0]+":00",endTime:e.time[1]+":00"})});var a=[],s=86400,l=0;e.periods.forEach(function(e){if(e.time&&e.time.length&&e.time[0]&&e.time[1]){var t=o.getStringTimeInSeconds(e.time[0]),i=o.getStringTimeInSeconds(e.time[1]);s=t<s?t:s,l=i>l?i:l;var n=[];e.locationIds.forEach(function(t){var o=e.periodLocationList.find(function(e){return e.locationId===t});n.push({id:o?o.id:null,locationId:t})});var r=[];e.serviceIds.forEach(function(t){var o=e.periodServiceList.find(function(e){return e.serviceId===t});r.push({id:o?o.id:null,serviceId:t})}),a.push({id:e.id,startTime:e.time[0]+":00",endTime:e.time[1]+":00",locationId:e.locationId,periodLocationList:n,periodServiceList:r})}}),a.length&&t.push({id:e.id,dayIndex:i+1,startTime:o.secondsToTimeSelectStep(s)+":00",endTime:o.secondsToTimeSelectStep(l)+":00",timeOutList:n,periodList:a})}),t},getInitEmployeeObject:function(){return{id:0,type:"provider",status:"visible",firstName:"",lastName:"",email:"",externalId:"",locationId:"",phone:"",countryPhoneIso:"",googleCalendar:[],outlookCalendar:[],note:"",description:"",pictureFullPath:"",pictureThumbPath:"",serviceList:[],weekDayList:this.getSettingsSchedule(),specialDayList:[],dayOffList:[]}}}}},1346:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1347),n=o.n(i),a=o(1350),s=o.n(a),l=o(1353),r=o.n(l),c=o(1356),u=o.n(c),p=o(1359),d=o.n(p),m=o(1386),f=o.n(m),h=o(1389),g=o.n(h),v=o(1392),b=o.n(v),_=o(1410),y=o.n(_),w=o(1413),x=o.n(w),k=o(816),C=o.n(k),$=o(697),P=o(696),S=o(700),O=o(729),T=o.n(O),E=o(1421),D=o.n(E),L=o(1008),A=o(770),N=o(736),j=o.n(N),M=o(982),R=o.n(M),q=o(741),I=o.n(q),z="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.default={components:{PageHeader:T.a,DialogTranslate:C.a,DialogSettingsGeneral:u.a,DialogSettingsCompany:r.a,DialogSettingsNotifications:g.a,DialogSettingsWorkHoursDaysOff:x.a,DialogSettingsPayments:b.a,DialogSettingsIntegrations:d.a,DialogSettingsLabels:f.a,DialogSettingsRoles:y.a,DialogSettingsAppointments:s.a,DialogEmployee:D.a,DialogSettingsActivation:n.a,DialogNewCustomize:j.a,DialogCombinedPlaceholder:R.a,AmSurvey:I.a},mixins:[L.a,A.a,P.a,S.a,$.a],data:function(){return{employeeInfo:{isDuplicated:!1,dialogCompanyDaysOffSettings:!1,dialogEmployee:!1,editCategorizedServiceList:null,editWeekDayList:[],employee:null,futureAppointments:{}},dialogCombinedPlaceholder:!1,combinedPlaceholderName:"",dialogTranslate:!1,dialogTranslateExtra:!1,dialogTranslateCategory:!1,dialogTranslateType:"url",dialogTranslateTab:"roles",dialogTranslateData:{},dialogTranslateName:"",extrasTranslateIndex:0,languagesData:{},newExtraTranslations:null,dialogSettingsGeneral:!1,dialogSettingsCompany:!1,dialogSettingsNotifications:!1,dialogSettingsWorkHoursDaysOff:!1,dialogSettingsPayments:!1,dialogSettingsIntegrations:!1,dialogSettingsLabels:!1,dialogSettingsActivation:!1,dialogSettingsRoles:!1,dialogSettingsAppointments:!1,fetched:!1,customFields:[],categories:[],coupons:[],settings:{}}},created:function(){this.fetchData(),this.getEntities()},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{getCombinedPlaceholders:function(){return"groupAppointmentPlaceholder"===this.combinedPlaceholderName?["appointmentPlaceholders","extrasPlaceholders","customFieldsPlaceholders","customerPlaceholders","couponsPlaceholders"]:["eventPlaceholders","customFieldsPlaceholders","customerPlaceholders","couponsPlaceholders"]},fetchData:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/settings").then(function(t){e.fetched=!0,t.data.data.settings.roles.customerCabinet.translations&&"object"===z(t.data.data.settings.roles.customerCabinet.translations)&&"url"in t.data.data.settings.roles.customerCabinet.translations||(t.data.data.settings.roles.customerCabinet.translations={url:{}}),t.data.data.settings.company.translations&&"object"===z(t.data.data.settings.company.translations)&&"name"in t.data.data.settings.company.translations||(t.data.data.settings.company.translations={name:{}});var o=t.data.data.settings;for(var i in o.weekSchedule.forEach(function(e){e.form={type:null,isNew:null,index:null,show:!1,data:{}},e.time[0]&&e.time[1]?"periods"in e&&0!==e.periods.length?e.periods.forEach(function(e){e.id=null,e.locationIds=[],e.serviceIds=[],e.periodLocationList=[],e.periodServiceList=[],e.time=[e.time[0],e.time[1]]}):e.periods=[{time:[e.time[0],e.time[1]],id:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]}]:e.periods=[]}),o.payments.wc.checkoutData.translations||(o.payments.wc.checkoutData.translations={appointment:{},event:{},package:{}}),o.payments.wc.rules||(o.payments.wc.rules=[]),"appointment"in o.payments.wc.checkoutData.translations&&(!Array.isArray(o.payments.wc.checkoutData.translations.appointment)||o.payments.wc.checkoutData.translations.appointment.length)&&o.payments.wc.checkoutData.translations.appointment||(o.payments.wc.checkoutData.translations.appointment={}),"event"in o.payments.wc.checkoutData.translations&&(!Array.isArray(o.payments.wc.checkoutData.translations.event)||o.payments.wc.checkoutData.translations.event.length)&&o.payments.wc.checkoutData.translations.event||(o.payments.wc.checkoutData.translations.event={}),"package"in o.payments.wc.checkoutData.translations&&(!Array.isArray(o.payments.wc.checkoutData.translations.package)||o.payments.wc.checkoutData.translations.package.length)&&o.payments.wc.checkoutData.translations.package||(o.payments.wc.checkoutData.translations.package={}),e.$root.settings.general.usedLanguages.forEach(function(e){e in o.payments.wc.checkoutData.translations.appointment||(o.payments.wc.checkoutData.translations.appointment[e]=""),e in o.payments.wc.checkoutData.translations.event||(o.payments.wc.checkoutData.translations.event[e]=""),e in o.payments.wc.checkoutData.translations.package||(o.payments.wc.checkoutData.translations.package[e]="")}),e.settings=o,e.settings.notifications)i=i.trim();e.openActiveSettingFromQueryParameter(),e.handleEnvatoActivation()}).catch(function(t){console.log(t.message),e.fetched=!0})},updateSettings:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(var n in e)e.hasOwnProperty(n)&&"weekSchedule"!==n&&(this.settings[n]=e[n]);for(var a in this.settings.customization=null,this.settings.customizedData=null,this.settings.notifications)a=a.trim();var s=JSON.parse(JSON.stringify(this.settings));s.weekSchedule=e.weekSchedule,this.$http.post(this.$root.getAjaxUrl+"/settings",s).then(function(n){Object.keys(e).forEach(function(o){Object.keys(e[o]).forEach(function(i){t.$root.settings.hasOwnProperty(o)&&t.$root.settings[o].hasOwnProperty(i)&&(t.$root.settings[o][i]=e[o][i])})}),!0===i&&t.notify(t.$root.labels.success,o||t.$root.labels.settings_saved,"success")}).catch(function(e){t.notify(t.$root.labels.error,e.message,"error")})},showDialogSettingsGeneral:function(){this.dialogSettingsGeneral=!0},showDialogSettingsCompany:function(){this.dialogSettingsCompany=!0},showDialogSettingsWorkHoursDaysOff:function(){this.dialogSettingsWorkHoursDaysOff=!0},showDialogSettingsNotifications:function(){this.dialogSettingsNotifications=!0},showDialogSettingsPayments:function(){this.dialogSettingsPayments=!0},showDialogSettingsIntegrations:function(){this.dialogSettingsIntegrations=!0},showDialogSettingsLabels:function(){this.dialogSettingsLabels=!0},showDialogSettingsActivation:function(){this.dialogSettingsActivation=!0},showDialogSettingsRoles:function(){this.dialogSettingsRoles=!0},showDialogEmployee:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:{types:["employees","categories","appointments"],page:"settings"}}).then(function(t){var o=e,i=t.data.data.appointments.futureAppointments;for(var n in e.employeeInfo.employee=t.data.data.employees.length?t.data.data.employees[0]:e.getInitEmployeeObject(),e.employeeInfo.employee.specialDayList=[],e.employeeInfo.employee.dayOffList=[],e.employeeInfo.employee.weekDayList.forEach(function(e){e.periodList=e.periodList.sort(function(e,t){return o.$moment("2000-01-01 "+e.startTime+":00","YYYY-MM-DD HH:mm:ss").diff(o.$moment("2000-01-01 "+t.startTime+":00","YYYY-MM-DD HH:mm:ss"))}),e.timeOutList=e.timeOutList.sort(function(e,t){return o.$moment("2000-01-01 "+e.startTime+":00","YYYY-MM-DD HH:mm:ss").diff(o.$moment("2000-01-01 "+t.startTime+":00","YYYY-MM-DD HH:mm:ss"))})}),i)if(e.employeeInfo.employee.id===parseInt(i[n].providerId)){var a=i[n].serviceId,s=i[n].providerId;s in e.employeeInfo.futureAppointments?-1===e.employeeInfo.futureAppointments[s].indexOf(a)&&e.employeeInfo.futureAppointments[s].push(a):(e.employeeInfo.futureAppointments[s]=[],e.employeeInfo.futureAppointments[s].push(a))}e.employeeInfo.employee.googleCalendar={calendarId:null,calendarList:[]},e.employeeInfo.editWeekDayList=e.getParsedEditWeekDayList(e.employeeInfo.employee),e.employeeInfo.editCategorizedServiceList=e.getParsedEditCategorizedServiceList(e.employeeInfo.employee,t.data.data.categories),e.employeeInfo.editCategorizedServiceList.forEach(function(e){o.employeeInfo.employee.id||(e.serviceList.forEach(function(e){e.state=!0}),e.state=!0)}),e.employeeInfo.dialogEmployee=!0}).catch(function(e){})},showDialogSettingsAppointments:function(){this.dialogSettingsAppointments=!0},openDialogCombinedPlaceholders:function(e){this.combinedPlaceholderName=e,this.dialogCombinedPlaceholder=!0},getEntities:function(){var e=this;this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["custom_fields","categories","coupons","settings"]})}).then(function(t){e.customFields=t.data.data.customFields,e.coupons=t.data.data.coupons,e.categories=t.data.data.categories,e.languagesData=t.data.data.settings.languages}).catch(function(e){console.log(e.message)})},showDialogTranslateRoles:function(e){var t=this;this.dialogTranslateTab="roles",this.dialogTranslateType="url",this.settings.roles.customerCabinet.translations&&"url"in this.settings.roles.customerCabinet.translations&&Array.isArray(this.settings.roles.customerCabinet.translations.url)&&(this.settings.roles.customerCabinet.translations.url={}),this.settings.roles.customerCabinet.translations&&"url"in this.settings.roles.customerCabinet.translations&&this.settings.general.usedLanguages.forEach(function(e){e in t.settings.roles.customerCabinet.translations.url||(t.settings.roles.customerCabinet.translations.url[e]="")}),this.dialogTranslateData=this.settings.roles.customerCabinet.translations&&this.settings.roles.customerCabinet.translations.url?JSON.stringify(this.settings.roles.customerCabinet.translations):JSON.stringify({url:{}}),this.showDialogTranslate(e)},showDialogTranslateCompany:function(e){this.dialogTranslateTab="company",this.dialogTranslateType="name",this.dialogTranslateData=JSON.stringify({name:{}}),this.settings.company.translations&&(this.settings.company.translations.name=Object.assign({},this.settings.company.translations.name),this.dialogTranslateData=JSON.stringify(this.settings.company.translations)),this.showDialogTranslate(e)},showDialogTranslate:function(e){this.dialogTranslateName=e,this.dialogTranslate=!0},saveDialogTranslate:function(e,t,o){if(this.settings.general.usedLanguages=this.settings.general.usedLanguages.concat(t),"roles"===o){var i={};(e=e?JSON.parse(e):{})&&"url"in e&&(Object.keys(e.url).forEach(function(t){e.url[t]&&(i[t]=e.url[t])}),this.settings.roles.customerCabinet.translations={url:i})}"company"===o&&(this.settings.company.translations=e?JSON.parse(e):[],this.$refs.company.changeTranslations(e)),this.closeDialogTranslate()},closeDialogTranslate:function(){this.dialogTranslate=!1},openActiveSettingFromQueryParameter:function(){var e=this.getUrlQueryParams(window.location.href).activeSetting;if(e&&"activation"===e){this.showDialogSettingsActivation();var t=this.removeURLParameter(window.location.href,"activeSetting");history.pushState(null,null,t+"#/settings")}},handleEnvatoActivation:function(){var e=this.getUrlQueryParams(window.location.href);e.valid&&e.domainRegistered&&(this.settings.activation.envatoTokenEmail=void 0!==e.envatoTokenEmail?e.envatoTokenEmail:"",this.settings.activation.active="true"===e.valid&&"true"===e.domainRegistered,this.updateSettings(this.settings,null,!1),this.showDialogSettingsActivation())},saveEmployeeCallback:function(){this.employeeInfo.dialogEmployee=!1}}}},1347:function(e,t,o){var i=o(335)(o(1348),o(1349),!1,null,null,null);e.exports=i.exports},1348:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(697),a=o(700);t.default={mixins:[i.a,n.a,a.a],props:{activation:{type:Object}},data:function(){var e=this;return{loadingActivation:!1,settings:Object.assign({},this.activation),rules:{code:[{validator:function(t,o,i){var n=location.hostname,a=location.hostname;e.$http.get(e.$root.getAjaxUrl+"/activation/code",{params:{purchaseCodeStore:e.settings.purchaseCodeStore,domain:n,subdomain:a}}).then(function(t){t.data.data.valid&&!1!==t.data.data.valid?!1===t.data.data.domainRegistered?i(new Error(e.$root.labels.activation_settings_domains_limit)):(e.settings.active=!0,i()):i(new Error(e.$root.labels.activation_settings_invalid_code))}).catch(function(t){console.log(t),e.loadingActivation=!1})},trigger:"submit"}]}}},created:function(){this.authenticateEnvatoOAuthCallback()},mounted:function(){!0===this.settings.active&&this.settings.purchaseCodeStore&&(this.settings.purchaseCodeStore=null)},methods:{closeDialog:function(){this.$emit("closeDialogSettingsActivation")},activatePlugin:function(){var e=this;this.loadingActivation=!0,this.$refs.settings.validate(function(t){if(!t)return e.loadingActivation=!1,!1;e.loadingActivation=!1,e.$emit("closeDialogSettingsActivation"),e.$emit("updateSettings",{activation:e.settings},e.$root.labels.activation_activated)})},updateActivationSettings:function(){this.$emit("updateSettings",{activation:this.settings})},deactivatePlugin:function(){var e=this;this.loadingActivation=!0;var t="",o={},i=location.hostname,n=location.hostname;null===this.settings.purchaseCodeStore?(t="/activation/code/deactivate",o={domain:i,subdomain:n}):this.settings.envatoTokenEmail&&(t="/activation/envato/deactivate",o={envatoTokenEmail:this.settings.envatoTokenEmail,domain:i,subdomain:n}),this.$http.get(""+(this.$root.getAjaxUrl+t),{params:o}).then(function(t){!0===t.data.data.deactivated?(e.loadingActivation=!1,e.settings.active=!1,e.settings.purchaseCodeStore="",e.settings.envatoTokenEmail="",e.$emit("closeDialogSettingsActivation"),e.$emit("updateSettings",{activation:e.settings},e.$root.labels.activation_deactivated)):(e.notify(e.$root.labels.error,e.$root.labels.unable_to_deactivate_plugin,"error"),e.loadingActivation=!1)}).catch(function(){e.notify(e.$root.labels.error,e.$root.labels.unable_to_deactivate_plugin,"error"),e.loadingActivation=!1})},authenticateEnvatoOAuth:function(){var e=this,t=location.hostname,o=location.hostname;this.$http.post(this.$root.getAjaxUrl+"/activation/parse-domain",{domain:t,subdomain:o}).then(function(t){window.location.replace(e.$root.getStoreUrl+"activation/envato?slug=ameliabooking&domain="+t.data.data.domain+"&subdomain="+t.data.data.subdomain+"&redirectUrl="+e.$root.getSiteUrl+"/wp-admin/admin.php?page=wpamelia-settings#/settings")}).catch(function(){e.notify(e.$root.labels.error,e.$root.labels.activation_envato_failed,"error"),e.loadingActivation=!1})},authenticateEnvatoOAuthCallback:function(){var e=this.getUrlQueryParams(window.location.href);if(e.valid&&e.domainRegistered){var t=this.removeURLParameter(window.location.href,"valid");t=this.removeURLParameter(t,"domainRegistered"),t=this.removeURLParameter(t,"slug"),e.envatoTokenEmail?(t=this.removeURLParameter(t,"envatoTokenEmail"),this.notify(this.$root.labels.success,this.$root.labels.activation_activated,"success")):"false"===e.valid?this.notify(this.$root.labels.error,this.$root.labels.activation_envato_failed,"error"):"false"===e.domainRegistered&&this.notify(this.$root.labels.error,this.$root.labels.activation_settings_domains_limit,"error"),history.pushState(null,null,t+"#/settings")}},clearValidation:function(){void 0!==this.$refs.settings&&this.$refs.settings.clearValidate()}}}},1349:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.activation_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("BlockLite",{attrs:{isActivation:!0}}),e._v(" "),o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[!1===e.settings.active?o("el-alert",{staticClass:"am-activation-alert",attrs:{type:"info","show-icon":"",title:"",description:e.$root.labels.activation_settings_explanation,closable:!1}}):e._e(),e._v(" "),!1===e.settings.active||!0===e.settings.active&&null===e.settings.purchaseCodeStore?o("el-form-item",{staticClass:"am-purchase-code",attrs:{label:!1===e.settings.active?e.$root.labels.purchase_code+":":"",prop:"code"}},[o("el-col",{attrs:{span:!0===e.settings.active?24:18}},[!1===e.settings.active?o("el-input",{attrs:{disabled:!0===e.settings.active,"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.purchaseCodeStore,callback:function(t){e.$set(e.settings,"purchaseCodeStore","string"==typeof t?t.trim():t)},expression:"settings.purchaseCodeStore"}},[!0===e.settings.active&&e.settings.purchaseCodeStore?o("i",{staticClass:"el-icon-circle-check",attrs:{slot:"suffix"},slot:"suffix"}):e._e()]):o("div",{staticClass:"am-purchase-code-hidden"},[o("i",{staticClass:"el-icon-info"}),e._v(" "),o("p",[e._v("\n "+e._s(e.$root.labels.activation_settings_hidden_code)+"\n "),o("a",{attrs:{href:"https://store.tms-plugins.com/login",target:"_blank"}},[e._v("store.tms-plugins.com")])])])],1),e._v(" "),!1===e.settings.active?o("el-col",{attrs:{span:6}},[o("el-button",{staticClass:"am-activate-plugin",attrs:{type:"primary",loading:e.loadingActivation},on:{click:e.activatePlugin}},[e._v("\n "+e._s(e.$root.labels.activate)+"\n ")])],1):e._e()],1):e._e(),e._v(" "),!1===e.settings.active||!0===e.settings.active&&""!==e.settings.envatoTokenEmail?o("el-form-item",{staticClass:"am-envato-activation",attrs:{label:e.$root.labels.envato_api+":"}},[o("el-button",{staticClass:"am-envato-activation-button",attrs:{disabled:!0===e.settings.active},on:{click:e.authenticateEnvatoOAuth}},[o("img",{staticClass:"am-envato-activation-logo",attrs:{src:e.$root.getUrl+"public/img/envato.svg"}}),e._v("\n "+e._s(""!==e.settings.envatoTokenEmail?e.$root.labels.envato_api_activated:e.$root.labels.envato_api_activate)+"\n ")])],1):e._e()],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.delete_amelia_short)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.delete_amelia_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.deleteTables,callback:function(t){e.$set(e.settings,"deleteTables",t)},expression:"settings.deleteTables"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.stash_entities)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.stash_entities_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.stash,callback:function(t){e.$set(e.settings,"stash",t)},expression:"settings.stash"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_polyfill)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.enablePolyfill,callback:function(t){e.$set(e.settings,"enablePolyfill",t)},expression:"settings.enablePolyfill"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n Use Async Loading for new forms\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.v3AsyncLoading,callback:function(t){e.$set(e.settings,"v3AsyncLoading",t)},expression:"settings.v3AsyncLoading"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Custom path enabled:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.customUrl.enabled,callback:function(t){e.$set(e.settings.customUrl,"enabled",t)},expression:"settings.customUrl.enabled"}})],1)],1)],1),e._v(" "),o("div",{staticStyle:{display:"none"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customUrl.pluginPath,callback:function(t){e.$set(e.settings.customUrl,"pluginPath","string"==typeof t?t.trim():t)},expression:"settings.customUrl.pluginPath"}})],1),e._v(" "),o("div",{staticStyle:{display:"none"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customUrl.ajaxPath,callback:function(t){e.$set(e.settings.customUrl,"ajaxPath","string"==typeof t?t.trim():t)},expression:"settings.customUrl.ajaxPath"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Use relative path for new booking forms:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.v3RelativePath,callback:function(t){e.$set(e.settings,"v3RelativePath",t)},expression:"settings.v3RelativePath"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Disable Url Params:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.disableUrlParams,callback:function(t){e.$set(e.settings,"disableUrlParams",t)},expression:"settings.disableUrlParams"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Custom path enabled:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.enableThriveItems,callback:function(t){e.$set(e.settings,"enableThriveItems",t)},expression:"settings.enableThriveItems"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Http 500 as Http 409:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.updateActivationSettings},model:{value:e.settings.responseErrorAsConflict,callback:function(t){e.$set(e.settings,"responseErrorAsConflict",t)},expression:"settings.responseErrorAsConflict"}})],1)],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.close))]),e._v(" "),!0===e.settings.active?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"danger",loading:e.loadingActivation},on:{click:e.deactivatePlugin}},[e._v("\n "+e._s(e.$root.labels.deactivate)+"\n ")]):e._e()],1)],1)],1)])])},staticRenderFns:[]}},1350:function(e,t,o){var i=o(335)(o(1351),o(1352),!1,null,null,null);e.exports=i.exports},1351:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696);t.default={mixins:[i.a],props:["appointments"],data:function(){return{settings:Object.assign({},this.appointments)}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsAppointments")},onSubmit:function(){this.$emit("closeDialogSettingsAppointments")}}}},1352:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.appointments_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("BlockLite"),e._v(" "),o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_booking_if_pending)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_booking_if_pending_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowBookingIfPending,callback:function(t){e.$set(e.settings,"allowBookingIfPending",t)},expression:"settings.allowBookingIfPending"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_booking_if_not_min)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_booking_if_not_min_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowBookingIfNotMin,callback:function(t){e.$set(e.settings,"allowBookingIfNotMin",t)},expression:"settings.allowBookingIfNotMin"}})],1)],1)],1)])],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",disabled:e.$root.isLite},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1353:function(e,t,o){var i=o(335)(o(1354),o(1355),!1,null,null,null);e.exports=i.exports},1354:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(709),n=o.n(i),a=o(812),s=o.n(a),l=o(730),r=o.n(l),c=o(696);t.default={mixins:[c.a],props:["company"],data:function(){return{settings:Object.assign({},this.company),errors:{email:""},rules:{email:[{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}]}}},created:function(){},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{showDialogTranslate:function(){this.$emit("showDialogTranslate",this.settings.name)},changeTranslations:function(e){this.settings.translations=e?JSON.parse(e):[]},closeDialog:function(){this.$emit("closeDialogSettingsCompany")},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t,o){t&&(e.$emit("closeDialogSettingsCompany"),e.$emit("updateSettings",{company:e.settings}))})},pictureSelected:function(e,t){this.settings.pictureFullPath=e,this.settings.pictureThumbPath=t},getAddressData:function(){this.settings.address=document.getElementById("address-autocomplete").value},phoneFormatted:function(e,t){this.settings.phone=e,this.settings.countryPhoneIso=t&&"auto"!==t?t:null},clearValidation:function(){this.$refs.settings.clearValidate()}},components:{VueGoogleAutocomplete:r.a,PhoneInput:n.a,PictureUpload:s.a}}},1355:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.company_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("div",{staticClass:"am-employee-profile"},[o("picture-upload",{attrs:{"edited-entity":this.settings,"entity-name":"company"},on:{pictureSelected:e.pictureSelected}}),e._v(" "),o("h2",[e._v(e._s(e.settings.name))])],1),e._v(" "),o("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate()}}},[o("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(" "),o("el-form-item",{attrs:{label:e.$root.labels.name+":"}},[o("el-input",{attrs:{placeholder:""},model:{value:e.settings.name,callback:function(t){e.$set(e.settings,"name",t)},expression:"settings.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.address+":"}},[o("div",{staticClass:"el-input"},[""!==e.$root.settings.general.gMapApiKey?o("vue-google-autocomplete",{ref:"settings.address",attrs:{id:"address-autocomplete",classname:"el-input__inner",placeholder:"",value:e.settings.address},on:{placechanged:e.getAddressData}}):o("el-input",{attrs:{value:e.settings.address,placeholder:""},model:{value:e.settings.address,callback:function(t){e.$set(e.settings,"address",t)},expression:"settings.address"}})],1)]),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.website+":"}},[o("el-input",{attrs:{placeholder:""},model:{value:e.settings.website,callback:function(t){e.$set(e.settings,"website",t)},expression:"settings.website"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.phone+":"}},[o("phone-input",{attrs:{countryPhoneIso:e.settings.countryPhoneIso,savedPhone:e.settings.phone},on:{phoneFormatted:e.phoneFormatted}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.email+":",prop:"email",error:e.errors.email}},[o("el-input",{ref:"settings.email",attrs:{placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.email,callback:function(t){e.$set(e.settings,"email",t)},expression:"settings.email"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1356:function(e,t,o){var i=o(335)(o(1357),o(1358),!1,null,null,null);e.exports=i.exports},1357:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(714),a=o(697);t.default={mixins:[i.a,n.a,a.a],props:{general:{type:Object},languagesData:{default:function(){},type:Object}},data:function(){var e=this;return{settings:Object.assign({},this.general),rules:{googleRecaptcha:{},redirectURLAfter:[{validator:function(t,o,i){e.clearValidation();var n=e.$refs.settings.model.redirectUrlAfterAppointment;""===n||/^((http|https):\/\/)/.test(n)?i():i(new Error(e.$root.labels.enter_valid_url_warning))},trigger:"submit"}]},errors:{redirectURLAfter:""},options:{timeSlotLength:[{label:this.$root.labels.min1,value:60},{label:this.$root.labels.min2,value:120},{label:this.$root.labels.min5,value:300},{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.min20,value:1200},{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}],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}],itemsPerPage:[3,6,9,12,15,18,21,24,27,30],defaultPageOnBackend:[{label:this.$root.labels.dashboard,value:"Dashboard"},{label:this.$root.labels.calendar,value:"Calendar"},{label:this.$root.labels.appointments,value:"Appointments"},{label:this.$root.labels.events,value:"Events"}]}}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG(),this.handleRecaptchaValidationRules(),this.countries.unshift({id:0,iso:"auto",nicename:this.$root.labels.identify_country_code})},methods:{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"},handleRecaptchaValidationRules:function(){this.clearValidation(),!0===this.settings.googleRecaptcha.enabled?this.rules.googleRecaptcha={siteKey:[{required:!0,message:this.$root.labels.recaptcha_site_key_error,trigger:"submit"}],secret:[{required:!0,message:this.$root.labels.recaptcha_secret_error,trigger:"submit"}]}:this.rules.googleRecaptcha={siteKey:{},secret:{}}},closeDialog:function(){this.$emit("closeDialogSettingsGeneral")},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){if(!t)return!1;e.$emit("closeDialogSettingsGeneral"),e.$emit("updateSettings",{general:e.settings})})},clearValidation:function(){this.$refs.settings.clearValidate()},changeNumberOfDaysAvailableForBooking:function(e){this.settings.numberOfDaysAvailableForBooking=void 0===e?365:e}}}},1358:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.general_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_time_slot_step)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.default_time_slot_step_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{model:{value:e.settings.timeSlotLength,callback:function(t){e.$set(e.settings,"timeSlotLength",t)},expression:"settings.timeSlotLength"}},e._l(e.options.timeSlotLength,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.default_appointment_status)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.default_appointment_status_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{model:{value:e.settings.defaultAppointmentStatus,callback:function(t){e.$set(e.settings,"defaultAppointmentStatus",t)},expression:"settings.defaultAppointmentStatus"}},e._l(e.options.defaultAppointmentStatus,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.service_duration_as_slot)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.service_duration_as_slot_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.serviceDurationAsSlot,callback:function(t){e.$set(e.settings,"serviceDurationAsSlot",t)},expression:"settings.serviceDurationAsSlot"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"bufferTimeInSlot",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:bufferTimeInSlot",arg:"bufferTimeInSlot"}],staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.buffer_time_in_slot)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.buffer_time_in_slot_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.bufferTimeInSlot,callback:function(t){e.$set(e.settings,"bufferTimeInSlot",t)},expression:"settings.bufferTimeInSlot"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"minimumTimeBeforeBookingPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:minimumTimeBeforeBookingPop",arg:"minimumTimeBeforeBookingPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_booking)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_booking_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.minimumTimeRequirementPriorToBooking,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToBooking",t)},expression:"settings.minimumTimeRequirementPriorToBooking"}},e._l(e.options.minimumTime,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-popover",e._b({ref:"minimumTimeBeforeCancelingPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:minimumTimeBeforeCancelingPop",arg:"minimumTimeBeforeCancelingPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_canceling)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_canceling_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.minimumTimeRequirementPriorToCanceling,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToCanceling",t)},expression:"settings.minimumTimeRequirementPriorToCanceling"}},e._l(e.options.minimumTime,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-popover",e._b({ref:"minimumTimeBeforeReschedulingPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:minimumTimeBeforeReschedulingPop",arg:"minimumTimeBeforeReschedulingPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.minimum_time_before_rescheduling)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.minimum_time_before_rescheduling_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.minimumTimeRequirementPriorToRescheduling,callback:function(t){e.$set(e.settings,"minimumTimeRequirementPriorToRescheduling",t)},expression:"settings.minimumTimeRequirementPriorToRescheduling"}},e._l(e.options.minimumTime,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period_available_for_booking)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_available_for_booking_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input-number",{attrs:{value:e.settings.numberOfDaysAvailableForBooking,min:1},on:{change:e.changeNumberOfDaysAvailableForBooking}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.default_phone_country_code+":"}},[o("el-select",{class:"am-selected-flag am-selected-flag-"+e.settings.phoneDefaultCountryCode,attrs:{placeholder:""},model:{value:e.settings.phoneDefaultCountryCode,callback:function(t){e.$set(e.settings,"phoneDefaultCountryCode",t)},expression:"settings.phoneDefaultCountryCode"}},e._l(e.countries,function(t){return o("el-option",{key:t.id,attrs:{value:t.iso,label:t.nicename}},[o("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),o("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nicename))]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.phonecode?"+":"")+e._s(t.phonecode))])])}),1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.required_phone_number_field)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.requiredPhoneNumberField,callback:function(t){e.$set(e.settings,"requiredPhoneNumberField",t)},expression:"settings.requiredPhoneNumberField"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"languagesPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:languagesPop",arg:"languagesPop"}]},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.manage_languages)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.manage_languages_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{staticClass:"select-languages",attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:"",multiple:"",disabled:e.$root.isLite,"collapse-tags":""},model:{value:e.settings.usedLanguages,callback:function(t){e.$set(e.settings,"usedLanguages",t)},expression:"settings.usedLanguages"}},e._l(Object.keys(e.languagesData),function(t,i){return o("el-option",{key:i,attrs:{label:e.getLanguageLabel(t),value:t}},[o("span",[o("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t))+"\n ")])])}),1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.required_email_field)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.requiredEmailField,callback:function(t){e.$set(e.settings,"requiredEmailField",t)},expression:"settings.requiredEmailField"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.show_client_time_zone)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.show_client_time_zone_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.showClientTimeZone,callback:function(t){e.$set(e.settings,"showClientTimeZone",t)},expression:"settings.showClientTimeZone"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.add_to_calendar)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.add_to_calendar_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.addToCalendar,callback:function(t){e.$set(e.settings,"addToCalendar",t)},expression:"settings.addToCalendar"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.default_items_per_page+":"}},[o("el-select",{model:{value:e.settings.itemsPerPage,callback:function(t){e.$set(e.settings,"itemsPerPage",t)},expression:"settings.itemsPerPage"}},e._l(e.options.itemsPerPage,function(e){return o("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.default_page_on_backend+":"}},[o("el-select",{model:{value:e.settings.defaultPageOnBackend,callback:function(t){e.$set(e.settings,"defaultPageOnBackend",t)},expression:"settings.defaultPageOnBackend"}},e._l(e.options.defaultPageOnBackend,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-popover",e._b({ref:"gMapApiKeyPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:gMapApiKeyPop",arg:"gMapApiKeyPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.gMap_api_key)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.gMap_api_key_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off",disabled:e.$root.isLite},model:{value:e.settings.gMapApiKey,callback:function(t){e.$set(e.settings,"gMapApiKey","string"==typeof t?t.trim():t)},expression:"settings.gMapApiKey"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder",prop:"redirectURLAfter",error:e.errors.redirectURLAfter}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.redirect_url_after_appointment)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.redirect_url_after_appointment_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.redirectUrlAfterAppointment,callback:function(t){e.$set(e.settings,"redirectUrlAfterAppointment",t)},expression:"settings.redirectUrlAfterAppointment"}})],1),e._v(" "),o("el-popover",e._b({ref:"uploadPathPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:uploadPathPop",arg:"uploadPathPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.custom_fields_upload_path)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.custom_fields_upload_path_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off",disabled:e.$root.isLite},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.customFieldsUploadsPath,callback:function(t){e.$set(e.settings,"customFieldsUploadsPath",t)},expression:"settings.customFieldsUploadsPath"}})],1),e._v(" "),o("el-popover",e._b({ref:"recaptchaPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:recaptchaPop",arg:"recaptchaPop"}],staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_enabled)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_enabled_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:e.handleRecaptchaValidationRules},model:{value:e.settings.googleRecaptcha.enabled,callback:function(t){e.$set(e.settings.googleRecaptcha,"enabled",t)},expression:"settings.googleRecaptcha.enabled"}})],1)],1)],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.recaptcha_invisible)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_invisible_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.googleRecaptcha.invisible,callback:function(t){e.$set(e.settings.googleRecaptcha,"invisible",t)},expression:"settings.googleRecaptcha.invisible"}})],1)],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],attrs:{prop:"googleRecaptcha.siteKey"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.recaptcha_site_key)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_site_key_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.googleRecaptcha.siteKey,callback:function(t){e.$set(e.settings.googleRecaptcha,"siteKey","string"==typeof t?t.trim():t)},expression:"settings.googleRecaptcha.siteKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.googleRecaptcha.enabled,expression:"settings.googleRecaptcha.enabled"}],attrs:{prop:"googleRecaptcha.secret"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.recaptcha_secret)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.recaptcha_secret_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.googleRecaptcha.secret,callback:function(t){e.$set(e.settings.googleRecaptcha,"secret","string"==typeof t?t.trim():t)},expression:"settings.googleRecaptcha.secret"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",staticStyle:{display:"none"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n Run post booking actions immediately\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.runInstantPostBookingActions,callback:function(t){e.$set(e.settings,"runInstantPostBookingActions",t)},expression:"settings.runInstantPostBookingActions"}})],1)],1)],1),e._v(" "),o("el-form-item",{staticStyle:{display:"none"},attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n Preselected employees count on calendar page on load:\n ")]),e._v(" "),o("el-input-number",{attrs:{min:-1},model:{value:e.settings.calendarEmployeesPreselected,callback:function(t){e.$set(e.settings,"calendarEmployeesPreselected",t)},expression:"settings.calendarEmployeesPreselected"}})],1),e._v(" "),e.$root.isLite?o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.back_links)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.back_links_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.backLink.enabled,callback:function(t){e.$set(e.settings.backLink,"enabled",t)},expression:"settings.backLink.enabled"}})],1)],1)],1):e._e()],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1359:function(e,t,o){var i=o(335)(o(1360),o(1385),!1,null,null,null);e.exports=i.exports},1360:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1361),n=o.n(i),a=o(696),s=o(1364),l=o.n(s),r=o(1367),c=o.n(r),u=o(1370),p=o.n(u),d=o(1373),m=o.n(d),f=o(1382),h=o.n(f);t.default={components:{GoogleCalendar:n.a,OutlookCalendar:l.a,Zoom:p.a,WebHooks:c.a,Marketing:m.a,LessonSpace:h.a},props:{googleCalendar:{type:Object},outlookCalendar:{type:Object},zoom:{type:Object},webHooks:{type:Array},facebookPixel:{type:Object},googleTag:{type:Object},lessonSpace:{type:Object}},mixins:[a.a],data:function(){return{googleCalendarSettings:Object.assign({},this.googleCalendar),outlookCalendarSettings:Object.assign({},this.outlookCalendar),zoomSettings:Object.assign({},this.zoom),lessonSpaceSettings:Object.assign({},this.lessonSpace),facebookPixelSettings:Object.assign({},this.facebookPixel),googleTagSettings:Object.assign({},this.googleTag),webHooksSettings:this.webHooks.map(function(e){return e}),activeTab:"googleCalendar"}},methods:{openDialog:function(e){this.$emit("openDialog",e)},closeDialog:function(){this.$emit("closeDialogSettingsIntegrations")},onSubmit:function(){this.$emit("closeDialogSettingsIntegrations")}}}},1361:function(e,t,o){var i=o(335)(o(1362),o(1363),!1,null,null,null);e.exports=i.exports},1362:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(803),a=o.n(n);t.default={mixins:[i.a],props:{googleCalendar:{type:Object}},data:function(){return{options:{maximumNumberOfEventsReturned:[50,100,200,500,1e3,2e3,2500]},readonly:!0,settings:this.googleCalendar,activeTab:"appointments"}},methods:{onChangeAddAttendees:function(){!1===this.settings.addAttendees&&(this.settings.sendEventInvitationEmail=!1)},openDialog:function(e){this.$emit("openDialog",e)},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-google-calendar/","_blank")}},components:{InlinePlaceholders:a.a}}},1363:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,"label-position":"top"}},[o("el-form-item",{attrs:{label:e.$root.labels.google_client_id+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientID,callback:function(t){e.$set(e.settings,"clientID","string"==typeof t?t.trim():t)},expression:"settings.clientID"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.google_client_secret+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.google_redirect_uri)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_redirect_uri_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.redirectURI,callback:function(t){e.$set(e.settings,"redirectURI",t)},expression:"settings.redirectURI"}})],1),e._v(" "),o("el-collapse",[o("el-collapse-item",{staticClass:"am-setting-box"},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.event_title_and_description)+":")])]),e._v(" "),[o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.appointment,callback:function(t){e.$set(e.settings.title,"appointment",t)},expression:"settings.title.appointment"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.appointment,callback:function(t){e.$set(e.settings.description,"appointment",t)},expression:"settings.description.appointment"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1),e._v(" "),o("el-row",{staticClass:"am-customize-notifications-combined"},[o("el-col",{attrs:{span:16}},[o("div",{staticClass:"am-customize-notifications-combined-tooltip"},[o("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_details))]),e._v("\n %group_appointment_details%\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:8}},[o("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupAppointmentPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.event,callback:function(t){e.$set(e.settings.title,"event",t)},expression:"settings.title.event"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.event,callback:function(t){e.$set(e.settings.description,"event",t)},expression:"settings.description.event"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","companyPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{eventPlaceholders:["%zoom_host_url%","%event_cancel_url%","%reservation_name%","%reservation_description%","%event_deposit_payment%","%event_tickets%","%attendee_code%","%coupon_used%"],employeePlaceholders:["%employee_panel_url%"]},userTypeTab:"provider"}})],1),e._v(" "),o("el-row",{staticClass:"am-customize-notifications-combined"},[o("el-col",{attrs:{span:16}},[o("div",{staticClass:"am-customize-notifications-combined-tooltip"},[o("strong",[e._v(e._s(e.$root.labels.ph_group_event_details))]),e._v("\n %group_event_details%\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:8}},[o("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupEventPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1)],1)]],2)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_google_meet)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_google_meet_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enableGoogleMeet,callback:function(t){e.$set(e.settings,"enableGoogleMeet",t)},expression:"settings.enableGoogleMeet"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.insert_pending_appointments)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.insert_pending_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.insertPendingAppointments,callback:function(t){e.$set(e.settings,"insertPendingAppointments",t)},expression:"settings.insertPendingAppointments"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.customers_as_attendees)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_as_attendees_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.onChangeAddAttendees()}},model:{value:e.settings.addAttendees,callback:function(t){e.$set(e.settings,"addAttendees",t)},expression:"settings.addAttendees"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.show_attendees)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.show_attendees_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.showAttendees,callback:function(t){e.$set(e.settings,"showAttendees",t)},expression:"settings.showAttendees"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.send_event_invitation_email)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_event_invitation_email_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{disabled:!e.settings.addAttendees,"active-text":"","inactive-text":""},model:{value:e.settings.sendEventInvitationEmail,callback:function(t){e.$set(e.settings,"sendEventInvitationEmail",t)},expression:"settings.sendEventInvitationEmail"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.remove_google_busy_slots)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.remove_google_busy_slots_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.removeGoogleCalendarBusySlots,callback:function(t){e.$set(e.settings,"removeGoogleCalendarBusySlots",t)},expression:"settings.removeGoogleCalendarBusySlots"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.include_buffer_time_google)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.include_buffer_time_google_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.includeBufferTimeGoogleCalendar,callback:function(t){e.$set(e.settings,"includeBufferTimeGoogleCalendar",t)},expression:"settings.includeBufferTimeGoogleCalendar"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events_returned)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.number_of_events_returned_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{disabled:!e.settings.removeGoogleCalendarBusySlots},model:{value:e.settings.maximumNumberOfEventsReturned,callback:function(t){e.$set(e.settings,"maximumNumberOfEventsReturned",t)},expression:"settings.maximumNumberOfEventsReturned"}},e._l(e.options.maximumNumberOfEventsReturned,function(e){return o("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1)],1)},staticRenderFns:[]}},1364:function(e,t,o){var i=o(335)(o(1365),o(1366),!1,null,null,null);e.exports=i.exports},1365:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(803),a=o.n(n);t.default={props:{outlookCalendar:{type:Object}},mixins:[i.a],data:function(){return{options:{maximumNumberOfEventsReturned:[50,100,200,500,999]},settings:this.outlookCalendar,activeTab:"appointments"}},computed:{showSSLAlert:function(){return"https:"!==location.protocol}},methods:{onChangeAddAttendees:function(){!1===this.settings.addAttendees&&(this.settings.sendEventInvitationEmail=!1)},openDialog:function(e){this.$emit("openDialog",e)},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-outlook-calendar/","_blank")}},components:{InlinePlaceholders:a.a}}},1366:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[e.showSSLAlert?o("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.outlook_ssl_warning,closable:!1}}):e._e(),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.outlook_client_id+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientID,callback:function(t){e.$set(e.settings,"clientID","string"==typeof t?t.trim():t)},expression:"settings.clientID"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.outlook_client_secret+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{effect:"dark",placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.outlook_redirect_uri)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_redirect_uri_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.redirectURI,callback:function(t){e.$set(e.settings,"redirectURI",t)},expression:"settings.redirectURI"}})],1),e._v(" "),o("el-collapse",[o("el-collapse-item",{staticClass:"am-setting-box"},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.event_title_and_description)+":")])]),e._v(" "),[o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.appointment,callback:function(t){e.$set(e.settings.title,"appointment",t)},expression:"settings.title.appointment"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.appointment,callback:function(t){e.$set(e.settings.description,"appointment",t)},expression:"settings.description.appointment"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1),e._v(" "),o("el-row",{staticClass:"am-customize-notifications-combined"},[o("el-col",{attrs:{span:16}},[o("div",{staticClass:"am-customize-notifications-combined-tooltip"},[o("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_details))]),e._v("\n %group_appointment_details%\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:8}},[o("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupAppointmentPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_title)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_title_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.title.event,callback:function(t){e.$set(e.settings.title,"event",t)},expression:"settings.title.event"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_description)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_description_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.description.event,callback:function(t){e.$set(e.settings.description,"event",t)},expression:"settings.description.event"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","companyPlaceholders","customerPlaceholders","employeePlaceholders","locationPlaceholders"],excludedPlaceholders:{eventPlaceholders:["%zoom_host_url%","%event_cancel_url%","%reservation_name%","%reservation_description%","%event_deposit_payment%","%event_tickets%"],employeePlaceholders:["%employee_panel_url%"]},userTypeTab:"provider"}})],1),e._v(" "),o("el-row",{staticClass:"am-customize-notifications-combined"},[o("el-col",{attrs:{span:16}},[o("div",{staticClass:"am-customize-notifications-combined-tooltip"},[o("strong",[e._v(e._s(e.$root.labels.ph_group_event_details))]),e._v("\n %group_event_details%\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.ph_group_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:8}},[o("p",{staticClass:"am-blue-link",on:{click:function(t){return e.openDialog("groupEventPlaceholder")}}},[e._v("\n "+e._s(e.$root.labels.configure)+"\n ")])])],1)],1)],1)]],2)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.insert_pending_appointments)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.insert_pending_appointments_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.insertPendingAppointments,callback:function(t){e.$set(e.settings,"insertPendingAppointments",t)},expression:"settings.insertPendingAppointments"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.customers_as_attendees)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customers_as_attendees_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.onChangeAddAttendees()}},model:{value:e.settings.addAttendees,callback:function(t){e.$set(e.settings,"addAttendees",t)},expression:"settings.addAttendees"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.remove_outlook_busy_slots)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.remove_outlook_busy_slots_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.removeOutlookCalendarBusySlots,callback:function(t){e.$set(e.settings,"removeOutlookCalendarBusySlots",t)},expression:"settings.removeOutlookCalendarBusySlots"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.include_buffer_time_outlook)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.include_buffer_time_outlook_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.includeBufferTimeOutlookCalendar,callback:function(t){e.$set(e.settings,"includeBufferTimeOutlookCalendar",t)},expression:"settings.includeBufferTimeOutlookCalendar"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events_returned)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.number_of_events_returned_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{disabled:!e.settings.removeOutlookCalendarBusySlots},model:{value:e.settings.maximumNumberOfEventsReturned,callback:function(t){e.$set(e.settings,"maximumNumberOfEventsReturned",t)},expression:"settings.maximumNumberOfEventsReturned"}},e._l(e.options.maximumNumberOfEventsReturned,function(e){return o("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1)],1)},staticRenderFns:[]}},1367:function(e,t,o){var i=o(335)(o(1368),o(1369),!1,null,null,null);e.exports=i.exports},1368:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(697);t.default={mixins:[i.a,n.a],props:["webHooks"],data:function(){return{settings:this.webHooks,webHookToDelete:null,webHookEditDialog:null,webHookToEdit:null,editedWebHook:null,editedWebHookOld:null,isNewWebHook:!1,actions:[{value:"bookingAdded",label:this.$root.labels.web_hook_booking_completed},{value:"bookingTimeUpdated",label:this.$root.labels.web_hook_booking_rescheduled},{value:"bookingCanceled",label:this.$root.labels.web_hook_booking_canceled},{value:"bookingStatusUpdated",label:this.$root.labels.web_hook_booking_status_updated}],packageActions:[{value:"packagePurchased",label:this.$root.labels.web_hook_package_purchased},{value:"packageCanceled",label:this.$root.labels.web_hook_package_canceled}],types:[{value:"appointment",label:this.$root.labels.appointment},{value:"event",label:this.$root.labels.event}],rules:{name:[{required:!0,message:this.$root.labels.web_hook_name_warning,trigger:"submit"}],url:[{required:!0,message:this.$root.labels.enter_valid_url_warning,trigger:"submit"}],action:[{required:!0,message:this.$root.labels.web_hook_action_warning,trigger:"submit"}],type:[{required:!0,message:this.$root.labels.web_hook_booking_type_warning,trigger:"submit"}]}}},beforeMount:function(){(this.$root.licence.isPro||this.$root.licence.isDeveloper)&&this.types.push({value:"package",label:this.$root.labels.package})},methods:{deleteSpecialDay:function(){},webHookTypeChanged:function(){},addWebHook:function(){},showEditWebHookDialog:function(){},showDeleteWebHookDialog:function(){},hideDeleteWebHookDialog:function(){},deleteWebHook:function(){},cancelWebHook:function(){},saveWebHook:function(){},closeDialog:function(){this.$emit("closeDialogSettingsWebHooks")},onSubmit:function(){}}}},1369:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{class:{"am-lite-container-disabled":e.$root.isLite},attrs:{"label-position":"top"}},[o("div",{staticClass:"am-extra-list"},[o("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addWebHook}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_web_hook))])]),e._v(" "),o("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,i){return o("div",{key:i+1,staticClass:"am-extra-item",attrs:{id:"webHook"+i}},[o("el-row",{attrs:{type:"flex",align:"top"}},[o("el-col",{attrs:{span:24}},[o("el-row",{attrs:{type:"flex",align:"middle"}},[o("el-col",{attrs:{span:18}},[o("h3",[e._v(e._s(t.name))])]),e._v(" "),null===e.editedWebHook||i!==e.settings.indexOf(e.editedWebHook)?o("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[o("span",{on:{click:function(o){return e.showEditWebHookDialog(t)}}},[o("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),o("span",{on:{click:function(o){return e.showDeleteWebHookDialog(t)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedWebHook&&i===e.settings.indexOf(e.editedWebHook)||null!==e.webHookToDelete&&i===e.settings.indexOf(e.webHookToDelete)),expression:"(editedWebHook === null || index !== settings.indexOf(editedWebHook)) && (webHookToDelete === null || index !== settings.indexOf(webHookToDelete))"}],staticClass:"am-extra-item-data"},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{sm:12}},[o("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.web_hook_action)+": "+e._s(t&&t.action?("package"===t.type?e.packageActions:e.actions).find(function(e){return t.action===e.value}).label:""))])]),e._v(" "),o("el-col",{attrs:{sm:12}},[o("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.web_hook_booking_type)+": "+e._s(t&&t.type?e.types.find(function(e){return t.type===e.value}).label:""))])])],1),e._v(" "),o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{sm:24}},[o("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels.url)+": "+e._s(t.url))])])],1)],1)],1)],1),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.webHookToDelete&&i===e.settings.indexOf(e.webHookToDelete),expression:"webHookToDelete !== null && index === settings.indexOf(webHookToDelete)"}],staticClass:"am-confirmation"},[o("p",[e._v(e._s(e.$root.labels.web_hook_delete_confirmation)+"?")]),e._v(" "),o("div",{staticClass:"align-right"},[o("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteWebHookDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){return e.deleteWebHook(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.webHookEditDialog&&i===e.settings.indexOf(e.editedWebHook),expression:"webHookEditDialog === true && index === settings.indexOf(editedWebHook)"}]},[o("el-form",{ref:"webHook",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[o("el-form-item",{attrs:{label:e.$root.labels.name+":",prop:"name"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"name")}},model:{value:t.name,callback:function(o){e.$set(t,"name",o)},expression:"webHook.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"URL:",prop:"url"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:t.url,callback:function(o){e.$set(t,"url","string"==typeof o?o.trim():o)},expression:"webHook.url"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.web_hook_booking_type+":",prop:"type"}},[o("el-select",{attrs:{clearable:"",placeholder:""},on:{change:function(t){return e.webHookTypeChanged()}},model:{value:t.type,callback:function(o){e.$set(t,"type",o)},expression:"webHook.type"}},e._l(e.types,function(e,t){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.web_hook_action+":",prop:"action"}},[o("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.action,callback:function(o){e.$set(t,"action",o)},expression:"webHook.action"}},e._l("package"===t.type?e.packageActions:e.actions,function(e,t){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),"packagePurchased"===t.action?o("el-alert",{attrs:{title:"",type:"warning",description:e.$root.labels.web_hook_package_tooltip,"show-icon":"",closable:!1}}):e._e(),e._v(" "),o("div",{staticClass:"align-right"},[o("el-button",{attrs:{size:"small"},on:{click:function(o){return e.cancelWebHook(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveWebHook(i)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},1370:function(e,t,o){var i=o(335)(o(1371),o(1372),!1,null,null,null);e.exports=i.exports},1371:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(803),a=o.n(n);t.default={mixins:[i.a],props:{zoom:{type:Object}},data:function(){return{settings:this.zoom}},methods:{redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-zoom/","_blank")}},components:{InlinePlaceholders:a.a}}},1372:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,"label-position":"top"}},[o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.zoom_s2s)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.s2sEnabled,callback:function(t){e.$set(e.settings,"s2sEnabled",t)},expression:"settings.s2sEnabled"}})],1)],1)],1),e._v(" "),e.settings.s2sEnabled?o("el-form-item",{attrs:{label:e.$root.labels.zoom_account_id+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.accountId,callback:function(t){e.$set(e.settings,"accountId","string"==typeof t?t.trim():t)},expression:"settings.accountId"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1):e._e(),e._v(" "),e.settings.s2sEnabled?o("el-form-item",{attrs:{label:e.$root.labels.zoom_client_id+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientId,callback:function(t){e.$set(e.settings,"clientId","string"==typeof t?t.trim():t)},expression:"settings.clientId"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1):e._e(),e._v(" "),e.settings.s2sEnabled?o("el-form-item",{attrs:{label:e.$root.labels.zoom_client_secret+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.clientSecret,callback:function(t){e.$set(e.settings,"clientSecret","string"==typeof t?t.trim():t)},expression:"settings.clientSecret"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_tooltip)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1):e._e(),e._v(" "),e.settings.s2sEnabled?e._e():o("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.zoom_jwt_warning,closable:!1}}),e._v(" "),e.settings.s2sEnabled?e._e():o("el-form-item",{attrs:{label:e.$root.labels.zoom_api_key+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.apiKey,callback:function(t){e.$set(e.settings,"apiKey","string"==typeof t?t.trim():t)},expression:"settings.apiKey"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),e.settings.s2sEnabled?e._e():o("el-form-item",{attrs:{label:e.$root.labels.zoom_api_secret+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:21}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.apiSecret,callback:function(t){e.$set(e.settings,"apiSecret","string"==typeof t?t.trim():t)},expression:"settings.apiSecret"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("el-tooltip",{staticClass:"am-google-calendar-tooltip",attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_credentials_obtain)},slot:"content"}),e._v(" "),o("el-button",{staticClass:"am-google-calendar-button am-button-icon",attrs:{type:"primary"},on:{click:function(t){return e.redirectToDocumentation()}}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/question.svg"}})])],1)],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.meeting_title)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.meeting_title_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.meetingTitle,callback:function(t){e.$set(e.settings,"meetingTitle",t)},expression:"settings.meetingTitle"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.meeting_agenda)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.meeting_agenda_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{type:"textarea","auto-complete":"off"},model:{value:e.settings.meetingAgenda,callback:function(t){e.$set(e.settings,"meetingAgenda",t)},expression:"settings.meetingAgenda"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","eventPlaceholders","categoryPlaceholders","locationPlaceholders","employeePlaceholders","customerPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.pending_appointments_meetings)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.pending_appointments_meetings_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.pendingAppointmentsMeetings,callback:function(t){e.$set(e.settings,"pendingAppointmentsMeetings",t)},expression:"settings.pendingAppointmentsMeetings"}})],1)],1)],1)],1)},staticRenderFns:[]}},1373:function(e,t,o){var i=o(335)(o(1374),o(1381),!1,null,null,null);e.exports=i.exports},1374:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(1375),a=o.n(n),s=o(1378),l=o.n(s);t.default={mixins:[i.a],props:{facebookPixel:{type:Object},googleTag:{type:Object}},data:function(){return{appointmentActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectCategory",label:this.$root.labels.tracking_SelectCategory},{value:"SelectService",label:this.$root.labels.tracking_SelectService},{value:"SelectEmployee",label:this.$root.labels.tracking_SelectEmployee},{value:"SelectLocation",label:this.$root.labels.tracking_SelectLocation},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],packageActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectPackage",label:this.$root.labels.tracking_SelectPackage},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],eventActions:[{value:"ViewContent",label:this.$root.labels.tracking_ViewContent},{value:"SelectEvent",label:this.$root.labels.tracking_SelectEvent},{value:"InitiateCheckout",label:this.$root.labels.tracking_InitiateCheckout},{value:"Schedule",label:this.$root.labels.tracking_Schedule},{value:"Purchase",label:this.$root.labels.tracking_Purchase}],marketingPlaceholders:{appointments:{placeholders:[{value:"%category_id%",label:"ID",custom:!0},{value:"%category_name%",label:this.$root.labels.ph_category_name},{value:"%service_id%",label:"ID",custom:!0},{value:"%service_name%",label:this.$root.labels.ph_service_name},{value:"%employee_id%",label:"ID",custom:!0},{value:"%employee_fullName%",label:this.$root.labels.ph_employee_full_name,custom:!0},{value:"%location_id%",label:"ID",custom:!0},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency}]},events:{placeholders:[{value:"%event_id%",label:"ID",custom:!0},{value:"%event_name%",label:this.$root.labels.ph_event_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency}]},packages:{placeholders:[{value:"%package_id%",label:"ID",custom:!0},{value:"%package_name%",label:this.$root.labels.ph_package_name},{value:"%payment_amount%",label:this.$root.labels.ph_payment_price},{value:"%payment_currency%",label:this.$root.labels.currency}]}},activeFacebookPixelTab:"appointments",activeGoogleTagTab:"appointments",facebookPixelSettings:this.facebookPixel,googleTagSettings:this.googleTag}},mounted:function(){},methods:{selectItem:function(e,t,o){this.facebookPixelSettings[t][o].forEach(function(t,o){t.enabled=-1!==e.indexOf(o)})},redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-facebook-pixel/","_blank")}},components:{TrackingGoogleTag:a.a,TrackingFacebookPixel:l.a}}},1375:function(e,t,o){var i=o(335)(o(1376),o(1377),!1,null,null,null);e.exports=i.exports},1376:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(700),n=o(696),a=o(697),s=o(803),l=o.n(s);t.default={mixins:[n.a,a.a,i.a],props:["events","actions","type","marketingPlaceholders"],data:function(){return{settings:this.events,eventToDelete:null,eventEditDialog:null,eventToEdit:null,editedEvent:null,editedEventOld:null,isNewEvent:!1,rules:{category:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],action:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],label:[{required:!1,message:"",trigger:"submit"}],value:[{required:!1,message:"",trigger:"submit"}],type:[{required:!0,message:this.$root.labels.marketing_type_warning,trigger:"submit"}]}}},methods:{isAvailablePlaceholder:function(e,t){return("Schedule"===e||"Purchase"===e||"%payment_amount%"!==t&&"%payment_currency%"!==t)&&("SelectCategory"!==e||"%category_name%"===t||"%category_id%"===t)},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")},getInlinePlaceholdersNames:function(e){var t=[];switch(e){case"packages":return t.concat(["packagePlaceholders"]);case"events":return t.concat(["eventPlaceholders","employeePlaceholders","locationPlaceholders"]);case"appointments":return t.concat(["employeePlaceholders","categoryPlaceholders","locationPlaceholders"])}return t},addEvent:function(){null===this.editedEvent&&(this.eventEditDialog=!0,this.editedEvent={event:"",category:"",action:"",label:"",value:"",type:""},this.isNewEvent=!0,this.settings.push(this.editedEvent)),this.scrollViewInModal("trackingEventG"+this.type+"-"+(this.settings.length-1))},showEditEventDialog:function(e){this.editedEvent=e,this.editedEventOld=JSON.parse(JSON.stringify(e)),this.eventToDelete=null,this.eventEditDialog=!0},showDeleteEventDialog:function(e){this.eventToDelete=e,this.editedEvent=null,this.eventEditDialog=!1},hideDeleteEventDialog:function(){this.eventToDelete=null,this.eventEditDialog=!0},deleteEvent:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelEvent:function(e){if(null!==this.editedEventOld&&(e.event=this.editedEventOld.event,e.category=this.editedEventOld.category,e.action=this.editedEventOld.action,e.label=this.editedEventOld.label,e.value=this.editedEventOld.value,e.type=this.editedEventOld.type),this.isNewEvent){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewEvent=!1}this.editedEvent=null,this.editedEventOld=null,this.eventEditDialog=!1},saveEvent:function(e){var t=this;this.$refs.trackingEvent[e].validate(function(o){if(!o)return!1;t.editedEvent=null,t.eventEditDialog=!1,t.isNewEvent=!1,t.$refs.trackingEvent[e].clearValidate()})}},components:{InlinePlaceholders:l.a}}},1377:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[o("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addEvent}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.marketing_add_tracking))])]),e._v(" "),o("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,i){return o("div",{key:i+1,staticClass:"am-extra-item",attrs:{id:"trackingEventG"+e.type+"-"+i}},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[o("el-col",{attrs:{span:24}},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[o("el-col",{attrs:{span:18}},[o("h3",[e._v(e._s(t.action))])]),e._v(" "),null===e.editedEvent||i!==e.settings.indexOf(e.editedEvent)?o("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[o("span",{on:{click:function(o){return e.showEditEventDialog(t)}}},[o("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),o("span",{on:{click:function(o){return e.showDeleteEventDialog(t)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedEvent&&i===e.settings.indexOf(e.editedEvent)||null!==e.eventToDelete&&i===e.settings.indexOf(e.eventToDelete)),expression:"(editedEvent === null || index !== settings.indexOf(editedEvent)) && (eventToDelete === null || index !== settings.indexOf(eventToDelete))"}],staticClass:"am-extra-item-data"},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:24}},[o("el-col",{attrs:{sm:24}},[o("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels["tracking_"+t.type]))])])],1)],1)],1)],1),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.eventToDelete&&i===e.settings.indexOf(e.eventToDelete),expression:"eventToDelete !== null && index === settings.indexOf(eventToDelete)"}],staticClass:"am-confirmation"},[o("p",[e._v(e._s(e.$root.labels.marketing_delete_confirmation)+"?")]),e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteEventDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){return e.deleteEvent(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.eventEditDialog&&i===e.settings.indexOf(e.editedEvent),expression:"eventEditDialog === true && index === settings.indexOf(editedEvent)"}]},[o("el-form",{ref:"trackingEvent",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[o("el-form-item",{attrs:{prop:"type"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.type)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_type_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.type,callback:function(o){e.$set(t,"type",o)},expression:"trackingEvent.type"}},e._l(e.actions,function(e,t){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.google_analytics_category+":",prop:"category"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"category")}},model:{value:t.category,callback:function(o){e.$set(t,"category",o)},expression:"trackingEvent.category"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.google_analytics_action+":",prop:"action"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"action")}},model:{value:t.action,callback:function(o){e.$set(t,"action",o)},expression:"trackingEvent.action"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.google_analytics_label+":",prop:"label"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"label")}},model:{value:t.label,callback:function(o){e.$set(t,"label",o)},expression:"trackingEvent.label"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.google_analytics_value+":",prop:"value"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"value")}},model:{value:t.value,callback:function(o){e.$set(t,"value",o)},expression:"trackingEvent.value"}})],1),e._v(" "),o("el-form-item",[o("div",["ViewContent"!==t.type?o("el-row",{staticClass:"am-notifications-placeholders"},[o("el-col",{attrs:{sm:24}},[o("div",{staticClass:"am-placeholder-wrapper"},e._l(e.marketingPlaceholders[e.type],function(i,n){return o("el-dropdown",{key:n,staticClass:"am-placeholder-wrapper__dropdown"},[o("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[n])),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{class:{"amelia-dropdown":i.length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(i,function(i,n){return t.type&&e.isAvailablePlaceholder(t.type,i.value)?o("el-dropdown-item",{key:n},[o("el-tooltip",{key:i.code,attrs:{effect:"dark",content:i.label,placement:"left"}},[o("p",{on:{click:function(t){return e.copyCodeText(i.value)}}},[e._v("\n "+e._s(i.value)+"\n ")])])],1):e._e()}),1)],1)}),1)])],1):e._e()],1)]),e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(o){return e.cancelEvent(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveEvent(i)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},1378:function(e,t,o){var i=o(335)(o(1379),o(1380),!1,null,null,null);e.exports=i.exports},1379:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(700),n=o(696),a=o(697),s=o(803),l=o.n(s);t.default={mixins:[n.a,a.a,i.a],props:["events","actions","type","marketingPlaceholders"],data:function(){return{settings:this.events,eventToDelete:null,eventEditDialog:null,eventToEdit:null,editedEvent:null,editedEventOld:null,isNewEvent:!1,rules:{event:[{required:!0,message:this.$root.labels.marketing_field_warning,trigger:"submit"}],type:[{required:!0,message:this.$root.labels.marketing_type_warning,trigger:"submit"}]}}},methods:{isAvailablePlaceholder:function(e,t){return("Schedule"===e||"Purchase"===e||"%payment_amount%"!==t&&"%payment_currency%"!==t)&&("SelectCategory"!==e||"%category_name%"===t||"%category_id%"===t)},addParameter:function(){this.editedEvent.data.push({key:"",value:""})},deleteParameter:function(e){this.editedEvent.data.splice(e,1)},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")},getInlinePlaceholdersNames:function(e){var t=[];switch(e){case"packages":return t.concat(["packagePlaceholders"]);case"events":return t.concat(["eventPlaceholders","employeePlaceholders","locationPlaceholders"]);case"appointments":return t.concat(["employeePlaceholders","categoryPlaceholders","locationPlaceholders"])}return t},addEvent:function(){null===this.editedEvent&&(this.eventEditDialog=!0,this.editedEvent={event:"",type:"",data:[{key:"",value:""}]},this.isNewEvent=!0,this.settings.push(this.editedEvent)),this.scrollViewInModal("trackingEventF"+this.type+"-"+(this.settings.length-1))},showEditEventDialog:function(e){this.editedEvent=e,this.editedEvent.data.length||this.editedEvent.data.push({key:"",value:""}),this.editedEventOld=JSON.parse(JSON.stringify(e)),this.eventToDelete=null,this.eventEditDialog=!0},showDeleteEventDialog:function(e){this.eventToDelete=e,this.editedEvent=null,this.eventEditDialog=!1},hideDeleteEventDialog:function(){this.eventToDelete=null,this.eventEditDialog=!0},deleteEvent:function(e){var t=this.settings.indexOf(e);this.settings.splice(t,1)},cancelEvent:function(e){if(null!==this.editedEventOld&&(e.event=this.editedEventOld.event,e.type=this.editedEventOld.type),this.isNewEvent){var t=this.settings.indexOf(e);this.settings.splice(t,1),this.isNewEvent=!1}this.editedEvent=null,this.editedEventOld=null,this.eventEditDialog=!1},saveEvent:function(e){var t=this;this.$refs.trackingEvent[e].validate(function(o){if(!o)return!1;t.editedEvent=null,t.eventEditDialog=!1,t.isNewEvent=!1,t.$refs.trackingEvent[e].clearValidate()})}},components:{InlinePlaceholders:l.a}}},1380:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[o("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addEvent}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.marketing_add_tracking))])]),e._v(" "),o("transition-group",{attrs:{name:"list-complete"}},e._l(e.settings,function(t,i){return o("div",{key:i+1,staticClass:"am-extra-item",attrs:{id:"trackingEventF"+e.type+"-"+i}},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[o("el-col",{attrs:{span:24}},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[o("el-col",{attrs:{span:18}},[o("h3",[e._v(e._s(t.event))])]),e._v(" "),null===e.editedEvent||i!==e.settings.indexOf(e.editedEvent)?o("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[o("span",{on:{click:function(o){return e.showEditEventDialog(t)}}},[o("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),o("span",{on:{click:function(o){return e.showDeleteEventDialog(t)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedEvent&&i===e.settings.indexOf(e.editedEvent)||null!==e.eventToDelete&&i===e.settings.indexOf(e.eventToDelete)),expression:"(editedEvent === null || index !== settings.indexOf(editedEvent)) && (eventToDelete === null || index !== settings.indexOf(eventToDelete))"}],staticClass:"am-extra-item-data"},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:24}},[o("el-col",{attrs:{sm:24}},[o("span",{staticClass:"data-title"},[e._v(e._s(e.$root.labels["tracking_"+t.type]))])])],1)],1)],1)],1),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.eventToDelete&&i===e.settings.indexOf(e.eventToDelete),expression:"eventToDelete !== null && index === settings.indexOf(eventToDelete)"}],staticClass:"am-confirmation"},[o("p",[e._v(e._s(e.$root.labels.marketing_delete_confirmation)+"?")]),e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteEventDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){return e.deleteEvent(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.eventEditDialog&&i===e.settings.indexOf(e.editedEvent),expression:"eventEditDialog === true && index === settings.indexOf(editedEvent)"}]},[o("el-form",{ref:"trackingEvent",refInFor:!0,attrs:{model:t,rules:e.rules,"label-position":"top"}},[o("el-form-item",{attrs:{prop:"type"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.type)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_type_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{clearable:"",placeholder:""},model:{value:t.type,callback:function(o){e.$set(t,"type",o)},expression:"trackingEvent.type"}},e._l(e.actions,function(e,t){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{prop:"event"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.facebook_pixel_event)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.facebook_pixel_event_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},on:{change:function(o){return e.trimProperty(t,"event")}},model:{value:t.event,callback:function(o){e.$set(t,"event",o)},expression:"trackingEvent.event"}})],1),e._v(" "),o("div",[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:11}},[o("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.tracking_parameter_name+": ")+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.tracking_parameter_name_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)]),e._v(" "),o("el-col",{attrs:{span:11}},[o("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.tracking_parameter_value+": ")+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:2}})],1),e._v(" "),e._l(t.data,function(i,n){return o("el-row",{key:n,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{span:11}},[o("el-input",{attrs:{type:"text",name:i.name},model:{value:t.data[n].key,callback:function(o){e.$set(t.data[n],"key",o)},expression:"trackingEvent.data[index].key"}})],1),e._v(" "),o("el-col",{attrs:{span:11}},[o("el-input",{attrs:{type:"text"},model:{value:t.data[n].value,callback:function(o){e.$set(t.data[n],"value",o)},expression:"trackingEvent.data[index].value"}})],1),e._v(" "),o("el-col",{attrs:{span:2}},[n!==t.data.length-1?o("span",{on:{click:function(t){return e.deleteParameter(n)}}},[o("i",{staticClass:"el-icon-delete"})]):o("span",{on:{click:function(t){return e.addParameter()}}},[o("i",{staticClass:"el-icon-plus"})])])],1)})],2),e._v(" "),o("el-form-item",[o("div",["ViewContent"!==t.type?o("el-row",{staticClass:"am-notifications-placeholders"},[o("el-col",{attrs:{sm:24}},[o("div",{staticClass:"am-placeholder-wrapper"},e._l(e.marketingPlaceholders[e.type],function(i,n){return o("el-dropdown",{key:n,staticClass:"am-placeholder-wrapper__dropdown"},[o("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[n])),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{class:{"amelia-dropdown":i.length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(i,function(i,n){return t.type&&e.isAvailablePlaceholder(t.type,i.value)?o("el-dropdown-item",{key:n},[o("el-tooltip",{key:i.code,attrs:{effect:"dark",content:i.label,placement:"left"}},[o("p",{on:{click:function(t){return e.copyCodeText(i.value)}}},[e._v("\n "+e._s(i.value)+"\n ")])])],1):e._e()}),1)],1)}),1)])],1):e._e()],1)]),e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(o){return e.cancelEvent(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveEvent(i)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])],1)}),0)],1)])},staticRenderFns:[]}},1381:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-collapse",{class:{"am-lite-container-disabled":e.$root.isLite},attrs:{accordion:""}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"1"}},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.facebook_pixel)+":")])]),e._v(" "),[o("el-form",{ref:"facebookPixelSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.facebookPixelSettings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-form-item",{attrs:{label:e.$root.labels.id+":"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.facebookPixelSettings.id,callback:function(t){e.$set(e.facebookPixelSettings,"id","string"==typeof t?t.trim():t)},expression:"facebookPixelSettings.id"}})],1),e._v(" "),o("el-tabs",{model:{value:e.activeFacebookPixelTab,callback:function(t){e.activeFacebookPixelTab=t},expression:"activeFacebookPixelTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.appointment,actions:e.appointmentActions,marketingPlaceholders:e.marketingPlaceholders,type:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?o("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[o("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.package,actions:e.packageActions,marketingPlaceholders:e.marketingPlaceholders,type:"packages"}})],1):e._e(),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("tracking-facebook-pixel",{attrs:{events:e.facebookPixelSettings.tracking.event,actions:e.eventActions,marketingPlaceholders:e.marketingPlaceholders,type:"events"}})],1)],1)],1)]],2),e._v(" "),o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"2"}},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.google_analytics)+":")])]),e._v(" "),[o("el-form",{ref:"googleTagSettings",staticStyle:{"padding-top":"0"},attrs:{model:e.googleTagSettings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-form-item",{attrs:{label:e.$root.labels.id+":"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.googleTagSettings.id,callback:function(t){e.$set(e.googleTagSettings,"id","string"==typeof t?t.trim():t)},expression:"googleTagSettings.id"}})],1),e._v(" "),o("el-tabs",{model:{value:e.activeGoogleTagTab,callback:function(t){e.activeGoogleTagTab=t},expression:"activeGoogleTagTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.appointment,actions:e.appointmentActions,marketingPlaceholders:e.marketingPlaceholders,type:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?o("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[o("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.package,actions:e.packageActions,marketingPlaceholders:e.marketingPlaceholders,type:"packages"}})],1):e._e(),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("tracking-google-tag",{attrs:{events:e.googleTagSettings.tracking.event,actions:e.eventActions,marketingPlaceholders:e.marketingPlaceholders,type:"events"}})],1)],1)],1)]],2)],1)},staticRenderFns:[]}},1382:function(e,t,o){var i=o(335)(o(1383),o(1384),!1,null,null,null);e.exports=i.exports},1383:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(803),a=o.n(n);t.default={mixins:[i.a],props:{lessonSpace:{type:Object}},data:function(){return{settings:this.lessonSpace}},methods:{redirectToDocumentation:function(){window.open("https://wpamelia.com/configuring-zoom/","_blank")}},components:{InlinePlaceholders:a.a}}},1384:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"settings",class:{"am-lite-container-disabled":e.$root.isLite},attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-form-item",{attrs:{label:e.$root.labels.lesson_space_api_key+":"}},[o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.apiKey,callback:function(t){e.$set(e.settings,"apiKey",t)},expression:"settings.apiKey"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.appointment_space_name)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.appointment_space_name_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.spaceNameAppointments,callback:function(t){e.$set(e.settings,"spaceNameAppointments",t)},expression:"settings.spaceNameAppointments"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["appointmentPlaceholders","categoryPlaceholders","locationPlaceholders","employeePlaceholders","customerPlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%lesson_space_url_date%","%lesson_space_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.event_space_name)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.event_space_name_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.spaceNameEvents,callback:function(t){e.$set(e.settings,"spaceNameEvents",t)},expression:"settings.spaceNameEvents"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:["eventPlaceholders","locationPlaceholders","employeePlaceholders"],excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%"],eventPlaceholders:["%event_cancel_url%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%lesson_space_url_date%","%lesson_space_url_date_time%"]},userTypeTab:"provider"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.lesson_space_pending)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.lesson_space_pending_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.pendingAppointments,callback:function(t){e.$set(e.settings,"pendingAppointments",t)},expression:"settings.pendingAppointments"}})],1)],1)],1)],1)},staticRenderFns:[]}},1385:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v("\n "+e._s(e.$root.labels.integrations_settings)+"\n ")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.google_calendar,name:"googleCalendar"}},[o("BlockLite"),e._v(" "),o("google-calendar",{attrs:{googleCalendar:e.googleCalendarSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.outlook_calendar,name:"outlookCalendar"}},[o("BlockLite"),e._v(" "),o("outlook-calendar",{attrs:{outlookCalendar:e.outlookCalendarSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.zoom,name:"zoom"}},[o("BlockLite"),e._v(" "),o("zoom",{attrs:{zoom:e.zoomSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.web_hooks,name:"webHooks"}},[o("BlockLite"),e._v(" "),o("web-hooks",{attrs:{webHooks:e.webHooksSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.marketing_tools,name:"marketing"}},[o("BlockLite"),e._v(" "),o("marketing",{attrs:{facebookPixel:e.facebookPixelSettings,googleTag:e.googleTagSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.lesson_space,name:"lessonSpace"}},[o("BlockLite"),e._v(" "),o("lesson-space",{attrs:{lessonSpace:e.lessonSpaceSettings}})],1)],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",disabled:e.$root.isLite},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1386:function(e,t,o){var i=o(335)(o(1387),o(1388),!1,null,null,null);e.exports=i.exports},1387:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696);t.default={mixins:[i.a],props:["labels"],data:function(){return{settings:Object.assign({},this.labels)}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsLabels")},onSubmit:function(){this.$emit("closeDialogSettingsLabels"),this.$emit("updateSettings",{labels:this.settings})}}}},1388:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.labels_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_labels_settings)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.enable_labels_settings_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.enabled,callback:function(t){e.$set(e.settings,"enabled",t)},expression:"settings.enabled"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.label_employee+":"}},[o("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.employee,callback:function(t){e.$set(e.settings,"employee",t)},expression:"settings.employee"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.label_employees+":"}},[o("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.employees,callback:function(t){e.$set(e.settings,"employees",t)},expression:"settings.employees"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.label_service+":"}},[o("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.service,callback:function(t){e.$set(e.settings,"service",t)},expression:"settings.service"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.label_services+":"}},[o("el-input",{attrs:{disabled:!1===e.settings.enabled,placeholder:""},model:{value:e.settings.services,callback:function(t){e.$set(e.settings,"services",t)},expression:"settings.services"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1389:function(e,t,o){var i=o(335)(o(1390),o(1391),!1,null,null,null);e.exports=i.exports},1390:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(697),a=o(961),s=o.n(a),l=o(803),r=o.n(l);t.default={mixins:[i.a,n.a],props:{notifications:{type:Object},ics:{type:Object}},data:function(){return{activeTab:"appointment",bccEmails:[],bccNumbers:[],selectedLanguage:"",settings:Object.assign({},this.notifications),icsSettings:Object.assign({},this.ics),options:{mailServices:[{label:this.$root.labels.php_mail,value:"php"},{label:this.$root.labels.wp_mail,value:"wp_mail"},{label:this.$root.labels.smtp,value:"smtp"},{label:this.$root.labels.mailgun,value:"mailgun"}],smtpSecureOptions:[{label:this.$root.labels.smtp_secure_ssl,value:"ssl"},{label:this.$root.labels.smtp_secure_tls,value:"tls"},{label:this.$root.labels.smtp_secure_disabled,value:!1}]},rules:{senderName:[{required:!0,message:this.$root.labels.sender_name_warning,trigger:"submit"}],senderEmail:[{required:!0,message:this.$root.labels.sender_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],smtpHost:[],smtpPort:[],smtpUsername:[],smtpPassword:[],mailgunApiKey:[],mailgunDomain:[]}}},updated:function(){this.inlineSVG()},mounted:function(){this.settings.bccEmail&&(this.bccEmails=this.settings.bccEmail.split(",")),this.settings.bccSms&&(this.bccNumbers=this.settings.bccSms.split(",")),this.inlineSVG(),this.changeMailService()},methods:{getInlinePlaceholdersNames:function(){var e=["customerPlaceholders","companyPlaceholders"];switch(this.activeTab){case"event":return e.concat(["eventPlaceholders","customFieldsPlaceholders","employeePlaceholders","locationPlaceholders","couponsPlaceholders"]);case"appointment":return e.concat(["appointmentPlaceholders","customFieldsPlaceholders","employeePlaceholders","categoryPlaceholders","locationPlaceholders","couponsPlaceholders","extrasPlaceholders"])}return e},languageChanged:function(e){this.selectedLanguage=e},closeDialog:function(){this.$emit("closeDialogSettingsNotifications")},changeMailService:function(){this.clearValidation(),this.rules.smtpHost=[],this.rules.smtpPort=[],this.rules.smtpUsername=[],this.rules.smtpPassword=[],this.rules.mailgunApiKey=[],this.rules.mailgunDomain=[],"smtp"===this.settings.mailService&&(this.rules.smtpHost=[{required:!0,message:this.$root.labels.smtp_host_warning,trigger:"submit"}],this.rules.smtpPort=[{required:!0,message:this.$root.labels.smtp_port_warning,trigger:"submit"}],this.rules.smtpUsername=[{required:!0,message:this.$root.labels.smtp_username_warning,trigger:"submit"}],this.rules.smtpPassword=[{required:!0,message:this.$root.labels.smtp_password_warning,trigger:"submit"}]),"mailgun"===this.settings.mailService&&(this.rules.mailgunApiKey=[{required:!0,message:this.$root.labels.mailgun_api_key_warning,trigger:"submit"}],this.rules.mailgunDomain=[{required:!0,message:this.$root.labels.mailgun_domain_warning,trigger:"submit"}])},emailsChanged:function(e){!e.length||""!==e[e.length-1].trim()&&/(.+)@(.+){2,}\.(.+){2,}/.test(e[e.length-1])||e.pop()},numbersChanged:function(e){!e.length||""!==e[e.length-1].trim()&&/^\+/.test(e[e.length-1])||e.pop()},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){t&&(e.$emit("closeDialogSettingsNotifications"),e.$emit("updateSettings",{notifications:Object.assign(e.settings,{bccEmail:e.bccEmails.join(","),bccSms:e.bccNumbers.join(",")}),ics:e.icsSettings}))})},clearValidation:function(){this.$refs.settings.clearValidate()}},computed:{ics_description:{get:function(){if(this.selectedLanguage&&this.icsSettings.description.translations){var e=this.icsSettings.description.translations;if(e[this.activeTab]&&e[this.activeTab][this.selectedLanguage])return e[this.activeTab][this.selectedLanguage]}return this.icsSettings.description[this.activeTab]},set:function(e){if(this.selectedLanguage){this.icsSettings.description.translations=this.icsSettings.description.translations?this.icsSettings.description.translations:"{}";var t=this.icsSettings.description.translations;t[this.activeTab]||(t[this.activeTab]={}),t[this.activeTab][this.selectedLanguage]=e,this.icsSettings.description.translations=Object.assign({},t)}else this.icsSettings.description[this.activeTab]=e}}},components:{SelectTranslate:s.a,InlinePlaceholders:r.a}}},1391:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.notifications_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-form-item",{attrs:{label:e.$root.labels.mail_service+":"}},[o("el-select",{on:{change:function(t){return e.changeMailService()}},model:{value:e.settings.mailService,callback:function(t){e.$set(e.settings,"mailService",t)},expression:"settings.mailService"}},e._l(e.options.mailServices,function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:"php"!==t.value&&"wp_mail"!==t.value&&e.$root.isLite}})}),1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_host+":",prop:"smtpHost"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpHost")}},model:{value:e.settings.smtpHost,callback:function(t){e.$set(e.settings,"smtpHost",t)},expression:"settings.smtpHost"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_port+":",prop:"smtpPort"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpPort")}},model:{value:e.settings.smtpPort,callback:function(t){e.$set(e.settings,"smtpPort",t)},expression:"settings.smtpPort"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_secure+":"}},[o("el-select",{model:{value:e.settings.smtpSecure,callback:function(t){e.$set(e.settings,"smtpSecure",t)},expression:"settings.smtpSecure"}},e._l(e.options.smtpSecureOptions,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_username+":",prop:"smtpUsername"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpUsername")}},model:{value:e.settings.smtpUsername,callback:function(t){e.$set(e.settings,"smtpUsername",t)},expression:"settings.smtpUsername"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"smtp"===e.settings.mailService,expression:"settings.mailService === 'smtp'"}],attrs:{label:e.$root.labels.smtp_password+":",prop:"smtpPassword"}},[o("el-input",{attrs:{type:"password"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"smtpPassword")}},model:{value:e.settings.smtpPassword,callback:function(t){e.$set(e.settings,"smtpPassword",t)},expression:"settings.smtpPassword"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}],attrs:{label:e.$root.labels.mailgun_api_key+":",prop:"mailgunApiKey"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"mailgunApiKey")}},model:{value:e.settings.mailgunApiKey,callback:function(t){e.$set(e.settings,"mailgunApiKey",t)},expression:"settings.mailgunApiKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}],attrs:{label:e.$root.labels.mailgun_domain+":",prop:"mailgunDomain"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"mailgunDomain")}},model:{value:e.settings.mailgunDomain,callback:function(t){e.$set(e.settings,"mailgunDomain",t)},expression:"settings.mailgunDomain"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.sender_name+":",prop:"senderName"}},[o("el-input",{on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"senderName")}},model:{value:e.settings.senderName,callback:function(t){e.$set(e.settings,"senderName",t)},expression:"settings.senderName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.sender_email+":",prop:"senderEmail"}},[o("el-input",{attrs:{placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimProperty(e.settings,"senderEmail")}},model:{value:e.settings.senderEmail,callback:function(t){e.$set(e.settings,"senderEmail",t)},expression:"settings.senderEmail"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"mailgun"===e.settings.mailService,expression:"settings.mailService === 'mailgun'"}]},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.endpoint)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.endpoint_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.mailgunEndpoint,callback:function(t){e.$set(e.settings,"mailgunEndpoint",t)},expression:"settings.mailgunEndpoint"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.notify_customers_default))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.notifyCustomers,callback:function(t){e.$set(e.settings,"notifyCustomers",t)},expression:"settings.notifyCustomers"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"cancelSuccessPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:cancelSuccessPop",arg:"cancelSuccessPop"}],attrs:{label:e.$root.labels.cancel_success_url+":"}},[o("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder,disabled:e.$root.isLite},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.cancelSuccessUrl,callback:function(t){e.$set(e.settings,"cancelSuccessUrl",t)},expression:"settings.cancelSuccessUrl"}})],1),e._v(" "),o("el-popover",e._b({ref:"cancelErrorPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-form-item",{directives:[{name:"popover",rawName:"v-popover:cancelErrorPop",arg:"cancelErrorPop"}],attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.cancel_error_url)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.cancel_error_url_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{placeholder:e.$root.labels.cancel_url_placeholder,disabled:e.$root.isLite},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.cancelErrorUrl,callback:function(t){e.$set(e.settings,"cancelErrorUrl",t)},expression:"settings.cancelErrorUrl"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder",prop:"bccEmail"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.bcc_email)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bcc_email_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{staticClass:"am-setting-notifications-select",attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"","no-data-text":e.$root.labels.create},on:{change:e.emailsChanged},model:{value:e.bccEmails,callback:function(t){e.bccEmails=t},expression:"bccEmails"}},e._l(e.bccEmails,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:e}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:"placeholder",prop:"bccSms"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.bcc_sms)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.bcc_sms_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{staticClass:"am-setting-notifications-select",attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"","no-data-text":e.$root.labels.create},on:{change:e.numbersChanged},model:{value:e.bccNumbers,callback:function(t){e.bccNumbers=t},expression:"bccNumbers"}},e._l(e.bccNumbers,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:e}})}),1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_ics_attachment_approved)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_ics_attachment_approved_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.icsSettings.sendIcsAttachment,callback:function(t){e.$set(e.icsSettings,"sendIcsAttachment",t)},expression:"icsSettings.sendIcsAttachment"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.send_ics_attachment_pending)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.send_ics_attachment_pending_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.icsSettings.sendIcsAttachmentPending,callback:function(t){e.$set(e.icsSettings,"sendIcsAttachmentPending",t)},expression:"icsSettings.sendIcsAttachmentPending"}})],1)],1)],1),e._v(" "),e.icsSettings.sendIcsAttachment||e.icsSettings.sendIcsAttachmentPending?o("el-collapse",[o("el-collapse-item",{staticClass:"am-setting-box"},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.set_ics_description)+":")])]),e._v(" "),[e.$root.settings.general.usedLanguages.length?o("select-translate",{on:{languageChanged:e.languageChanged}}):e._e(),e._v(" "),o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointment"}},[o("el-form-item",{attrs:{label:e.$root.labels.description+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.ics_description,callback:function(t){e.ics_description=t},expression:"ics_description"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{appointmentPlaceholders:["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"event"}},[o("el-form-item",{attrs:{label:e.$root.labels.description+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.ics_description,callback:function(t){e.ics_description=t},expression:"ics_description"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{eventPlaceholders:["%event_cancel_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%reservation_name%","%reservation_description%"]},userTypeTab:"provider"}})],1)],1)],1)]],2)],1):e._e()],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1392:function(e,t,o){var i=o(335)(o(1393),o(1409),!1,null,null,null);e.exports=i.exports},1393:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(699),a=o(1394),s=o.n(a),l=o(961),r=o.n(l),c=o(962),u=o(1397),p=o.n(u);t.default={mixins:[c.a,i.a,n.a],props:{customFields:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},payments:{type:Object},defaultAppointmentStatus:""},data:function(){return{activeWooCommerceRuleTab:"appointments",language:"",settings:Object.assign({},this.payments),options:{priceSeparators:[{label:this.$root.labels.comma_dot,value:1,example:"15,000.00"},{label:this.$root.labels.dot_comma,value:2,example:"15.000,00"},{label:this.$root.labels.space_dot,value:3,example:"15 000.00"},{label:this.$root.labels.space_comma,value:4,example:"15 000,00"}],priceSymbolPositions:[{label:this.$root.labels.before,value:"before",example:"$100"},{label:this.$root.labels.before_with_space,value:"beforeWithSpace",example:"$ 100"},{label:this.$root.labels.after,value:"after",example:"100$"},{label:this.$root.labels.after_with_space,value:"afterWithSpace",example:"100 $"}],sandboxMode:[{label:this.$root.labels.disabled,value:!1},{label:this.$root.labels.enabled,value:!0}]},hasDisabledBookablePaymentMethod:!1,rules:{stripe:{},mollie:{},payPal:{}},stripeCollapse:"",payPalCollapse:"",wooCommerceCollapse:"",mollieCollapse:"",razorpayCollapse:"",activeTab:"appointments"}},mounted:function(){var e=this;this.inspectBookableSettingsPayments(),this.handleStripeValidationRules(),this.handlePayPalValidationRules(),this.handleMollieValidationRules();var t=this.defaultPaymentMethods.find(function(t){return t.value===e.settings.defaultPaymentMethod});this.settings.defaultPaymentMethod=t?t.value:this.defaultPaymentMethods[0].value},methods:{languageChanged:function(e){this.language=e},inspectBookableSettingsPayments:function(){var e=this;this.settings.wc.enabled||this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["categories","events"]})}).then(function(t){var o=!1,i=e;t.data.data.categories.forEach(function(e){e.serviceList.forEach(function(e){var t=JSON.parse(e.settings);if(t&&(!t||"payments"in t)){var n=i.settings.onSite,a=i.settings.payPal.enabled,s=i.settings.stripe.enabled;n&&"onSite"in t.payments&&!t.payments.onSite&&(n=!1),a&&"payPal"in t.payments&&!t.payments.payPal.enabled&&(a=!1),s&&"stripe"in t.payments&&!t.payments.stripe.enabled&&(s=!1),n||a||s||(o=!0)}})}),t.data.data.events.forEach(function(e){var t=JSON.parse(e.settings);if(t&&(!t||"payments"in t)){var n=i.settings.onSite,a=i.settings.payPal.enabled,s=i.settings.stripe.enabled;n&&"onSite"in t.payments&&!t.payments.onSite&&(n=!1),a&&"payPal"in t.payments&&!t.payments.payPal.enabled&&(a=!1),s&&"stripe"in t.payments&&!t.payments.stripe.enabled&&(s=!1),n||a||s||(o=!0)}}),e.hasDisabledBookablePaymentMethod=o}).catch(function(e){console.log(e.message)})},closeDialog:function(){this.$emit("closeDialogSettingsPayments")},onSubmit:function(){var e=this,t=Object.fromEntries(this.$refs.metaDataAppointments.stripeMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})),o=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.stripeMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})):{},i=Object.fromEntries(this.$refs.metaDataEvents.stripeMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})),n=Object.fromEntries(this.$refs.metaDataAppointments.mollieMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})),a=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.mollieMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})):{},s=Object.fromEntries(this.$refs.metaDataEvents.mollieMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})),l=Object.fromEntries(this.$refs.metaDataAppointments.razorpayMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})),r=this.$root.licence.isPro||this.$root.licence.isDeveloper?Object.fromEntries(this.$refs.metaDataPackages.razorpayMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]})):{},c=Object.fromEntries(this.$refs.metaDataEvents.razorpayMetaData.filter(function(e){var t=e.key,o=e.value;return""!==t&&""!==o}).map(function(e){return[e.key,e.value]}));this.settings.stripe.metaData.appointment=_.isEmpty(t)?null:t,this.settings.stripe.metaData.package=_.isEmpty(o)?null:o,this.settings.stripe.metaData.event=_.isEmpty(i)?null:i,this.settings.mollie.metaData.appointment=_.isEmpty(n)?null:n,this.settings.mollie.metaData.package=_.isEmpty(a)?null:a,this.settings.mollie.metaData.event=_.isEmpty(s)?null:s,this.settings.razorpay.metaData.appointment=_.isEmpty(l)?null:l,this.settings.razorpay.metaData.package=_.isEmpty(r)?null:r,this.settings.razorpay.metaData.event=_.isEmpty(c)?null:c,""===this.settings.symbol&&(this.settings.symbol=this.currencies.filter(function(t){return t.code===e.settings.currency})[0].symbol),this.settings.paymentLinks.redirectUrl=this.settings.paymentLinks.redirectUrl?this.settings.paymentLinks.redirectUrl:this.$root.getSiteUrl,this.$refs.settings.validate(function(t){if(!t)return e.settings.stripe.enabled&&(e.settings.stripe.testMode||""!==e.settings.stripe.livePublishableKey&&""!==e.settings.stripe.liveSecretKey||(e.stripeCollapse="stripe"),!e.settings.stripe.testMode||""!==e.settings.stripe.testPublishableKey&&""!==e.settings.stripe.testSecretKey||(e.stripeCollapse="stripe")),e.settings.mollie.enabled&&(e.settings.mollie.testMode||""!==e.settings.mollie.liveApiKey||(e.mollieCollapse="mollie"),e.settings.stripe.testMode&&""===e.settings.mollie.testApiKey&&(e.mollieCollapse="mollie")),e.settings.payPal.enabled&&(e.settings.payPal.sandboxMode||""!==e.settings.payPal.liveApiClientId&&""!==e.settings.payPal.liveApiSecret||(e.payPalCollapse="payPal"),!e.settings.payPal.sandboxMode||""!==e.settings.payPal.testApiClientId&&""!==e.settings.payPal.testApiSecret||(e.payPalCollapse="payPal")),e.settings.razorpay.enabled&&(e.settings.razorpay.sandboxMode||""!==e.settings.razorpay.liveApiClientId&&""!==e.settings.razorpay.liveApiSecret||(e.razorpayCollapse="razorpay"),!e.settings.razorpay.sandboxMode||""!==e.settings.razorpay.testApiClientId&&""!==e.settings.razorpay.testApiSecret||(e.razorpayCollapse="razorpay")),!1;e.$emit("closeDialogSettingsPayments"),e.$emit("updateSettings",{payments:e.settings})})},checkOnSitePayment:function(){!1===this.settings.payPal.enabled&&!1===this.settings.stripe.enabled&&!1===this.settings.wc.enabled&&(this.settings.onSite=!0)},toggleOnSite:function(){this.inspectBookableSettingsPayments(),this.clearValidation(),"onSite"===this.settings.defaultPaymentMethod&&!1===this.settings.onSite&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleStripe:function(){this.inspectBookableSettingsPayments(),this.checkOnSitePayment(),this.handleStripeValidationRules(),!1===this.settings.stripe.enabled&&(this.stripeCollapse=""),"stripe"===this.settings.defaultPaymentMethod&&!1===this.settings.stripe.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},togglePayPal:function(){this.inspectBookableSettingsPayments(),this.checkOnSitePayment(),this.handlePayPalValidationRules(),this.handleMollieValidationRules(),!1===this.settings.payPal.enabled&&(this.payPalCollapse=""),"payPal"===this.settings.defaultPaymentMethod&&!1===this.settings.payPal.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleWooCommerce:function(){this.settings.onSite=!this.settings.wc.enabled,this.settings.stripe.enabled=!1,this.settings.payPal.enabled=!1,this.settings.mollie.enabled=!1,this.settings.razorpay.enabled=!1,"wc"===this.settings.defaultPaymentMethod&&!1===this.settings.wc.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleMollie:function(){this.settings.stripe.enabled=!1,this.settings.payPal.enabled=!1,this.settings.wc.enabled=!1,this.settings.razorpay.enabled=!1,this.settings.mollie.enabled||(this.settings.onSite=!0),"mollie"===this.settings.defaultPaymentMethod&&!1===this.settings.mollie.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},toggleRazorpay:function(){this.inspectBookableSettingsPayments(),this.checkOnSitePayment(),this.handleRazorpayValidationRules(),this.handleMollieValidationRules(),!1===this.settings.razorpay.enabled&&(this.razorpayCollapse=""),"razorpay"===this.settings.defaultPaymentMethod&&!1===this.settings.razorpay.enabled&&(this.settings.defaultPaymentMethod=this.defaultPaymentMethods[0].value)},handleStripeValidationRules:function(){this.clearValidation(),!0===this.settings.stripe.enabled?!0===this.settings.stripe.testMode?this.rules.stripe={testPublishableKey:[{required:!0,message:this.$root.labels.stripe_test_publishable_key_error,trigger:"submit"}],testSecretKey:[{required:!0,message:this.$root.labels.stripe_test_secret_key_error,trigger:"submit"}]}:this.rules.stripe={livePublishableKey:[{required:!0,message:this.$root.labels.stripe_live_publishable_key_error,trigger:"submit"}],liveSecretKey:[{required:!0,message:this.$root.labels.stripe_live_secret_key_error,trigger:"submit"}]}:this.rules.stripe={}},handlePayPalValidationRules:function(){this.clearValidation(),!0===this.settings.payPal.enabled?!0===this.settings.payPal.sandboxMode?this.rules.payPal={testApiClientId:[{required:!0,message:this.$root.labels.payPal_test_client_id_error,trigger:"submit"}],testApiSecret:[{required:!0,message:this.$root.labels.payPal_test_secret_error,trigger:"submit"}]}:this.rules.payPal={liveApiClientId:[{required:!0,message:this.$root.labels.payPal_live_client_id_error,trigger:"submit"}],liveApiSecret:[{required:!0,message:this.$root.labels.payPal_live_secret_error,trigger:"submit"}]}:this.rules.payPal={}},handleMollieValidationRules:function(){this.clearValidation(),!0===this.settings.mollie.enabled?!0===this.settings.mollie.testMode?this.rules.mollie={testApiKey:[{required:!0,message:this.$root.labels.mollie_test_api_key_error,trigger:"submit"}]}:this.rules.mollie={liveApiKey:[{required:!0,message:this.$root.labels.mollie_live_api_key_error,trigger:"submit"}]}:this.rules.mollie={}},handleRazorpayValidationRules:function(){this.clearValidation(),!0===this.settings.razorpay.enabled?!0===this.settings.razorpay.testMode?this.rules.razorpay={testKeyId:[{required:!0,message:this.$root.labels.razorpay_test_client_id_error,trigger:"submit"}],testKeySecret:[{required:!0,message:this.$root.labels.razorpay_test_secret_error,trigger:"submit"}]}:this.rules.razorpay={liveKeyId:[{required:!0,message:this.$root.labels.razorpay_live_client_id_error,trigger:"submit"}],liveKeySecret:[{required:!0,message:this.$root.labels.razorpay_live_secret_error,trigger:"submit"}]}:this.rules.razorpay={}},clearValidation:function(){void 0!==this.$refs.settings&&this.$refs.settings.clearValidate()}},computed:{showStripeAlert:function(){return"https:"!==location.protocol},defaultPaymentMethods:function(){var e=[];return this.settings.onSite&&e.push({label:this.$root.labels.on_site,value:"onSite"}),this.settings.payPal.enabled&&e.push({label:this.$root.labels.payPal,value:"payPal"}),this.settings.stripe.enabled&&e.push({label:this.$root.labels.stripe,value:"stripe"}),this.settings.wc.enabled&&e.push({label:this.$root.labels.wc,value:"wc"}),this.settings.mollie.enabled&&e.push({label:this.$root.labels.mollie,value:"mollie"}),this.settings.razorpay.enabled&&e.push({label:this.$root.labels.razorpay,value:"razorpay"}),e}},watch:{"settings.currency":function(){var e=this;this.settings.symbol=this.currencies.find(function(t){return t.code===e.settings.currency}).symbol}},components:{PaymentsMetaData:s.a,SelectTranslate:r.a,Extensions:p.a}}},1394:function(e,t,o){var i=o(335)(o(1395),o(1396),!1,null,null,null);e.exports=i.exports},1395:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(803),n=o.n(i),a=o(771),s=(o.n(a),o(780)),l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={mixins:[s.a],name:"PaymentsMetaData",props:{customFields:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},data:Object,language:"",tab:String},data:function(){return{description_wc_text:"",description_translated_wc_text:{},stripeMetaData:null,mollieMetaData:null,razorpayMetaData:null}},created:function(){this.textMode=!0,this.description_wc_text=this.description_wc,this.description_translated_wc_text=JSON.parse(JSON.stringify(this.description_translated_wc)),this.description_wc.startsWith("\x3c!-- Content --\x3e")?this.textMode=!1:void 0!==this.description_wc&&null!==this.description_wc&&(this.textMode=!0,this.description_wc=this.process(this.description_wc.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.description_wc_text=this.description_wc)},mounted:function(){this.stripeMetaData=Object.entries(this.metaDataForStripe).map(function(e){var t=l(e,2);return{key:t[0],value:t[1]}}),this.stripeMetaData.push({key:"",value:""}),this.mollieMetaData=Object.entries(this.metaDataForMollie).map(function(e){var t=l(e,2);return{key:t[0],value:t[1]}}),this.mollieMetaData.push({key:"",value:""}),this.razorpayMetaData=Object.entries(this.metaDataForRazorpay).map(function(e){var t=l(e,2);return{key:t[0],value:t[1]}}),this.razorpayMetaData.push({key:"",value:""}),void 0===this.description_wc||null===this.description_wc||this.description_wc.startsWith("\x3c!-- Content --\x3e")?this.textMode=!1:(this.textMode=!0,this.description_wc=this.process(this.description_wc.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.description_wc_text=this.description_wc)},computed:{description_wc:{get:function(){switch(this.tab){case"appointments":return this.data.wc.checkoutData.appointment;case"events":return this.data.wc.checkoutData.event;case"packages":return this.data.wc.checkoutData.package}},set:function(e){switch(this.tab){case"appointments":this.data.wc.checkoutData.appointment=e;break;case"events":this.data.wc.checkoutData.event=e;break;case"packages":this.data.wc.checkoutData.package=e}}},description_translated_wc:{get:function(){switch(this.tab){case"appointments":return this.data.wc.checkoutData.translations.appointment;case"events":return this.data.wc.checkoutData.translations.event;case"packages":return this.data.wc.checkoutData.translations.package}},set:function(e){switch(this.tab){case"appointments":this.data.wc.checkoutData.translations.appointment=e;break;case"events":this.data.wc.checkoutData.translations.event=e;break;case"packages":this.data.wc.checkoutData.translations.package=e}}},description_paypal:{get:function(){switch(this.tab){case"appointments":return this.data.payPal.description.appointment;case"events":return this.data.payPal.description.event;case"packages":return this.data.payPal.description.package}},set:function(e){switch(this.tab){case"appointments":this.data.payPal.description.appointment=e;break;case"events":this.data.payPal.description.event=e;break;case"packages":this.data.payPal.description.package=e}}},description_stripe:{get:function(){switch(this.tab){case"appointments":return this.data.stripe.description.appointment;case"events":return this.data.stripe.description.event;case"packages":return this.data.stripe.description.package}},set:function(e){switch(this.tab){case"appointments":this.data.stripe.description.appointment=e;break;case"events":this.data.stripe.description.event=e;break;case"packages":this.data.stripe.description.package=e}}},description_mollie:{get:function(){switch(this.tab){case"appointments":return this.data.mollie.description.appointment;case"events":return this.data.mollie.description.event;case"packages":return this.data.mollie.description.package}},set:function(e){switch(this.tab){case"appointments":this.data.mollie.description.appointment=e;break;case"events":this.data.mollie.description.event=e;break;case"packages":this.data.mollie.description.package=e}}},description_razorpay:{get:function(){switch(this.tab){case"appointments":return this.data.razorpay.description.appointment;case"events":return this.data.razorpay.description.event;case"packages":return this.data.razorpay.description.package}},set:function(e){switch(this.tab){case"appointments":this.data.razorpay.description.appointment=e;break;case"events":this.data.razorpay.description.event=e;break;case"packages":this.data.razorpay.description.package=e}}},name_razorpay:{get:function(){switch(this.tab){case"appointments":return this.data.razorpay.name.appointment;case"events":return this.data.razorpay.name.event;case"packages":return this.data.razorpay.name.package}},set:function(e){switch(this.tab){case"appointments":this.data.razorpay.name.appointment=e;break;case"events":this.data.razorpay.name.event=e;break;case"packages":this.data.razorpay.name.package=e}}},metaDataForStripe:{get:function(){switch(this.tab){case"appointments":return null!=this.data.stripe.metaData.appointment?this.data.stripe.metaData.appointment:{};case"events":return null!=this.data.stripe.metaData.event?this.data.stripe.metaData.event:{};case"packages":return null!=this.data.stripe.metaData.package?this.data.stripe.metaData.package:{}}}},metaDataForMollie:{get:function(){switch(this.tab){case"appointments":return null!=this.data.mollie.metaData.appointment?this.data.mollie.metaData.appointment:{};case"events":return null!=this.data.mollie.metaData.event?this.data.mollie.metaData.event:{};case"packages":return null!=this.data.mollie.metaData.package?this.data.mollie.metaData.package:{}}}},metaDataForRazorpay:{get:function(){switch(this.tab){case"appointments":return null!=this.data.razorpay.metaData.appointment?this.data.razorpay.metaData.appointment:{};case"events":return null!=this.data.razorpay.metaData.event?this.data.razorpay.metaData.event:{};case"packages":return null!=this.data.razorpay.metaData.package?this.data.razorpay.metaData.package:{}}}}},methods:{getExcludedPaymentPlaceholders:function(){var e=["%payment_link_woocommerce%","%payment_link_paypal%","%payment_link_stripe%","%payment_link_mollie%","%payment_link_razorpay%"];switch(this.tab){case"packages":return e.concat(["%appointment_deposit_payment%","%event_deposit_payment%"]);case"events":return e.concat(["%appointment_deposit_payment%","%package_deposit_payment%"]);case"appointments":return e.concat(["%package_deposit_payment%","%event_deposit_payment%"])}return e},getExcludedAppointmentPlaceholders:function(){var e=["%zoom_host_url%","%zoom_join_url%","%lesson_space_url%","%appointment_cancel_url%","%reservation_name%","%reservation_description%","%group_appointment_details%"];return this.data.wc.enabled&&e.push("%appointment_id%"),e},getInlinePlaceholdersNames:function(){var e=["customerPlaceholders","companyPlaceholders","paymentPlaceholders"];switch(this.tab){case"packages":return e.concat(["packagePlaceholders"]);case"events":return e.concat(["eventPlaceholders","customFieldsPlaceholders","employeePlaceholders","locationPlaceholders","couponsPlaceholders"]);case"appointments":return e.concat(["appointmentPlaceholders","customFieldsPlaceholders","employeePlaceholders","categoryPlaceholders","locationPlaceholders","couponsPlaceholders","extrasPlaceholders"])}return e},addMetaDataPair:function(e){this[e+"MetaData"].push({key:"",value:""})},deleteMetaDataPair:function(e,t){this[e+"MetaData"].splice(t,1)}},components:{InlinePlaceholders:n.a,quillEditor:a.quillEditor}}},1396:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{directives:[{name:"show",rawName:"v-show",value:e.data.stripe.enabled,expression:"data.stripe.enabled"}]},[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:11}},[o("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),o("el-col",{attrs:{span:11}},[o("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.stripeMetaData,function(t,i){return o("el-row",{key:i,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text",name:t.name},model:{value:e.stripeMetaData[i].key,callback:function(t){e.$set(e.stripeMetaData[i],"key",t)},expression:"stripeMetaData[index].key"}})],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text"},model:{value:e.stripeMetaData[i].value,callback:function(t){e.$set(e.stripeMetaData[i],"value",t)},expression:"stripeMetaData[index].value"}})],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("span",{on:{click:function(t){return e.deleteMetaDataPair("stripe",i)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("stripe")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.data.mollie.enabled,expression:"data.mollie.enabled"}]},[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:11}},[o("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),o("el-col",{attrs:{span:11}},[o("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.mollieMetaData,function(t,i){return o("el-row",{key:i,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text",name:t.name},model:{value:e.mollieMetaData[i].key,callback:function(t){e.$set(e.mollieMetaData[i],"key",t)},expression:"mollieMetaData[index].key"}})],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text"},model:{value:e.mollieMetaData[i].value,callback:function(t){e.$set(e.mollieMetaData[i],"value",t)},expression:"mollieMetaData[index].value"}})],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("span",{on:{click:function(t){return e.deleteMetaDataPair("mollie",i)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("mollie")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}]},[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:11}},[o("el-form-item",{attrs:{label:e.$root.labels.name+":"}})],1),e._v(" "),o("el-col",{attrs:{span:11}},[o("label",{staticClass:"el-form-item__label"},[e._v("\n "+e._s(e.$root.labels.value+": ")+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.$root.labels.metadata_value_tooltip))]),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1),e._v(" "),e._l(e.razorpayMetaData,function(t,i){return o("el-row",{key:i,staticClass:"small-margin-bottom am-payments-meta-data",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text",name:t.name},model:{value:e.razorpayMetaData[i].key,callback:function(t){e.$set(e.razorpayMetaData[i],"key",t)},expression:"razorpayMetaData[index].key"}})],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-input",{attrs:{type:"text"},model:{value:e.razorpayMetaData[i].value,callback:function(t){e.$set(e.razorpayMetaData[i],"value",t)},expression:"razorpayMetaData[index].value"}})],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("span",{on:{click:function(t){return e.deleteMetaDataPair("razorpay",i)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])])],1)}),e._v(" "),o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addMetaDataPair("razorpay")}}},[e._v(e._s(e.$root.labels.add_metaData))])],1)],1)],2),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.wc.enabled,expression:"data.wc.enabled"}],attrs:{label:e.$root.labels.description_wc+":"}},[o("el-row",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{staticStyle:{"padding-bottom":"5px"},attrs:{span:12}},[e._v("\n "+e._s(e.$root.labels.message_colon)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:12}},[o("el-button-group",[o("el-button",{staticStyle:{width:"unset"},attrs:{size:"mini",type:e.textMode?"default":"primary"},on:{click:function(t){e.language?e.textModeChanged("description_translated_wc_text","description_translated_wc",e.language):e.textModeChanged("description_wc","description_wc_text",e.language)}}},[e._v("\n "+e._s(e.$root.labels.text_mode)+"\n ")]),e._v(" "),o("el-button",{staticStyle:{width:"unset"},attrs:{size:"mini",type:e.textMode?"primary":"default"},on:{click:function(t){e.language?e.textModeChanged("description_translated_wc","description_translated_wc_text",e.language):e.textModeChanged("description_wc","description_wc_text",e.language)}}},[e._v("\n "+e._s(e.$root.labels.html_mode)+"\n ")])],1)],1)],1),e._v(" "),e.language||e.textMode?e._e():o("quill-editor",{attrs:{options:e.editorOptions},model:{value:e.description_wc,callback:function(t){e.description_wc=t},expression:"description_wc"}}),e._v(" "),!e.language&&e.textMode?o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},on:{input:function(t){return e.changedContentText("description_wc","description_wc_text",e.language)}},model:{value:e.description_wc_text,callback:function(t){e.description_wc_text=t},expression:"description_wc_text"}}):e._e(),e._v(" "),e.language&&!e.textMode?o("quill-editor",{attrs:{options:e.editorOptions},model:{value:e.description_translated_wc[e.language],callback:function(t){e.$set(e.description_translated_wc,e.language,t)},expression:"description_translated_wc[language]"}}):e._e(),e._v(" "),e.language&&e.textMode?o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},on:{input:function(t){return e.changedContentText("description_translated_wc","description_translated_wc_text",e.language)}},model:{value:e.description_translated_wc_text[e.language],callback:function(t){e.$set(e.description_translated_wc_text,e.language,t)},expression:"description_translated_wc_text[language]"}}):e._e()],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}],attrs:{label:e.$root.labels.name_razorpay+":"}},[o("el-input",{attrs:{type:"text",autosize:{minRows:4,maxRows:6}},model:{value:e.name_razorpay,callback:function(t){e.name_razorpay=t},expression:"name_razorpay"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.payPal.enabled,expression:"data.payPal.enabled"}],attrs:{label:e.$root.labels.description_paypal+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_paypal,callback:function(t){e.description_paypal=t},expression:"description_paypal"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.stripe.enabled,expression:"data.stripe.enabled"}],attrs:{label:e.$root.labels.description_stripe+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_stripe,callback:function(t){e.description_stripe=t},expression:"description_stripe"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.mollie.enabled,expression:"data.mollie.enabled"}],attrs:{label:e.$root.labels.description_mollie+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_mollie,callback:function(t){e.description_mollie=t},expression:"description_mollie"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.data.razorpay.enabled,expression:"data.razorpay.enabled"}],attrs:{label:e.$root.labels.description_razorpay+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.description_razorpay,callback:function(t){e.description_razorpay=t},expression:"description_razorpay"}})],1),e._v(" "),o("el-form-item",[o("inline-placeholders",{attrs:{placeholdersNames:e.getInlinePlaceholdersNames(),excludedPlaceholders:{appointmentPlaceholders:e.getExcludedAppointmentPlaceholders(),eventPlaceholders:["%event_cancel_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%google_meet_url_date%","%google_meet_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%zoom_host_url_date%","%zoom_host_url_date_time%","%reservation_name%","%reservation_description%","%group_event_details%"],paymentPlaceholders:e.getExcludedPaymentPlaceholders()},customFields:e.customFields,categories:e.categories,coupons:e.coupons,userTypeTab:"provider"}})],1)],1)},staticRenderFns:[]}},1397:function(e,t,o){var i=o(335)(o(1398),o(1408),!1,null,null,null);e.exports=i.exports},1398:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(700),n=o(696),a=o(697),s=o(1399),l=o.n(s),r=o(1402),c=o.n(r),u=o(1405),p=o.n(u);t.default={components:{wooCommerceRule:l.a,wooCommerceRuleHeader:c.a,wooCommerceRuleInfo:p.a},mixins:[n.a,a.a,i.a],props:{formHeader:{type:String,default:""},formInfo:{type:String,default:""},form:{type:String,default:""},oneRequired:{type:Boolean,default:!1},type:{type:String,default:""},rules:{type:Object,default:function(){}},addLabel:{type:String,default:""},deleteMessage:{type:String,default:""},extensions:{type:Array,default:function(){return[]}},newExtension:{type:Object,default:function(){}}},data:function(){return{extensionToDelete:null,extensionEditDialog:null,editedExtension:null,editedExtensionOld:null,isNewExtension:!1}},methods:{addExtension:function(){null===this.editedExtension&&(this.extensionEditDialog=!0,this.editedExtension=JSON.parse(JSON.stringify(this.newExtension)),this.isNewExtension=!0,this.extensions.push(this.editedExtension)),this.scrollViewInModal("extension-"+this.type+"-"+(this.extensions.length-1))},showEditExtensionDialog:function(e){this.editedExtension=e,this.editedExtensionOld=JSON.parse(JSON.stringify(e)),this.extensionToDelete=null,this.extensionEditDialog=!0},showDeleteExtensionDialog:function(e){this.extensionToDelete=e,this.editedExtension=null,this.extensionEditDialog=!1},hideDeleteExtensionDialog:function(){this.extensionToDelete=null,this.extensionEditDialog=!0},deleteExtension:function(e){var t=this.extensions.indexOf(e);this.extensions.splice(t,1)},cancelExtension:function(e){var t=this;if(null!==this.editedExtensionOld&&Object.keys(this.editedExtensionOld).forEach(function(o){e[o]=t.editedExtensionOld[o]}),this.isNewExtension){var o=this.extensions.indexOf(e);this.extensions.splice(o,1),this.isNewExtension=!1}this.editedExtension=null,this.editedExtensionOld=null,this.extensionEditDialog=!1},saveExtension:function(e){var t=this;this.$refs.extensionsRef[e].validate(function(o){if(!o)return!1;t.editedExtension=null,t.extensionEditDialog=!1,t.isNewExtension=!1,t.$refs.extensionsRef[e].clearValidate()})}}}},1399:function(e,t,o){var i=o(335)(o(1400),o(1401),!1,null,null,null);e.exports=i.exports},1400:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(962);t.default={name:"wooCommerceRule",mixins:[i.a],props:{type:{type:String,default:""},extension:{type:Object,default:function(){}},extensions:{type:Array,default:[]}},data:function(){return{rules:{order:[{required:!0,message:this.$root.labels.select_value_warning,trigger:"submit"}],update:[{required:!0,message:this.$root.labels.select_value_warning,trigger:"submit"}],booking:[{required:!0,message:this.$root.labels.select_value_warning,trigger:"submit"}],payment:[{required:!0,message:this.$root.labels.select_value_warning,trigger:"submit"}]}}},computed:{bookingStatuses:function(){switch(this.type){case"appointment":return[{value:"default",label:this.$root.labels.default_appointment_status}].concat(this.bookingAppointmentStatuses);case"package":return this.bookingPackageStatuses;case"event":return this.bookingEventStatuses}},unusedOrderStatuses:function(){return this.orderStatuses}}}},1401:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:14}},[o("el-form-item",{attrs:{prop:"order",rules:e.rules.order}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wc_order)+":\n ")]),e._v(" "),o("el-select",{model:{value:e.extension.order,callback:function(t){e.$set(e.extension,"order",t)},expression:"extension.order"}},e._l(e.unusedOrderStatuses,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{prop:"update",rules:e.rules.update}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wc_status_update_order)+":\n ")]),e._v(" "),o("el-select",{model:{value:e.extension.update,callback:function(t){e.$set(e.extension,"update",t)},expression:"extension.update"}},e._l([{value:!0,label:e.$root.labels.wc_status_update_order_yes},{value:!1,label:e.$root.labels.wc_status_update_order_no}],function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:14}},[o("el-form-item",{attrs:{prop:"booking",rules:e.rules.booking}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.booking)+":\n ")]),e._v(" "),o("el-select",{model:{value:e.extension.booking,callback:function(t){e.$set(e.extension,"booking",t)},expression:"extension.booking"}},e._l(e.bookingStatuses,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{prop:"payment",rules:e.rules.payment}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.payment)+":\n ")]),e._v(" "),o("el-select",{model:{value:e.extension.payment,callback:function(t){e.$set(e.extension,"payment",t)},expression:"extension.payment"}},e._l(e.paymentStatuses,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1)],1)},staticRenderFns:[]}},1402:function(e,t,o){var i=o(335)(o(1403),o(1404),!1,null,null,null);e.exports=i.exports},1403:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(962);t.default={name:"wooCommerceRuleHeader",mixins:[i.a],props:{index:{type:Number,default:0},type:{type:String,default:""},extension:{type:Object,default:function(){}}}}},1404:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("h3",[this._v("#"+this._s(this.index+1+" "+this.getOrderStatusLabel(this.extension.order)+" (WooCommerce)"))])},staticRenderFns:[]}},1405:function(e,t,o){var i=o(335)(o(1406),o(1407),!1,null,null,null);e.exports=i.exports},1406:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(962);t.default={name:"wooCommerceRuleInfo",mixins:[i.a],props:{type:{type:String,default:""},extension:{type:Object,default:function(){}}},methods:{getBookingStatusLabelWithDefault:function(){return"default"===this.extension.booking?this.$root.labels.default_appointment_status:this.getBookingStatusLabel(this.extension.booking,this.type)}}}},1407:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{staticClass:"zero-margin-bottom",staticStyle:{"min-height":"20px"},attrs:{sm:24}},[e._v("\n "+e._s(e.$root.labels.booking+": "+e.getBookingStatusLabelWithDefault())+"\n ")])],1),e._v(" "),o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{staticClass:"zero-margin-bottom",staticStyle:{"min-height":"20px"},attrs:{sm:24}},[e._v("\n "+e._s(e.$root.labels.payment+": "+e.getPaymentStatusLabel(e.extension.payment))+"\n ")])],1),e._v(" "),o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{staticClass:"zero-margin-bottom",staticStyle:{"min-height":"20px"},attrs:{sm:24}},[e._v("\n "+e._s(e.$root.labels.wc_status_update_order+": "+(e.extension.update?e.$root.labels.wc_status_update_order_yes:e.$root.labels.wc_status_update_order_no))+"\n ")])],1)],1)},staticRenderFns:[]}},1408:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{attrs:{"label-position":"top"}},[o("div",{staticClass:"am-extra-list",staticStyle:{padding:"0"}},[o("el-button",{staticClass:"am-dialog-create",attrs:{size:"large",type:"primary"},on:{click:e.addExtension}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.addLabel))])]),e._v(" "),o("transition-group",{attrs:{name:"list-complete"}},e._l(e.extensions,function(t,i){return o("div",{key:i+1,staticClass:"am-extra-item"},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{align:"top"}},[o("el-col",{attrs:{span:24}},[o("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle"}},[o("el-col",{attrs:{span:18}},[null===e.editedExtension||i!==e.extensions.indexOf(e.editedExtension)?o(e.formHeader,{tag:"component",attrs:{extension:t,type:e.type,index:i}}):e._e()],1),e._v(" "),null===e.editedExtension||i!==e.extensions.indexOf(e.editedExtension)?o("el-col",{staticClass:"extra-item-actions align-right",attrs:{span:6}},[o("span",{on:{click:function(o){return e.showEditExtensionDialog(t)}}},[o("img",{staticClass:"svg-amelia edit",attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})]),e._v(" "),e.oneRequired&&1===e.extensions.length?e._e():o("span",{on:{click:function(o){return e.showDeleteExtensionDialog(t)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})])]):e._e()],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!(null!==e.editedExtension&&i===e.extensions.indexOf(e.editedExtension)||null!==e.extensionToDelete&&i===e.extensions.indexOf(e.extensionToDelete)),expression:"(editedExtension === null || index !== extensions.indexOf(editedExtension)) && (extensionToDelete === null || index !== extensions.indexOf(extensionToDelete))"}],staticClass:"am-extra-item-data"},[o(e.formInfo,{tag:"component",attrs:{extension:t,type:e.type}})],1)],1)],1),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.extensionToDelete&&i===e.extensions.indexOf(e.extensionToDelete),expression:"extensionToDelete !== null && index === extensions.indexOf(extensionToDelete)"}],staticClass:"am-confirmation"},[o("p",[e._v(e._s(e.deleteMessage)+"?")]),e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(t){return e.hideDeleteExtensionDialog()}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){return e.deleteExtension(t)}}},[e._v(e._s(e.$root.labels.delete))])],1)])]),e._v(" "),o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.extensionEditDialog&&i===e.extensions.indexOf(e.editedExtension),expression:"extensionEditDialog === true && index === extensions.indexOf(editedExtension)"}]},[o("el-form",{ref:"extensionsRef",refInFor:!0,staticStyle:{padding:"0"},attrs:{model:t,rules:e.rules,"label-position":"top",id:"extension-"+e.type+"-"+i}},[[o(e.form,{tag:"component",attrs:{extension:t,extensions:e.extensions,type:e.type}})],e._v(" "),o("div",{staticClass:"align-right",staticStyle:{display:"inline-flex"}},[o("el-button",{attrs:{size:"small"},on:{click:function(o){return e.cancelExtension(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.saveExtension(i)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],2)],1)])],1)}),0)],1)])},staticRenderFns:[]}},1409:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.payments_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:e.$root.labels.currency+":"}},[o("el-select",{attrs:{filterable:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.currency,callback:function(t){e.$set(e.settings,"currency",t)},expression:"settings.currency"}},e._l(e.currencies,function(t){return o("el-option",{key:t.code,attrs:{label:t.name,value:t.code}},[o("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),o("span",{staticClass:"am-payment-settings-currency-name"},[e._v(e._s(t.name))]),e._v(" "),o("span",{staticClass:"am-payment-settings-currency-symbol"},[e._v(e._s(t.symbol))])])}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:e.$root.labels.price_symbol_position+":"}},[o("el-select",{on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.priceSymbolPosition,callback:function(t){e.$set(e.settings,"priceSymbolPosition",t)},expression:"settings.priceSymbolPosition"}},e._l(e.options.priceSymbolPositions,function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.example))])])}),1)],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:e.$root.labels.price_separator+":"}},[o("el-select",{on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.priceSeparator,callback:function(t){e.$set(e.settings,"priceSeparator",t)},expression:"settings.priceSeparator"}},e._l(e.options.priceSeparators,function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#7F8BA4","font-size":"13px"}},[e._v(e._s(t.example))])])}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:e.$root.labels.price_number_of_decimals+":"}},[o("el-input-number",{attrs:{min:0,max:5},on:{input:function(t){return e.clearValidation()}},model:{value:e.settings.priceNumberOfDecimals,callback:function(t){e.$set(e.settings,"priceNumberOfDecimals",t)},expression:"settings.priceNumberOfDecimals"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.hide_currency_symbol_frontend))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.hideCurrencySymbolFrontend,callback:function(t){e.$set(e.settings,"hideCurrencySymbolFrontend",t)},expression:"settings.hideCurrencySymbolFrontend"}})],1)],1)],1),e._v(" "),o("div",{style:{marginBottom:"24px"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:18}},[o("label",[e._v(e._s(e.$root.labels.custom_currency_symbol+":"))])]),e._v(" "),o("el-col",{attrs:{span:6}},[o("el-input",{style:{marginBottom:0,textAlign:"center"},attrs:{disabled:e.settings.hideCurrencySymbolFrontend},model:{value:e.settings.symbol,callback:function(t){e.$set(e.settings,"symbol",t)},expression:"settings.symbol"}})],1)],1)],1),e._v(" "),e.settings.wc.enabled?e._e():o("el-form-item",{attrs:{label:"placeholder",label:e.$root.labels.default_payment_method+":"}},[o("el-select",{model:{value:e.settings.defaultPaymentMethod,callback:function(t){e.$set(e.settings,"defaultPaymentMethod",t)},expression:"settings.defaultPaymentMethod"}},e._l(e.defaultPaymentMethods,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.hasDisabledBookablePaymentMethod?o("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.payment_warning_settings,closable:!1}}):e._e(),e._v(" "),o("el-popover",e._b({ref:"couponsPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:couponsPop",arg:"couponsPop"}],staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.coupons))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:function(t){return e.clearValidation()}},model:{value:e.settings.coupons,callback:function(t){e.$set(e.settings,"coupons",t)},expression:"settings.coupons"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"paymentLinksPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:paymentLinksPop",arg:"paymentLinksPop"}],staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("span",[e._v(e._s(e.$root.labels.payment_links_enable))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_enable_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.paymentLinks.enabled,callback:function(t){e.$set(e.settings.paymentLinks,"enabled",t)},expression:"settings.paymentLinks.enabled"}})],1)],1),e._v(" "),e.settings.paymentLinks.enabled?o("el-row",{staticStyle:{"margin-top":"16px"}},[o("el-col",[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.payment_links_redirect)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_redirect_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.getSiteUrl},model:{value:e.settings.paymentLinks.redirectUrl,callback:function(t){e.$set(e.settings.paymentLinks,"redirectUrl",t)},expression:"settings.paymentLinks.redirectUrl"}})],1)],1)],1):e._e(),e._v(" "),e.settings.paymentLinks.enabled&&"pending"===e.defaultAppointmentStatus?o("el-row",{staticStyle:{"margin-bottom":"16px !important"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("span",[e._v(e._s(e.$root.labels.payment_links_change_status))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.payment_links_change_status_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{model:{value:e.settings.paymentLinks.changeBookingStatus,callback:function(t){e.$set(e.settings.paymentLinks,"changeBookingStatus",t)},expression:"settings.paymentLinks.changeBookingStatus"}})],1)],1):e._e(),e._v(" "),e.settings.paymentLinks.enabled?o("el-alert",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.payment_links_warning,closable:!1}}):e._e()],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.on_site))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{disabled:!this.settings.payPal.enabled&&!this.settings.stripe.enabled&&!this.settings.mollie.enabled&&!this.settings.wc.enabled&&!this.settings.razorpay.enabled||this.settings.wc.enabled,"active-text":"","inactive-text":""},on:{change:e.toggleOnSite},model:{value:e.settings.onSite,callback:function(t){e.$set(e.settings,"onSite",t)},expression:"settings.onSite"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"wooCommercePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-collapse",{directives:[{name:"popover",rawName:"v-popover:wooCommercePop",arg:"wooCommercePop"}],class:{"am-lite-disabled":e.$root.isLite},model:{value:e.wooCommerceCollapse,callback:function(t){e.wooCommerceCollapse=t},expression:"wooCommerceCollapse"}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"wooCommerce"}},[o("template",{slot:"title"},[o("el-col",{attrs:{span:16}},[o("img",{staticClass:"svg-amelia",attrs:{id:"am-woocommerce",src:this.$root.getUrl+"public/img/payments/woocommerce.svg"}})]),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.wc.enabled,expression:"settings.wc.enabled"}],staticClass:"el-icon-circle-check"})],1),e._v(" "),o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.wc_service)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:e.toggleWooCommerce},model:{value:e.settings.wc.enabled,callback:function(t){e.$set(e.settings.wc,"enabled",t)},expression:"settings.wc.enabled"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.wc_on_site_if_free)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.onSiteIfFree,callback:function(t){e.$set(e.settings.wc,"onSiteIfFree",t)},expression:"settings.wc.onSiteIfFree"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:e.$root.labels.wc_page+":"}},[o("el-select",{model:{value:e.settings.wc.page,callback:function(t){e.$set(e.settings.wc,"page",t)},expression:"settings.wc.page"}},e._l([{value:"cart",label:e.$root.labels.wc_page_cart},{value:"checkout",label:e.$root.labels.wc_page_checkout}],function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{"margin-bottom":"0"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:e.$root.labels.wc_redirect_page+":"}},[o("el-select",{model:{value:e.settings.wc.redirectPage,callback:function(t){e.$set(e.settings.wc,"redirectPage",t)},expression:"settings.wc.redirectPage"}},e._l([{value:1,label:e.$root.labels.wc_redirect_page_1},{value:2,label:e.$root.labels.wc_redirect_page_2}],function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)],1),e._v(" "),e.$root.isLite?e._e():o("el-tabs",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],model:{value:e.activeWooCommerceRuleTab,callback:function(t){e.activeWooCommerceRuleTab=t},expression:"activeWooCommerceRuleTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.appointment,newExtension:{order:"",booking:"",payment:""},type:"appointment",oneRequired:!0}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?o("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[o("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.package,newExtension:{order:"",booking:"",payment:""},type:"package",oneRequired:!0}})],1):e._e(),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("extensions",{attrs:{form:"wooCommerceRule",formHeader:"wooCommerceRuleHeader",formInfo:"wooCommerceRuleInfo",addLabel:e.$root.labels.wc_rules_add,deleteMessage:e.$root.labels.wc_rules_delete_confirmation,extensions:e.settings.wc.rules.event,newExtension:{order:"",booking:"",payment:""},type:"event",oneRequired:!0}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Skip Checkout Get Value:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.skipCheckoutGetValueProcessing,callback:function(t){e.$set(e.settings.wc,"skipCheckoutGetValueProcessing",t)},expression:"settings.wc.skipCheckoutGetValueProcessing"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.wc.enabled,expression:"settings.wc.enabled === true"}],staticStyle:{display:"none"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v("Skip Get Item Data:")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.wc.skipGetItemDataProcessing,callback:function(t){e.$set(e.settings.wc,"skipGetItemDataProcessing",t)},expression:"settings.wc.skipGetItemDataProcessing"}})],1)],1)],2)],1),e._v(" "),o("el-popover",e._b({ref:"molliePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-collapse",{directives:[{name:"popover",rawName:"v-popover:molliePop",arg:"molliePop"}],class:{"am-lite-disabled":e.$root.isLite},model:{value:e.mollieCollapse,callback:function(t){e.mollieCollapse=t},expression:"mollieCollapse"}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"mollie"}},[o("template",{slot:"title"},[o("el-col",{attrs:{span:16}},[o("img",{staticClass:"svg-amelia",attrs:{id:"am-mollie",src:this.$root.getUrl+"public/img/payments/mollie.svg"}})]),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.mollie.enabled,expression:"settings.mollie.enabled"}],staticClass:"el-icon-circle-check"})],1),e._v(" "),o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.mollie_service)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},on:{change:e.toggleMollie},model:{value:e.settings.mollie.enabled,callback:function(t){e.$set(e.settings.mollie,"enabled",t)},expression:"settings.mollie.enabled"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled,expression:"settings.mollie.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.sandbox_mode)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleMollieValidationRules},model:{value:e.settings.mollie.testMode,callback:function(t){e.$set(e.settings.mollie,"testMode",t)},expression:"settings.mollie.testMode"}})],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled&&!1===e.settings.mollie.testMode,expression:"settings.mollie.enabled === true && settings.mollie.testMode === false"}],attrs:{label:e.$root.labels.live_api_key+":",prop:"mollie.liveApiKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.mollie.liveApiKey,callback:function(t){e.$set(e.settings.mollie,"liveApiKey","string"==typeof t?t.trim():t)},expression:"settings.mollie.liveApiKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.mollie.enabled&&!0===e.settings.mollie.testMode,expression:"settings.mollie.enabled === true && settings.mollie.testMode === true"}],attrs:{label:e.$root.labels.test_api_key+":",prop:"mollie.testApiKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.mollie.testApiKey,callback:function(t){e.$set(e.settings.mollie,"testApiKey","string"==typeof t?t.trim():t)},expression:"settings.mollie.testApiKey"}})],1)],2)],1),e._v(" "),o("el-popover",e._b({ref:"payPalPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-collapse",{directives:[{name:"popover",rawName:"v-popover:payPalPop",arg:"payPalPop"}],class:{"am-lite-disabled":e.$root.isLite},model:{value:e.payPalCollapse,callback:function(t){e.payPalCollapse=t},expression:"payPalCollapse"}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"payPal"}},[o("template",{slot:"title"},[o("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:this.$root.getUrl+"public/img/payments/paypal-light.svg"}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.payPal.enabled,expression:"settings.payPal.enabled"}],staticClass:"el-icon-circle-check"})]),e._v(" "),o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.payPal_service)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled||e.$root.isLite},on:{change:e.togglePayPal},model:{value:e.settings.payPal.enabled,callback:function(t){e.$set(e.settings.payPal,"enabled",t)},expression:"settings.payPal.enabled"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled,expression:"settings.payPal.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.sandbox_mode)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handlePayPalValidationRules},model:{value:e.settings.payPal.sandboxMode,callback:function(t){e.$set(e.settings.payPal,"sandboxMode",t)},expression:"settings.payPal.sandboxMode"}})],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!1===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === false"}],attrs:{label:e.$root.labels.live_client_id+":",prop:"payPal.liveApiClientId"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.liveApiClientId,callback:function(t){e.$set(e.settings.payPal,"liveApiClientId","string"==typeof t?t.trim():t)},expression:"settings.payPal.liveApiClientId"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!1===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === false"}],attrs:{label:e.$root.labels.live_secret+":",prop:"payPal.liveApiSecret"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.liveApiSecret,callback:function(t){e.$set(e.settings.payPal,"liveApiSecret","string"==typeof t?t.trim():t)},expression:"settings.payPal.liveApiSecret"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!0===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === true"}],attrs:{label:e.$root.labels.test_client_id+":",prop:"payPal.testApiClientId"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.testApiClientId,callback:function(t){e.$set(e.settings.payPal,"testApiClientId","string"==typeof t?t.trim():t)},expression:"settings.payPal.testApiClientId"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.payPal.enabled&&!0===e.settings.payPal.sandboxMode,expression:"settings.payPal.enabled === true && settings.payPal.sandboxMode === true"}],attrs:{label:e.$root.labels.test_secret+":",prop:"payPal.testApiSecret"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.payPal.testApiSecret,callback:function(t){e.$set(e.settings.payPal,"testApiSecret","string"==typeof t?t.trim():t)},expression:"settings.payPal.testApiSecret"}})],1)],2)],1),e._v(" "),o("el-popover",e._b({ref:"stripePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-collapse",{directives:[{name:"popover",rawName:"v-popover:stripePop",arg:"stripePop"}],class:{"am-lite-disabled":e.$root.isLite},model:{value:e.stripeCollapse,callback:function(t){e.stripeCollapse=t},expression:"stripeCollapse"}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"stripe"}},[e.showStripeAlert?o("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.stripe_ssl_warning,closable:!1}}):e._e(),e._v(" "),o("template",{slot:"title"},[o("img",{staticClass:"svg-amelia",attrs:{width:"40px",src:this.$root.getUrl+"public/img/payments/stripe.svg"}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.stripe.enabled,expression:"settings.stripe.enabled"}],staticClass:"el-icon-circle-check"})]),e._v(" "),o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.stripe_service)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled||e.$root.isLite},on:{change:e.toggleStripe},model:{value:e.settings.stripe.enabled,callback:function(t){e.$set(e.settings.stripe,"enabled",t)},expression:"settings.stripe.enabled"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled,expression:"settings.stripe.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.test_mode)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleStripeValidationRules},model:{value:e.settings.stripe.testMode,callback:function(t){e.$set(e.settings.stripe,"testMode",t)},expression:"settings.stripe.testMode"}})],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!1===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === false"}],attrs:{label:e.$root.labels.live_publishable_key+":",prop:"stripe.livePublishableKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.livePublishableKey,callback:function(t){e.$set(e.settings.stripe,"livePublishableKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.livePublishableKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!1===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === false"}],attrs:{label:e.$root.labels.live_secret_key+":",prop:"stripe.liveSecretKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.liveSecretKey,callback:function(t){e.$set(e.settings.stripe,"liveSecretKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.liveSecretKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!0===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === true"}],attrs:{label:e.$root.labels.test_publishable_key+":",prop:"stripe.testPublishableKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.testPublishableKey,callback:function(t){e.$set(e.settings.stripe,"testPublishableKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.testPublishableKey"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.stripe.enabled&&!0===e.settings.stripe.testMode,expression:"settings.stripe.enabled === true && settings.stripe.testMode === true"}],attrs:{label:e.$root.labels.test_secret_key+":",prop:"stripe.testSecretKey"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.stripe.testSecretKey,callback:function(t){e.$set(e.settings.stripe,"testSecretKey","string"==typeof t?t.trim():t)},expression:"settings.stripe.testSecretKey"}})],1)],2)],1),e._v(" "),o("el-popover",e._b({ref:"razorPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-collapse",{directives:[{name:"popover",rawName:"v-popover:razorPop",arg:"razorPop"}],class:{"am-lite-disabled":e.$root.isLite},model:{value:e.razorpayCollapse,callback:function(t){e.razorpayCollapse=t},expression:"razorpayCollapse"}},[o("el-collapse-item",{staticClass:"am-setting-box",attrs:{name:"razorpay"}},[o("template",{slot:"title"},[o("img",{staticClass:"svg-amelia",attrs:{width:"60px",src:this.$root.getUrl+"public/img/payments/razorpay.svg"}}),e._v(" "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.settings.razorpay.enabled,expression:"settings.razorpay.enabled"}],staticClass:"el-icon-circle-check"})]),e._v(" "),o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.razorpay_service)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:this.settings.wc.enabled||this.settings.mollie.enabled||e.$root.isLite},on:{change:e.toggleRazorpay},model:{value:e.settings.razorpay.enabled,callback:function(t){e.$set(e.settings.razorpay,"enabled",t)},expression:"settings.razorpay.enabled"}})],1)],1),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled,expression:"settings.razorpay.enabled === true"}],attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[o("p",[e._v(e._s(e.$root.labels.test_mode)+":")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.handleRazorpayValidationRules},model:{value:e.settings.razorpay.testMode,callback:function(t){e.$set(e.settings.razorpay,"testMode",t)},expression:"settings.razorpay.testMode"}})],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!1===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === false"}],attrs:{label:e.$root.labels.live_key_id+":",prop:"razorpay.liveKeyId"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.liveKeyId,callback:function(t){e.$set(e.settings.razorpay,"liveKeyId","string"==typeof t?t.trim():t)},expression:"settings.razorpay.liveKeyId"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!1===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === false"}],attrs:{label:e.$root.labels.live_key_secret+":",prop:"razorpay.liveKeySecret"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.liveKeySecret,callback:function(t){e.$set(e.settings.razorpay,"liveKeySecret","string"==typeof t?t.trim():t)},expression:"settings.razorpay.liveKeySecret"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!0===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === true"}],attrs:{label:e.$root.labels.test_key_id+":",prop:"razorpay.testKeyId"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.testKeyId,callback:function(t){e.$set(e.settings.razorpay,"testKeyId","string"==typeof t?t.trim():t)},expression:"settings.razorpay.testKeyId"}})],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!0===e.settings.razorpay.enabled&&!0===e.settings.razorpay.testMode,expression:"settings.razorpay.enabled === true && settings.razorpay.testMode === true"}],attrs:{label:e.$root.labels.test_key_secret+":",prop:"razorpay.testKeySecret"}},[o("el-input",{attrs:{"auto-complete":"off"},model:{value:e.settings.razorpay.testKeySecret,callback:function(t){e.$set(e.settings.razorpay,"testKeySecret","string"==typeof t?t.trim():t)},expression:"settings.razorpay.testKeySecret"}})],1)],2)],1),e._v(" "),o("el-collapse",{directives:[{name:"show",rawName:"v-show",value:e.settings.wc.enabled||e.settings.stripe.enabled||e.settings.payPal.enabled||e.settings.mollie.enabled||e.settings.razorpay.enabled,expression:"(settings.wc.enabled || settings.stripe.enabled || settings.payPal.enabled || settings.mollie.enabled || settings.razorpay.enabled)"}]},[o("el-collapse-item",{staticClass:"am-setting-box"},[o("template",{slot:"title"},[o("p",[e._v(e._s(e.$root.labels.set_metaData_and_description)+":")])]),e._v(" "),[e.settings.wc.enabled&&e.$root.settings.general.usedLanguages.length?o("select-translate",{on:{languageChanged:e.languageChanged}}):e._e(),e._v(" "),o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.appointments,name:"appointments"}},[o("payments-meta-data",{ref:"metaDataAppointments",attrs:{data:e.payments,customFields:e.customFields,coupons:e.coupons,categories:e.categories,language:e.language,tab:"appointments"}})],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?o("el-tab-pane",{attrs:{label:e.$root.labels.packages,name:"packages"}},[o("payments-meta-data",{ref:"metaDataPackages",attrs:{data:e.payments,language:e.language,tab:"packages"}})],1):e._e(),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.events,name:"events"}},[o("payments-meta-data",{ref:"metaDataEvents",attrs:{data:e.payments,customFields:e.customFields,coupons:e.coupons,language:e.language,tab:"events"}})],1)],1)]],2)],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1410:function(e,t,o){var i=o(335)(o(1411),o(1412),!1,null,null,null);e.exports=i.exports},1411:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696);t.default={mixins:[i.a],props:{roles:{type:Object}},data:function(){var e=this;return{rolesTab:"employee",rules:{"customerCabinet.pageUrl":[{required:!0,validator:function(t,o,i){var n=e.settings.customerCabinet.pageUrl;!e.settings.customerCabinet.enabled||/^((http|https):\/\/)/.test(n)&&""!==n?i():(e.rolesTab="customer",i(new Error(e.$root.labels.enter_valid_url_warning)))},trigger:"submit"}],"providerCabinet.pageUrl":[{required:!0,validator:function(t,o,i){var n=e.settings.providerCabinet.pageUrl;!e.settings.providerCabinet.enabled||/^((http|https):\/\/)/.test(n)&&""!==n?i():(e.rolesTab="employee",i(new Error(e.$root.labels.enter_valid_url_warning)))},trigger:"submit"}]},settings:Object.assign({},this.roles),limitPerCustomerFrom:{appointment:[{label:this.$root.labels.limit_app_date_booked,value:"dateBooked"},{label:this.$root.labels.limit_app_booking_date,value:"bookingDate"}],event:[{label:this.$root.labels.limit_events_date_booked,value:"dateBooked"},{label:this.$root.labels.limit_events_booking_date,value:"bookingDate"}]},limitPerCustomerTimeFrames:[{label:this.$root.labels.hour,value:"hour"},{label:this.$root.labels.day,value:"day"},{label:this.$root.labels.week,value:"week"},{label:this.$root.labels.month,value:"month"},{label:this.$root.labels.year,value:"year"}]}},updated:function(){this.inlineSVG()},mounted:function(){this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsRoles")},clearValidation:function(){this.$refs.settings.clearValidate()},onSubmit:function(){var e=this;this.$refs.settings.validate(function(t){if(!t)return!1;e.$emit("closeDialogSettingsRoles"),e.$emit("updateSettings",{roles:e.settings})})},showDialogTranslate:function(){this.$emit("showDialogTranslate",this.$root.labels.customer_cabinet)}}}},1412:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("h2",[e._v(e._s(e.$root.labels.roles_settings))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"settings",attrs:{model:e.settings,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-tabs",{model:{value:e.rolesTab,callback:function(t){e.rolesTab=t},expression:"rolesTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.employee,name:"employee"}},[o("BlockLite"),e._v(" "),o("br"),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_services)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowConfigureServices,callback:function(t){e.$set(e.settings,"allowConfigureServices",t)},expression:"settings.allowConfigureServices"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_schedule)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.allowConfigureSchedule,callback:function(t){e.$set(e.settings,"allowConfigureSchedule",t)},expression:"settings.allowConfigureSchedule"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_days_off)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.allowConfigureDaysOff,callback:function(t){e.$set(e.settings,"allowConfigureDaysOff",t)},expression:"settings.allowConfigureDaysOff"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_configure_special_days)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.allowConfigureSpecialDays,callback:function(t){e.$set(e.settings,"allowConfigureSpecialDays",t)},expression:"settings.allowConfigureSpecialDays"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_write_appointments)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.allowWriteAppointments,callback:function(t){e.$set(e.settings,"allowWriteAppointments",t)},expression:"settings.allowWriteAppointments"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_write_events)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.allowWriteEvents,callback:function(t){e.$set(e.settings,"allowWriteEvents",t)},expression:"settings.allowWriteEvents"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_employee_cabinet)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.providerCabinet.enabled,callback:function(t){e.$set(e.settings.providerCabinet,"enabled",t)},expression:"settings.providerCabinet.enabled"}})],1)],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.providerCabinet.enabled,expression:"settings.providerCabinet.enabled"}],class:{"am-lite-disabled":e.$root.isLite},attrs:{prop:"providerCabinet.pageUrl"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.employee_cabinet)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.employee_cabinet_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off",disabled:e.$root.isLite},on:{input:e.clearValidation},model:{value:e.settings.providerCabinet.pageUrl,callback:function(t){e.$set(e.settings.providerCabinet,"pageUrl",t)},expression:"settings.providerCabinet.pageUrl"}})],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.customer,name:"customer"}},[o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.inspect_customer_info)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.inspect_customer_info_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.inspectCustomerInfo,callback:function(t){e.$set(e.settings,"inspectCustomerInfo",t)},expression:"settings.inspectCustomerInfo"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.automatically_create_customer)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.automatically_create_customer_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.automaticallyCreateCustomer,callback:function(t){e.$set(e.settings,"automaticallyCreateCustomer",t)},expression:"settings.automaticallyCreateCustomer"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_reschedule)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_customer_reschedule_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerReschedule,callback:function(t){e.$set(e.settings,"allowCustomerReschedule",t)},expression:"settings.allowCustomerReschedule"}})],1)],1)],1),e._v(" "),o("el-popover",e._b({ref:"allowCustomerReschedule",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:allowCustomerReschedule",arg:"allowCustomerReschedule"}],staticClass:"am-setting-box am-switch-box",class:{"am-lite-disabled":e.$root.isLite}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.enable_customer_cabinet)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":"",disabled:e.$root.isLite},model:{value:e.settings.customerCabinet.enabled,callback:function(t){e.$set(e.settings.customerCabinet,"enabled",t)},expression:"settings.customerCabinet.enabled"}})],1)],1)],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.require_cabinet_password)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.require_cabinet_password_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.customerCabinet.loginEnabled,callback:function(t){e.$set(e.settings.customerCabinet,"loginEnabled",t)},expression:"settings.customerCabinet.loginEnabled"}})],1)],1)],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_delete_profile)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_customer_delete_profile_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerDeleteProfile,callback:function(t){e.$set(e.settings,"allowCustomerDeleteProfile",t)},expression:"settings.allowCustomerDeleteProfile"}})],1)],1)],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled&&(e.$root.licence.isPro||e.$root.licence.isDeveloper),expression:"settings.customerCabinet.enabled && ($root.licence.isPro || $root.licence.isDeveloper)"}],staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:20}},[e._v("\n "+e._s(e.$root.labels.allow_customer_cancel_packages)+"\n ")]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowCustomerCancelPackages,callback:function(t){e.$set(e.settings,"allowCustomerCancelPackages",t)},expression:"settings.allowCustomerCancelPackages"}})],1)],1)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.settings.customerCabinet.enabled,expression:"settings.customerCabinet.enabled"}],attrs:{prop:"customerCabinet.pageUrl"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.customer_cabinet)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.customer_cabinet_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})]),e._v(" "),o("div",{staticClass:"am-service-translate",on:{click:function(t){return e.showDialogTranslate()}}},[o("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.manage_languages)+"\n ")])],1),e._v(" "),o("el-input",{attrs:{"auto-complete":"off"},on:{input:e.clearValidation},model:{value:e.settings.customerCabinet.pageUrl,callback:function(t){e.$set(e.settings.customerCabinet,"pageUrl",t)},expression:"settings.customerCabinet.pageUrl"}})],1),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{class:{"am-lite-disabled":e.$root.isLite},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_app_per_customer)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_app_per_customer_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:5}},[o("el-switch",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.limitPerCustomerService.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerService,"enabled",t)},expression:"settings.limitPerCustomerService.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerService.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_appointments)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerService.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerService,"numberOfApp",t)},expression:"settings.limitPerCustomerService.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerService.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),o("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerService.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerService,"timeFrame",t)},expression:"settings.limitPerCustomerService.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerService.period,callback:function(t){e.$set(e.settings.limitPerCustomerService,"period",t)},expression:"settings.limitPerCustomerService.period"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerService.enabled?o("el-row",{staticStyle:{"margin-top":"10px",display:"flex","align-items":"baseline"},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.$root.labels.limit_app_per_customer_from)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_app_per_customer_from_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-select",{model:{value:e.settings.limitPerCustomerService.from,callback:function(t){e.$set(e.settings.limitPerCustomerService,"from",t)},expression:"settings.limitPerCustomerService.from"}},e._l(e.limitPerCustomerFrom.appointment,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1):e._e()],1),e._v(" "),e.$root.licence.isPro||e.$root.licence.isDeveloper?o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{class:{"am-lite-disabled":e.$root.isLite},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_package_per_customer)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_package_per_customer_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:5}},[o("el-switch",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.limitPerCustomerPackage.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"enabled",t)},expression:"settings.limitPerCustomerPackage.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerPackage.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_packages)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerPackage.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"numberOfApp",t)},expression:"settings.limitPerCustomerPackage.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerPackage.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),o("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerPackage.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"timeFrame",t)},expression:"settings.limitPerCustomerPackage.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerPackage.period,callback:function(t){e.$set(e.settings.limitPerCustomerPackage,"period",t)},expression:"settings.limitPerCustomerPackage.period"}})],1)],1)],1):e._e()],1):e._e(),e._v(" "),o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{class:{"am-lite-disabled":e.$root.isLite},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:19}},[e._v("\n "+e._s(e.$root.labels.limit_events_per_customer)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_events_per_customer_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:5}},[o("el-switch",{attrs:{disabled:e.$root.isLite},model:{value:e.settings.limitPerCustomerEvent.enabled,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"enabled",t)},expression:"settings.limitPerCustomerEvent.enabled"}})],1)],1),e._v(" "),e.settings.limitPerCustomerEvent.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.number_of_events)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerEvent.numberOfApp,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"numberOfApp",t)},expression:"settings.limitPerCustomerEvent.numberOfApp"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerEvent.enabled?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.time_frame)+":\n ")]),e._v(" "),o("el-select",{attrs:{placeholder:""},model:{value:e.settings.limitPerCustomerEvent.timeFrame,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"timeFrame",t)},expression:"settings.limitPerCustomerEvent.timeFrame"}},e._l(e.limitPerCustomerTimeFrames,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.period)+":\n ")]),e._v(" "),o("el-input-number",{attrs:{min:1},model:{value:e.settings.limitPerCustomerEvent.period,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"period",t)},expression:"settings.limitPerCustomerEvent.period"}})],1)],1)],1):e._e(),e._v(" "),e.settings.limitPerCustomerEvent.enabled?o("el-row",{staticStyle:{"margin-top":"10px",display:"flex","align-items":"baseline"},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.$root.labels.limit_events_per_customer_from)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.limit_events_per_customer_from_tt)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-select",{model:{value:e.settings.limitPerCustomerEvent.from,callback:function(t){e.$set(e.settings.limitPerCustomerEvent,"from",t)},expression:"settings.limitPerCustomerEvent.from"}},e._l(e.limitPerCustomerFrom.event,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1):e._e()],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.admin,name:"admin"}},[o("div",{staticClass:"am-setting-box am-switch-box"},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:16}},[e._v("\n "+e._s(e.$root.labels.allow_admin_book_at_any_time)+"\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.allow_admin_book_at_any_time_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:e.settings.allowAdminBookAtAnyTime,callback:function(t){e.$set(e.settings,"allowAdminBookAtAnyTime",t)},expression:"settings.allowAdminBookAtAnyTime"}})],1)],1)],1)])],1)],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1413:function(e,t,o){var i=o(335)(o(1414),o(1420),!1,null,null,null);e.exports=i.exports},1414:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1006),n=o.n(i),a=o(1007),s=o.n(a),l=o(696),r=o(338),c=o(701);t.default={mixins:[l.a,r.a,c.a],props:{weekSchedule:{type:Array},daysOff:{type:Array},showWorkingHours:{default:!0,type:Boolean},showDaysOff:{default:!0,type:Boolean}},data:function(){return{dayOffSettings:this.daysOff.slice(0),weekScheduleSettings:this.weekSchedule?this.weekSchedule.slice(0):[],activeTab:"hours"}},mounted:function(){this.showWorkingHours&&this.translateDayStrings(),this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogSettingsWorkHoursDaysOff")},onSubmit:function(){var e=[],t=this;this.weekScheduleSettings.forEach(function(o){var i=[],n=[],a=86400,s=0;o.breaks.forEach(function(e){e.time.length&&e.time[0]&&e.time[1]&&n.push({time:[e.time[0],e.time[1]]})}),"periods"in o&&o.periods.length&&o.periods.forEach(function(e){var o=t.getStringTimeInSeconds(e.time[0]),n=t.getStringTimeInSeconds(e.time[1]);a=o<a?o:a,s=n>s?n:s,e.time.length&&e.time[0]&&e.time[1]&&i.push({time:[e.time[0],e.time[1]]})}),e.push({day:o.day,time:[i.length?t.secondsToTimeSelectStep(a):null,i.length?t.secondsToTimeSelectStep(s):null],periods:i,breaks:n})}),this.$emit("closeDialogSettingsWorkHoursDaysOff"),this.$emit("updateSettings",{daysOff:this.dayOffSettings,weekSchedule:e})},changeDaysOff:function(e){e.forEach(function(e){delete e.id}),this.dayOffSettings=e},translateDayStrings:function(){for(var e=["weekday_monday","weekday_tuesday","weekday_wednesday","weekday_thursday","weekday_friday","weekday_saturday","weekday_sunday"],t=0;t<this.weekSchedule.length;t++){var o=e[t];this.weekSchedule[t].day=this.$root.labels[o]}}},computed:{showTabs:function(){return this.showWorkingHours&&this.showDaysOff},showWorkingHoursOnly:function(){return this.showWorkingHours&&!this.showDaysOff},showDaysOffOnly:function(){return!this.showWorkingHours&&this.showDaysOff}},components:{DaysOff:n.a,WorkingHours:s.a}}},1415:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(338),n=o(696),a=o(712);t.default={mixins:[n.a,i.a,a.a],props:{daysOff:{type:Array},listedDaysOff:{default:function(){return[]},type:Array},allowEditCompanyDaysOff:{type:Boolean,default:!0,required:!1},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){return{editedDayOffIndex:-1,filterDate:this.$moment(),model:{dayOffDates:null,dayOffId:0,dayOffName:"",dayOffRepeat:0},rules:{dayOffName:[{required:!0,message:this.$root.labels.days_off_name_warning,trigger:"submit"}],dayOffDates:[{required:!0,message:this.$root.labels.days_off_date_warning,trigger:"submit"}]},settings:this.daysOff.slice(0),showDayOffForm:!1,yearDaysOff:[],yearListedDaysOff:[]}},mounted:function(){this.filterDaysOff()},methods:{editDayOff:function(){},addDayOff:function(){},saveDayOff:function(){},deleteDayOff:function(){},filter:function(){},editCompanyDaysOffSettings:function(){},filterDaysOff:function(){}},computed:{filterYear:function(){},dayOff:function(){}},watch:{settings:function(){},listedDaysOff:function(){}},components:{}}},1416:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-days-off",class:{"am-lite-container-disabled":e.$root.isLite}},[o("div",{staticClass:"am-dialog-table"},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:20,type:"flex",align:"middle"}},[o("el-col",{staticClass:"am-days-off__header"},[o("el-date-picker",{attrs:{type:"year",clearable:!1,placeholder:e.$root.labels.pick_a_year},on:{change:e.filterDaysOff},model:{value:e.filterDate,callback:function(t){e.filterDate=t},expression:"filterDate"}}),e._v(" "),o("div",{staticClass:"am-days-off__legend"},[o("div",{staticClass:"am-legend-repeat"},[o("span",{staticClass:"type repeat"}),e._v(e._s(e.$root.labels.repeat_every_year))]),e._v(" "),o("div",{staticClass:"am-legend-once"},[o("span",{staticClass:"type once"}),e._v(e._s(e.$root.labels.once_off))])])],1)],1)],1),e._v(" "),o("div",{staticClass:"am-employee-days-off"},[o("div",{staticClass:"am-dialog-table"},[e.listedDaysOff.length>0?o("h4",[e._v(e._s(e.$root.labels.employee_days_off))]):e._e(),e._v(" "),o("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[o("el-col",{attrs:{span:12}},[o("span",[e._v(e._s(e.$root.labels.date))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("span",[e._v(e._s(e.$root.labels.day_off_name))])])],1),e._v(" "),e._l(e.yearDaysOff,function(t,i){return o("el-row",{key:i,staticClass:"am-day-off",staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:20,type:"flex",align:"middle"}},[o("el-col",{attrs:{xs:12,sm:12,md:12}},[o("span",{staticClass:"type",class:{repeat:t.repeat,once:!t.repeat}}),e._v(" "),o("el-tooltip",{attrs:{effect:"dark",content:t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate),placement:"top-start"}},[o("span",[e._v("\n "+e._s(t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])])],1),e._v(" "),o("el-col",{staticClass:"am-day-off__name-column",attrs:{xs:12,sm:12,md:8}},[o("span",{attrs:{title:t.name}},[e._v(e._s(t.name))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{xs:24,sm:24,md:4}},[o("div",{staticClass:"am-edit-element",on:{click:function(o){return e.editDayOff(t)}}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),o("div",{staticClass:"am-delete-element",on:{click:function(o){return e.deleteDayOff(t)}}},[o("i",{staticClass:"el-icon-minus"})])])],1)}),e._v(" "),o("el-row",[o("el-col",[o("div",{staticClass:"am-add-element",on:{click:e.addDayOff}},[o("i",{staticClass:"el-icon-plus"}),o("span",{staticClass:"am-add-day-off"},[e._v(e._s(e.$root.labels.add_day_off))])])])],1)],2),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayOffForm,expression:"showDayOffForm"}],staticClass:"am-day-off-add"},[o("el-form",{ref:"model",attrs:{model:e.model,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.saveDayOff(t)}}},[o("el-form-item",{attrs:{label:e.$root.labels.day_off_name+":",prop:"dayOffName"}},[o("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.add_day_off_placeholder},model:{value:e.model.dayOffName,callback:function(t){e.$set(e.model,"dayOffName",t)},expression:"model.dayOffName"}})],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{staticClass:"v-calendar-column",attrs:{sm:24}},[o("el-form-item",{attrs:{label:e.$root.labels.date+":",prop:"dayOffDates"}},[o("v-date-picker",{attrs:{mode:"range","input-class":"el-input__inner","popover-visibility":"focus","popover-direction":"top","popover-align":e.screenWidth<768?"center":"left","is-required":!0,"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"},placeholder:e.$root.labels.pick_a_date_or_range,formats:e.vCalendarFormats},model:{value:e.model.dayOffDates,callback:function(t){e.$set(e.model,"dayOffDates",t)},expression:"model.dayOffDates"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{sm:12}},[o("el-checkbox",{staticClass:"am-semi-strong",model:{value:e.model.dayOffRepeat,callback:function(t){e.$set(e.model,"dayOffRepeat",t)},expression:"model.dayOffRepeat"}},[e._v("\n "+e._s(e.$root.labels.days_off_repeat_yearly)+"\n ")])],1),e._v(" "),o("el-col",{staticClass:"align-right am-day-off-add-buttons",attrs:{sm:12}},[o("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDayOffForm=!e.showDayOffForm}}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{size:"small",type:"primary"},on:{click:e.saveDayOff}},[e._v("\n "+e._s(e.$root.labels.days_off_add)+"\n ")])],1)],1)],1)],1)])],1),e._v(" "),e.listedDaysOff.length>0?o("div",{staticClass:"am-company-days-off"},[o("div",{staticClass:"am-dialog-table"},[o("h4",[e._v(e._s(e.$root.labels.company_days_off))]),e._v(" "),o("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[o("el-col",{attrs:{span:12}},[o("span",[e._v(e._s(e.$root.labels.date))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("span",[e._v(e._s(e.$root.labels.day_off_name))])])],1),e._v(" "),e._l(e.yearListedDaysOff,function(t,i){return o("el-row",{key:i,staticClass:"am-day-off",attrs:{gutter:20,type:"flex",align:"middle"}},[o("el-col",{attrs:{span:12}},[o("span",{staticClass:"type",class:{repeat:t.repeat,once:!t.repeat}}),e._v(" "),o("span",[e._v("\n "+e._s(t.startDate===t.endDate?e.getFrontedFormattedDate(t.startDate):e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("span",[e._v(e._s(t.name))])])],1)}),e._v(" "),e.allowEditCompanyDaysOff?o("el-row",[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"am-add-element",on:{click:e.editCompanyDaysOffSettings}},[e._v(e._s(e.$root.labels.edit_company_days_off)+"\n ")])])],1):e._e()],2)]):e._e()])},staticRenderFns:[]}},1417:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(338),a=o(701),s=o(1418);t.default={mixins:[s.a,i.a,n.a,a.a],props:{activeTab:"",weekSchedule:null,categorizedServiceList:null,locations:null},data:function(){return{rules:{startTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}],endTime:[{required:!0,message:this.$root.labels.select_time_warning,trigger:"submit"}]},responsiveGrid:{editHours:{workHours:24,hour:24,services:24,location:24},periods:{hours:this.categorizedServiceList?4:6,services:this.categorizedServiceList?12:10,locations:5,edit:3}}}},methods:{getWorkingPeriodsInSeconds:function(e){var t=[],o=this;return this.getDayHours(e).filter(function(e){return"Work"===e.type}).map(function(e){return e.data}).map(function(e){return e.time}).forEach(function(i){e.form.data.time[0]===i[0]&&e.form.data.time[1]===i[1]||t.push([o.getStringTimeInSeconds(i[0]),o.getStringTimeInSeconds(i[1])])}),t},getDayHours:function(e){var t=this,o=[];return e.periods.forEach(function(e,t){o.push({index:t,type:"Work",data:e})}),e.breaks.forEach(function(e,t){o.push({index:t,type:"Break",data:e})}),o.sort(function(e,o){return t.$moment("2000-01-01 "+e.data.time[0]+":00","YYYY-MM-DD HH:mm:ss").diff(t.$moment("2000-01-01 "+o.data.time[0]+":00","YYYY-MM-DD HH:mm:ss"))})},getServicesNames:function(e){var t=[];return this.categorizedServiceList&&this.categorizedServiceList.forEach(function(o){o.serviceList.forEach(function(o){-1!==e.indexOf(o.id)&&t.push(o.name)})}),t},selectAllInCategory:function(e,t){var o=this.categorizedServiceList.find(function(e){return e.id===t}).serviceList.filter(function(e){return e.state}).map(function(e){return e.id});_.isEqual(_.intersection(o,e.serviceIds),o)?e.serviceIds=_.difference(e.serviceIds,o):e.serviceIds=_.uniq(e.serviceIds.concat(o))},getTimeSelectOptionsForBreaks:function(e,t,o,i){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:o||e,maxTime:i||t}},editHours:function(e,t,o){var i=this;switch(t){case"Work":e.form.show=!1,setTimeout(function(){e.form={data:e.periods[o],oldData:JSON.parse(JSON.stringify(e.periods[o])),isNew:!1,type:"Work",show:!0,index:o},i.findFreePeriods(i.getWorkingPeriodsInSeconds(e))},200);break;case"Break":e.form.show=!1,setTimeout(function(){e.form={data:e.breaks[o],oldData:JSON.parse(JSON.stringify(e.breaks[o])),isNew:!1,type:"Break",show:!0,index:o}},200)}},deleteHours:function(e,t,o){switch(t){case"Work":e.periods.splice(o,1);break;case"Break":e.breaks.splice(o,1)}},showNewHoursForm:function(e){e.form={data:{time:"Work"===e.form.type?[e.periods.length?e.periods[e.periods.length-1].time[1]:"",""]:["",""],id:null,locationId:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]},isNew:!0,type:this.$root.isLite&&e.periods.length>0?"Break":"Work",show:!0,index:null},this.findFreePeriods(this.getWorkingPeriodsInSeconds(e))},hideHoursForm:function(e){switch(e.form.show=!1,e.form.type){case"Work":e.form.isNew||(e.periods[e.form.index]=e.form.oldData);break;case"Break":e.form.isNew||(e.breaks[e.form.index]=e.form.oldData)}},saveHoursForm:function(e){this.$refs.workDay[0].validate(function(t){if(!t)return!1;switch(e.form.type){case"Work":e.form.isNew?e.periods.push({id:null,time:e.form.data.time,locationIds:e.form.data.locationIds,serviceIds:e.form.data.serviceIds,locationId:e.form.data.locationId,periodLocationList:e.form.data.periodLocationList,periodServiceList:e.form.data.periodServiceList}):e.periods[e.form.index]=e.form.data;break;case"Break":e.form.isNew?e.breaks.push({id:null,time:e.form.data.time}):e.breaks[e.form.index]=e.form.data}e.form.show=!1})},applyToAllDays:function(e){var t=JSON.parse(JSON.stringify(e.periods));t.forEach(function(e){e.id=null,e.periodLocationList=[],e.periodServiceList=[],e.savedPeriodServiceList=[]});var o=JSON.parse(JSON.stringify(e.breaks));o.forEach(function(e){e.id=null}),this.weekSchedule.forEach(function(i){i.id=null,i.periods=JSON.parse(JSON.stringify(t)),i.breaks=JSON.parse(JSON.stringify(o)),i.time=JSON.parse(JSON.stringify(e.time))})},getPeriodLocationsIds:function(e){return e.locationIds.length?e.locationIds:e.locationId?[e.locationId]:[]},getLocationsNames:function(e){var t=this,o=[];return e.forEach(function(e){var i=t.locations.find(function(t){return t.id===e});i&&o.push(i.name)}),o},getColumnLength:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.categorizedServiceList&&this.servicesCount>1&&this.locations&&this.locations.length>1?"mini"===e?{workHours:24,hour:24,services:24,location:24}:"mobile"===e?{workHours:24,hour:12,services:24,location:24}:{workHours:8,hour:12,services:8,location:8}:this.categorizedServiceList&&this.servicesCount>1?"mini"===e?{workHours:24,hour:24,services:24,location:0}:"mobile"===e?{workHours:24,hour:12,services:24,location:0}:{workHours:10,hour:12,services:14,location:0}:this.locations&&this.locations.length>1?"mini"===e?{workHours:24,hour:24,services:0,location:24}:"mobile"===e?{workHours:24,hour:12,services:0,location:24}:{workHours:10,hour:12,services:0,location:14}:"mini"===e?{workHours:24,hour:24,services:0,location:0}:{workHours:24,hour:12,services:0,location:0}},handleResize:function(){if("workingHours"===this.activeTab||"hours"===this.activeTab){var e=this.$refs.workingHours;void 0!==e&&e.offsetWidth<320?(this.responsiveGrid.periods={hours:24,services:24,locations:24,edit:24},this.responsiveGrid.editHours=this.getColumnLength("mini")):void 0!==e&&e.offsetWidth<650?(this.responsiveGrid.periods={hours:24,services:24,locations:24,edit:24},this.responsiveGrid.editHours=this.getColumnLength("mobile")):(this.responsiveGrid.periods={hours:this.categorizedServiceList?4:6,services:this.categorizedServiceList?12:10,locations:5,edit:3},this.responsiveGrid.editHours=this.getColumnLength())}}},created:function(){window.addEventListener("resize",this.handleResize)},computed:{servicesCount:function(){var e=0;return this.categorizedServiceList.forEach(function(t){e+=t.serviceList.length}),e}},watch:{activeTab:function(){"workingHours"!==this.activeTab&&"hours"!==this.activeTab||this.handleResize()}}}},1418:function(e,t,o){"use strict";t.a={data:function(){return{freePeriodsInSeconds:[0,86400]}},methods:{startTimeChanged:function(e,t,o,i){if(null===e){i(null);var n=document.getElementsByClassName("time-select-item"),a=!0,s=!1,l=void 0;try{for(var r,c=n[Symbol.iterator]();!(a=(r=c.next()).done);a=!0)for(var u=r.value,p=this.getStringTimeInSeconds(u.innerHTML),d=0;d<o.length;d++)if(p>o[d][0]&&p<o[d][1]){u.style.pointerEvents="none",u.style.color="#DCDCDC";break}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}}},findFreePeriods:function(e){for(var t=[],o=0,i=0;i<e.length;i++)o!==e[i][0]&&t.push([o,e[i][0]]),o=e[i][1];86400!==o&&t.push([o,86400]),this.freePeriodsInSeconds=t},getBorderTime:function(e,t){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:e,maxTime:t}},getPeriodBorderTime:function(e,t,o){var i=null,n=null;if(null===e)return this.getBorderTime(i,n);for(var a=this.getStringTimeInSeconds(e),s=0;s<this.freePeriodsInSeconds.length;s++)if(a>=this.freePeriodsInSeconds[s][0]&&a<this.freePeriodsInSeconds[s][1]){o?(i=this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][0]-this.getTimeSlotLength()),n=null!==t?t:this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][1]+this.getTimeSlotLength())):(i=e,n=this.secondsToTimeSelectStep(this.freePeriodsInSeconds[s][1]+this.getTimeSlotLength()));break}return null===i&&null===n&&(i=n=e),this.getBorderTime(i,n)}}}},1419:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"workingHours",staticClass:"am-working-hours"},e._l(e.weekSchedule,function(t,i){return o("div",{key:t.id,staticClass:"am-dialog-table"},[o("el-row",{staticClass:"am-dialog-table-head hours"},[o("el-col",{attrs:{span:12}},[o("span",[e._v(e._s(t.day))])]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:12}},[0===i?o("span",{staticClass:"am-add-element",on:{click:function(o){return e.applyToAllDays(t)}}},[e._v("\n "+e._s(e.$root.labels.apply_to_all_days)+"\n ")]):e._e(),e._v(" "),o("div",{staticClass:"am-add-element",on:{click:function(o){return e.showNewHoursForm(t)}}},[o("i",{staticClass:"el-icon-plus"})])])],1),e._v(" "),o("transition",{attrs:{name:"fade"}},[t.form.show?o("div",{staticClass:"am-add-period"},[o("el-form",{ref:"workDay",refInFor:!0,attrs:{"label-position":"top",model:t}},[t.form.isNew?o("el-row",{staticClass:"am-add-period-type",attrs:{gutter:10}},[o("el-col",[!e.$root.isLite||e.$root.isLite&&0===t.periods.length?o("el-radio",{attrs:{label:"Work"},model:{value:t.form.type,callback:function(o){e.$set(t.form,"type",o)},expression:"workDay.form.type"}},[e._v(e._s(e.$root.labels.work_hours))]):e._e(),e._v(" "),o("el-radio",{attrs:{label:"Break"},model:{value:t.form.type,callback:function(o){e.$set(t.form,"type",o)},expression:"workDay.form.type"}},[e._v(e._s(e.$root.labels.breaks))])],1)],1):e._e(),e._v(" "),"Work"===t.form.type?o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{attrs:{span:e.responsiveGrid.editHours.workHours}},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.work_hours))])]),e._v(" "),o("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[o("el-form-item",{attrs:{rules:e.rules.startTime,prop:"form.data.time.0"}},[o("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getPeriodBorderTime(t.form.data.time[0],t.form.data.time[1],!0),size:"mini","popper-class":"am-dropdown-cabinet"},on:{change:function(o){e.startTimeChanged(t.form.data.time[0],t.form.data.time[1],e.getWorkingPeriodsInSeconds(t),function(e){t.form.data.time[1]=e})},focus:function(o){e.startTimeChanged(t.form.data.time[0],t.form.data.time[1],e.getWorkingPeriodsInSeconds(t),function(e){t.form.data.time[1]=e})}},model:{value:t.form.data.time[0],callback:function(o){e.$set(t.form.data.time,0,o)},expression:"workDay.form.data.time[0]"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[o("el-form-item",{attrs:{rules:e.rules.endTime,prop:"form.data.time.1"}},[o("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getPeriodBorderTime(t.form.data.time[0],t.form.data.time[1],!1),size:"mini","popper-class":"am-dropdown-cabinet",disabled:null===t.form.data.time[0]},model:{value:t.form.data.time[1],callback:function(o){e.$set(t.form.data.time,1,o)},expression:"workDay.form.data.time[1]"}})],1)],1)],1)],1),e._v(" "),e.categorizedServiceList&&e.servicesCount>1?o("el-col",{attrs:{span:e.responsiveGrid.editHours.services}},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.services.charAt(0).toUpperCase()+e.$root.labels.services.slice(1)))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_services_filter1_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:24}},[o("el-select",{staticClass:"am-select-service",attrs:{multiple:"",filterable:"",placeholder:e.$root.labels.period_services_filter,"popper-class":"am-dropdown-cabinet","collapse-tags":"",size:"mini",disabled:e.$root.isLite},model:{value:t.form.data.serviceIds,callback:function(o){e.$set(t.form.data,"serviceIds",o)},expression:"workDay.form.data.serviceIds"}},e._l(e.categorizedServiceList,function(i){return i.serviceList.filter(function(e){return e.state}).length>0?o("div",{key:i.id},[o("div",{staticClass:"am-drop-parent",on:{click:function(o){return e.selectAllInCategory(t.form.data,i.id)}}},[o("span",[e._v(e._s(i.name))])]),e._v(" "),e._l(i.serviceList,function(t){return t.state?o("el-option",{key:t.id,staticClass:"am-drop-child",attrs:{label:t.name,value:t.id}}):e._e()})],2):e._e()}),0)],1)],1)],1):e._e(),e._v(" "),e.locations&&e.locations.length>1?o("el-col",{attrs:{span:e.responsiveGrid.editHours.location}},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.location))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_location_filter1_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:24}},[o("el-select",{staticClass:"am-select-service",attrs:{multiple:"",size:"mini",filterable:"",clearable:"","collapse-tags":"",placeholder:e.$root.labels.location,"popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.locationIds,callback:function(o){e.$set(t.form.data,"locationIds",o)},expression:"workDay.form.data.locationIds"}},e._l(e.locations,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1)],1):e._e()],1):"Break"===t.form.type?o("el-row",{attrs:{gutter:10}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.break_hours))])]),e._v(" "),o("p",{staticStyle:{display:"none"}},[e._v(e._s(e.$root.labels.break_hours))]),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{rules:e.rules.startTime,prop:"form.data.time.0"}},[o("el-time-select",{staticStyle:{"margin-bottom":"14px"},attrs:{"picker-options":e.getTimeSelectOptionsForBreaks(t.periods.length?t.periods[0].time[0]:"00:00",t.periods.length?t.periods[t.periods.length-1].time[1]:"24:00","",t.form.data.time[1]),size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.time[0],callback:function(o){e.$set(t.form.data.time,0,o)},expression:"workDay.form.data.time[0]"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{rules:e.rules.endTime,prop:"form.data.time.1"}},[o("el-time-select",{staticStyle:{"margin-bottom":"14px"},attrs:{"picker-options":e.getTimeSelectOptionsForBreaks(t.periods.length?t.periods[0].time[0]:"00:00",t.periods.length?t.periods[t.periods.length-1].time[1]:"24:00",t.form.data.time[0],""),size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.form.data.time[1],callback:function(o){e.$set(t.form.data.time,1,o)},expression:"workDay.form.data.time[1]"}})],1)],1)],1):e._e(),e._v(" "),o("div",{staticClass:"am-working-hours-buttons"},[o("div",{staticClass:"align-left"},[o("el-button",{attrs:{size:"small"},on:{click:function(o){return e.hideHoursForm(t)}}},[e._v("\n "+e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){return e.saveHoursForm(t)}}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)])],1)],1):e._e()]),e._v(" "),o("transition-group",{attrs:{name:"fade",tag:"div"}},e._l(e.getDayHours(t),function(n,a){return o("div",{key:a+1,staticClass:"am-period"},[o("el-row",{attrs:{gutter:10,type:"flex"}},[o("el-col",{staticClass:"am-period__services",attrs:{span:e.responsiveGrid.periods.hours}},[o("span",{staticClass:"am-overflow-ellipsis"},[o("span",{class:{"am-period-break":"Break"===n.type}},[e._v(e._s(n.data.time[0])+" - "+e._s(n.data.time[1]))])])]),e._v(" "),o("el-col",{staticClass:"am-flexed2 am-period__services",attrs:{span:e.responsiveGrid.periods.services}},["Work"===n.type&&n.data.serviceIds.length>0?o("span",{staticClass:"am-overflow-ellipsis"},[o("span",{ref:"serviceName-"+i+"-"+a,refInFor:!0,attrs:{title:e.getServicesNames(n.data.serviceIds).join(", ")}},[e._v("\n "+e._s(e.getServicesNames(n.data.serviceIds).join(", "))+"\n ")])]):e._e()]),e._v(" "),o("el-col",{staticClass:"am-flexed2 am-period__locations",attrs:{span:e.responsiveGrid.periods.locations}},["Work"===n.type&&e.getPeriodLocationsIds(n.data).length>0?o("span",{staticClass:"am-overflow-ellipsis",attrs:{title:e.getLocationsNames(e.getPeriodLocationsIds(n.data)).join(", ")}},[e._v("\n "+e._s(e.getLocationsNames(e.getPeriodLocationsIds(n.data)).join(", "))+"\n ")]):e._e()]),e._v(" "),o("el-col",{staticClass:"am-flexed2 am-period__services",class:{mobile:24===e.responsiveGrid.periods.edit},staticStyle:{margin:"auto"},attrs:{span:e.responsiveGrid.periods.edit}},[o("div",{staticClass:"am-edit-element",on:{click:function(o){return e.editHours(t,n.type,n.index)}}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),o("div",{staticClass:"am-delete-element",on:{click:function(o){return e.deleteHours(t,n.type,n.index)}}},[o("i",{staticClass:"el-icon-minus"})])])],1)],1)}),0)],1)}),0)},staticRenderFns:[]}},1420:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:20}},[e.showWorkingHoursOnly?o("h2",[e._v("\n "+e._s(e.$root.labels.company_work_hours_settings)+"\n ")]):e.showDaysOffOnly?o("h2",[e._v("\n "+e._s(e.$root.labels.company_days_off_settings)+"\n ")]):o("h2",[e._v("\n "+e._s(e.$root.labels.work_hours_days_off_settings)+"\n ")])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{attrs:{"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[e.showTabs?o("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.work_hours,name:"hours"}},[o("working-hours",{attrs:{weekSchedule:e.weekScheduleSettings}})],1),e._v(" "),o("el-tab-pane",{attrs:{label:e.$root.labels.days_off,name:"off"}},[o("BlockLite"),e._v(" "),o("days-off",{attrs:{daysOff:e.dayOffSettings},on:{changeDaysOff:e.changeDaysOff}})],1)],1):e._e(),e._v(" "),e.showWorkingHoursOnly?o("working-hours",{attrs:{weekSchedule:e.weekScheduleSettings,categorizedServiceList:[],locations:[]}}):e._e(),e._v(" "),e.showDaysOffOnly?o("days-off",{attrs:{daysOff:e.dayOffSettings},on:{changeDaysOff:e.changeDaysOff}}):e._e()],1)],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)])])},staticRenderFns:[]}},1421:function(e,t,o){var i=o(335)(o(1422),o(1431),!1,null,null,null);e.exports=i.exports},1422:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1423),n=o.n(i),a=o(1006),s=o.n(a),l=o(1007),r=o.n(l),c=o(1426),u=o.n(c),p=o(721),d=o.n(p),m=o(709),f=o.n(m),h=o(769),g=(o.n(h),o(812)),v=o.n(g),b=o(696),_=o(338),y=o(701),w=o(700),x=o(699),k=o(1008),C=o(1429),$=o(1430),P=o(772),S=o.n(P);t.default={mixins:[b.a,_.a,y.a,w.a,x.a,k.a,$.a,C.a],props:{locations:null,employee:null,editCategorizedServiceList:null,editWeekDayList:null,companyDaysOff:null,futureAppointments:null,isDisabledDuplicate:null},data:function(){return{hideDescription:!0,appointmentsServices:[],dialogLoading:!0,employeeTabs:"details",errors:{email:""},executeUpdate:!0,formOptions:{wpUsers:[]},googleAuthURL:"",outlookAuthURL:"",googleLoading:!1,outlookLoading:!1,zoomUsers:[],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:!0,message:this.$root.labels.enter_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],locationId:[{required:this.visibleLocations().length>0,message:this.$root.labels.enter_location_warning,trigger:"blur"}],password:[{min:4,max:128,message:this.$root.labels.new_password_length,trigger:"submit"}]}}},created:function(){var e=this;this.instantiateDialog(),setTimeout(function(){e.hideDescription=!1},500)},updated:function(){this.instantiateDialog()},methods:{showDialogTranslate:function(e){this.$emit("showDialogTranslate",e)},instantiateDialog:function(){if((null!==this.employee||null!==this.employee&&0===this.employee.id)&&!0===this.executeUpdate){this.$root.settings.capabilities.canWriteOthers&&(0!==this.employee.id?this.getWPUsers(this.employee.externalId):this.getWPUsers(0)),this.employee.googleCalendar=null,this.employee.outlookCalendar=null,this.employee.googleCalendar&&!this.employee.googleCalendar.token&&this.getGoogleAuthURL(!1),this.employee.outlookCalendar&&!this.employee.outlookCalendar.token&&this.getOutlookAuthURL(!1);var e=this.visibleLocations();1===e.length&&(this.employee.locationId=e[0].id),this.$root.settings.zoom.enabled&&this.getZoomUsers(),this.employee.id in this.futureAppointments&&(this.appointmentsServices=this.futureAppointments[this.employee.id]),this.$set(this.employee,"sendEmployeePanelAccessEmail",!0),this.$root.settings.capabilities.canWriteOthers||(this.dialogLoading=!1,this.inlineDialogEmployeeSVG()),null!==this.employee.description&&this.employee.description.startsWith("\x3c!-- Content --\x3e")&&(this.employee.descriptionHtml=this.employee.description),this.executeUpdate=!1}},checkCapacityLimits:function(e){this.clearValidation(),e.minCapacity>e.maxCapacity&&(e.maxCapacity=e.minCapacity)},validationFailCallback:function(){this.employeeTabs="details"},errorCallback:function(e){var t=this;t.errors.email="",setTimeout(function(){t.errors.email=e,t.employeeTabs="details"},200)},closeDialog:function(){this.$emit("closeDialog")},trimNames:function(){this.employee.firstName=this.employee.firstName.trim(),this.employee.lastName=this.employee.lastName.trim()},getParsedEntity:function(){this.employee.serviceList=this.getParsedServiceList(this.editCategorizedServiceList),this.employee.weekDayList=this.getParsedWeekDayList(this.editWeekDayList),this.trimNames();var e=JSON.parse(JSON.stringify(this.employee));return e.serviceList.forEach(function(e){e.customPricing=null}),e},changeDaysOff:function(){},changeSpecialDays:function(){},phoneFormatted:function(e,t){this.clearValidation(),this.employee.phone=e,this.employee.countryPhoneIso=t&&"auto"!==t?t:null},pictureSelected:function(e,t){this.employee.pictureFullPath=e,this.employee.pictureThumbPath=t},getWPUsers:function(e){var t=this;this.$http.get(this.$root.getAjaxUrl+"/users/wp-users",{params:{id:e,role:"provider"}}).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.employee.externalId)&&(t.employee.externalId=""),t.dialogLoading=!1,t.inlineDialogEmployeeSVG()})},visibleLocations:function(){var e=this;return this.locations.filter(function(t){return"visible"===t.status||e.employee&&"hidden"===t.status&&t.id===e.employee.locationId})},showCompanyDaysOffSettingsDialog:function(){},clearValidation:function(){void 0!==this.$refs.employee&&this.$refs.employee.clearValidate()},selectCreateNewWPUser:function(){this.employee.externalId=0,this.$refs.wpUser.blur()},getGoogleAuthURL:function(){},getOutlookAuthURL:function(){},getZoomUsers:function(){},redirectToGoogleAuthPage:function(){},redirectToOutlookAuthPage:function(){},disconnectFromGoogleAccount:function(){},disconnectFromOutlookAccount:function(){},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)}},computed:{filteredLocations:function(){return this.visibleLocations()}},components:{AssignedServices:n.a,PhoneInput:f.a,PictureUpload:v.a,DaysOff:s.a,WorkingHours:r.a,SpecialDays:u.a,DialogActions:d.a,Money:h.Money,ContentBlock:S.a}}},1423:function(e,t,o){var i=o(335)(o(1424),o(1425),!1,null,null,null);e.exports=i.exports},1424:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(975),n=o.n(i),a=o(700),s=o(699),l=o(769);o.n(l);t.default={name:"AssignedServices",components:{CustomDuration:n.a,Money:l.Money},mixins:[a.a,s.a],props:{categorizedServiceList:{type:Array,default:function(){return[]}},weekSchedule:{type:Array,default:function(){return[]}},specialDays:{type:Array,default:function(){return[]}},futureAppointments:{type:Object,default:function(){return{}}},employeeId:{type:Number,default:0}},data:function(){return{editedDurationsService:null,showDurations:!1}},created:function(){var e=this;this.categorizedServiceList.forEach(function(t){e.handleCheckSingleInCategory(t)})},methods:{toggleDurations:function(e){var t=this.editedDurationsService&&this.editedDurationsService.id!==e.id||!this.editedDurationsService?e:null;this.editedDurationsService=t,this.showDurations=!!t},changeCategory:function(e){var t=this,o=this.categorizedServiceList.find(function(t){return t.id===e});o.serviceList.forEach(function(e){0!==Object.keys(t.futureAppointments).length&&void 0!==t.futureAppointments[t.employeeId]&&-1!==t.futureAppointments[t.employeeId].indexOf(e.id)&&!1===o.state?t.notify(t.$root.labels.error,t.$root.labels.service_provider_remove_fail_all+" "+e.name+" "+t.$root.labels.service,"error"):(e.state=o.state,t.changeSelectedPeriodServices(e))})},changeService:function(e,t){0!==Object.keys(this.futureAppointments).length&&void 0!==this.futureAppointments[this.employeeId]&&-1!==this.futureAppointments[this.employeeId].indexOf(t.id)&&(t.state=!0,this.notify(this.$root.labels.error,this.$root.labels.service_provider_remove_fail,"error")),this.changeSelectedPeriodServices(t),this.handleCheckSingleInCategory(e)},handleCheckSingleInCategory:function(e){e.state=e.serviceList.filter(function(e){return!0===e.state}).length===e.serviceList.length},checkCapacityLimits:function(e){e.minCapacity>e.maxCapacity&&(e.maxCapacity=e.minCapacity)},changeSelectedPeriodServices:function(e){e.state?this.weekSchedule.forEach(function(t){t.periods.forEach(function(t){"savedPeriodServiceList"in t&&t.savedPeriodServiceList.forEach(function(o){o.serviceId===e.id&&(t.periodServiceList.push(o),t.serviceIds.push(e.id))})})}):(this.weekSchedule.forEach(function(t){t.periods.forEach(function(t){t.periodServiceList.forEach(function(o,i){o.serviceId===e.id&&t.periodServiceList.splice(i,1)}),t.serviceIds.forEach(function(o,i){o===e.id&&t.serviceIds.splice(i,1)})})}),this.specialDays.forEach(function(t){t.periodList.forEach(function(t){t.periodServiceList.forEach(function(o,i){o.serviceId===e.id&&t.periodServiceList.splice(i,1)})})}))}}}},1425:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",e._l(e.categorizedServiceList,function(t){return t.serviceList.length>0?o("div",{key:t.id,staticClass:"am-dialog-table am-assigned-services"},[o("el-row",{staticClass:"am-dialog-table-head",attrs:{gutter:24}},[o("el-col",{staticClass:"am-three-dots",attrs:{span:12}},[o("el-checkbox",{on:{change:function(o){return e.changeCategory(t.id)}},model:{value:t.state,callback:function(o){e.$set(t,"state",o)},expression:"category.state"}}),e._v(" "),o("span",[e._v(e._s(t.name))])],1),e._v(" "),o("el-col",{attrs:{span:6}},[e._v("\n "+e._s(e.$root.labels.capacity)+"\n ")]),e._v(" "),o("el-col",{attrs:{span:6}},[e._v("\n "+e._s(e.$root.labels.price)+"\n ")])],1),e._v(" "),e._l(t.serviceList,function(i){return o("div",{key:i.value},[o("el-row",{staticClass:"am-assigned-services__service-row",attrs:{gutter:10,type:"flex",align:"middle"}},[o("el-col",{staticClass:"am-assigned-services__service-row__name",attrs:{span:12}},[o("el-checkbox",{on:{change:function(o){return e.changeService(t,i)}},model:{value:i.state,callback:function(t){e.$set(i,"state",t)},expression:"item.state"}}),e._v(" "),o("span",{attrs:{title:i.name}},[e._v(e._s(i.name))])],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("p",{staticStyle:{display:"none"}},[e._v(e._s(e.$root.labels.minimum_capacity))]),e._v(" "),o("el-popover",e._b({ref:"minCapacityPop",refInFor:!0,attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-input-number",{attrs:{disabled:!i.state||e.$root.isLite,value:i.minCapacity,min:1,controls:!1},on:{input:function(t){return e.checkCapacityLimits(i)}},model:{value:i.minCapacity,callback:function(t){e.$set(i,"minCapacity",t)},expression:"item.minCapacity"}})],1),e._v(" "),o("el-col",{attrs:{span:3}},[o("p",{staticStyle:{display:"none"}},[e._v(e._s(e.$root.labels.maximum_capacity))]),e._v(" "),o("el-popover",e._b({ref:"maxCapacityPop",refInFor:!0,attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-input-number",{attrs:{disabled:!i.state||e.$root.isLite,value:i.maxCapacity,min:i.minCapacity,controls:!1},on:{input:function(t){return e.checkCapacityLimits(i)}},model:{value:i.maxCapacity,callback:function(t){e.$set(i,"maxCapacity",t)},expression:"item.maxCapacity"}})],1),e._v(" "),o("el-col",{attrs:{span:4}},[o("p",{staticStyle:{display:"none"}},[e._v(e._s(e.$root.labels.price))]),e._v(" "),o("money",e._b({staticClass:"el-input__inner",attrs:{disabled:!i.state},model:{value:i.price,callback:function(t){e.$set(i,"price",t)},expression:"item.price"}},"money",e.moneyComponentData,!1))],1),e._v(" "),i.customPricing&&i.customPricing.enabled?o("el-col",{attrs:{span:2}},[o("span",{on:{click:function(t){return e.toggleDurations(i)}}},[o("img",{staticClass:"svg-amelia edit",staticStyle:{cursor:"pointer"},attrs:{width:"16px",src:e.$root.getUrl+"public/img/edit.svg"}})])]):e._e()],1),e._v(" "),i.customPricing&&i.customPricing.enabled?o("el-row",{staticStyle:{"margin-bottom":"0"}},[o("div",{staticClass:"am-extra-item"},[o("el-collapse-transition",[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showDurations&&e.editedDurationsService.id===i.id,expression:"showDurations && editedDurationsService.id === item.id"}]},[o("custom-duration",{attrs:{service:i,enabledDelete:!1,enabledAdd:!1,enabledDuration:!1}})],1)])],1)]):e._e()],1)})],2):e._e()}),0)},staticRenderFns:[]}},1426:function(e,t,o){var i=o(335)(o(1427),o(1428),!1,null,null,null);e.exports=i.exports},1427:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(696),n=o(338),a=o(701),s=o(697),l=o(712);t.default={mixins:[i.a,n.a,a.a,s.a,l.a],props:{activeTab:"",categorizedServiceList:null,locations:null,specialDays:null,shouldScrollView:{type:Boolean,default:!0,required:!1},isCabinet:{type:Boolean,default:!1,required:!1}},data:function(){return{model:{},rules:{dateRange:[{required:!0,message:this.$root.labels.special_day_date_warning,trigger:"submit"}],startTime:[{required:!0,message:this.$root.labels.special_day_start_time_warning,trigger:"submit"}],endTime:[{required:!0,message:this.$root.labels.special_day_end_time_warning,trigger:"submit"}]},specialDayModel:this.getInitSpecialDayModel(),showSpecialDayForm:!1,responsiveGrid:{editHours:{workHours:24,hour:24,services:24,location:24}}}},created:function(){window.addEventListener("resize",this.handleResize)},mounted:function(){},methods:{getColumnLength:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.categorizedServiceList&&this.servicesCount>1&&this.locations&&this.locations.length>1?"mini"===e?{workHours:22,hour:24,services:22,location:22}:"mobile"===e?{workHours:22,hour:12,services:22,location:22}:{workHours:8,hour:12,services:8,location:8}:this.categorizedServiceList&&this.servicesCount>1?"mini"===e?{workHours:22,hour:24,services:22,location:0}:"mobile"===e?{workHours:22,hour:12,services:22,location:0}:{workHours:10,hour:12,services:12,location:0}:this.locations&&this.locations.length>1?"mini"===e?{workHours:22,hour:24,services:0,location:22}:"mobile"===e?{workHours:22,hour:12,services:0,location:22}:{workHours:10,hour:12,services:0,location:14}:"mini"===e?{workHours:22,hour:24,services:0,location:0}:{workHours:22,hour:12,services:0,location:0}},handleResize:function(){if("specialDays"===this.activeTab||"specialDays"===this.activeTab){var e=this.$refs.specialDays;e.offsetWidth<320?this.responsiveGrid.editHours=this.getColumnLength("mini"):e.offsetWidth<650?this.responsiveGrid.editHours=this.getColumnLength("mobile"):this.responsiveGrid.editHours=this.getColumnLength()}},getInitSpecialDayModel:function(){return{index:null,id:null,dateRange:null,periodList:[{id:null,startTime:"",endTime:"",locationId:null,locationIds:[],serviceIds:[],periodLocationList:[],periodServiceList:[]}]}},addSpecialDay:function(){},editSpecialDay:function(){},deleteSpecialDay:function(){},saveSpecialDay:function(){},getSpecialDayServices:function(){},selectAllInCategory:function(){},getPeriodBorderTime:function(e,t){var o="24:00",i="00:00";return e.periodList.forEach(function(e,n){t===n-1&&(o=e.startTime),t===n+1&&(i=e.endTime)}),[this.secondsToTimeSelectStep(this.getStringTimeInSeconds(i)-this.getTimeSlotLength()),this.secondsToTimeSelectStep(this.getStringTimeInSeconds(o)+this.getTimeSlotLength())]},addPeriod:function(){},deletePeriod:function(e){this.specialDayModel.periodList.splice(e,1)},clearValidation:function(){void 0!==this.$refs.specialDayModel&&this.$refs.specialDayModel.clearValidate()}},computed:{servicesCount:function(){var e=0;return this.categorizedServiceList.forEach(function(t){e+=t.serviceList.length}),e}},watch:{activeTab:function(){"specialDays"!==this.activeTab&&"special"!==this.activeTab||this.handleResize()}}}},1428:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:{"am-lite-container-disabled":e.$root.isLite}},[o("div",{ref:"specialDays",staticClass:"am-employee-special-days"},[o("div",{staticClass:"am-dialog-table"},[o("el-row",{staticClass:"am-dialog-table-head days",attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("span",[e._v("\n "+e._s(e.$root.labels.special_days)+"\n ")])])],1),e._v(" "),e._l(e.specialDays,function(t,i){return o("div",{key:i+1,staticClass:"am-special-day"},[o("el-row",[o("el-col",{attrs:{span:20}},[o("div",{staticClass:"am-special-day-data"},[o("span",{staticClass:"am-strong"},[e._v("\n "+e._s(e.$root.labels.date+": ")+"\n ")]),e._v(" "),o("span",[e._v("\n "+e._s(e.getFrontedFormattedDate(t.startDate)+" - "+e.getFrontedFormattedDate(t.endDate))+"\n ")])]),e._v(" "),o("div",{staticClass:"am-special-day-data"},[o("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.work_hours)+": ")]),e._v(" "),e._l(t.periodList,function(t,i){return o("span",{key:i+1},[e._v("\n ("+e._s(e.getFrontedFormattedTime(t.startTime))+" - "+e._s(e.getFrontedFormattedTime(t.endTime))+")\n "+e._s(i!==t.length-1&&t.length>1?"; ":"")+"\n ")])})],2),e._v(" "),o("div",{staticClass:"am-special-day-data"},[o("span",{staticClass:"am-strong"},[e._v(e._s(e.$root.labels.special_days_reflect_services)+": ")]),e._v(" "),o("span",{staticClass:"am-special-day-services"},[o("span",{staticClass:"am-special-day-service"},[e._v("\n "+e._s(e.getSpecialDayServices(t))+"\n ")])])])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:4}},[o("div",{staticClass:"am-edit-element",on:{click:function(t){return e.editSpecialDay(i)}}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/edit-pen.svg"}})]),e._v(" "),o("div",{staticClass:"am-delete-element",on:{click:function(t){return e.deleteSpecialDay(i)}}},[o("i",{staticClass:"el-icon-minus"})])])],1)],1)}),e._v(" "),o("el-row",[o("el-col",[o("div",{staticClass:"am-add-element",on:{click:e.addSpecialDay}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",[e._v("\n "+e._s(e.$root.labels.add_special_day)+"\n ")])])])],1)],2),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showSpecialDayForm,expression:"showSpecialDayForm"}],staticClass:"am-special-day-add"},[o("el-form",{ref:"specialDayModel",attrs:{model:e.specialDayModel,"label-position":"top",id:"specialDay"},on:{submit:function(e){e.preventDefault()}}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{staticClass:"v-calendar-column",staticStyle:{overflow:"visible"},attrs:{sm:24}},[o("el-form-item",{attrs:{label:e.$root.labels.date+":",prop:"dateRange",rules:e.rules.dateRange}},[o("v-date-picker",{staticStyle:{"margin-bottom":"20px"},attrs:{mode:"range","popover-visibility":"focus","popover-direction":"bottom","input-class":"el-input__inner","is-required":!0,"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"},"popover-align":e.screenWidth<768?"center":"left",placeholder:e.$root.labels.pick_a_date_or_range,formats:e.vCalendarFormats,"available-dates":{start:this.$moment().subtract(1,"days").toDate()}},on:{input:e.clearValidation},model:{value:e.specialDayModel.dateRange,callback:function(t){e.$set(e.specialDayModel,"dateRange",t)},expression:"specialDayModel.dateRange"}})],1)],1)],1),e._v(" "),o("transition-group",{attrs:{name:"fade"}},e._l(e.specialDayModel.periodList,function(t,i){return o("div",{key:i+1,staticClass:"am-period"},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{attrs:{span:e.responsiveGrid.editHours.workHours}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.work_hours))])]),e._v(" "),o("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[o("el-form-item",{attrs:{prop:"periodList."+i+".startTime",rules:e.rules.startTime}},[o("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{size:"mini","is-required":!0,"popper-class":"am-dropdown-cabinet","picker-options":e.getTimeSelectOptionsWithLimits(e.getPeriodBorderTime(e.specialDayModel,i)[0],t.endTime)},on:{change:e.clearValidation},model:{value:t.startTime,callback:function(o){e.$set(t,"startTime",o)},expression:"period.startTime"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:e.responsiveGrid.editHours.hour}},[o("el-form-item",{attrs:{prop:"periodList."+i+".endTime",rules:e.rules.endTime}},[o("el-time-select",{staticStyle:{"margin-bottom":"12px"},attrs:{"picker-options":e.getTimeSelectOptionsWithLimits(t.startTime,e.getPeriodBorderTime(e.specialDayModel,i)[1]),size:"mini","is-required":!0,"popper-class":"am-dropdown-cabinet"},on:{change:e.clearValidation},model:{value:t.endTime,callback:function(o){e.$set(t,"endTime",o)},expression:"period.endTime"}})],1)],1)],1)],1),e._v(" "),e.categorizedServiceList&&e.servicesCount>1?o("el-col",{attrs:{span:e.responsiveGrid.editHours.services}},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.services.charAt(0).toUpperCase()+e.$root.labels.services.slice(1)))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_services_filter2_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:24}},[e.categorizedServiceList?o("el-select",{staticClass:"am-select-service",staticStyle:{"margin-bottom":"12px"},attrs:{multiple:"",filterable:"","collapse-tags":"",size:"mini","popper-class":"am-dropdown-cabinet",placeholder:e.$root.labels.period_services_filter},on:{change:function(t){return e.clearValidation()}},model:{value:t.serviceIds,callback:function(o){e.$set(t,"serviceIds",o)},expression:"period.serviceIds"}},e._l(e.categorizedServiceList,function(i){return i.serviceList.filter(function(e){return e.state}).length>0?o("div",{key:i.id},[o("div",{staticClass:"am-drop-parent",on:{click:function(o){return e.selectAllInCategory(t,i.id)}}},[o("span",[e._v(e._s(i.name))])]),e._v(" "),e._l(i.serviceList,function(t){return t.state?o("el-option",{key:t.id,staticClass:"am-drop-child",attrs:{label:t.name,value:t.id}}):e._e()})],2):e._e()}),0):e._e()],1)],1)],1):e._e(),e._v(" "),e.locations&&e.locations.length>1?o("el-col",{attrs:{span:e.responsiveGrid.editHours.location}},[o("el-row",{staticStyle:{"flex-wrap":"wrap"},attrs:{gutter:10,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"4px"},attrs:{span:24}},[o("span",[e._v(e._s(e.$root.labels.location))]),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.period_location_filter2_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{attrs:{span:24}},[e.locations.length?o("el-select",{staticClass:"am-select-service",staticStyle:{"margin-bottom":"12px"},attrs:{multiple:"",filterable:"",clearable:"",placeholder:e.$root.labels.location,"collapse-tags":"",size:"mini","popper-class":"am-dropdown-cabinet"},model:{value:t.locationIds,callback:function(o){e.$set(t,"locationIds",o)},expression:"period.locationIds"}},e._l(e.locations,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1):e._e()],1)],1)],1):e._e(),e._v(" "),e.specialDayModel.periodList.length>1?o("el-col",{attrs:{span:2}},[o("div",{staticClass:"am-delete-element",on:{click:function(t){return e.deletePeriod(i)}}},[o("i",{staticClass:"el-icon-minus"})])]):e._e()],1)],1)}),0),e._v(" "),o("el-row",[o("el-col",{staticClass:"align-left",attrs:{sm:24}},[o("div",{staticClass:"am-add-elements"},[o("div",{staticClass:"am-add-element",on:{click:e.addPeriod}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$root.labels.add_period)+"\n ")])])])],1),e._v(" "),o("el-row",{staticClass:"am-special-day-buttons"},[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{size:"small"},on:{click:function(t){e.showSpecialDayForm=!e.showSpecialDayForm}}},[e._v(e._s(e.$root.labels.cancel)+"\n ")]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{size:"small",type:"primary"},on:{click:e.saveSpecialDay}},[e._v("\n "+e._s(e.$root.labels.save_special_day)+"\n ")])],1)],1)],1)],1)])],1)])},staticRenderFns:[]}},1429:function(e,t,o){"use strict";var i=o(696);t.a={mixins:[i.a],methods:{redirectToGoogleAuthPage:function(){this.googleLoading=!0,window.location.href=this.googleAuthURL},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)}}}},1430:function(e,t,o){"use strict";var i=o(696);t.a={mixins:[i.a],methods:{redirectToOutlookAuthPage:function(){this.outlookLoading=!0,window.location.href=this.outlookAuthURL},inlineDialogEmployeeSVG:function(){var e=this;setTimeout(function(){e.inlineSVG()},10)}}}},1431:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[o("div",{staticClass:"am-dialog-loader-content"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),o("p",[e._v(e._s(e.$root.labels.loader_message))])])]),e._v(" "),e.employee&&!e.dialogLoading?o("div",{staticClass:"am-dialog-scrollable",class:{"am-edit":0!==e.employee.id}},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:14}},[0!==e.employee.id?o("h2",[e._v(e._s(e.$root.isLite?e.$root.labels.settings_employee:e.$root.labels.edit_employee)+" ")]):o("h2",[e._v(e._s(e.$root.isLite?e.$root.labels.settings_employee:e.$root.labels.new_employee))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:10}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("el-form",{ref:"employee",attrs:{model:e.employee,rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-tabs",{model:{value:e.employeeTabs,callback:function(t){e.employeeTabs=t},expression:"employeeTabs"}},[o("el-tab-pane",{attrs:{label:e.$root.labels.details,name:"details"}},[o("div",{staticClass:"am-employee-profile"},[o("picture-upload",{attrs:{"edited-entity":this.employee,"entity-name":"employee"},on:{pictureSelected:e.pictureSelected}}),e._v(" "),o("h2",[e._v(e._s(e.employee.firstName)+" "+e._s(e.employee.lastName))]),e._v(" "),void 0!==e.employee.activity?o("span",{staticClass:"am-employee-status-label",class:e.employee.activity},[e._v("\n "+e._s(e.getEmployeeActivityLabel(e.employee.activity))+"\n ")]):e._e()],1),e._v(" "),o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{sm:12}},[o("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate("firstName")}}},[o("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(" "),o("el-form-item",{attrs:{label:e.$root.labels.first_name+":",prop:"firstName"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimNames()}},model:{value:e.employee.firstName,callback:function(t){e.$set(e.employee,"firstName",t)},expression:"employee.firstName"}})],1)],1),e._v(" "),o("el-col",{attrs:{sm:12}},[o("div",{staticClass:"am-event-translate",staticStyle:{display:"inline-block",float:"right",cursor:"pointer"},on:{click:function(t){return e.showDialogTranslate("lastName")}}},[o("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(" "),o("el-form-item",{attrs:{label:e.$root.labels.last_name+":",prop:"lastName"}},[o("el-input",{attrs:{"auto-complete":"off"},on:{input:function(t){return e.clearValidation()},change:function(t){return e.trimNames()}},model:{value:e.employee.lastName,callback:function(t){e.$set(e.employee,"lastName",t)},expression:"employee.lastName"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{sm:12}},[o("el-form-item",{attrs:{label:e.$root.labels.email+":",prop:"email",error:e.errors.email}},[o("el-input",{attrs:{"auto-complete":"off",placeholder:e.$root.labels.email_placeholder},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.email,callback:function(t){e.$set(e.employee,"email",t)},expression:"employee.email"}})],1)],1),e._v(" "),o("el-col",{attrs:{sm:12}},[e.locations.length?o("el-form-item",{attrs:{label:e.$root.labels.location+":",prop:"locationId"}},[o("el-select",{attrs:{placeholder:""},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.locationId,callback:function(t){e.$set(e.employee,"locationId",t)},expression:"employee.locationId"}},e._l(e.filteredLocations,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e()],1)],1),e._v(" "),o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{sm:12}},[!0===e.$root.settings.capabilities.canWriteOthers?o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.wp_user)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.wp_user_employee_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-popover",e._b({ref:"externalIdPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("el-select",{directives:[{name:"popover",rawName:"v-popover:externalIdPop",arg:"externalIdPop"}],ref:"wpUser",attrs:{filterable:"",placeholder:e.$root.labels.select_wp_user,clearable:"",disabled:e.$root.isLite},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.externalId,callback:function(t){e.$set(e.employee,"externalId",t)},expression:"employee.externalId"}},[o("div",{staticClass:"am-drop"},[o("div",{staticClass:"am-drop-create-item",on:{click:e.selectCreateNewWPUser}},[e._v("\n "+e._s(e.$root.labels.create_new)+"\n ")]),e._v(" "),e._l(e.formOptions.wpUsers,function(e){return o("el-option",{key:e.value,class:{hidden:0===e.value},attrs:{label:e.label,value:e.value}})})],2)])],1):e._e()],1),e._v(" "),o("el-col",{attrs:{sm:12}},[o("el-form-item",{attrs:{label:e.$root.labels.phone+":"}},[o("phone-input",{attrs:{countryPhoneIso:e.employee.countryPhoneIso,savedPhone:e.employee.phone},on:{phoneFormatted:e.phoneFormatted}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{span:12}},[o("el-popover",e._b({ref:"passwordPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),"admin"===this.$root.settings.role||"manager"===this.$root.settings.role?o("el-form-item",{attrs:{label:e.$root.labels.employee_panel_password+":",prop:"password"}},[o("el-input",{directives:[{name:"popover",rawName:"v-popover:passwordPop",arg:"passwordPop"}],attrs:{"auto-complete":"off",placeholder:e.$root.labels.enter_employee_panel_password,"show-password":"",disabled:e.$root.isLite},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.password,callback:function(t){e.$set(e.employee,"password",t)},expression:"employee.password"}})],1):e._e(),e._v(" "),"admin"===this.$root.settings.role||"manager"===this.$root.settings.role?o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.employee.password&&e.employee.password.length>0,expression:"employee.password && employee.password.length > 0"}]},[o("el-checkbox",{on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.sendEmployeePanelAccessEmail,callback:function(t){e.$set(e.employee,"sendEmployeePanelAccessEmail",t)},expression:"employee.sendEmployeePanelAccessEmail"}},[e._v("\n "+e._s(e.$root.labels.send_employee_panel_access_email)+"\n ")])],1):e._e()],1),e._v(" "),e.$root.isLite?e._e():o("el-col",{attrs:{span:12}},[o("div",{staticClass:"am-cabinet-timezone"},[!0===e.$root.settings.capabilities.canWriteOthers?o("el-form-item",{attrs:{label:"placeholder",label:e.$root.labels.timezone+":"}},[o("el-select",{attrs:{filterable:"",clearable:"","popper-class":"am-cabinet-timezone-dropdown",placeholder:e.$root.timezone},model:{value:e.employee.timeZone,callback:function(t){e.$set(e.employee,"timeZone",t)},expression:"employee.timeZone"}},[o("template",{slot:"prefix"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/am-globe.svg"}})]),e._v(" "),e._l(e.$root.timezones,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:e}})})],2)],1):e._e()],1)])],1),e._v(" "),e.$root.settings.googleCalendar&&0!==e.employee.id?o("el-row",{attrs:{gutter:24}},[e.employee.googleCalendar&&e.employee.googleCalendar.calendarList?o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.google_calendar)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.google_calendar_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticStyle:{padding:"0"},attrs:{span:15}},[o("el-select",{attrs:{placeholder:"",disabled:!e.employee.googleCalendar||!e.employee.googleCalendar.token||e.googleLoading},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.googleCalendar,callback:function(t){e.$set(e.employee,"googleCalendar",t)},expression:"employee.googleCalendar"}},e._l(e.employee.googleCalendar.calendarList,function(e){return o("el-option",{key:e.id,attrs:{label:e.summary,value:e.id}})}),1)],1),e._v(" "),e.employee.googleCalendar?o("el-col",{attrs:{span:9}},[o("el-button",{staticClass:"am-google-calendar-button",class:{connected:e.employee.googleCalendar&&e.employee.googleCalendar.token},attrs:{type:"primary"},on:{click:function(t){e.employee.googleCalendar&&e.employee.googleCalendar.token?e.disconnectFromGoogleAccount():e.redirectToGoogleAuthPage()}}},[o("div",{staticClass:"am-google-calendar-button-image"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/google-button.png"}})]),e._v(" "),o("span",{staticClass:"am-google-calendar-button-text"},[e._v("\n "+e._s(e.employee.googleCalendar&&e.employee.googleCalendar.token?e.$root.labels.google_sign_out:e.$root.labels.google_sign_in)+"\n ")])])],1):e._e()],1)],1):e._e()],1):e._e(),e._v(" "),e.$root.settings.outlookCalendar&&0!==e.employee.id?o("el-row",{attrs:{gutter:24}},[e.employee.outlookCalendar&&e.employee.outlookCalendar.calendarList?o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"placeholder"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.outlook_calendar)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.outlook_calendar_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-col",{staticStyle:{padding:"0"},attrs:{span:15}},[o("el-select",{attrs:{placeholder:"",disabled:!e.employee.outlookCalendar||!e.employee.outlookCalendar.token||e.outlookLoading},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.outlookCalendar,callback:function(t){e.$set(e.employee,"outlookCalendar",t)},expression:"employee.outlookCalendar"}},e._l(e.employee.outlookCalendar.calendarList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),o("el-col",{attrs:{span:9}},[o("el-button",{staticClass:"am-google-calendar-button",class:{connected:e.employee.outlookCalendar&&e.employee.outlookCalendar.token},attrs:{type:"primary"},on:{click:function(t){e.employee.outlookCalendar&&e.employee.outlookCalendar.token?e.disconnectFromOutlookAccount():e.redirectToOutlookAuthPage()}}},[o("div",{staticClass:"am-google-calendar-button-image"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/outlook-calendar.png"}})]),e._v(" "),o("span",{staticClass:"am-google-calendar-button-text"},[e._v("\n "+e._s(e.employee.outlookCalendar&&e.employee.outlookCalendar.token?e.$root.labels.outlook_sign_out:e.$root.labels.outlook_sign_in)+"\n ")])])],1)],1)],1):e._e()],1):e._e(),e._v(" "),e.$root.settings.zoom.enabled?o("el-row",[o("el-form-item",{attrs:{label:"placeholder",label:e.$root.labels.zoom_user+":"}},[o("label",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(e.$root.labels.zoom_user)+":\n "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.zoom_user_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),e._v(" "),o("el-select",{attrs:{clearable:"",filterable:"",placeholder:e.$root.labels.zoom_user_placeholder},on:{change:function(t){return e.clearValidation()}},model:{value:e.employee.zoomUserId,callback:function(t){e.$set(e.employee,"zoomUserId",t)},expression:"employee.zoomUserId"}},e._l(e.zoomUsers,function(e,t){return o("el-option",{key:t,attrs:{label:e.first_name+" "+e.last_name+" ("+e.email+")",value:e.id}})}),1)],1)],1):e._e(),e._v(" "),o("div",{staticClass:"am-divider"}),e._v(" "),o("content-block",{directives:[{name:"show",rawName:"v-show",value:!e.hideDescription,expression:"!hideDescription"}],attrs:{label:e.$root.labels.description,entity:e.employee,textProperty:"description",htmlProperty:"descriptionHtml",hasTranslation:!0,hasQuill:!0,textModeProp:!0,allowImage:!0},on:{showDialogTranslate:function(t){return e.showDialogTranslate("description")}}}),e._v(" "),o("el-form-item",{attrs:{label:e.$root.labels.note_internal+":"}},[o("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:""},on:{input:function(t){return e.clearValidation()}},model:{value:e.employee.note,callback:function(t){e.$set(e.employee,"note",t)},expression:"employee.note"}})],1)],1),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureServices?o("el-tab-pane",{attrs:{label:e.$root.labels.assigned_services,name:"services"}},[o("assigned-services",{attrs:{"week-schedule":e.editWeekDayList,"special-days":e.employee.specialDayList,"categorized-service-list":e.editCategorizedServiceList,"future-appointments":e.futureAppointments,"employee-id":e.employee.id}})],1):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureSchedule?o("el-tab-pane",{attrs:{label:e.$root.labels.work_hours,name:"hours"}},[o("working-hours",{attrs:{"active-tab":e.employeeTabs,"week-schedule":e.editWeekDayList,"categorized-service-list":e.editCategorizedServiceList,locations:e.locations}})],1):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureDaysOff?o("el-tab-pane",{attrs:{label:e.$root.labels.days_off,name:"off"}},[o("BlockLite"),e._v(" "),o("div",{staticClass:"am-days-off"},[o("div",{staticClass:"am-employee-days-off"},[o("days-off",{attrs:{daysOff:0!==e.employee.id?e.employee.dayOffList:[],listedDaysOff:e.companyDaysOff},on:{changeDaysOff:e.changeDaysOff,showCompanyDaysOffSettingsDialog:e.showCompanyDaysOffSettingsDialog}})],1)])],1):e._e(),e._v(" "),!0===e.$root.settings.capabilities.canWriteOthers||!0===e.$root.settings.roles.allowConfigureSpecialDays?o("el-tab-pane",{attrs:{label:e.$root.labels.special_days,name:"special"}},[o("BlockLite"),e._v(" "),o("div",{staticClass:"am-special-days"},[o("special-days",{attrs:{"active-tab":e.employeeTabs,specialDays:e.employee.specialDayList,locations:e.locations,categorizedServiceList:e.editCategorizedServiceList},on:{changeSpecialDays:e.changeSpecialDays}})],1)],1):e._e()],1)],1)],1):e._e(),e._v(" "),e.employee&&!e.dialogLoading?o("dialog-actions",{attrs:{formName:"employee",urlName:"users/providers",isNew:0===e.employee.id,entity:e.employee,getParsedEntity:e.getParsedEntity,isDisabledDuplicate:e.isDisabledDuplicate,hasIcons:!0,updateStash:!0,status:{on:"visible",off:"hidden"},buttonText:{confirm:{status:{yes:"visible"===e.employee.status?e.$root.labels.visibility_hide:e.$root.labels.visibility_show,no:e.$root.labels.no}}},action:{haveAdd:!0,haveEdit:!0,haveStatus:!0===e.$root.settings.capabilities.canWriteOthers&&!e.$root.isLite,haveRemove:!0===e.$root.settings.capabilities.canDelete&&!e.$root.isLite,haveRemoveEffect:!0,haveDuplicate:!0===e.$root.settings.capabilities.canWriteOthers&&!e.$root.isLite},message:{success:{save:e.$root.labels.employee_saved,remove:e.$root.labels.employee_deleted,show:e.$root.labels.employee_visible,hide:e.$root.labels.employee_hidden},confirm:{remove:e.$root.labels.confirm_delete_employee,show:e.$root.labels.confirm_show_employee,hide:e.$root.labels.confirm_hide_employee,duplicate:e.$root.labels.confirm_duplicate_employee}}},on:{errorCallback:e.errorCallback,validationFailCallback:e.validationFailCallback}}):e._e()],1)},staticRenderFns:[]}},1432:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-wrap"},[o("div",{staticClass:"am-body",attrs:{id:"am-settings"}},[o("page-header"),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.fetched,expression:"!fetched"}],staticClass:"am-spinner am-section"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}})]),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetched,expression:"fetched"}],staticClass:"am-section am-settings-cards"},[o("el-row",{attrs:{gutter:48}},[o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/setting.svg"}}),e._v(" "+e._s(e.$root.labels.general))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.general_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsGeneral}},[e._v("\n "+e._s(e.$root.labels.view_general_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/company.svg"}}),e._v(" "+e._s(e.$root.labels.company))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.company_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsCompany}},[e._v("\n "+e._s(e.$root.labels.view_company_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/email-settings.svg"}}),e._v("\n "+e._s(e.$root.labels.notifications)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.notifications_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsNotifications}},[e._v("\n "+e._s(e.$root.labels.view_notifications_settings)+"\n ")])])])],1),e._v(" "),o("el-row",{attrs:{gutter:48}},[e.$root.isLite?o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg",attrs:{src:e.$root.getUrl+"public/img/customer.svg"}}),e._v("\n "+e._s(e.$root.labels.provider_details_settings)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.provider_details_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogEmployee}},[e._v("\n "+e._s(e.$root.labels.view_provider_details_settings)+"\n ")])])]):o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/calendar.svg"}}),e._v("\n "+e._s(e.$root.labels.work_hours_days_off)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.days_off_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsWorkHoursDaysOff}},[e._v("\n "+e._s(e.$root.labels.view_days_off_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/credit-card.svg"}}),e._v("\n "+e._s(e.$root.labels.payments)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.payments_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsPayments}},[e._v("\n "+e._s(e.$root.labels.view_payments_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/web-hook.svg"}}),e._v("\n "+e._s(e.$root.labels.integrations_settings)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.integrations_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsIntegrations}},[e._v("\n "+e._s(e.$root.labels.view_integrations_settings)+"\n ")])])])],1),e._v(" "),o("el-row",{attrs:{gutter:48}},[o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/appointment-settings.svg"}}),e._v("\n "+e._s(e.$root.labels.appointments)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.appointments_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsAppointments}},[e._v("\n "+e._s(e.$root.labels.view_appointments_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/labels.svg"}}),e._v("\n "+e._s(e.$root.labels.labels)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.labels_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsLabels}},[e._v("\n "+e._s(e.$root.labels.view_labels_settings)+"\n ")])])]),e._v(" "),o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/roles.svg"}}),e._v("\n "+e._s(e.$root.labels.roles_settings)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.roles_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsRoles}},[e._v("\n "+e._s(e.$root.labels.view_roles_settings_description)+"\n ")])])])],1),e._v(" "),o("el-row",{attrs:{gutter:48}},[!0===e.$root.settings.activation.showActivationSettings?o("el-col",{attrs:{md:8}},[o("div",{staticClass:"am-settings-card"},[o("h3",[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/purchase-code.svg"}}),e._v("\n "+e._s(e.$root.labels.activation)+"\n ")]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.activation_settings_description))]),e._v(" "),o("p",{staticClass:"link",on:{click:e.showDialogSettingsActivation}},[e._v("\n "+e._s(e.$root.labels.view_activation_settings)+"\n ")])])]):e._e()],1)],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsGeneral?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsGeneral,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsGeneral=t}}},[o("dialog-settings-general",{attrs:{general:e.settings.general,languagesData:e.languagesData},on:{closeDialogSettingsGeneral:function(t){e.dialogSettingsGeneral=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsCompany?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsCompany,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsCompany=t}}},[o("dialog-settings-company",{ref:"company",attrs:{company:e.settings.company},on:{closeDialogSettingsCompany:function(t){e.dialogSettingsCompany=!1},updateSettings:e.updateSettings,showDialogTranslate:e.showDialogTranslateCompany}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsNotifications?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsNotifications,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsNotifications=t}}},[o("dialog-settings-notifications",{attrs:{notifications:e.settings.notifications,ics:e.settings.ics},on:{closeDialogSettingsNotifications:function(t){e.dialogSettingsNotifications=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsWorkHoursDaysOff?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsWorkHoursDaysOff,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsWorkHoursDaysOff=t}}},[o("dialog-settings-work-hours-days-off",{attrs:{daysOff:e.settings.daysOff,weekSchedule:e.settings.weekSchedule},on:{closeDialogSettingsWorkHoursDaysOff:function(t){e.dialogSettingsWorkHoursDaysOff=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsPayments?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsPayments,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsPayments=t}}},[o("dialog-settings-payments",{attrs:{customFields:e.customFields,categories:e.categories,coupons:e.coupons,payments:e.settings.payments,"default-appointment-status":e.settings.general.defaultAppointmentStatus},on:{closeDialogSettingsPayments:function(t){e.dialogSettingsPayments=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsIntegrations?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsIntegrations,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsIntegrations=t}}},[o("dialog-settings-integrations",{attrs:{googleCalendar:e.settings.googleCalendar,outlookCalendar:e.settings.outlookCalendar,zoom:e.settings.zoom,lessonSpace:e.settings.lessonSpace,facebookPixel:e.settings.facebookPixel,googleTag:e.settings.googleTag,webHooks:e.settings.webHooks},on:{closeDialogSettingsIntegrations:function(t){e.dialogSettingsIntegrations=!1},updateSettings:e.updateSettings,openDialog:e.openDialogCombinedPlaceholders}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogCombinedPlaceholder?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{visible:e.dialogCombinedPlaceholder,"show-close":!1},on:{"update:visible":function(t){e.dialogCombinedPlaceholder=t}}},[o("dialog-combined-placeholder",{attrs:{appointmentsSettings:e.settings.appointments,name:e.combinedPlaceholderName,nameHtml:e.combinedPlaceholderName+"Html",userTypeTab:"provider",entity:"group",categories:e.categories,coupons:e.coupons,customFields:e.customFields,placeholdersNames:e.getCombinedPlaceholders()},on:{closeDialogCombinedPlaceholder:function(t){e.dialogCombinedPlaceholder=!1}}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsLabels?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsLabels,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsLabels=t}}},[o("dialog-settings-labels",{attrs:{labels:e.settings.labels},on:{closeDialogSettingsLabels:function(t){e.dialogSettingsLabels=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),!0===e.$root.settings.activation.showActivationSettings?o("transition",{attrs:{name:"slide"}},[e.dialogSettingsActivation?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsActivation,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsActivation=t}}},[o("dialog-settings-activation",{attrs:{activation:e.settings.activation},on:{closeDialogSettingsActivation:function(t){e.dialogSettingsActivation=!1},updateSettings:e.updateSettings}})],1):e._e()],1):e._e(),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsRoles?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsRoles,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsRoles=t}}},[o("dialog-settings-roles",{attrs:{roles:e.settings.roles},on:{closeDialogSettingsRoles:function(t){e.dialogSettingsRoles=!1},updateSettings:e.updateSettings,showDialogTranslate:e.showDialogTranslateRoles}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogTranslate?o("el-dialog",{staticClass:"am-side-dialog am-dialog-translate am-edit",attrs:{"close-on-click-modal":!1,"show-close":!0,visible:e.dialogTranslate},on:{"update:visible":function(t){e.dialogTranslate=t}}},[o("dialog-translate",{attrs:{"passed-translations":e.dialogTranslateData,name:e.dialogTranslateName,allLanguagesData:e.languagesData,"used-languages":e.settings.general.usedLanguages,type:e.dialogTranslateType,tab:e.dialogTranslateTab},on:{saveDialogTranslate:e.saveDialogTranslate,closeDialogTranslate:function(t){e.dialogTranslate=!1}}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.dialogSettingsAppointments?o("el-dialog",{staticClass:"am-side-dialog am-dialog-settings",attrs:{"close-on-click-modal":!1,visible:e.dialogSettingsAppointments,"show-close":!1},on:{"update:visible":function(t){e.dialogSettingsAppointments=t}}},[o("dialog-settings-appointments",{attrs:{appointments:e.settings.appointments},on:{closeDialogSettingsAppointments:function(t){e.dialogSettingsAppointments=!1},updateSettings:e.updateSettings}})],1):e._e()],1),e._v(" "),o("transition",{attrs:{name:"slide"}},[e.employeeInfo.dialogEmployee?o("el-dialog",{staticClass:"am-side-dialog am-dialog-employee",attrs:{visible:e.employeeInfo.dialogEmployee,"show-close":!1},on:{"update:visible":function(t){return e.$set(e.employeeInfo,"dialogEmployee",t)}}},[o("dialog-employee",{attrs:{locations:[],employee:e.employeeInfo.employee,futureAppointments:e.employeeInfo.futureAppointments,editCategorizedServiceList:e.employeeInfo.editCategorizedServiceList,editWeekDayList:e.employeeInfo.editWeekDayList,companyDaysOff:e.$root.settings.daysOff,isDisabledDuplicate:!0},on:{saveCallback:e.saveEmployeeCallback,closeDialog:function(t){e.employeeInfo.dialogEmployee=!1},showCompcanyDaysOffSettingsDialog:function(t){e.employeeInfo.dialogCompanyDaysOffSettings=!0}}})],1):e._e()],1),e._v(" "),o("DialogLite",{attrs:{isEmployeeDialog:e.employeeInfo.dialogEmployee}}),e._v(" "),o("el-col",{attrs:{md:6}},[o("a",{staticClass:"am-help-button",attrs:{href:"https://wpamelia.com/general-settings/",target:"_blank"}},[o("i",{staticClass:"el-icon-question"}),e._v(" "+e._s(e.$root.labels.need_help)+"?\n ")])])],1),e._v(" "),o("dialog-new-customize"),e._v(" "),o("AmSurvey")],1)},staticRenderFns:[]}},684:function(e,t,o){var i=o(335)(o(1346),o(1432),!1,null,null,null);e.exports=i.exports},696:function(e,t,o){"use strict";t.a={data:function(){return{colors:["1788FB","4BBEC6","FBC22D","FA3C52","D696B8","689BCA","26CC2B","FD7E35","E38587","774DFB","31CDF3","6AB76C","FD5FA1","A697C5"],usedColors:[]}},methods:{getAppropriateUrlParams:function(e){if(!this.$root.settings.activation.disableUrlParams)return e;var t=JSON.parse(JSON.stringify(e));return["categories","services","packages","employees","providers","providerIds","extras","locations","events","types","dates"].forEach(function(e){if("extras"===e&&e in t){t.extras=JSON.parse(t.extras);var o=[];t.extras.forEach(function(e){o.push(e.id+"-"+e.quantity)}),t.extras=o.length?o:null}e in t&&Array.isArray(t[e])&&t[e].length&&(t[e]=t[e].join(","))}),t},inlineSVG:function(){var e=o(703);e.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){o(703).init({svgSelector:"img.svg-cabinet",initClass:"js-inlinesvg"})},100)},imageFromText:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getNameInitials(e),n=Math.floor(Math.random()*this.colors.length),a=this.colors[n];return this.usedColors.push(this.colors[n]),this.colors.splice(n,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),o?t.firstName?this.$root.getUrl+"public/img/default-employee.svg":t.latitude?this.$root.getUrl+"public/img/default-location.svg":this.$root.getUrl+"public/img/default-service.svg":location.protocol+"//via.placeholder.com/120/"+a+"/fff?text="+i},pictureLoad:function(e,t){if(null!==e){var o=!0===t?e.firstName+" "+e.lastName:e.name;if(void 0!==o)return e.pictureThumbPath=e.pictureThumbPath||this.imageFromText(o),e.pictureThumbPath}},imageLoadError:function(e,t){var o=!0===t?e.firstName+" "+e.lastName:e.name;void 0!==o&&(e.pictureThumbPath=this.imageFromText(o,e,!0))},getNameInitials:function(e){return e.split(" ").map(function(e){return e.charAt(0)}).join("").toUpperCase().substring(0,3).replace(/[^\w\s]/g,"")}}}},697:function(e,t,o){"use strict";var i="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 o=this;Object.keys(e).forEach(function(n){null!==e[n]&&"object"===i(e[n])&&n in t?o.replaceExistingObjectProperties(e[n],t[n]):n in t&&(e[n]=t[n])})},addMissingObjectProperties:function(e,t){var o=this;Object.keys(t).forEach(function(n){var a=!1;n in e||("object"===i(t[n])?(e[n]={},a=!0):(e[n]=null,a=!0)),null===t[n]||"object"!==i(t[n])?a&&(e[n]=t[n]):o.addMissingObjectProperties(e[n],t[n])})},scrollView:function(e,t,o){"undefined"!=typeof jQuery&&(void 0!==o&&o||jQuery(window).width()<=600)&&setTimeout(function(){var o=document.getElementById(e);void 0!==o&&null!==o&&o.scrollIntoView({behavior:"smooth",block:t,inline:"end"})},200)},scrollViewInModal:function(e){this.$nextTick(function(){var t=document.getElementById(e),o=document.querySelectorAll(".am-dialog-scrollable");if(t&&o&&o.length){var i=t,n=t.offsetTop;do{n+=(i=i.offsetParent).offsetTop}while(i===o[0]);o[0].scrollTop=n}})},getUrlQueryParams:function(e){var t=e.indexOf("#")>0?e.substring(0,e.indexOf("#")).split("?")[1]:e.split("?")[1];if(t){var o=[],i={};return t.split("&").forEach(function(e){o=e.split("="),i[o[0]]=decodeURIComponent(o[1]).replace(/\+/g," ")}),i}},getUrlParams:function(e){var t={};if(-1!==e.indexOf("?")){var o=[];e.split("?")[1].split("&").forEach(function(e){o=e.split("="),t[o[0]]=decodeURIComponent(o[1]).replace(/\+/g," ")})}return t},removeURLParameter:function(e,t){var o=e.split("?");if(o.length>=2){for(var i=encodeURIComponent(t)+"=",n=o[1].split(/[&;]/g),a=n.length;a-- >0;)-1!==n[a].lastIndexOf(i,0)&&n.splice(a,1);return e=o[0]+(n.length>0?"?"+n.join("&"):"")}return e},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},trimProperty:function(e,t){e[t]=e[t].trim()}}}},698:function(e,t,o){"use strict";var i=o(716),n=o(344),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function l(e){return null!==e&&"object"==typeof e}function r(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||s(e)||(e=[e]),s(e))for(var o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:n,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:l,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:r,isStream:function(e){return l(e)&&r(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 o(o,i){"object"==typeof t[i]&&"object"==typeof o?t[i]=e(t[i],o):t[i]=o}for(var i=0,n=arguments.length;i<n;i++)c(arguments[i],o);return t},extend:function(e,t,o){return c(t,function(t,n){e[n]=o&&"function"==typeof t?i(t,o):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},699:function(e,t,o){"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],o=this.currencies.find(function(t){return t.code===e.$root.settings.payments.currencyCode});return o&&t&&"INR"!==o.code?o.symbol_native:t&&"INR"===o.code?o.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],o=this.getPriceNumberOfDecimalPlaces(),i=this.getPriceThousandSeparator(),n=this.getPriceDecimalSeparator(),a=this.getPricePrefix(),s=this.getPriceSuffix(),l=parseInt(e=Math.abs(+e||0).toFixed(o))+"",r=l.length>3?l.length%3:0;return(t?a:"")+(r?l.substr(0,r)+i:"")+l.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(o?n+Math.abs(e-l).toFixed(o).slice(2):"")+(t?s:"")}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},700:function(e,t,o){"use strict";t.a={methods:{notify:function(e,t,o,i){var n=this;void 0===i&&(i=""),setTimeout(function(){n.$notify({customClass:i,title:e,message:t,type:o,offset:50})},700)}}}},701:function(e,t,o){"use strict";var i=o(0),n=o.n(i);t.a={data:function(){return{timeSelectOptions:{start:"00:00",end:"23:59",step:this.secondsToTimeSelectStep(this.getTimeSlotLength())}}},methods:{convertDateTimeRangeDifferenceToMomentDuration:function(e,t){return n.a.duration(n()(t).diff(n()(e)))},convertSecondsToMomentDuration:function(e){return n.a.duration(e,"seconds")},momentDurationToNiceDurationWithUnit:function(e){var t=Math.floor(e.asMinutes()/60),o=e.asMinutes()%60;return(t?t+this.$root.labels.h+" ":"")+" "+(o?o+this.$root.labels.min:"")},secondsToNiceDuration:function(e){var t=Math.floor(e/3600),o=e/60%60;return(t?t+this.$root.labels.h+" ":"")+" "+(o?o+this.$root.labels.min:"")},secondsToTimeSelectStep:function(e){var t=Math.floor(e/3600),o=Math.floor(e/60)-60*t;return e<0?(t||"00")+":"+((o<9?"0"+o:o)||"00"):((t<=9?"0"+t:t)||"00")+":"+((o<=9?"0"+o:o)||"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,o=this.getTimeSlotLength(),i=[],n=o;n<=t;n+=o)i.push(n);return e&&-1===i.indexOf(e)&&(i.push(e),i.sort(function(e,t){return e-t})),i},getTimeSelectOptionsWithLimits:function(e,t){return{start:"00:00",end:"24:00",step:this.secondsToTimeSelectStep(this.getTimeSlotLength()),minTime:e,maxTime:t}},getStringTimeInSeconds:function(e){return n()(e,"HH:mm").diff(n()().startOf("day"),"seconds")}}}},703:function(e,t,o){(function(o){var i,n,a,s;s=void 0!==o?o:this.window||this.global,n=[],i=function(e){var t,o={},i=!!document.querySelector&&!!e.addEventListener,n={initClass:"js-inlinesvg",svgSelector:"img.svg"},a=function(){var e={},t=!1,o=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],o++);for(var n=function(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t&&"[object Object]"===Object.prototype.toString.call(o[i])?e[i]=a(!0,e[i],o[i]):e[i]=o[i])};i>o;o++){n(arguments[o])}return e},s=function(e){var o=document.querySelectorAll(t.svgSelector),i=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}}(o.length,e);Array.prototype.forEach.call(o,function(e,o){var n=e.src||e.getAttribute("data-src"),a=e.attributes,s=new XMLHttpRequest;s.open("GET",n,!0),s.onload=function(){if(s.status>=200&&s.status<400){var o=(new DOMParser).parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];if(o.removeAttribute("xmlns:a"),o.removeAttribute("width"),o.removeAttribute("height"),o.removeAttribute("x"),o.removeAttribute("y"),o.removeAttribute("enable-background"),o.removeAttribute("xmlns:xlink"),o.removeAttribute("xml:space"),o.removeAttribute("version"),Array.prototype.slice.call(a).forEach(function(e){"src"!==e.name&&"alt"!==e.name&&o.setAttribute(e.name,e.value)}),o.classList?o.classList.add("inlined-svg"):o.className+=" inlined-svg",o.setAttribute("role","img"),a.longdesc){var n=document.createElementNS("http://www.w3.org/2000/svg","desc"),l=document.createTextNode(a.longdesc.value);n.appendChild(l),o.insertBefore(n,o.firstChild)}if(a.alt){o.setAttribute("aria-labelledby","title");var r=document.createElementNS("http://www.w3.org/2000/svg","title"),c=document.createTextNode(a.alt.value);r.appendChild(c),o.insertBefore(r,o.firstChild)}e.parentNode.replaceChild(o,e),i(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 o.init=function(e,o){i&&(t=a(n,e||{}),s(o||function(){}),document.documentElement.className+=" "+t.initClass)},o}(s),void 0===(a="function"==typeof i?i.apply(t,n):i)||(e.exports=a)}).call(t,o(39))},704:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=function(e,t){var o=e[1]||"",i=e[3];if(!i)return o;if(t&&"function"==typeof btoa){var n=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[o].concat(a).concat([n]).join("\n")}var s;return[o].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var a=this[n][0];"number"==typeof a&&(i[a]=!0)}for(n=0;n<e.length;n++){var s=e[n];"number"==typeof s[0]&&i[s[0]]||(o&&!s[2]?s[2]=o:o&&(s[2]="("+s[2]+") and ("+o+")"),t.push(s))}},t}},705:function(e,t,o){var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)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 n=o(713),a={},s=i&&(document.head||document.getElementsByTagName("head")[0]),l=null,r=0,c=!1,u=function(){},p=null,d="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e){for(var t=0;t<e.length;t++){var o=e[t],i=a[o.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](o.parts[n]);for(;n<o.parts.length;n++)i.parts.push(g(o.parts[n]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{var s=[];for(n=0;n<o.parts.length;n++)s.push(g(o.parts[n]));a[o.id]={id:o.id,refs:1,parts:s}}}}function h(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function g(e){var t,o,i=document.querySelector("style["+d+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(m){var n=r++;i=l||(l=h()),t=_.bind(null,i,n,!1),o=_.bind(null,i,n,!0)}else i=h(),t=function(e,t){var o=t.css,i=t.media,n=t.sourceMap;i&&e.setAttribute("media",i);p.ssrId&&e.setAttribute(d,t.id);n&&(o+="\n/*# sourceURL="+n.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");if(e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,i),o=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else o()}}e.exports=function(e,t,o,i){c=o,p=i||{};var s=n(e,t);return f(s),function(t){for(var o=[],i=0;i<s.length;i++){var l=s[i];(r=a[l.id]).refs--,o.push(r)}t?f(s=n(e,t)):s=[];for(i=0;i<o.length;i++){var r;if(0===(r=o[i]).refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete a[r.id]}}}};var v,b=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function _(e,t,o,i){var n=o?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,n);else{var a=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}},708:function(e,t,o){"use strict";(function(t){var i=o(698),n=o(752),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,r={adapter:("undefined"!=typeof XMLHttpRequest?l=o(717):void 0!==t&&(l=o(717)),l),transformRequest:[function(e,t){return n(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.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}};r.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){r.headers[e]={}}),i.forEach(["post","put","patch"],function(e){r.headers[e]=i.merge(a)}),e.exports=r}).call(t,o(142))},709:function(e,t,o){var i=o(335)(o(723),o(724),!1,null,null,null);e.exports=i.exports},711:function(e,t,o){"use strict";var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=l(o(749)),a=l(o(767)),s=l(o(768));function l(e){return e&&e.__esModule?e:{default:e}}var r=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 a.default,["post","patch","put","delete"].forEach(function(e){t[e]=function(o,i){return t.submit(e,o,i)}})}return i(e,[{key:"submit",value:function(t,o){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.toLowerCase(),this.hasFiles(n)&&(n=(0,s.default)(n),"post"!==t&&(n.append("_method",t.toUpperCase()),t="post")),this.progress=0,this.errors.clear(),this.isPending=!0,new Promise(function(a,s){e.defaults.axios[t](o,n,i.config()).then(function(e){a(e.data)}).catch(function(e){i.handleError(e),s(e)}).then(function(){return i.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 o="post";return t.hasOwnProperty("id")&&(o="patch",e=this.urlToPatchResource(e,t)),this[o](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}();r.defaults={axios:n.default},e.exports=r},712:function(e,t,o){"use strict";t.a={data:function(){return{screenWidth:window.innerWidth}},mounted:function(){var e=this;window.onresize=function(){e.screenWidth=window.innerWidth}}}},713:function(e,t){e.exports=function(e,t){for(var o=[],i={},n=0;n<t.length;n++){var a=t[n],s=a[0],l={id:e+":"+n,css:a[1],media:a[2],sourceMap:a[3]};i[s]?i[s].parts.push(l):o.push(i[s]={id:s,parts:[l]})}return o}},714:function(e,t,o){"use strict";t.a={data:function(){return{countries:[{id:1,iso:"af",nicename:"Afghanistan",phonecode:93,format:"070 123 4567"},{id:2,iso:"al",nicename:"Albania",phonecode:355,format:"066 123 4567"},{id:3,iso:"dz",nicename:"Algeria",phonecode:213,format:"0551 23 45 67"},{id:4,iso:"as",nicename:"American Samoa",phonecode:1,format:"(684) 733 1234"},{id:5,iso:"ad",nicename:"Andorra",phonecode:376,format:"312 345"},{id:6,iso:"ao",nicename:"Angola",phonecode:244,format:"923 123 456"},{id:7,iso:"ai",nicename:"Anguilla",phonecode:1,format:"(264) 235 1234"},{id:8,iso:"ag",nicename:"Antigua and Barbuda",phonecode:1,format:"(268) 464 1234"},{id:9,iso:"ar",nicename:"Argentina",phonecode:54,format:"9 (11) 1234 567"},{id:10,iso:"am",nicename:"Armenia",phonecode:374,format:"077 123 456"},{id:11,iso:"aw",nicename:"Aruba",phonecode:297,format:"560 1234"},{id:12,iso:"au",nicename:"Australia",phonecode:61,format:"0412 345 678"},{id:13,iso:"at",nicename:"Austria",phonecode:43,format:"0664 123456"},{id:14,iso:"az",nicename:"Azerbaijan",phonecode:994,format:"040 123 45 67"},{id:15,iso:"bs",nicename:"Bahamas",phonecode:1,format:"(242) 359 1234"},{id:16,iso:"bh",nicename:"Bahrain",phonecode:973,format:"3600 1234"},{id:17,iso:"bd",nicename:"Bangladesh",phonecode:880,format:"018 1234 5678"},{id:18,iso:"bb",nicename:"Barbados",phonecode:1,format:"(246) 250 1234"},{id:19,iso:"by",nicename:"Belarus",phonecode:375,format:"029 491 1911"},{id:20,iso:"be",nicename:"Belgium",phonecode:32,format:"0470 123 456"},{id:21,iso:"bz",nicename:"Belize",phonecode:501,format:"622 1234"},{id:22,iso:"bj",nicename:"Benin",phonecode:229,format:"90 123 456"},{id:23,iso:"bm",nicename:"Bermuda",phonecode:1,format:"(441) 370 1234"},{id:24,iso:"bt",nicename:"Bhutan",phonecode:975,format:"17 123 456"},{id:25,iso:"bo",nicename:"Bolivia",phonecode:591,format:"7 123 4567"},{id:26,iso:"ba",nicename:"Bosnia and Herzegovina",phonecode:387,format:"061 123 456"},{id:27,iso:"bw",nicename:"Botswana",phonecode:267,format:"71 123 456"},{id:28,iso:"br",nicename:"Brazil",phonecode:55,format:"(11) 9 1234 5678"},{id:29,iso:"vg",nicename:"British Virgin Islands",phonecode:1,format:"(284) 300 1234"},{id:30,iso:"bn",nicename:"Brunei",phonecode:673,format:"712 3456"},{id:31,iso:"bg",nicename:"Bulgaria",phonecode:359,format:"087 123 4567"},{id:32,iso:"bf",nicename:"Burkina Faso",phonecode:226,format:"70 12 34 56"},{id:33,iso:"bi",nicename:"Burundi",phonecode:257,format:"79 56 12 34"},{id:34,iso:"kh",nicename:"Cambodia",phonecode:855,format:"091 234 567"},{id:35,iso:"cm",nicename:"Cameroon",phonecode:237,format:"6 71 23 45 67"},{id:36,iso:"ca",nicename:"Canada",phonecode:1,format:"(204) 123 4567"},{id:37,iso:"cv",nicename:"Cape Verde",phonecode:238,format:"991 12 34"},{id:38,iso:"ky",nicename:"Cayman Islands",phonecode:1,format:"(345) 323 1234"},{id:39,iso:"cf",nicename:"Central African Republic",phonecode:236,format:"70 01 23 45"},{id:40,iso:"td",nicename:"Chad",phonecode:235,format:"63 01 23 45"},{id:41,iso:"cl",nicename:"Chile",phonecode:56,format:"09 6123 4567"},{id:42,iso:"cn",nicename:"China",phonecode:86,format:"131 2345 6789"},{id:43,iso:"co",nicename:"Colombia",phonecode:57,format:"321 1234567"},{id:44,iso:"km",nicename:"Comoros",phonecode:269,format:"321 23 45"},{id:45,iso:"cd",nicename:"Congo (DRC)",phonecode:243,format:"0991 234 567"},{id:46,iso:"cg",nicename:"Congo (Republic)",phonecode:242,format:"06 123 4567"},{id:47,iso:"ck",nicename:"Cook Islands",phonecode:682,format:"71 234"},{id:48,iso:"cr",nicename:"Costa Rica",phonecode:506,format:"8312 3456"},{id:49,iso:"ci",nicename:"Cote D'Ivoire",phonecode:225,format:"01 23 45 67"},{id:50,iso:"hr",nicename:"Croatia",phonecode:385,format:"091 234 5678"},{id:51,iso:"cu",nicename:"Cuba",phonecode:53,format:"05 1234567"},{id:57,iso:"cy",nicename:"Cyprus",phonecode:357,format:"96 123456"},{id:58,iso:"cz",nicename:"Czech Republic",phonecode:420,format:"601 123 456"},{id:59,iso:"dk",nicename:"Denmark",phonecode:45,format:"20 12 34 56"},{id:60,iso:"dj",nicename:"Djibouti",phonecode:253,format:"77 83 10 01"},{id:61,iso:"dm",nicename:"Dominica",phonecode:1,format:"(767) 225 1234"},{id:62,iso:"do",nicename:"Dominican Republic",phonecode:1,format:"(809) 234 5678"},{id:63,iso:"ec",nicename:"Ecuador",phonecode:593,format:"099 123 4567"},{id:64,iso:"eg",nicename:"Egypt",phonecode:20,format:"0100 123 4567"},{id:65,iso:"sv",nicename:"El Salvador",phonecode:503,format:"7012 3456"},{id:66,iso:"gq",nicename:"Equatorial Guinea",phonecode:240,format:"222 123 456"},{id:67,iso:"er",nicename:"Eritrea",phonecode:291,format:"07 123 456"},{id:68,iso:"ee",nicename:"Estonia",phonecode:372,format:"5123 4567"},{id:69,iso:"et",nicename:"Ethiopia",phonecode:251,format:"091 123 4567"},{id:70,iso:"fk",nicename:"Falkland Islands (Malvinas)",phonecode:500,format:"51234"},{id:71,iso:"fo",nicename:"Faroe Islands",phonecode:298,format:"211234"},{id:72,iso:"fj",nicename:"Fiji",phonecode:679,format:"701 2345"},{id:73,iso:"fi",nicename:"Finland",phonecode:358,format:"041 2345678"},{id:74,iso:"fr",nicename:"France",phonecode:33,format:"06 12 34 56 78"},{id:75,iso:"gf",nicename:"French Guiana",phonecode:594,format:"0694 20 12 34"},{id:76,iso:"pf",nicename:"French Polynesia",phonecode:689,format:"87 12 34 56"},{id:77,iso:"ga",nicename:"Gabon",phonecode:241,format:"06 03 12 34"},{id:78,iso:"gm",nicename:"Gambia",phonecode:220,format:"301 2345"},{id:79,iso:"ge",nicename:"Georgia",phonecode:995,format:"555 12 34 56"},{id:80,iso:"de",nicename:"Germany",phonecode:49,format:"01512 3456789"},{id:81,iso:"gh",nicename:"Ghana",phonecode:233,format:"023 123 4567"},{id:82,iso:"gi",nicename:"Gibraltar",phonecode:350,format:"57123456"},{id:83,iso:"gr",nicename:"Greece",phonecode:30,format:"691 234 5678"},{id:84,iso:"gl",nicename:"Greenland",phonecode:299,format:"22 12 34"},{id:85,iso:"gp",nicename:"Guadeloupe",phonecode:590,format:"690 123 456"},{id:87,iso:"gu",nicename:"Guam",phonecode:1,format:"(671) 300 1234"},{id:88,iso:"gt",nicename:"Guatemala",phonecode:502,format:"5123 4567"},{id:89,iso:"gg",nicename:"Guernsey",phonecode:44,format:"07781 123456"},{id:90,iso:"gn",nicename:"Guinea",phonecode:224,format:"601 12 34 56"},{id:91,iso:"gw",nicename:"Guinea-Bissau",phonecode:245,format:"955 012 345"},{id:92,iso:"gy",nicename:"Guyana",phonecode:592,format:"609 1234"},{id:93,iso:"ht",nicename:"Haiti",phonecode:509,format:"34 10 1234"},{id:94,iso:"hn",nicename:"Honduras",phonecode:504,format:"9123 4567"},{id:95,iso:"hk",nicename:"Hong Kong",phonecode:852,format:"5123 4567"},{id:96,iso:"hu",nicename:"Hungary",phonecode:36,format:"(20) 123 4567"},{id:97,iso:"is",nicename:"Iceland",phonecode:354,format:"611 1234"},{id:98,iso:"in",nicename:"India",phonecode:91,format:"099876 54321"},{id:99,iso:"id",nicename:"Indonesia",phonecode:62,format:"0812 345 678"},{id:100,iso:"ir",nicename:"Iran",phonecode:98,format:"0912 345 6789"},{id:101,iso:"iq",nicename:"Iraq",phonecode:964,format:"0791 234 5678"},{id:102,iso:"ie",nicename:"Ireland",phonecode:353,format:"085 012 3456"},{id:103,iso:"im",nicename:"Isle of Man",phonecode:44,format:"07924 123456"},{id:104,iso:"il",nicename:"Israel",phonecode:972,format:"050 123 4567"},{id:105,iso:"it",nicename:"Italy",phonecode:39,format:"312 345 6789"},{id:106,iso:"jm",nicename:"Jamaica",phonecode:1,format:"(876) 210 1234"},{id:107,iso:"jp",nicename:"Japan",phonecode:81,format:"090 1234 5678"},{id:108,iso:"je",nicename:"Jersey",phonecode:44,format:"07797 123456"},{id:109,iso:"jo",nicename:"Jordan",phonecode:962,format:"07 9012 3456"},{id:110,iso:"kz",nicename:"Kazakhstan",phonecode:7,format:"(771) 123 4567"},{id:111,iso:"ke",nicename:"Kenya",phonecode:254,format:"0712 123456"},{id:112,iso:"ki",nicename:"Kiribati",phonecode:686,format:"72012345"},{id:241,iso:"xk",nicename:"Kosovo",phonecode:383,format:"044 1234567"},{id:113,iso:"kw",nicename:"Kuwait",phonecode:965,format:"500 12345"},{id:114,iso:"kg",nicename:"Kyrgyzstan",phonecode:996,format:"0700 123 456"},{id:115,iso:"la",nicename:"Laos",phonecode:856,format:"020 23 123 456"},{id:116,iso:"lv",nicename:"Latvia",phonecode:371,format:"21 234 567"},{id:117,iso:"lb",nicename:"Lebanon",phonecode:961,format:"71 123 456"},{id:118,iso:"ls",nicename:"Lesotho",phonecode:266,format:"5012 3456"},{id:119,iso:"lr",nicename:"Liberia",phonecode:231,format:"077 012 3456"},{id:120,iso:"ly",nicename:"Libya",phonecode:218,format:"091 2345678"},{id:121,iso:"li",nicename:"Liechtenstein",phonecode:423,format:"660 234 567"},{id:122,iso:"lt",nicename:"Lithuania",phonecode:370,format:"612 345 67"},{id:123,iso:"lu",nicename:"Luxembourg",phonecode:352,format:"628 123 456"},{id:124,iso:"mo",nicename:"Macao",phonecode:853,format:"6612 3456"},{id:125,iso:"mk",nicename:"Macedonia (FYROM)",phonecode:389,format:"072 345 678"},{id:126,iso:"mg",nicename:"Madagascar",phonecode:261,format:"032 12 345 67"},{id:127,iso:"mw",nicename:"Malawi",phonecode:265,format:"0991 23 45 67"},{id:128,iso:"my",nicename:"Malaysia",phonecode:60,format:"012 345 6789"},{id:129,iso:"mv",nicename:"Maldives",phonecode:960,format:"771 2345"},{id:130,iso:"ml",nicename:"Mali",phonecode:223,format:"65 01 23 45"},{id:131,iso:"mt",nicename:"Malta",phonecode:356,format:"9696 1234"},{id:132,iso:"mh",nicename:"Marshall Islands",phonecode:692,format:"235 1234"},{id:133,iso:"mq",nicename:"Martinique",phonecode:596,format:"0696 20 12 34"},{id:134,iso:"mr",nicename:"Mauritania",phonecode:222,format:"22 12 34 56"},{id:135,iso:"mu",nicename:"Mauritius",phonecode:230,format:"5251 2345"},{id:136,iso:"yt",nicename:"Mayotte",phonecode:269,format:"0639 12 34 56"},{id:137,iso:"mx",nicename:"Mexico",phonecode:52,format:"222 123 4567"},{id:138,iso:"fm",nicename:"Micronesia",phonecode:691,format:"350 1234"},{id:139,iso:"md",nicename:"Moldova",phonecode:373,format:"0621 12 345"},{id:140,iso:"mc",nicename:"Monaco",phonecode:377,format:"06 12 34 56 78"},{id:141,iso:"mn",nicename:"Mongolia",phonecode:976,format:"8812 3456"},{id:142,iso:"me",nicename:"Montenegro",phonecode:382,format:"067 622 901"},{id:143,iso:"ms",nicename:"Montserrat",phonecode:1,format:"(664) 492 3456"},{id:144,iso:"ma",nicename:"Morocco",phonecode:212,format:"0650 123456"},{id:145,iso:"mz",nicename:"Mozambique",phonecode:258,format:"82 123 4567"},{id:146,iso:"mm",nicename:"Myanmar",phonecode:95,format:"09 212 3456"},{id:147,iso:"na",nicename:"Namibia",phonecode:264,format:"081 123 4567"},{id:149,iso:"np",nicename:"Nepal",phonecode:977,format:"984 1234567"},{id:150,iso:"nl",nicename:"Netherlands",phonecode:31,format:"06 12345678"},{id:151,iso:"nc",nicename:"New Caledonia",phonecode:687,format:"75 12 34"},{id:152,iso:"nz",nicename:"New Zealand",phonecode:64,format:"021 123 4567"},{id:153,iso:"ni",nicename:"Nicaragua",phonecode:505,format:"8123 4567"},{id:154,iso:"ne",nicename:"Niger",phonecode:227,format:"93 12 34 56"},{id:155,iso:"ng",nicename:"Nigeria",phonecode:234,format:"0802 123 4567"},{id:156,iso:"nu",nicename:"Niue",phonecode:683,format:"1234"},{id:157,iso:"nf",nicename:"Norfolk Island",phonecode:672,format:"3 81234"},{id:160,iso:"no",nicename:"Norway",phonecode:47,format:"406 12 345"},{id:161,iso:"om",nicename:"Oman",phonecode:968,format:"9212 3456"},{id:162,iso:"pk",nicename:"Pakistan",phonecode:92,format:"0301 2345678"},{id:163,iso:"pw",nicename:"Palau",phonecode:680,format:"620 1234"},{id:164,iso:"ps",nicename:"Palestine",phonecode:970,format:"0599 123 456"},{id:165,iso:"pa",nicename:"Panama",phonecode:507,format:"6001 2345"},{id:166,iso:"pg",nicename:"Papua New Guinea",phonecode:675,format:"681 2345"},{id:167,iso:"py",nicename:"Paraguay",phonecode:595,format:"0961 456789"},{id:168,iso:"pe",nicename:"Peru",phonecode:51,format:"912 345 678"},{id:169,iso:"ph",nicename:"Philippines",phonecode:63,format:"0905 123 4567"},{id:170,iso:"pl",nicename:"Poland",phonecode:48,format:"512 345 678"},{id:171,iso:"pt",nicename:"Portugal",phonecode:351,format:"912 345 678"},{id:172,iso:"pr",nicename:"Puerto Rico",phonecode:1,format:"(787) 234 5678"},{id:173,iso:"qa",nicename:"Qatar",phonecode:974,format:"3312 3456"},{id:174,iso:"re",nicename:"Réunion",phonecode:262,format:"639 123456"},{id:175,iso:"ro",nicename:"Romania",phonecode:40,format:"0712 345 678"},{id:176,iso:"ru",nicename:"Russia",phonecode:7,format:"(912) 123 4567",priority:1},{id:177,iso:"rw",nicename:"Rwanda",phonecode:250,format:"0720 123 456"},{id:180,iso:"kn",nicename:"Saint Kitts and Nevis",phonecode:1,format:"(869) 765 2917"},{id:181,iso:"lc",nicename:"Saint Lucia",phonecode:1,format:"(758) 284 5678"},{id:184,iso:"vc",nicename:"Saint Vincent and the Grenadines",phonecode:1,format:"(784) 430 1234"},{id:185,iso:"ws",nicename:"Samoa",phonecode:684,format:"601234"},{id:186,iso:"sm",nicename:"San Marino",phonecode:378,format:"66 66 12 12"},{id:187,iso:"st",nicename:"Sao Tome and Principe",phonecode:239,format:"981 2345"},{id:188,iso:"sa",nicename:"Saudi Arabia",phonecode:966,format:"051 234 5678"},{id:189,iso:"sn",nicename:"Senegal",phonecode:221,format:"70 123 45 67"},{id:190,iso:"rs",nicename:"Serbia",phonecode:381,format:"060 1234567"},{id:191,iso:"sc",nicename:"Seychelles",phonecode:248,format:"2 510 123"},{id:192,iso:"sl",nicename:"Sierra Leone",phonecode:232,format:"(025) 123456"},{id:193,iso:"sg",nicename:"Singapore",phonecode:65,format:"8123 4567"},{id:195,iso:"sk",nicename:"Slovakia",phonecode:421,format:"0912 123 456"},{id:196,iso:"si",nicename:"Slovenia",phonecode:386,format:"031 234 567"},{id:197,iso:"sb",nicename:"Solomon Islands",phonecode:677,format:"74 21234"},{id:198,iso:"so",nicename:"Somalia",phonecode:252,format:"7 1123456"},{id:199,iso:"za",nicename:"South Africa",phonecode:27,format:"071 123 4567"},{id:200,iso:"kr",nicename:"South Korea",phonecode:82,format:"010 1234 567"},{id:201,iso:"ss",nicename:"South Sudan",phonecode:211,format:"0977 123 456"},{id:202,iso:"es",nicename:"Spain",phonecode:34,format:"612 34 56 78"},{id:203,iso:"lk",nicename:"Sri Lanka",phonecode:94,format:"071 234 5678"},{id:204,iso:"sd",nicename:"Sudan",phonecode:249,format:"091 123 1234"},{id:205,iso:"sr",nicename:"Suriname",phonecode:597,format:"741 2345"},{id:207,iso:"sz",nicename:"Swaziland",phonecode:268,format:"7612 3456"},{id:208,iso:"se",nicename:"Sweden",phonecode:46,format:"070 123 45 67"},{id:209,iso:"ch",nicename:"Switzerland",phonecode:41,format:"078 123 45 67"},{id:210,iso:"sy",nicename:"Syria",phonecode:963,format:"0944 567 890"},{id:211,iso:"tw",nicename:"Taiwan",phonecode:886,format:"0912 345 678"},{id:212,iso:"tj",nicename:"Tajikistan",phonecode:992,format:"917 123 456"},{id:213,iso:"tz",nicename:"Tanzania",phonecode:255,format:"740 123 456"},{id:214,iso:"th",nicename:"Thailand",phonecode:66,format:"081 234 5678"},{id:215,iso:"tl",nicename:"Timor-Leste",phonecode:670,format:"7721 2345"},{id:216,iso:"tg",nicename:"Togo",phonecode:228,format:"90 11 23 45"},{id:218,iso:"to",nicename:"Tonga",phonecode:676,format:"771 5123"},{id:219,iso:"tt",nicename:"Trinidad and Tobago",phonecode:868,format:"(868) 291 1234"},{id:220,iso:"tn",nicename:"Tunisia",phonecode:216,format:"20 123 456"},{id:221,iso:"tr",nicename:"Turkey",phonecode:90,format:"0501 234 56 78"},{id:222,iso:"tm",nicename:"Turkmenistan",phonecode:7370,format:"8 66 123456"},{id:223,iso:"tc",nicename:"Turks and Caicos Islands",phonecode:1,format:"(649) 231 1234"},{id:224,iso:"tv",nicename:"Tuvalu",phonecode:688,format:"901234"},{id:225,iso:"ug",nicename:"Uganda",phonecode:256,format:"0712 345678"},{id:226,iso:"ua",nicename:"Ukraine",phonecode:380,format:"039 123 4567"},{id:227,iso:"ae",nicename:"United Arab Emirates",phonecode:971,format:"050 123 4567"},{id:228,iso:"gb",nicename:"United Kingdom",phonecode:44,format:"07400 123456",priority:1},{id:229,iso:"us",nicename:"United States",phonecode:1,format:"(201) 555 0123",priority:1},{id:230,iso:"uy",nicename:"Uruguay",phonecode:598,format:"094 231 234"},{id:231,iso:"uz",nicename:"Uzbekistan",phonecode:998,format:"8 91 234 56 78"},{id:232,iso:"vu",nicename:"Vanuatu",phonecode:678,format:"591 2345"},{id:234,iso:"ve",nicename:"Venezuela",phonecode:58,format:"0412 1234567"},{id:235,iso:"vn",nicename:"Vietnam",phonecode:84,format:"091 234 56 78"},{id:236,iso:"vi",nicename:"Virgin Islands, U.S.",phonecode:1,format:"(340) 642 1234"},{id:237,iso:"ye",nicename:"Yemen",phonecode:967,format:"0712 345 678"},{id:238,iso:"zm",nicename:"Zambia",phonecode:260,format:"095 5123456"},{id:239,iso:"zw",nicename:"Zimbabwe",phonecode:263,format:"071 123 4567"},{id:240,iso:"ax",nicename:"Åland Islands",phonecode:358,format:"041 2345678"}]}}}},715:function(e,t,o){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={methods:{getArrayCustomPricing:function(e){var t=null;if(void 0===e||null===e||""===e)t={enabled:!1,durations:{}};else if("object"===(void 0===e?"undefined":i(e))){if(Array.isArray(e.durations))return e;t=JSON.parse(JSON.stringify(e))}else t=JSON.parse(e);var o=[];return Object.keys(t.durations).forEach(function(e){o.push({duration:parseInt(e),price:t.durations[e].price,rules:t.durations[e].rules})}),{enabled:t.enabled,durations:o}},getJsonCustomPricing:function(e){var t={};return e&&e.durations.filter(function(e){return e.duration}).length>0?(e.durations.forEach(function(e){t[e.duration]={price:e.price,rules:e.rules}}),JSON.stringify({enabled:e.enabled,durations:t})):JSON.stringify({enabled:!1,durations:{}})}}}},716:function(e,t,o){"use strict";e.exports=function(e,t){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return e.apply(t,o)}}},717:function(e,t,o){"use strict";var i=o(698),n=o(753),a=o(755),s=o(756),l=o(757),r=o(718),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||o(758);e.exports=function(e){return new Promise(function(t,u){var p=e.data,d=e.headers;i.isFormData(p)&&delete d["Content-Type"];var m=new XMLHttpRequest,f="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in m||l(e.url)||(m=new window.XDomainRequest,f="onload",h=!0,m.onprogress=function(){},m.ontimeout=function(){}),e.auth){var g=e.auth.username||"",v=e.auth.password||"";d.Authorization="Basic "+c(g+":"+v)}if(m.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m[f]=function(){if(m&&(4===m.readyState||h)&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var o="getAllResponseHeaders"in m?s(m.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?m.response:m.responseText,status:1223===m.status?204:m.status,statusText:1223===m.status?"No Content":m.statusText,headers:o,config:e,request:m};n(t,u,i),m=null}},m.onerror=function(){u(r("Network Error",e,null,m)),m=null},m.ontimeout=function(){u(r("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",m)),m=null},i.isStandardBrowserEnv()){var b=o(759),_=(e.withCredentials||l(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}if("setRequestHeader"in m&&i.forEach(d,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:m.setRequestHeader(t,e)}),e.withCredentials&&(m.withCredentials=!0),e.responseType)try{m.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){m&&(m.abort(),u(e),m=null)}),void 0===p&&(p=null),m.send(p)})}},718:function(e,t,o){"use strict";var i=o(754);e.exports=function(e,t,o,n,a){var s=new Error(e);return i(s,t,o,n,a)}},719:function(e,t,o){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},720:function(e,t,o){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},721:function(e,t,o){var i=o(335)(o(776),o(777),!1,null,null,null);e.exports=i.exports},723:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(714);t.default={mixins:[i.a],template:"#phone-input",props:{savedPhone:{default:"",type:String},disabled:{default:!1,type:Boolean},countryPhoneIso:null,dropdownClass:{type:String,default:""}},data:function(){return{input:"",phone:"",value:this.$root.settings.general.phoneDefaultCountryCode,format:""}},mounted:function(){""!==this.value?this.savedPhone?this.fillInputWithSavedPhone():this.formatPhoneNumber():this.savedPhone&&this.fillInputWithSavedPhone()},methods:{onClear:function(){this.value="",this.phone="",this.$emit("phoneFormatted",this.phone,this.value)},changeCountry:function(){""!==this.value&&""!==this.input&&(this.input=""),this.formatPhoneNumber()},formatPhoneNumber:function(){var e=this;if(""!==this.value&&"auto"!==this.value){var t=this.countries.find(function(t){return t.iso===e.value});this.format=!0===this.disabled?"":t.format}var o=this.input;if("ar"===window.localeLanguage[0]&&(o=o.replace(/[٠-٩]/g,function(e){return"٠١٢٣٤٥٦٧٨٩".indexOf(e)})),""!==o){if(o.startsWith("+")){var i=parseInt(o.slice(1)),n=this.countries.filter(function(e){return e.phonecode===i});if(n.length){var a=null;1===i?a=n.find(function(e){return 229===e.id}):44===i?a=n.find(function(e){return 228===e.id}):7===i&&(a=n.find(function(e){return 176===e.id})),void 0!==a&&null!==a||(a=n[0]),this.value=a.iso}this.phone=o}else this.phone=void 0!==t?!0===o.startsWith("0")&&"it"!==this.countryPhoneIso?"+"+t.phonecode+o.slice(1).replace(/\D/g,""):"+"+t.phonecode+o.replace(/\D/g,""):o;this.$emit("phoneFormatted",this.phone,this.value)}else this.phone=o,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 o=1;null===t&&o<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,o))&&1===t.priority}))?t:null,o++;if(!t)for(o=1;null===t&&o<5;)t=void 0!==(t=this.countries.find(function(t){return t.phonecode===parseInt(e.savedPhone.substr(1,o))}))?t:null,o++;null!==t&&(this.value=t.iso,this.input=this.savedPhone.replace("+"+t.phonecode,""),this.input=t.format.startsWith("0")?"0"+this.input:this.input)}},watch:{input:function(){this.formatPhoneNumber()}},components:{}}},724:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("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"}},[o("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 o("el-option",{key:t.id,attrs:{value:t.iso,label:" "}},[o("span",{class:"am-flag am-flag-"+t.iso}),e._v(" "),o("span",{staticClass:"am-phone-input-nicename"},[e._v(e._s(t.nicename))]),e._v(" "),o("span",{staticClass:"am-phone-input-phonecode"},[e._v("+"+e._s(t.phonecode))])])}),1)],1)},staticRenderFns:[]}},727:function(e,t,o){"use strict";var i=o(0),n=o.n(i);t.a={data:function(){return{payBtnLoader:null,timeZone:"",statusesCabinet:[{value:"approved",label:this.$root.labels.approved},{value:"pending",label:this.$root.labels.pending},{value:"canceled",label:this.$root.labels.canceled},{value:"rejected",label:this.$root.labels.rejected},{value:"no-show",label:this.$root.labels["no-show"]}]}},methods:{isPanelActive:function(e){return!this.$root.shortcodeData.cabinet||!(this.$root.shortcodeData.cabinet.appointments||this.$root.shortcodeData.cabinet.events||this.$root.shortcodeData.cabinet.profile)||(!("appointments"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.appointments)||(!("events"!==e||!this.$root.shortcodeData.cabinet||!this.$root.shortcodeData.cabinet.events)||"profile"===e&&this.$root.shortcodeData.cabinet&&this.$root.shortcodeData.cabinet.profile))},changeRange:function(e){this.$store.commit("cabinet/setParams",{dates:e}),this.setDatePickerSelectedDaysCount(this.$store.state.cabinet.params.dates.start,this.$store.state.cabinet.params.dates.end),this.$emit("refreshReservations")},isBookingCancelable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.cancelable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},isBookingReschedulable:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.reschedulable&&!("canceled"===e.bookings[t].status||"rejected"===e.bookings[t].status||"no-show"===e.bookings[t].status)},disableAuthorizationHeader:function(){return"ameliaBooking"in window&&"cabinet"in window.ameliaBooking&&"disableAuthorizationHeader"in window.ameliaBooking.cabinet&&window.ameliaBooking.cabinet.disableAuthorizationHeader},getAuthorizationHeaderObject:function(){return this.$store.state.cabinet.ameliaToken&&!this.disableAuthorizationHeader()?{headers:{Authorization:"Bearer "+this.$store.state.cabinet.ameliaToken}}:{}},getPaymentLink:function(e,t){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.payBtnLoader=t.bookings?t.bookings[0].id:t.id;var n=JSON.parse(JSON.stringify(t));n[n.type]=t;var a=JSON.parse(JSON.stringify(this.$store.state.cabinet.profile));if(a.birthday=null,n.customer=a,"package"===n.type){var s=i||Object.keys(n.payments)[0],l=n.payments[s].payments.sort(function(e,t){return e.id>t.id?1:-1});n.paymentId=l[0].id,n.packageCustomerId=s,n.packageReservations=[],n.bookable.forEach(function(e){n.packageReservations=n.packageReservations.concat(e.service.bookedAppointments.filter(function(e){return e.bookings[0].packageCustomerService.packageCustomer.id===parseInt(s)}))}),n.booking=n.packageReservations&&n.packageReservations.length>0?n.packageReservations[0].bookings[0]:null}else n.booking=t.bookings[0],n.paymentId=t.bookings[0].payments[0].id;this.$http.post(this.$root.getAjaxUrl+"/payments/link",{data:n,paymentMethod:e}).then(function(e){o.payBtnLoader=null,!e.data.data.error&&e.data.data.paymentLink?window.open(e.data.data.paymentLink,"_blank"):o.notify(o.$root.labels.error,o.$root.labels.payment_link_error,"error")}).catch(function(e){o.payBtnLoader=null,o.notify(o.$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 o=JSON.parse(t),i=o.payments.paymentLinks?o.payments.paymentLinks:this.$root.settings.payments.paymentLinks,a="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,l=!1;switch(e.type){case"package":l=!e.expireDateString||n()(e.expireDateString,"YYYY-MM-DD HH:mm:ss").isAfter(n()());break;case"appointment":l=n()(e.bookingStart,"YYYY-MM-DD HH:mm:ss").isAfter(n()())&&e.bookings[0].payments.length>0;break;case"event":l=n()(e.periods[e.periods.length-1].periodEnd,"YYYY-MM-DD HH:mm:ss").isAfter(n()())&&e.bookings[0].payments.length>0}return this.paymentMethods(o).length&&o&&i&&i.enabled&&a&&s>0&&l},paymentMethods:function(e){"string"==typeof e&&(e=JSON.parse(e));var t=[];return e=e.payments,this.$root.settings.payments.wc.enabled?t.push({value:"wc",label:this.$root.labels.wc}):!this.$root.settings.payments.mollie.enabled||"mollie"in e&&!e.mollie.enabled?(!this.$root.settings.payments.payPal.enabled||"payPal"in e&&!e.payPal.enabled||t.push({value:"payPal",label:this.$root.labels.pay_pal}),!this.$root.settings.payments.stripe.enabled||"stripe"in e&&!e.stripe.enabled||t.push({value:"stripe",label:this.$root.labels.credit_card}),!this.$root.settings.payments.razorpay.enabled||"razorpay"in e&&!e.razorpay.enabled||t.push({value:"razorpay",label:this.$root.labels.razorpay})):t.push({value:"mollie",label:this.$root.labels.on_line}),t}}}},729:function(e,t,o){var i=o(335)(o(734),o(735),!1,null,null,null);e.exports=i.exports},730:function(e,t,o){var i=o(335)(o(731),o(732),!1,null,null,null);e.exports=i.exports},731:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={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"},n=["locality","administrative_area_level_3"],a=["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,o){"OK"===o?(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,o){e.updateCoordinates(t)})},updateGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(navigator.geolocation){var o={};this.geolocationOptions&&Object.assign(o,this.geolocationOptions),navigator.geolocation.getCurrentPosition(function(o){var i={lat:o.coords.latitude,lng:o.coords.longitude};e.geolocation.loc=i,e.geolocation.position=o,t&&t(i,o)},function(t){e.$emit("error","Cannot get Coordinates from navigator",t)},o)}},biasAutocompleteLocation:function(){var e=this;this.enableGeolocation&&this.updateGeolocation(function(t,o){var i=new google.maps.Circle({center:t,radius:o.coords.accuracy});e.autocomplete.setBounds(i.getBounds())})},formatResult:function(e){for(var t={},o=0;o<e.address_components.length;o++){var n=e.address_components[o].types[0];if(i[n]){var a=e.address_components[o][i[n]];t[n]=a}}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=[],o=[this.types];o.includes("(cities)")&&(o=o.concat(n)),o.includes("(regions)")&&(o=o.concat(a));var i=!0,s=!1,l=void 0;try{for(var r,c=e[Symbol.iterator]();!(i=(r=c.next()).done);i=!0){var u=r.value,p=!0,d=!1,m=void 0;try{for(var f,h=u.types[Symbol.iterator]();!(p=(f=h.next()).done);p=!0){var g=f.value;if(o.includes(g)){t.push(u);break}}}catch(e){d=!0,m=e}finally{try{!p&&h.return&&h.return()}finally{if(d)throw m}}}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return t}}}},732:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"model",rawName:"v-model",value:e.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:e.classname,attrs:{type:"text",id:e.id,placeholder:e.placeholder},domProps:{value:e.autocompleteText},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()},change:e.onChange,keypress:e.onKeyPress,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.autocompleteText=t.target.value)}}})},staticRenderFns:[]}},734:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(338);t.default={mixins:[i.a],props:["oldCustomize","appointmentsApproved","appointmentsPending","employeesTotal","customersTotal","locationsTotal","packagesTotal","resourcesTotal","servicesTotal","categoriesTotal","financeTotal","addNewCouponBtnDisplay","addNewCustomFieldBtnDisplay","locations","categories","bookableType","params","fetched"],methods:{showMainCustomize:function(){this.$emit("showMainCustomize",null)},showDialogCustomer:function(){this.$emit("newCustomerBtnClicked",null)},showDialogAppointment:function(){this.$emit("newAppointmentBtnClicked",null)},showDialogEvent:function(){this.$emit("newEventBtnClicked",null)},showDialogEmployee:function(){this.$emit("newEmployeeBtnClicked")},showDialogLocation:function(){this.$emit("newLocationBtnClicked")},showDialogService:function(){this.$emit("newServiceBtnClicked")},showDialogPackage:function(){this.$emit("newPackageBtnClicked")},showDialogPackageBooking:function(){this.$emit("newPackageBookingBtnClicked")},showDialogResource:function(){this.$emit("newResourceBtnClicked")},showDialogCoupon:function(){this.$emit("newCouponBtnClicked")},showDialogCustomFields:function(){this.$emit("newCustomFieldBtnClicked")},selectAllInCategory:function(e){this.$emit("selectAllInCategory",e)},changeFilter:function(){this.$emit("changeFilter")}}}},735:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-page-header am-section"},[o("el-row",{attrs:{type:"wpamelia-calendar"===e.$router.currentRoute.name?"":"flex",align:"middle"}},[o("el-col",{attrs:{span:"wpamelia-calendar"===e.$router.currentRoute.name?6:18}},[o("div",{staticClass:"am-logo"},[o("img",{staticClass:"logo-big",attrs:{width:"92",src:e.$root.getUrl+"public/img/amelia-logo-horizontal.svg"}}),e._v(" "),o("img",{staticClass:"logo-small",attrs:{width:"28",src:e.$root.getUrl+"public/img/amelia-logo-symbol.svg"}})]),e._v(" "),o("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?o("span",{staticClass:"am-appointments-number approved"},[e._v("\n "+e._s(e.appointmentsApproved)+"\n ")]):e._e(),e._v(" "),e.appointmentsPending>=0?o("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?o("span",[o("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?o("span",[o("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?o("span",[o("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?o("span",[o("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?o("span",[o("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?o("span",[o("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?o("span",[o("span",{staticClass:"total-number"},[e._v(e._s(e.financeTotal))]),e._v(" "+e._s(e.$root.labels.total)+"\n ")]):e._e()])]),e._v(" "),o("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)?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("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)?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEvent}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_event))])]):e._e(),e._v(" "),e.$root.isLite||"wpamelia-employees"!==e.$router.currentRoute.name||!0!==e.$root.settings.capabilities.canWrite||!0!==e.$root.settings.capabilities.canWriteOthers?e._e():o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogEmployee}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_employee))])]),e._v(" "),"wpamelia-customers"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomer}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_customer))])]):e._e(),e._v(" "),o("el-popover",e._b({ref:"addLocationPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),o("div",{directives:[{name:"popover",rawName:"v-popover:addLocationPop",arg:"addLocationPop"}]},["wpamelia-locations"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite?o("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary",disabled:e.$root.isLite},on:{click:e.showDialogLocation}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_location))])]):e._e()],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&e.categoriesTotal>0&&!0===e.$root.settings.capabilities.canWrite&&"services"===e.bookableType?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogService}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_service))])]):e._e(),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"popover",rawName:"v-popover:addPackagePop",arg:"addPackagePop"}]},[o("el-popover",e._b({ref:"addPackagePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&e.packagesTotal>=0&&!0===e.$root.settings.capabilities.canWrite&&"packages"===e.bookableType?o("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:e.showDialogPackage}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_package))])]):e._e()],1)]),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"popover",rawName:"v-popover:addResourcePop",arg:"addResourcePop"}]},[o("el-popover",e._b({ref:"addResourcePop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),"wpamelia-services"===e.$router.currentRoute.name&&!0===e.$root.settings.capabilities.canWrite&&"resources"===e.bookableType?o("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:function(t){return e.showDialogResource()}}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_resource))])]):e._e()],1)]),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"popover",rawName:"v-popover:addCouponPop",arg:"addCouponPop"}]},[o("el-popover",e._b({ref:"addCouponPop",attrs:{disabled:!e.$root.isLite}},"el-popover",e.$root.popLiteProps,!1),[o("PopLite")],1),e._v(" "),"wpamelia-finance"===e.$router.currentRoute.name&&e.addNewCouponBtnDisplay&&!0===e.$root.settings.capabilities.canWrite?o("el-button",{class:{"am-dialog-create":!0,"am-lite-disabled":e.$root.isLite},attrs:{type:"primary"},on:{click:e.showDialogCoupon}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.new_coupon))])]):e._e()],1)]),e._v(" "),o("transition",{attrs:{name:"fade"}},["wpamelia-cf"===e.$router.currentRoute.name&&e.addNewCustomFieldBtnDisplay?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogCustomFields}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("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?o("div",{staticClass:"v-calendar-column"},[o("div",{staticClass:"el-form-item__content"},[o("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?o("div",{staticClass:"am-calendar-header-filters"},[o("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[o("el-form-item",{attrs:{label:e.$root.labels.services+":"}},[o("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 o("div",{key:t.id},[o("div",{staticClass:"am-drop-parent",on:{click:function(o){return e.selectAllInCategory(t.id)}}},[o("span",[e._v(e._s(t.name))])]),e._v(" "),e._l(t.serviceList,function(e){return o("el-option",{key:e.id,staticClass:"am-drop-child",attrs:{label:e.name,value:e.id}})})],2)}),0)],1),e._v(" "),o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.locations.length,expression:"locations.length"}],attrs:{label:e.$root.labels.locations+":"}},[o("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 o("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)?o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showDialogAppointment}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("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?o("div",{staticClass:"am-calendar-header-filters"},[o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.showMainCustomize}},[o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.go_back))])])],1):e._e()],1)],1)],1)},staticRenderFns:[]}},736:function(e,t,o){var i=o(335)(o(739),o(740),!1,function(e){o(737)},null,null);e.exports=i.exports},737:function(e,t,o){var i=o(738);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(705)("735f6488",i,!0,{})},738:function(e,t,o){(e.exports=o(704)(!1)).push([e.i,".am-dialog-new-customize__content-img{margin-bottom:12px}.am-dialog-new-customize__content-img img{display:inline-block;width:100%;border-radius:6px}.am-dialog-new-customize__content-heading{font-family:Amelia Roboto,sans-serif;font-size:15px;font-weight:400;line-height:1.6;color:#1a2c37;word-break:break-word;margin:0 0 16px}.am-dialog-new-customize__content-list{margin-bottom:20px}.am-dialog-new-customize__content-list__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0 0 16px}.am-dialog-new-customize__content-list__item span{font-size:15px;font-weight:600;color:#1a2c37;margin:0 0 0 12px}.am-dialog-new-customize__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.am-dialog-new-customize__footer .el-button.el-button--primary{width:100%;border-radius:8px;margin-bottom:8px}.am-dialog-new-customize__footer .el-button.el-button--primary span{font-family:Amelia Roboto,sans-serif;font-size:14px;font-weight:500}.am-dialog-new-customize__footer .el-button.el-button--secondary{max-width:100px;border-radius:8px;border:none;background-color:#fff;margin:0}.am-dialog-new-customize__footer .el-button.el-button--secondary span{font-family:Amelia Roboto,sans-serif;font-size:14px;font-weight:500;color:#1a2c37}.am-dialog-new-customize .el-dialog{max-width:500px;width:100%;background-color:#fff;border-radius:8px;padding:24px;-webkit-box-sizing:border-box;box-sizing:border-box}.am-dialog-new-customize .el-dialog__body,.am-dialog-new-customize .el-dialog__footer,.am-dialog-new-customize .el-dialog__header{padding:0}.am-dialog-new-customize .el-dialog__header h1{font-family:Amelia Roboto,sans-serif;font-size:28px;font-weight:700;line-height:1.2857;color:#1a2c37;margin:0 0 16px}",""])},739:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"DialogNewCustomize",props:{customizePage:{type:Boolean,default:!1}},data:function(){return{dialogNewCustomize:!0}},created:function(){this.dialogNewCustomize=this.$root.settings.activation.showAmeliaPromoCustomizePopup},methods:{goToCustomize:function(){this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaPromoCustomizePopup:!1}}).then(function(e){window.location.href="admin.php?page=wpamelia-customize-new¤t=elf"}).catch(function(e){})},closeDialog:function(){var e=this;this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaPromoCustomizePopup:!1}}).then(function(t){e.dialogNewCustomize=!1}).catch(function(t){e.dialogNewCustomize=!1})}}}},740:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return!e.dialogNewCustomize||"admin"!==e.$root.settings.role&&"manager"!==e.$root.settings.role?e._e():o("el-dialog",{staticClass:"am-dialog-new-customize",attrs:{"show-close":!1,"close-on-click-modal":!1,"append-to-body":!0,visible:e.dialogNewCustomize},on:{"update:visible":function(t){e.dialogNewCustomize=t}},scopedSlots:e._u([{key:"title",fn:function(){return[o("h1",[e._v("\n "+e._s(e.$root.labels.customize_dialog_heading)+"\n ")])]},proxy:!0},{key:"default",fn:function(){return[o("div",{staticClass:"am-dialog-new-customize__content"},[o("div",{staticClass:"am-dialog-new-customize__content-img"},[o("img",{attrs:{src:e.$root.getUrl+"v3/src/assets/img/admin/customize/amelia-event-list-2-0.png",alt:e.$root.labels.customize_dialog_heading}})]),e._v(" "),o("div",{staticClass:"am-dialog-new-customize__content-heading",domProps:{innerHTML:e._s(e.$root.labels.customize_dialog_sub_heading)}}),e._v(" "),o("div",{staticClass:"am-dialog-new-customize__content-description"})])]},proxy:!0},{key:"footer",fn:function(){return[o("div",{staticClass:"am-dialog-new-customize__footer"},[o("el-button",{attrs:{type:"primary"},on:{click:e.goToCustomize}},[e.customizePage?e._e():[e._v("\n "+e._s(e.$root.labels.customize_dialog_go_to)+"\n ")],e._v(" "),e.customizePage?[e._v("\n "+e._s(e.$root.labels.customize_dialog_check)+"\n ")]:e._e()],2),e._v(" "),o("el-button",{attrs:{type:"secondary"},on:{click:e.closeDialog}},[e._v("\n "+e._s(e.$root.labels.customize_dialog_close)+"\n ")])],1)]},proxy:!0}],null,!1,3727916322)})},staticRenderFns:[]}},741:function(e,t,o){var i=o(335)(o(744),o(745),!1,function(e){o(742)},null,null);e.exports=i.exports},742:function(e,t,o){var i=o(743);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(705)("279425cc",i,!0,{})},743:function(e,t,o){(e.exports=o(704)(!1)).push([e.i,".am-survey__btn{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;bottom:32px;right:104px;width:56px;height:56px;border-radius:50%;background:#1a2c37;background:linear-gradient(330deg,#1a2c37,#1a2c37 47%,#60addd 54%,#1a2c37 61%,#1a2c37);background-size:300%;-webkit-animation:am-survey-animation 4s infinite;animation:am-survey-animation 4s infinite;z-index:1000;-webkit-box-shadow:0 8px 8px 0 rgba(0,0,0,.24),0 0 8px 0 rgba(0,0,0,.12);box-shadow:0 8px 8px 0 rgba(0,0,0,.24),0 0 8px 0 rgba(0,0,0,.12)}.am-survey__btn:hover{-webkit-animation:unset;animation:unset;background:#1a2c37}.am-survey__dialog .el-dialog{max-width:484px;width:100%;border-radius:8px}.am-survey__dialog .el-dialog__header{padding:20px 24px 24px}.am-survey__dialog .el-dialog__body{padding:0 24px 24px}.am-survey__dialog-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.am-survey__dialog-header__text{font-size:18px;font-weight:600;line-height:1.55556;color:#1a2c37}.am-survey__dialog-header__btn{font-size:15px;font-weight:500;line-height:1.6;color:#808a90;cursor:pointer}.am-survey__dialog-img{width:100%;margin-bottom:16px}.am-survey__dialog-img img{width:100%}.am-survey__dialog-text div{font-size:18px;font-weight:500;line-height:1.55556;color:#1a2c37;margin-bottom:4px}.am-survey__dialog-text span{display:block;font-size:15px;font-weight:500;line-height:1.6;color:#1a2c37;word-break:break-word}@-webkit-keyframes am-survey-animation{0%{-webkit-transform:scale(1);transform:scale(1);background-position:100% 0}15%{-webkit-transform:scale(1.05);transform:scale(1.05)}20%{background-position:-20% 0}30%{-webkit-transform:scale(1);transform:scale(1)}to{background-position:-20% 0}}@keyframes am-survey-animation{0%{-webkit-transform:scale(1);transform:scale(1);background-position:100% 0}15%{-webkit-transform:scale(1.05);transform:scale(1.05)}20%{background-position:-20% 0}30%{-webkit-transform:scale(1);transform:scale(1)}to{background-position:-20% 0}}",""])},744:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"AmSurvey",data:function(){return{dialogSurvey:!1,surveyVisibility:!0}},created:function(){this.surveyVisibility=this.$root.settings.activation.showAmeliaSurvey},methods:{closeForever:function(){var e=this;this.dialogSurvey=!1,this.$http.post(this.$root.getAjaxUrl+"/settings",{activation:{showAmeliaSurvey:!1}}).then(function(t){e.surveyVisibility=!1}).catch(function(e){})},maybeLater:function(){this.dialogSurvey=!1},goToSurvey:function(){this.dialogSurvey=!1,window.open("https://www.surveymonkey.com/r/VJQDLVX","_blank")},openSurvey:function(){this.dialogSurvey=!0}}}},745:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.surveyVisibility&&"admin"===e.$root.settings.role?o("div",{staticClass:"am-survey__wrapper"},[o("el-dialog",{staticClass:"am-survey__dialog",attrs:{"show-close":!1,"close-on-click-modal":!1,"append-to-body":!0,visible:e.dialogSurvey},on:{"update:visible":function(t){e.dialogSurvey=t}},scopedSlots:e._u([{key:"title",fn:function(){return[o("div",{staticClass:"am-survey__dialog-header"},[o("span",{staticClass:"am-survey__dialog-header__text"},[e._v("\n "+e._s(e.$root.labels.survey_heading)+"\n ")]),e._v(" "),o("span",{staticClass:"am-survey__dialog-header__btn",on:{click:e.closeForever}},[e._v("\n "+e._s(e.$root.labels.survey_close)+"\n ")])])]},proxy:!0},{key:"default",fn:function(){return[o("div",{staticClass:"am-survey__dialog-content"},[o("div",{staticClass:"am-survey__dialog-img"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/survey/am-survey.png",alt:e.$root.labels.survey_heading}})]),e._v(" "),o("div",{staticClass:"am-survey__dialog-text",domProps:{innerHTML:e._s(e.$root.labels.survey_content)}})])]},proxy:!0},{key:"footer",fn:function(){return[o("div",{staticClass:"am-survey__dialog-footer"},[o("el-button",{attrs:{type:"secondary"},on:{click:e.maybeLater}},[e._v("\n "+e._s(e.$root.labels.survey_maybe)+"\n ")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.goToSurvey}},[e._v("\n "+e._s(e.$root.labels.survey_sure)+"\n ")])],1)]},proxy:!0}],null,!1,3092811696)}),e._v(" "),o("div",{staticClass:"am-survey__btn",on:{click:e.openSurvey}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/survey/am-clipboard.svg"}})])],1):e._e()},staticRenderFns:[]}},746:function(e,t,o){"use strict";t.a={data:function(){return{}},methods:{updateStashEntities:function(e){this.$root.settings.activation.stash&&this.$http.post(this.$root.getAjaxUrl+"/stash",e).then(function(e){})}}}},747:function(e,t,o){"use strict";var i=o(700),n=o(338);t.a={mixins:[i.a,n.a],data:function(){return{groupedPlaceholders:{},initialGroupedPlaceholders:{companyPlaceholders:[{value:"%company_address%",label:this.$root.labels.ph_company_address},{value:"%company_name%",label:this.$root.labels.ph_company_name},{value:"%company_phone%",label:this.$root.labels.ph_company_phone},{value:"%company_website%",label:this.$root.labels.ph_company_website},{value:"%company_email%",label:this.$root.labels.ph_company_email}],customerPlaceholders:[{value:"%customer_email%",label:this.$root.labels.ph_customer_email},{value:"%customer_first_name%",label:this.$root.labels.ph_customer_first_name},{value:"%customer_full_name%",label:this.$root.labels.ph_customer_full_name},{value:"%customer_last_name%",label:this.$root.labels.ph_customer_last_name},{value:"%customer_note%",label:this.$root.labels.ph_customer_note},{value:"%customer_phone%",label:this.$root.labels.ph_customer_phone},{value:"%customer_panel_url%",label:this.$root.labels.ph_customer_cabinet_url,parse:"link"}],packagePlaceholders:[{value:"%package_appointments_details%",label:this.$root.labels.ph_package_appointments_details},{value:"%package_description%",label:this.$root.labels.ph_package_description},{value:"%package_duration%",label:this.$root.labels.ph_package_duration},{value:"%package_name%",label:this.$root.labels.ph_package_name},{value:"%package_price%",label:this.$root.labels.ph_package_price},{value:"%time_zone%",label:this.$root.labels.ph_time_zone},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used}],employeePlaceholders:[{value:"%employee_email%",label:this.$root.labels.ph_employee_email},{value:"%employee_first_name%",label:this.$root.labels.ph_employee_first_name},{value:"%employee_full_name%",label:this.$root.labels.ph_employee_full_name},{value:"%employee_last_name%",label:this.$root.labels.ph_employee_last_name},{value:"%employee_note%",label:this.$root.labels.ph_employee_note},{value:"%employee_description%",label:this.$root.labels.ph_employee_description},{value:"%employee_phone%",label:this.$root.labels.ph_employee_phone},{value:"%employee_panel_url%",label:this.$root.labels.ph_employee_cabinet_url,parse:"link"},{value:"%employee_password%",label:this.$root.labels.ph_employee_password}],paymentPlaceholders:[{value:"%payment_type%",label:this.$root.labels.ph_payment_type},{value:"%appointment_deposit_payment%",label:this.$root.labels.ph_appointment_deposit_payment},{value:"%event_deposit_payment%",label:this.$root.labels.ph_event_deposit_payment},{value:"%package_deposit_payment%",label:this.$root.labels.ph_package_deposit_payment},{value:"%payment_link_woocommerce%",label:this.$root.labels.ph_payment_link_woocommerce},{value:"%payment_link_mollie%",label:this.$root.labels.ph_payment_link_mollie},{value:"%payment_link_paypal%",label:this.$root.labels.ph_payment_link_paypal},{value:"%payment_link_stripe%",label:this.$root.labels.ph_payment_link_stripe},{value:"%payment_link_razorpay%",label:this.$root.labels.ph_payment_link_razorpay}],categoryPlaceholders:[{value:"%category_name%",label:this.$root.labels.ph_category_name},{value:"%service_description%",label:this.$root.labels.ph_service_description},{value:"%service_duration%",label:this.$root.labels.ph_service_duration},{value:"%service_name%",label:this.$root.labels.ph_service_name},{value:"%service_price%",label:this.$root.labels.ph_service_price}],locationPlaceholders:[{value:"%location_address%",label:this.$root.labels.ph_location_address},{value:"%location_description%",label:this.$root.labels.ph_location_description},{value:"%location_name%",label:this.$root.labels.ph_location_name},{value:"%location_phone%",label:this.$root.labels.ph_location_phone}],appointmentPlaceholders:[{value:"%appointment_id%",label:this.$root.labels.ph_appointment_id},{value:"%appointment_cancel_url%",label:this.$root.labels.ph_appointment_cancel_url,parse:"link"},{value:"%appointment_date%",label:this.$root.labels.ph_appointment_date},{value:"%appointment_date_time%",label:this.$root.labels.ph_appointment_date_time},{value:"%appointment_start_time%",label:this.$root.labels.ph_appointment_start_time},{value:"%appointment_end_time%",label:this.$root.labels.ph_appointment_end_time},{value:"%initial_appointment_date%",label:this.$root.labels.ph_initial_appointment_date},{value:"%initial_appointment_date_time%",label:this.$root.labels.ph_initial_appointment_date_time},{value:"%initial_appointment_start_time%",label:this.$root.labels.ph_initial_appointment_start_time},{value:"%initial_appointment_end_time%",label:this.$root.labels.ph_initial_appointment_end_time},{value:"%appointment_duration%",label:this.$root.labels.ph_appointment_duration},{value:"%appointment_notes%",label:this.$root.labels.ph_appointment_notes},{value:"%appointment_price%",label:this.$root.labels.ph_appointment_price},{value:"%appointment_status%",label:this.$root.labels.ph_appointment_status},{value:"%booked_customer%",label:this.$root.labels.ph_booked_customer},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%recurring_appointments_details%",label:this.$root.labels.ph_recurring_appointments_details},{value:"%group_appointment_details%",label:this.$root.labels.ph_group_appointment_details},{value:"%zoom_host_url%",label:this.$root.labels.ph_zoom_host_url},{value:"%zoom_join_url%",label:this.$root.labels.ph_zoom_join_url},{value:"%google_meet_url%",label:this.$root.labels.ph_google_meet_url},{value:"%lesson_space_url%",label:this.$root.labels.ph_lesson_space_url},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description},{value:"%time_zone%",label:this.$root.labels.ph_time_zone}],eventPlaceholders:[{value:"%attendee_code%",label:this.$root.labels.ph_attendee_code},{value:"%coupon_used%",label:this.$root.labels.ph_coupon_used},{value:"%event_cancel_url%",label:this.$root.labels.ph_event_cancel_url,parse:"link"},{value:"%event_description%",label:this.$root.labels.ph_event_description},{value:"%event_location%",label:this.$root.labels.ph_event_location},{value:"%event_end_date%",label:this.$root.labels.ph_event_end_date},{value:"%event_end_date_time%",label:this.$root.labels.ph_event_end_date_time},{value:"%event_end_time%",label:this.$root.labels.ph_event_end_time},{value:"%group_event_details%",label:this.$root.labels.ph_group_event_details},{value:"%event_tickets%",label:this.$root.labels.ph_event_tickets},{value:"%event_name%",label:this.$root.labels.ph_event_name},{value:"%event_period_date%",label:this.$root.labels.ph_event_period_date},{value:"%event_period_date_time%",label:this.$root.labels.ph_event_period_date_time},{value:"%event_price%",label:this.$root.labels.ph_event_price},{value:"%booking_price%",label:this.$root.labels.ph_booking_price},{value:"%event_start_date%",label:this.$root.labels.ph_event_start_date},{value:"%event_start_date_time%",label:this.$root.labels.ph_event_start_date_time},{value:"%event_start_time%",label:this.$root.labels.ph_event_start_time},{value:"%initial_event_start_date%",label:this.$root.labels.ph_initial_event_start_date},{value:"%initial_event_start_date_time%",label:this.$root.labels.ph_initial_event_start_date_time},{value:"%initial_event_start_time%",label:this.$root.labels.ph_initial_event_start_time},{value:"%initial_event_end_date%",label:this.$root.labels.ph_initial_event_end_date},{value:"%initial_event_end_date_time%",label:this.$root.labels.ph_initial_event_end_date_time},{value:"%initial_event_end_time%",label:this.$root.labels.ph_initial_event_end_time},{value:"%employee_name_email_phone%",label:this.$root.labels.ph_employee_name_email_phone},{value:"%number_of_persons%",label:this.$root.labels.ph_booking_number_of_persons},{value:"%lesson_space_url_date%",label:this.$root.labels.ph_lesson_space_url_date},{value:"%lesson_space_url_date_time%",label:this.$root.labels.ph_lesson_space_url_date_time},{value:"%google_meet_url_date%",label:this.$root.labels.ph_google_meet_url_date},{value:"%google_meet_url_date_time%",label:this.$root.labels.ph_google_meet_url_date_date},{value:"%zoom_host_url_date%",label:this.$root.labels.ph_zoom_host_url_date},{value:"%zoom_host_url_date_time%",label:this.$root.labels.ph_zoom_host_url_date_date},{value:"%zoom_join_url_date%",label:this.$root.labels.ph_zoom_join_url_date},{value:"%zoom_join_url_date_time%",label:this.$root.labels.ph_zoom_join_url_date_date},{value:"%reservation_name%",label:this.$root.labels.ph_reservation_name},{value:"%reservation_description%",label:this.$root.labels.ph_reservation_description},{value:"%time_zone%",label:this.$root.labels.ph_time_zone}],customFieldsPlaceholders:[],extrasPlaceholders:[],couponsPlaceholders:[]},placeholders:[],linksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"},plainTextLinksForParsing:{"%customer_panel_url%":'<a href="%customer_panel_url%">'+this.$root.labels.ph_customer_cabinet_url+"</a>","%employee_panel_url%":'<a href="%employee_panel_url%">'+this.$root.labels.ph_employee_cabinet_url+"</a>","%appointment_cancel_url%":'<a href="%appointment_cancel_url%">'+this.$root.labels.ph_appointment_cancel_url+"</a>","%event_cancel_url%":'<a href="%event_cancel_url%">'+this.$root.labels.ph_event_cancel_url+"</a>"}}},methods:{getEventPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.eventPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))},getAppointmentPlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.employeePlaceholders.concat(this.groupedPlaceholders.locationPlaceholders.concat(this.groupedPlaceholders.customFieldsPlaceholders.concat(this.groupedPlaceholders.couponsPlaceholders.concat(this.groupedPlaceholders.appointmentPlaceholders.concat(this.groupedPlaceholders.categoryPlaceholders.concat(this.groupedPlaceholders.extrasPlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))))))))},getPackagePlaceholders:function(){return this.groupedPlaceholders.companyPlaceholders.concat(this.groupedPlaceholders.customerPlaceholders.concat(this.groupedPlaceholders.packagePlaceholders.concat(this.groupedPlaceholders.paymentPlaceholders)))},removePlaceholder:function(e,t){if(e in this.groupedPlaceholders){var o=null;this.groupedPlaceholders[e].forEach(function(e,i){e.value===t&&(o=i)}),null!==o&&this.groupedPlaceholders[e].splice(o,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 o=0;o<this.categories[e].serviceList[t].extras.length;o++)this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[o].id+"_name%",label:this.categories[e].serviceList[t].extras[o].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[o].id+"_quantity%",label:this.categories[e].serviceList[t].extras[o].name}),this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extra_"+this.categories[e].serviceList[t].extras[o].id+"_price%",label:this.categories[e].serviceList[t].extras[o].name});this.groupedPlaceholders.extrasPlaceholders.push({value:"%service_extras%",label:this.$root.labels.ph_extras})},setPlaceholders:function(e){var t=this;this.groupedPlaceholders=JSON.parse(JSON.stringify(this.initialGroupedPlaceholders)),this.addExtrasPlaceholders(),this.addCouponsPlaceholders(this.userTypeTab),this.addCustomFieldsPlaceholders(this.userTypeTab);var o=function(o){e[o].forEach(function(e){t.removePlaceholder(o,e)})};for(var i in e)o(i)},isDisabledInLite:function(e){return this.$root.isLite&&-1!==["%coupon_used%","%appointment_cancel_url%","%appointment_deposit_payment%","%event_deposit_payment%","%event_cancel_url%","%customer_panel_url%","%employee_panel_url%","%google_meet_url%","%zoom_join_url%","%zoom_host_url%","%zoom_host_url_date%","%zoom_host_url_date_time%","%zoom_join_url_date%","%zoom_join_url_date_time%","%lesson_space_url%","%lesson_space_url_date%","%lesson_space_url_date_time%","%location_name%","%location_description%","%location_address%","%location_phone%","%service_extras%","%recurring_appointments_details%"].indexOf(e)}},computed:{}}},749:function(e,t,o){e.exports=o(750)},750:function(e,t,o){"use strict";var i=o(698),n=o(716),a=o(751),s=o(708);function l(e){var t=new a(e),o=n(a.prototype.request,t);return i.extend(o,a.prototype,t),i.extend(o,t),o}var r=l(s);r.Axios=a,r.create=function(e){return l(i.merge(s,e))},r.Cancel=o(720),r.CancelToken=o(765),r.isCancel=o(719),r.all=function(e){return Promise.all(e)},r.spread=o(766),e.exports=r,e.exports.default=r},751:function(e,t,o){"use strict";var i=o(708),n=o(698),a=o(760),s=o(761),l=o(763),r=o(764);function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e&&(e=n.merge({url:arguments[0]},arguments[1])),(e=n.merge(i,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!l(e.url)&&(e.url=r(e.baseURL,e.url));var t=[s,void 0],o=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;)o=o.then(t.shift(),t.shift());return o},n.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,o){return this.request(n.merge(o||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,o,i){return this.request(n.merge(i||{},{method:e,url:t,data:o}))}}),e.exports=c},752:function(e,t,o){"use strict";var i=o(698);e.exports=function(e,t){i.forEach(e,function(o,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=o,delete e[i])})}},753:function(e,t,o){"use strict";var i=o(718);e.exports=function(e,t,o){var n=o.config.validateStatus;o.status&&n&&!n(o.status)?t(i("Request failed with status code "+o.status,o.config,null,o.request,o)):e(o)}},754:function(e,t,o){"use strict";e.exports=function(e,t,o,i,n){return e.config=t,o&&(e.code=o),e.request=i,e.response=n,e}},755:function(e,t,o){"use strict";var i=o(698);function n(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,o){if(!t)return e;var a;if(o)a=o(t);else if(i.isURLSearchParams(t))a=t.toString();else{var s=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)&&(t+="[]"),i.isArray(e)||(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),a=s.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},756:function(e,t,o){"use strict";var i=o(698);e.exports=function(e){var t,o,n,a={};return e?(i.forEach(e.split("\n"),function(e){n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),o=i.trim(e.substr(n+1)),t&&(a[t]=a[t]?a[t]+", "+o:o)}),a):a}},757:function(e,t,o){"use strict";var i=o(698);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");function n(e){var i=e;return t&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return e=n(window.location.href),function(t){var o=i.isString(t)?n(t):t;return o.protocol===e.protocol&&o.host===e.host}}():function(){return!0}},758:function(e,t,o){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function n(){this.message="String contains an invalid character"}n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,o,a=String(e),s="",l=0,r=i;a.charAt(0|l)||(r="=",l%1);s+=r.charAt(63&t>>8-l%1*8)){if((o=a.charCodeAt(l+=.75))>255)throw new n;t=t<<8|o}return s}},759:function(e,t,o){"use strict";var i=o(698);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,o,n,a,s){var l=[];l.push(e+"="+encodeURIComponent(t)),i.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),i.isString(n)&&l.push("path="+n),i.isString(a)&&l.push("domain="+a),!0===s&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},760:function(e,t,o){"use strict";var i=o(698);function n(){this.handlers=[]}n.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},761:function(e,t,o){"use strict";var i=o(698),n=o(762),a=o(719),s=o(708);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=n(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return l(e),t.data=n(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=n(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},762:function(e,t,o){"use strict";var i=o(698);e.exports=function(e,t,o){return i.forEach(o,function(o){e=o(e,t)}),e}},763:function(e,t,o){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},764:function(e,t,o){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},765:function(e,t,o){"use strict";var i=o(720);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var o=this;e(function(e){o.reason||(o.reason=new i(e),t(o.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},766:function(e,t,o){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},767:function(e,t,o){"use strict";var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(12),s=(i=a)&&i.__esModule?i:{default:i};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 n(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}()},768:function(e,t,o){"use strict";function i(e){return void 0===e}function n(e){return Array.isArray(e)}function a(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}e.exports=function e(t,o,s,l){if(o instanceof FormData&&(l=s,s=o,o=null),(o=o||{}).indices=!i(o.indices)&&o.indices,o.nulls=!!i(o.nulls)||o.nulls,s=s||new FormData,i(t))return s;if(function(e){return null===e}(t))o.nulls&&s.append(l,"");else if(n(t))if(t.length)t.forEach(function(t,i){var n=l+"["+(o.indices?i:"")+"]";e(t,o,s,n)});else{var r=l+"[]";s.append(r,"")}else!function(e){return e instanceof Date}(t)?!function(e){return e===Object(e)}(t)||function(e){return a(e)&&("object"==typeof e.lastModifiedDate||"number"==typeof e.lastModified)&&"string"==typeof e.name}(t)||a(t)?s.append(l,t):Object.keys(t).forEach(function(i){var a=t[i];if(n(a))for(;i.length>2&&i.lastIndexOf("[]")===i.length-2;)i=i.substring(0,i.length-2);e(a,o,s,l?l+"["+i+"]":i)}):s.append(l,t.toISOString());return s}},769:function(e,t,o){var i;i=function(){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,i){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,o){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,o){"use strict";var i=o(2),n=o(5),a=o(0);t.a=function(e,t){if(t.value){var s=o.i(n.a)(a.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var l=e.getElementsByTagName("input");1!==l.length||(e=l[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=o.i(i.a)(e.value,s),t=Math.max(t,s.suffix.length),t=e.value.length-t,t=Math.max(t,s.prefix.length+1),o.i(i.b)(e,t),e.dispatchEvent(o.i(i.c)("change"))},e.onfocus=function(){o.i(i.b)(e,e.value.length-s.suffix.length)},e.oninput(),e.dispatchEvent(o.i(i.c)("input"))}}},function(e,t,o){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a;"number"==typeof e&&(e=e.toFixed(s(t.precision)));var o=e.indexOf("-")>=0?"-":"",i=r(l(a(e),t.precision)).split("."),n=i[0],c=i[1];return n=function(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}(n,t.thousands),t.prefix+o+function(e,t,o){return t?e+o+t:e}(n,c,t.decimal)+t.suffix}function n(e,t){var o=e.indexOf("-")>=0?-1:1,i=l(a(e),t);return parseFloat(i)*o}function a(e){return r(e).replace(/\D+/g,"")||"0"}function s(e){return function(e,t,o){return Math.max(e,Math.min(t,o))}(0,e,20)}function l(e,t){var o=Math.pow(10,t);return(parseFloat(e)/o).toFixed(s(t))}function r(e){return e?e.toString():""}function c(e,t){var o=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(o(),setTimeout(o,1))}function u(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var p=o(0);o.d(t,"a",function(){return i}),o.d(t,"d",function(){return n}),o.d(t,"b",function(){return c}),o.d(t,"c",function(){return u})},function(e,t,o){"use strict";function i(e,t){t&&Object.keys(t).map(function(e){l.a[e]=t[e]}),e.directive("money",s.a),e.component("money",a.a)}Object.defineProperty(t,"__esModule",{value:!0});var n=o(6),a=o.n(n),s=o(1),l=o(0);o.d(t,"Money",function(){return a.a}),o.d(t,"VMoney",function(){return s.a}),o.d(t,"options",function(){return l.a}),o.d(t,"VERSION",function(){return r});var r="0.8.1";t.default=i,"undefined"!=typeof window&&window.Vue&&window.Vue.use(i)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(0),a=o(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 n.a.precision}},decimal:{type:String,default:function(){return n.a.decimal}},thousands:{type:String,default:function(){return n.a.thousands}},prefix:{type:String,default:function(){return n.a.prefix}},suffix:{type:String,default:function(){return n.a.suffix}}},directives:{money:i.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var i=o.i(a.a)(e,this.$props);i!==this.formattedValue&&(this.formattedValue=i)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:o.i(a.d)(e.target.value,this.precision))}}}},function(e,t,o){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce(function(o,i){return o[i]=void 0===t[i]?e[i]:t[i],o},{})}},function(e,t,o){var i=o(7)(o(4),o(8),null,null);e.exports=i.exports},function(e,t){e.exports=function(e,t,o,i){var n,a=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(n=e,a=e.default);var l="function"==typeof a?a.options:a;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),o&&(l._scopeId=o),i){var r=l.computed||(l.computed={});Object.keys(i).forEach(function(e){var t=i[e];r[e]=function(){return t}})}return{esModule:n,exports:a,options:l}}},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,o){e.exports=o(3)}])},e.exports=i()},770:function(e,t,o){"use strict";var i=o(697);t.a={mixins:[i.a],data:function(){return{}},methods:{getSettingsSchedule:function(){var e=[];return this.$root.settings.weekSchedule.forEach(function(t,o){var i=[];t.breaks.forEach(function(e){i.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00"})});var n=[];null!==t.time[0]&&null!==t.time[1]&&("periods"in t?t.periods.forEach(function(e){n.push({id:null,startTime:e.time[0]+":00",endTime:e.time[1]+":00",serviceIds:[],periodServiceList:[],savedPeriodServiceList:[]})}):n.push({id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",serviceIds:[],periodServiceList:[],savedPeriodServiceList:[]})),t.time[0]&&t.time[1]&&e.push({dayIndex:o+1,id:null,startTime:t.time[0]+":00",endTime:t.time[1]+":00",periodList:n,timeOutList:i})}),e},getInitEntitySettings:function(e){var t={payments:{paymentLinks:{enabled:this.$root.settings.payments.paymentLinks.enabled,changeBookingStatus:this.$root.settings.payments.paymentLinks.changeBookingStatus,redirectUrl:null},onSite:this.$root.settings.payments.onSite,wc:{productId:this.$root.settings.payments.wc.productId},payPal:{enabled:this.$root.settings.payments.payPal.enabled},stripe:{enabled:this.$root.settings.payments.stripe.enabled},mollie:{enabled:this.$root.settings.payments.mollie.enabled},razorpay:{enabled:this.$root.settings.payments.razorpay.enabled}}};switch(e){case"service":t.general={minimumTimeRequirementPriorToCanceling:null,minimumTimeRequirementPriorToRescheduling:null,redirectUrlAfterAppointment:null},t.general.defaultAppointmentStatus=null,t.general.numberOfDaysAvailableForBooking=0,t.general.minimumTimeRequirementPriorToBooking=null,t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled};break;case"event":t.general={minimumTimeRequirementPriorToCanceling:null,redirectUrlAfterAppointment:null},t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled}}return t},setEntitySettings:function(e,t){e.settings=null!==e.settings?JSON.parse(e.settings):this.getInitEntitySettings(t),this.addMissingObjectProperties(e.settings,this.getInitEntitySettings(t))},updateSettings:function(e){if(!this.$root.clonedSettings.payments.onSite||this.$root.clonedSettings.payments.stripe.enabled||this.$root.clonedSettings.payments.payPal.enabled||this.$root.clonedSettings.payments.wc.enabled||this.$root.clonedSettings.payments.mollie.enabled||this.$root.clonedSettings.payments.razorpay.enabled){if(!1===this.$root.clonedSettings.payments.wc.enabled&&!1===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var t=JSON.parse(e);t.payments.wc=this.$root.clonedSettings.payments.wc,t.payments.mollie=this.$root.clonedSettings.payments.mollie,this.$root.clonedSettings.payments.onSite||(t.payments.onSite=this.$root.clonedSettings.payments.onSite),this.$root.clonedSettings.payments.payPal.enabled||(t.payments.payPal=this.$root.clonedSettings.payments.payPal),this.$root.clonedSettings.payments.stripe.enabled||(t.payments.stripe=this.$root.clonedSettings.payments.stripe),this.$root.clonedSettings.payments.razorpay.enabled&&t.payments.razorpay||(t.payments.razorpay=this.$root.clonedSettings.payments.razorpay),t.payments.onSite||t.payments.payPal.enabled||t.payments.stripe.enabled||t.payments.mollie.enabled||t.payments.razorpay.enabled||(t.payments=this.$root.clonedSettings.payments),e=JSON.stringify(t)}if(!0===this.$root.clonedSettings.payments.wc.enabled&&null!==e){var 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.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)}this.replaceExistingObjectProperties(this.$root.settings,null!==e?JSON.parse(e):this.$root.clonedSettings)}},prepareEntitySettingsForSave:function(e){var t=JSON.parse(JSON.stringify(e.settings));return t.payments.wc.productId===this.$root.settings.payments.wc.productId&&delete t.payments.wc,"general"in t&&(t.general.redirectUrlAfterAppointment||delete t.general.redirectUrlAfterAppointment,t.general.defaultAppointmentStatus||delete t.general.defaultAppointmentStatus,(t.general.minimumTimeRequirementPriorToBooking||this.$root.settings.general.minimumTimeRequirementPriorToBooking)&&""!==t.general.minimumTimeRequirementPriorToBooking||delete t.general.minimumTimeRequirementPriorToBooking,(t.general.minimumTimeRequirementPriorToCanceling||this.$root.settings.general.minimumTimeRequirementPriorToCanceling)&&""!==t.general.minimumTimeRequirementPriorToCanceling||delete t.general.minimumTimeRequirementPriorToCanceling,(t.general.minimumTimeRequirementPriorToRescheduling||this.$root.settings.general.minimumTimeRequirementPriorToRescheduling)&&""!==t.general.minimumTimeRequirementPriorToRescheduling||delete t.general.minimumTimeRequirementPriorToRescheduling,t.general.numberOfDaysAvailableForBooking||delete t.general.numberOfDaysAvailableForBooking,0===Object.keys(t.general).length&&delete t.general),0===Object.keys(t).length&&(t=null),t}},computed:{}}},771:function(e,t,o){var i;i=function(e){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,i){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),n=o.n(i),a=o(6),s=o(5)(n.a,a.a,!1,null,null,null);t.default=s.exports},function(e,t,o){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.quillEditor=t.Quill=void 0;var n=i(o(0)),a=i(o(1)),s=window.Quill||n.default,l=function(e,t){t&&(a.default.props.globalOptions.default=function(){return t}),e.component(a.default.name,a.default)},r={Quill:s,quillEditor:a.default,install:l};t.default=r,t.Quill=s,t.quillEditor=a.default,t.install=l},function(e,t,o){"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,o){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=i(o(0)),a=i(o(3)),s=window.Quill||n.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 o=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}return o},writable:!0,configurable:!0}),t.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:a.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,o,i){var n=e.$refs.editor.children[0].innerHTML,a=e.quill,s=e.quill.getText();"<p><br></p>"===n&&(n=""),e._content=n,e.$emit("input",e._content),e.$emit("change",{html:n,text:s,quill:a})}),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,o,i,n,a){var s,l=e=e||{},r=typeof e.default;"object"!==r&&"function"!==r||(s=e,l=e.default);var c,u="function"==typeof l?l.options:l;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),o&&(u.functional=!0),n&&(u._scopeId=n),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var p=u.functional,d=p?u.render:u.beforeCreate;p?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:s,exports:l,options:u}}},function(e,t,o){"use strict";var i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"quill-editor"},[e._t("toolbar"),e._v(" "),o("div",{ref:"editor"})],2)},staticRenderFns:[]};t.a=i}])},e.exports=i(o(797))},772:function(e,t,o){var i=o(335)(o(796),o(802),!1,null,null,null);e.exports=i.exports},776:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(711),n=o.n(i),a=o(700),s=o(338),l=o(727),r=o(746);t.default={mixins:[a.a,s.a,l.a,r.a],props:{formName:"",urlName:null,isNew:null,entity:null,getParsedEntity:null,updateStash:!1,haveSaveConfirmation:null,hasApplyGloballyVisibility:!1,hasApplyGloballyDeletion:!1,loadSaveButton:!1,calendarConflict:{enable:!1},getCalendarEvents:null,hasIcons:!0,status:null,buttonType:{status:"primary",remove:"danger"},action:{haveAdd:!1,haveEdit:!1,haveStatus:!1,haveRemove:!1,haveRemoveEffect:!1,ignoreDeleteEffect:!1,haveDuplicate:!1,haveSaveWarning:!1},message:{success:{save:null,remove:null,show:null,hide:null},confirm:{remove:null,show:null,hide:null,duplicate:null,save:null,saveDetails:null}},buttonText:null},data:function(){return{form:new n.a,allowedDelete:!0,showDeleteConfirmation:!1,showVisibilityConfirmation:!1,showDuplicateConfirmation:!1,showSaveConfirmation:!1,showAddHoursDialog:!1,confirmCalendarConflict:!1,deleteEffectMessage:null,dialogLoading:!1}},created:function(){n.a.defaults.axios=this.$http},methods:{getButtonType:function(e){switch(e){case"status":return this.hasIcons?null:this.buttonType.status;case"remove":return this.hasIcons?null:this.buttonType.remove;case"duplicate":return this.hasIcons?null:this.buttonType.duplicate}},closeDialog:function(){this.$parent.$emit("closeDialog")},onSubmit:function(e){var t=this,o=this.$root;this.$parent.$refs[this.formName].validate(function(i,n){if(!i)return"appointment"===t.formName&&t.handleDialogTabChange(n,"bookings."),"service"===t.formName&&t.handleDialogTabChange(n,"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=o})},onSuccess:function(e,t,o){var i=this;this.$parent.$emit("saveCallback",o),setTimeout(function(){i.dialogLoading=!1,i.$parent.$emit("closeDialog")},300),this.notify(e,t,"success")},onError:function(e,t){this.dialogLoading=!1,this.$emit("errorCallback",t)},addEntity:function(e){var t=this,o=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(o=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName,this.getParsedEntity(e),o).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data)})},editEntity:function(e){var t=this,o=null;void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(o=Object.assign(this.getAuthorizationHeaderObject(),{params:{source:"cabinet-"+this.$store.state.cabinet.cabinetType}})),this.$http.post(this.$root.getAjaxUrl+"/"+this.urlName+"/"+this.entity.id,this.getParsedEntity(e),o).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.save,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data)})},deleteEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/delete/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.remove,e.data.data),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},showEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.on,applyGlobally:e}).then(function(e){t.onSuccess(t.$root.labels.success,t.message.success.show,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},hideEntity:function(e){var t=this;this.dialogLoading=!0,this.form.post(this.$root.getAjaxUrl+"/"+this.urlName+"/status/"+this.entity.id,{status:this.status.off,applyGlobally:e}).then(function(){t.onSuccess(t.$root.labels.success,t.message.success.hide,null),t.updateStash&&t.updateStashEntities({})}).catch(function(e){e.response&&t.onError("",e.response.data.data.message)})},duplicateEntity:function(){var e=this;this.dialogLoading=!0,this.$parent.$emit("closeDialog",!0),this.$parent.$emit("duplicateCallback",this.entity),setTimeout(function(){e.showDuplicateConfirmation=!1,e.dialogLoading=!1},600)},handleSaveConfirmation:function(){this.showSaveConfirmation=!this.showSaveConfirmation,this.showVisibilityConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1},handleDuplicateConfirmation:function(){this.showDuplicateConfirmation=!this.showDuplicateConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showVisibilityConfirmation=!1},handleVisibilityConfirmation:function(){this.showVisibilityConfirmation=!this.showVisibilityConfirmation,this.showSaveConfirmation=!1,this.showDeleteConfirmation=!1,this.showDuplicateConfirmation=!1},handleDeleteConfirmation:function(){var e=this;this.showVisibilityConfirmation=!1,this.showDuplicateConfirmation=!1,this.showSaveConfirmation=!1,this.action.haveRemoveEffect?!1===this.showDeleteConfirmation&&this.$http.get(this.$root.getAjaxUrl+"/"+this.urlName+"/effect/"+this.entity.id).then(function(t){e.allowedDelete=t.data.data.valid||e.ignoreDeleteEffect,e.deleteEffectMessage=t.data.data.message,e.showDeleteConfirmation=!e.showDeleteConfirmation}).catch(function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation,e.deleteEffectMessage=""}):this.showDeleteConfirmation=!this.showDeleteConfirmation},handleSaveClick:function(){var e=this;this.getCalendarEvents&&!this.confirmCalendarConflict?this.getCalendarEvents().then(function(){e.haveSaveConfirmation&&e.haveSaveConfirmation()?e.handleSaveConfirmation():e.onSubmit(!1)}):this.haveSaveConfirmation&&this.haveSaveConfirmation()?this.handleSaveConfirmation():this.onSubmit(!1)},getConfirmSaveButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.save?{yes:this.buttonText.confirm.save.yes,no:this.buttonText.confirm.save.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmDeleteButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.remove?{yes:this.buttonText.confirm.remove.yes,no:this.buttonText.confirm.remove.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getConfirmStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.confirm&&this.buttonText.confirm.status?{yes:this.buttonText.confirm.status.yes,no:this.buttonText.confirm.status.no}:{yes:this.$root.labels.yes,no:this.$root.labels.no}},getActionStatusButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.status:""},getActionRemoveButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.remove:""},getActionDuplicateButtonText:function(){return null!==this.buttonText&&this.buttonText.action?this.buttonText.action.duplicate:""},handleDialogTabChange:function(e,t){for(var o=Object.keys(e),i=0,n=0;n<o.length;n++)i=o[n].startsWith(t)?i+1:i;i===o.length&&this.$emit("validationTabFailCallback")},isStatusOn:function(){return this.entity.status===this.status.on},isStatusOff:function(){return this.entity.status===this.status.off}},computed:{},components:{}}},777:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("transition",{attrs:{name:"slide-vertical"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteConfirmation,expression:"showDeleteConfirmation"}],staticClass:"am-dialog-confirmation"},[o("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?o("el-alert",{attrs:{title:"",type:"warning",description:e.deleteEffectMessage,"show-icon":"",closable:!1}}):e._e(),e._v(" "),e.hasApplyGloballyDeletion?o("div",{staticClass:"align-left"},[o("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(" "),o("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):o("div",{staticClass:"align-left"},[e.allowedDelete?o("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?o("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():o("el-button",{attrs:{size:"small"},on:{click:function(t){e.showDeleteConfirmation=!e.showDeleteConfirmation}}},[e._v("\n "+e._s(e.$root.labels.close)+"\n ")])],1)],1)]),e._v(" "),o("transition",{attrs:{name:"slide-vertical"}},[e.status?o("div",{directives:[{name:"show",rawName:"v-show",value:e.showVisibilityConfirmation,expression:"showVisibilityConfirmation"}],staticClass:"am-dialog-confirmation"},[e.isStatusOn()?o("h3",[e._v(e._s(e.message.confirm.hide))]):e.isStatusOff()?o("h3",[e._v(e._s(e.message.confirm.show))]):e._e(),e._v(" "),e.hasApplyGloballyVisibility?o("div",{staticClass:"align-left"},[e.isStatusOn()?o("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()?o("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()?o("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()?o("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):o("div",{staticClass:"align-left"},[o("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()?o("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()?o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.showEntity(!1)}}},[e._v("\n "+e._s(e.getConfirmStatusButtonText().yes)+"\n ")]):e._e()],1)]):e._e()]),e._v(" "),o("transition",{attrs:{name:"slide-vertical"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showDuplicateConfirmation,expression:"showDuplicateConfirmation"}],staticClass:"am-dialog-confirmation"},[o("h3",[e._v(e._s(e.message.confirm.duplicate))]),e._v(" "),o("div",{staticClass:"align-left"},[o("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(" "),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.duplicateEntity}},[e._v("\n "+e._s(e.$root.labels.duplicate)+"\n ")])],1)])]),e._v(" "),o("transition",{attrs:{name:"slide-vertical"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showSaveConfirmation,expression:"showSaveConfirmation"}],staticClass:"am-dialog-confirmation"},[e.buttonText?o("h3",[e._v(e._s(e.message.confirm.save)+"\n "),e.message.confirm.saveDetails?o("span",[e._v(e._s(e.message.confirm.saveDetails))]):e._e()]):e._e(),e._v(" "),e.buttonText?o("div",{staticClass:"align-left"},[o("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(" "),o("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.onSubmit(!0)}}},[e._v("\n "+e._s(e.getConfirmSaveButtonText().yes)+"\n ")])],1):e._e(),e._v(" "),e.action.haveSaveWarning?o("el-alert",{staticStyle:{"word-break":"break-word"},attrs:{title:"",type:"warning",description:e.message.confirm.save,"show-icon":"",closable:!1}}):e._e()],1)]),e._v(" "),e.isNew?o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("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?o("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):o("el-row",[o("el-col",{staticClass:"align-left",attrs:{sm:16}},[e.action.haveDuplicate?o("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("duplicate")},on:{click:e.handleDuplicateConfirmation}},[e.hasIcons?o("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.duplicate,src:e.$root.getUrl+"public/img/copy.svg"}}):o("span",[e._v(e._s(e.getActionDuplicateButtonText()))])]):e._e(),e._v(" "),e.action.haveStatus?o("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("status")},on:{click:e.handleVisibilityConfirmation}},[e.hasIcons?o("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.hide,src:e.$root.getUrl+(e.isStatusOff()?"public/img/unhide.svg":"public/img/hide.svg")}}):o("span",[e._v("\n "+e._s(e.getActionStatusButtonText())+"\n ")])]):e._e(),e._v(" "),e.action.haveRemove?o("el-button",{class:{"am-button-icon":e.hasIcons,"am-dialog-create":!e.hasIcons},attrs:{type:e.getButtonType("remove")},on:{click:e.handleDeleteConfirmation}},[e.hasIcons?o("img",{staticClass:"svg-amelia",attrs:{alt:e.$root.labels.delete,src:e.$root.getUrl+"public/img/delete.svg"}}):o("span",[e._v("\n "+e._s(e.getActionRemoveButtonText())+"\n ")])]):e._e()],1),e._v(" "),o("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?o("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(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"am-dialog-loader"},[o("div",{staticClass:"am-dialog-loader-content"},[o("img",{attrs:{src:e.$root.getUrl+"public/img/spinner.svg"}}),e._v(" "),o("p",[e._v(e._s(e.$root.labels.loader_message))])])])])},staticRenderFns:[]}},780:function(e,t,o){"use strict";var i=o(747);t.a={mixins:[i.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"),o=0;o<t.length;o++)for(var i in this.linksForParsing){for(var n=t[o].getElementsByTagName("a"),a=0;a<n.length;a++)n[a].href===this.pageUrl+i&&(n[a].href=i);-1!==t[o].textContent.indexOf(this.linksForParsing[i])&&(t[o].innerHTML=t[o].innerHTML.replace(this.plainTextLinksForParsing[i],this.linksForParsing[i]))}},process:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),this.format(t,0).innerHTML},format:function(e,t){for(var o=new Array(1+t++).join(" "),i=new Array(t-1).join(" "),n=null,a=0;a<e.children.length;a++)n=document.createTextNode("\n"+o),e.insertBefore(n,e.children[a]),this.format(e.children[a],t),e.lastElementChild===e.children[a]&&(n=document.createTextNode("\n"+i),e.appendChild(n));return e},changedContentText:function(e,t,o){o?this[e][o]=this[t][o]:this[e]=this[t]},textModeChanged:function(e,t,o){this.textMode=!this.textMode,this.textMode?o?this[t][o]=this.process(this[e][o].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,"")):o?this[t][o]="\x3c!-- Content --\x3e"+this[t][o]:this[t]="\x3c!-- Content --\x3e"+this[t],o?this[e][o]=this[t][o]:this[e]=this[t]}}}},796:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(771),n=(o.n(i),o(780));t.default={mixins:[n.a],props:{textModeProp:null,allowImage:!1,hasTranslation:!0,hasQuill:!0,label:"",entity:null,textProperty:"",htmlProperty:""},data:function(){return{textValue:"",isTextMode:!1}},mounted:function(){var e=this;this.textProperty in this.entity&&null!==this.entity[this.textProperty]||(this.entity[this.textProperty]=""),this.htmlProperty in this.entity&&null!==this.entity[this.htmlProperty]||(this.entity[this.htmlProperty]=""),this.$nextTick(function(){e.isTextMode=e.textModeProp,e.textValue=e.entity[e.textProperty],e.entity[e.htmlProperty]=e.entity[e.textProperty],e.entity[e.textProperty].startsWith("\x3c!-- Content --\x3e")&&(e.isTextMode=!1),e.isTextMode&&(e.entity[e.textProperty]=e.entity[e.textProperty].replace("\x3c!-- Content --\x3e",""))})},methods:{readyQuill:function(){this.textProperty in this.entity&&this.entity[this.textProperty]&&(this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ul>","<ul>"),this.entity[this.textProperty]=this.entity[this.textProperty].replace("<p><br></p><ol>","<ol>"))},changedContentQuill:function(){this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e","")},changedContentText:function(){this.entity[this.textProperty]=this.process(this.textValue.replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")),this.entity[this.htmlProperty]=this.entity[this.textProperty]},showDialogTranslate:function(){this.$emit("showDialogTranslate")},textModeChanged:function(){this.isTextMode=!this.isTextMode,this.isTextMode?this.entity[this.textProperty]=this.process(this.entity[this.htmlProperty].replace("\x3c!-- Content --\x3e","").replace(/(\r\n|\n|\r)/gm,"")):(this.entity[this.textProperty]="\x3c!-- Content --\x3e"+this.entity[this.textProperty],this.entity[this.htmlProperty]=this.entity[this.textProperty]),this.textValue=this.entity[this.textProperty]}},components:{quillEditor:i.quillEditor}}},797:function(e,t,o){(function(t){var o;"undefined"!=typeof self&&self,o=function(){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=109)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(17),n=o(18),a=o(19),s=o(45),l=o(46),r=o(47),c=o(48),u=o(49),p=o(12),d=o(32),m=o(33),f=o(31),h=o(1),g={Scope:h.Scope,create:h.create,find:h.find,query:h.query,register:h.register,Container:i.default,Format:n.default,Leaf:a.default,Embed:c.default,Scroll:s.default,Block:r.default,Inline:l.default,Text:u.default,Attributor:{Attribute:p.default,Class:d.default,Style:m.default,Store:f.default}};t.default=g},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var o=this;return t="[Parchment] "+t,(o=e.call(this,t)||this).message=t,o.name=o.constructor.name,o}return n(t,e),t}(Error);t.ParchmentError=a;var s,l={},r={},c={},u={};function p(e,t){var o;if(void 0===t&&(t=s.ANY),"string"==typeof e)o=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)o=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?o=u.block:e&s.LEVEL&s.INLINE&&(o=u.inline);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var n in i)if(o=r[i[n]])break;o=o||c[e.tagName]}return null==o?null:t&s.LEVEL&o.scope&&t&s.TYPE&o.scope?o: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 o=p(e);if(null==o)throw new a("Unable to create "+e+" blot");var i=o;return new i(e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t),t)},t.find=function e(o,i){return void 0===i&&(i=!1),null==o?null:null!=o[t.DATA_KEY]?o[t.DATA_KEY].blot:i?e(o.parentNode,i):null},t.query=p,t.register=function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length>1)return t.map(function(t){return e(t)});var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new a("Invalid definition");if("abstract"===i.blotName)throw new a("Cannot register abstract class");u[i.blotName||i.attrName]=i,"string"==typeof i.keyName?l[i.keyName]=i:(null!=i.className&&(r[i.className]=i),null!=i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(e){return e.toUpperCase()}):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(function(e){null!=c[e]&&null!=i.className||(c[e]=i)})));return i}},function(e,t,o){var i=o(51),n=o(11),a=o(3),s=o(20),l=String.fromCharCode(0),r=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};r.prototype.insert=function(e,t){var o={};return 0===e.length?this:(o.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(o.attributes=t),this.push(o))},r.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},r.prototype.retain=function(e,t){if(e<=0)return this;var o={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(o.attributes=t),this.push(o)},r.prototype.push=function(e){var t=this.ops.length,o=this.ops[t-1];if(e=a(!0,{},e),"object"==typeof o){if("number"==typeof e.delete&&"number"==typeof o.delete)return this.ops[t-1]={delete:o.delete+e.delete},this;if("number"==typeof o.delete&&null!=e.insert&&(t-=1,"object"!=typeof(o=this.ops[t-1])))return this.ops.unshift(e),this;if(n(e.attributes,o.attributes)){if("string"==typeof e.insert&&"string"==typeof o.insert)return this.ops[t-1]={insert:o.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof o.retain)return this.ops[t-1]={retain:o.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},r.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},r.prototype.filter=function(e){return this.ops.filter(e)},r.prototype.forEach=function(e){this.ops.forEach(e)},r.prototype.map=function(e){return this.ops.map(e)},r.prototype.partition=function(e){var t=[],o=[];return this.forEach(function(i){(e(i)?t:o).push(i)}),[t,o]},r.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},r.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e},0)},r.prototype.length=function(){return this.reduce(function(e,t){return e+s.length(t)},0)},r.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var o=[],i=s.iterator(this.ops),n=0;n<t&&i.hasNext();){var a;n<e?a=i.next(e-n):(a=i.next(t-n),o.push(a)),n+=s.length(a)}return new r(o)},r.prototype.compose=function(e){for(var t=s.iterator(this.ops),o=s.iterator(e.ops),i=new r;t.hasNext()||o.hasNext();)if("insert"===o.peekType())i.push(o.next());else if("delete"===t.peekType())i.push(t.next());else{var n=Math.min(t.peekLength(),o.peekLength()),a=t.next(n),l=o.next(n);if("number"==typeof l.retain){var c={};"number"==typeof a.retain?c.retain=n:c.insert=a.insert;var u=s.attributes.compose(a.attributes,l.attributes,"number"==typeof a.retain);u&&(c.attributes=u),i.push(c)}else"number"==typeof l.delete&&"number"==typeof a.retain&&i.push(l)}return i.chop()},r.prototype.concat=function(e){var t=new r(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},r.prototype.diff=function(e,t){if(this.ops===e.ops)return new r;var o=[this,e].map(function(t){return t.map(function(o){if(null!=o.insert)return"string"==typeof o.insert?o.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),a=new r,c=i(o[0],o[1],t),u=s.iterator(this.ops),p=s.iterator(e.ops);return c.forEach(function(e){for(var t=e[1].length;t>0;){var o=0;switch(e[0]){case i.INSERT:o=Math.min(p.peekLength(),t),a.push(p.next(o));break;case i.DELETE:o=Math.min(t,u.peekLength()),u.next(o),a.delete(o);break;case i.EQUAL:o=Math.min(u.peekLength(),p.peekLength(),t);var l=u.next(o),r=p.next(o);n(l.insert,r.insert)?a.retain(o,s.attributes.diff(l.attributes,r.attributes)):a.push(r).delete(o)}t-=o}}),a.chop()},r.prototype.eachLine=function(e,t){t=t||"\n";for(var o=s.iterator(this.ops),i=new r,n=0;o.hasNext();){if("insert"!==o.peekType())return;var a=o.peek(),l=s.length(a)-o.peekLength(),c="string"==typeof a.insert?a.insert.indexOf(t,l)-l:-1;if(c<0)i.push(o.next());else if(c>0)i.push(o.next(c));else{if(!1===e(i,o.next(1).attributes||{},n))return;n+=1,i=new r}}i.length()>0&&e(i,{},n)},r.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var o=s.iterator(this.ops),i=s.iterator(e.ops),n=new r;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())n.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),l=o.next(a),c=i.next(a);if(l.delete)continue;c.delete?n.push(c):n.retain(a,s.attributes.transform(l.attributes,c.attributes,t))}else n.retain(s.length(o.next()));return n.chop()},r.prototype.transformPosition=function(e,t){t=!!t;for(var o=s.iterator(this.ops),i=0;o.hasNext()&&i<=e;){var n=o.peekLength(),a=o.peekType();o.next(),"delete"!==a?("insert"===a&&(i<e||!t)&&(e+=n),i+=n):e-=Math.min(n,e-i)}return e},e.exports=r},function(e,t){"use strict";var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,n=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=o.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||o.call(e,t)};e.exports=function e(){var t,o,i,s,l,r,c=arguments[0],u=1,p=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[1]||{},u=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});u<p;++u)if(null!=(t=arguments[u]))for(o in t)i=c[o],c!==(s=t[o])&&(d&&s&&(a(s)||(l=n(s)))?(l?(l=!1,r=i&&n(i)?i:[]):r=i&&a(i)?i:{},c[o]=e(d,r,s)):void 0!==s&&(c[o]=s));return c}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},a=p(o(3)),s=p(o(2)),l=p(o(0)),r=p(o(16)),c=p(o(6)),u=p(o(7));function p(e){return e&&e.__esModule?e:{default:e}}function d(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 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 h=function(e){function t(){return d(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,l.default.Embed),i(t,[{key:"attach",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var o=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=o&&this.attributes.attribute(o,t)}},{key:"formatAt",value:function(e,t,o,i){this.format(o,i)}},{key:"insertAt",value:function(e,o,i){if("string"==typeof o&&o.endsWith("\n")){var a=l.default.create(g.blotName);this.parent.insertBefore(a,0===e?this:this.next),a.insertAt(0,o.slice(0,-1))}else n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,i)}}]),t}();h.scope=l.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){d(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.cache={},o}return f(t,l.default.Block),i(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.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,o){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,o),this.cache={}}},{key:"formatAt",value:function(e,o,i,a){o<=0||(l.default.query(i,l.default.Scope.BLOCK)?e+o===this.length()&&this.format(i,a):n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(o,this.length()-e-1),i,a),this.cache={})}},{key:"insertAt",value:function(e,o,i){if(null!=i)return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,i);if(0!==o.length){var a=o.split("\n"),s=a.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?n(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 l=this;a.reduce(function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length},e+s.length)}}},{key:"insertBefore",value:function(e,o){var i=this.children.head;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o),i instanceof r.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,o){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,o),this.cache={}}},{key:"optimize",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o&&(0===e||e>=this.length()-1)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var a=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,o);return this.cache={},a}}]),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,a.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,l.default.Embed,u.default],t.bubbleFormats=v,t.BlockEmbed=h,t.default=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="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},n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}();o(50);var s=g(o(2)),l=g(o(14)),r=g(o(8)),c=g(o(9)),u=g(o(0)),p=o(15),d=g(p),m=g(o(3)),f=g(o(10)),h=g(o(34));function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var b=(0,f.default)("quill"),_=function(){function e(t){var o=this,i=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=y(t,i),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var n=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 r.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.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(r.default.events.EDITOR_CHANGE,function(e){e===r.default.events.TEXT_CHANGE&&o.root.classList.toggle("ql-blank",o.editor.isBlank())}),this.emitter.on(r.default.events.SCROLL_UPDATE,function(e,t){var i=o.selection.lastRange,n=i&&0===i.length?i.index:void 0;w.call(o,function(){return o.editor.update(null,t,n)},e)});var a=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+n+"<p><br></p></div>");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(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]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var o=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var n=e.attrName||e.blotName;"string"==typeof n?this.register("formats/"+n,e,t):Object.keys(e).forEach(function(i){o.register(i,e[i],t)})}else null==this.imports[e]||i||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var o=e;(e=document.createElement("div")).classList.add(o)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,o){var i=this,a=x(e,t,o),s=n(a,4);return e=s[0],t=s[1],o=s[3],w.call(this,function(){return i.editor.deleteText(e,t)},o,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 o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default.sources.API;return w.call(this,function(){var i=o.getSelection(!0),n=new s.default;if(null==i)return n;if(u.default.query(e,u.default.Scope.BLOCK))n=o.editor.formatLine(i.index,i.length,v({},e,t));else{if(0===i.length)return o.selection.format(e,t),n;n=o.editor.formatText(i.index,i.length,v({},e,t))}return o.setSelection(i,r.default.sources.SILENT),n},i)}},{key:"formatLine",value:function(e,t,o,i,a){var s,l=this,r=x(e,t,o,i,a),c=n(r,4);return e=c[0],t=c[1],s=c[2],a=c[3],w.call(this,function(){return l.editor.formatLine(e,t,s)},a,e,0)}},{key:"formatText",value:function(e,t,o,i,a){var s,l=this,r=x(e,t,o,i,a),c=n(r,4);return e=c[0],t=c[1],s=c[2],a=c[3],w.call(this,function(){return l.editor.formatText(e,t,s)},a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=void 0;o="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:o.bottom-i.top,height:o.height,left:o.left-i.left,right:o.right-i.left,top:o.top-i.top,width:o.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,o=x(e,t),i=n(o,2);return e=i[0],t=i[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,o=x(e,t),i=n(o,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,o,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,function(){return n.editor.insertEmbed(t,o,i)},a,t)}},{key:"insertText",value:function(e,t,o,i,a){var s,l=this,r=x(e,0,o,i,a),c=n(r,4);return e=c[0],s=c[2],a=c[3],w.call(this,function(){return l.editor.insertText(e,t,s)},a,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,o){this.clipboard.dangerouslyPasteHTML(e,t,o)}},{key:"removeFormat",value:function(e,t,o){var i=this,a=x(e,t,o),s=n(a,4);return e=s[0],t=s[1],o=s[3],w.call(this,function(){return i.editor.removeFormat(e,t)},o,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API;return w.call(this,function(){e=new s.default(e);var o=t.getLength(),i=t.editor.deleteText(0,o),n=t.editor.applyDelta(e),a=n.ops[n.ops.length-1];return null!=a&&"string"==typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),n.delete(1)),i.compose(n)},o)}},{key:"setSelection",value:function(t,o,i){if(null==t)this.selection.setRange(null,o||e.sources.API);else{var a=x(t,o,i),s=n(a,4);t=s[0],o=s[1],i=s[3],this.selection.setRange(new p.Range(t,o),i),i!==r.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API,o=(new s.default).insert(e);return this.setContents(o,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.sources.API;return w.call(this,function(){return e=new s.default(e),t.editor.applyDelta(e,o)},o,!0)}}]),e}();function y(e,t){if((t=(0,m.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==_.DEFAULTS.theme){if(t.theme=_.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=h.default;var o=(0,m.default)(!0,{},t.theme.DEFAULTS);[o,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var i=Object.keys(o.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var o=_.import("modules/"+t);return null==o?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=o.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,m.default)(!0,{},_.DEFAULTS,{modules:i},o,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,o){return t.modules[o]&&(e[o]=t.modules[o]),e},{}),t}function w(e,t,o,i){if(this.options.strict&&!this.isEnabled()&&t===r.default.sources.USER)return new s.default;var n=null==o?null:this.getSelection(),a=this.editor.delta,l=e();if(null!=n&&(!0===o&&(o=n.index),null==i?n=k(n,l,t):0!==i&&(n=k(n,o,i,t)),this.setSelection(n,r.default.sources.SILENT)),l.length()>0){var c,u,p=[r.default.events.TEXT_CHANGE,l,a,t];if((c=this.emitter).emit.apply(c,[r.default.events.EDITOR_CHANGE].concat(p)),t!==r.default.sources.SILENT)(u=this.emitter).emit.apply(u,p)}return l}function x(e,t,o,n,a){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(a=n,n=o,o=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(a=n,n=o,o=t,t=0),"object"===(void 0===o?"undefined":i(o))?(s=o,a=n):"string"==typeof o&&(null!=n?s[o]=n:a=o),[e,t,s,a=a||r.default.sources.API]}function k(e,t,o,i){if(null==e)return null;var a=void 0,l=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,i!==r.default.sources.USER)}),u=n(c,2);a=u[0],l=u[1]}else{var d=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&i===r.default.sources.USER?e:o>=0?e+o:Math.max(t,e+o)}),m=n(d,2);a=m[0],l=m[1]}return new p.Range(a,l-a)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=r.default.events,_.sources=r.default.sources,_.version="1.3.6",_.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":h.default},t.expandConfig=y,t.overload=x,t.default=_},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},a=l(o(7)),s=l(o(0));function l(e){return e&&e.__esModule?e:{default:e}}var r=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),i(t,[{key:"formatAt",value:function(e,o,i,a){if(t.compare(this.statics.blotName,i)<0&&s.default.query(i,s.default.Scope.BLOT)){var l=this.isolate(e,o);a&&l.wrap(i,a)}else n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,o,i,a)}},{key:"optimize",value:function(e){if(n(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 o=this.parent.isolate(this.offset(),this.length());this.moveChildren(o),o.wrap(this)}}}],[{key:"compare",value:function(e,o){var i=t.order.indexOf(e),n=t.order.indexOf(o);return i>=0||n>=0?i-n:e===o?0:e<o?-1:1}}]),t}();r.allowedChildren=[r,s.default.Embed,a.default],r.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),a=(i=n)&&i.__esModule?i:{default:i};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Text),t}();t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=a(o(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(o(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var o;e.__quill&&e.__quill.emitter&&(o=e.__quill.emitter).handleDOM.apply(o,t)})})});var l=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,n.default),i(t,[{key:"emit",value:function(){s.log.apply(s,arguments),function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach(function(t){var i=t.node,n=t.handler;(e.target===i||i.contains(e.target))&&n.apply(void 0,[e].concat(o))})}},{key:"listenDOM",value:function(e,t,o){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:o})}}]),t}();l.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"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var o=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=o};i.DEFAULTS={},t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],n="warn";function a(e){if(i.indexOf(e)<=i.indexOf(n)){for(var t,o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];(t=console)[e].apply(t,a)}}function s(e){return i.reduce(function(t,o){return t[o]=a.bind(console,o,e),t},{})}a.level=s.level=function(e){n=e},t.default=s},function(e,t,o){var i=Array.prototype.slice,n=o(52),a=o(53),s=e.exports=function(e,t,o){return o||(o={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?o.strict?e===t:e==t:function(e,t,o){var c,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=i.call(e),t=i.call(t),s(e,t,o));if(r(e)){if(!r(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 p=n(e),d=n(t)}catch(e){return!1}if(p.length!=d.length)return!1;for(p.sort(),d.sort(),c=p.length-1;c>=0;c--)if(p[c]!=d[c])return!1;for(c=p.length-1;c>=0;c--)if(u=p[c],!s(e[u],t[u],o))return!1;return typeof e==typeof t}(e,t,o))};function l(e){return null===e||void 0===e}function r(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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=function(){function e(e,t,o){void 0===o&&(o={}),this.attrName=e,this.keyName=t;var n=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=o.scope?this.scope=o.scope&i.Scope.LEVEL|n:this.scope=i.Scope.ATTRIBUTE,null!=o.whitelist&&(this.whitelist=o.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!=i.query(e,i.Scope.BLOT&(this.scope|i.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=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=p(o(2)),l=p(o(0)),r=p(o(4)),c=p(o(6)),u=p(o(7));function p(e){return e&&e.__esModule?e:{default:e}}function d(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 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 h=function(e){function t(){return d(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,c.default),t}();h.blotName="code",h.tagName="CODE";var g=function(e){function t(){return d(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,r.default),n(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,o){return t.insert(o).insert("\n",e.formats())},new s.default)}},{key:"format",value:function(e,o){if(e!==this.statics.blotName||!o){var n=this.descendant(u.default,this.length()-1),s=i(n,1)[0];null!=s&&s.deleteAt(s.length()-1,1),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}},{key:"formatAt",value:function(e,o,i,n){if(0!==o&&null!=l.default.query(i,l.default.Scope.BLOCK)&&(i!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var a=this.newlineIndex(e);if(!(a<0||a>=e+o)){var s=this.newlineIndex(e,!0)+1,r=a-s+1,c=this.isolate(s,r),u=c.next;c.format(i,n),u instanceof t&&u.formatAt(0,e-s+o-r,i,n)}}}},{key:"insertAt",value:function(e,t,o){if(null==o){var n=this.descendant(u.default,e),a=i(n,2),s=a[0],l=a[1];s.insertAt(l,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(l.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var o=this.next;null!=o&&o.prev===this&&o.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===o.statics.formats(o.domNode)&&(o.optimize(e),o.moveChildren(this),o.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var o=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return o.setAttribute("spellcheck",!1),o}},{key:"formats",value:function(){return!0}}]),t}();g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=h,t.default=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="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},n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=v(o(2)),l=v(o(20)),r=v(o(0)),c=v(o(13)),u=v(o(24)),p=o(4),d=v(p),m=v(o(16)),f=v(o(21)),h=v(o(11)),g=v(o(3));function v(e){return e&&e.__esModule?e:{default:e}}var 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 a(e,[{key:"applyDelta",value:function(e){var t=this,o=!1;this.scroll.update();var a=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var o=(0,f.default)(t.attributes);return delete o.image,e.insert({image:t.attributes.image},o)}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 i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,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 m=s.insert;m.endsWith("\n")&&o&&(o=!1,m=m.slice(0,-1)),e>=a&&!m.endsWith("\n")&&(o=!0),t.scroll.insertAt(e,m);var f=t.scroll.line(e),h=n(f,2),v=h[0],b=h[1],_=(0,g.default)({},(0,p.bubbleFormats)(v));if(v instanceof d.default){var y=v.descendant(r.default.Leaf,b),w=n(y,1)[0];_=(0,g.default)(_,(0,p.bubbleFormats)(w))}u=l.default.attributes.diff(_,u)||{}}else if("object"===i(s.insert)){var x=Object.keys(s.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,s.insert[x])}a+=c}return Object.keys(u).forEach(function(o){t.scroll.formatAt(e,c,o,u[o])}),e+c},0),e.reduce(function(e,o){return"number"==typeof o.delete?(t.scroll.deleteAt(e,o.delete),e):e+(o.retain||o.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 o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach(function(n){if(null==o.scroll.whitelist||o.scroll.whitelist[n]){var a=o.scroll.lines(e,Math.max(t,1)),s=t;a.forEach(function(t){var a=t.length();if(t instanceof c.default){var l=e-t.offset(o.scroll),r=t.newlineIndex(l+s)-l+1;t.formatAt(l,r,n,i[n])}else t.format(n,i[n]);s-=a})}}),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,f.default)(i)))}},{key:"formatText",value:function(e,t){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach(function(n){o.scroll.formatAt(e,t,n,i[n])}),this.update((new s.default).retain(e).retain(t,(0,f.default)(i)))}},{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,o=[],i=[];0===t?this.scroll.path(e).forEach(function(e){var t=n(e,1)[0];t instanceof d.default?o.push(t):t instanceof r.default.Leaf&&i.push(t)}):(o=this.scroll.lines(e,t),i=this.scroll.descendants(r.default.Leaf,e,t));var a=[o,i].map(function(e){if(0===e.length)return{};for(var t=(0,p.bubbleFormats)(e.shift());Object.keys(t).length>0;){var o=e.shift();if(null==o)return t;t=y((0,p.bubbleFormats)(o),t)}return t});return g.default.apply(g.default,a)}},{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,o){return this.scroll.insertAt(e,t,o),this.update((new s.default).retain(e).insert(function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},t,o)))}},{key:"insertText",value:function(e,t){var o=this,i=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(i).forEach(function(n){o.scroll.formatAt(e,t.length,n,i[n])}),this.update((new s.default).retain(e).insert(t,(0,f.default)(i)))}},{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===d.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof m.default)}},{key:"removeFormat",value:function(e,t){var o=this.getText(e,t),i=this.scroll.line(e+t),a=n(i,2),l=a[0],r=a[1],u=0,p=new s.default;null!=l&&(u=l instanceof c.default?l.newlineIndex(r)-r+1:l.length()-r,p=l.delta().slice(r,r+u-1).insert("\n"));var d=this.getContents(e,t+u).diff((new s.default).insert(o).concat(p)),m=(new s.default).retain(e).concat(d);return this.applyDelta(m)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&r.default.find(t[0].target)){var n=r.default.find(t[0].target),a=(0,p.bubbleFormats)(n),l=n.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),d=(new s.default).insert(c),m=(new s.default).insert(n.value());e=(new s.default).retain(l).concat(d.diff(m,o)).reduce(function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)},new s.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,h.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,o));return e}}]),e}();function y(e,t){return Object.keys(t).reduce(function(o,i){return null==e[i]?o:(t[i]===e[i]?o[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(o[i]=t[i].concat([e[i]])):o[i]=[t[i],e[i]],o)},{})}t.default=_},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=c(o(0)),s=c(o(21)),l=c(o(11)),r=c(o(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,c(o(10)).default)("quill:selection"),m=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,e),this.index=t,this.length=o},f=function(){function e(t,o){var i=this;p(this,e),this.emitter=o,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new m(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){i.mouseDown||setTimeout(i.update.bind(i,r.default.sources.USER),1)}),this.emitter.on(r.default.events.EDITOR_CHANGE,function(e,t){e===r.default.events.TEXT_CHANGE&&t.length()>0&&i.update(r.default.sources.SILENT)}),this.emitter.on(r.default.events.SCROLL_BEFORE_UPDATE,function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(r.default.events.SCROLL_UPDATE,function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(r.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var o=t.range,n=o.startNode,a=o.startOffset,s=o.endNode,l=o.endOffset;i.setNativeRange(n,a,s,l)}}),this.update(r.default.sources.SILENT)}return n(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(r.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 o=this.getNativeRange();if(null!=o&&o.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(o.start.node!==this.cursor.textNode){var i=a.default.find(o.start.node,!1);if(null==i)return;if(i instanceof a.default.Leaf){var n=i.split(o.start.offset);i.parent.insertBefore(this.cursor,n)}else i.insertBefore(this.cursor,o.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,o=this.scroll.length();e=Math.min(e,o-1),t=Math.min(e+t,o-1)-e;var n=void 0,a=this.scroll.leaf(e),s=i(a,2),l=s[0],r=s[1];if(null==l)return null;var c=l.position(r,!0),u=i(c,2);n=u[0],r=u[1];var p=document.createRange();if(t>0){p.setStart(n,r);var d=this.scroll.leaf(e+t),m=i(d,2);if(l=m[0],r=m[1],null==l)return null;var f=l.position(r,!0),h=i(f,2);return n=h[0],r=h[1],p.setEnd(n,r),p.getBoundingClientRect()}var g="left",v=void 0;return n instanceof Text?(r<n.data.length?(p.setStart(n,r),p.setEnd(n,r+1)):(p.setStart(n,r-1),p.setEnd(n,r),g="right"),v=p.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),r>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 o=this.normalizeNative(t);return d.info("getNativeRange",o),o}},{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,o=[[e.start.node,e.start.offset]];e.native.collapsed||o.push([e.end.node,e.end.offset]);var n=o.map(function(e){var o=i(e,2),n=o[0],s=o[1],l=a.default.find(n,!0),r=l.offset(t.scroll);return 0===s?r:l instanceof a.default.Container?r+l.length():r+l.index(n,s)}),s=Math.min(Math.max.apply(Math,u(n)),this.scroll.length()-1),l=Math.min.apply(Math,[s].concat(u(n)));return new m(l,s-l)}},{key:"normalizeNative",value:function(e){if(!h(this.root,e.startContainer)||!e.collapsed&&!h(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,o=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>o)t=t.childNodes[o],o=0;else{if(t.childNodes.length!==o)break;o=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=o}),t}},{key:"rangeToNative",value:function(e){var t=this,o=e.collapsed?[e.index]:[e.index,e.index+e.length],n=[],a=this.scroll.length();return o.forEach(function(e,o){e=Math.min(a-1,e);var s,l=t.scroll.leaf(e),r=i(l,2),c=r[0],u=r[1],p=c.position(u,0!==o),d=i(p,2);s=d[0],u=d[1],n.push(s,u)}),n.length<2&&(n=n.concat(n)),n}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var o=this.getBounds(t.index,t.length);if(null!=o){var n=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,n)),s=i(a,1)[0],l=s;if(t.length>0){var r=this.scroll.line(Math.min(t.index+t.length,n));l=i(r,1)[0]}if(null!=s&&null!=l){var c=e.getBoundingClientRect();o.top<c.top?e.scrollTop-=c.top-o.top:o.bottom>c.bottom&&(e.scrollTop+=o.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,o,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=o.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||n||e!==s.startContainer||t!==s.startOffset||o!==s.endContainer||i!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==o.tagName&&(i=[].indexOf.call(o.parentNode.childNodes,o),o=o.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(o,i),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default.sources.API;if("string"==typeof t&&(o=t,t=!1),d.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,u(i).concat([t]))}else this.setNativeRange(null);this.update(o)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.default.sources.USER,t=this.lastRange,o=this.getRange(),n=i(o,2),a=n[0],c=n[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var p,d=[r.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];if((u=this.emitter).emit.apply(u,[r.default.events.EDITOR_CHANGE].concat(d)),e!==r.default.sources.SILENT)(p=this.emitter).emit.apply(p,d)}}}]),e}();function h(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=m,t.default=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(0),s=(i=a)&&i.__esModule?i:{default:i};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.Embed),n(t,[{key:"insertInto",value:function(e,o){0===e.children.length?function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}();l.blotName="break",l.tagName="BR",t.default=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(44),s=o(30),l=o(1),r=function(e){function t(t){var o=e.call(this,t)||this;return o.build(),o}return n(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 a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var o=c(t);e.insertBefore(o,e.children.head||void 0)}catch(e){if(e instanceof l.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,o){e.deleteAt(t,o)})},t.prototype.descendant=function(e,o){var i=this.children.find(o),n=i[0],a=i[1];return null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e?[n,a]:n instanceof t?n.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,o,i){void 0===o&&(o=0),void 0===i&&(i=Number.MAX_VALUE);var n=[],a=i;return this.children.forEachAt(o,i,function(o,i,s){(null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e)&&n.push(o),o instanceof t&&(n=n.concat(o.descendants(e,i,a))),a-=s}),n},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,o,i){this.children.forEachAt(e,t,function(e,t,n){e.formatAt(t,n,o,i)})},t.prototype.insertAt=function(e,t,o){var i=this.children.find(e),n=i[0],a=i[1];if(n)n.insertAt(a,t,o);else{var s=null==o?l.create("text",t):l.create(t,o);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 l.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(o){e.insertBefore(o,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var o=l.create(this.statics.defaultChild);this.appendChild(o),o.optimize(t)}else this.remove()},t.prototype.path=function(e,o){void 0===o&&(o=!1);var i=this.children.find(e,o),n=i[0],a=i[1],s=[[this,e]];return n instanceof t?s.concat(n.path(a,o)):(null!=n&&s.push([n,a]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(o){o instanceof t&&o.moveChildren(this),e.prototype.replace.call(this,o)},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 o=this.clone();return this.parent.insertBefore(o,this.next),this.children.forEachAt(e,this.length(),function(e,i,n){e=e.split(i,t),o.appendChild(e)}),o},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var o=this,i=[],n=[];e.forEach(function(e){e.target===o.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),n.push.apply(n,e.removedNodes))}),n.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==o.domNode||t.detach())}}),i.filter(function(e){return e.parentNode==o.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=l.find(e.nextSibling));var i=c(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(o),o.insertBefore(i,t||void 0))})},t}(s.default);function c(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(o){t=l.create(l.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=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(12),s=o(31),l=o(17),r=o(1),c=function(e){function t(t){var o=e.call(this,t)||this;return o.attributes=new s.default(o.domNode),o}return n(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 o=r.query(e);o instanceof a.default?this.attributes.attribute(o,t):t&&(null==o||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,o){var i=e.prototype.replaceWith.call(this,t,o);return this.attributes.copy(i),i},t.prototype.update=function(t,o){var i=this;e.prototype.update.call(this,t,o),t.some(function(e){return e.target===i.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(o,i){var n=e.prototype.wrap.call(this,o,i);return n instanceof t&&n.statics.scope===this.statics.scope&&this.attributes.move(n),n},t}(l.default);t.default=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(30),s=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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 o=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(o+=1),[this.parent.domNode,o]},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}(a.default);t.default=l},function(e,t,o){var i=o(11),n=o(3),a={attributes:{compose:function(e,t,o){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=n(!0,{},t);for(var a in o||(i=Object.keys(i).reduce(function(e,t){return null!=i[t]&&(e[t]=i[t]),e},{})),e)void 0!==e[a]&&void 0===t[a]&&(i[a]=e[a]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=Object.keys(e).concat(Object.keys(t)).reduce(function(o,n){return i(e[n],t[n])||(o[n]=void 0===t[n]?null:t[n]),o},{});return Object.keys(o).length>0?o:void 0},transform:function(e,t,o){if("object"!=typeof e)return t;if("object"==typeof t){if(!o)return t;var i=Object.keys(t).reduce(function(o,i){return void 0===e[i]&&(o[i]=t[i]),o},{});return Object.keys(i).length>0?i: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 o=this.offset,i=a.length(t);if(e>=i-o?(e=i-o,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var n={};return t.attributes&&(n.attributes=t.attributes),"number"==typeof t.retain?n.retain=e:"string"==typeof t.insert?n.insert=t.insert.substr(o,e):n.insert=t.insert,n}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?a.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=a},function(e,o){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var o,i,n;try{o=Map}catch(e){o=function(){}}try{i=Set}catch(e){i=function(){}}try{n=Promise}catch(e){n=function(){}}function a(s,r,c,u,p){"object"==typeof r&&(c=r.depth,u=r.prototype,p=r.includeNonEnumerable,r=r.circular);var d=[],m=[],f=void 0!==t;return void 0===r&&(r=!0),void 0===c&&(c=1/0),function s(c,h){if(null===c)return null;if(0===h)return c;var g,v;if("object"!=typeof c)return c;if(e(c,o))g=new o;else if(e(c,i))g=new i;else if(e(c,n))g=new n(function(e,t){c.then(function(t){e(s(t,h-1))},function(e){t(s(e,h-1))})});else if(a.__isArray(c))g=[];else if(a.__isRegExp(c))g=new RegExp(c.source,l(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(a.__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(r){var b=d.indexOf(c);if(-1!=b)return m[b];d.push(c),m.push(g)}for(var _ in e(c,o)&&c.forEach(function(e,t){var o=s(t,h-1),i=s(e,h-1);g.set(o,i)}),e(c,i)&&c.forEach(function(e){var t=s(e,h-1);g.add(t)}),c){var y;v&&(y=Object.getOwnPropertyDescriptor(v,_)),y&&null==y.set||(g[_]=s(c[_],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(_=0;_<w.length;_++){var x=w[_];(!(C=Object.getOwnPropertyDescriptor(c,x))||C.enumerable||p)&&(g[x]=s(c[x],h-1),C.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(p){var k=Object.getOwnPropertyNames(c);for(_=0;_<k.length;_++){var C,$=k[_];(C=Object.getOwnPropertyDescriptor(c,$))&&C.enumerable||(g[$]=s(c[$],h-1),Object.defineProperty(g,$,{enumerable:!1}))}}return g}(s,c)}function s(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},a.__objToStr=s,a.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},a.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},a.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},a.__getRegExpFlags=l,a}();"object"==typeof e&&e.exports&&(e.exports=i)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=m(o(0)),l=m(o(8)),r=o(4),c=m(r),u=m(o(16)),p=m(o(13)),d=m(o(25));function m(e){return e&&e.__esModule?e:{default:e}}function f(e){return e instanceof c.default||e instanceof r.BlockEmbed}var h=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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 i.emitter=o.emitter,Array.isArray(o.whitelist)&&(i.whitelist=o.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),i.domNode.addEventListener("DOMNodeInserted",function(){}),i.optimize(),i.enable(),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,s.default.Scroll),n(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,o){var n=this.line(e),s=i(n,2),l=s[0],c=s[1],d=this.line(e+o),m=i(d,1)[0];if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,o),null!=m&&l!==m&&c>0){if(l instanceof r.BlockEmbed||m instanceof r.BlockEmbed)return void this.optimize();if(l instanceof p.default){var f=l.newlineIndex(l.length(),!0);if(f>-1&&(l=l.split(f+1))===m)return void this.optimize()}else if(m instanceof p.default){var h=m.newlineIndex(0);h>-1&&m.split(h+1)}var g=m.children.head instanceof u.default?null:m.children.head;l.moveChildren(m,g),l.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,o,i,n){(null==this.whitelist||this.whitelist[i])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,o,i,n),this.optimize())}},{key:"insertAt",value:function(e,o,i){if(null==i||null==this.whitelist||this.whitelist[o]){if(e>=this.length())if(null==i||null==s.default.query(o,s.default.Scope.BLOCK)){var n=s.default.create(this.statics.defaultChild);this.appendChild(n),null==i&&o.endsWith("\n")&&(o=o.slice(0,-1)),n.insertAt(0,o,i)}else{var l=s.default.create(o,i);this.appendChild(l)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,o,i);this.optimize()}}},{key:"insertBefore",value:function(e,o){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(e),e=i}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o)}},{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,o,i){var n=[],a=i;return t.children.forEachAt(o,i,function(t,o,i){f(t)?n.push(t):t instanceof s.default.Container&&(n=n.concat(e(t,o,a))),a-=i}),n}(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]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,o),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,o))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var o=l.default.sources.USER;"string"==typeof e&&(o=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,o,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,o,e)}}}]),t}();h.blotName="scroll",h.className="ql-editor",h.tagName="DIV",h.defaultChild="block",h.allowedChildren=[c.default,r.BlockEmbed,d.default],t.default=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="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},n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=h(o(21)),l=h(o(11)),r=h(o(3)),c=h(o(2)),u=h(o(20)),p=h(o(0)),d=h(o(5)),m=h(o(10)),f=h(o(9));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var v=(0,m.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o));return i.bindings={},Object.keys(i.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])}),i.addBinding({key:t.keys.ENTER,shiftKey:null},C),i.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),i.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),i.addBinding({key:t.keys.DELETE},{collapsed:!1},k),i.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),i.listen(),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,f.default),a(t,null,[{key:"match",value:function(e,t){return t=S(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(o){return!!t[o]!==e[o]&&null!==t[o]})&&t.key===(e.which||e.keyCode)}}]),a(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=S(e);if(null==i||null==i.key)return v.warn("Attempted to add invalid keyboard binding",i);"function"==typeof t&&(t={handler:t}),"function"==typeof o&&(o={handler:o}),i=(0,r.default)(i,t,o),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(o){if(!o.defaultPrevented){var a=o.which||o.keyCode,s=(e.bindings[a]||[]).filter(function(e){return t.match(o,e)});if(0!==s.length){var r=e.quill.getSelection();if(null!=r&&e.quill.hasFocus()){var c=e.quill.getLine(r.index),u=n(c,2),d=u[0],m=u[1],f=e.quill.getLeaf(r.index),h=n(f,2),g=h[0],v=h[1],b=0===r.length?[g,v]:e.quill.getLeaf(r.index+r.length),_=n(b,2),y=_[0],w=_[1],x=g instanceof p.default.Text?g.value().slice(0,v):"",k=y instanceof p.default.Text?y.value().slice(w):"",C={collapsed:0===r.length,empty:0===r.length&&d.length()<=1,format:e.quill.getFormat(r),offset:m,prefix:x,suffix:k};s.some(function(t){if(null!=t.collapsed&&t.collapsed!==C.collapsed)return!1;if(null!=t.empty&&t.empty!==C.empty)return!1;if(null!=t.offset&&t.offset!==C.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==C.format[e]}))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=C.format[e]:!1===t.format[e]?null==C.format[e]:(0,l.default)(t.format[e],C.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(C.prefix))&&(!(null!=t.suffix&&!t.suffix.test(C.suffix))&&!0!==t.handler.call(e,r,C))})&&o.preventDefault()}}}})}}]),t}();function y(e,t){var o,i=e===_.keys.LEFT?"prefix":"suffix";return g(o={key:e,shiftKey:t,altKey:null},i,/^$/),g(o,"handler",function(o){var i=o.index;e===_.keys.RIGHT&&(i+=o.length+1);var a=this.quill.getLeaf(i);return!(n(a,1)[0]instanceof p.default.Embed)||(e===_.keys.LEFT?t?this.quill.setSelection(o.index-1,o.length+1,d.default.sources.USER):this.quill.setSelection(o.index-1,d.default.sources.USER):t?this.quill.setSelection(o.index,o.length+1,d.default.sources.USER):this.quill.setSelection(o.index+o.length+1,d.default.sources.USER),!1)}),o}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var o=this.quill.getLine(e.index),i=n(o,1)[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=n(s,1)[0];if(null!=l&&l.length()>1){var r=i.formats(),c=this.quill.getFormat(e.index-1,1);a=u.default.attributes.diff(r,c)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-p,p,d.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-p,p,a,d.default.sources.USER),this.quill.focus()}}function x(e,t){var o=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-o)){var i={},a=0,s=this.quill.getLine(e.index),l=n(s,1)[0];if(t.offset>=l.length()-1){var r=this.quill.getLine(e.index+1),c=n(r,1)[0];if(c){var p=l.formats(),m=this.quill.getFormat(e.index,1);i=u.default.attributes.diff(p,m)||{},a=c.length()}}this.quill.deleteText(e.index,o,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+a-1,o,i,d.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),o={};if(t.length>1){var i=t[0].formats(),n=t[t.length-1].formats();o=u.default.attributes.diff(n,i)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index,1,o,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function C(e,t){var o=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce(function(e,o){return p.default.query(o,p.default.Scope.BLOCK)&&!Array.isArray(t.format[o])&&(e[o]=t.format[o]),e},{});this.quill.insertText(e.index,"\n",i,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&o.quill.format(e,t.format[e],d.default.sources.USER))})}function $(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var o=p.default.query("code-block"),i=t.index,a=t.length,s=this.quill.scroll.descendant(o,i),l=n(s,2),r=l[0],c=l[1];if(null!=r){var u=this.quill.getIndex(r),m=r.newlineIndex(c,!0)+1,f=r.newlineIndex(u+c+a),h=r.domNode.textContent.slice(m,f).split("\n");c=0,h.forEach(function(t,n){e?(r.insertAt(m+c,o.TAB),c+=o.TAB.length,0===n?i+=o.TAB.length:a+=o.TAB.length):t.startsWith(o.TAB)&&(r.deleteAt(m+c,o.TAB.length),c-=o.TAB.length,0===n?i-=o.TAB.length:a-=o.TAB.length),c+=t.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(i,a,d.default.sources.SILENT)}}}}function P(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,o){this.quill.format(e,!o.format[e],d.default.sources.USER)}}}function S(e){if("string"==typeof e||"number"==typeof e)return S({key:e});if("object"===(void 0===e?"undefined":i(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:P("bold"),italic:P("italic"),underline:P("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:_.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",d.default.sources.USER)}},"outdent backspace":{key:_.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",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":$(!0),"outdent code-block":$(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:_.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,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),o=n(t,2),i=o[0],a=o[1],s=(0,r.default)({},i.formats(),{list:"checked"}),l=(new c.default).retain(e.index).insert("\n",s).retain(i.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var o=this.quill.getLine(e.index),i=n(o,2),a=i[0],s=i[1],l=(new c.default).retain(e.index).insert("\n",t.format).retain(a.length()-s-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var o=t.prefix.length,i=this.quill.getLine(e.index),a=n(i,2),s=a[0],l=a[1];if(l>o)return!0;var r=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":case"*":r="bullet";break;default:r="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-l).delete(o+1).retain(s.length()-2-l).retain(1,{list:r});this.quill.updateContents(u,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-o,d.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),o=n(t,2),i=o[0],a=o[1],s=(new c.default).retain(e.index+i.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,d.default.sources.USER)}},"embed left":y(_.keys.LEFT,!1),"embed left shift":y(_.keys.LEFT,!0),"embed right":y(_.keys.RIGHT,!1),"embed right shift":y(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=b},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=r(o(0)),l=r(o(7));function r(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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 i.selection=o,i.textNode=document.createTextNode(t.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,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,s.default.Embed),a(t,null,[{key:"value",value:function(){}}]),a(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,o){if(0!==this._length)return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o);for(var i=this,a=0;null!=i&&i.statics.scope!==s.default.Scope.BLOCK_BLOT;)a+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=t.CONTENTS.length,i.optimize(),i.formatAt(a,t.CONTENTS.length,e,o),this._length=0)}},{key:"index",value:function(e,o){return e===this.textNode?0:n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,o)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){n(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,o=this.selection.getNativeRange(),n=void 0,a=void 0,r=void 0;if(null!=o&&o.start.node===e&&o.end.node===e){var c=[e,o.start.offset,o.end.offset];n=c[0],a=c[1],r=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 l.default?(n=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!=a){var p=[a,r].map(function(e){return Math.max(0,Math.min(n.data.length,e-1))}),d=i(p,2);return a=d[0],r=d[1],{startNode:n,startOffset:a,endNode:n,endOffset:r}}}}},{key:"update",value:function(e,t){var o=this;if(e.some(function(e){return"characterData"===e.type&&e.target===o.textNode})){var i=this.restore();i&&(t.range=i)}}},{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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(o(0)),n=o(4),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Container),t}();l.allowedChildren=[a.default,n.BlockEmbed,l],t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(0),s=(i=a)&&i.__esModule?i:{default:i};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.Attributor.Style),n(t,[{key:"value",value:function(e){var o=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return o.startsWith("rgb(")?(o=o.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+o.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):o}}]),t}(),r=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),c=new l("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=r,t.ColorStyle=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(6),l=(i=s)&&i.__esModule?i:{default:i};var r=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,l.default),n(t,[{key:"format",value:function(e,o){if(e!==this.statics.blotName||!o)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o);o=this.constructor.sanitize(o),this.domNode.setAttribute("href",o)}}],[{key:"create",value:function(e){var o=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),o.setAttribute("href",e),o.setAttribute("target","_blank"),o}},{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 o=document.createElement("a");o.href=e;var i=o.href.slice(0,o.href.indexOf(":"));return t.indexOf(i)>-1}r.blotName="link",r.tagName="A",r.SANITIZED_URL="about:blank",r.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=r,t.sanitize=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="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},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=l(o(23)),s=l(o(107));function l(e){return e&&e.__esModule?e:{default:e}}var r=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var o=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(){o.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case a.default.keys.ENTER:o.togglePicker();break;case a.default.keys.ESCAPE:o.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return n(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,o=document.createElement("span");return o.tabIndex="0",o.setAttribute("role","button"),o.classList.add("ql-picker-item"),e.hasAttribute("value")&&o.setAttribute("data-value",e.getAttribute("value")),e.textContent&&o.setAttribute("data-label",e.textContent),o.addEventListener("click",function(){t.selectItem(o,!0)}),o.addEventListener("keydown",function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(o,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),o}},{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-"+r,r+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(o){var i=e.buildItem(o);t.appendChild(i),!0===o.selected&&e.selectItem(i)}),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],o=this.container.querySelector(".ql-selected");if(e!==o&&(null!=o&&o.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":i(Event))){var n=document.createEvent("Event");n.initEvent("change",!0,!0),this.select.dispatchEvent(n)}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 o=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",o)}}]),e}();t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=v(o(0)),n=v(o(5)),a=o(4),s=v(a),l=v(o(16)),r=v(o(25)),c=v(o(24)),u=v(o(35)),p=v(o(6)),d=v(o(22)),m=v(o(7)),f=v(o(55)),h=v(o(42)),g=v(o(23));function v(e){return e&&e.__esModule?e:{default:e}}n.default.register({"blots/block":s.default,"blots/block/embed":a.BlockEmbed,"blots/break":l.default,"blots/container":r.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":p.default,"blots/scroll":d.default,"blots/text":m.default,"modules/clipboard":f.default,"modules/history":h.default,"modules/keyboard":g.default}),i.default.register(s.default,l.default,c.default,p.default,d.default,m.default),t.default=n.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=function(){function e(e){this.domNode=e,this.domNode[i.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 i.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 i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,o,n){var a=this.isolate(e,t);if(null!=i.query(o,i.Scope.BLOT)&&n)a.wrap(o,n);else if(null!=i.query(o,i.Scope.ATTRIBUTE)){var s=i.create(this.statics.scope);a.wrap(s),s.format(o,n)}},e.prototype.insertAt=function(e,t,o){var n=null==o?i.create("text",t):i.create(t,o),a=this.split(e);this.parent.insertBefore(n,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var o=null;e.children.insertBefore(this,t),null!=t&&(o=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==o||e.domNode.insertBefore(this.domNode,o),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var o=this.split(e);return o.split(t),o},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[i.DATA_KEY]&&delete this.domNode[i.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 o="string"==typeof e?i.create(e,t):e;return o.replace(this),o},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 o="string"==typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(o,this.next),o.appendChild(this),o},e.blotName="abstract",e}();t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),n=o(32),a=o(33),s=o(1),l=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=i.default.keys(this.domNode),o=n.default.keys(this.domNode),l=a.default.keys(this.domNode);t.concat(o).concat(l).forEach(function(t){var o=s.query(t,s.Scope.ATTRIBUTE);o instanceof i.default&&(e.attributes[o.attrName]=o)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(o){var i=t.attributes[o].value(t.domNode);e.format(o,i)})},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,o){return t[o]=e.attributes[o].value(e.domNode),t},{})},e}();t.default=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});function a(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 n(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){a(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(a(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(o(12).default);t.default=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});function a(e){var t=e.split("-"),o=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+o}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(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[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:""},t}(o(12).default);t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}();var n=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=o,this.modules={}}return i(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}();n.DEFAULTS={modules:{}},n.themes={default:n},t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=s(o(0)),a=s(o(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",r=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 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.contentNode=document.createElement("span"),o.contentNode.setAttribute("contenteditable",!1),[].slice.call(o.domNode.childNodes).forEach(function(e){o.contentNode.appendChild(e)}),o.leftGuard=document.createTextNode(l),o.rightGuard=document.createTextNode(l),o.domNode.appendChild(o.leftGuard),o.domNode.appendChild(o.contentNode),o.domNode.appendChild(o.rightGuard),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,n.default.Embed),i(t,[{key:"index",value:function(e,o){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,o)}},{key:"restore",value:function(e){var t=void 0,o=void 0,i=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var s=this.prev.length();this.prev.insertAt(s,i),t={startNode:this.prev.domNode,startOffset:s+i.length}}else o=document.createTextNode(i),this.parent.insertBefore(n.default.create(o),this),t={startNode:o,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(o=document.createTextNode(i),this.parent.insertBefore(n.default.create(o),this.next),t={startNode:o,startOffset:i.length}));return e.data=l,t}},{key:"update",value:function(e,t){var o=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===o.leftGuard||e.target===o.rightGuard)){var i=o.restore(e.target);i&&(t.range=i)}})}}]),t}();t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i,n=o(0),a=(i=n)&&i.__esModule?i:{default:i};var s={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new a.default.Attributor.Attribute("align","align",s),r=new a.default.Attributor.Class("align","ql-align",s),c=new a.default.Attributor.Style("align","text-align",s);t.AlignAttribute=l,t.AlignClass=r,t.AlignStyle=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i,n=o(0),a=(i=n)&&i.__esModule?i:{default:i},s=o(26);var l=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),r=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i,n=o(0),a=(i=n)&&i.__esModule?i:{default:i};var s={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},l=new a.default.Attributor.Attribute("direction","dir",s),r=new a.default.Attributor.Class("direction","ql-direction",s),c=new a.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=l,t.DirectionClass=r,t.DirectionStyle=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(0),s=(i=a)&&i.__esModule?i:{default:i};var l={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},r=new s.default.Attributor.Class("font","ql-font",l),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),n(t,[{key:"value",value:function(e){return function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}())("font","font-family",l);t.FontStyle=c,t.FontClass=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i,n=o(0),a=(i=n)&&i.__esModule?i:{default:i};var s=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=l},function(e,t,o){"use strict";e.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{1:o(92),2:o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=l(o(0)),a=l(o(5)),s=l(o(9));function l(e){return e&&e.__esModule?e:{default:e}}var r=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(a.default.events.EDITOR_CHANGE,function(e,t,o,n){e!==a.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&n!==a.default.sources.USER?i.transform(t):i.record(t,o))}),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),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,s.default),i(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var o=this.stack[e].pop();this.stack[t].push(o),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(o[e],a.default.sources.USER),this.ignoreChange=!1;var i=c(o[e]);this.quill.setSelection(i)}}},{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 o=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var n=this.stack.undo.pop();o=o.compose(n.undo),e=n.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:o}),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),o=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!=n.default.query(e,n.default.Scope.BLOCK)}))}(e)&&(o-=1),o}r.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=r,t.getLastChangeIndex=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=m(o(3)),a=m(o(2)),s=m(o(8)),l=m(o(23)),r=m(o(34)),c=m(o(59)),u=m(o(60)),p=m(o(28)),d=m(o(61));function m(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 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 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"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],y=["1","2","3",!1],w=["small",!1,"large","huge"],x=function(e){function t(e,o){f(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return e.emitter.listenDOM("click",document.body,function t(o){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==i.tooltip||i.tooltip.root.contains(o.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach(function(e){e.container.contains(o.target)||e.close()})}),i}return g(t,r.default),i(t,[{key:"addModule",value:function(e){var o=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(o),o}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(o){if(o.startsWith("ql-")&&(o=o.slice("ql-".length),null!=t[o]))if("direction"===o)e.innerHTML=t[o][""]+t[o].rtl;else if("string"==typeof t[o])e.innerHTML=t[o];else{var i=e.value||"";null!=i&&t[o][i]&&(e.innerHTML=t[o][i])}})})}},{key:"buildPickers",value:function(e,t){var o=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&C(e,v),new u.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var o=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&C(e,b,"background"===o?"#ffffff":"#000000"),new c.default(e,t[o])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?C(e,_):e.classList.contains("ql-header")?C(e,y):e.classList.contains("ql-size")&&C(e,w)),new p.default(e)});this.quill.on(s.default.events.EDITOR_CHANGE,function(){o.pickers.forEach(function(e){e.update()})})}}]),t}();x.DEFAULTS=(0,n.default)(!0,{},r.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 o=new FileReader;o.onload=function(o){var i=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(i.index).delete(i.length).insert({image:o.target.result}),s.default.sources.USER),e.quill.setSelection(i.index+1,s.default.sources.SILENT),t.value=""},o.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,o){f(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return g(t,d.default),i(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.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 o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",s.default.sources.USER),this.quill.setSelection(i+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}();function C(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var i=document.createElement("option");t===o?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)})}t.BaseTooltip=k,t.default=x},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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,o=this.iterator();t=o();)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,o=this.head;null!=o;){if(o===e)return t;t+=o.length(),o=o.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 o,i=this.iterator();o=i();){var n=o.length();if(e<n||t&&e===n&&(null==o.next||0!==o.next.length()))return[o,e];e-=n}return[null,0]},e.prototype.forEach=function(e){for(var t,o=this.iterator();t=o();)e(t)},e.prototype.forEachAt=function(e,t,o){if(!(t<=0))for(var i,n=this.find(e),a=n[0],s=e-n[1],l=this.iterator(a);(i=l())&&s<e+t;){var r=i.length();e>s?o(i,e-s,Math.min(t,s+r-e)):o(i,0,Math.min(r,e+t-s)),s+=r}},e.prototype.map=function(e){return this.reduce(function(t,o){return t.push(e(o)),t},[])},e.prototype.reduce=function(e,t){for(var o,i=this.iterator();o=i();)t=e(t,o);return t},e}();t.default=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),s=o(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},r=function(e){function t(t){var o=e.call(this,t)||this;return o.scroll=o,o.observer=new MutationObserver(function(e){o.update(e)}),o.observer.observe(o.domNode,l),o.attach(),o}return n(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,o){this.update(),0===t&&o===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,o)},t.prototype.formatAt=function(t,o,i,n){this.update(),e.prototype.formatAt.call(this,t,o,i,n)},t.prototype.insertAt=function(t,o,i){this.update(),e.prototype.insertAt.call(this,t,o,i)},t.prototype.optimize=function(t,o){var i=this;void 0===t&&(t=[]),void 0===o&&(o={}),e.prototype.optimize.call(this,o);for(var n=[].slice.call(this.observer.takeRecords());n.length>0;)t.push(n.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&l(e.parent))},r=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof a.default&&e.children.forEach(r),e.optimize(o))},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?(l(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=s.find(e,!1);l(t,!1),t instanceof a.default&&t.children.forEach(function(e){l(e,!1)})})):"attributes"===e.type&&l(t.prev)),l(t))}),this.children.forEach(r),n=(c=[].slice.call(this.observer.takeRecords())).slice();n.length>0;)t.push(n.pop())}},t.prototype.update=function(t,o){var i=this;void 0===o&&(o={}),(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!==i&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],o)}),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,o),this.optimize(t,o)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(a.default);t.default=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),s=o(1);var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(o){if(o.tagName!==t.tagName)return e.formats.call(this,o)},t.prototype.format=function(o,i){var n=this;o!==this.statics.blotName||i?e.prototype.format.call(this,o,i):(this.children.forEach(function(e){e instanceof a.default||(e=e.wrap(t.blotName,!0)),n.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,o,i,n){null!=this.formats()[i]||s.query(i,s.Scope.ATTRIBUTE)?this.isolate(t,o).format(i,n):e.prototype.formatAt.call(this,t,o,i,n)},t.prototype.optimize=function(o){e.prototype.optimize.call(this,o);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var n=this.next;n instanceof t&&n.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(e[o]!==t[o])return!1;return!0}(i,n.formats())&&(n.moveChildren(this),n.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(a.default);t.default=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),s=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(o){var i=s.query(t.blotName).tagName;if(o.tagName!==i)return e.formats.call(this,o)},t.prototype.format=function(o,i){null!=s.query(o,s.Scope.BLOCK)&&(o!==this.statics.blotName||i?e.prototype.format.call(this,o,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,o,i,n){null!=s.query(i,s.Scope.BLOCK)?this.format(i,n):e.prototype.formatAt.call(this,t,o,i,n)},t.prototype.insertAt=function(t,o,i){if(null==i||null!=s.query(o,s.Scope.INLINE))e.prototype.insertAt.call(this,t,o,i);else{var n=this.split(t),a=s.create(o,i);n.parent.insertBefore(a,n)}},t.prototype.update=function(t,o){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,o)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(a.default);t.default=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(e){},t.prototype.format=function(t,o){e.prototype.formatAt.call(this,0,this.length(),t,o)},t.prototype.formatAt=function(t,o,i,n){0===t&&o===this.length()?this.format(i,n):e.prototype.formatAt.call(this,t,o,i,n)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(o(19).default);t.default=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),s=o(1),l=function(e){function t(t){var o=e.call(this,t)||this;return o.text=o.statics.value(o.domNode),o}return n(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,o,i){null==i?(this.text=this.text.slice(0,t)+o+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,o,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(o){e.prototype.optimize.call(this,o),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 o=s.create(this.domNode.splitText(e));return this.parent.insertBefore(o,this.next),this.text=this.statics.value(this.domNode),o},t.prototype.update=function(e,t){var o=this;e.some(function(e){return"characterData"===e.type&&e.target===o.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}(a.default);t.default=l},function(e,t,o){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:n.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 o=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>o.length)&&(t=o.length),t-=e.length;var i=o.indexOf(e,t);return-1!==i&&i===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,o=Object(this),i=o.length>>>0,n=arguments[1],a=0;a<i;a++)if(t=o[a],e.call(n,t,a,o))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var o=-1,i=1,n=0;function a(e,t,c){if(e==t)return e?[[n,e]]:[];(c<0||e.length<c)&&(c=null);var p=l(e,t),d=e.substring(0,p);p=r(e=e.substring(p),t=t.substring(p));var m=e.substring(e.length-p),f=function(e,t){var c;if(!e)return[[i,t]];if(!t)return[[o,e]];var u=e.length>t.length?e:t,p=e.length>t.length?t:e,d=u.indexOf(p);if(-1!=d)return c=[[i,u.substring(0,d)],[n,p],[i,u.substring(d+p.length)]],e.length>t.length&&(c[0][0]=c[2][0]=o),c;if(1==p.length)return[[o,e],[i,t]];var m=function(e,t){var o=e.length>t.length?e:t,i=e.length>t.length?t:e;if(o.length<4||2*i.length<o.length)return null;function n(e,t,o){for(var i,n,a,s,c=e.substring(o,o+Math.floor(e.length/4)),u=-1,p="";-1!=(u=t.indexOf(c,u+1));){var d=l(e.substring(o),t.substring(u)),m=r(e.substring(0,o),t.substring(0,u));p.length<m+d&&(p=t.substring(u-m,u)+t.substring(u,u+d),i=e.substring(0,o-m),n=e.substring(o+d),a=t.substring(0,u-m),s=t.substring(u+d))}return 2*p.length>=e.length?[i,n,a,s,p]:null}var a,s,c,u,p,d=n(o,i,Math.ceil(o.length/4)),m=n(o,i,Math.ceil(o.length/2));if(!d&&!m)return null;a=m?d&&d[4].length>m[4].length?d:m:d;e.length>t.length?(s=a[0],c=a[1],u=a[2],p=a[3]):(u=a[0],p=a[1],s=a[2],c=a[3]);var f=a[4];return[s,c,u,p,f]}(e,t);if(m){var f=m[0],h=m[1],g=m[2],v=m[3],b=m[4],_=a(f,g),y=a(h,v);return _.concat([[n,b]],y)}return function(e,t){for(var n=e.length,a=t.length,l=Math.ceil((n+a)/2),r=l,c=2*l,u=new Array(c),p=new Array(c),d=0;d<c;d++)u[d]=-1,p[d]=-1;u[r+1]=0,p[r+1]=0;for(var m=n-a,f=m%2!=0,h=0,g=0,v=0,b=0,_=0;_<l;_++){for(var y=-_+h;y<=_-g;y+=2){for(var w=r+y,x=(S=y==-_||y!=_&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-y;S<n&&x<a&&e.charAt(S)==t.charAt(x);)S++,x++;if(u[w]=S,S>n)g+=2;else if(x>a)h+=2;else if(f){var k=r+m-y;if(k>=0&&k<c&&-1!=p[k]){var C=n-p[k];if(S>=C)return s(e,t,S,x)}}}for(var $=-_+v;$<=_-b;$+=2){for(var k=r+$,P=(C=$==-_||$!=_&&p[k-1]<p[k+1]?p[k+1]:p[k-1]+1)-$;C<n&&P<a&&e.charAt(n-C-1)==t.charAt(a-P-1);)C++,P++;if(p[k]=C,C>n)b+=2;else if(P>a)v+=2;else if(!f){var w=r+m-$;if(w>=0&&w<c&&-1!=u[w]){var S=u[w],x=r+S-w;if(S>=(C=n-C))return s(e,t,S,x)}}}}return[[o,e],[i,t]]}(e,t)}(e=e.substring(0,e.length-p),t=t.substring(0,t.length-p));return d&&f.unshift([n,d]),m&&f.push([n,m]),function e(t){t.push([n,""]);var a=0;var s=0;var c=0;var u="";var p="";var d;for(;a<t.length;)switch(t[a][0]){case i:c++,p+=t[a][1],a++;break;case o:s++,u+=t[a][1],a++;break;case n:s+c>1?(0!==s&&0!==c&&(0!==(d=l(p,u))&&(a-s-c>0&&t[a-s-c-1][0]==n?t[a-s-c-1][1]+=p.substring(0,d):(t.splice(0,0,[n,p.substring(0,d)]),a++),p=p.substring(d),u=u.substring(d)),0!==(d=r(p,u))&&(t[a][1]=p.substring(p.length-d)+t[a][1],p=p.substring(0,p.length-d),u=u.substring(0,u.length-d))),0===s?t.splice(a-c,s+c,[i,p]):0===c?t.splice(a-s,s+c,[o,u]):t.splice(a-s-c,s+c,[o,u],[i,p]),a=a-s-c+(s?1:0)+(c?1:0)+1):0!==a&&t[a-1][0]==n?(t[a-1][1]+=t[a][1],t.splice(a,1)):a++,c=0,s=0,u="",p=""}""===t[t.length-1][1]&&t.pop();var m=!1;a=1;for(;a<t.length-1;)t[a-1][0]==n&&t[a+1][0]==n&&(t[a][1].substring(t[a][1].length-t[a-1][1].length)==t[a-1][1]?(t[a][1]=t[a-1][1]+t[a][1].substring(0,t[a][1].length-t[a-1][1].length),t[a+1][1]=t[a-1][1]+t[a+1][1],t.splice(a-1,1),m=!0):t[a][1].substring(0,t[a+1][1].length)==t[a+1][1]&&(t[a-1][1]+=t[a+1][1],t[a][1]=t[a][1].substring(t[a+1][1].length)+t[a+1][1],t.splice(a+1,1),m=!0)),a++;m&&e(t)}(f),null!=c&&(f=function(e,t){var i=function(e,t){if(0===t)return[n,e];for(var i=0,a=0;a<e.length;a++){var s=e[a];if(s[0]===o||s[0]===n){var l=i+s[1].length;if(t===l)return[a+1,e];if(t<l){e=e.slice();var r=t-i,c=[s[0],s[1].slice(0,r)],u=[s[0],s[1].slice(r)];return e.splice(a,1,c,u),[a+1,e]}i=l}}throw new Error("cursor_pos is out of bounds!")}(e,t),a=i[1],s=i[0],l=a[s],r=a[s+1];if(null==l)return e;if(l[0]!==n)return e;if(null!=r&&l[1]+r[1]===r[1]+l[1])return a.splice(s,2,r,l),u(a,s,2);if(null!=r&&0===r[1].indexOf(l[1])){a.splice(s,2,[r[0],l[1]],[0,l[1]]);var c=r[1].slice(l[1].length);return c.length>0&&a.splice(s+2,0,[r[0],c]),u(a,s,3)}return e}(f,c)),f=function(e){for(var t=!1,a=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},s=2;s<e.length;s+=1)e[s-2][0]===n&&((l=e[s-2][1]).charCodeAt(l.length-1)>=55296&&l.charCodeAt(l.length-1)<=56319)&&e[s-1][0]===o&&a(e[s-1][1])&&e[s][0]===i&&a(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 l;if(!t)return e;for(var r=[],s=0;s<e.length;s+=1)e[s][1].length>0&&r.push(e[s]);return r}(f)}function s(e,t,o,i){var n=e.substring(0,o),s=t.substring(0,i),l=e.substring(o),r=t.substring(i),c=a(n,s),u=a(l,r);return c.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var o=0,i=Math.min(e.length,t.length),n=i,a=0;o<n;)e.substring(a,n)==t.substring(a,n)?a=o=n:i=n,n=Math.floor((i-o)/2+o);return n}function r(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var o=0,i=Math.min(e.length,t.length),n=i,a=0;o<n;)e.substring(e.length-n,e.length-a)==t.substring(t.length-n,t.length-a)?a=o=n:i=n,n=Math.floor((i-o)/2+o);return n}var c=a;function u(e,t,o){for(var i=t+o-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var n=e[i],a=e[i+1];n[0]===a[1]&&e.splice(i,2,[n[0],n[1]+a[1]])}return e}c.INSERT=i,c.DELETE=o,c.EQUAL=n,e.exports=c},function(e,t){function o(e){var t=[];for(var o in e)t.push(o);return t}(e.exports="function"==typeof Object.keys?Object.keys:o).shim=o},function(e,t){var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function n(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=o?i:n).supported=i,t.unsupported=n},function(e,t){"use strict";var o=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,o){this.fn=e,this.context=t,this.once=o||!1}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)o.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e,t){var o=i?i+e:e,n=this._events[o];if(t)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var a=0,s=n.length,l=new Array(s);a<s;a++)l[a]=n[a].fn;return l},s.prototype.emit=function(e,t,o,n,a,s){var l=i?i+e:e;if(!this._events[l])return!1;var r,c,u=this._events[l],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){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,o),!0;case 4:return u.fn.call(u.context,t,o,n),!0;case 5:return u.fn.call(u.context,t,o,n,a),!0;case 6:return u.fn.call(u.context,t,o,n,a,s),!0}for(c=1,r=new Array(p-1);c<p;c++)r[c-1]=arguments[c];u.fn.apply(u.context,r)}else{var d,m=u.length;for(c=0;c<m;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),p){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,o);break;case 4:u[c].fn.call(u[c].context,t,o,n);break;default:if(!r)for(d=1,r=new Array(p-1);d<p;d++)r[d-1]=arguments[d];u[c].fn.apply(u[c].context,r)}}return!0},s.prototype.on=function(e,t,o){var n=new a(t,o||this),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],n]:this._events[s].push(n):(this._events[s]=n,this._eventsCount++),this},s.prototype.once=function(e,t,o){var n=new a(t,o||this,!0),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],n]:this._events[s].push(n):(this._events[s]=n,this._eventsCount++),this},s.prototype.removeListener=function(e,t,o,a){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new n:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn!==t||a&&!l.once||o&&l.context!==o||(0==--this._eventsCount?this._events=new n:delete this._events[s]);else{for(var r=0,c=[],u=l.length;r<u;r++)(l[r].fn!==t||a&&!l[r].once||o&&l[r].context!==o)&&c.push(l[r]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new n:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new n:delete this._events[t])):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="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},n=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=_(o(3)),l=_(o(2)),r=_(o(0)),c=_(o(5)),u=_(o(10)),p=_(o(9)),d=o(36),m=o(37),f=_(o(13)),h=o(26),g=o(38),v=o(39),b=o(40);function _(e){return e&&e.__esModule?e:{default:e}}function y(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var w=(0,u.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,M],[Node.TEXT_NODE,N],["br",function(e,t){T(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(e,t){var o={},i=e.style||{};i.fontStyle&&"italic"===O(e).fontStyle&&(o.italic=!0);i.fontWeight&&(O(e).fontWeight.startsWith("bold")||parseInt(O(e).fontWeight)>=700)&&(o.bold=!0);Object.keys(o).length>0&&(t=S(t,o));parseFloat(i.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t));return t}],["li",function(e,t){var o=r.default.query(e);if(null==o||"list-item"!==o.blotName||!T(t,"\n"))return t;var i=-1,n=e.parentNode;for(;!n.classList.contains("ql-clipboard");)"list"===(r.default.query(n)||{}).blotName&&(i+=1),n=n.parentNode;return i<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",function(){return new l.default}]],C=[d.AlignAttribute,g.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),$=[d.AlignStyle,m.BackgroundStyle,h.ColorStyle,g.DirectionStyle,v.FontStyle,b.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),P=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,o));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],k.concat(i.options.matchers).forEach(function(e){var t=n(e,2),a=t[0],s=t[1];(o.matchVisual||s!==j)&&i.addMatcher(a,s)}),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,p.default),a(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 o=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(o,y({},f.default.blotName,t[f.default.blotName]))}var i=this.prepareMatching(),a=n(i,2),s=a[0],r=a[1],c=function e(t,o,i){return t.nodeType===t.TEXT_NODE?i.reduce(function(e,o){return o(t,e)},new l.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(n,a){var s=e(a,o,i);return a.nodeType===t.ELEMENT_NODE&&(s=o.reduce(function(e,t){return t(a,e)},s),s=(a[x]||[]).reduce(function(e,t){return t(a,e)},s)),n.concat(s)},new l.default):new l.default}(this.container,s,r);return T(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.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 o=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 i=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(i),o),this.quill.setSelection(e+i.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var o=this.quill.getSelection(),i=(new l.default).retain(o.index),n=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout(function(){i=i.concat(t.convert()).delete(o.length),t.quill.updateContents(i,c.default.sources.USER),t.quill.setSelection(i.length()-o.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=n,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],o=[];return this.matchers.forEach(function(i){var a=n(i,2),s=a[0],l=a[1];switch(s){case Node.TEXT_NODE:o.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(s),function(e){e[x]=e[x]||[],e[x].push(l)})}}),[t,o]}}]),t}();function S(e,t,o){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce(function(e,o){return S(e,o,t[o])},e):e.reduce(function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},y({},t,o),i.attributes))},new l.default)}function O(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};return e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function T(e,t){for(var o="",i=e.ops.length-1;i>=0&&o.length<t.length;--i){var n=e.ops[i];if("string"!=typeof n.insert)break;o=n.insert+o}return o.slice(-1*t.length)===t}function E(e){if(0===e.childNodes.length)return!1;var t=O(e);return["block","list-item"].indexOf(t.display)>-1}function D(e,t,o){return S(o,e,!0)}function L(e,t){var o=r.default.Attributor.Attribute.keys(e),i=r.default.Attributor.Class.keys(e),n=r.default.Attributor.Style.keys(e),a={};return o.concat(i).concat(n).forEach(function(t){var o=r.default.query(t,r.default.Scope.ATTRIBUTE);null!=o&&(a[o.attrName]=o.value(e),a[o.attrName])||(null==(o=C[t])||o.attrName!==t&&o.keyName!==t||(a[o.attrName]=o.value(e)||void 0),null==(o=$[t])||o.attrName!==t&&o.keyName!==t||(o=$[t],a[o.attrName]=o.value(e)||void 0))}),Object.keys(a).length>0&&(t=S(t,a)),t}function A(e,t){var o=r.default.query(e);if(null==o)return t;if(o.prototype instanceof r.default.Embed){var i={},n=o.value(e);null!=n&&(i[o.blotName]=n,t=(new l.default).insert(i,o.formats(e)))}else"function"==typeof o.formats&&(t=S(t,o.blotName,o.formats(e)));return t}function N(e,t){return T(t,"\n")||(E(e)||t.length()>0&&e.nextSibling&&E(e.nextSibling))&&t.insert("\n"),t}function j(e,t){if(E(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var o=e.offsetHeight+parseFloat(O(e).marginTop)+parseFloat(O(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*o&&t.insert("\n")}return t}function M(e,t){var o=e.data;if("O:P"===e.parentNode.tagName)return t.insert(o.trim());if(0===o.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!O(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};o=(o=o.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&E(e.parentNode)||null!=e.previousSibling&&E(e.previousSibling))&&(o=o.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&E(e.parentNode)||null!=e.nextSibling&&E(e.nextSibling))&&(o=o.replace(/\s+$/,i.bind(i,!1)))}return t.insert(o)}P.DEFAULTS={matchers:[],matchVisual:!0},t.default=P,t.matchAttributor=L,t.matchBlot=A,t.matchNewline=N,t.matchSpacing=j,t.matchText=M},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(6),l=(i=s)&&i.__esModule?i:{default:i};var r=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,l.default),n(t,[{key:"optimize",value:function(e){a(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 a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}();r.blotName="bold",r.tagName=["STRONG","B"],t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=u(o(2)),s=u(o(0)),l=u(o(5)),r=u(o(10)),c=u(o(9));function u(e){return e&&e.__esModule?e:{default:e}}function p(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 d=(0,r.default)("quill:toolbar"),m=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,a=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));if(Array.isArray(a.options.container)){var s=document.createElement("div");h(s,a.options.container),e.container.parentNode.insertBefore(s,e.container),a.container=s}else"string"==typeof a.options.container?a.container=document.querySelector(a.options.container):a.container=a.options.container;return a.container instanceof HTMLElement?(a.container.classList.add("ql-toolbar"),a.controls=[],a.handlers={},Object.keys(a.options.handlers).forEach(function(e){a.addHandler(e,a.options.handlers[e])}),[].forEach.call(a.container.querySelectorAll("button, select"),function(e){a.attach(e)}),a.quill.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.SELECTION_CHANGE&&a.update(t)}),a.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){var e=a.quill.selection.getRange(),t=i(e,1)[0];a.update(t)}),a):(n=d.error("Container required for toolbar",a.options),p(a,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,c.default),n(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,o=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(o){if(o=o.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[o]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[o])return void d.warn("ignoring attaching to disabled format",o,e);if(null==s.default.query(o))return void d.warn("ignoring attaching to nonexistent format",o,e)}var n="SELECT"===e.tagName?"change":"click";e.addEventListener(n,function(n){var r=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];r=!c.hasAttribute("selected")&&(c.value||!1)}else r=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),n.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),p=i(u,1)[0];if(null!=t.handlers[o])t.handlers[o].call(t,r);else if(s.default.query(o).prototype instanceof s.default.Embed){if(!(r=prompt("Enter "+o)))return;t.quill.updateContents((new a.default).retain(p.index).delete(p.length).insert(function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},o,r)),l.default.sources.USER)}else t.quill.format(o,r,l.default.sources.USER);t.update(p)}),this.controls.push([o,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(o){var n=i(o,2),a=n[0],s=n[1];if("SELECT"===s.tagName){var l=void 0;if(null==e)l=null;else if(null==t[a])l=s.querySelector("option[selected]");else if(!Array.isArray(t[a])){var r=t[a];"string"==typeof r&&(r=r.replace(/\"/g,'\\"')),l=s.querySelector('option[value="'+r+'"]')}null==l?(s.value="",s.selectedIndex=-1):l.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[a]===s.getAttribute("value")||null!=t[a]&&t[a].toString()===s.getAttribute("value")||null==t[a]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[a])})}}]),t}();function f(e,t,o){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=o&&(i.value=o),e.appendChild(i)}function h(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var o=document.createElement("span");o.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)f(o,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?function(e,t,o){var i=document.createElement("select");i.classList.add("ql-"+t),o.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),i.appendChild(t)}),e.appendChild(i)}(o,t,i):f(o,t,i)}}),e.appendChild(o)})}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var o=this.quill.getFormat();Object.keys(o).forEach(function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),o=this.quill.getFormat(t),i=parseInt(o.indent||0);if("+1"===e||"-1"===e){var n="+1"===e?1:-1;"rtl"===o.direction&&(n*=-1),this.quill.format("indent",i+n,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),o=this.quill.getFormat(t);"check"===e?"checked"===o.list||"unchecked"===o.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=m,t.addControls=h},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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(28),l=(i=s)&&i.__esModule?i:{default:i};var r=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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 i.label.innerHTML=o,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),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,l.default),n(t,[{key:"buildItem",value:function(e){var o=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return o.style.backgroundColor=e.getAttribute("value")||"",o}},{key:"selectItem",value:function(e,o){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,o);var i=this.label.querySelector(".ql-color-label"),n=e&&e.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=n:i.style.fill=n)}}]),t}();t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(28),s=(i=a)&&i.__esModule?i:{default:i};var l=function(e){function t(e,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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 i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=o[e.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),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,s.default),n(t,[{key:"selectItem",value:function(e,o){(function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,o),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}();t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}();var n=function(){function e(t,o){var i=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=o||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(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return i(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,o=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=o+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),n=this.root.getBoundingClientRect(),a=0;if(n.right>i.right&&(a=i.right-n.right,this.root.style.left=t+a+"px"),n.left<i.left&&(a=i.left-n.left,this.root.style.left=t+a+"px"),n.bottom>i.bottom){var s=n.bottom-n.top,l=e.bottom-e.top+s;this.root.style.top=o-l+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],i=!0,n=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){n=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(n)throw a}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},a=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=m(o(3)),l=m(o(8)),r=o(43),c=m(r),u=m(o(27)),p=o(15),d=m(o(41));function m(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 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 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"]],b=function(e){function t(e,o){f(this,t),null!=o.modules.toolbar&&null==o.modules.toolbar.container&&(o.modules.toolbar.container=v);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return i.quill.container.classList.add("ql-snow"),i}return g(t,c.default),a(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new _(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,o){e.handlers.link.call(e,!o.format.link)})}}]),t}();b.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 o=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(o)&&0!==o.indexOf("mailto:")&&(o="mailto:"+o),this.quill.theme.tooltip.edit("link",o)}else this.quill.format("link",!1)}}}}});var _=function(e){function t(e,o){f(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return i.preview=i.root.querySelector("a.ql-preview"),i}return g(t,r.BaseTooltip),a(t,[{key:"listen",value:function(){var e=this;n(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 o=e.linkRange;e.restoreFocus(),e.quill.formatText(o,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(t,o,n){if(null!=t){if(0===t.length&&n===l.default.sources.USER){var a=e.quill.scroll.descendant(u.default,t.index),s=i(a,2),r=s[0],c=s[1];if(null!=r){e.linkRange=new p.Range(t.index-c,r.length());var d=u.default.formats(r.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}();_.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=j(o(29)),n=o(36),a=o(38),s=o(64),l=j(o(65)),r=j(o(66)),c=o(67),u=j(c),p=o(37),d=o(26),m=o(39),f=o(40),h=j(o(56)),g=j(o(68)),v=j(o(27)),b=j(o(69)),_=j(o(70)),y=j(o(71)),w=j(o(72)),x=j(o(73)),k=o(13),C=j(k),$=j(o(74)),P=j(o(75)),S=j(o(57)),O=j(o(41)),T=j(o(28)),E=j(o(59)),D=j(o(60)),L=j(o(61)),A=j(o(108)),N=j(o(62));function j(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":n.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":n.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":f.SizeStyle},!0),i.default.register({"formats/align":n.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":m.FontClass,"formats/size":f.SizeClass,"formats/blockquote":l.default,"formats/code-block":C.default,"formats/header":r.default,"formats/list":u.default,"formats/bold":h.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":b.default,"formats/strike":_.default,"formats/underline":y.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":$.default,"modules/syntax":P.default,"modules/toolbar":S.default,"themes/bubble":A.default,"themes/snow":N.default,"ui/icons":O.default,"ui/picker":T.default,"ui/icon-picker":D.default,"ui/color-picker":E.default,"ui/tooltip":L.default},!0),t.default=i.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(0),l=(i=s)&&i.__esModule?i:{default:i};var r=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,l.default.Attributor.Class),n(t,[{key:"add",value:function(e,o){if("+1"===o||"-1"===o){var i=this.value(e)||0;o="+1"===o?i+1:i-1}return 0===o?(this.remove(e),!0):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,o)}},{key:"canAdd",value:function(e,o){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,o)||a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(o))}},{key:"value",value:function(e){return parseInt(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}())("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(4),a=(i=n)&&i.__esModule?i:{default:i};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();s.blotName="blockquote",s.tagName="blockquote",t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(4),s=(i=a)&&i.__esModule?i:{default:i};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),n(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}();l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},a=r(o(0)),s=r(o(4)),l=r(o(25));function r(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 p(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 c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,s.default),i(t,[{key:"format",value:function(e,o){e!==m.blotName||o?n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,o){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,o),this):(this.parent.unwrap(),n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,o))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:n(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}();d.blotName="list-item",d.tagName="LI";var m=function(e){function t(e){c(this,t);var o=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(t.target.parentNode===e){var i=o.statics.formats(e),n=a.default.find(t.target);"checked"===i?n.format("list","unchecked"):"unchecked"===i&&n.format("list","checked")}};return e.addEventListener("touchstart",i),e.addEventListener("mousedown",i),o}return p(t,l.default),i(t,null,[{key:"create",value:function(e){var o="ordered"===e?"OL":"UL",i=n(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,o);return"checked"!==e&&"unchecked"!==e||i.setAttribute("data-checked","checked"===e),i}},{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}}]),i(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,o=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e;var e,t,o}},{key:"insertBefore",value:function(e,o){if(e instanceof d)n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,o);else{var i=null==o?this.length():o.offset(this),a=this.split(i);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var o=this.next;null!=o&&o.prev===this&&o.statics.blotName===this.statics.blotName&&o.domNode.tagName===this.domNode.tagName&&o.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(o.moveChildren(this),o.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var o=a.default.create(this.statics.defaultChild);e.moveChildren(o),this.appendChild(o)}n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}();m.blotName="list",m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[d],t.ListItem=d,t.default=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(56),a=(i=n)&&i.__esModule?i:{default:i};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=o(6),s=(i=a)&&i.__esModule?i:{default:i};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),n(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):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}();l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(6),a=(i=n)&&i.__esModule?i:{default:i};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();s.blotName="strike",s.tagName="S",t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(6),a=(i=n)&&i.__esModule?i:{default:i};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();s.blotName="underline",s.tagName="U",t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(0),l=(i=s)&&i.__esModule?i:{default:i},r=o(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,l.default.Embed),n(t,[{key:"format",value:function(e,o){c.indexOf(e)>-1?o?this.domNode.setAttribute(e,o):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}],[{key:"create",value:function(e){var o=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&o.setAttribute("src",this.sanitize(e)),o}},{key:"formats",value:function(e){return c.reduce(function(t,o){return e.hasAttribute(o)&&(t[o]=e.getAttribute(o)),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,r.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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},s=o(4),l=o(27),r=(i=l)&&i.__esModule?i:{default:i};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),n(t,[{key:"format",value:function(e,o){c.indexOf(e)>-1?o?this.domNode.setAttribute(e,o):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,o)}}],[{key:"create",value:function(e){var o=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",!0),o.setAttribute("src",this.sanitize(e)),o}},{key:"formats",value:function(e){return c.reduce(function(t,o){return e.hasAttribute(o)&&(t[o]=e.getAttribute(o)),t},{})}},{key:"sanitize",value:function(e){return r.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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=l(o(35)),a=l(o(5)),s=l(o(9));function l(e){return e&&e.__esModule?e:{default:e}}function r(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 p=function(e){function t(){return r(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,n.default),i(t,null,[{key:"create",value:function(e){var o=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,o,{throwOnError:!1,errorColor:"#f00"}),o.setAttribute("data-value",e)),o}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}();p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var d=function(e){function t(){r(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),i(t,null,[{key:"register",value:function(){a.default.register(p,!0)}}]),t}();t.FormulaBlot=p,t.default=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),n=r(o(0)),a=r(o(5)),s=r(o(9)),l=r(o(13));function r(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 p(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 c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,l.default),i(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):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}();d.className="ql-syntax";var m=new n.default.Attributor.Class("token","hljs",{scope:n.default.Scope.INLINE}),f=function(e){function t(e,o){c(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));if("function"!=typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var n=null;return i.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(n),n=setTimeout(function(){i.highlight(),n=null},i.options.interval)}),i.highlight(),i}return p(t,s.default),i(t,null,[{key:"register",value:function(){a.default.register(m,!0),a.default.register(d,!0)}}]),i(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}();f.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=m,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,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function e(t,o,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,o);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,o,i)}if("value"in n)return n.value;var s=n.get;return void 0!==s?s.call(i):void 0},n=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),a=p(o(3)),s=p(o(8)),l=o(43),r=p(l),c=o(15),u=p(o(41));function p(e){return e&&e.__esModule?e:{default:e}}function d(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 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 h=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,o){d(this,t),null!=o.modules.toolbar&&null==o.modules.toolbar.container&&(o.modules.toolbar.container=h);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return i.quill.container.classList.add("ql-bubble"),i}return f(t,r.default),n(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,a.default)(!0,{},r.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,o){d(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o));return i.quill.on(s.default.events.EDITOR_CHANGE,function(e,t,o,n){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&n===s.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var a=i.quill.getLines(t.index,t.length);if(1===a.length)i.position(i.quill.getBounds(t));else{var l=a[a.length-1],r=i.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-r),p=i.quill.getBounds(new c.Range(r,u));i.position(p)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()}),i}return f(t,l.BaseTooltip),n(t,[{key:"listen",value:function(){var e=this;i(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 o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),n=this.root.querySelector(".ql-tooltip-arrow");if(n.style.marginLeft="",0===o)return o;n.style.marginLeft=-1*o-n.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,o){e.exports=o(63)}]).default},e.exports=o()}).call(t,o(798).Buffer)},798:function(e,t,o){"use strict";(function(e){var i=o(799),n=o(800),a=o(801);function s(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=r.prototype:(null===e&&(e=new r(t)),e.length=t),e}function r(e,t,o){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(e,t,o);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return c(this,e,t,o)}function c(e,t,o,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,o,i){if(t.byteLength,o<0||t.byteLength<o)throw new RangeError("'offset' is out of bounds");if(t.byteLength<o+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===o&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,o):new Uint8Array(t,o,i);r.TYPED_ARRAY_SUPPORT?(e=t).__proto__=r.prototype:e=d(e,t);return e}(e,t,o,i):"string"==typeof t?function(e,t,o){"string"==typeof o&&""!==o||(o="utf8");if(!r.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,o),n=(e=l(e,i)).write(t,o);n!==i&&(e=e.slice(0,n));return e}(e,t,o):function(e,t){if(r.isBuffer(t)){var o=0|m(t.length);return 0===(e=l(e,o)).length?e:(t.copy(e,0,0,o),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?l(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var i;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 p(e,t){if(u(t),e=l(e,t<0?0:0|m(t)),!r.TYPED_ARRAY_SUPPORT)for(var o=0;o<t;++o)e[o]=0;return e}function d(e,t){var o=t.length<0?0:0|m(t.length);e=l(e,o);for(var i=0;i<o;i+=1)e[i]=255&t[i];return e}function m(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(r.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 o=e.length;if(0===o)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return B(e).length;default:if(i)return z(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function g(e,t,o,i,n){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=n?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(n)return-1;o=e.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof t&&(t=r.from(t,i)),r.isBuffer(t))return 0===t.length?-1:v(e,t,o,i,n);if("number"==typeof t)return t&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):v(e,[t],o,i,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,o,i,n){var a,s=1,l=e.length,r=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,l/=2,r/=2,o/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var u=-1;for(a=o;a<l;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===r)return u*s}else-1!==u&&(a-=a-u),u=-1}else for(o+r>l&&(o=l-r),a=o;a>=0;a--){for(var p=!0,d=0;d<r;d++)if(c(e,a+d)!==c(t,d)){p=!1;break}if(p)return a}return-1}function b(e,t,o,i){o=Number(o)||0;var n=e.length-o;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var s=0;s<i;++s){var l=parseInt(t.substr(2*s,2),16);if(isNaN(l))return s;e[o+s]=l}return s}function _(e,t,o,i){return U(z(t,e.length-o),e,o,i)}function y(e,t,o,i){return U(function(e){for(var t=[],o=0;o<e.length;++o)t.push(255&e.charCodeAt(o));return t}(t),e,o,i)}function w(e,t,o,i){return y(e,t,o,i)}function x(e,t,o,i){return U(B(t),e,o,i)}function k(e,t,o,i){return U(function(e,t){for(var o,i,n,a=[],s=0;s<e.length&&!((t-=2)<0);++s)o=e.charCodeAt(s),i=o>>8,n=o%256,a.push(n),a.push(i);return a}(t,e.length-o),e,o,i)}function C(e,t,o){return 0===t&&o===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,o))}function $(e,t,o){o=Math.min(e.length,o);for(var i=[],n=t;n<o;){var a,s,l,r,c=e[n],u=null,p=c>239?4:c>223?3:c>191?2:1;if(n+p<=o)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[n+1]))&&(r=(31&c)<<6|63&a)>127&&(u=r);break;case 3:a=e[n+1],s=e[n+2],128==(192&a)&&128==(192&s)&&(r=(15&c)<<12|(63&a)<<6|63&s)>2047&&(r<55296||r>57343)&&(u=r);break;case 4:a=e[n+1],s=e[n+2],l=e[n+3],128==(192&a)&&128==(192&s)&&128==(192&l)&&(r=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&r<1114112&&(u=r)}null===u?(u=65533,p=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=p}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var o="",i=0;for(;i<t;)o+=String.fromCharCode.apply(String,e.slice(i,i+=P));return o}(i)}t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50,r.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(),r.poolSize=8192,r._augment=function(e){return e.__proto__=r.prototype,e},r.from=function(e,t,o){return c(null,e,t,o)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(e,t,o){return function(e,t,o,i){return u(t),t<=0?l(e,t):void 0!==o?"string"==typeof i?l(e,t).fill(o,i):l(e,t).fill(o):l(e,t)}(null,e,t,o)},r.allocUnsafe=function(e){return p(null,e)},r.allocUnsafeSlow=function(e){return p(null,e)},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var o=e.length,i=t.length,n=0,a=Math.min(o,i);n<a;++n)if(e[n]!==t[n]){o=e[n],i=t[n];break}return o<i?-1:i<o?1:0},r.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}},r.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var o;if(void 0===t)for(t=0,o=0;o<e.length;++o)t+=e[o].length;var i=r.allocUnsafe(t),n=0;for(o=0;o<e.length;++o){var s=e[o];if(!r.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,n),n+=s.length}return i},r.byteLength=f,r.prototype._isBuffer=!0,r.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)h(this,t,t+1);return this},r.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)h(this,t,t+3),h(this,t+1,t+2);return this},r.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)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},r.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?$(this,0,e):function(e,t,o){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,o);case"utf8":case"utf-8":return $(this,t,o);case"ascii":return S(this,t,o);case"latin1":case"binary":return O(this,t,o);case"base64":return C(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,o);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",o=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(e+=" ... ")),"<Buffer "+e+">"},r.prototype.compare=function(e,t,o,i,n){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||o>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=o)return 0;if(i>=n)return-1;if(t>=o)return 1;if(t>>>=0,o>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,s=o-t,l=Math.min(a,s),c=this.slice(i,n),u=e.slice(t,o),p=0;p<l;++p)if(c[p]!==u[p]){a=c[p],s=u[p];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(e,t,o){return-1!==this.indexOf(e,t,o)},r.prototype.indexOf=function(e,t,o){return g(this,e,t,o,!0)},r.prototype.lastIndexOf=function(e,t,o){return g(this,e,t,o,!1)},r.prototype.write=function(e,t,o,i){if(void 0===t)i="utf8",o=this.length,t=0;else if(void 0===o&&"string"==typeof t)i=t,o=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(o)?(o|=0,void 0===i&&(i="utf8")):(i=o,o=void 0)}var n=this.length-t;if((void 0===o||o>n)&&(o=n),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,o);case"utf8":case"utf-8":return _(this,e,t,o);case"ascii":return y(this,e,t,o);case"latin1":case"binary":return w(this,e,t,o);case"base64":return x(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,o);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function S(e,t,o){var i="";o=Math.min(e.length,o);for(var n=t;n<o;++n)i+=String.fromCharCode(127&e[n]);return i}function O(e,t,o){var i="";o=Math.min(e.length,o);for(var n=t;n<o;++n)i+=String.fromCharCode(e[n]);return i}function T(e,t,o){var i=e.length;(!t||t<0)&&(t=0),(!o||o<0||o>i)&&(o=i);for(var n="",a=t;a<o;++a)n+=I(e[a]);return n}function E(e,t,o){for(var i=e.slice(t,o),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function D(e,t,o){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>o)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,o,i,n,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(o+i>e.length)throw new RangeError("Index out of range")}function A(e,t,o,i){t<0&&(t=65535+t+1);for(var n=0,a=Math.min(e.length-o,2);n<a;++n)e[o+n]=(t&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function N(e,t,o,i){t<0&&(t=4294967295+t+1);for(var n=0,a=Math.min(e.length-o,4);n<a;++n)e[o+n]=t>>>8*(i?n:3-n)&255}function j(e,t,o,i,n,a){if(o+i>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function M(e,t,o,i,a){return a||j(e,0,o,4),n.write(e,t,o,i,23,4),o+4}function R(e,t,o,i,a){return a||j(e,0,o,8),n.write(e,t,o,i,52,8),o+8}r.prototype.slice=function(e,t){var o,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),r.TYPED_ARRAY_SUPPORT)(o=this.subarray(e,t)).__proto__=r.prototype;else{var n=t-e;o=new r(n,void 0);for(var a=0;a<n;++a)o[a]=this[a+e]}return o},r.prototype.readUIntLE=function(e,t,o){e|=0,t|=0,o||D(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},r.prototype.readUIntBE=function(e,t,o){e|=0,t|=0,o||D(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},r.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,o){e|=0,t|=0,o||D(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},r.prototype.readIntBE=function(e,t,o){e|=0,t|=0,o||D(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},r.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},r.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},r.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),n.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),n.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),n.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),n.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,o,i){(e=+e,t|=0,o|=0,i)||L(this,e,t,o,Math.pow(2,8*o)-1,0);var n=1,a=0;for(this[t]=255&e;++a<o&&(n*=256);)this[t+a]=e/n&255;return t+o},r.prototype.writeUIntBE=function(e,t,o,i){(e=+e,t|=0,o|=0,i)||L(this,e,t,o,Math.pow(2,8*o)-1,0);var n=o-1,a=1;for(this[t+n]=255&e;--n>=0&&(a*=256);)this[t+n]=e/a&255;return t+o},r.prototype.writeUInt8=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},r.prototype.writeUInt16BE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},r.prototype.writeUInt32LE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},r.prototype.writeUInt32BE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},r.prototype.writeIntLE=function(e,t,o,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*o-1);L(this,e,t,o,n-1,-n)}var a=0,s=1,l=0;for(this[t]=255&e;++a<o&&(s*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/s>>0)-l&255;return t+o},r.prototype.writeIntBE=function(e,t,o,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*o-1);L(this,e,t,o,n-1,-n)}var a=o-1,s=1,l=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/s>>0)-l&255;return t+o},r.prototype.writeInt8=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},r.prototype.writeInt16BE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},r.prototype.writeInt32LE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},r.prototype.writeInt32BE=function(e,t,o){return e=+e,t|=0,o||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},r.prototype.writeFloatLE=function(e,t,o){return M(this,e,t,!0,o)},r.prototype.writeFloatBE=function(e,t,o){return M(this,e,t,!1,o)},r.prototype.writeDoubleLE=function(e,t,o){return R(this,e,t,!0,o)},r.prototype.writeDoubleBE=function(e,t,o){return R(this,e,t,!1,o)},r.prototype.copy=function(e,t,o,i){if(o||(o=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<o&&(i=o),i===o)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-o&&(i=e.length-t+o);var n,a=i-o;if(this===e&&o<t&&t<i)for(n=a-1;n>=0;--n)e[n+t]=this[n+o];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(n=0;n<a;++n)e[n+t]=this[n+o];else Uint8Array.prototype.set.call(e,this.subarray(o,o+a),t);return a},r.prototype.fill=function(e,t,o,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,o=this.length):"string"==typeof o&&(i=o,o=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<o)throw new RangeError("Out of range index");if(o<=t)return this;var a;if(t>>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(a=t;a<o;++a)this[a]=e;else{var s=r.isBuffer(e)?e:z(new r(e,i).toString()),l=s.length;for(a=0;a<o-t;++a)this[a+t]=s[a%l]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function I(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var o;t=t||1/0;for(var i=e.length,n=null,a=[],s=0;s<i;++s){if((o=e.charCodeAt(s))>55295&&o<57344){if(!n){if(o>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=o;continue}if(o<56320){(t-=3)>-1&&a.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,o<128){if((t-=1)<0)break;a.push(o)}else if(o<2048){if((t-=2)<0)break;a.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;a.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return a}function B(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,o,i){for(var n=0;n<i&&!(n+o>=t.length||n>=e.length);++n)t[n+o]=e[n];return n}}).call(t,o(39))},799:function(e,t,o){"use strict";t.byteLength=function(e){var t=c(e),o=t[0],i=t[1];return 3*(o+i)/4-i},t.toByteArray=function(e){for(var t,o=c(e),i=o[0],s=o[1],l=new a(function(e,t,o){return 3*(t+o)/4-o}(0,i,s)),r=0,u=s>0?i-4:i,p=0;p<u;p+=4)t=n[e.charCodeAt(p)]<<18|n[e.charCodeAt(p+1)]<<12|n[e.charCodeAt(p+2)]<<6|n[e.charCodeAt(p+3)],l[r++]=t>>16&255,l[r++]=t>>8&255,l[r++]=255&t;2===s&&(t=n[e.charCodeAt(p)]<<2|n[e.charCodeAt(p+1)]>>4,l[r++]=255&t);1===s&&(t=n[e.charCodeAt(p)]<<10|n[e.charCodeAt(p+1)]<<4|n[e.charCodeAt(p+2)]>>2,l[r++]=t>>8&255,l[r++]=255&t);return l},t.fromByteArray=function(e){for(var t,o=e.length,n=o%3,a=[],s=0,l=o-n;s<l;s+=16383)a.push(u(e,s,s+16383>l?l:s+16383));1===n?(t=e[o-1],a.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[o-2]<<8)+e[o-1],a.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return a.join("")};for(var i=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,r=s.length;l<r;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function u(e,t,o){for(var n,a,s=[],l=t;l<o;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),s.push(i[(a=n)>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},800:function(e,t){t.read=function(e,t,o,i,n){var a,s,l=8*n-i-1,r=(1<<l)-1,c=r>>1,u=-7,p=o?n-1:0,d=o?-1:1,m=e[t+p];for(p+=d,a=m&(1<<-u)-1,m>>=-u,u+=l;u>0;a=256*a+e[t+p],p+=d,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=i;u>0;s=256*s+e[t+p],p+=d,u-=8);if(0===a)a=1-c;else{if(a===r)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,i),a-=c}return(m?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,o,i,n,a){var s,l,r,c=8*a-n-1,u=(1<<c)-1,p=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:a-1,f=i?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),(t+=s+p>=1?d/r:d*Math.pow(2,1-p))*r>=2&&(s++,r/=2),s+p>=u?(l=0,s=u):s+p>=1?(l=(t*r-1)*Math.pow(2,n),s+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,n),s=0));n>=8;e[o+m]=255&l,m+=f,l/=256,n-=8);for(s=s<<n|l,c+=n;c>0;e[o+m]=255&s,m+=f,s/=256,c-=8);e[o+m-f]|=128*h}},801:function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},802:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{"margin-bottom":"30px"}},[e.hasTranslation?o("div",[o("el-row",{staticStyle:{"margin-bottom":"5px"},attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.label+":")+"\n "),e.hasQuill?o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.content_mode_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})]):e._e()],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("div",{staticClass:"am-service-translate am-event-translate",staticStyle:{cursor:"pointer"},on:{click:e.showDialogTranslate}},[o("img",{staticClass:"am-dialog-translate-svg",attrs:{width:"16px",src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.translate)+"\n ")])])],1),e._v(" "),o("el-button-group",{staticStyle:{"margin-bottom":"5px"}},[o("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(" "),o("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):o("div",{staticStyle:{"margin-bottom":"5px"}},[o("el-row",{attrs:{type:"flex",align:"middle",gutter:24}},[o("el-col",{attrs:{span:12}},[e._v("\n "+e._s(e.label+":")+"\n "),e.hasQuill?o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$root.labels.content_mode_tooltip)},slot:"content"}),e._v(" "),o("i",{staticClass:"el-icon-question am-tooltip-icon"})]):e._e()],1),e._v(" "),e.hasQuill?o("el-col",{staticClass:"align-right",attrs:{span:12}},[o("el-button-group",[o("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(" "),o("el-button",{attrs:{size:"mini",type:e.isTextMode?"primary":"default"},on:{click:e.textModeChanged}},[e._v(e._s(e.$root.labels.html_mode))])],1)],1):e._e()],1)],1),e._v(" "),e.isTextMode?o("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"}}):o("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:[]}},803:function(e,t,o){var i=o(335)(o(984),o(985),!1,null,null,null);e.exports=i.exports},812:function(e,t,o){var i=o(335)(o(824),o(825),!1,null,null,null);e.exports=i.exports},816:function(e,t,o){var i=o(335)(o(826),o(827),!1,null,null,null);e.exports=i.exports},824:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"#picture-upload",props:{editedEntity:null,entityName:"",multiple:!1,disabled:!1},data:function(){return{pictureFullPath:"",pictureThumbPath:""}},mounted:function(){},methods:{openMediaModal:function(){if(!this.disabled){var e,t=this;e?e.open():((e=wp.media({title:"Select or Upload Profile Picture",button:{text:"Select picture"},multiple:this.multiple,library:{type:"image"}})).on("select",function(){var o=null;e.state().get("selection").forEach(function(e){o=e.toJSON(),t.pictureFullPath=o.url,t.pictureThumbPath=o.sizes.thumbnail?o.sizes.thumbnail.url:o.url,t.$emit("pictureSelected",t.pictureFullPath,t.pictureThumbPath)})}),e.open())}}},computed:{getPictureSrc:function(){return null!==this.editedEntity&&!this.pictureThumbPath&&this.editedEntity.pictureThumbPath?this.editedEntity.pictureThumbPath:this.pictureThumbPath&&"gallery"!==this.entityName?this.pictureThumbPath:this.$root.getUrl+"public/img/default-"+this.entityName+".svg"}}}},825:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-profile-photo",on:{click:e.openMediaModal}},[o("i",{class:{"el-icon-plus":"gallery"===e.entityName,"el-icon-picture":"gallery"!==e.entityName}}),e._v(" "),"gallery"===e.entityName?o("span",[e._v(e._s(e.$root.labels.add_image))]):e._e(),e._v(" "),"gallery"!==e.entityName?o("img",{attrs:{src:e.getPictureSrc,alt:""}}):e._e()])},staticRenderFns:[]}},826:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(772),n=o.n(i);t.default={name:"DialogTranslate",props:{passedTranslations:null,name:"",allLanguagesData:null,usedLanguages:null,type:{required:!1,default:"name",type:String},tab:"",cfOptions:{required:!1,default:function(){return[]},type:Array},eventTickets:{required:!1,default:function(){return[]},type:Array},hasQuill:!0},data:function(){return{translations:null,oldTranslations:null,newTranslations:[],settings:null,newLanguages:[],languageWidth:12,options:[],tickets:[],allLanguagesKeys:[]}},mounted:function(){var e=this;this.translations=this.passedTranslations?JSON.parse(this.passedTranslations):{},this.oldTranslations=this.translations[this.type]?this.translations[this.type]:{},(this.oldTranslations?this.usedLanguages.filter(function(t){return!Object.keys(e.oldTranslations).includes(t)}):this.usedLanguages).forEach(function(t){e.oldTranslations[t]=""}),_.isEmpty(this.oldTranslations)&&this.addLanguage(),this.oldTranslations=JSON.parse(JSON.stringify(this.oldTranslations)),"description"!==this.type&&"cf"!==this.tab&&"tickets"!==this.tab&&"url"!==this.type||(this.languageWidth=24);var t=JSON.parse(JSON.stringify(this.cfOptions));t.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.options=t;var o=JSON.parse(JSON.stringify(this.eventTickets));o.forEach(function(t){t.translations?t.translations=JSON.parse(t.translations):t.translations={},e.usedLanguages.forEach(function(e){t.translations[e]||(t.translations[e]="")})}),this.tickets=o,this.allLanguagesKeys=Object.keys(this.allLanguagesData)},computed:{dialogStyle:function(){return"cf"!==this.tab&&"tickets"!==this.tab&&"category"!==this.tab&&"roles"!==this.tab?"margin-bottom: 0":""}},methods:{saveDialog:function(){var e=this;this.newTranslations.forEach(function(t){t.lan&&(e.usedLanguages.includes(t.lan)||e.newLanguages.push(t.lan),e.oldTranslations[t.lan]=t.value)}),this.translations[this.type]=this.oldTranslations,this.options.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),this.tickets.forEach(function(e){e.edited=!0,e.translations=JSON.stringify(e.translations)}),this.$emit("saveDialogTranslate",JSON.stringify(this.translations),this.newLanguages,this.tab,this.options,this.tickets)},closeDialog:function(){this.$emit("closeDialogTranslate")},addLanguage:function(){this.newTranslations.push({lan:"",value:""})},getLanguageLabel:function(e,t){return!t||"name"!==this.type&&"firstName"!==this.type&&"lastName"!==this.type||"cf"===this.tab||"tickets"===this.tab?this.allLanguagesData[e].name:this.allLanguagesData[e].name.substring(0,21)},getLanguageFlag:function(e){return e&&this.allLanguagesData[e]&&this.allLanguagesData[e].country_code?this.$root.getUrl+"public/img/flags/"+this.allLanguagesData[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"},goBack:function(){"cf"===this.tab||"tickets"===this.tab||"category"===this.tab?this.closeDialog():this.saveDialog()},getHeaderTitle:function(){return"cf"===this.tab?this.$root.labels.translate+" "+this.$root.labels.custom_field:"tickets"===this.tab?this.$root.labels.translate+" "+this.$root.labels.event_tickets:"description"===this.type?this.$root.labels.translate+" "+this.$root.labels.description:"url"===this.type?this.$root.labels.url:this.$root.labels.translate+" "+this.name}},components:{ContentBlock:n.a}}},827:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-dialog-translate"},[o("div",{staticClass:"am-dialog-scrollable",style:e.dialogStyle},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:16}},[o("img",{staticClass:"am-dialog-translate-svg-back",attrs:{src:e.$root.getUrl+"public/img/arrow-back.svg"},on:{click:e.goBack}}),e._v(" "),o("h2",[e._v(e._s(e.getHeaderTitle()))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:8}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),o("BlockLite"),e._v(" "),e._l(e.oldTranslations,function(t,i){return o("div",{key:i,class:{"am-lite-container-disabled":e.$root.isLite}},[e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("el-row",{attrs:{gutter:28,type:"flex"}},[o("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:e.languageWidth,sm:e.languageWidth}},[o("div",{staticClass:"used-language"},[o("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(i)}}),e._v("\n "+e._s(e.getLanguageLabel(i,!0))+"\n ")])]),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():o("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:8,sm:14}},[o("el-input",{attrs:{type:"text",placeholder:e.$root.labels.translation},model:{value:e.oldTranslations[i],callback:function(t){e.$set(e.oldTranslations,i,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"description"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("el-row",{staticClass:"am-dialog-translate-description",staticStyle:{"margin-bottom":"8px"},attrs:{gutter:24,type:"flex"}},[o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[o("content-block",{attrs:{label:e.$root.labels.description,entity:e.oldTranslations,property:i,textProperty:i,htmlProperty:i+"Html",hasTranslation:!1,hasQuill:e.hasQuill,textModeProp:!0,allowImage:!1}})],1)],1):e._e(),e._v(" "),"url"===e.type&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:24}},[o("el-input",{attrs:{value:t},model:{value:e.oldTranslations[i],callback:function(t){e.$set(e.oldTranslations,i,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:26,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(e.name))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[o("el-input",{attrs:{value:t,type:"text",placeholder:" "},model:{value:e.oldTranslations[i],callback:function(t){e.$set(e.oldTranslations,i,t)},expression:"oldTranslations[key]"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,n){return e.cfOptions.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("div",[o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(n))])]),e._v(" "),o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(t.label))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[o("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[i],callback:function(o){e.$set(t.translations,i,o)},expression:"option['translations'][key]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length&&e.usedLanguages&&-1!==e.usedLanguages.indexOf(i)?o("div",[o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(t.name))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[o("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[i],callback:function(o){e.$set(t.translations,i,o)},expression:"item['translations'][key]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),e._l(e.newTranslations,function(t,i){return o("div",{key:i,class:{"am-lite-container-disabled":e.$root.isLite}},[o("el-row",{staticStyle:{"margin-right":"-15px"},attrs:{gutter:28,type:"flex"}},[o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:e.languageWidth}},[o("el-select",{attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:"",disabled:e.$root.isLite},model:{value:e.newTranslations[i].lan,callback:function(t){e.$set(e.newTranslations[i],"lan",t)},expression:"newTranslations[index].lan"}},[o("template",{slot:"prefix"},[o("img",{staticClass:"am-dialog-translate-flag-selected",attrs:{src:e.getLanguageFlag(e.newTranslations[i].lan)}})]),e._v(" "),e._l(e.allLanguagesKeys,function(t,i){return o("el-option",{key:i,attrs:{label:e.getLanguageLabel(t,!1),value:t,disabled:t in e.oldTranslations}},[o("span",[o("img",{staticClass:"am-dialog-translate-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t,!1))+"\n ")])])})],2)],1),e._v(" "),"name"!==e.type&&"firstName"!==e.type&&"lastName"!==e.type||"cf"===e.tab||"tickets"===e.tab?e._e():o("el-col",{staticStyle:{"padding-right":"0"},attrs:{xs:14,sm:18}},[o("el-input",{attrs:{type:"text",name:t.name,placeholder:e.$root.labels.translation},model:{value:e.newTranslations[i].value,callback:function(t){e.$set(e.newTranslations[i],"value",t)},expression:"newTranslations[index].value"}})],1)],1),e._v(" "),"description"===e.type?o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{sm:24}},[o("el-input",{attrs:{value:t,type:"textarea",autosize:{minRows:4,maxRows:6}},model:{value:e.newTranslations[i].value,callback:function(t){e.$set(e.newTranslations[i],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"url"===e.type?o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{sm:24}},[o("el-input",{attrs:{value:t},model:{value:e.newTranslations[i].value,callback:function(t){e.$set(e.newTranslations[i],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),"cf"===e.tab?o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:20,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf"},[e._v(" "+e._s(e.$root.labels.label_name)+" ")])]),e._v(" "),o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(e.name))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[o("el-input",{attrs:{type:"text",name:t.name},model:{value:e.newTranslations[i].value,callback:function(t){e.$set(e.newTranslations[i],"value",t)},expression:"newTranslations[index].value"}})],1)],1):e._e(),e._v(" "),e._l(e.options,function(t,n){return e.cfOptions.length?o("div",[o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf"},[e._v(" #"+e._s(n))])]),e._v(" "),o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(t.label))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:14}},[o("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[i].lan],callback:function(o){e.$set(t.translations,e.newTranslations[i].lan,o)},expression:"option['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()}),e._v(" "),e._l(e.tickets,function(t){return e.eventTickets.length?o("div",[o("el-row",{staticClass:"am-dialog-translate-description",attrs:{gutter:24,type:"flex"}},[o("el-col",{attrs:{sm:5}},[o("div",{staticClass:"am-dialog-translate-cf-label"},[o("i",[e._v(e._s(t.name))])])]),e._v(" "),o("el-col",{staticStyle:{"padding-right":"0"},attrs:{sm:19}},[o("el-input",{attrs:{type:"text",placeholder:" "},model:{value:t.translations[e.newTranslations[i].lan],callback:function(o){e.$set(t.translations,e.newTranslations[i].lan,o)},expression:"item['translations'][newTranslations[index].lan]"}})],1)],1)],1):e._e()})],2)}),e._v(" "),"provider"!==e.$root.settings.role?o("div",{class:{"am-lite-container-disabled":e.$root.isLite}},[o("img",{staticClass:"am-dialog-translate-svg-plus",attrs:{src:e.$root.getUrl+"public/img/plus-circle.svg"},on:{click:function(t){!e.$root.isLite&&e.addLanguage}}}),e._v(" "),o("div",{staticClass:"add-language",on:{click:function(t){!e.$root.isLite&&e.addLanguage}}},[e._v(e._s(e.$root.labels.add_language))])]):e._e()],2),e._v(" "),"category"===e.tab||"cf"===e.tab||"tickets"===e.tab||"roles"===e.tab?o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:e.saveDialog}},[e._v(e._s(e.$root.labels.save))])],1)],1)],1)]):e._e()])},staticRenderFns:[]}},961:function(e,t,o){var i=o(335)(o(990),o(991),!1,null,null,null);e.exports=i.exports},962:function(e,t,o){"use strict";t.a={data:function(){return{bookingAppointmentStatuses:[{value:"pending",label:this.$root.labels.pending},{value:"approved",label:this.$root.labels.approved},{value:"canceled",label:this.$root.labels.canceled},{value:"rejected",label:this.$root.labels.rejected}],bookingEventStatuses:[{value:"approved",label:this.$root.labels.approved},{value:"canceled",label:this.$root.labels.canceled}],bookingPackageStatuses:[{value:"approved",label:this.$root.labels.customer_package_purchased},{value:"canceled",label:this.$root.labels.canceled}],paymentStatuses:[{value:"pending",label:this.$root.labels.pending},{value:"paid",label:this.$root.labels.paid}],orderStatuses:[{value:"pending",label:this.$root.labels.wc_status_pending},{value:"on-hold",label:this.$root.labels.wc_status_on_hold},{value:"processing",label:this.$root.labels.wc_status_processing},{value:"completed",label:this.$root.labels.wc_status_completed},{value:"refunded",label:this.$root.labels.wc_status_refunded},{value:"cancelled",label:this.$root.labels.wc_status_cancelled},{value:"failed",label:this.$root.labels.wc_status_failed}],bookableTypes:[{value:"appointment",label:this.$root.labels.appointment},{value:"package",label:this.$root.labels.package},{value:"event",label:this.$root.labels.event}]}},methods:{getBookingStatusLabel:function(e,t){var o="";switch(t){case"appointment":o=this.bookingAppointmentStatuses.find(function(t){return t.value===e});break;case"event":o=this.bookingEventStatuses.find(function(t){return t.value===e});break;case"package":o=this.bookingPackageStatuses.find(function(t){return t.value===e})}return o&&void 0!==o?o.label:""},getPaymentStatusLabel:function(e){var t=this.paymentStatuses.find(function(t){return t.value===e});return void 0!==t?t.label:""},getOrderStatusLabel:function(e){var t=this.orderStatuses.find(function(t){return t.value===e});return void 0!==t?t.label:""}}}},975:function(e,t,o){var i=o(335)(o(976),o(977),!1,null,null,null);e.exports=i.exports},976:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(699),n=o(701),a=o(769);o.n(a);t.default={mixins:[i.a,n.a],name:"CustomDuration",props:{service:{},enabledDelete:!0,enabledAdd:!0,enabledDuration:!0},data:function(){return{}},methods:{getPossibleCustomDurations:function(e){var t=this.getPossibleDurationsInSeconds(this.service.duration,86400);return e&&-1===t.indexOf(e)&&(t.push(e),t.sort(function(e,t){return e-t})),t},setCustomDurations:function(e){""===e&&this.service.customPricing.durations.push({duration:"",price:0,rules:[]})},isDurationSelected:function(e){return this.service.customPricing.durations.filter(function(t){return parseInt(t.duration)===parseInt(e)}).length>0||e===this.service.duration},addDurationBtnDisabled:function(){return this.service.customPricing.durations.filter(function(e){return!e.duration}).length>0},addDuration:function(){this.setCustomDurations("")},deleteCustomDuration:function(e){this.service.customPricing.durations.splice(e,1),this.service.customPricing.durations.length||(this.service.customPricing.enabled=!1)}},mounted:function(){this.service.customPricing.durations.length||this.addDuration(),this.service.customPricing.durations=this.service.customPricing.durations.sort(function(e,t){return!e.duration||e.duration-t.duration})},components:{Money:a.Money}}},977:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-service-custom-duration"},[o("div",[o("el-row",{staticClass:"zero-margin-bottom",attrs:{gutter:24}},[o("el-col",{attrs:{span:10}},[o("span",[e._v(e._s(e.$root.labels.duration+":"))])]),e._v(" "),o("el-col",{attrs:{span:10}},[o("span",[e._v(e._s(e.$root.labels.price+":"))])]),e._v(" "),o("el-col",{attrs:{span:4}})],1),e._v(" "),e._l(e.service.customPricing.durations,function(t,i){return o("el-row",{key:i,staticClass:"small-margin-bottom am-service-custom-duration-item",attrs:{gutter:24,type:"flex"}},[o("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:10}},[o("el-select",{attrs:{placeholder:"",disabled:!e.enabledDuration},on:{change:e.setCustomDurations},model:{value:t.duration,callback:function(o){e.$set(t,"duration",o)},expression:"item.duration"}},e._l(e.getPossibleCustomDurations(t.duration),function(t){return o("el-option",{key:t,attrs:{label:e.secondsToNiceDuration(t),disabled:e.isDurationSelected(t),value:t}})}),1)],1),e._v(" "),o("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:10}},[o("money",e._b({staticClass:"el-input el-input__inner",model:{value:t.price,callback:function(o){e.$set(t,"price",o)},expression:"item.price"}},"money",e.moneyComponentData,!1))],1),e._v(" "),o("el-col",{staticStyle:{"margin-bottom":"7px"},attrs:{span:4}},[e.enabledDelete?o("span",{on:{click:function(t){return e.deleteCustomDuration(i)}}},[o("img",{staticClass:"svg-amelia",attrs:{width:"16px",src:e.$root.getUrl+"public/img/delete.svg"}})]):e._e()])],1)}),e._v(" "),e.enabledAdd?o("el-row",{attrs:{gutter:24}},[o("el-col",[o("el-button",{staticClass:"am-dialog-create",attrs:{disabled:e.addDurationBtnDisabled(),size:"large",type:"primary"},on:{click:function(t){return e.addDuration()}}},[o("span",{staticClass:"button-text"},[e._v(e._s(e.$root.labels.add_duration))])])],1)],1):e._e()],2)])},staticRenderFns:[]}},982:function(e,t,o){var i=o(335)(o(983),o(986),!1,null,null,null);e.exports=i.exports},983:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(747),n=o(700),a=o(780),s=o(699),l=o(803),r=o.n(l),c=o(771),u=(o.n(c),o(772)),p=o.n(u);t.default={mixins:[i.a,a.a,s.a,n.a],props:{selectedLanguage:null,selectedLanguageHtml:null,languagesData:{default:function(){},type:Object},excludedPlaceholders:{default:function(){return[]}},placeholdersNames:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},entity:{default:"appointment",type:String},type:{default:"email",type:String},customFields:{default:[]},appointmentsSettings:null,userTypeTab:null,name:null,nameHtml:null},data:function(){return{loadingButton:!1}},mounted:function(){this.removePlaceholder("appointmentPlaceholders","%recurring_appointments_details%"),this.removePlaceholder("appointmentPlaceholders","%package_appointments_details%"),this.removePlaceholder("appointmentPlaceholders","%group_appointment_details%"),this.removePlaceholder("appointmentPlaceholders","%group_event_details%"),this.appointmentsSettings[this.name+"Html"]=this.appointmentsSettings[this.name],this.selectedLanguage&&(this.appointmentsSettings.translations[this.name+"Html"]=this.appointmentsSettings.translations[this.name])},methods:{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"},saveSettings:function(){var e=this;delete this.appointmentsSettings[this.name+"Html"],this.selectedLanguage&&delete this.appointmentsSettings.translations[this.name+"Html"],this.loadingButton=!0;var t=this.name+("sms"===this.type?"Sms":"");this.selectedLanguage&&Object.keys(this.appointmentsSettings.translations[t]).forEach(function(o){e.appointmentsSettings.translations[t][o].trim||delete e.appointmentsSettings.translations[t][o]}),this.$http.post(this.$root.getAjaxUrl+"/settings",{appointments:this.appointmentsSettings}).then(function(t){e.loadingButton=!1,e.$root.settings.appointments=t.data.data.settings.appointments,e.$emit("closeDialogCombinedPlaceholder",t.data.data.settings.appointments),e.notify(e.$root.labels.success,e.$root.labels.settings_saved,"success")}).catch(function(t){e.loadingButton=!1,e.notify(e.$root.labels.error,t.message,"error")})},closeDialog:function(){this.$emit("closeDialogCombinedPlaceholder")}},computed:{},components:{quillEditor:c.quillEditor,ContentBlock:p.a,InlinePlaceholders:r.a}}},984:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(747),n=o(699);t.default={mixins:[i.a,n.a],props:{placeholdersNames:{default:function(){return[]}},excludedPlaceholders:{default:function(){return[]}},categories:{default:function(){return[]}},coupons:{default:function(){return[]}},customFields:{default:function(){return[]}},userTypeTab:null,noHtml:!1},data:function(){return{}},mounted:function(){this.setPlaceholders(this.excludedPlaceholders)},methods:{},computed:{},watch:{excludedPlaceholders:function(){this.setPlaceholders(this.excludedPlaceholders)}}}},985:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-row",{staticClass:"am-notifications-placeholders"},[o("el-col",{attrs:{sm:24}},[o("div",{staticClass:"am-placeholder-wrapper"},e._l(e.placeholdersNames,function(t,i){return t in e.groupedPlaceholders&&e.groupedPlaceholders[t].length?o("el-dropdown",{key:i,staticClass:"am-placeholder-wrapper__dropdown"},[o("el-button",{staticClass:"am-placeholder-wrapper__button",attrs:{size:"small"}},[e._v("\n "+e._s(e.$root.labels[t])),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{class:{"amelia-dropdown":e.groupedPlaceholders[t].length>20},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.groupedPlaceholders[t],function(i,n){return t in e.excludedPlaceholders&&-1!==e.excludedPlaceholders[t].indexOf(i.value)?e._e():o("el-dropdown-item",{key:n,attrs:{disabled:e.isDisabledInLite(i.value)}},[o("el-tooltip",{key:i.code,attrs:{effect:"dark",content:i.label,placement:"left"}},[o("p",{on:{click:function(t){e.copyCodeText("parse"in i&&!e.noHtml?e.getParsedCodeLabel(i):i.value)}}},[e._v("\n "+e._s(i.value)+"\n ")])])],1)}),1)],1):e._e()}),1)])],1)],1)},staticRenderFns:[]}},986:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"am-dialog-scrollable"},[o("div",{staticClass:"am-dialog-header"},[o("el-row",[o("el-col",{attrs:{span:14}},[o("h2",[e._v(e._s(e.$root.labels.configure_placeholder))])]),e._v(" "),o("el-col",{staticClass:"align-right",attrs:{span:10}},[o("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:e.closeDialog}})],1)],1)],1),e._v(" "),"customer"===e.userTypeTab&&e.selectedLanguage?o("div",{staticClass:"align-right"},[o("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(e.selectedLanguage)}})]):e._e(),e._v(" "),"package"===e.entity?o("div",[o("p",[o("strong",[e._v(e._s(e.$root.labels.ph_package_details_setup))])])]):e._e(),e._v(" "),"appointment"===e.entity?o("div",[o("p",[o("strong",[e._v(e._s(e.$root.labels.ph_recurring_details_setup))])])]):e._e(),e._v(" "),"group"===e.entity?o("div",["groupAppointmentPlaceholder"===e.name?o("p",[o("strong",[e._v(e._s(e.$root.labels.ph_group_appointment_setup))])]):e._e(),e._v(" "),"groupEventPlaceholder"===e.name?o("p",[o("strong",[e._v(e._s(e.$root.labels.ph_group_event_setup))])]):e._e()]):e._e(),e._v(" "),e.selectedLanguage?o("div",["email"===e.type?o("content-block",{attrs:{label:e.$root.labels.message_colon.replace(":",""),entity:e.appointmentsSettings.translations[e.name],textProperty:e.selectedLanguage,htmlProperty:e.selectedLanguage+"Html",hasTranslation:!1,hasQuill:!0,textModeProp:!0,allowImage:!1},on:{changeQuillContent:e.parseQuillEditorContent}}):e._e(),e._v(" "),"sms"===e.type||"whatsapp"===e.type?o("el-input",{attrs:{type:"textarea",rows:7,placeholder:""},model:{value:e.appointmentsSettings.translations[e.name+"Sms"][e.selectedLanguage],callback:function(t){e.$set(e.appointmentsSettings.translations[e.name+"Sms"],e.selectedLanguage,t)},expression:"appointmentsSettings['translations'][name + 'Sms'][selectedLanguage]"}}):e._e()],1):o("div",["email"===e.type?o("content-block",{attrs:{label:e.$root.labels.message_colon.replace(":",""),entity:e.appointmentsSettings,textProperty:e.name,htmlProperty:e.nameHtml,hasTranslation:!1,hasQuill:!0,textModeProp:!0,allowImage:!1},on:{changeQuillContent:e.parseQuillEditorContent}}):e._e(),e._v(" "),"sms"===e.type||"whatsapp"===e.type?o("el-input",{attrs:{type:"textarea",rows:7,placeholder:""},model:{value:e.appointmentsSettings[e.name+"Sms"],callback:function(t){e.$set(e.appointmentsSettings,e.name+"Sms",t)},expression:"appointmentsSettings[name + 'Sms']"}}):e._e()],1),e._v(" "),o("inline-placeholders",{attrs:{placeholdersNames:e.placeholdersNames,excludedPlaceholders:e.excludedPlaceholders,categories:e.categories,customFields:e.customFields,userTypeTab:e.userTypeTab}}),e._v(" "),"package"===e.entity?o("div",[o("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %package_appointments_details%")])]):e._e(),e._v(" "),"appointment"===e.entity?o("div",[o("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %recurring_appointments_details%")]),e._v(" "),o("el-alert",{attrs:{type:"warning","show-icon":"",title:"",description:e.$root.labels.recurring_ph_warning,closable:!1}})],1):e._e(),e._v(" "),"group"===e.entity?o("div",["groupAppointmentPlaceholder"===e.name?o("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %group_appointment_details%")]):e._e(),e._v(" "),"groupEventPlaceholder"===e.name?o("p",[e._v(e._s(e.$root.labels.use_placeholder)+" %group_event_details%")]):e._e()]):e._e(),e._v(" "),"whatsapp"===e.type?o("el-alert",{staticStyle:{"margin-top":"20px"},attrs:{type:"info","show-icon":"",title:"",description:e.$root.labels.whatsapp_notice_ph,closable:!1}}):e._e()],1),e._v(" "),o("div",{staticClass:"am-dialog-footer"},[o("div",{staticClass:"am-dialog-footer-actions"},[o("el-row",[o("el-col",{staticClass:"align-right",attrs:{sm:24}},[o("el-button",{attrs:{type:""},on:{click:e.closeDialog}},[e._v(e._s(e.$root.labels.cancel))]),e._v(" "),o("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary",loading:e.loadingButton},on:{click:e.saveSettings}},[e._v("\n "+e._s(e.$root.labels.save)+"\n ")])],1)],1)],1)])])},staticRenderFns:[]}},990:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{callbackDialog:""},data:function(){return{selectedLanguage:null}},methods:{languageChanged:function(){this.$emit("languageChanged",this.selectedLanguage)},getLanguageLabel:function(e){return this.$root.languages[e]?this.$root.languages[e].name:""},getLanguageFlag:function(e){return e&&this.$root.languages[e]&&this.$root.languages[e].country_code?this.$root.getUrl+"public/img/flags/"+this.$root.languages[e].country_code+".png":this.$root.getUrl+"public/img/grey.svg"}}}},991:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-select-translate"},[o("el-select",{staticClass:"select-languages",attrs:{placeholder:e.$root.labels.language,clearable:"",filterable:"",disabled:e.$root.isLite},on:{change:e.languageChanged},model:{value:e.selectedLanguage,callback:function(t){e.selectedLanguage=t},expression:"selectedLanguage"}},[e.callbackDialog?o("li",{staticClass:"el-select-dropdown__item"},[o("span",[o("img",{staticClass:"option-languages-flag",attrs:{src:e.$root.getUrl+"public/img/translate.svg"}}),e._v("\n "+e._s(e.$root.labels.manage_languages)+"\n ")])]):e._e(),e._v(" "),e.callbackDialog&&e.$root.settings.general.usedLanguages.length>0?o("hr"):e._e(),e._v(" "),o("template",{slot:"prefix"},[o("img",{staticClass:"select-languages-flag",attrs:{src:e.getLanguageFlag(e.selectedLanguage)}})]),e._v(" "),e._l(e.$root.settings.general.usedLanguages,function(t,i){return o("el-option",{key:i,attrs:{label:e.getLanguageLabel(t),value:t}},[o("span",[o("img",{staticClass:"option-languages-flag",attrs:{src:e.getLanguageFlag(t)}}),e._v("\n "+e._s(e.getLanguageLabel(t))+"\n ")])])})],2)],1)},staticRenderFns:[]}}});
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings