FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
public
/
js
/
chunks
Edit File: amelia-booking-catalog-0d421e0e1e2bdd88e543.js
wpJsonpAmeliaBookingPlugin([4,6,7,8,9],{1036:function(e,t,o){var i=o(90)(o(989),o(990),!1,null,null,null);e.exports=i.exports},1551:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(667),a=o(654),n=o(1036),s=o.n(n),r=o(659),l=o(703),c=o(655),d=o(632);t.default={name:"catalogForm",mixins:[l.a,a.a,r.a,c.a,i.a],data:function(){return{empty:!1,categoryId:"",marketing:{service:null,employee:null,location:null,category:null,package:null,payment:null},fetchedCatalog:!1,responseEntities:{taxes:[],categories:[],employees:[],locations:[],services:[]},options:{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{employees:[],locations:[]}},showCatalog:!0,showCategory:!1,columnsLg:6,forms:{},formColors:{},formLabels:{},formParts:{}}},created:function(){this.forms=this.getTranslatedForms("catalogForm"),this.$root.settings.customization.forms?this.formColors=this.$root.settings.customization.useGlobalColors[this.$options.name]?this.$root.settings.customization.globalColors:this.forms.catalogForm.catalogListForm.globalSettings:this.formColors=this.defaultFormsData.catalogForm.catalogListForm.globalSettings,this.formLabels=this.$root.settings.customization.forms?this.forms.catalogForm.catalogListForm.labels:this.defaultFormsData.catalogForm.catalogListForm.labels,this.formParts=this.$root.settings.customization.forms?this.forms.catalogForm.catalogListForm.parts:this.defaultFormsData.catalogForm.catalogListForm.parts,window.addEventListener("resize",this.handleResize)},mounted:function(){this.setCacheData("amelia-app-booking"+this.$root.shortcodeData.counter,!1),this.inlineCatalogSVG();var e=this;this.fetchEntities(function(t){t&&e.fetchedEntities(t)},{types:["locations","employees","categories","custom_fields","packages","taxes"],isFrontEnd:!0,isPanel:!1}),"beforeCatalogLoaded"in window&&window.beforeCatalogLoaded()},updated:function(){this.handleResize()},methods:{cacheDataProcessing:function(){this.loadingCacheBookingData&&(this.categoryId=this.cacheData.request.passedCategoryId,this.selectCategory(this.categoryId),this.loadingCacheCatalogData=!1)},fetchedEntities:function(){0!==this.options.entities.services.length&&0!==this.options.entities.employees.length||(this.empty=!0),this.fetchedCatalog=!0,this.cacheDataProcessing()},getInvisibleServicesCount:function(e){var t=this.getServicesForCategory(e);return t.length>3?t.length-3:""},selectCategory:function(e){var t=this;this.$nextTick(function(){t.$refs&&t.$refs.catalogContainer&&t.$refs.catalogContainer.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),this.categoryId=e,this.showCatalog=!1,this.showCategory=!0,"afterSelectCatalogCategory"in window&&window.afterSelectCatalogCategory(this.passCategory()),d.a.hasAmeliaTracking(this.$root.marketing,this.categoryId)&&(this.marketing.category=this.getCategoryById(this.categoryId),d.a.trackAmeliaData(this,this.$root.marketing,"appointment","SelectCategory"))},showAllCategories:function(){this.categoryId="",this.showCatalog=!0,this.showCategory=!1},showCategoryInCatalog:function(e){for(var t=!1,o=0;o<e.serviceList.length&&!0!==t;o++)t=this.getServiceProviders(e.serviceList[o].id).length>0;return e.serviceList.length>0&&t},getServicesForCategory:function(e){return this.options.entities.services.filter(function(t){return t.categoryId===e.id})},passCategory:function(){var e=this,t=Object.assign({},this.options.entities.categories.find(function(t){return t.id===e.categoryId}));return t.serviceList=this.getServicesForCategory(t),t},handleResize:function(){document.getElementById("amelia-app-booking"+this.$root.shortcodeData.counter).offsetWidth<670&&(this.columnsLg=12)},inlineCatalogSVG:function(){o(662).init({svgSelector:"img.svg-catalog",initClass:"js-inlinesvg"})}},components:{Category:s.a}}},1552:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"catalogContainer",staticClass:"am-wrap",attrs:{id:"amelia-booking-wrap"}},[e.empty?o("div",{staticClass:"am-no-services"},[o("img",{staticStyle:{"margin-top":"10px"},attrs:{src:e.$root.getUrl+"public/img/am-empty-booking.svg"}}),e._v(" "),o("h1",[e._v(e._s(e.$root.labels.oops))]),e._v(" "),o("h3",[e._v(e._s(e.$root.labels.no_services_employees))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.add_services_employees))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/services-and-categories/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_services_url)+"\n ")]),e._v(" "),o("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(e.$root.labels.and))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/employees/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_employees_url)+"\n ")])]):o("div",{attrs:{id:"am-catalog"}},[o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetchedCatalog&&e.showCatalog&&!e.loadingCacheCatalogData,expression:"fetchedCatalog && showCatalog && !loadingCacheCatalogData"}]},[e.formLabels.categories.visibility?o("div",{staticClass:"am-catalog-headline"},[o("h3",{style:{color:e.formColors.formTextColor,fontWeight:500}},[e._v("\n "+e._s(e.formLabels.categories.value||e.$root.labels.categories)+"\n ")])]):e._e(),e._v(" "),o("el-row",{attrs:{gutter:24}},e._l(e.options.entities.categories,function(t){return e.showCategoryInCatalog(t)&&e.getServicesForCategory(t).length>0?o("el-col",{key:t.id,attrs:{lg:e.columnsLg,md:12,sm:12}},[o("div",{staticClass:"am-category",style:{backgroundColor:e.formColors.formBackgroundColor},on:{click:function(o){return e.selectCategory(t.id)}}},[o("div",{staticClass:"am-category-title",style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),e.formLabels.services_lower.visibility?o("span",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s((e.formLabels.services_lower.value||e.capitalizeFirstLetter(e.$root.labels.services_lower))+": "+e.getServicesForCategory(t).length)+"\n ")]):e._e(),e._v(" "),e.formParts.service_images_thumbs.visibility?o("div",{staticClass:"am-category-services-thumbs"},[e._l(e.getServicesForCategory(t),function(t,i){return i<3?o("img",{key:t.id,attrs:{src:e.pictureLoad(t,!1)},on:{error:function(o){return e.imageLoadError(t,!1)}}}):e._e()}),e._v(" "),e.getServicesForCategory(t).length>3?o("span",{style:{color:e.formColors.formTextColor}},[e._v("\n +"+e._s(e.getInvisibleServicesCount(t))+"\n ")]):e._e()],2):e._e()])]):e._e()}),1)],1)]),e._v(" "),e.showCategory?o("category",{attrs:{"forms-data":e.forms.catalogForm,passedCategory:e.passCategory(),passedResponseEntities:e.responseEntities,passedEntities:e.options.entities,passedEntitiesRelations:e.options.entitiesRelations},on:{showAllCategories:e.showAllCategories}}):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.fetchedCatalog||e.loadingCacheCatalogData,expression:"!fetchedCatalog || loadingCacheCatalogData"}],staticClass:"am-spinner am-section"},[o("img",{staticClass:"svg-catalog am-spin",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}}),e._v(" "),o("img",{staticClass:"svg-catalog am-hourglass",attrs:{src:e.$root.getUrl+"public/img/hourglass.svg"}})])],1),e._v(" "),e.showCatalog&&e.$root.licence.isLite&&e.$root.settings.general.backLink.enabled?o("div",{staticClass:"am-lite-footer"},[o("a",{staticClass:"am-lite-footer-link",attrs:{rel:"nofollow",href:e.$root.settings.general.backLink.url,target:"_blank"}},[e._v("\n "+e._s(e.$root.settings.general.backLink.label)+"\n ")])]):e._e()])},staticRenderFns:[]}},1624:function(e,t,o){var i=o(90)(o(1551),o(1552),!1,null,null,null);e.exports=i.exports},634:function(e,t,o){var i=o(90)(o(829),o(871),!1,null,null,null);e.exports=i.exports},654: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:{deleteImage:function(e){e.pictureThumbPath="",e.pictureFullPath=""},getAppropriateUrlParams:function(e){if("disableUrlParams"in this.$root.settings.activation&&!this.$root.settings.activation.disableUrlParams)return e;var t=JSON.parse(JSON.stringify(e));return["categories","services","packages","employees","providers","providerIds","extras","locations","events","types","dates"].forEach(function(e){if("extras"===e&&e in t){t.extras=JSON.parse(t.extras);var 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(662);e.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){o(662).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),a=Math.floor(Math.random()*this.colors.length),n=this.colors[a];if(this.usedColors.push(this.colors[a]),this.colors.splice(a,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),o)return t.firstName?this.$root.getUrl+"public/img/default-employee.svg":t.latitude?this.$root.getUrl+"public/img/default-location.svg":this.$root.getUrl+"public/img/default-service.svg";var s=document.createElement("canvas");s.width=100,s.height=100;var r=s.getContext("2d");return r.fillStyle=n.startsWith("#")?n:"#"+n,r.fillRect(0,0,s.width,s.height),r.font="40px Arial",r.fillStyle="#ffffff",r.textAlign="center",r.textBaseline="middle",r.fillText(i,s.width/2,s.height/2),s.toDataURL("image/png")},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,"")}}}},655: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(a){null!==e[a]&&"object"===i(e[a])&&a in t?o.replaceExistingObjectProperties(e[a],t[a]):a in t&&(e[a]=t[a])})},addMissingObjectProperties:function(e,t){var o=this;Object.keys(t).forEach(function(a){var n=!1;a in e||("object"===i(t[a])?(e[a]={},n=!0):(e[a]=null,n=!0)),null===t[a]||"object"!==i(t[a])?n&&(e[a]=t[a]):o.addMissingObjectProperties(e[a],t[a])})},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,a=t.offsetTop;do{a+=(i=i.offsetParent).offsetTop}while(i===o[0]);o[0].scrollTop=a}})},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)+"=",a=o[1].split(/[&;]/g),n=a.length;n-- >0;)-1!==a[n].lastIndexOf(i,0)&&a.splice(n,1);return e=o[0]+(a.length>0?"?"+a.join("&"):"")}return e},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},trimProperty:function(e,t){e[t]=e[t].trim()}}}},657: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(),a=this.getPriceDecimalSeparator(),n=this.getPricePrefix(),s=this.getPriceSuffix(),r=parseInt(e=Math.abs(+e||0).toFixed(o))+"",l=r.length>3?r.length%3:0;return(t?n:"")+(l?r.substr(0,l)+i:"")+r.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+i)+(o?a+Math.abs(e-r).toFixed(o).slice(2):"")+(t?s:"")},getPercentage:function(e,t){return e*t/100}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},659:function(e,t,o){"use strict";var i=o(679),a=o(672),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={mixins:[i.a,a.a],data:function(){return{}},methods:{getLocationById:function(e){return this.options.entities.locations.find(function(t){return t.id===e})||null},getCustomerById:function(e){return this.options.entities.customers.find(function(t){return t.id===e})||null},getProviderById:function(e){return this.options.entities.employees.find(function(t){return t.id===e})||null},getServiceById:function(e){return this.options.entities.services.find(function(t){return t.id===e})||null},getCategoryById:function(e){return this.options.entities.categories.find(function(t){return t.id===e})||null},getPackageById:function(e){return this.options.entities.packages.find(function(t){return t.id===e})||null},getProviderService:function(e,t){var o=this.getProviderById(e).serviceList.find(function(e){return e.id===parseInt(t)});return o?Object.assign(JSON.parse(JSON.stringify(this.getServiceById(t))),o):null},getProviderBadge:function(e,t){var o=this.$root.settings.roles.providerBadges.badges.map(function(e){return e.id}),i=null;if(!e.badgeId||!o.includes(e.badgeId))return null;switch(i=this.$root.settings.roles.providerBadges.badges.find(function(t){return t.id===e.badgeId}),t){case"":return!0;case"color":return i.color;case"content":return i.content;default:return!0}},getServiceProviders:function(e,t){var o=this;return void 0!==t&&t?this.options.entities.employees.filter(function(t){return-1!==t.serviceList.map(function(e){return e.id}).indexOf(e)}):this.options.entities.employees.filter(function(t){return-1!==t.serviceList.filter(function(e){return o.isEmployeeService(t.id,e.id)}).map(function(e){return e.id}).indexOf(e)})},getServiceLocations:function(e,t){var o=this,i=[];return this.options.entities.employees.filter(function(t){return-1!==t.serviceList.map(function(e){return e.id}).indexOf(e)}).forEach(function(e){i=o.getProviderLocations(e.id,t).map(function(e){return e.id}).concat(i)}),this.options.entities.locations.filter(function(e){return-1!==i.indexOf(e.id)})},getProviderLocations:function(e,t){var o=this,i=[this.getProviderById(e).locationId];if(e in this.options.entitiesRelations)for(var a in this.options.entitiesRelations[e])this.options.entitiesRelations[e].hasOwnProperty(a)&&(i=i.concat(this.options.entitiesRelations[e][a]));return i=i.filter(function(e,t,o){return o.indexOf(e)===t}),(void 0!==t&&t?this.options.entities.locations:this.options.entities.locations.filter(function(t){return o.isEmployeeLocation(e,t.id)})).filter(function(e){return-1!==i.indexOf(e.id)})},getLocationProviders:function(e,t){var o=this,i=[];return this.options.entities.employees.forEach(function(a){-1!==(void 0!==t&&t?o.getProviderLocations(a.id).filter(function(e){return o.isEmployeeLocation(a.id,e.id)}):o.getProviderLocations(a.id)).map(function(e){return e.id}).indexOf(e)&&i.push(a.id)}),i=i.filter(function(e,t,o){return o.indexOf(e)===t}),this.options.entities.employees.filter(function(e){return-1!==i.indexOf(e.id)})},getServicesFromCategories:function(e){var t=[];return e.map(function(e){return e.serviceList}).forEach(function(e){t=t.concat(e)}),t.sort(this.sortWithNull)},getCategoryServices:function(e){return this.options.entities.categories.find(function(t){return t.id===e}).serviceList},getCustomerInfo:function(e){var t=null;return"info"in e&&e.info?Object.assign({id:"customer"in e?e.customer.id:null},JSON.parse(e.info)):("customerId"in e?t=this.getCustomerById(e.customerId):"customer"in e&&(t=this.getCustomerById(e.customer.id)),null!==t?t:"customer"in e?e.customer:null)},isEmployeeServiceLocation:function(e,t,o){return e in this.options.entitiesRelations&&t in this.options.entitiesRelations[e]&&-1!==this.options.entitiesRelations[e][t].indexOf(o)},isEmployeeService:function(e,t){return e in this.options.entitiesRelations&&t in this.options.entitiesRelations[e]},isEmployeeLocation:function(e,t){var o=!1;if(e in this.options.entitiesRelations)for(var i in this.options.entitiesRelations[e])this.options.entitiesRelations[e].hasOwnProperty(i)&&-1!==this.options.entitiesRelations[e][i].indexOf(t)&&(o=!0);return o},getAvailableEntitiesIds:function(e,t){var o=this,i=[],a=[],n=[],s=null!==t.categoryId?e.categories.find(function(e){return e.id===t.categoryId}):null,r=s?s.serviceList.map(function(e){return e.id}):[];if(null!==t.categoryId&&0===r.length||null!==t.serviceId&&null!==t.employeeId&&!this.isEmployeeService(t.employeeId,t.serviceId)||null!==t.serviceId&&null!==t.employeeId&&null!==t.locationId&&!this.isEmployeeServiceLocation(t.employeeId,t.serviceId,t.locationId))return{services:[],locations:[],employees:[],categories:[]};var l=function(e){if(!o.options.entitiesRelations.hasOwnProperty(e))return"continue";var s=parseInt(e);if(null!==t.employeeId&&t.employeeId!==s||null!==t.locationId&&!o.isEmployeeLocation(s,t.locationId)||null!==t.serviceId&&!o.isEmployeeService(s,t.serviceId)||null!==t.categoryId&&0===r.filter(function(e){return o.isEmployeeService(s,e)}).length||null!==t.categoryId&&null!==t.locationId&&0===r.filter(function(e){return o.isEmployeeServiceLocation(s,e,t.locationId)}).length||null!==t.serviceId&&null!==t.locationId&&!o.isEmployeeServiceLocation(s,t.serviceId,t.locationId))return"continue";for(var l in-1===a.indexOf(s)&&a.push(s),o.options.entitiesRelations[s])if(o.options.entitiesRelations[s].hasOwnProperty(l)){var c=parseInt(l);null!==t.serviceId&&t.serviceId!==c||null!==t.categoryId&&-1===r.indexOf(c)||null!==t.locationId&&!o.isEmployeeServiceLocation(s,c,t.locationId)||(-1===i.indexOf(c)&&i.push(c),o.options.entitiesRelations[s][c].length&&o.options.entitiesRelations[s][c].forEach(function(e){null!==t.locationId&&t.locationId!==e||-1===n.indexOf(e)&&n.push(e)}))}};for(var c in this.options.entitiesRelations)l(c);return{services:i,locations:n,employees:a,categories:e.categories.filter(function(e){return e.serviceList.map(function(e){return e.id}).filter(function(e){return-1!==i.indexOf(e)}).length>0}).map(function(e){return e.id})}},getParsedCustomPricing:function(e){return null===e.customPricing?e.customPricing={enabled:null,durations:[],persons:[],periods:{default:[],custom:[]}}:"object"!==n(e.customPricing)&&(e.customPricing=this.getArrayCustomPricing(e)),e.customPricing},filterEntities:function(e,t){var o=this,i=this.getAvailableEntitiesIds(e,t);this.options.entities.employees=e.employees.filter(function(e){return-1!==i.employees.indexOf(e.id)&&e.serviceList.filter(function(e){return-1!==i.services.indexOf(e.id)}).length>0}),this.options.entities.employees.forEach(function(e){e.fullName=e.firstName+" "+e.lastName,e.serviceList.forEach(function(e){e.customPricing=o.getParsedCustomPricing(e)})}),this.options.entities.categories=e.categories,this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories).filter(function(e){return e.show&&-1!==i.services.indexOf(e.id)}),this.options.entities.services.forEach(function(e){e.extras.forEach(function(e){e.extraId=e.id}),e.customPricing=o.getParsedCustomPricing(e)}),this.options.entities.locations=e.locations.filter(function(e){return-1!==i.locations.indexOf(e.id)}),this.options.entities.customFields=e.customFields;var a=this.options.entities.services.map(function(e){return e.id});if("packages"in e&&(!("show"in t)||"services"!==t.show)){e.packages.forEach(function(e){"bookableIds"in e||(e.bookableIds=e.bookable.map(function(e){return e.service.id}))});var n=e.packages.filter(function(e){return"visible"===e.status}).filter(function(e){return e.bookableIds.filter(function(e){return-1!==a.indexOf(e)}).length}),s=this.options.entities.locations.map(function(e){return e.id}),r=this.options.entities.employees.map(function(e){return e.id}),l=[];if(n.forEach(function(t){var i=!1;"availableBookableInfo"in t||(t.availableBookableInfo=[]),t.bookable.forEach(function(a){var n=!1;(0===a.minimumScheduled&&a.maximumScheduled>0||a.minimumScheduled>0&&0===a.maximumScheduled||a.minimumScheduled>0&&a.maximumScheduled>0)&&(i=!0,n=!0),a.hasSlots=n;var c=a.providers.length;if(!e.locations.length||o.options.entities.locations.length){var d=a.locations.length;!c||(a.providers=a.providers.filter(function(e){return-1!==r.indexOf(e.id)&&d?a.locations.filter(function(t){return o.isEmployeeServiceLocation(e.id,a.service.id,t.id)}).length:!o.options.entities.locations.length||o.options.entities.locations.filter(function(t){return o.isEmployeeServiceLocation(e.id,a.service.id,t.id)}).length}),a.providers.length)?(d&&(a.locations=a.locations.filter(function(e){return-1!==s.indexOf(e.id)&&(c?a.providers.filter(function(t){return o.isEmployeeServiceLocation(t.id,a.service.id,e.id)}).length:o.options.entities.employees.filter(function(t){return o.isEmployeeServiceLocation(t.id,a.service.id,e.id)}).length)}),a.locations.length||l.push(t.id)),-1===t.availableBookableInfo.map(function(e){return e.serviceId}).indexOf(a.service.id)&&t.availableBookableInfo.push({serviceId:a.service.id,serviceName:o.getNameTranslated(a.service),serviceQuantity:a.quantity,providersCount:a.providers.length})):l.push(t.id)}else l.push(t.id)}),t.bookable=t.bookable.filter(function(e){return e.hasSlots}),t.hasSlots=i}),this.options.entities.packages=n.filter(function(e){return-1===l.indexOf(e.id)}),"show"in t&&"packages"===t.show){var c=[];this.options.entities.packages.forEach(function(e){e.bookable.forEach(function(e){c.push(e.service.categoryId)})}),this.options.entities.categories=this.options.entities.categories.filter(function(e){return-1!==c.indexOf(e.id)})}this.options.entities.taxes=e.taxes}},processEntities:function(e){var t=this;this.options.entitiesRelations=e.entitiesRelations,this.options.isFrontEnd?("packages"in e&&e.packages.length&&(this.responseEntities.employees=e.employees,this.responseEntities.categories=e.categories,this.responseEntities.locations=e.locations,this.responseEntities.customFields=e.customFields,this.responseEntities.services=this.getServicesFromCategories(this.responseEntities.categories),this.responseEntities.packages=e.packages?e.packages.filter(function(e){return e.available}):[],this.responseEntities.daysOff=e.settings?e.settings.daysOff:[],this.responseEntities.taxes=e.taxes?e.taxes:[],e.packages=e.packages.filter(function(e){return e.available}),this.params&&this.params.sort||(e.packages=e.packages.sort(function(e,t){return e.position-t.position}))),this.filterEntities(e,this.getShortCodeEntityIds())):(this.options.entities.employees=e.employees,this.options.entities.categories=e.categories,this.options.entities.locations=e.locations,"customers"in e&&e.customers.length&&(this.options.entities.customers=e.customers),this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories),this.options.entities.resources=e.resources,this.options.entities.packages=e.packages,this.options.entities.customFields=e.customFields,this.options.entities.coupons=e.coupons,this.options.entities.spaces=e.spaces,this.options.entities.services.forEach(function(e){e.extras.forEach(function(e){e.extraId=e.id})}),this.options.availableEntitiesIds=this.getAvailableEntitiesIds(e,{categoryId:null,serviceId:null,employeeId:null,locationId:null})),this.options.entities.employees.forEach(function(e){e.serviceList.forEach(function(e){e.customPricing=t.getParsedCustomPricing(e)})}),this.options.entities.services.forEach(function(e){e.customPricing=t.getParsedCustomPricing(e)}),"settings"in e&&(this.options.entities.settings=e.settings),this.options.entities.tags="tags"in e?e.tags:[],this.options.entities.taxes="taxes"in e?e.taxes:[]},getShortCodeEntityIds:function(){return this.$root.shortcodeData.booking?{categoryId:"category"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.category:null,serviceId:"service"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.service:null,employeeId:"employee"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.employee:null,locationId:"location"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.location:null,show:"show"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.show:null}:{categoryId:null,serviceId:null,employeeId:null,locationId:null,show:null}},entitiesLoaded:function(){return"ameliaAppointmentEntities"in window||"ameliaEntities"in window},fillCachedEntities:function(e){var t=this.getServicesFromCategories(e.categories);e.employees.forEach(function(e){e.serviceList.forEach(function(e){Object.assign(e,t.find(function(t){return t.id===e.id}),{price:e.price,customPricing:e.customPricing,minCapacity:e.minCapacity,maxCapacity:e.maxCapacity})})}),"packages"in e&&e.packages.forEach(function(e){e.bookable.forEach(function(e){var o=t.find(function(t){return t.id===e.service.id});o&&(e.service=JSON.parse(JSON.stringify(o)))})})},fetchEntities:function(e,t){var o=this,i={params:this.getAppropriateUrlParams({lite:!0,types:t.types,dates:t.dates})};if(t.page?i.params.page=t.page:"isFrontEnd"in t&&t.isFrontEnd&&(i.params.page="booking"),void 0!==this.$store&&void 0!==this.$store.state.cabinet&&"provider"===this.$store.state.cabinet.cabinetType&&(i=Object.assign(i,this.getAuthorizationHeaderObject()),Object.assign(i.params,{source:"cabinet-"+this.$store.state.cabinet.cabinetType})),t.isPanel||"calendar"===i.params.page||this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",i).then(function(i){o.options.isFrontEnd=t.isFrontEnd,window.ameliaAppointmentEntities=i.data.data;var a=JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));o.fillCachedEntities(a),o.processEntities(a),o.$root.useTranslations&&o.translateEntities(a);e(!0)}).catch(function(t){console.log(t);e(!1)});else var a=setInterval(function(){if(o.entitiesLoaded()){clearInterval(a),o.options.isFrontEnd=t.isFrontEnd;var i="ameliaEntities"in window?JSON.parse(JSON.stringify(window.ameliaEntities)):JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));o.fillCachedEntities(i),o.processEntities(i),o.$root.useTranslations&&o.translateEntities(i);e(!0)}},1e3)},setMissingServices:function(e){var t=this,o=this.options.entities.services.map(function(e){return parseInt(e.id)});Object.keys(e).forEach(function(i){e[i].appointments.forEach(function(e){e.service&&-1===o.indexOf(parseInt(e.serviceId))&&(t.options.entities.services.push(e.service),o.push(parseInt(e.serviceId)))})})},getFilteredEntities:function(e,t,o){var i=this,a=this.appointment&&this.appointment.id&&this.appointment[o]?this.appointment[o]:null;return this.options.entities[t].forEach(function(t){t.disabled=-1===e.indexOf(t.id)}),this.options.entities[t].filter(function(e){return-1!==i.options.availableEntitiesIds[t].indexOf(e.id)||null!==a&&a===e.id})}},computed:{visibleLocations:function(){return this.options.entities.locations.filter(function(e){return"visible"===e.status})},visibleEmployees:function(){return this.options.entities.employees.filter(function(e){return"visible"===e.status})},visibleCustomers:function(){return this.options.entities.customers.filter(function(e){return"visible"===e.status})},visibleServices:function(){return this.options.entities.services.filter(function(e){return"visible"===e.status}).sort(this.sortWithNull)},employeesFiltered:function(){var e=this,t=void 0!==this.appointment&&"bookings"in this.appointment&&this.appointment.bookings.length?this.appointment.bookings[0].persons:null,o=this.$root.settings.roles.providerBadges.badges.map(function(e){return e.id});this.visibleEmployees.forEach(function(t){t.badgeId&&o.includes(t.badgeId)?t.badge=e.$root.settings.roles.providerBadges.badges.find(function(e){return e.id===t.badgeId}):t.badge=null});var i=this.visibleEmployees.filter(function(o){return o.serviceList.filter(function(i){return"visible"===i.status&&(null===t||i.maxCapacity>=t)&&(!e.appointment.serviceId||e.isEmployeeService(o.id,i.id)&&i.id===e.appointment.serviceId)&&(!e.appointment.locationId||e.isEmployeeServiceLocation(o.id,i.id,e.appointment.locationId))&&(!e.appointment.categoryId||o.serviceList.filter(function(t){return"visible"===t.status&&t.categoryId===e.appointment.categoryId}).length>0)}).length>0});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(e){return e.id}),"employees","providerId").sort(function(e,t){return e.disabled-t.disabled})},servicesFiltered:function(){var e=this,t=[];if(this.appointment.providerId){var o=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId});t=void 0!==o?o.serviceList.filter(function(e){return"visible"===e.status}).map(function(e){return e.id}):[]}var i=this.visibleServices.filter(function(o){return!(e.appointment.providerId&&-1===t.indexOf(o.id)||e.appointment.locationId&&!(e.employeesFiltered.filter(function(t){return e.isEmployeeServiceLocation(t.id,o.id,e.appointment.locationId)}).length>0)||e.appointment.categoryId&&o.categoryId!==e.appointment.categoryId)});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(e){return e.id}),"services","serviceId")},sortWithNull:function(){return function(e,t){return e.position===t.position?0:null===e.position?1:null===t.position?-1:e.position<t.position?-1:1}},sortNotifications:function(){return function(e,t){return e.customName===t.customName?0:null===e.customName?1:null===t.customName?-1:e.id>t.id?-1:1}},locationsFiltered:function(){var e=this,t=[];if(this.appointment.providerId){var o=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId});t=void 0!==o?o.serviceList.filter(function(e){return"visible"===e.status}):[]}var i=null;this.appointment.categoryId&&(i=this.categoriesFiltered.find(function(t){return t.id===e.appointment.categoryId}));var a=this.visibleLocations.filter(function(o){return(!e.appointment.providerId||t.filter(function(t){return e.isEmployeeServiceLocation(e.appointment.providerId,t.id,o.id)}).length>0)&&(!e.appointment.serviceId||e.employeesFiltered.filter(function(t){return e.isEmployeeServiceLocation(t.id,e.appointment.serviceId,o.id)}).length>0)&&(!e.appointment.categoryId||void 0!==i&&e.employeesFiltered.filter(function(t){return t.serviceList.filter(function(a){return"visible"===a.status&&a.categoryId===i.id&&e.isEmployeeServiceLocation(t.id,a.id,o.id)}).length>0}).length>0)});return this.options.isFrontEnd?a:this.getFilteredEntities(a.map(function(e){return e.id}),"locations","locationId").sort(function(e,t){return e.disabled-t.disabled})},couponsFilteredService:function(){var e=this,t=[];return this.options.entities.coupons&&(t=this.options.entities.coupons.filter(function(e){return e.serviceList.length>0}),this.appointment.serviceId)?t.filter(function(t){return t.serviceList.find(function(t){return t.id===e.appointment.serviceId})}):t},couponsFilteredEvent:function(){var e=this,t=[];return this.options.entities.coupons&&(t=this.options.entities.coupons.filter(function(e){return e.eventList.length>0}),this.eventId)?t.filter(function(t){return t.eventList.find(function(t){return t.id===e.eventId})}):t},categoriesFiltered:function(){var e=this,t=null;this.appointment.providerId&&(t=this.employeesFiltered.find(function(t){return t.id===e.appointment.providerId}));var o=null;this.appointment.serviceId&&(o=this.servicesFiltered.find(function(t){return t.id===e.appointment.serviceId}));var i=this.options.entities.categories.filter(function(i){return(!e.appointment.serviceId||void 0!==o&&o.categoryId===i.id)&&(!e.appointment.locationId||i.serviceList.filter(function(t){return"visible"===t.status&&e.employeesFiltered.filter(function(o){return e.isEmployeeServiceLocation(o.id,t.id,e.appointment.locationId)}).length>0}).length>0)&&(!e.appointment.providerId||void 0!==t&&-1!==t.serviceList.filter(function(t){return"visible"===t.status&&e.isEmployeeService(e.appointment.providerId,t.id)}).map(function(e){return e.categoryId}).indexOf(i.id))});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(e){return e.id}),"categories","categoryId").sort(function(e,t){return e.disabled-t.disabled})}}}},660:function(e,t,o){"use strict";var i=o(0),a=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 a.a.duration(a()(t).diff(a()(e)))},convertSecondsToMomentDuration:function(e){return a.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=[],a=o;a<=t;a+=o)i.push(a);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}},getSecondsInStringTime:function(e){return a.a.utc(1e3*e).format("HH:mm")},getStringTimeInSeconds:function(e){return a()(e,"HH:mm").diff(a()().startOf("day"),"seconds")}}}},661:function(e,t,o){"use strict";var i=o(657);t.a={mixins:[i.a],methods:{isDurationPricingEnabled:function(e){return null!==e&&("duration"===e.enabled||!0===e.enabled)&&"durations"in e},isPersonPricingEnabled:function(e){return null!==e&&"person"===e.enabled&&"persons"in e},isPeriodPricingEnabled:function(e){return null!==e&&"period"===e.enabled&&"periods"in e&&!this.$root.licence.isLite&&!this.$root.licence.isStarter&&!this.$root.licence.isBasic},getBookingServicePrice:function(e,t,o,i,a){return this.isDurationPricingEnabled(e.customPricing)?this.getBookingDurationPrice(e,t):this.isPersonPricingEnabled(e.customPricing)?this.getBookingPersonPrice(e,o):this.isPeriodPricingEnabled(e.customPricing)&&i&&a?this.getBookingPeriodPrice(e,parseInt(i),a):e.price},getBookingDurationPrice:function(e,t){return t&&e.customPricing.durations.filter(function(e){return e.duration===t}).length?e.customPricing.durations.find(function(e){return e.duration===t}).price:e.price},getBookingPersonPrice:function(e,t){var o=e.customPricing.persons.map(function(e){return e.range}).sort(function(e,t){return t.range-e.range});if(t&&o.length){var i=o.filter(function(e){return e>=t}),a=0===i.length?o[o.length-1]:i[0];return e.customPricing.persons.find(function(e){return e.range===a}).price}return e.price},getBookingPeriodPrice:function(e,t,o){var i=o.split(" ");if(i[0]in this.pricedCalendarTimeSlots&&i[1].substr(0,5)in this.pricedCalendarTimeSlots[i[0]]){var a=this.pricedCalendarTimeSlots[i[0]][i[1].substr(0,5)].filter(function(e){return e.e===t});return a.length?a[0].p:e.price}return e.price}}}},662:function(e,t,o){(function(o){var i,a,n,s;s=void 0!==o?o:this.window||this.global,a=[],i=function(e){var t,o={},i=!!document.querySelector&&!!e.addEventListener,a={initClass:"js-inlinesvg",svgSelector:"img.svg"},n=function(){var e={},t=!1,o=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],o++);for(var a=function(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t&&"[object Object]"===Object.prototype.toString.call(o[i])?e[i]=n(!0,e[i],o[i]):e[i]=o[i])};i>o;o++){a(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 a=e.src||e.getAttribute("data-src"),n=e.attributes,s=new XMLHttpRequest;s.open("GET",a,!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(n).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"),n.longdesc){var a=document.createElementNS("http://www.w3.org/2000/svg","desc"),r=document.createTextNode(n.longdesc.value);a.appendChild(r),o.insertBefore(a,o.firstChild)}if(n.alt){o.setAttribute("aria-labelledby","title");var l=document.createElementNS("http://www.w3.org/2000/svg","title"),c=document.createTextNode(n.alt.value);l.appendChild(c),o.insertBefore(l,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=n(a,e||{}),s(o||function(){}),document.documentElement.className+=" "+t.initClass)},o}(s),void 0===(n="function"==typeof i?i.apply(t,a):i)||(e.exports=n)}).call(t,o(37))},663:function(e,t,o){"use strict";t.a={data:function(){return{}},methods:{isCustomFieldVisible:function(e,t,o){switch(t){case"appointment":return-1!==e.services.map(function(e){return e.id}).indexOf(o)||e.allServices;case"event":return-1!==e.events.map(function(e){return e.id}).indexOf(o)||e.allEvents}return!1},getAllowedCustomFields:function(e,t,o){var i=[];this.options.entities.customFields.forEach(function(e){"services"===t&&e.allServices||"events"===t&&e.allEvents?i.push(parseInt(e.id)):e[t].forEach(function(t){t.id===o&&i.push(parseInt(e.id))})});var a={};for(var n in e)-1!==i.indexOf(parseInt(n))&&(a[n]=e[n]);return a},setBookingCustomFields:function(){if(this.appointment&&this.appointment.bookings&&this.appointment.bookings.length)for(var e=0;e<this.appointment.bookings.length;e++)for(var t=0;t<this.options.entities.customFields.length;t++)if(null===this.appointment.bookings[e].customFields&&(this.appointment.bookings[e].customFields={}),void 0!==this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]&&(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type=this.options.entities.customFields[t].type),void 0!==this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]&&"datepicker"===this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type&&this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value&&(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value=this.$moment(this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value).toDate()),"content"!==this.options.entities.customFields[t].type&&void 0===this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id]){var o="";"checkbox"===this.options.entities.customFields[t].type&&(o=[]),"datepicker"===this.options.entities.customFields[t].type&&(o=null),this.$set(this.appointment.bookings[e].customFields,this.options.entities.customFields[t].id,{label:this.options.entities.customFields[t].label,value:o,type:this.options.entities.customFields[t].type})}},getCustomFieldOptions:function(e){return e.map(function(e){return e.label})},getCustomFieldValue:function(e,t){return Array.isArray(e)?e.join("; "):"datepicker"!==t?e:e?this.getFrontedFormattedDate(e):null},getCustomFieldFileURL:function(e,t,o){return this.$root.getAjaxUrl+"/fields/"+e+"/"+t+"/"+o+"&source=cabinet-provider"}}}},664: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}}}},666:function(e,t,o){"use strict";t.a={methods:{getEntityTax:function(e,t){var o=[];"taxes"in this&&this.taxes&&this.taxes.length?o=this.taxes:"options"in this&&"entities"in this.options&&"taxes"in this.options.entities&&this.options.entities.taxes&&this.options.entities.taxes.length&&(o=this.options.entities.taxes);var i=o.find(function(o){return o[t+"List"].find(function(t){return t.id===e})});return!i||void 0===i||"status"in i&&"visible"!==i.status?null:i},getEntityTaxAmount:function(e,t){switch(e.type){case"percentage":return this.getPercentage(t,e.amount);case"fixed":return e.amount}},getAmountData:function(e,t,o){e&&!e.excluded&&(t=this.getBaseAmount(t,e));var i=o?t/100*o.discount+o.deduction:0,a=0;return e&&(a=this.getEntityTaxAmount(e,t-i)),{total:t,discount:i,tax:a}},getEventBookingPriceAmount:function(e){var t=0;return e.ticketsData&&e.ticketsData.length?e.ticketsData.forEach(function(o){t+=o.price*(e.aggregatedPrice?o.persons:1)}):t=e.price*(e.aggregatedPrice?e.persons:1),this.getAmountData(e.tax&&e.tax.length?e.tax[0]:null,t,e.coupon)},getAppointmentPriceAmount:function(e,t,o,i,a){var n=this,s=null,r=this.$root.settings.payments.taxes.excluded,l=this.$root.settings.payments.taxes.enabled;"tax"in e?(r=(s=e.tax&&e.tax.length?e.tax[0]:null)?s.excluded:r,l=null!==s):l&&(s=this.getEntityTax(e.id,"service"));var c=(e.aggregatedPrice?o:1)*e.price,d=0,m=0,p=0,u=0;if(i){d=c,m=c,l&&s&&!r&&(c=this.getBaseAmount(c,s));var h=i.discount?this.getPercentage(c,i.discount):0,g=c-h;c=g;var f=i.deduction,v=0;if(g>0&&f>0&&(c=g-(v=g>=f?f:g),f=g>=f?0:f-g),l&&s&&r)u=this.getEntityTaxAmount(s,c);else if(l&&s&&!r){c=this.getBaseAmount((e.aggregatedPrice?o:1)*e.price,s);var y=this.getEntityTaxAmount(s,c-h-v);a?d=c+y:(d=c,m=c,u=y)}p=h+v,t.forEach(function(t){var s=null,r=n.$root.settings.payments.taxes.excluded,l=n.$root.settings.payments.taxes.enabled;"tax"in t?(t.tax&&!Array.isArray(t.tax)&&(t.tax=JSON.parse(t.tax)),r=(s=t.tax&&t.tax.length?t.tax[0]:null)?s.excluded:r,l=null!==s):l&&(s=n.getEntityTax(t.extraId,"extra"));var c=null===t.aggregatedPrice?e.aggregatedPrice:t.aggregatedPrice,m=t.price*t.quantity*(c?o:1),h=m;l&&s&&!r&&(m=n.getBaseAmount(m,s));var g=i.discount?n.getPercentage(m,i.discount):0,v=m-g;m=v;var y=0;if(v>0&&f>0&&(m=v-(y=v>=f?f:v),f=v>=f?0:f-v),l&&s&&r)u+=n.getEntityTaxAmount(s,m);else if(l&&s&&!r){m=n.getBaseAmount(t.price*t.quantity*(c?o:1),s);var b=n.getEntityTaxAmount(s,m-g-y);a?h=m+b:(h=m,u+=b)}else!l||s||r||(h=t.price*t.quantity*(c?o:1));d+=h,p+=g+y})}else l&&s&&r?u=this.getEntityTaxAmount(s,c):l&&s&&!r&&!a&&(c=this.getBaseAmount((e.aggregatedPrice?o:1)*e.price,s),u=this.getEntityTaxAmount(s,c)),d=c,m=c,t.forEach(function(t){var i=null===t.aggregatedPrice?e.aggregatedPrice:t.aggregatedPrice,s=t.price*t.quantity*(i?o:1),r=null,l=n.$root.settings.payments.taxes.excluded,c=n.$root.settings.payments.taxes.enabled;"tax"in t?(t.tax&&!Array.isArray(t.tax)&&(t.tax=JSON.parse(t.tax)),l=(r=t.tax&&t.tax.length?t.tax[0]:null)?r.excluded:l,c=null!==r):c&&(r=n.getEntityTax(t.extraId,"extra")),c&&r&&l?u+=n.getEntityTaxAmount(r,s):c&&r&&!l&&!a&&(s=n.getBaseAmount(t.price*t.quantity*(i?o:1),r),u+=n.getEntityTaxAmount(r,s)),d+=s});return{total:d,totalBookable:m,discount:p,tax:u}},getBaseAmount:function(e,t){switch(t.type){case"percentage":return e/(1+t.amount/100);case"fixed":return e-t.amount}},getPercentage:function(e,t){return e*t/100},getRound:function(e){return Math.round(100*e)/100}}}},667:function(e,t,o){"use strict";t.a={data:function(){return{defaultFormsData:{stepByStepForm:{selectServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{serviceHeadingFormField:{labels:{please_select_service:{value:"",translations:{x:""}},book_appointment:{value:"",translations:{x:""}}},visibility:!0}},itemsDraggable:{serviceFormField:{labels:{service:{value:"",translations:{x:""}}}},servicePackageFormField:{labels:{package_available:{value:"",translations:{x:""}},package_discount_text:{value:"",translations:{x:""}}},visibility:!0},locationFormField:{labels:{locations:{value:"",translations:{x:""}}},visibility:!0,required:!1},employeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},visibility:!0,required:!1,anyEmployeeVisible:!0},bringingFormField:{labels:{bringing_anyone_with_you:{value:"",translations:{x:""}},number_of_additional_persons:{value:"",translations:{x:""}}}},addExtraFormField:{labels:{add_extra:{value:"",translations:{x:""}},extra_colon:{value:"",translations:{x:""}},qty_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}}},visibility:!0}}},calendarDateTimeForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135},itemsStatic:{timeZoneFormField:{visibility:!1},calendarHeadingFormField:{labels:{pick_date_and_time:{value:"",translations:{x:""}}},visibility:!0},calendarAppointmentFormField:{endDateVisibility:!0},recurringSwitchFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0}}},recurringSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringSetupHeadingFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},recurringSettingsFormField:{labels:{recurring_repeat:{value:"",translations:{x:""}},recurring_every:{value:"",translations:{x:""}},recurring_on:{value:"",translations:{x:""}},recurring_until:{value:"",translations:{x:""}},recurring_times:{value:"",translations:{x:""}}}}}},recurringDatesForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringDatesHeadingFormField:{labels:{recurring_appointments:{value:"",translations:{x:""}},recurring_edit:{value:"",translations:{x:""}}},visibility:!0},recurringInfoFormField:{labels:{date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}}}}}},selectPackageForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageHeadingFormField:{labels:{please_select_package:{value:"",translations:{x:""}}},visibility:!0},packageFormField:{labels:{package_colon:{value:"",translations:{x:""}}}}}},packageInfoForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageInfoFormField:{labels:{package_discount_text:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},employees:{value:"",translations:{x:""}}}}}},packageSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0.1)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageEmployeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},anyEmployeeVisible:!0},packageLocationFormField:{labels:{location:{value:"",translations:{x:""}}}},packageRulesFormField:{labels:{package_min_book:{value:"",translations:{x:""}},package_min_book_plural:{value:"",translations:{x:""}}}},packageCalendarFormField:{labels:{no_selected_slot_requirements:{value:"",translations:{x:""}}},endDateVisibility:!0,timeZoneVisibility:!0}}},packageListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageListFormField:{labels:{package_list_overview:{value:"",translations:{x:""}},appointments:{value:"",translations:{x:""}},appointment:{value:"",translations:{x:""}},date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},location:{value:"",translations:{x:""}}}}}},confirmBookingForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{confirmServiceHeadingFormField:{visibility:!0},confirmHeadingDataFormField:{labels:{employee:{value:"",translations:{x:""}},date_colon:{value:"",translations:{x:""}},time_colon:{value:"",translations:{x:""}},location_colon:{value:"",translations:{x:""}}},visibility:!0},recurringStringFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},extras_costs_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},catalogForm:{catalogListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{categories:{value:"",translations:{x:""},visibility:!0},services_lower:{value:"",translations:{x:""},visibility:!0}},parts:{service_images_thumbs:{visibility:!0}}},categoryListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{back:{value:"",translations:{x:""}},view_more:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}},services:{value:"",translations:{x:""}},package:{value:"",translations:{x:""}},package_discount_text:{value:"",translations:{x:""}}},parts:{service_badge:{visibility:!0},service_price:{visibility:!0},service_employees_list:{visibility:!0},package_badge:{visibility:!0},package_price:{visibility:!0},package_services_list:{visibility:!0}}},categoryServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{capacity_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},description:{value:"",translations:{x:""}},service_info:{value:"",translations:{x:""}},category_colon:{value:"",translations:{x:""}},extras:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}},maximum_quantity_colon:{value:"",translations:{x:""}},description_colon:{value:"",translations:{x:""}},employees:{value:"",translations:{x:""}}},parts:{capacity_colon:{visibility:!0},duration_colon:{visibility:!0},description:{visibility:!0},service_info:{visibility:!0},extras:{visibility:!0},employees:{visibility:!0}}},categoryPackageForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},parts:{package_rules_description:{visibility:!0},selected_services:{visibility:!0}}},selectServiceForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{serviceHeadingFormField:{labels:{book_appointment:{value:"",translations:{x:""}}},visibility:!0}},itemsDraggable:{locationFormField:{labels:{locations:{value:"",translations:{x:""}}},visibility:!0,required:!1},employeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},visibility:!0,required:!1,anyEmployeeVisible:!0},bringingFormField:{labels:{bringing_anyone_with_you:{value:"",translations:{x:""}},number_of_additional_persons:{value:"",translations:{x:""}}}},addExtraFormField:{labels:{add_extra:{value:"",translations:{x:""}},extra_colon:{value:"",translations:{x:""}},qty_colon:{value:"",translations:{x:""}},duration_colon:{value:"",translations:{x:""}},price_colon:{value:"",translations:{x:""}}},visibility:!0}}},calendarDateTimeForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135},itemsStatic:{timeZoneFormField:{visibility:!1},calendarHeadingFormField:{labels:{pick_date_and_time:{value:"",translations:{x:""}}},visibility:!0},calendarAppointmentFormField:{endDateVisibility:!0},recurringSwitchFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0}}},recurringSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringSetupHeadingFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},recurringSettingsFormField:{labels:{recurring_repeat:{value:"",translations:{x:""}},recurring_every:{value:"",translations:{x:""}},recurring_on:{value:"",translations:{x:""}},recurring_until:{value:"",translations:{x:""}},recurring_times:{value:"",translations:{x:""}}}}}},recurringDatesForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{recurringDatesHeadingFormField:{labels:{recurring_appointments:{value:"",translations:{x:""}},recurring_edit:{value:"",translations:{x:""}}},visibility:!0},recurringInfoFormField:{labels:{date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}}}}}},packageSetupForm:{globalSettings:{formTextColor:"#ffffff",formGradientColor1:"#1A84EE",formGradientColor2:"#0454A2",formGradientAngle:135,formInputColor:"rgba(0, 0, 0, 0.1)",formInputTextColor:"#ffffff",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{packageEmployeeFormField:{labels:{employee:{value:"",translations:{x:""}},any_employee:{value:"",translations:{x:""}}},anyEmployeeVisible:!0},packageLocationFormField:{labels:{location:{value:"",translations:{x:""}}}},packageRulesFormField:{labels:{package_min_book:{value:"",translations:{x:""}},package_min_book_plural:{value:"",translations:{x:""}}}},packageCalendarFormField:{labels:{no_selected_slot_requirements:{value:"",translations:{x:""}}},endDateVisibility:!0,timeZoneVisibility:!0}}},packageListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},itemsStatic:{packageListFormField:{labels:{appointments:{value:"",translations:{x:""}},appointment:{value:"",translations:{x:""}},date:{value:"",translations:{x:""}},time:{value:"",translations:{x:""}},employee:{value:"",translations:{x:""}},location:{value:"",translations:{x:""}}}}}},confirmBookingForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{confirmServiceHeadingFormField:{visibility:!0},confirmHeadingDataFormField:{labels:{employee:{value:"",translations:{x:""}},date_colon:{value:"",translations:{x:""}},time_colon:{value:"",translations:{x:""}},location_colon:{value:"",translations:{x:""}}},visibility:!0},recurringStringFormField:{labels:{recurring_active:{value:"",translations:{x:""}}},visibility:!0},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},extras_costs_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{appointment:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}},package:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052",formImageColor:"#1A84EE"},itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},eventListForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},eventFilterForm:{itemsStatic:{eventFilterFormField:{labels:{event_type:{value:"",translations:{x:""}},event_location:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0}}}}},eventDetailsForm:{itemsStatic:{eventDetailsFormField:{labels:{open:{value:"",translations:{x:""}},closed:{value:"",translations:{x:""}},canceled:{value:"",translations:{x:""}},full:{value:"",translations:{x:""}},upcoming:{value:"",translations:{x:""}},event_capacity:{value:"",translations:{x:""},visibility:!0},location:{visibility:!0},event_date:{visibility:!0},time_zone:{visibility:!1},event_free:{value:"",translations:{x:""}},event_price:{visibility:!0},event_about:{value:"",translations:{x:""}},event_book:{value:"",translations:{x:""},visibility:!0},event_book_persons:{value:"",translations:{x:""}},ev_spot:{value:"",translations:{x:""}},ev_spots:{value:"",translations:{x:""}},ev_no_spots:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0}},showSingleEvent:!0}}},confirmBookingForm:{event:{itemsStatic:{paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{event:{itemsStatic:{congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}},eventCalendarForm:{selectEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#f2f3f5",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},labels:{event_today:{value:"",translations:{x:""}},event_filters:{value:"",translations:{x:""}},event_location:{value:"",translations:{x:""}},event_type:{value:"",translations:{x:""}},event_status:{value:"",translations:{x:""}},event_employee:{value:"",translations:{x:""}},event_spot:{value:"",translations:{x:""}},event_spots_left:{value:"",translations:{x:""}},event_no_spots:{value:"",translations:{x:""}},event_day:{value:"",translations:{x:""}},event_upcoming_events:{value:"",translations:{x:""}},event_free:{value:"",translations:{x:""}},event_upcoming_empty:{value:"",translations:{x:""}},event:{value:"",translations:{x:""}},events:{value:"",translations:{x:""}},open:{value:"",translations:{x:""}},full:{value:"",translations:{x:""}},upcoming:{value:"",translations:{x:""}},closed:{value:"",translations:{x:""}},canceled:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0},upcoming_events_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0},event_price_block:{visibility:!0},event_day_block:{visibility:!0}}},infoEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052"},labels:{event_book_now:{value:"",translations:{x:""}},event_show_less:{value:"",translations:{x:""}},event_schedule:{value:"",translations:{x:""}},event_hosted_by:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0},event_price_block:{visibility:!0}}},inviteEventCalendarForm:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052"},labels:{event_book_event:{value:"",translations:{x:""}},event_many_people:{value:"",translations:{x:""}},event_book_persons:{value:"",translations:{x:""}},ev_spot:{value:"",translations:{x:""}},ev_spots:{value:"",translations:{x:""}},ev_no_spots:{value:"",translations:{x:""}}},parts:{ev_spots_number:{visibility:!0},event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},confirmBookingForm:{event:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{dialogEventCalendarHeadingFormField:{labels:{event_book_event:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},paymentTypeFormField:{labels:{payment_type_colon:{value:"",translations:{x:""}},payment_type_deposit_only:{value:"",translations:{x:""}},payment_type_full_amount:{value:"",translations:{x:""}}}},paymentMethodFormField:{labels:{payment_method_colon:{value:"",translations:{x:""}},payment_btn_on_site:{value:"",translations:{x:""}},payment_btn_stripe:{value:"",translations:{x:""}},payment_btn_mollie:{value:"",translations:{x:""}}},switchPaymentMethodView:"Buttons",switchPaymentMethodViewOptions:[{id:1,name:this.$root.labels.buttons},{id:2,name:this.$root.labels.select}]},stripeCardFormField:{labels:{credit_or_debit_card_colon:{value:"",translations:{x:""}}}},priceFormFiled:{labels:{total_number_of_persons:{value:"",translations:{x:""}},base_price_colon:{value:"",translations:{x:""}},subtotal_colon:{value:"",translations:{x:""}},discount_amount_colon:{value:"",translations:{x:""}},deposit:{value:"",translations:{x:""}},recurring_costs_colon:{value:"",translations:{x:""}},pay_now:{value:"",translations:{x:""}},pay_later:{value:"",translations:{x:""}},total_cost_colon:{value:"",translations:{x:""}}}}},itemsDraggable:{firstNameFormField:{labels:{first_name_colon:{value:"",translations:{x:""}}}},lastNameFormField:{labels:{last_name_colon:{value:"",translations:{x:""}}},visibility:!0,required:!0},emailFormField:{labels:{email_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredEmailField},phoneFormField:{labels:{phone_colon:{value:"",translations:{x:""}}},visibility:!0,required:this.$root.settings.general.requiredPhoneNumberField}}}},congratulationsForm:{event:{globalSettings:{formBackgroundColor:"#ffffff",formTextColor:"#354052",formInputColor:"#ffffff",formInputTextColor:"#354052",formDropdownColor:"#ffffff",formDropdownTextColor:"#354052"},itemsStatic:{dialogEventCalendarHeadingFormField:{labels:{event_book_event:{value:"",translations:{x:""}}},parts:{event_range_block:{visibility:!0},event_capacity_block:{visibility:!0},event_location_block:{visibility:!0}}},congratulationsHeadingFormField:{labels:{congratulations:{value:"",translations:{x:""}}},visibility:!0},congratulationsImageFormField:{visibility:!0},congratulationsMessagesFormField:{labels:{booking_completed_approved:{value:"",translations:{x:""}},booking_completed_pending:{value:"",translations:{x:""}}},visibility:!0},addToCalendarFormField:{addToCalendarVisibility:!0}}}}}}}},methods:{getTranslatedForms:function(e){var t=this,o=this.$root.settings.customization.forms&&this.$root.settings.customization.forms.hasOwnProperty(e)?this.$root.settings.customization.forms:this.defaultFormsData,i=window.localeLanguage[0];return Object.keys(o[e]).forEach(function(a){"labels"in o[e][a]?t.getTranslatedLabels(o[e][a],i):"confirmBookingForm"!==a&&"globalSettings"!==a&&"congratulationsForm"!==a?o[e][a]=t.getTranslatedFormScreen(o[e][a],e,a,i):"confirmBookingForm"!==a&&"congratulationsForm"!==a||Object.keys(o[e][a]).forEach(function(n){o[e][a][n]=t.getTranslatedFormScreen(o[e][a][n],e,a,i)})}),o},getTranslatedFormScreen:function(e,t,o,i){var a=this;return["itemsDraggable","itemsStatic"].forEach(function(t){t in e&&Object.keys(e[t]).forEach(function(o){a.getTranslatedLabels(e[t][o],i)})}),e},getTranslatedLabels:function(e,t){if("labels"in e){var o=window.wpAmeliaSettings.general.usedLanguages,i=o.includes(t);Object.keys(e.labels).forEach(function(a){if("translations"in e.labels[a]&&t in e.labels[a].translations&&i)e.labels[a].value=e.labels[a].translations[t];else if(e.labels[a].translations)for(var n=o.map(function(e){return e.length>2?e.slice(0,2):e}),s=t.length>2?t.slice(0,2):t,r=n.includes(s),l=Object.keys(e.labels[a].translations),c=Object.keys(e.labels[a].translations).map(function(e){return e.length>2?e.slice(0,2):e}),d=0;d<c.length;d++)if(c[d]===s&&r){e.labels[a].value=e.labels[a].translations[l[d]];break}})}}}}},671:function(e,t,o){var i=o(90)(o(682),o(683),!1,null,null,null);e.exports=i.exports},672:function(e,t,o){"use strict";var i=o(661),a=o(0),n=o.n(a),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={mixins:[i.a],methods:{getArrayCustomPricing:function(e){var t=e.customPricing,o=null;if(void 0===t||null===t||""===t)o={enabled:null,durations:{},persons:{},periods:{default:[],custom:[]}};else if("object"===(void 0===t?"undefined":s(t))){if(Array.isArray(t.durations))return"persons"in t||(t.persons=[]),"periods"in t||(t.periods={default:[],custom:[]}),!0===t.enabled&&(t.enabled="duration"),t;o=JSON.parse(JSON.stringify(t))}else o=JSON.parse(t);!0===o.enabled&&(o.enabled="duration"),o.persons="persons"in o?o.persons:[],o.periods="periods"in o?o.periods:{default:[],custom:[]};var i=[];Object.keys(o.persons).length&&(i.push({start:1,range:Object.keys(o.persons)[0]-1,price:e.price,rules:[]}),Object.keys(o.persons).forEach(function(t,a){i.push({start:parseInt(t),range:a!==Object.keys(o.persons).length-1?Object.keys(o.persons)[a+1]-1:e.maxCapacity,price:o.persons[t].price,rules:o.persons[t].rules})}));var a=[];return Object.keys(o.durations).forEach(function(e){a.push({duration:parseInt(e),price:o.durations[e].price,rules:o.durations[e].rules})}),o.periods.custom.forEach(function(e){e.dates.start=n()(e.dates.start).toDate(),e.dates.end=n()(e.dates.end).toDate()}),{enabled:o.enabled,durations:a,persons:i,periods:o.periods}},getJsonCustomPricing:function(e){var t={},o=e.customPricing;o&&o.durations.filter(function(e){return e.duration}).length>0&&o.durations.forEach(function(e){t[e.duration]={price:e.price,rules:e.rules}});var i={};o&&o.persons.length&&o.persons.forEach(function(e,t){0!==t&&(i[o.persons[t-1].range+1]={price:e.price,rules:e.rules})});var a=[];o.periods.default.filter(function(e){return e.days.length}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),a.push(e)});var s=[];o.periods.custom.filter(function(e){return e.dates.start&&e.dates.end}).forEach(function(e){e.ranges.forEach(function(e){null===e.from&&(e.from="00:00"),null===e.to&&(e.to="24:00")}),e.dates.start=n()(e.dates.start).format("YYYY-MM-DD"),e.dates.end=n()(e.dates.end).format("YYYY-MM-DD"),s.push(e)});var r=null;return o&&this.isDurationPricingEnabled(o)?r="duration":o&&this.isPersonPricingEnabled(o)?r="person":o&&this.isPeriodPricingEnabled(o)&&(a.length||s.length)&&(r="period"),JSON.stringify({enabled:r,durations:t,persons:i,periods:{default:a,custom:s}})}}}},675: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"}]}}}},676: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 a=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),n=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[o].concat(n).concat([a]).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={},a=0;a<this.length;a++){var n=this[a][0];"number"==typeof n&&(i[n]=!0)}for(a=0;a<e.length;a++){var s=e[a];"number"==typeof s[0]&&i[s[0]]||(o&&!s[2]?s[2]=o:o&&(s[2]="("+s[2]+") and ("+o+")"),t.push(s))}},t}},677:function(e,t,o){var i=o(90)(o(691),o(692),!1,null,null,null);e.exports=i.exports},678:function(e,t,o){"use strict";var i=o(655);t.a={mixins:[i.a],data:function(){return{}},methods:{getInitEntitySettings:function(e){var t={payments:{paymentLinks:{enabled:this.$root.settings.payments.paymentLinks.enabled,changeBookingStatus:this.$root.settings.payments.paymentLinks.changeBookingStatus,redirectUrl:null},onSite:this.$root.settings.payments.onSite,wc:{enabled:this.$root.settings.payments.wc.enabled,productId:this.$root.settings.payments.wc.productId},payPal:{enabled:this.$root.settings.payments.payPal.enabled},stripe:{enabled:this.$root.settings.payments.stripe.enabled},mollie:{enabled:this.$root.settings.payments.mollie.enabled},square:{enabled:this.$root.settings.payments.square.enabled},razorpay:{enabled:this.$root.settings.payments.razorpay.enabled}}};switch(e){case"service":t.general={minimumTimeRequirementPriorToCanceling:null,minimumTimeRequirementPriorToRescheduling:null,redirectUrlAfterAppointment:null},t.general.defaultAppointmentStatus=null,t.general.numberOfDaysAvailableForBooking=0,t.general.minimumTimeRequirementPriorToBooking=null,t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled};break;case"event":t.general={minimumTimeRequirementPriorToCanceling:null,redirectUrlAfterAppointment:null},t.zoom={enabled:this.$root.settings.zoom.enabled},t.lessonSpace={enabled:this.$root.settings.lessonSpace.enabled},t.googleMeet={enabled:this.$root.settings.googleCalendar.enabled&&this.$root.settings.googleCalendar.googleMeetEnabled},t.microsoftTeams={enabled:this.$root.settings.outlookCalendar.enabled&&this.$root.settings.outlookCalendar.microsoftTeamsEnabled},t.waitingList={enabled:!1,addingMethod:this.$root.settings.appointments.waitingListEvents.addingMethod,maxCapacity:1,maxExtraPeopleEnabled:!1,maxExtraPeople:0};break;case"package":t.general={redirectUrlAfterAppointment:null}}return t},setEntitySettings:function(e,t){e.settings=null!==e.settings?JSON.parse(e.settings):this.getInitEntitySettings(t),this.addMissingObjectProperties(e.settings,this.getInitEntitySettings(t))},updateSettings:function(e){var t=this;if(!this.$root.clonedSettings.payments.onSite||this.$root.clonedSettings.payments.stripe.enabled||this.$root.clonedSettings.payments.payPal.enabled||this.$root.clonedSettings.payments.wc.enabled||this.$root.clonedSettings.payments.mollie.enabled||this.$root.clonedSettings.payments.square.enabled||this.$root.clonedSettings.payments.razorpay.enabled){if(!1===this.$root.clonedSettings.payments.wc.enabled&&!1===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var o=JSON.parse(e);"payments"in o||(o.payments={}),["onSite","stripe","payPal","wc","mollie","razorpay","square"].forEach(function(e){e in o.payments||(o.payments[e]=t.$root.clonedSettings.payments[e])}),o.payments.wc=this.$root.clonedSettings.payments.wc,o.payments.mollie=this.$root.clonedSettings.payments.mollie,this.$root.clonedSettings.payments.onSite||(o.payments.onSite=this.$root.clonedSettings.payments.onSite),this.$root.clonedSettings.payments.square||(o.payments.square=this.$root.clonedSettings.payments.square),this.$root.clonedSettings.payments.payPal.enabled||(o.payments.payPal=this.$root.clonedSettings.payments.payPal),this.$root.clonedSettings.payments.stripe.enabled||(o.payments.stripe=this.$root.clonedSettings.payments.stripe),this.$root.clonedSettings.payments.razorpay.enabled&&o.payments.razorpay||(o.payments.razorpay=this.$root.clonedSettings.payments.razorpay),("onSite"in o.payments?o.payments.onSite&&this.$root.clonedSettings.payments.onSite:this.$root.clonedSettings.payments.onSite)&&("payPal"in o.payments?o.payments.payPal.enabled&&this.$root.clonedSettings.payments.payPal.enabled:this.$root.clonedSettings.payments.payPal.enabled)&&("stripe"in o.payments?o.payments.stripe.enabled&&this.$root.clonedSettings.payments.stripe.enabled:this.$root.clonedSettings.payments.stripe.enabled)&&("mollie"in o.payments?o.payments.mollie.enabled&&this.$root.clonedSettings.payments.mollie.enabled:this.$root.clonedSettings.payments.mollie.enabled)&&("razorpay"in o.payments?o.payments.razorpay.enabled&&this.$root.clonedSettings.payments.razorpay.enabled:this.$root.clonedSettings.payments.razorpay.enabled)&&("square"in o.payments?o.payments.square.enabled&&this.$root.clonedSettings.payments.square.enabled:this.$root.clonedSettings.payments.square.enabled)&&(o.payments=this.$root.clonedSettings.payments),e=JSON.stringify(o)}if(!0===this.$root.clonedSettings.payments.wc.enabled&&null!==e){var i=JSON.parse(e);"payments"in i||(i.payments={}),i.payments.onSite=this.$root.clonedSettings.payments.onSite,i.payments.stripe=this.$root.clonedSettings.payments.stripe,i.payments.payPal=this.$root.clonedSettings.payments.payPal,i.payments.mollie=this.$root.clonedSettings.payments.mollie,i.payments.square=this.$root.clonedSettings.payments.square,i.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(i)}if(!0===this.$root.clonedSettings.payments.mollie.enabled&&null!==e){var a=JSON.parse(e);"payments"in a||(a.payments={}),this.$root.clonedSettings.payments.onSite||(a.payments.onSite=this.$root.clonedSettings.payments.onSite,a.payments.mollie=this.$root.clonedSettings.payments.mollie),a.payments.stripe=this.$root.clonedSettings.payments.stripe,a.payments.payPal=this.$root.clonedSettings.payments.payPal,a.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(a)}if(!0===this.$root.clonedSettings.payments.square.enabled&&null!==e){var n=JSON.parse(e);"payments"in n||(n.payments={}),this.$root.clonedSettings.payments.onSite||(n.payments.onSite=this.$root.clonedSettings.payments.onSite,n.payments.square=this.$root.clonedSettings.payments.square),n.payments.stripe=this.$root.clonedSettings.payments.stripe,n.payments.payPal=this.$root.clonedSettings.payments.payPal,n.payments.razorpay=this.$root.clonedSettings.payments.razorpay,e=JSON.stringify(n)}"oliverPos"in this.$root.shortcodeData&&this.$root.shortcodeData.oliverPos&&((e=JSON.parse(e)).payments.onSite=!0,e.payments.stripe.enabled=!1,e.payments.payPal.enabled=!1,e.payments.razorpay.enabled=!1,e=JSON.stringify(e)),this.replaceExistingObjectProperties(this.$root.settings,null!==e?JSON.parse(e):this.$root.clonedSettings)}},prepareBookableEntityPaymentsForSave:function(e){var t=this,o={};return e&&"payments"in e&&("onSite"in e.payments&&e.payments.onSite!==this.$root.settings.payments.onSite&&(o.onSite=e.payments.onSite),["stripe","payPal","razorpay","mollie","square"].forEach(function(i){i in e.payments&&e.payments[i].enabled!==t.$root.settings.payments[i].enabled&&(o[i]=e.payments[i])}),"wc"in e.payments&&(e.payments.wc.enabled!==this.$root.settings.payments.wc.enabled||"productId"in e.payments.wc&&e.payments.wc.productId!==this.$root.settings.payments.wc.productId)&&(o.wc=e.payments.wc),o.paymentLinks=e.payments.paymentLinks),e.payments=o,e},prepareServiceSettingsForSave:function(e){var t=JSON.parse(JSON.stringify(e.settings));return"general"in t&&(t.general.redirectUrlAfterAppointment||delete t.general.redirectUrlAfterAppointment,t.general.defaultAppointmentStatus||delete t.general.defaultAppointmentStatus,(t.general.minimumTimeRequirementPriorToBooking||this.$root.settings.general.minimumTimeRequirementPriorToBooking)&&""!==t.general.minimumTimeRequirementPriorToBooking||delete t.general.minimumTimeRequirementPriorToBooking,(t.general.minimumTimeRequirementPriorToCanceling||this.$root.settings.general.minimumTimeRequirementPriorToCanceling)&&""!==t.general.minimumTimeRequirementPriorToCanceling||delete t.general.minimumTimeRequirementPriorToCanceling,(t.general.minimumTimeRequirementPriorToRescheduling||this.$root.settings.general.minimumTimeRequirementPriorToRescheduling)&&""!==t.general.minimumTimeRequirementPriorToRescheduling||delete t.general.minimumTimeRequirementPriorToRescheduling,t.general.numberOfDaysAvailableForBooking||delete t.general.numberOfDaysAvailableForBooking,0===Object.keys(t.general).length&&delete t.general),0===Object.keys(t).length&&(t=null),t}},computed:{}}},679:function(e,t,o){"use strict";t.a={data:function(){return{}},methods:{checkTranslations:function(e,t){var o=""!==t?JSON.parse(e.translations)[t]:JSON.parse(e.translations);if(window.localeLanguage[0]in o)return o[window.localeLanguage[0]];for(var i=Object.keys(o),a=Object.keys(o).map(function(e){return e.length>2?e.slice(0,2):e}),n=window.localeLanguage[0].length>2?window.localeLanguage[0].slice(0,2):window.localeLanguage[0],s="",r=0;r<a.length;r++)if(a[r]===n){s=o[i[r]];break}return s},getTranslated:function(e,t){return e.translations&&JSON.parse(e.translations)[t]&&this.checkTranslations(e,t)?this.checkTranslations(e,t):e[t]},getNameTranslated:function(e){return e.translations&&JSON.parse(e.translations).name&&this.checkTranslations(e,"name")?this.checkTranslations(e,"name"):e.name},getTicketTranslated:function(e){return e.translations&&this.checkTranslations(e,"")?this.checkTranslations(e,""):e.name},getCfLabelTranslated:function(e){return e.translations&&this.checkTranslations(e,"name")?this.checkTranslations(e,"name"):e.label},getCfOptionTranslated:function(e){return e.translations&&this.checkTranslations(e,"")?this.checkTranslations(e,""):e.label},getDescriptionTranslated:function(e){return e.translations&&JSON.parse(e.translations).description&&this.checkTranslations(e,"description")?this.checkTranslations(e,"description"):e.description},translateEntities:function(e){var t=this;e.services&&e.services.length&&e.services.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})}),e.locations&&e.locations.length&&e.locations.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)}),e.packages&&e.packages.length&&e.packages.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.bookable.forEach(function(e){e.service.name=t.getNameTranslated(e.service),e.service.description=t.getDescriptionTranslated(e.service),"extras"in e.service&&e.service.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})}),e.categories&&e.categories.length&&e.categories.forEach(function(e){e.name=t.getNameTranslated(e),e.serviceList.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})}),e.events&&e.events.length&&e.events.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})}),e.customFields&&e.customFields.length&&e.customFields.forEach(function(e){e.label=t.getCfLabelTranslated(e),e.options.forEach(function(e){e.label=t.getCfOptionTranslated(e)})}),e.employees&&e.employees.length&&e.employees.forEach(function(e){e.firstName=t.getTranslated(e,"firstName"),e.lastName=t.getTranslated(e,"lastName"),e.serviceList.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e),e.extras.forEach(function(e){e.name=t.getNameTranslated(e),e.description=t.getDescriptionTranslated(e)})})})}},computed:{}}},681: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 a=o(702),n={},s=i&&(document.head||document.getElementsByTagName("head")[0]),r=null,l=0,c=!1,d=function(){},m=null,p="data-vue-ssr-id",u="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e){for(var t=0;t<e.length;t++){var o=e[t],i=n[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(f(o.parts[a]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(f(o.parts[a]));n[o.id]={id:o.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function f(e){var t,o,i=document.querySelector("style["+p+'~="'+e.id+'"]');if(i){if(c)return d;i.parentNode.removeChild(i)}if(u){var a=l++;i=r||(r=g()),t=b.bind(null,i,a,!1),o=b.bind(null,i,a,!0)}else i=g(),t=function(e,t){var o=t.css,i=t.media,a=t.sourceMap;i&&e.setAttribute("media",i);m.ssrId&&e.setAttribute(p,t.id);a&&(o+="\n/*# sourceURL="+a.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");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,m=i||{};var s=a(e,t);return h(s),function(t){for(var o=[],i=0;i<s.length;i++){var r=s[i];(l=n[r.id]).refs--,o.push(l)}t?h(s=a(e,t)):s=[];for(i=0;i<o.length;i++){var l;if(0===(l=o[i]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete n[l.id]}}}};var v,y=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function b(e,t,o,i){var a=o?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,a);else{var n=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(n,s[t]):e.appendChild(n)}}},682:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(675);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){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)),a=this.countries.filter(function(e){return e.phonecode===i});if(a.length){var n=null;1===i?n=a.find(function(e){return 229===e.id}):44===i?n=a.find(function(e){return 228===e.id}):7===i&&(n=a.find(function(e){return 176===e.id})),void 0!==n&&null!==n||(n=a[0]),this.value=n.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:{}}},683: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:[]}},691: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"},a=["locality","administrative_area_level_3"],n=["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 a=e.address_components[o].types[0];if(i[a]){var n=e.address_components[o][i[a]];t[a]=n}}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(a)),o.includes("(regions)")&&(o=o.concat(n));var i=!0,s=!1,r=void 0;try{for(var l,c=e[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var d=l.value,m=!0,p=!1,u=void 0;try{for(var h,g=d.types[Symbol.iterator]();!(m=(h=g.next()).done);m=!0){var f=h.value;if(o.includes(f)){t.push(d);break}}}catch(e){p=!0,u=e}finally{try{!m&&g.return&&g.return()}finally{if(p)throw u}}}}catch(e){s=!0,r=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw r}}return t}}}},692:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"model",rawName:"v-model",value:e.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:e.classname,attrs:{type:"text",id:e.id,placeholder:e.placeholder},domProps:{value:e.autocompleteText},on:{focus:function(t){return e.onFocus()},blur:function(t){return e.onBlur()},change:e.onChange,keypress:e.onKeyPress,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.autocompleteText=t.target.value)}}})},staticRenderFns:[]}},696:function(e,t,o){"use strict";var i=o(0),a=o.n(i),n=o(711),s=o(661);function r(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)}t.a={mixins:[n.a,s.a],data:function(){return{phonePopulated:!1}},methods:{setDurationsPrices:function(e,t){return this.isDurationPricingEnabled(e.customPricing)&&(parseInt(e.duration)in t||(t[parseInt(e.duration)]=[],t[parseInt(e.duration)].push(e.price)),e.customPricing.durations.forEach(function(e){parseInt(e.duration)in t||(t[parseInt(e.duration)]=[]),t[parseInt(e.duration)].push(e.price)})),t},getDurations:function(){var e=this,t={};if(!this.appointment.providerId&&this.appointment.serviceId)this.getPossibleProvidersIfNoneSelected().forEach(function(o){var i=o.serviceList.find(function(t){return t.id===e.appointment.serviceId});t=e.setDurationsPrices(i,t)});else if(this.appointment.serviceId){var o=this.getProviderById(this.appointment.providerId).serviceList.find(function(t){return t.id===e.appointment.serviceId});t=this.setDurationsPrices(o,t)}var i=[];return Object.keys(t).sort(function(e,t){return e-t}).forEach(function(o){var a=Math.min.apply(Math,r(t[o])),n=Math.max.apply(Math,r(t[o]));i.push({duration:parseInt(o),priceLabel:a!==n?e.getFormattedPrice(a,!e.$root.settings.payments.hideCurrencySymbolFrontend)+" - "+e.getFormattedPrice(n,!e.$root.settings.payments.hideCurrencySymbolFrontend):e.getFormattedPrice(a,!e.$root.settings.payments.hideCurrencySymbolFrontend)})}),i},getAppointmentDuration:function(e,t){return e+t.filter(function(e){return e.selected}).map(function(e){return e.duration*e.quantity}).reduce(function(e,t){return e+t},0)},getFormattedTimeSlot:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?" - "+a()(e,"HH:mm:ss").add(t,"seconds").format(this.momentTimeFormat):"";return""+this.getFrontedFormattedTime(e)+o},handleCapacity:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this,a=!1,n=0,s=0,r=0;if(i.appointment.serviceId)if(i.appointment.providerId){var l=i.getProviderService(this.appointment.providerId,this.appointment.serviceId);r=l.minCapacity,a=l.maxCapacity>1&&(l.bringingAnyone||!this.$root.settings.appointments.allowBookingIfNotMin),n=l.maxCapacity,s=this.$root.settings.appointments.allowBookingIfNotMin?1:l.minCapacity}else this.options.entities.employees.forEach(function(e){e.serviceList.forEach(function(t){if(t.id===i.appointment.serviceId){var o=i.getProviderService(e.id,i.appointment.serviceId);r=o.minCapacity,o.maxCapacity>1&&(o.bringingAnyone||!i.$root.settings.appointments.allowBookingIfNotMin)&&(a=!0),(o.maxCapacity>n||0===n)&&(n=o.maxCapacity),s<o.minCapacity&&(s=i.$root.settings.appointments.allowBookingIfNotMin?1:o.minCapacity)}})});!e&&this.$root.settings.appointments.openedBookingAfterMin&&(s=r),this.group.options=[];for(var c=s-1;c<(null!==o&&o<n?o+1:n);c++)if(0!==c){var d="ameliaBooking"in window&&"form"in window.ameliaBooking&&window.ameliaBooking.form.allPersons?c+1:c;this.group.options.push({label:1===d?d+" "+this.$root.labels.person_upper:d+" "+this.$root.labels.persons_upper,value:c+1})}0!==n&&this.appointment.bookings[0].persons>n&&(this.appointment.bookings[0].persons=n),(this.group.enabled||a&&!this.$root.settings.appointments.allowBookingIfNotMin&&s>1)&&(this.group.enabled=a),a&&!this.$root.settings.appointments.allowBookingIfNotMin&&s>1&&(this.appointment.bookings[0].persons=s),this.group.allowed=a&&(this.$root.settings.appointments.allowBookingIfNotMin||1===s),!t&&this.$root.settings.appointments.allowBookingIfNotMin&&this.$root.settings.appointments.openedBookingAfterMin&&r>1&&(this.group.enabled=!0,this.appointment.bookings[0].persons=r)},getAppointmentAddToCalendarData:function(e,t){var o=0,i="",n=[],s=[],r=[];switch(e.type){case"appointment":e.recurring.forEach(function(e){s.push({type:"appointment",id:e.booking.id,appointmentStatusChanged:e.appointmentStatusChanged}),r.push(e.booking.id)}),e.utcTime.forEach(function(t){n.push({address:e.appointment.location?e.appointment.location.address:"",start:a.a.utc(t.start.replace(/ /g,"T")).toDate(),end:a.a.utc(t.end.replace(/ /g,"T")).toDate()})}),e.recurring.forEach(function(e){e.utcTime.forEach(function(t){n.push({address:e.appointment.location?e.appointment.location.address:"",start:a.a.utc(t.start.replace(/ /g,"T")).toDate(),end:a.a.utc(t.end.replace(/ /g,"T")).toDate()})})}),o=e.booking.id,i=e.booking.token;break;case"package":e.package.forEach(function(e,t){t>0?(s.push({type:"appointment",id:e.booking.id,appointmentStatusChanged:e.appointmentStatusChanged}),r.push(e.booking.id),e.utcTime.forEach(function(t){n.push({address:e.appointment.location?e.appointment.location.address:"",start:a.a.utc(t.start.replace(/ /g,"T")).toDate(),end:a.a.utc(t.end.replace(/ /g,"T")).toDate()})})):(o=e.booking.id,i=e.booking.token,e.utcTime.forEach(function(t){n.push({address:e.appointment.location?e.appointment.location.address:"",start:a.a.utc(t.start.replace(/ /g,"T")).toDate(),end:a.a.utc(t.end.replace(/ /g,"T")).toDate()})}))})}var l=e.packageId?e.packageId:null;t||this.$http.post(this.$root.getAjaxUrl+"/bookings/success/"+o+"&nocache="+(new Date).getTime(),{type:e.type,appointmentStatusChanged:e.appointmentStatusChanged,recurring:s,packageId:l,customer:e.customer,paymentId:"paymentId"in e&&e.paymentId?e.paymentId:null,packageCustomerId:"packageCustomerId"in e&&e.packageCustomerId?e.packageCustomerId:null}).then(function(e){}).catch(function(e){});var c={};switch(e.type){case"appointment":c={title:this.$root.useTranslations?this.getNameTranslated(e.bookable):e.bookable.name,dates:n,address:e.appointment.location?e.appointment.location.address:"",description:this.$root.useTranslations?this.getDescriptionTranslated(e.bookable):e.bookable.description,id:e.booking.id,status:e.booking.status,active:this.$root.settings.general.addToCalendar,color:e.color,type:e.type,bookableType:e.type,bookable:e.bookable,booking:e.booking,token:e.booking.token,recurringIds:r};break;case"package":c={title:this.$root.useTranslations?this.getNameTranslated(e.bookable):e.bookable.name,dates:n,address:"",description:this.$root.useTranslations?this.getDescriptionTranslated(e.bookable):e.bookable.description,id:o,status:"approved",active:this.$root.settings.general.addToCalendar&&n.length>0,color:e.color,type:"appointment",bookableType:"package",bookable:e.bookable,booking:e.booking,token:i,recurringIds:r}}return c}}}},698:function(e,t,o){"use strict";var i=o(0),a=o.n(i),n=o(661);t.a={mixins:[n.a],data:function(){return{recurringDates:[]}},methods:{getRecurringAppointmentsData:function(){var e=this,t=[];return this.recurringData.dates.forEach(function(o){var i=e.getProviderService(o.providerId,e.appointment.serviceId);t.push({providerId:o.providerId,locationId:o.locationId,bookingStart:a()(o.date).format("YYYY-MM-DD")+" "+o.time,price:e.getBookingServicePrice(i,e.appointment.serviceDuration,e.appointment.bookings[0].persons,o.providerId,a()(o.date).format("YYYY-MM-DD")+" "+o.time),depositData:"disabled"!==i.depositPayment?{deposit:i.deposit,depositPayment:i.depositPayment,depositPerPerson:i.depositPerPerson}:null})}),t.shift(),t},toggleRecurringActive:function(){this.appointment.serviceId&&"disabled"!==this.getServiceById(this.appointment.serviceId).recurringCycle?this.isRecurringAvailable=!0:(this.isRecurringAvailable=!1,this.activeRecurring=!1)},getDefaultRecurringSettings:function(e,t,o){var i=this.getAvailableRecurringDates(o),n="all"===t?"daily":t,s="",r=a()(e,"YYYY-MM-DD"),l=r.format("D");switch(n){case"daily":s="day";break;case"weekly":s="week";break;case"monthly":s="month"}return{selectedMonthlyWeekDayString:r.format("dddd"),monthDateRule:Math.ceil(l/7),cycle:n,maxDate:a()(e,"YYYY-MM-DD HH:mm").add(1,"days").toDate(),maxCount:1,selectedWeekDayIndex:r.isoWeekday()-1,calendarDates:i,cycleInterval:1,weekDaysSelected:[r.isoWeekday()-1],repeatIntervalLabels:this.getRepeatIntervalLabels(this.$root.labels[s],this.$root.labels[s+"s"],a()(i[i.length-1]).diff(r,"days"))}},getAvailableRecurringDates:function(e){var t=[];return this.useSortedDateStrings(Object.keys(e)).forEach(function(e){t.push(a()(e+" 00:00:00"))}),t},getRepeatIntervalLabels:function(e,t,o){for(var i=[],a=0;a<o;a++)i.push({label:0===a?e:a+1+" "+t,value:a+1});return i}}}},700:function(e,t,o){"use strict";var i=o(0),a=o.n(i);t.a={methods:{selectedTicketsCount:function(e){var t=0;return e.forEach(function(e){t+=e.persons}),t},entitiesLoaded:function(){return"ameliaEventEntities"in window||"ameliaEntities"in window},processEntities:function(e){this.getCurrentUser(),this.options.entities.locations=e.locations.filter(function(e){return"hidden"!==e.status}),this.options.entities.employees=e.employees.filter(function(e){return"hidden"!==e.status}),this.options.entities.customFields=e.customFields,this.options.entities.employees.forEach(function(e){e.serviceList.forEach(function(e){"name"in e||Object.assign(e,{extras:[]})})}),this.$root.useTranslations&&this.translateEntities(this.options.entities),this.setBookingCustomFields()},processCalendarEntities:function(e){this.processEntities(e),this.options.entities.tags=e.tags,this.options.entities.taxes="taxes"in e?e.taxes:[];var t=this.getPreselectedTag();if(t){var o=e.tags.find(function(e){return e.name===t});this.options.entities.tags=o?[o]:e.tags,this.eventFilterTag=o?[o.name]:[]}else this.options.entities.tags=e.tags;this.entitiesFetched=!0,this.getEvents()},processListEntities:function(e){this.processEntities(e),this.options.entities.tags=this.getPreselectedTag()?[]:e.tags,this.options.entities.taxes="taxes"in e?e.taxes:[]},getEntities:function(e){var t=this;if(this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({lite:!0,types:["locations","tags","custom_fields","employees","taxes"]})}).then(function(t){window.ameliaEventEntities=JSON.parse(JSON.stringify(t.data.data)),e(window.ameliaEventEntities)}).catch(function(){});else var o=setInterval(function(){t.entitiesLoaded()&&(clearInterval(o),"ameliaEntities"in window?e(JSON.parse(JSON.stringify(window.ameliaEntities))):e(JSON.parse(JSON.stringify(window.ameliaEventEntities))))},1e3)},getPreselectedTag:function(){return"eventTag"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventTag:null},getPreselectedEmployee:function(){return"eventTag"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.employee:null},getPreselectedEventId:function(){return"eventId"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventId:null},getPreselectedEventRecurring:function(){return"eventRecurring"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.eventRecurring:null},getImplodedPeriods:function(e){var t=null,o=[],i=[];return e.forEach(function(a,n){var s=t&&t.periodEnd===a.periodStart;s&&o.pop(),t={periodStart:s?t.periodStart:a.periodStart,periodEnd:a.periodEnd,isConnected:s},o.push(t),(e.length===n+1||n+1 in e&&e[n+1].periodStart!==a.periodEnd)&&(i=i.concat(JSON.parse(JSON.stringify(o))),o=[])}),i},getExplodedPeriods:function(e){var t=[];return e.forEach(function(e){if(e.isConnected)t.push(e);else{var o=a()(e.periodStart.split(" ")[0],"YYYY-MM-DD"),i=a()(e.periodEnd.split(" ")[0],"YYYY-MM-DD"),n=e.periodStart.split(" ")[1],s=e.periodEnd.split(" ")[1];"00:00:00"===s&&(s="24:00:00",i.subtract(1,"days"));for(var r=[];o.isSameOrBefore(i);)r.push(o.format("YYYY-MM-DD")),o.add(1,"days");r.forEach(function(o){t.push({periodStart:o+" "+n,periodEnd:o+" "+s,zoomMeeting:e.zoomMeeting,lessonSpace:e.lessonSpace})})}}),t},getEventStatus:function(e){switch(e.status){case"rejected":case"canceled":return{label:this.$root.labels.canceled,class:"canceled"};case"full":return{label:this.$root.labels.full,class:"full"};case"upcoming":return{label:this.$root.labels.upcoming,class:"upcoming"};case"approved":if(e.closed)return{label:this.$root.labels.closed,class:"closed"};if(e.opened&&e.places>0)return{label:this.$root.labels.opened,class:"opened"}}return{label:"",class:""}},getEventAddToCalendarData:function(e,t){t||this.$http.post(this.$root.getAjaxUrl+"/bookings/success/"+e.booking.id,{type:"event",appointmentStatusChanged:e.appointmentStatusChanged,paymentId:"paymentId"in e&&e.paymentId?e.paymentId:null,packageCustomerId:null}).then(function(e){}).catch(function(e){});var o="";e.event.location?o=e.event.location.address:e.event.customLocation&&(o=e.event.customLocation);var i=[];return e.utcTime.forEach(function(e){i.push({address:o,start:a.a.utc(e.start.replace(/ /g,"T")).toDate(),end:a.a.utc(e.end.replace(/ /g,"T")).toDate()})}),{title:this.$root.useTranslations?this.getNameTranslated(e.event):e.event.name,dates:i,address:o,description:this.$root.useTranslations?this.getDescriptionTranslated(e.event):e.event.description,id:e.booking.id,status:e.booking.status,active:this.$root.settings.general.addToCalendar,color:e.color,type:e.type,bookableType:e.type,bookable:e.event,booking:e.booking,token:e.booking.token,recurringIds:[]}},getMaxTicketSelected:function(e,t,o){if(e.bringingAnyone){var i=t.spots-t.sold,a=this.selectedTicketsCount(o.filter(function(e){return e.eventTicketId!==t.id}));return e.maxCustomCapacity&&(i=e.maxCustomCapacity-this.getAllSoldTickets(e)-a),null!==e.maxExtraPeople?e.maxExtraPeople+1>a?i>e.maxExtraPeople+1-a?e.maxExtraPeople-a+1:i:0:i}return 1},setTicketsData:function(e){e.bookingToEventTickets=[];var t=[];return e.customTickets.forEach(function(e,o){t.push({id:Math.random(),customerBookingId:null,eventTicketId:e.id,persons:0,price:e.dateRangePrice?e.dateRangePrice:e.price})}),t},getAllSoldTickets:function(e){var t=0;return e.customTickets&&e.customTickets.forEach(function(e){t+=e.sold}),t},getMinTicketPrice:function(e){var t=e.customTickets.filter(function(e){return e.enabled}),o=t[0].price;return t.forEach(function(e){e.price<o&&(o=e.price),e.dateRangePrice&&e.dateRangePrice<o&&(o=e.dateRangePrice)}),o},disableTicketSelection:function(e,t,o,i){if(e.bringingAnyone)return this.getMaxTicketSelected(e,t,o)<=0;var a,n=[];return o.forEach(function(e){n.push(e.persons)}),a=-1!==n.indexOf(1)?1:0,e.maxCustomCapacity?a!==i:a!==i||t.spots===t.sold}}}},701:function(e,t,o){"use strict";t.a={methods:{rgbaToHex:function(e){if(e.indexOf("#")<0){var t=e.indexOf(",")>-1?",":" ";for(var o in(e=e.substr(5).split(")")[0].split(t)).indexOf("/")>-1&&e.splice(3,1),e){var i=e[o];if(i.indexOf("%")>-1){var a=i.substr(0,i.length-1)/100;e[o]=o<3?Math.round(255*a):a}}var n=(+e[0]).toString(16),s=(+e[1]).toString(16),r=(+e[2]).toString(16),l=Math.round(255*+e[3]).toString(16);return 1===n.length&&(n="0"+n),1===s.length&&(s="0"+s),1===r.length&&(r="0"+r),1===l.length&&(l="0"+l),"#"+n+s+r+l}return e},oppositeColor:function(e){var t=this.rgbaToHex(e);return t=t.substring(1).slice(0,6),t=parseInt(t,16),t="#"+(t=("000000"+(t=(t^=16777215).toString(16))).slice(-6))},colorTransparency:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.indexOf("rgba")>-1){var o={r:(e=e.substr(5).split(")")[0].split(","))[0].replace(" ",""),g:e[1].replace(" ",""),b:e[2].replace(" ",""),a:1!==t?t:e[3].replace(" ","")};return"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")"}if(e.indexOf("#")>-1){e=e.substr(1);for(var i=[],a=0;a<e.length/2;a++){var n=e.substring(2*a,2*(a+1));n=parseInt(n,16),i.push(n)}return"rgba("+i[0]+", "+i[1]+", "+i[2]+", "+t+")"}return e},lightenDarkenColor:function(e,t){if(e.indexOf("#")>-1){e=e.slice(1);var o=parseInt(e,16),i=(o>>16)+t;i>255?i=255:i<0&&(i=0);var a=(o>>8&255)+t;a>255?a=255:a<0&&(a=0);var n=(255&o)+t;return n>255?n=255:n<0&&(n=0),"rgba("+i+", "+a+", "+n+", 1)"}if(e.indexOf("rgba")>-1)return"rgba("+(e=e.substr(5).split(")")[0].split(",").map(function(e,o){if(o<3){var i=parseInt(e)+t;return i>255?255:i<0?0:i}return Number(e)}))[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}}}},702:function(e,t){e.exports=function(e,t){for(var o=[],i={},a=0;a<t.length;a++){var n=t[a],s=n[0],r={id:e+":"+a,css:n[1],media:n[2],sourceMap:n[3]};i[s]?i[s].parts.push(r):o.push(i[s]={id:s,parts:[r]})}return o}},703:function(e,t,o){"use strict";var i=o(655),a=o(700),n=o(696);t.a={mixins:[i.a,a.a,n.a],data:function(){return{cacheData:null,loadingCacheCatalogData:!1,loadingCacheCategoryData:!1,loadingCacheServiceData:!1,loadingCacheBookingData:!1}},methods:{setCacheData:function(e,t){if(this.cacheData="ameliaCache"in window&&window.ameliaCache.length&&window.ameliaCache[0]?JSON.parse(window.ameliaCache[0]):null,this.cacheData&&(this.cacheData.request.bookable.id=parseInt(this.cacheData.request.bookable.id),this.cacheData.request.passedCategoryId=parseInt(this.cacheData.request.passedCategoryId),this.cacheData.request&&this.cacheData.request.queryParams&&"dates"in this.cacheData.request.queryParams&&(this.cacheData.request.queryParams.id=this.cacheData.request.queryParams.id?parseInt(this.cacheData.request.queryParams.id):this.cacheData.request.queryParams.id,this.cacheData.request.queryParams.page=parseInt(this.cacheData.request.queryParams.page),this.cacheData.request.queryParams.recurring=parseInt(this.cacheData.request.queryParams.recurring),this.cacheData.request.queryParams.tag=this.cacheData.request.queryParams.tag?this.cacheData.request.queryParams.tag:null,this.cacheData.request.queryParams.locationId=this.cacheData.request.queryParams.locationId?this.cacheData.request.queryParams.locationId:null)),this.cacheData&&e===this.cacheData.request.containerId){if("canceled"===this.cacheData.status||"failed"===this.cacheData.status){for(var o in this.cacheData.request.appointment.serviceId=parseInt(this.cacheData.request.appointment.serviceId),this.cacheData.request.appointment.locationId=parseInt(this.cacheData.request.appointment.locationId),this.cacheData.request.appointment.providerId=parseInt(this.cacheData.request.appointment.providerId),this.cacheData.request.appointment.group=!!parseInt(this.cacheData.request.appointment.group),this.cacheData.request.appointment.bookings[0].customerId=parseInt(this.cacheData.request.appointment.bookings[0].customerId),this.cacheData.request.appointment.bookings[0].persons=parseInt(this.cacheData.request.appointment.bookings[0].persons),this.cacheData.request.hasCancel=!!parseInt(this.cacheData.request.hasCancel),this.cacheData.request.hasHeader=!!parseInt(this.cacheData.request.hasHeader),this.cacheData.request.useGlobalCustomization=!!parseInt(this.cacheData.request.useGlobalCustomization),this.cacheData.request.bookable.maxCapacity=parseInt(this.cacheData.request.bookable.maxCapacity),this.cacheData.request.packageData?(this.cacheData.request.packageData.id=parseInt(this.cacheData.request.packageData.id),this.cacheData.request.packageData.rules.forEach(function(e){e.providerId=parseInt(e.providerId),e.serviceId=parseInt(e.serviceId),e.locationId=e.serviceId?parseInt(e.locationId):null}),this.cacheData.request.packageData.data.forEach(function(e){e.providerId=parseInt(e.providerId),e.serviceId=parseInt(e.serviceId),e.locationId=e.serviceId?parseInt(e.locationId):null})):this.cacheData.request.packageData=null,this.cacheData.request.recurringData||(this.cacheData.request.recurringData=[]),"extras"in this.cacheData.request.appointment.bookings[0]||(this.cacheData.request.appointment.bookings[0].extras=[]),this.cacheData.request.appointment.bookings[0].customFields)this.cacheData.request.appointment.bookings[0].customFields.hasOwnProperty(o)&&"datepicker"===this.cacheData.request.appointment.bookings[0].customFields[o].type&&(this.cacheData.request.appointment.bookings[0].customFields[o].value=new Date(this.cacheData.request.appointment.bookings[0].customFields[o].value)),!this.cacheData.request.appointment.bookings[0].customFields.hasOwnProperty(o)||"checkbox"!==this.cacheData.request.appointment.bookings[0].customFields[o].type||"value"in this.cacheData.request.appointment.bookings[0].customFields[o]||(this.cacheData.request.appointment.bookings[0].customFields[o].value=[]);this.scrollView(e,"end",!0)}else if("paid"===this.cacheData.status&&t){this.cacheData.response.color=this.cacheData.request.bookable.color;var i=this.$root.settings.general.runInstantPostBookingActions;switch("request"in this.cacheData&&"trigger"in this.cacheData.request&&this.cacheData.request.trigger&&(i=!0),this.cacheData.response.type){case"appointment":this.getAppointmentAddToCalendarData(this.cacheData.response,i);break;case"package":this.cacheData.response.package&&this.cacheData.response.package.length>0&&this.getAppointmentAddToCalendarData(this.cacheData.response,i);break;case"event":this.getEventAddToCalendarData(this.cacheData.response,i)}this.scrollView(e,"end",!0)}}else this.unsetCacheData();this.loadingCacheBookingData=!!this.cacheData,this.loadingCacheCatalogData=!!this.cacheData,this.loadingCacheCategoryData=!!this.cacheData,this.loadingCacheServiceData=!!this.cacheData;try{window.history.replaceState(null,null,this.removeURLParameter(window.location.href,"ameliaWcCache")),window.history.replaceState(null,null,this.removeURLParameter(window.location.href,"ameliaCache"))}catch(e){}},unsetCacheData:function(){this.cacheData=null},getCacheDataRequestProps:function(){var e=this,t=null,o=null,i=null;switch(this.cacheData.request.bookableType){case"appointment":o=(t=this.getProviderById(parseInt(this.cacheData.request.appointment.providerId))).serviceList.find(function(t){return t.id===parseInt(e.cacheData.request.appointment.serviceId)}),i=this.getLocationById(parseInt(this.cacheData.request.appointment.locationId))}return JSON.parse(JSON.stringify(Object.assign(this.cacheData.request,{provider:t,location:i,service:o,customFields:this.options.entities.customFields,status:this.cacheData.status})))}}}},706:function(e,t,o){var i=o(90)(null,o(707),!1,null,null,null);e.exports=i.exports},707:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},708:function(e,t,o){var i=o(90)(null,o(709),!1,null,null,null);e.exports=i.exports},709:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},710:function(e,t,o){"use strict";var i=o(0),a=o.n(i),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={mixins:[],data:function(){return{selectedPackageId:null,packageSlotsFetched:0,packageServiceSelected:0,selectedPackage:null,activePackage:!1,packageListShown:!1,packageCreated:!1,disableFetchPackageSlots:!1}},methods:{getPackagePrice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null;if(t)for(var i in e.purchases)if(e.purchases[i].packageCustomerId===parseInt(t)){o=e.purchases[i].coupon;break}var a=e.calculatedPrice?e.price:e.price-e.price/100*e.discount,n=o?a*o.discount/100-o.deduction:0;return a-Math.abs(n)},packageSlotsFetchedCallback:function(){this.packageSlotsFetched++,this.passedPackage&&(this.fetched=!0)},getAvailablePackages:function(){var e=this;return this.options.entities.packages.filter(function(t){return t.availableBookableInfo.filter(function(t){return t.serviceId===e.appointment.serviceId}).length>0}).sort(function(e,t){return e.position-t.position})},initPackage:function(e){this.selectedPackage=e,this.selectedPackage.bookable.forEach(function(e){e.bookings=[],e.bookings.push({cleared:!1,date:null,time:null,providerId:null,locationId:null,slots:[]}),e.calendarData={slotsIndexStarted:0,clonedSlotsData:null,slotsData:null,disabledWeekdays:null,availableDates:null,availableTimeSlots:[],selectedWeekIndex:0}})},selectPackage:function(e){var t=document.getElementById(this.id);this.activePicker=!1,t.classList.remove("am-active-picker"),this.activeRecurringDates=!1,this.activeRecurringSetup=!1,this.activeRecurring=!1,this.calendarVisible=!1,this.packageCalendarActive=!0,this.initPackage(e),this.getCurrentUser(),this.activePackage=!0},closePackage:function(){var e=this;this.selectedPackage=null,this.activePackage=!1,this.packageCreated=!1,this.packageCalendarActive=!1,null===this.selectedPackageId&&this.updateSettings(this.getServiceById(this.appointment.serviceId).settings);var t=document.getElementById(this.id);this.fetchedSlots||t.classList.remove("am-active-picker"),setTimeout(function(){e.times=document.getElementById(e.calendarId)},200)},getPackageAppointmentsData:function(){var e=[],t=[];return this.selectedPackage&&this.selectedPackage.bookable.forEach(function(o){o.bookings.forEach(function(t){t.date&&t.time&&e.push({bookingStart:a()(t.date).format("YYYY-MM-DD")+" "+t.time,serviceId:o.service.id,providerId:t.providerId,locationId:t.locationId})}),t.push({serviceId:o.service.id,providerId:o.providerId?o.providerId:null,locationId:o.locationId?o.locationId:null})}),{id:this.selectedPackage?this.selectedPackage.id:null,data:e,rules:t}},packageListShow:function(){this.loading=!1,this.activePackage=!1,this.packageListShown=!0;var e=document.getElementById(this.id);e.classList.toggle("am-active-package-list",!0),e.classList.toggle("am-active-picker",!1),e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},packageSlotsSelectedCallback:function(){this.appointment.bookings[0].extras=[],this.updateSettings(this.getPackageById(this.selectedPackage.id).settings);var e=document.getElementById(this.id);this.loading=!1,this.packageCreated=!1,this.packageListShown=!1,this.activeConfirm=!0,this.packageCreated=!0,e.classList.remove("am-active-package-list"),e.classList.toggle("am-active-confirm",this.activeConfirm)},bookingPackageDataCompiler:function(e){var t=this,o=[];return e.forEach(function(e){e.date&&e.time&&o.push({date:e.date,time:e.time,provider:t.getProviderById(e.providerId)||t.responseEntities.employees.filter(function(t){return t.id===e.providerId})[0],location:e.locationId?t.getLocationById(e.locationId):null})}),o},getBookablePackageData:function(){var e=this,t=[],o=this.options.entities.locations.length>0;return this.selectedPackage.bookable.forEach(function(i){var a=e.bookingPackageDataCompiler(i.bookings),n=o?{appointment:1,date:7,time:4,employee:6,location:6}:{appointment:1,date:9,time:6,employee:8,location:0};t.push({serviceName:i.service.name,serviceQuantity:i.quantity,serviceAppointment:a,serviceDuration:i.service.duration,service:i.service,spanLengths:n,hasLocations:o,singleEmployee:null,singleLocation:null})}),{name:this.selectedPackage.name,color:this.selectedPackage.color,discount:this.selectedPackage.discount,description:this.selectedPackage.description,price:this.getPackagePrice(this.selectedPackage),pictureThumbPath:this.selectedPackage.pictureThumbPath,durationCount:this.selectedPackage.durationCount,durationType:this.selectedPackage.durationType,endDate:this.selectedPackage.endDate,bookings:t,translations:this.selectedPackage.translations}},parsePackageAppointments:function(e,t,o){var i=this,n=e.find(function(e){return e.customerId===i.state.profile.id});void 0!==n&&n||(n={packages:[]}),this.packagesAppointments=this.parseAppointments(t,o),this.packagesAvailability=n?n.packages:[];var s=this.calculateServicesOccupancy(),r=[];n.packages.forEach(function(e){var t=i.getPackageById(e.packageId),o=t.bookable.map(function(e){return e.service.id});e.services.forEach(function(e){if(-1===o.indexOf(e.serviceId)){var a={providers:[],locations:[]};e.bookings.forEach(function(e){e.providerId&&a.providers.push(e.providerId),e.locationId&&a.locations.push(e.locationId)}),a.service=i.getServiceById(e.serviceId),t.bookable.push(a)}})}),this.options.entities.packages.forEach(function(e){n.packages.forEach(function(t){if(e.id===t.packageId){var o=null;e.bookable.forEach(function(n){n.appointmentServiceIds=[],t.services.forEach(function(t){var r={};t.bookings.forEach(function(e){t.serviceId in r||(r[t.serviceId]=0),r[t.serviceId]+=e.total,(null===o||a()(e.end).isBefore(a()(o)))&&(o=e.end),e.locationId&&-1===n.locations.map(function(e){return e.id}).indexOf(e.locationId)&&n.locations.push(i.getLocationById(e.locationId)),n.appointmentServiceIds.push(e.id)}),n.service.id===t.serviceId&&(n.service.appointmentsAvailable=i.getAvailableServicePackageAppointmentsCount(s,e.id,n.service.id),n.service.total=i.getTotalServicePackageAppointmentsCount(s,e.id,n.service.id))});var r=[];Object.values(i.packagesAppointments).forEach(function(e){e.appointments.forEach(function(e){e.bookings.forEach(function(t){-1!==n.appointmentServiceIds.indexOf(t.packageCustomerService.id)&&e.serviceId===n.service.id&&r.push(e)})})}),r.sort(function(e,t){return t.id-e.id}),n.service.bookedAppointments=r});var n=!1;for(var l in s[e.id])if(null!==s[e.id][l].quantity){n=!0;break}e.totalAvailableAppointments=i.getTotalAvailablePackageAppointmentsCount(s,e.id),e.appointmentsSharable=n,e.expireDateString=o,r.push(e)}})}),r.forEach(function(e){"purchases"in e||(e.purchases={}),"payments"in e||(e.payments={}),i.packagesAvailability.find(function(t){return t.packageId===e.id}).services.forEach(function(t){t.bookings.forEach(function(o){if(o.id in e.purchases||(e.purchases[o.id]=o),o.packageCustomerId in e.payments||(e.payments[o.packageCustomerId]={payments:o.payments,packagePurchased:o.purchased}),"canceled"===o.status){e.totalAvailableAppointments=e.totalAvailableAppointments-o.count;var i=e.bookable.find(function(e){return e.service.id===t.serviceId});i&&void 0!==i&&(i.service.appointmentsAvailable=i.service.appointmentsAvailable-o.count,i.service.total=i.service.total-o.total)}})})}),this.packagesData=r},calculateServicesOccupancy:function(){var e={};this.packagesAvailability.forEach(function(t){t.packageId in e||(e[t.packageId]={}),t.services.forEach(function(o){o.bookings.forEach(function(o){o.packageCustomerId in e[t.packageId]||(e[t.packageId][o.packageCustomerId]={quantity:o.sharedCapacity?o.total:null,total:o.sharedCapacity?o.total:null,shared:o.sharedCapacity,services:{},ids:{}}),o.serviceId in e[t.packageId][o.packageCustomerId].services||(e[t.packageId][o.packageCustomerId].services[o.serviceId]={}),o.id in e[t.packageId][o.packageCustomerId].services[o.serviceId]||(e[t.packageId][o.packageCustomerId].services[o.serviceId][o.id]={quantity:o.sharedCapacity?null:o.total,total:o.sharedCapacity?null:o.total}),e[t.packageId][o.packageCustomerId].ids[o.id]=!0})})});var t={};for(var o in this.packagesAppointments)this.packagesAppointments[o].appointments.filter(function(e){return"canceled"!==e.status}).forEach(function(e){e.bookings.forEach(function(o){"canceled"!==o.status&&(o.packageCustomerService.id in t||(t[o.packageCustomerService.id]={serviceId:e.serviceId,quantity:0}),t[o.packageCustomerService.id].quantity++)})});for(var i in e)for(var a in e[i]){for(var n in e[i][a].ids)n in t&&(null!==e[i][a].quantity?e[i][a].quantity-=t[n].quantity:e[i][a].services[t[n].serviceId][n].quantity-=t[n].quantity);delete e[i][a].shared,delete e[i][a].ids}return e},getTotalAvailablePackageAppointmentsCount:function(e,t){var o=0;for(var i in e[t]){var a=e[t][i];if(null!==a.quantity)o+=a.quantity;else for(var n in a.services)for(var s in a.services[n])o+=a.services[n][s].quantity}return o},getTotalServicePackageAppointmentsCount:function(e,t,o){var i=0;for(var a in e[t]){var n=e[t][a];if(null!==n.total)i+=n.total;else for(var s in n.services[o])i+=n.services[o][s].total}return i},getAvailableServicePackageAppointmentsCount:function(e,t,o){var i=0;for(var a in e[t]){var n=e[t][a];if(null!==n.quantity)i+=n.quantity;else for(var s in n.services[o])i+=n.services[o][s].quantity}return i},packagePurchaseHasAppointments:function(e){return e.appointments.filter(function(e){return null!==e.id}).length>0},parseAppointments:function(e,t){var o=this;if(0===Object.keys(e).length)return{};for(var i in e)e.hasOwnProperty(i)&&e[i].appointments.forEach(function(e){var i={};e.bookings.forEach(function(e){e.customerId in i||(i[e.customerId]=[]),i[e.customerId][e.id]=e.status});var a={};for(var n in i)for(var s in i[n])n in a&&"approved"!==i[n][s]&&"pending"!==i[n][s]||(a[n]=s);e.bookings.forEach(function(i){i.customerId in a&&parseInt(i.id)!==parseInt(a[i.customerId])||(""===t&&(e.bookingStart=o.getConvertedUtcToLocalDateTime(e.bookingStart),e.bookingEnd=o.getConvertedUtcToLocalDateTime(e.bookingEnd)),e.loadingTimeSlots=!1,o.state&&"customer"===o.state.cabinetType&&(e.bookings=[i]))})});if(""===t){var a=function(){var t={};for(var o in e)e.hasOwnProperty(o)&&e[o].appointments.forEach(function(e){var o=e.bookingStart.split(" ")[0];o in t?t[o].appointments.push(e):t[o]={appointments:[e],date:o}});return{v:t}}();if("object"===(void 0===a?"undefined":n(a)))return a.v}return e}}}},711:function(e,t,o){"use strict";t.a={data:function(){return{}},methods:{getCurrentUser:function(){var e=this;if("ameliaUser"in window)var t=setInterval(function(){"ameliaUser"in window&&(clearInterval(t),e.setCurrentUser(JSON.parse(JSON.stringify(window.ameliaUser))))},1e3);else this.$http.get(this.$root.getAjaxUrl+"/users/current").then(function(t){window.ameliaUser=t.data.data.user?JSON.parse(JSON.stringify(t.data.data.user)):null,e.setCurrentUser(window.ameliaUser)}).catch(function(e){console.log("getCurrentUser fail")})},setCurrentUser:function(e){this.currentUser=e,this.currentUser&&this.appointment&&(this.appointment.bookings[0].customerId=this.currentUser.id,this.appointment.bookings[0].customer.id=this.currentUser.id,this.appointment.bookings[0].customer.externalId=this.currentUser.externalId,this.appointment.bookings[0].customer.email=this.currentUser.email,this.appointment.bookings[0].customer.firstName=this.currentUser.firstName,this.appointment.bookings[0].customer.lastName=this.currentUser.lastName,this.appointment.bookings[0].customer.phone=this.currentUser.phone||"",this.appointment.bookings[0].customer.countryPhoneIso=this.currentUser.countryPhoneIso,this.appointment.bookings[0].customer.translations=this.currentUser.translations,this.phonePopulated=!!this.currentUser.phone&&""!==this.currentUser.phone.trim())}}}},743:function(e,t,o){var i=o(90)(o(744),o(745),!1,null,null,null);e.exports=i.exports},744:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{iconName:{type:String,default:""},iconColor:{type:String,default:"currentColor"}},data:function(){return{}},methods:{}}},745:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return"onsite"===e.iconName?o("svg",{attrs:{width:"36",height:"36",viewBox:"0 0 36 36",fill:e.iconColor,xmlns:"http://www.w3.org/2000/svg"}},[o("path",{attrs:{opacity:"0.2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.55686 6.47237C11.8039 4.24782 14.8381 3.00003 18 3.00018C21.1619 3.00003 24.1961 4.24782 26.4431 6.47237C28.6902 8.69692 29.9684 11.7184 30 14.8802C30 23.1002 19.5 32.2502 18.975 32.6402C18.7033 32.8726 18.3575 33.0003 18 33.0003C17.6425 33.0003 17.2967 32.8726 17.025 32.6402L17.0225 32.6381C16.5381 32.2182 6 23.0858 6 14.8802C6.03162 11.7184 7.30985 8.69692 9.55686 6.47237ZM18 18.0002C19.933 18.0002 21.5 16.4332 21.5 14.5002C21.5 12.5672 19.933 11.0002 18 11.0002C16.067 11.0002 14.5 12.5672 14.5 14.5002C14.5 16.4332 16.067 18.0002 18 18.0002Z",fill:e.iconColor}}),e._v(" "),o("path",{attrs:{d:"M18 3.00018C14.8381 3.00003 11.8039 4.24782 9.55686 6.47237C7.30985 8.69692 6.03162 11.7184 6 14.8802C6 23.1002 16.575 32.2502 17.025 32.6402C17.2967 32.8726 17.6425 33.0003 18 33.0003C18.3575 33.0003 18.7033 32.8726 18.975 32.6402C19.5 32.2502 30 23.1002 30 14.8802C29.9684 11.7184 28.6902 8.69692 26.4431 6.47237C24.1961 4.24782 21.1619 3.00003 18 3.00018ZM18 29.4752C15.495 27.0902 9 20.4752 9 14.8802C9 12.4932 9.94821 10.204 11.636 8.51622C13.3239 6.82839 15.6131 5.88018 18 5.88018C20.3869 5.88018 22.6761 6.82839 24.364 8.51622C26.0518 10.204 27 12.4932 27 14.8802C27 20.4302 20.505 27.0902 18 29.4752Z",fill:e.iconColor}}),e._v(" "),o("path",{attrs:{d:"M18 9.00018C16.9617 9.00018 15.9466 9.30809 15.0833 9.88497C14.2199 10.4618 13.547 11.2818 13.1496 12.2411C12.7523 13.2004 12.6483 14.256 12.8509 15.2744C13.0535 16.2928 13.5535 17.2283 14.2877 17.9625C15.0219 18.6967 15.9574 19.1967 16.9758 19.3993C17.9942 19.6019 19.0498 19.4979 20.0091 19.1006C20.9684 18.7032 21.7883 18.0303 22.3652 17.1669C22.9421 16.3036 23.25 15.2885 23.25 14.2502C23.25 12.8578 22.6969 11.5224 21.7123 10.5379C20.7277 9.55331 19.3924 9.00018 18 9.00018ZM18 16.5002C17.555 16.5002 17.12 16.3682 16.75 16.121C16.38 15.8738 16.0916 15.5224 15.9213 15.1112C15.751 14.7001 15.7064 14.2477 15.7932 13.8112C15.8801 13.3748 16.0943 12.9739 16.409 12.6592C16.7237 12.3445 17.1246 12.1302 17.561 12.0434C17.9975 11.9566 18.4499 12.0012 18.861 12.1715C19.2722 12.3418 19.6236 12.6301 19.8708 13.0002C20.118 13.3702 20.25 13.8052 20.25 14.2502C20.25 14.8469 20.013 15.4192 19.591 15.8412C19.169 16.2631 18.5967 16.5002 18 16.5002Z",fill:e.iconColor}})]):"mollie"===e.iconName||"square"===e.iconName?o("svg",{attrs:{width:"36",height:"36",viewBox:"0 0 36 36",fill:e.iconColor,xmlns:"http://www.w3.org/2000/svg"}},[o("rect",{attrs:{x:"5.5",y:"9.00018",width:"25",height:"5",fill:"none"}}),e._v(" "),o("path",{attrs:{d:"M28.5 7.50018H7.5C6.30653 7.50018 5.16193 7.97429 4.31802 8.8182C3.47411 9.66212 3 10.8067 3 12.0002V24.0002C3 25.1937 3.47411 26.3383 4.31802 27.1822C5.16193 28.0261 6.30653 28.5002 7.5 28.5002H28.5C29.6935 28.5002 30.8381 28.0261 31.682 27.1822C32.5259 26.3383 33 25.1937 33 24.0002V12.0002C33 10.8067 32.5259 9.66212 31.682 8.8182C30.8381 7.97429 29.6935 7.50018 28.5 7.50018ZM6 12.0002C6 11.6024 6.15804 11.2208 6.43934 10.9395C6.72064 10.6582 7.10218 10.5002 7.5 10.5002H28.5C28.8978 10.5002 29.2794 10.6582 29.5607 10.9395C29.842 11.2208 30 11.6024 30 12.0002V13.5002H6V12.0002ZM30 24.0002C30 24.398 29.842 24.7795 29.5607 25.0608C29.2794 25.3421 28.8978 25.5002 28.5 25.5002H7.5C7.10218 25.5002 6.72064 25.3421 6.43934 25.0608C6.15804 24.7795 6 24.398 6 24.0002V16.5002H30V24.0002Z",fill:e.iconColor}}),e._v(" "),o("path",{attrs:{d:"M10.5 22.5002H16.5C16.8978 22.5002 17.2794 22.3421 17.5607 22.0608C17.842 21.7795 18 21.398 18 21.0002C18 20.6024 17.842 20.2208 17.5607 19.9395C17.2794 19.6582 16.8978 19.5002 16.5 19.5002H10.5C10.1022 19.5002 9.72064 19.6582 9.43934 19.9395C9.15804 20.2208 9 20.6024 9 21.0002C9 21.398 9.15804 21.7795 9.43934 22.0608C9.72064 22.3421 10.1022 22.5002 10.5 22.5002Z",fill:e.iconColor}}),e._v(" "),o("path",{attrs:{d:"M22.5 22.5002H25.5C25.8978 22.5002 26.2794 22.3421 26.5607 22.0608C26.842 21.7795 27 21.398 27 21.0002C27 20.6024 26.842 20.2208 26.5607 19.9395C26.2794 19.6582 25.8978 19.5002 25.5 19.5002H22.5C22.1022 19.5002 21.7206 19.6582 21.4393 19.9395C21.158 20.2208 21 20.6024 21 21.0002C21 21.398 21.158 21.7795 21.4393 22.0608C21.7206 22.3421 22.1022 22.5002 22.5 22.5002Z",fill:e.iconColor}})]):e._e()},staticRenderFns:[]}},755:function(e,t,o){var i=o(90)(o(756),o(787),!1,null,null,null);e.exports=i.exports},756:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=o.n(i),n=o(666),s=o(632),r=o(654),l=o(336),c=o(657),d=o(655),m=o(664),p=o(663);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}var h=function(){var e=!1,t=[];return{resolved:function(){return e},resolve:function(o){if(!e){e=!0;for(var i=0,a=t.length;i<a;i++)t[i](o)}},promise:{then:function(o){e?o():t.push(o)}}}},g=Object.prototype.hasOwnProperty;var f,v=(f=h(),{notify:function(){f.resolve()},wait:function(){return f.promise},render:function(e,t,o){this.wait().then(function(){o(window.grecaptcha.render(e,t))})},reset:function(e){void 0!==e&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(e)}))},execute:function(e){void 0!==e&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(e)}))},checkRecaptchaLoad:function(){g.call(window,"grecaptcha")&&g.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!f.resolved())throw new Error("ReCAPTCHA has not been loaded")}});"undefined"!=typeof window&&(window.vueRecaptchaApiLoaded=v.notify);var y={name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!1},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},beforeMount:function(){if(this.loadRecaptchaScript&&!document.getElementById(this.recaptchaScriptId)){var e=document.createElement("script");e.id=this.recaptchaScriptId,e.src="https://"+this.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+this.language,e.async=!0,e.defer=!0,document.head.appendChild(e)}},mounted:function(){var e=this;v.checkRecaptchaLoad();var t=u({},this.$props,{callback:this.emitVerify,"expired-callback":this.emitExpired,"error-callback":this.emitError}),o=this.$slots.default?this.$el.children[0]:this.$el;v.render(o,t,function(t){e.$widgetId=t,e.$emit("render",t)})},methods:{reset:function(){v.reset(this.$widgetId)},execute:function(){v.execute(this.$widgetId)},emitVerify:function(e){this.$emit("verify",e)},emitExpired:function(){this.$emit("expired")},emitError:function(){this.$emit("error")}},render:function(e){return e("div",{},this.$slots.default)}},b=o(757),k=o.n(b),_=o(760),C=o.n(_),x=o(763),S=o.n(x),F=o(766),w=o.n(F),I=o(769),P=o.n(I),$=o(772),D=o.n($),T=o(775),E=o.n(T),L=o(781),O=o.n(L),B=o(784),A=o.n(B),N=o(677),R=o.n(N),M=o(667),j="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},q=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,a=!1,n=void 0;try{for(var s,r=e[Symbol.iterator]();!(i=(s=r.next()).done)&&(o.push(s.value),!t||o.length!==t);i=!0);}catch(e){a=!0,n=e}finally{try{!i&&r.return&&r.return()}finally{if(a)throw n}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={name:"confirmBookingForm",mixins:[n.a,r.a,l.a,c.a,d.a,p.a,m.a,M.a],props:{trigger:null,passedCategoryId:null,couponCode:"",paymentGateway:"",queryParams:{},status:null,phonePopulated:null,containerId:null,recurringString:"",useGlobalCustomization:!1,bookableType:null,taxes:{default:function(){return[]},type:Array},bookable:{default:function(){},type:Object},recurringData:{default:function(){return[]}},packageData:null,hasCancel:!0,hasHeader:!0,appointment:{default:function(){},type:Object},marketing:null,provider:{default:function(){},type:Object},location:{default:function(){},type:Object},service:{type:Object,default:function(){}},dialogClass:{default:"",type:String},customFields:{default:function(){return[]}},formType:{type:String},formsData:{type:Object,default:function(){return{}}}},data:function(){var e=this;return{paymentType:"depositOnly",validRecaptcha:!1,recaptchaResponse:!1,customFieldsFiles:[],stripePayment:{stripe:null,cardElement:null},hoverConfirm:!1,hoverCancel:!1,columnsLg:12,couponLimit:0,coupon:{code:"",discount:0,deduction:0},clearValidate:!0,errors:{email:"",phone:"",coupon:"",stripe:"",recaptcha:"",files:{}},fetched:!0,paid:!1,headerErrorMessage:"",headerErrorShow:!1,payPalActions:null,rules:{"customer.firstName":[{required:!0,message:this.$root.labels.enter_first_name_warning,trigger:"submit"}],"customer.lastName":[{required:this.formsData[this.$options.name][this.bookableType].itemsDraggable.lastNameFormField.required,message:this.$root.labels.enter_last_name_warning,trigger:"submit"}],"customer.email":[{required:this.formsData[this.$options.name][this.bookableType].itemsDraggable.emailFormField.required,message:this.$root.labels.enter_email_warning,trigger:"submit"},{type:"email",message:this.$root.labels.enter_valid_email_warning,trigger:"submit"}],"customer.phone":[{required:this.formsData[this.$options.name][this.bookableType].itemsDraggable.phoneFormField.required,message:this.$root.labels.enter_phone_warning,trigger:"submit"},{validator:function(t,o,i){o&&""!==o&&!o.startsWith("+")?i(new Error(e.$root.labels.enter_valid_phone_warning)):i()},trigger:"submit"}],couponCode:[{validator:function(t,o,i){var a=document.getElementsByClassName("am-add-coupon-field")[0].getElementsByClassName("el-input__suffix")[0];e.coupon.code?(e.coupon.code=e.coupon.code.trim(),e.$http.post(e.$root.getAjaxUrl+"/coupons/validate",{code:e.coupon.code,id:e.bookable.id,type:e.bookableType,user:e.appointment.bookings[0].customer}).then(function(t){"afterSuccessCouponValidated"in window&&window.afterSuccessCouponValidated(e.appointment,e.bookable,e.provider,e.location),e.coupon=t.data.data.coupon,e.couponLimit=t.data.data.limit,void 0!==a&&(a.style.visibility="visible"),i()}).catch(function(t){e.coupon.discount=0,e.coupon.deduction=0,!0===t.response.data.data.couponUnknown?i(new Error(e.$root.labels.coupon_unknown)):!0===t.response.data.data.couponInvalid?i(new Error(e.$root.labels.coupon_invalid)):!0===t.response.data.data.couponExpired?i(new Error(e.$root.labels.coupon_expired)):i(),void 0!==a&&(a.style.visibility="hidden")})):(void 0!==a&&(a.style.visibility="hidden"),i())},trigger:"submit"}]},formValidOptions:{},formName:this.$options.name,serviceHeadingVisibility:!this.formsData[this.$options.name][this.bookableType].itemsStatic.confirmServiceHeadingFormField||this.formsData[this.$options.name][this.bookableType].itemsStatic.confirmServiceHeadingFormField.visibility,recurringStringVisibility:!this.formsData[this.$options.name][this.bookableType].itemsStatic.recurringStringFormField||this.formsData[this.$options.name][this.bookableType].itemsStatic.recurringStringFormField.visibility}},created:function(){this.inlineSVG(),window.addEventListener("resize",this.handleResize)},mounted:function(){var e=this;if(this.appointment.bookings[0].customFields){var t=!0,o=!1,i=void 0;try{for(var a,n=Object.entries(this.appointment.bookings[0].customFields)[Symbol.iterator]();!(t=(a=n.next()).done);t=!0){var r=a.value,l=q(r,2),c=l[0],d=l[1];"address"===d.type&&void 0!==this.$refs["amelia-cf-address-"+c]&&this.$refs["amelia-cf-address-"+c].length>0&&this.$refs["amelia-cf-address-"+c][0].update(d.value)}}catch(e){o=!0,i=e}finally{try{!t&&n.return&&n.return()}finally{if(o)throw i}}}this.paymentType=null!==this.bookable.depositData?"depositOnly":"fullAmount",s.a.hasAmeliaTracking(this)&&s.a.trackAmeliaData(this,this.$root.marketing,this.bookableType,"InitiateCheckout"),"failed"===this.status&&(this.headerErrorMessage=this.$root.labels.payment_error,this.headerErrorShow=!0),this.coupon.code=this.couponCode,"event"===this.bookableType&&this.useGlobalCustomization,this.setBookableConfirmStyle(!1),this.setBookableCancelStyle(!1),this.inlineSVG();var m=this.paymentOptions.find(function(t){return t.value===e.$root.settings.payments.defaultPaymentMethod});this.appointment.payment.gateway||(this.appointment.payment.gateway=m?m.value:this.paymentOptions.length?this.paymentOptions[0].value:this.$root.settings.payments.defaultPaymentMethod),"appointment"===this.bookableType&&this.saveStats(),this.addCustomFieldsValidationRules(),this.$root.settings.payments.payPal.enabled&&this.payPalInit(),this.appointment.payment.amount=this.getTotalPrice(),"beforeConfirmBookingLoaded"in window&&window.beforeConfirmBookingLoaded(this.appointment,this.bookable,this.provider,this.location);var p=this;"event"!==this.bookableType||"ameliaBooking"in window&&"disableScrollView"in window.ameliaBooking&&!0===window.ameliaBooking.disableScrollView||setTimeout(function(){p.scrollView("am-confirm-booking","start")},1200)},updated:function(){!0===this.clearValidate&&(this.validateFieldsForPayPal(),this.clearValidate=!1),this.handleResize()},methods:{setAddressCF:function(e,t){this.appointment.bookings[0].customFields[t].value=e,this.validateFieldsForPayPal()},googleMapsLoaded:function(){return window.google&&this.$root.settings.general.gMapApiKey},paymentTypeChanged:function(e){this.paymentType=e.value},getComponentProps:function(){return{phonePopulated:this.phonePopulated?1:0,containerId:this.containerId,trigger:"booking"in this.$root.shortcodeData&&"trigger"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.trigger:"",recurringString:this.recurringString,useGlobalCustomization:this.useGlobalCustomization?1:0,bookableType:this.bookableType,bookable:Object.assign(this.bookable,{aggregatedPrice:this.bookable.aggregatedPrice?1:0}),recurringData:this.recurringData,packageData:this.packageData,hasCancel:this.hasCancel?1:0,hasHeader:this.hasHeader?1:0,appointment:Object.assign(this.appointment,{group:this.appointment.group?1:0}),dialogClass:this.dialogClass,couponCode:this.coupon.code,passedCategoryId:this.passedCategoryId,queryParams:this.queryParams}},onSubmitCoupon:function(e){return e.preventDefault(),!1},getPackagePrice:function(e){return e.calculatedPrice?e.price:e.price-e.price/100*e.discount},isBookableCustomFieldVisible:function(e){switch(this.bookableType){case"appointment":return this.isCustomFieldVisible(e,"appointment",this.bookable.id);case"package":for(var t=!1,o=0;o<this.packageData.data.length;o++)if(this.isCustomFieldVisible(e,"appointment",this.packageData.data[o].serviceId)){t=!0;break}return t;case"event":return this.isCustomFieldVisible(e,"event",this.bookable.id)}},getCustomFieldClass:function(e){var t={"is-required":"file"===e.type&&e.required,"text-content-custom-field":"content"===e.type};return t["am-cf-"+e.id]=!0,t},onRecaptchaExpired:function(){this.validRecaptcha=!1,this.errors.recaptcha=this.$root.labels.recaptcha_error,this.validateFieldsForPayPal()},onRecaptchaVerify:function(e){if(this.validRecaptcha=!0,this.errors.recaptcha="",this.recaptchaResponse=e,this.$root.settings.general.googleRecaptcha.invisible){switch(this.appointment.payment.gateway){case"onSite":this.saveBooking(this.getRequestData(!1));break;case"stripe":this.stripeBooking()}return!1}this.validateFieldsForPayPal()},selectedCustomFieldValue:function(){"event"===this.bookableType&&this.useGlobalCustomization,this.validateFieldsForPayPal()},getBookableColor:function(e){return e?{color:"#ffffff","background-color":this.bookable.color,"border-color":"#ffffff"}:{color:this.bookable.color,"background-color":"","border-color":""}},changeElementsColor:function(e,t,o,i){},changeSelectedColor:function(e,t,o,i,a){},setBookableConfirmStyle:function(e){this.useGlobalCustomization||"event"!==this.bookableType||(this.hoverConfirm=e)},setBookableCancelStyle:function(e){this.useGlobalCustomization||"event"!==this.bookableType||(this.hoverCancel=e)},saveStats:function(){this.$http.post(this.$root.getAjaxUrl+"/stats",{locationId:null!==this.location?this.location.id:null,providerId:this.provider.id,serviceId:this.bookable.id})},handleServerResponse:function(e){var t=this;e.requiresAction?t.stripePayment.stripe.handleCardAction(e.paymentIntentClientSecret).then(function(e){if(e.error)t.headerErrorShow=!0,t.headerErrorMessage=t.$root.labels.payment_error,t.fetched=!0;else{var o=t.getRequestData(!1,{paymentIntentId:e.paymentIntent.id});t.saveBooking(o)}}):e?(t.$emit("confirmedBooking",Object.assign(e,{color:t.bookable.color,type:t.bookableType,packageId:"package"===this.bookableType?this.bookable.id:null},this.$root.settings.general.runInstantPostBookingActions,null)),this.paid=!0):t.fetched=!0},cancelBooking:function(){this.$emit("cancelBooking")},onSelectFiles:function(){this.validateFieldsForPayPal()},validateUploadedFiles:function(){for(var e=this,t=!0,o=this.appointment.bookings,i={},a=0,n=0;n<this.customFields.length;n++)"file"===this.customFields[n].type&&this.isBookableCustomFieldVisible(this.customFields[n])&&(i[this.customFields[n].id]=a,a++);var s=function(a){if(!o[0].customFields.hasOwnProperty(a))return"continue";var n=e.customFields.find(function(e){return parseInt(e.id)===parseInt(a)});if(e.isBookableCustomFieldVisible(n)&&"file"===n.type&&n.required){var s=a in i&&i[a]in e.$refs.customFieldsFiles?i[a]:null;null!==s&&0===e.$refs.customFieldsFiles[s].uploadFiles.length&&(e.errors.files["files"+n.id]=e.$root.labels.file_upload_error,t=!1)}};for(var r in o[0].customFields)s(r);return t},isDefaultOnSitePayment:function(){return 0===this.getTotalPrice()&&("payPal"===this.appointment.payment.gateway||"stripe"===this.appointment.payment.gateway||"mollie"===this.appointment.payment.gateway||"square"===this.appointment.payment.gateway||"razorpay"===this.appointment.payment.gateway||"wc"===this.appointment.payment.gateway&&"ameliaBooking"in window&&"wc"in window.ameliaBooking&&"bookIfPriceIsZero"in window.ameliaBooking.wc&&!0===window.ameliaBooking.wc.bookIfPriceIsZero||"wc"===this.appointment.payment.gateway&&this.$root.settings.payments.wc.onSiteIfFree)},getPaymentGateway:function(){return this.isDefaultOnSitePayment()?"onSite":this.appointment.payment.gateway},confirmBooking:function(){var e=this;if(this.fetched){this.headerErrorShow=!1,this.errors.email="",this.errors.phone="",this.errors.coupon="",this.validateFieldsForPayPal();var t=this.getPaymentGateway();this.$refs.booking.validate(function(o,i){if(e.formValidOptions={},!e.validateUploadedFiles()||!o||""!==e.errors.stripe||""!==e.errors.coupon||"onSite"===t&&!e.isRequiredAndValidRecaptcha()){if(e.fetched=!0,!o&&(i.hasOwnProperty("customer.firstName")||i.hasOwnProperty("customer.lastName")||i.hasOwnProperty("customer.email")||i.hasOwnProperty("customer.phone")))return e.formValidOptions=JSON.parse(JSON.stringify(i)),!1;var a=[],n=[];e.customFields.forEach(function(t){if("file"===t.type&&!0===t.required&&e.isBookableCustomFieldVisible(t)&&0===e.$refs["customFields."+t.id+".value"][0].$el.getElementsByTagName("input")[0].files.length){var o={};o.position=t.position-1,o.name="customFields."+t.id+".value",n.push(o)}a.push("customFields."+t.id+".value")});var s=[];Object.keys(i).forEach(function(e){var t=a.indexOf(e),o={};o.position=t,o.name=e,s.push(o)});var r=s.concat(n).sort(function(e,t){var o=e.position,i=t.position,a=0;return o>i?a=1:o<i&&(a=-1),a});return 0!==r.length&&e.$refs[r[0].name][0].$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),!1}switch("afterConfirmBooking"in window&&window.afterConfirmBooking(e.appointment,e.bookable,e.provider,e.location),e.fetched=!1,e.inlineSVG(),e.appointment.payment.gateway=t,e.appointment.payment.gateway){case"stripe":e.$root.settings.general.googleRecaptcha.enabled&&e.$root.settings.general.googleRecaptcha.invisible?e.$refs.recaptcha.execute():e.stripeBooking();break;case"onSite":e.$root.settings.general.googleRecaptcha.enabled&&e.$root.settings.general.googleRecaptcha.invisible?e.$refs.recaptcha.execute():e.saveBooking(e.getRequestData(!1));break;case"wc":e.addToWooCommerceCart();break;case"mollie":e.goToMolliePaymentPage();break;case"square":e.goToSquarePaymentPage();break;case"razorpay":e.razorPayCreateOrder()}e.scrollView("am-spinner","start")})}},buildFormData:function(e,t,o){var i=this;!t||"object"!==(void 0===t?"undefined":j(t))||t instanceof Date||t instanceof File?e.append(o,null!==t?t:""):Object.keys(t).forEach(function(a){i.buildFormData(e,t[a],o?o+"["+a+"]":a)})},book:function(e){var t=this;this.$http.post(this.$root.getAjaxUrl+"/bookings",e.data,e.options).then(function(e){e.data.data?(t.$emit("confirmedBooking",Object.assign(e.data.data,{color:t.bookable.color,type:t.bookableType,packageId:"package"===t.bookableType?t.bookable.id:null},t.$root.settings.general.runInstantPostBookingActions,null)),t.paid=!0):t.fetched=!0}).catch(function(e){"onSite"===t.getPaymentGateway()&&t.$root.settings.general.googleRecaptcha.enabled&&t.$root.settings.general.googleRecaptcha.invisible&&t.$refs.recaptcha.reset(),t.handleSaveBookingErrors(e.response.data)})},saveBooking:function(e){var t=this;"ameliaActions"in window&&"beforeBooking"in window.ameliaActions?window.ameliaActions.beforeBooking(function(){t.book(e)},function(e){t.headerErrorMessage=e,t.headerErrorShow=!0,t.fetched=!0},this.getRequestData(!0).data):this.book(e)},addToWooCommerceCart:function(){var e=this,t=this.getRequestData(!1);this.$http.post(this.$root.getAjaxUrl+"/payment/wc",t.data,t.options).then(function(e){window.location=e.data.data.cartUrl}).catch(function(t){e.handleSaveBookingErrors(t.response.data)})},stripeBooking:function(){var e=this;this.stripePayment.stripe.createPaymentMethod("card",this.stripePayment.cardElement,{}).then(function(t){if(t.error)e.headerErrorShow=!0,e.headerErrorMessage=e.$root.labels.payment_error,e.fetched=!0;else{var o=e.getRequestData(!1,{paymentMethodId:t.paymentMethod.id});e.$http.post(e.$root.getAjaxUrl+"/bookings",o.data,o.options).then(function(t){t.data.data&&e.handleServerResponse(t.data.data)}).catch(function(t){e.handleSaveBookingErrors(t.response.data)})}})},goToMolliePaymentPage:function(){var e=this,t=this.getRequestData(!1);this.$http.post(this.$root.getAjaxUrl+"/payment/mollie",t.data,t.options).then(function(e){window.location=e.data.data.redirectUrl}).catch(function(t){e.handleSaveBookingErrors(t.response.data)})},goToSquarePaymentPage:function(){var e=this,t=this.getRequestData(!1);this.$http.post(this.$root.getAjaxUrl+"/payment/square",t.data,t.options).then(function(e){window.location=e.data.data.redirectUrl}).catch(function(t){e.handleSaveBookingErrors(t.response.data)})},getAppointmentDate:function(){return this.getFrontedFormattedDate(a()(this.bookable.bookingStart,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD"))},getAppointmentTime:function(){return this.getFrontedFormattedTime(this.bookable.bookingStart.split(" ")[1])},getExtrasPrice:function(e){for(var t=0,o=0;o<this.selectedExtras.length;o++)t+=e*this.selectedExtras[o].price*this.selectedExtras[o].quantity*this.getExtraPriceMultipleValue(this.selectedExtras[o]);return t},getTotalPrice:function(){var e=this.amountData.instant.total-this.amountData.instant.discount+this.amountData.instant.tax;return e>0?e:0},getSelectedExtraDetails:function(e){var t="";return e.price&&((this.instantPaymentBookingsCount>1||null!==this.recurringData&&this.recurringData.length)&&(t+=this.instantPaymentBookingsCount+" "+(this.instantPaymentBookingsCount>1?this.$root.labels.appointments.toLowerCase():this.$root.labels.appointment.toLowerCase())+" x "),this.getExtraPriceMultipleValue(e)>1&&(t+=this.getExtraPriceMultipleValue(e)+" "+this.$root.labels.persons+" x "),t+=e.quantity+" x ",t+=this.getFormattedPrice(e.price,!this.$root.settings.payments.hideCurrencySymbolFrontend)+" = "),t+=this.getFormattedPrice(this.instantPaymentBookingsCount*e.price*this.getExtraPriceMultipleValue(e)*e.quantity,!this.$root.settings.payments.hideCurrencySymbolFrontend)},getExtraPriceMultipleValue:function(e){return(null===e.aggregatedPrice?this.bookable.aggregatedPrice:e.aggregatedPrice)?this.appointment.bookings[0].persons:1},getBasePrice:function(e,t){return e*this.basePriceMultipleValue*t},getBookingTicketsBasePriceCalculationString:function(e){var t=this,o="";return e.bookingToEventTickets.forEach(function(e){0!==e.persons&&(o+=""!==o?" + ":"",o+=e.name+"("+t.getFormattedPrice(e.price,!t.$root.settings.payments.hideCurrencySymbolFrontend)+")"+(t.bookable.aggregatedPrice?" x "+e.persons:""))}),o+=" = "+this.getFormattedPrice(e.totalPrice,!this.$root.settings.payments.hideCurrencySymbolFrontend)},getBookingBasePriceCalculationString:function(e,t){var o="";(e>1||null!==this.recurringData&&this.recurringData.length)&&(o+=e+" "+(e>1?this.$root.labels.appointments.toLowerCase():this.$root.labels.appointment.toLowerCase())+" x "),this.basePriceMultipleValue>1&&(o+=this.basePriceMultipleValue+" "+this.$root.labels.persons+" x ");var i=this.getFormattedPrice(this.getBasePrice(e,t),!this.$root.settings.payments.hideCurrencySymbolFrontend);o&&(o+=this.getFormattedPrice(t,!this.$root.settings.payments.hideCurrencySymbolFrontend)+" = "+i);return""!==o?o:i},getBookingBasePriceData:function(e){var t=[],o=this.paymentPeriodData[e];for(var i in o)o[i].price&&t.push({count:o[i].count,price:o[i].price});return t},checkCoupon:function(e){e.preventDefault(),this.$refs.coupon.clearValidate(),this.$refs.coupon.validate()},getExtras:function(){var e=JSON.parse(JSON.stringify(this.selectedExtras));return e.forEach(function(e){e.extraId=e.id,e.id=null}),e},trimValue:function(e){return"string"==typeof e?e.replace(/^\s+|\s+$/g,""):e},getRequestData:function(e,t){for(var o=this,i=JSON.parse(JSON.stringify(this.getComponentProps())),n={},s=0,r=function(e){if("file"===o.customFields[e].type){var t=o.customFields.find(function(t){return parseInt(t.id)===parseInt(o.customFields[e].id)});o.isBookableCustomFieldVisible(t)&&(n[o.customFields[e].id]=s,s++)}},l=0;l<this.customFields.length;l++)r(l);this.appointment.payment.amount="fullAmount"!==this.paymentType?this.amountData.instant.deposit.toFixed(2).toString():this.getTotalPrice().toFixed(2).toString(),this.appointment.payment.currency=this.$root.settings.payments.currencyCode;var c=JSON.parse(JSON.stringify(this.appointment.bookings)),d=null;this.bookable.ticketsData&&(d=this.bookable.ticketsData.bookingToEventTickets),c[0].extras=this.getExtras(),c[0].ticketsData=d;var m={},p=function(e){if(!c[0].customFields.hasOwnProperty(e))return"continue";var t=o.customFields.find(function(t){return parseInt(t.id)===parseInt(e)});if(o.isBookableCustomFieldVisible(t)){var i=e in n&&n[e]in o.$refs.customFieldsFiles?n[e]:null;if(null!==i){for(var a={label:c[0].customFields[e].label,value:[]},s=0;s<o.$refs.customFieldsFiles[i].uploadFiles.length;s++)a.value.push({name:o.$refs.customFieldsFiles[i].uploadFiles[s].name});m[e]=a}else m[e]=c[0].customFields[e];m[e].type=t.type,"datepicker"===m[e].type&&(m[e].value=m[e].value?o.getStringFromDate(new Date(m[e].value)):null)}};for(var u in c[0].customFields)p(u);c[0].customer.email=c[0].customer.email?this.trimValue(c[0].customer.email):c[0].customer.email,c[0].customer.phone=c[0].customer.phone?this.trimValue(c[0].customer.phone):c[0].customer.phone,c[0].customFields=m;var h=this.bookable.bookingStart,g=void 0!==this.recurringData&&null!==this.recurringData?JSON.parse(JSON.stringify(this.recurringData)):[],f=void 0!==this.packageData&&null!==this.packageData?JSON.parse(JSON.stringify(this.packageData)):{id:null,data:[]};c[0].utcOffset=null,c[0].deposit="fullAmount"!==this.paymentType&&null!==this.bookable.depositData,i.appointment.bookings[0].customFields=m,i.appointment.payment=Object.assign(this.appointment.payment,{data:t}),i.appointment.payment.amount=this.appointment.payment.amount,this.$root.settings.general.showClientTimeZone&&(h=a()(h,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"),g.forEach(function(e){e.bookingStart=a()(e.bookingStart,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"),e.utcOffset=o.getClientUtcOffset(e.bookingStart)}),f.data.forEach(function(e){e.bookingStart=a()(e.bookingStart,"YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"),e.utcOffset=o.getClientUtcOffset(e.bookingStart)}),c[0].utcOffset=this.getClientUtcOffset(h)),f.data.forEach(function(e){e.notifyParticipants=o.appointment.notifyParticipants?1:0}),i&&"bookable"in i&&"name"in i.bookable&&(i.bookable.name=i.bookable.name.replace(/"/g,"'"));var v={type:this.bookableType,bookings:c,payment:Object.assign(this.appointment.payment,{data:t}),recaptcha:this.recaptchaResponse,locale:window.localeLanguage[0],timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,urlParams:this.getUrlQueryParams(window.location.href),couponCode:this.coupon&&this.coupon.code?this.coupon.code:"",componentProps:i,returnUrl:this.removeURLParameter(location.href,"ameliaCache")};switch(this.bookableType){case"appointment":c[0].duration=this.appointment.serviceDuration,v=Object.assign(v,{bookingStart:h,notifyParticipants:this.appointment.notifyParticipants?1:0,locationId:null!==this.location?this.location.id:null,providerId:this.provider?this.provider.id:null,serviceId:this.bookable.id,recurring:g,package:[]});break;case"package":v=Object.assign(v,{package:f.data,packageId:f.id,packageRules:f.rules,utcOffset:this.getClientUtcOffset(null),deposit:"fullAmount"!==this.paymentType&&null!==this.bookable.depositData});break;case"event":v=Object.assign(v,{eventId:this.bookable.id})}var y=null,b=null,k=!1;if(this.$refs.customFieldsFiles)for(l=0;l<this.$refs.customFieldsFiles.length;l++)if(this.$refs.customFieldsFiles[l].uploadFiles.length>0){k=!0;break}if(k&&!e){for(var u in y=new FormData,this.buildFormData(y,v),n){var _=n[u];if(n.hasOwnProperty(u)&&_ in this.$refs.customFieldsFiles)for(var C=0;C<this.$refs.customFieldsFiles[_].uploadFiles.length;C++)y.append("files["+u+"]["+C+"]",this.$refs.customFieldsFiles[_].uploadFiles[C].raw)}b={headers:{"Content-Type":"multipart/form-data"}}}else y=v,b={};return{data:y,options:b}},handleSaveBookingErrors:function(e){if("data"in e){if("onSitePayment"in e.data&&e.data.onSitePayment?(this.appointment.payment.gateway="onSite",this.saveBooking(this.getRequestData(!1))):"afterFailedBooking"in window&&window.afterFailedBooking(e.data),"customerAlreadyBooked"in e.data&&!0===e.data.customerAlreadyBooked)switch(this.headerErrorShow=!0,this.bookableType){case"appointment":case"package":this.headerErrorMessage=this.$root.labels.customer_already_booked_app;break;case"event":this.headerErrorMessage=this.$root.labels.customer_already_booked_ev}if("timeSlotUnavailable"in e.data&&!0===e.data.timeSlotUnavailable)switch(this.headerErrorShow=!0,this.bookableType){case"appointment":case"package":this.headerErrorMessage=this.$root.labels.time_slot_unavailable;break;case"event":this.headerErrorMessage=this.$root.labels.maximum_capacity_reached}else"bookingsLimitReached"in e.data&&!0===e.data.bookingsLimitReached?(this.headerErrorShow=!0,this.headerErrorMessage=this.$root.labels.bookings_limit_reached):"emailError"in e.data&&!0===e.data.emailError?this.errors.email=this.$root.labels.email_exist_error:"phoneError"in e.data&&!0===e.data.phoneError?this.errors.phone=this.$root.labels.phone_exist_error:"couponUnknown"in e.data&&!0===e.data.couponUnknown?this.errors.coupon=this.$root.labels.coupon_unknown:"couponInvalid"in e.data&&!0===e.data.couponInvalid?this.errors.coupon=this.$root.labels.coupon_invalid:"couponExpired"in e.data&&!0===e.data.couponExpired?this.errors.coupon=this.$root.labels.coupon_expired:"couponMissing"in e.data&&!0===e.data.couponMissing?this.errors.coupon=this.$root.labels.coupon_missing:"paymentSuccessful"in e.data&&!1===e.data.paymentSuccessful?(this.headerErrorShow=!0,this.headerErrorMessage=this.$root.labels.payment_error):"bookingAlreadyInWcCart"in e.data&&!0===e.data.bookingAlreadyInWcCart?(this.headerErrorShow=!0,this.headerErrorMessage=this.$root.labels.booking_already_in_wc_cart):"wcError"in e.data&&!0===e.data.wcError?(this.headerErrorShow=!0,this.headerErrorMessage=this.$root.labels.wc_error):"recaptchaError"in e.data&&!0===e.data.recaptchaError?this.errors.recaptcha=this.$root.labels.recaptcha_invalid_error:"message"in e.data&&(this.headerErrorShow=!0,this.headerErrorMessage=e.data.message)}this.fetched=!0},isRequiredAndValidRecaptcha:function(){return this.errors.recaptcha="",!(this.$root.settings.general.googleRecaptcha.enabled&&!this.$root.settings.general.googleRecaptcha.invisible&&!this.validRecaptcha)||(this.errors.recaptcha=this.$root.labels.recaptcha_error,!1)},validateFieldsForPayPal:function(){var e=this;if(this.clearValidation(),/^\s/.test(this.appointment.bookings[0].customer.firstName)&&(this.appointment.bookings[0].customer.firstName=this.appointment.bookings[0].customer.firstName.substring(1)),/^\s/.test(this.appointment.bookings[0].customer.lastName)&&(this.appointment.bookings[0].customer.lastName=this.appointment.bookings[0].customer.lastName.substring(1)),this.appointment.bookings[0].customer.email=this.trimValue(this.appointment.bookings[0].customer.email),null!==this.payPalActions&&"payPal"===this.appointment.payment.gateway){var t=!0,o=function(o){if(!e.appointment.bookings[0].customFields.hasOwnProperty(o))return"continue";var i=e.customFields.find(function(e){return parseInt(e.id)===parseInt(o)});e.isBookableCustomFieldVisible(i)&&i.required&&"file"!==i.type&&(Array.isArray(e.appointment.bookings[0].customFields[o].value)&&0===e.appointment.bookings[0].customFields[o].value.length||!Array.isArray(e.appointment.bookings[0].customFields[o].value)&&(!e.appointment.bookings[0].customFields[o].value||""===e.trimValue(e.appointment.bookings[0].customFields[o].value)))&&(t=!1)};for(var i in this.appointment.bookings[0].customFields)o(i);""===this.appointment.bookings[0].customer.firstName||this.formsData[this.$options.name][this.bookableType].itemsDraggable.lastNameFormField.required&&""===this.appointment.bookings[0].customer.lastName||this.formsData[this.$options.name][this.bookableType].itemsDraggable.emailFormField.required&&""===this.appointment.bookings[0].customer.email||this.formsData[this.$options.name][this.bookableType].itemsDraggable.phoneFormField.required&&""===this.appointment.bookings[0].customer.phone||!t||!this.validateUploadedFiles()?this.payPalActions.disable():this.payPalActions.enable()}},razorPayVerify:function(e,t,o){this.$emit("changeConfirmBookingRazorpay",!0),this.saveBooking(this.getRequestData(!1,{paymentId:e,signature:t,orderId:o}))},razorPayCreateOrder:function(){var e=this,t=this,o=this.getRequestData(!0);this.$http.post(this.$root.getAjaxUrl+"/payment/razorpay",o.data,o.options).then(function(o){var i=o.data.data.data;i.handler=function(e){t.razorPayVerify(e.razorpay_payment_id,e.razorpay_signature,i.order_id)},i.modal={ondismiss:function(){t.fetched=!0,t.$emit("changeConfirmBookingRazorpay",!0)}};var a=new Razorpay(i);e.$emit("changeConfirmBookingRazorpay",!1),a.open()}).catch(function(t){e.handleSaveBookingErrors(t.response.data)})},payPalInit:function(){var e=this,t="";window.paypal.Button.render({style:{size:"responsive",color:"gold",shape:"rect",tagLine:!1},env:e.$root.settings.payments.payPal.sandboxMode?"sandbox":"production",client:{sandbox:e.$root.settings.payments.payPal.testApiClientId,production:e.$root.settings.payments.payPal.liveApiClientId},commit:!0,onClick:function(){e.confirmBooking()},validate:function(t){e.payPalActions=t,e.validateFieldsForPayPal()},payment:function(){return JSON.parse(JSON.stringify(e.appointment.bookings))[0].extras=e.getExtras(),window.paypal.request({method:"post",url:e.$root.getAjaxUrl+"/payment/payPal",json:e.getRequestData(!0).data}).then(function(e){return t=e.data.transactionReference,e.data.paymentID}).catch(function(t){e.parseError(t)})},onAuthorize:function(o,i){return i.payment.get().then(function(){var i=e.getRequestData(!1,{transactionReference:t,PaymentId:o.paymentID,PayerId:o.payerID});e.saveBooking(i)})},onCancel:function(){e.fetched=!0,e.inlineSVG()},onError:function(t){e.parseError(t)}},"#am-paypal-button-container")},parseError:function(e){var t=e.toString(),o=JSON.parse(JSON.stringify(JSON.parse(t.substring(t.indexOf("{"),t.lastIndexOf("}")+1))));"object"===(void 0===o?"undefined":j(o))&&o.hasOwnProperty("data")?this.handleSaveBookingErrors(o):(this.headerErrorShow=!0,this.headerErrorMessage=this.$root.labels.payment_error),this.fetched=!0,this.inlineSVG()},clearValidation:function(){void 0!==this.$refs.booking&&this.$refs.booking.clearValidate(),void 0!==this.$refs.coupon&&this.$refs.coupon.clearValidate();var e=this;if(Object.keys(this.errors.files).forEach(function(t){e.errors.files[t]=""}),this.errors.recaptcha="",this.errors.files){var t=this.appointment.bookings[0].customer.firstName;this.appointment.bookings[0].customer.firstName=t+"_",this.appointment.bookings[0].customer.firstName=t}},handleResize:function(){var e=document.getElementById(this.containerId);if(e){var t=e.offsetWidth;this.columnsLg=t<670?24:12}},addCustomFieldsValidationRules:function(){for(var e=0;e<this.customFields.length;e++)if(this.isBookableCustomFieldVisible(this.customFields[e])&&!0===this.customFields[e].required){var t=[{required:!0,message:this.$root.labels.required_field,trigger:"submit"}];"text"!==this.customFields[e].type&&"text-area"!==this.customFields[e].type&&"address"!==this.customFields[e].type||(t=[{required:!0,message:this.$root.labels.required_field,trigger:"submit"},{validator:this.validateCustomFieldInput,trigger:"submit"}]),this.$set(this.rules,"customFields."+this.customFields[e].id+".value",t)}},validateCustomFieldInput:function(e,t,o){t&&""!==this.trimValue(t)?o():o(new Error(this.$root.labels.required_field))},getAppointmentsAmountData:function(){var e=this,t={instant:{total:0,tax:0,discount:0,base:0,deposit:0},postponed:{total:0,tax:0,discount:0,base:0,deposit:0,totals:{}}},o=this.coupon&&(this.coupon.discount||this.coupon.deduction)?this.coupon:null,i=this.couponLimit,a=1;this.service.recurringPayment&&(a=this.service.recurringPayment>this.recurringData.length+1?this.recurringData.length+1:this.service.recurringPayment);var n="instant",s=[this.bookable.price];this.recurringData.forEach(function(e){s.push(e.price)});var r=0;s.forEach(function(s,l){o&&i>0?i--:o=null;var c=e.getAppointmentPriceAmount(Object.assign({},e.bookable,{price:s}),e.selectedExtras,e.appointment.bookings[0].persons,o,!0);l<a?t[n].deposit+=e.getDepositAmount(c.total-c.discount+c.tax):n="postponed",t[n].total+=c.total,t[n].discount+=c.discount,t[n].tax+=c.tax,"postponed"===n&&(c.total in t[n].totals?t[n].totals[c.total].count++:(t[n].totals[c.total]={index:r,count:1,total:c.total},r++))});var l=[];return Object.keys(t.postponed.totals).forEach(function(e){l[t.postponed.totals[e].index]={total:e,count:t.postponed.totals[e].count}}),t.postponed.totals=l,t},getEventAmountData:function(){var e=this.bookable.ticketsData?this.bookable.ticketsData.totalPrice:this.basePriceMultipleValue*this.bookable.price,t=this.getEntityTax(this.bookable.id,"event");this.$root.settings.payments.taxes.enabled&&t&&!this.$root.settings.payments.taxes.excluded&&this.coupon&&this.couponLimit&&(e=this.getBaseAmount(e,t));var o=this.coupon&&this.couponLimit?e/100*this.coupon.discount+this.coupon.deduction:0,i=0;return this.$root.settings.payments.taxes.enabled&&t&&this.$root.settings.payments.taxes.excluded?i=this.getEntityTaxAmount(t,e-o):this.$root.settings.payments.taxes.enabled&&t&&!this.$root.settings.payments.taxes.excluded&&o&&(e+=this.getEntityTaxAmount(t,e-o)),{instant:{total:e,discount:o,tax:i,deposit:this.getDepositAmount(e-o+i)},postponed:{total:0,discount:0,tax:0,deposit:0}}},getPackageAmountData:function(){var e=this.basePriceMultipleValue*this.bookable.price,t=this.getEntityTax(this.bookable.id,"package");this.$root.settings.payments.taxes.enabled&&t&&!this.$root.settings.payments.taxes.excluded&&this.coupon&&this.couponLimit&&(e=this.getBaseAmount(e,t));var o=this.coupon&&this.couponLimit?e/100*this.coupon.discount+this.coupon.deduction:0,i=0;return this.$root.settings.payments.taxes.enabled&&t&&this.$root.settings.payments.taxes.excluded?i=this.getEntityTaxAmount(t,e-o):this.$root.settings.payments.taxes.enabled&&t&&!this.$root.settings.payments.taxes.excluded&&o&&(e+=this.getEntityTaxAmount(t,e-o)),{instant:{total:e,discount:o,tax:i,deposit:this.getDepositAmount(e-o+i)},postponed:{total:0,discount:0,tax:0,deposit:0}}},getDepositAmount:function(e){var t=0;if(this.bookable.depositData)switch(this.bookable.depositData.depositPayment){case"fixed":t=this.bookable.depositData.depositPerPerson?this.appointment.bookings[0].persons*this.bookable.depositData.deposit:this.bookable.depositData.deposit;break;case"percentage":t=this.getPercentage(e,this.bookable.depositData.deposit)}return this.getRound(e>t?t:0)},getTaxLabel:function(){var e=this,t=this.getEntityTax(this.bookable.id,"appointment"===this.bookableType?"service":this.bookableType),o={};o[t.id]=t.name,this.selectedExtras.forEach(function(t){var i=e.getEntityTax(t.extraId,"extra");i&&(o[i.id]=i.name)});var i="total_tax_colon"in this.priceLabels&&this.priceLabels.total_tax_colon.value||this.$root.labels.total_tax_colon;return 1===Object.keys(o).length?Object.values(o)[0]:i}},computed:{amountData:function(){switch(this.bookableType){case"appointment":return this.getAppointmentsAmountData();case"event":return this.getEventAmountData();case"package":return this.getPackageAmountData()}},withDeposit:function(){return this.amountData.instant.deposit>0&&"onSite"!==this.getPaymentGateway()&&"depositOnly"===this.paymentType},onlyTotal:function(){return!(this.amountData.instant.tax>0||this.amountData.instant.discount>0)},instantPaymentBasePriceData:function(){return this.getBookingBasePriceData("instant")},basePriceMultipleValue:function(){return this.bookable.aggregatedPrice?this.appointment.bookings[0].persons:1},instantPaymentBookingsCount:function(){return 0===this.recurringData.length?1:(this.recurringData.length<this.service.recurringPayment?this.recurringData.length:this.service.recurringPayment)+1},paymentPeriodData:function(){var e=this,t={},o={};switch(this.bookableType){case"appointment":t[this.bookable.price]={count:1,price:this.bookable.price},this.recurringData.forEach(function(i,a){e.instantPaymentBookingsCount-1>a?i.price in t?t[i.price].count++:t[i.price]={count:1,price:i.price}:i.price in o?o[i.price].count++:o[i.price]={count:1,price:i.price}});break;case"package":case"event":t[this.bookable.price]={count:1,price:this.bookable.price}}return{instant:t,postponed:o}},bookableConfirmStyle:function(){return this.hoverConfirm?{color:this.bookable.color,borderColor:this.bookable.color,backgroundColor:this.bookable.color,opacity:.8}:{color:"#ffffff",backgroundColor:this.bookable.color,borderColor:this.bookable.color,opacity:1}},bookableCancelStyle:function(){return this.hoverCancel?{color:this.bookable.color,borderColor:this.bookable.color,backgroundColor:"",opacity:.7}:{color:"",backgroundColor:"#ffffff",borderColor:"",opacity:1}},bookableCancelSpanStyle:function(){return this.hoverCancel?{color:this.bookable.color,borderColor:"",backgroundColor:"",opacity:.9}:{color:"",backgroundColor:"",borderColor:"",opacity:1}},selectedExtras:function(){return this.appointment.bookings[0].extras.filter(function(e){return!0===e.selected})},paymentOptions:function(){var e=[];return!0===this.$root.settings.payments.onSite&&e.push({value:"onSite",label:this.$root.labels.on_site}),this.$root.settings.payments.payPal.enabled&&e.push({value:"payPal",label:this.$root.labels.pay_pal}),this.$root.settings.payments.stripe.enabled&&e.push({value:"stripe",label:this.$root.labels.credit_card}),this.$root.settings.payments.wc.enabled&&e.push({value:"wc",label:this.$root.labels.wc}),this.$root.settings.payments.mollie.enabled&&e.push({value:"mollie",label:this.$root.labels.on_line}),this.$root.settings.payments.square.enabled&&e.push({value:"square",label:this.$root.labels.square}),this.$root.settings.payments.razorpay.enabled&&e.push({value:"razorpay",label:this.$root.labels.razorpay}),e},showConfirmBookingButton:function(){return"onSite"===this.appointment.payment.gateway||"wc"===this.appointment.payment.gateway||"mollie"===this.appointment.payment.gateway||"square"===this.appointment.payment.gateway||"stripe"===this.appointment.payment.gateway||"razorpay"===this.appointment.payment.gateway||"payPal"===this.appointment.payment.gateway&&0===this.getTotalPrice()},priceLabels:function(){return"searchForm"===this.formType?this.defaultFormsData.stepByStepForm[this.formName][this.bookableType].itemsStatic.priceFormFiled.labels:this.formsData.confirmBookingForm[this.bookableType].itemsStatic.priceFormFiled?this.formsData.confirmBookingForm[this.bookableType].itemsStatic.priceFormFiled.labels:this.defaultFormsData[this.formType][this.formName][this.bookableType].itemsStatic.priceFormFiled.labels}},components:{moment:a.a,VueRecaptcha:y,confirmHeadingDataFormField:k.a,recurringStringFormField:C.a,firstNameFormField:S.a,lastNameFormField:w.a,emailFormField:P.a,phoneFormField:D.a,paymentMethodFormField:E.a,paymentTypeFormField:O.a,stripeCardFormField:A.a,VueGoogleAutocomplete:R.a}}},757:function(e,t,o){var i=o(90)(o(758),o(759),!1,null,null,null);e.exports=i.exports},758:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=o.n(i),n=o(655),s=o(654),r=o(336);t.default={name:"confirmHeadingDataFormField",props:{bookableStart:{type:String,default:""},provider:{type:Object,default:function(){}},location:{type:Object,default:function(){}},formField:{type:Object,default:function(){}}},data:function(){return{labelEmployee:this.formField[this.$options.name].labels.employee.value,labelDate:this.formField[this.$options.name].labels.date_colon.value,labelTime:this.formField[this.$options.name].labels.time_colon.value,labelLocation:this.formField[this.$options.name].labels.location_colon.value,fieldVisibility:this.formField[this.$options.name].visibility}},mixins:[n.a,s.a,r.a],methods:{getAppointmentDate:function(){return this.getFrontedFormattedDate(a()(this.bookableStart,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD"))},getAppointmentTime:function(){return this.getFrontedFormattedTime(this.bookableStart.split(" ")[1])}}}},759:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.fieldVisibility?o("div",{staticClass:"am-confirmation-booking-details"},[o("div",[o("p",[e._v("\n "+e._s(e.labelEmployee||e.capitalizeFirstLetter(e.$root.labels.employee)+":")+"\n ")]),e._v(" "),o("p",{staticClass:"am-semi-strong"},[o("img",{staticClass:"am-employee-photo",attrs:{src:e.pictureLoad(e.provider,!0),alt:e.provider.firstName+" "+e.provider.lastName},on:{error:function(t){return e.imageLoadError(e.provider,!0)}}}),e._v("\n "+e._s(e.provider.firstName+" "+e.provider.lastName)+"\n ")])]),e._v(" "),o("div",[o("p",[e._v(e._s(e.labelDate||e.$root.labels.date_colon))]),e._v(" "),o("p",{staticClass:"am-semi-strong"},[e._v("\n "+e._s(e.getAppointmentDate())+"\n ")])]),e._v(" "),o("div",[o("p",[e._v(e._s(e.labelTime||e.$root.labels.time_colon))]),e._v(" "),o("p",{staticClass:"am-semi-strong"},[e._v("\n "+e._s(e.getAppointmentTime())+"\n ")])]),e._v(" "),null!==e.location?o("div",[o("p",[e._v(e._s(e.labelLocation||e.$root.labels.location_colon))]),e._v(" "),o("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.location?e.location.name:""))])]):e._e()]):e._e()},staticRenderFns:[]}},760:function(e,t,o){var i=o(90)(o(761),o(762),!1,null,null,null);e.exports=i.exports},761:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"recurringStringFormField",props:{recurringString:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{labelRecurringActive:this.formField[this.$options.name].labels.recurring_active.value}}}},762:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-confirmation-booking-details recurring-string"},[o("div",[o("p",[e._v(e._s(e.labelRecurringActive||e.$root.labels.recurring_active))]),e._v(" "),o("p",{staticClass:"am-semi-strong"},[e._v(e._s(e.recurringString))])])])},staticRenderFns:[]}},763:function(e,t,o){var i=o(90)(o(764),o(765),!1,null,null,null);e.exports=i.exports},764:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"firstNameFormField",props:{appointment:{type:Object,default:function(){}},columnsLg:{type:Number,default:12},formValidOptions:{type:Object,default:function(){}},errors:{type:Object,default:function(){}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{firstNameLabel:this.formField.labels.first_name_colon.value}},methods:{inputChanges:function(){this.$emit("inputChanges")}},watch:{formValidOptions:function(){this.formValidOptions["customer.firstName"]&&this.$refs["customer.firstName"].$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}}}},765:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-col",{ref:"customer.firstName",attrs:{sm:e.columnsLg}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-input-"+e.classIdentifier:"",attrs:{prop:"customer.firstName",label:e.firstNameLabel||e.$root.labels.first_name_colon}},[o("el-input",{attrs:{disabled:!!e.appointment.bookings[0].customer.firstName&&!!e.appointment.bookings[0].customer.id,name:"given-name",autocomplete:"given-name"},on:{input:e.inputChanges},model:{value:e.appointment.bookings[0].customer.firstName,callback:function(t){e.$set(e.appointment.bookings[0].customer,"firstName",t)},expression:"appointment.bookings[0].customer.firstName"}})],1)],1)},staticRenderFns:[]}},766:function(e,t,o){var i=o(90)(o(767),o(768),!1,null,null,null);e.exports=i.exports},767:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"lastNameFormField",props:{appointment:{type:Object,default:function(){}},columnsLg:{type:Number,default:12},formValidOptions:{type:Object,default:function(){}},errors:{type:Object,default:function(){}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{lastNameLabel:this.formField.labels.last_name_colon.value}},methods:{inputChanges:function(){this.$emit("inputChanges")}},watch:{formValidOptions:function(){this.formValidOptions["customer.lastName"]&&this.$refs["customer.lastName"].$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}}}},768:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.formField.visibility?o("el-col",{ref:"customer.lastName",attrs:{sm:e.columnsLg}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-input-"+e.classIdentifier:"",attrs:{prop:"customer.lastName",label:e.lastNameLabel||e.$root.labels.last_name_colon}},[o("el-input",{attrs:{disabled:!!e.appointment.bookings[0].customer.lastName&&!!e.appointment.bookings[0].customer.id,name:"family-name",autocomplete:"family-name"},on:{input:e.inputChanges},model:{value:e.appointment.bookings[0].customer.lastName,callback:function(t){e.$set(e.appointment.bookings[0].customer,"lastName",t)},expression:"appointment.bookings[0].customer.lastName"}})],1)],1):e._e()},staticRenderFns:[]}},769:function(e,t,o){var i=o(90)(o(770),o(771),!1,null,null,null);e.exports=i.exports},770:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"emailFormField",props:{appointment:{type:Object,default:function(){}},columnsLg:{type:Number,default:12},formValidOptions:{type:Object,default:function(){}},errors:{type:Object,default:function(){}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{emailLabel:this.formField.labels.email_colon.value}},methods:{inputChanges:function(){this.$emit("inputChanges")}},watch:{formValidOptions:function(){this.formValidOptions["customer.email"]&&this.$refs["customer.email"].$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}}}},771:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.formField.visibility?o("el-col",{ref:"customer.email",attrs:{sm:e.columnsLg}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-input-"+e.classIdentifier:"",attrs:{prop:"customer.email",error:e.errors.email,label:e.emailLabel||e.$root.labels.email_colon}},[o("el-input",{attrs:{disabled:!!e.appointment.bookings[0].customer.email&&!!e.appointment.bookings[0].customer.id,placeholder:e.$root.labels.email_placeholder,type:"email",name:"email",autocomplete:"email"},on:{input:e.inputChanges},model:{value:e.appointment.bookings[0].customer.email,callback:function(t){e.$set(e.appointment.bookings[0].customer,"email",t)},expression:"appointment.bookings[0].customer.email"}})],1)],1):e._e()},staticRenderFns:[]}},772:function(e,t,o){var i=o(90)(o(773),o(774),!1,null,null,null);e.exports=i.exports},773:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(671),a=o.n(i);t.default={name:"phoneFormField",components:{phoneInput:a.a},props:{appointment:{type:Object,default:function(){}},columnsLg:{type:Number,default:12},formValidOptions:{type:Object,default:function(){}},errors:{type:Object,default:function(){}},phonePopulated:{type:Boolean,default:null},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{firstNameLabel:this.formField.labels.phone_colon.value,phoneError:!1}},methods:{inputChanges:function(){this.phoneError=!1,this.$emit("inputChanges")},phoneFormatted:function(e,t){this.appointment.bookings[0].customer.phone=e,this.appointment.bookings[0].customer.countryPhoneIso=t},whatsAppSetUp:function(){return this.$root.settings.notifications.whatsAppEnabled&&this.$root.settings.notifications.whatsAppAccessToken&&this.$root.settings.notifications.whatsAppBusinessID&&this.$root.settings.notifications.whatsAppPhoneID}},watch:{formValidOptions:function(){this.formValidOptions["customer.phone"]&&(this.phoneError=!0,this.$refs["customer.phone"].$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))}}}},774:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.formField.visibility?o("el-col",{ref:"customer.phone",attrs:{sm:e.columnsLg}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-input-"+e.classIdentifier:"",style:{height:e.whatsAppSetUp()?"80px":"inherit"},attrs:{prop:"customer.phone",error:e.errors.phone,label:e.firstNameLabel||e.$root.labels.phone_colon}},[o("phone-input",{attrs:{"dropdown-class":"am-dropdown-"+e.classIdentifier,savedPhone:e.appointment.bookings[0].customer.phone,disabled:!!e.appointment.bookings[0].customer.id&&!0===e.phonePopulated,countryPhoneIso:e.appointment.bookings[0].customer.countryPhoneIso},on:{phoneFormatted:e.phoneFormatted},nativeOn:{keyup:function(t){return e.inputChanges(t)}}}),e._v(" "),e.whatsAppSetUp()&&!e.phoneError?o("span",{staticClass:"am-whatsapp-opt-in-text"},[e._v("\n "+e._s(e.$root.labels.whatsapp_opt_in_text)+"\n ")]):e._e()],1)],1):e._e()},staticRenderFns:[]}},775:function(e,t,o){var i=o(90)(o(776),o(780),!1,null,null,null);e.exports=i.exports},776:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(777),a=o.n(i);t.default={name:"paymentMethodFormField",components:{paymentButtonInner:a.a},props:{totalPrice:{type:Boolean},bookableColor:{type:String},paymentOptions:{type:Array,default:function(){return[]}},appointment:{type:Object,default:function(){}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{labelPaymentMethod:this.formField[this.$options.name].labels.payment_method_colon.value}},methods:{changeItem:function(e){this.appointment.payment.gateway=e,this.$emit("changeItem")}}}},777:function(e,t,o){var i=o(90)(o(778),o(779),!1,null,null,null);e.exports=i.exports},778:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(743),a=o.n(i);t.default={name:"paymentButtonInner",components:{svgIcon:a.a},props:{value:{type:String,default:""},color:{type:String,default:""},formField:{type:Object,default:function(){}},customizeOption:{type:String,default:""}},data:function(){return{labelPaymentMethodBtnMollie:this.formField[this.customizeOption].labels.payment_btn_mollie?this.formField[this.customizeOption].labels.payment_btn_mollie.value:this.$root.labels.payment_btn_mollie,labelPaymentMethodBtnStripe:this.formField[this.customizeOption].labels.payment_btn_stripe?this.formField[this.customizeOption].labels.payment_btn_stripe.value:this.$root.labels.payment_btn_stripe,labelPaymentMethodBtnOnsite:this.formField[this.customizeOption].labels.payment_btn_on_site?this.formField[this.customizeOption].labels.payment_btn_on_site.value:this.$root.labels.payment_btn_on_site,labelPaymentMethodBtnSquare:this.formField[this.customizeOption].labels.payment_btn_square?this.formField[this.customizeOption].labels.payment_btn_square.value:this.$root.labels.payment_btn_square}},methods:{getIconName:function(e){return e.toLowerCase()+".svg"},formatPaymentName:function(e){switch(e.toLowerCase()){case"paypal":return"Paypal";case"stripe":return this.labelPaymentMethodBtnStripe||this.$root.labels.payment_btn_stripe;case"onsite":return this.labelPaymentMethodBtnOnsite||this.$root.labels.payment_btn_on_site;case"mollie":return this.labelPaymentMethodBtnMollie||this.$root.labels.payment_btn_mollie;case"square":return this.labelPaymentMethodBtnSquare||this.$root.labels.payment_btn_square;case"razorpay":return"Razorpay";default:return e}}}}},779:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-payment-button-inner"},["onsite"!==e.value&&"mollie"!==e.value?o("img",{attrs:{width:"razorpay"===e.value?"70":"32",height:"32",src:e.$root.getUrl+"public/img/payments/icons/"+e.getIconName(e.value)}}):"onsite"===e.value||"mollie"===e.value?o("svg-icon",{attrs:{iconName:e.value,iconColor:e.color}}):e._e(),e._v(" "),"razorpay"!==e.value?o("p",[e._v(e._s(e.formatPaymentName(e.value)))]):e._e()],1)},staticRenderFns:[]}},780:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.totalPrice&&!this.$root.settings.payments.wc.enabled&&e.paymentOptions.length>1?o("el-form-item",{staticClass:"am-payment-buttons-wrapper",class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",style:{minHeight:e.formField.paymentMethodFormField.switchPaymentMethodView&&"Selectbox"===e.formField.paymentMethodFormField.switchPaymentMethodView?"unset":""}},[o("template",{slot:"label"},[o("span",{style:{fontWeight:700}},[e._v("\n "+e._s(e.labelPaymentMethod||e.$root.labels.payment_method_colon)+"\n ")])]),e._v(" "),e.formField.paymentMethodFormField.switchPaymentMethodView&&"Selectbox"===e.formField.paymentMethodFormField.switchPaymentMethodView?o("el-select",{attrs:{"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",placeholder:""},on:{change:e.changeItem},model:{value:e.appointment.payment.gateway,callback:function(t){e.$set(e.appointment.payment,"gateway",t)},expression:"appointment.payment.gateway"}},e._l(e.paymentOptions,function(t){return o("el-option",{key:t.value,style:{color:e.appointment.payment.gateway===t.value?e.bookableColor:""},attrs:{label:t.label,value:t.value}})}),1):e._l(e.paymentOptions,function(t){return o("el-button",{key:t.value,staticClass:"am-payment-button",class:e.appointment.payment.gateway===t.value?"am-payment-button-selected":"",attrs:{value:t.value},on:{click:function(o){return e.changeItem(t.value)}}},[o("payment-button-inner",{attrs:{"customize-option":"paymentMethodFormField","form-field":e.formField,value:t.value.toLowerCase(),color:e.appointment.payment.gateway===t.value?e.$root.settings.customization.primaryColor:""}})],1)})],2):e._e()},staticRenderFns:[]}},781:function(e,t,o){var i=o(90)(o(782),o(783),!1,null,null,null);e.exports=i.exports},782:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"paymentTypeFormField",props:{show:{type:Boolean,default:!1},bookableColor:{type:String,default:""},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{paymentType:"depositOnly",paymentTypeOptions:[{value:"depositOnly",label:this.formField.hasOwnProperty(this.$options.name)&&this.formField[this.$options.name].labels.payment_type_deposit_only.value?this.formField[this.$options.name].labels.payment_type_deposit_only.value:this.$root.labels.payment_type_deposit_only},{value:"fullAmount",label:this.formField.hasOwnProperty(this.$options.name)&&this.formField[this.$options.name].labels.payment_type_full_amount.value?this.formField[this.$options.name].labels.payment_type_full_amount.value:this.$root.labels.payment_type_full_amount}],labelPaymentType:this.formField.hasOwnProperty(this.$options.name)?this.formField[this.$options.name].labels.payment_type_colon.value:""}},methods:{changePaymentType:function(e){this.paymentType=e===this.paymentTypeOptions[0].label?this.paymentTypeOptions[0].value:this.paymentTypeOptions[1].value;var t=this.paymentType===this.paymentTypeOptions[0].value?this.paymentTypeOptions[0].value:this.paymentTypeOptions[1].value;this.$emit("changeItem",{value:t})}}}},783:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.show?o("el-form-item",{staticClass:"am-payment-type",class:e.$root.settings.customization.forms?"am-radio-btn-"+e.classIdentifier:""},[o("template",{slot:"label"},[o("span",{style:{fontWeight:700}},[e._v("\n "+e._s(e.labelPaymentType||e.$root.labels.payment_type_colon)+"\n ")])]),e._v(" "),o("el-radio-group",{on:{change:e.changePaymentType},model:{value:e.paymentType,callback:function(t){e.paymentType=t},expression:"paymentType"}},e._l(e.paymentTypeOptions,function(t){return o("el-radio",{key:t.value,staticClass:"am-payment-type-radio",class:t.value===e.paymentType?"am-payment-type-radio-checked":"",attrs:{border:"",label:t.label}})}),1)],2):e._e()},staticRenderFns:[]}},784:function(e,t,o){var i=o(90)(o(785),o(786),!1,null,null,null);e.exports=i.exports},785:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"stripeCardFormField",props:{totalPrice:{type:Boolean},errors:{type:Object,default:function(){return{}}},appointment:{type:Object,default:function(){return{}}},stripePayment:{type:Object,default:function(){return{stripe:null,cardElement:null}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){return{}}}},data:function(){return{labelCreditCard:this.formField[this.$options.name].labels.credit_or_debit_card_colon.value}},mounted:function(){this.$root.settings.payments.stripe.enabled&&this.stripeInit()},methods:{stripeInit:function(){this.stripePayment.stripe=Stripe(this.getStripePublishableKey());var e=this.stripePayment.stripe.elements({locale:window.localeLanguage[0].replace(/_/g,"-")});this.stripePayment.cardElement=e.create("card"),this.stripePayment.cardElement.mount("#card-element-"+this.$root.shortcodeData.counter)},getStripePublishableKey:function(){return!1===this.$root.settings.payments.stripe.testMode?this.$root.settings.payments.stripe.livePublishableKey:this.$root.settings.payments.stripe.testPublishableKey}}}},786:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{name:"fade"}},[o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"stripe"===e.appointment.payment.gateway&&e.totalPrice,expression:"appointment.payment.gateway === 'stripe' && totalPrice"}],class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{error:e.errors.stripe}},[o("template",{slot:"label"},[o("span",{style:{fontWeight:700}},[e._v("\n "+e._s(e.labelCreditCard||e.$root.labels.credit_or_debit_card_colon)+"\n ")])]),e._v(" "),o("div",{staticClass:"am-stripe",attrs:{id:"card-element-"+this.$root.shortcodeData.counter}})],2)],1)},staticRenderFns:[]}},787:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-confirmation-booking",class:[e.dialogClass,e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-form-"+e.formType+"-"+e.formName+"-"+e.bookableType:""],attrs:{id:"am-confirm-booking"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetched,expression:"fetched"}]},[o("div",{staticClass:"am-payment-error"},[o("el-alert",{directives:[{name:"show",rawName:"v-show",value:e.headerErrorShow,expression:"headerErrorShow"}],attrs:{id:"am-payment-error-"+e.$root.shortcodeData.counter,title:""!==e.headerErrorMessage?e.headerErrorMessage:e.$root.labels.payment_error,type:"warning","show-icon":""}})],1),e._v(" "),"appointment"===e.bookableType&&e.serviceHeadingVisibility?o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetched,expression:"fetched"}],staticClass:"am-confirmation-booking-header"},[o("img",{attrs:{src:e.pictureLoad(e.bookable,!1),alt:e.bookable.name},on:{error:function(t){return e.imageLoadError(e.bookable,!1)}}}),e._v(" "),o("h2",{class:"am-block-"+e.formType+"-"+e.formName+"-"+e.bookableType,style:{fontWeight:500,fontFamily:e.$root.settings.customization.font}},[e._v("\n "+e._s(e.bookable.name)+"\n ")])]):e._e(),e._v(" "),"package"===e.bookableType&&e.hasHeader?o("div",{staticClass:"am-confirmation-booking-package-wrapper"},[o("div",{staticClass:"am-package-header"},[o("div",{staticClass:"am-package-header-image-data-wrapper"},[o("div",{staticClass:"am-package-image"},[o("img",{attrs:{src:e.pictureLoad(e.bookable,!1)},on:{error:function(t){return e.imageLoadError(e.bookable,!1)}}}),e._v(" "),o("span",{style:{"background-color":e.bookable.color}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/am-package-catalog.svg"}})])]),e._v(" "),o("div",{staticClass:"am-package-data"},[o("div",{staticClass:"am-package-title"},[o("h2",{style:{fontWeight:500,fontFamily:e.$root.settings.customization.font}},[e._v("\n "+e._s(e.bookable.name)+"\n ")])])])]),e._v(" "),e.bookable.price?o("div",{staticClass:"am-package-price"},[o("div",{staticClass:"am-package-price__wrapper",class:{"am-service-price__wrapper-discount":e.bookable.discount&&!e.bookable.calculatedPrice}},[e._v("\n "+e._s(e.getFormattedPrice(e.bookable.price,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")]),e._v(" "),e.bookable.discount&&!e.bookable.calculatedPrice?o("div",{staticClass:"am-package-price__discount"},[o("img",{staticClass:"am-package-price__discount-image",attrs:{src:e.$root.getUrl+"public/img/am-package-catalog.svg"}}),e._v(" "),o("div",{staticClass:"am-package-price__discount-text"},[e._v("\n "+e._s(e.$root.labels.package_discount_text+" "+e.bookable.discount+"%")+"\n ")])]):e._e()]):e._e()])]):e._e(),e._v(" "),o("el-form",{ref:"booking",staticClass:"am-confirm-booking-form",attrs:{model:e.appointment.bookings[0],rules:e.rules,"label-position":"top"},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)}}},[o("el-row",{staticClass:"am-confirm-booking-data",attrs:{gutter:24}},["appointment"===e.bookableType?o("el-col",{attrs:{sm:24}},[o("confirm-heading-data-form-field",{attrs:{"bookable-start":e.bookable.bookingStart,provider:e.provider,location:e.location,"form-field":e.formsData[e.formName][e.bookableType].itemsStatic}})],1):e._e(),e._v(" "),e.recurringData.length&&e.recurringStringVisibility?o("el-col",{attrs:{sm:24}},[o("recurring-string-form-field",{attrs:{"recurring-string":e.recurringString,"form-field":e.formsData[e.formName][e.bookableType].itemsStatic}})],1):e._e(),e._v(" "),e._l(e.formsData[e.formName][e.bookableType].itemsDraggable,function(t,i){return[o(i,{tag:"component",attrs:{appointment:e.appointment,"columns-lg":e.columnsLg,"form-valid-options":e.formValidOptions,errors:e.errors,"phone-populated":!!e.phonePopulated,"class-identifier":e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?e.formType+"-"+e.formName+"-"+e.bookableType:"",formField:t},on:{inputChanges:e.validateFieldsForPayPal}})]}),e._v(" "),o("div",{staticClass:"am-custom-fields"},[o("el-row",{attrs:{gutter:24}},[e._l(e.customFields,function(t,i){return e.isBookableCustomFieldVisible(t)?o("el-col",{key:t.id,ref:"customFields."+t.id+".value",refInFor:!0,attrs:{sm:e.columnsLg}},[o("el-form-item",{class:[e.getCustomFieldClass(t),e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-custom-"+e.formType+"-"+e.formName+"-"+e.bookableType:""],attrs:{label:"content"!==t.type&&"checkbox"!==t.type&&"radio"!==t.type&&t.label?t.label:"",prop:!0===t.required&&"content"!==t.type&&"file"!==t.type?"customFields."+t.id+".value":!0===t.required&&"file"!==t.type?"inputFile":null,error:e.errors.files&&"file"===t.type&&t.required?e.errors.files["files"+t.id]:null}},["checkbox"!==t.type&&"radio"!==t.type||!t.label?e._e():o("span",{class:"checkbox"!==t.type&&"radio"!==t.type||!t.required?"":"am-custom-required-as-html",domProps:{innerHTML:e._s(t.label?"<label class='el-form-item__label'>"+t.label+"</label>":"")}}),e._v(" "),"text"===t.type?o("el-input",{attrs:{placeholder:""},on:{input:function(t){return e.validateFieldsForPayPal()}},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}}):e._e(),e._v(" "),"address"===t.type?o("div",{staticClass:"el-input",style:{marginBottom:e.$root.settings.general.gMapApiKey?"":0}},[e.googleMapsLoaded()?o("vue-google-autocomplete",{ref:"amelia-cf-address-"+t.id,refInFor:!0,attrs:{id:"address-autocomplete-"+t.id,classname:"el-input__inner",placeholder:"",types:""},on:{change:function(o){return e.setAddressCF(o,t.id)}}}):o("el-input",{attrs:{placeholder:""},on:{input:function(t){return e.validateFieldsForPayPal()}},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}})],1):"text-area"===t.type?o("el-input",{staticClass:"am-front-texarea",attrs:{placeholder:"",type:"textarea",rows:3},on:{input:function(t){return e.validateFieldsForPayPal()}},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}}):"content"===t.type?o("div",{staticClass:"am-text-content"},[o("i",{staticClass:"el-icon-info"}),e._v(" "),o("p",{staticStyle:{display:"inline"},domProps:{innerHTML:e._s(t.label)}})]):"select"===t.type?o("el-select",{attrs:{"popper-class":e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-dropdown-"+e.formType+"-"+e.formName+"-"+e.bookableType:"",placeholder:"",clearable:""},on:{change:function(t){return e.validateFieldsForPayPal()}},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(i,a){return o("el-option",{key:a,style:{color:e.appointment.bookings[0].customFields[t.id].value===i?e.bookable.color:""},attrs:{value:i,label:i}})}),1):"checkbox"===t.type?o("el-checkbox-group",{on:{change:e.selectedCustomFieldValue},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(e,t){return o("el-checkbox",{key:t,attrs:{label:e}})}),1):"radio"===t.type?o("el-radio-group",{on:{change:e.selectedCustomFieldValue},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}},e._l(e.getCustomFieldOptions(t.options),function(e,t){return o("el-radio",{key:t,ref:"customFieldsRadioButtons",refInFor:!0,attrs:{label:e}})}),1):e._e(),e._v(" "),"file"===t.type?o("div",[o("el-upload",{ref:"customFieldsFiles",refInFor:!0,attrs:{"auto-upload":!1,action:"",drag:"",accept:e.$root.fileUploadExtensions.join(","),"on-change":e.onSelectFiles,multiple:""}},[o("i",{staticClass:"el-icon-upload"}),o("span",[e._v(e._s(e.$root.labels.file_upload))])])],1):e._e(),e._v(" "),"datepicker"===t.type?o("div",[o("v-date-picker",{staticClass:"am-calendar-picker",attrs:{mode:"single","popover-visibility":"focus","popover-direction":"top","popover-align":e.screenWidth<768?"center":"left","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner"},"input-class":"el-input__inner","is-expanded":!1,"is-required":!0,disabled:!1,formats:e.vCalendarFormats},on:{input:function(t){return e.validateFieldsForPayPal()}},model:{value:e.appointment.bookings[0].customFields[t.id].value,callback:function(o){e.$set(e.appointment.bookings[0].customFields[t.id],"value",o)},expression:"appointment.bookings[0].customFields[customField.id].value"}})],1):e._e()],1)],1):e._e()}),e._v(" "),e.$root.settings.general.googleRecaptcha.enabled?o("el-col",{class:e.$root.settings.general.googleRecaptcha.invisible?"":"am-confirm-booking-recaptcha",attrs:{sm:e.columnsLg}},[o("el-form-item",{attrs:{error:e.errors.recaptcha}},[o("div",{attrs:{id:"recaptcha"}},[o("vue-recaptcha",{ref:"recaptcha",staticClass:"am-confirm-booking-recaptcha-block",attrs:{size:e.$root.settings.general.googleRecaptcha.invisible?"invisible":null,loadRecaptchaScript:!0,sitekey:e.$root.settings.general.googleRecaptcha.siteKey},on:{verify:e.onRecaptchaVerify,expired:e.onRecaptchaExpired}})],1)])],1):e._e()],2)],1)],2),e._v(" "),o("el-row",{staticClass:"am-confirm-booking-payment",attrs:{gutter:24}},[o("el-col",{attrs:{span:e.formsData[e.formName][e.bookableType].itemsStatic.paymentMethodFormField.switchPaymentMethodView&&"Selectbox"===e.formsData[e.formName][e.bookableType].itemsStatic.paymentMethodFormField.switchPaymentMethodView?12:24}},[o("payment-method-form-field",{attrs:{"total-price":e.getTotalPrice()>0,"bookable-color":e.bookable.color,"payment-options":e.paymentOptions,appointment:e.appointment,classIdentifier:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?e.formType+"-"+e.formName+"-"+e.bookableType:"","form-field":e.formsData[e.formName][e.bookableType].itemsStatic},on:{changeItem:function(t){return e.validateFieldsForPayPal()}}})],1),e._v(" "),o("el-col",{attrs:{sm:e.columnsLg}},[o("stripe-card-form-field",{attrs:{appointment:e.appointment,errors:e.errors,"total-price":e.getTotalPrice()>0,"stripe-payment":e.stripePayment,"class-identifier":e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?e.formType+"-"+e.formName+"-"+e.bookableType:"","form-field":e.formsData[e.formName][e.bookableType].itemsStatic}})],1)],1),e._v(" "),o("el-row",{staticClass:"am-confirm-booking-data",attrs:{gutter:24}},[o("el-col",{attrs:{sm:24,lg:24}},[o("payment-type-form-field",{attrs:{show:e.bookable.depositData&&e.bookable.depositData.depositFullPayment&&"onSite"!==e.getPaymentGateway(),"bookable-color":e.bookable.color,classIdentifier:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?e.formType+"-"+e.formName+"-"+e.bookableType:"","form-field":e.formsData[e.formName][e.bookableType].itemsStatic},on:{changeItem:e.paymentTypeChanged}})],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{sm:24}},[e.packageData?e.bookable.price>0?o("div",{staticClass:"am-confirmation-total am-confirmation-booking-cost"},[e.amountData.instant.tax>0?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.priceLabels.subtotal_colon.value||e.$root.labels.subtotal_colon)+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.total,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.amountData.instant.tax>0?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.getTaxLabel())+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right"},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.tax,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.bookable.price>0?o("el-row",{class:{"am-confirmation-total-bordered":!e.onlyTotal},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.priceLabels.total_cost_colon.value||e.$root.labels.total_cost_colon)+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.total+e.amountData.instant.tax,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.withDeposit?o("el-row",{staticClass:"am-confirmation-deposit",attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.deposit.value||e.$root.labels.deposit)+" "),o("label",{staticClass:"am-confirmation-deposit-info"},[e._v(e._s(e.priceLabels.pay_now.value||e.$root.labels.pay_now))])])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.deposit,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.withDeposit?o("el-row",{staticClass:"am-confirmation-deposit-price",attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.pay_later.value||e.$root.labels.pay_later))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.getTotalPrice()-e.amountData.instant.deposit,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e()],1):e._e():o("div",{staticClass:"am-confirmation-booking-cost",style:{paddingTop:"16px"}},[e.bookable.maxCapacity>1?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.total_number_of_persons.value||e.$root.labels.total_number_of_persons))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right"},[e._v("\n "+e._s(e.bookable.ticketsData?e.bookable.ticketsData.totalTickets:e.appointment.bookings[0].persons)+"\n ")])])],1):e._e(),e._v(" "),e._l(e.instantPaymentBasePriceData,function(t,i){return o("el-row",{key:i,attrs:{gutter:24}},[o("el-col",{attrs:{span:6}},[o("p",{style:{visibility:0===i?"visible":"hidden"}},[e._v("\n "+e._s(e.priceLabels.base_price_colon.value||e.$root.labels.base_price_colon)+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:18}},[o("p",{staticClass:"am-semi-strong am-align-right"},[e._v("\n "+e._s(e.bookable.ticketsData?e.getBookingTicketsBasePriceCalculationString(e.bookable.ticketsData):e.getBookingBasePriceCalculationString(t.count,t.price))+"\n ")])])],1)}),e._v(" "),e.appointment.bookings[0].extras.length>0&&e.amountData.instant.total>0?o("el-row",{staticClass:"am-confirmation-extras-cost",attrs:{gutter:24}},[e.selectedExtras.length>0?o("el-collapse",{class:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-block-"+e.formType+"-"+e.formName+"-"+e.bookableType:"",attrs:{accordion:""}},[o("el-collapse-item",{attrs:{name:"1"}},[o("template",{slot:"title"},[o("div",{staticClass:"am-extras-title"},[e._v("\n "+e._s(e.priceLabels.extras_costs_colon.value||e.$root.labels.extras_costs_colon)+"\n ")]),e._v(" "),o("div",{staticClass:"am-extras-total-cost am-semi-strong",style:"event"!==e.bookableType||e.useGlobalCustomization?{}:e.getBookableColor(!1)},[e._v("\n "+e._s(e.getFormattedPrice(e.getExtrasPrice(e.instantPaymentBookingsCount),!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])]),e._v(" "),e._l(e.selectedExtras,function(t){return o("div",[o("div",{staticClass:"am-extras-details"},[e._v(e._s(t.name))]),e._v(" "),o("div",{staticClass:"am-extras-cost"},[e._v(e._s(e.getSelectedExtraDetails(t)))])])})],2)],1):o("div",[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.extras_costs_colon.value||e.$root.labels.extras_costs_colon))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right"},[e._v("\n "+e._s(e.getFormattedPrice(e.getExtrasPrice(e.instantPaymentBookingsCount),!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1)],1):e._e(),e._v(" "),e.$root.settings.payments.coupons&&e.amountData.instant.total>0?o("el-row",{staticClass:"am-add-coupon am-flex-row-middle-align",attrs:{gutter:0}},["appointment"===e.bookableType?o("el-col",{attrs:{sm:10,xs:10}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/coupon.svg",alt:"add-coupon"}}),e._v(" "),o("span",[e._v(e._s(e.$root.labels.add_coupon))])]):o("el-col",{attrs:{sm:10,xs:10}},[o("svg",{attrs:{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[o("desc",[e._v("Created with Sketch.")]),e._v(" "),o("defs"),e._v(" "),o("g",{style:{fill:e.bookable.color},attrs:{id:"Icons",stroke:"none","stroke-width":"1","fill-rule":"evenodd"}},[o("g",{attrs:{id:"Group",fill:e.bookable.color}},[o("path",{style:{fill:e.bookable.color},attrs:{d:"M7.152,12.7704615 C6.29353846,11.5809231 6.26092308,10.8652308 6.23446154,10.2904615 C6.22953846,10.1852308 6.22584615,10.0978462 6.21661538,10.0055385 C6.17415385,9.54953846 5.84676923,8.64738462 5.22769231,7.74461538 C4.37538462,6.49907692 3.79384615,4.63569231 4.95876923,3.48307692 C5.232,3.21230769 5.58523077,3.06953846 5.97907692,3.06953846 C6.952,3.06953846 7.98892308,4.02892308 8.61538462,4.85846154 L8.61538462,3.55261538 L8.61538462,1.23261538 C8.61538462,0.552615385 8.06276923,0 7.38461538,0 L5.53661538,0 C5.36861538,0 5.232,0.134769231 5.22892308,0.302769231 C5.22092308,0.804923077 4.80738462,1.21353846 4.30769231,1.21353846 C3.80738462,1.21353846 3.39446154,0.804923077 3.38646154,0.302769231 C3.38338462,0.134769231 3.24676923,0 3.07876923,0 L1.23076923,0 C0.552,0 0,0.552615385 0,1.23261538 L0,12.3058462 C0,12.9858462 0.552,13.5384615 1.23076923,13.5384615 L3.07692308,13.5384615 C3.24676923,13.5384615 3.38461538,13.4006154 3.38461538,13.2307692 C3.38461538,12.7206154 3.79876923,12.3058462 4.30769231,12.3058462 C4.81661538,12.3058462 5.23076923,12.7206154 5.23076923,13.2307692 C5.23076923,13.4006154 5.36861538,13.5384615 5.53846154,13.5384615 L7.38461538,13.5384615 C7.52430769,13.5384615 7.65907692,13.5101538 7.78707692,13.4646154 C7.56738462,13.2683077 7.352,13.048 7.152,12.7704615",id:"Fill-1450"}}),e._v(" "),o("path",{style:{fill:e.bookable.color},attrs:{d:"M15.9536615,11.8383385 C15.9487385,11.8303385 15.4373538,10.9934154 15.0724308,9.83095385 C14.9881231,9.55956923 14.8816615,9.17741538 14.7604308,8.73987692 C14.1825846,6.66295385 13.6588923,4.89741538 13.0865846,4.32141538 C12.9450462,4.17987692 12.5161231,3.74787692 9.58812308,3.26295385 C9.50135385,3.2488 9.40843077,3.27341538 9.33950769,3.33187692 C9.27058462,3.39033846 9.23058462,3.47587692 9.23058462,3.56633846 L9.23058462,6.03956923 C9.23058462,6.16449231 9.30627692,6.27710769 9.42258462,6.32449231 L10.3192,6.68941538 C10.3782769,6.90172308 10.4908923,7.28572308 10.6016615,7.56572308 C10.5487385,7.65310769 10.5050462,7.75341538 10.4570462,7.86233846 C10.3764308,8.04695385 10.2878154,8.25064615 10.1518154,8.40018462 C9.55489231,8.01741538 8.95181538,6.91895385 8.56781538,5.96264615 C8.26504615,5.20756923 6.93273846,3.69926154 5.97889231,3.69926154 C5.74996923,3.69926154 5.54750769,3.78110769 5.3912,3.93495385 C4.49643077,4.81926154 5.01766154,6.35649231 5.73581538,7.40449231 C6.3272,8.26849231 6.7672,9.29187692 6.82996923,9.95218462 C6.83981538,10.0611077 6.84473846,10.1644923 6.84966154,10.2666462 C6.87489231,10.8100308 6.90073846,11.3724923 7.65089231,12.4112615 C8.04289231,12.9534154 8.50135385,13.2721846 8.98627692,13.6100308 C9.67858462,14.0912615 10.3942769,14.5897231 11.1179692,15.8457231 C11.1727385,15.9411077 11.2742769,16.0001846 11.3844308,16.0001846 C15.0004308,16.0001846 15.9819692,12.1115692 15.9912,12.0721846 C16.0108923,11.9921846 15.9967385,11.9084923 15.9536615,11.8383385",id:"Fill-1452"}})])])]),e._v(" "),o("span",{style:{color:e.bookable.color}},[e._v(e._s(e.$root.labels.add_coupon))])]),e._v(" "),o("el-col",{attrs:{sm:14,xs:14}},[o("el-form",{ref:"coupon",attrs:{model:e.appointment.bookings[0].customer,rules:e.rules,"label-position":"top","status-icon":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmitCoupon(t)}}},[o("el-form-item",{class:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-input-"+e.formType+"-"+e.formName+"-"+e.bookableType:"",style:"event"!==e.bookableType||e.useGlobalCustomization?{}:e.getBookableColor(!1),attrs:{error:e.errors.coupon,prop:"couponCode"}},[o("el-input",{staticClass:"am-add-coupon-field",style:"event"!==e.bookableType||e.useGlobalCustomization?{}:e.getBookableColor(!1),attrs:{type:"text",size:"small","native-type":"submit"},on:{input:function(t){return e.validateFieldsForPayPal()}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmitCoupon(t)}},model:{value:e.coupon.code,callback:function(t){e.$set(e.coupon,"code",t)},expression:"coupon.code"}},[o("el-button",{staticClass:"am-add-coupon-button",style:"event"!==e.bookableType||e.useGlobalCustomization?{}:e.getBookableColor(!0),attrs:{slot:"append",size:"mini",icon:"el-icon-check",disabled:!e.coupon.code||""===e.coupon.code.trim(),"native-type":"submit"},on:{click:e.checkCoupon},slot:"append"})],1)],1)],1)],1)],1):e._e(),e._v(" "),o("el-row",{directives:[{name:"show",rawName:"v-show",value:e.$root.settings.payments.coupons&&e.recurringData.length&&e.couponLimit<e.recurringData.length+1&&(e.coupon.discount||e.coupon.deduction),expression:"$root.settings.payments.coupons && recurringData.length && couponLimit < recurringData.length + 1 && (coupon.discount || coupon.deduction)"}],staticClass:"am-coupon-limit"},[o("el-col",{attrs:{sm:2,xs:4}},[o("div",{staticStyle:{display:"inline-block"}},[o("img",{staticClass:"svg-amelia",attrs:{src:e.$root.getUrl+"public/img/coupon-limit.svg",alt:"coupon-limit"}})])]),e._v(" "),o("el-col",{attrs:{sm:22,xs:20}},[o("div",{staticClass:"am-coupon-limit-text"},[o("strong",[e._v(e._s(e.$root.labels.coupons_used))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.coupons_used_description)+" "+e._s(e.couponLimit))])])])],1),e._v(" "),e.amountData.instant.total>0?o("div",{staticClass:"am-confirmation-total"},[e.amountData.instant.discount>0||e.amountData.instant.tax>0?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.priceLabels.subtotal_colon.value||e.$root.labels.subtotal_colon)+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.total,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.amountData.instant.discount>0?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.discount_amount_colon.value||e.$root.labels.discount_amount_colon))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.discount,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.amountData.instant.tax>0?o("el-row",{attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.getTaxLabel())+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.tax,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),o("el-row",{class:{"am-confirmation-total-bordered":!e.onlyTotal},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v("\n "+e._s(e.priceLabels.total_cost_colon.value||e.$root.labels.total_cost_colon)+"\n ")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.getTotalPrice(),!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1),e._v(" "),e.withDeposit?o("el-row",{staticClass:"am-confirmation-deposit",style:{color:e.bookable.color},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.deposit.value||e.$root.labels.deposit)+" "),o("label",{staticClass:"am-confirmation-deposit-info"},[e._v(e._s(e.priceLabels.pay_now.value||e.$root.labels.pay_now))])])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.instant.deposit,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e(),e._v(" "),e.withDeposit?o("el-row",{staticClass:"am-confirmation-deposit-price",style:{color:e.bookable.color},attrs:{gutter:24}},[o("el-col",{attrs:{span:12}},[o("p",[e._v(e._s(e.priceLabels.pay_later.value||e.$root.labels.pay_later))])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("p",{staticClass:"am-semi-strong am-align-right",style:{color:e.bookable.color}},[e._v("\n "+e._s(e.getFormattedPrice(e.getTotalPrice()-e.amountData.instant.deposit,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e()],1):e._e(),e._v(" "),e.recurringData.length&&e.amountData.postponed.total>0?o("el-row",{staticClass:"am-confirmation-extras-cost",attrs:{gutter:24}},[o("el-collapse",{class:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-block-"+e.formType+"-"+e.formName+"-"+e.bookableType:"",attrs:{accordion:""}},[o("el-collapse-item",{attrs:{name:"1"}},[o("template",{slot:"title"},[o("div",{staticClass:"am-extras-title"},[e._v(e._s(e.priceLabels.recurring_costs_colon.value||e.$root.labels.recurring_costs_colon))]),e._v(" "),o("div",{staticClass:"am-extras-total-cost am-semi-strong"},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.postponed.total-e.amountData.postponed.discount+e.amountData.postponed.tax,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])]),e._v(" "),e._l(e.amountData.postponed.totals,function(t,i){return o("div",{key:i},[o("div",{staticClass:"am-extras-details",style:{visibility:0===i?"visible":"hidden"}},[e._v("\n "+e._s(e.priceLabels.base_price_colon.value||e.$root.labels.base_price_colon)+"\n ")]),e._v(" "),o("div",{staticClass:"am-extras-cost"},[e._v("\n "+e._s(t.count+" "+(t.count?e.$root.labels.appointments.toLowerCase():e.$root.labels.appointment.toLowerCase())+" x "+e.getFormattedPrice(t.total,!e.$root.settings.payments.hideCurrencySymbolFrontend)+" = "+e.getFormattedPrice(t.count*t.total,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])}),e._v(" "),e.amountData.postponed.discount?o("div",[o("div",{staticClass:"am-extras-details"},[e._v(" "+e._s(e.priceLabels.discount_amount_colon.value||e.$root.labels.discount_amount_colon))]),e._v(" "),o("div",{staticClass:"am-extras-cost"},[e._v("\n "+e._s(e.getFormattedPrice(e.amountData.postponed.discount,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])]):e._e(),e._v(" "),e.amountData.postponed.tax?o("div",[o("div",{staticClass:"am-extras-details"},[e._v("\n "+e._s(e.getTaxLabel())+"\n ")]),e._v(" "),o("div",{staticClass:"am-extras-cost"},[e._v(e._s(e.getFormattedPrice(e.amountData.postponed.tax,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])]):e._e()],2)],1)],1):e._e()],2)])],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer payment-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.hasCancel?o("div",{staticClass:"el-button el-button--default",style:"event"===e.bookableType?e.bookableCancelStyle:"",on:{mouseleave:function(t){return e.setBookableCancelStyle(!1)},mouseover:function(t){return e.setBookableCancelStyle(!0)},click:function(t){return e.cancelBooking()}}},[o("span",{style:"event"===e.bookableType?e.bookableCancelSpanStyle:""},[e._v(e._s(e.$root.labels.cancel))])]):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.$root.settings.payments.payPal.enabled&&"payPal"===e.appointment.payment.gateway&&0!==e.getTotalPrice(),expression:"$root.settings.payments.payPal.enabled && appointment.payment.gateway === 'payPal' && getTotalPrice() !== 0"}],staticClass:"paypal-button el-button el-button--primary",style:"event"===e.bookableType?e.bookableConfirmStyle:"",on:{mouseleave:function(t){return e.setBookableConfirmStyle(!1)},mouseover:function(t){return e.setBookableConfirmStyle(!0)}}},[o("div",{attrs:{id:"am-paypal-button-container"}}),e._v(" "),o("span",[e._v(e._s(e.$root.labels.confirm))])]),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmBookingButton,expression:"showConfirmBookingButton"}],staticClass:"el-button el-button--primary",style:"event"===e.bookableType?e.bookableConfirmStyle:"",on:{mouseleave:function(t){return e.setBookableConfirmStyle(!1)},mouseover:function(t){return e.setBookableConfirmStyle(!0)},click:function(t){return e.confirmBooking()}}},[o("span",[e._v(e._s(e.$root.labels.confirm))])])])],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.fetched&&!e.paid,expression:"!fetched && !paid"}],staticClass:"am-booking-fetched",attrs:{id:"am-spinner"}},["payPal"===e.appointment.payment.gateway?o("h4",{style:{color:"event"===e.bookableType&&"eventListForm"===e.formType?e.formsData.globalSettings.formTextColor:e.formsData[e.$options.name][e.bookableType].globalSettings.formTextColor}},[e._v("\n "+e._s(e.$root.labels.waiting_for_payment)+"\n ")]):o("h4",{style:{color:"event"===e.bookableType&&"eventListForm"===e.formType?e.formsData.globalSettings.formTextColor:e.formsData[e.$options.name][e.bookableType].globalSettings.formTextColor}},[e._v("\n "+e._s(e.$root.labels.please_wait)+"\n ")]),e._v(" "),o("div",{staticClass:"am-svg-wrapper"},["event"!==e.bookableType||e.useGlobalCustomization?o("span",[o("img",{staticClass:"svg-amelia am-spin",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}}),e._v(" "),o("img",{staticClass:"svg-amelia am-hourglass",attrs:{src:e.$root.getUrl+"public/img/hourglass.svg"}})]):o("span",[o("svg",{staticClass:"am-spin",attrs:{width:"160",height:"160",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#7F8FA4"}},[o("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[o("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[o("path",{style:{stroke:e.bookable.color},attrs:{d:"M36 18c0-9.94-8.06-18-18-18",stroke:e.bookable.color}},[o("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])]),e._v(" "),o("svg",{staticClass:"am-hourglass",attrs:{width:"12px",height:"16px",viewBox:"0 0 12 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[o("g",{attrs:{id:"Icons",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",transform:"translate(-2.000000, 0.000000)"}},[o("g",{style:{fill:e.bookable.color},attrs:{id:"sat",transform:"translate(2.000000, 0.000000)"}},[o("path",{style:{fill:e.bookable.color,stroke:"none"},attrs:{d:"M8.37968,4.8 L3.32848,4.8 C3.22074667,4.8 3.12368,4.86506667 3.08208,4.9648 C3.04101333,5.06453333 3.06394667,5.1792 3.14021333,5.25546667 L5.67834667,7.79093333 C5.72794667,7.84106667 5.79621333,7.86933333 5.86661333,7.86933333 C5.95941333,7.8672 6.00634667,7.84106667 6.05594667,7.7904 L8.56901333,5.2544 C8.64474667,5.1776 8.66714667,5.06346667 8.62554667,4.96426667 C8.58448,4.86453333 8.48741333,4.8 8.37968,4.8",id:"Fill-694"}}),e._v(" "),o("path",{style:{fill:e.bookable.color,stroke:"none"},attrs:{d:"M6.82293333,7.62293333 C6.6144,7.83146667 6.6144,8.16853333 6.82293333,8.37706667 L9.04,10.5941333 C9.74506667,11.2992 10.1333333,12.2368 10.1333333,13.2341333 L10.1333333,14.4 L9.2,14.4 L6.08,10.24 C5.9792,10.1056 5.75413333,10.1056 5.65333333,10.24 L2.53333333,14.4 L1.6,14.4 L1.6,13.2341333 C1.6,12.2368 1.98826667,11.2992 2.69333333,10.5941333 L4.9104,8.37706667 C5.11893333,8.16853333 5.11893333,7.83146667 4.9104,7.62293333 L2.69333333,5.40586667 C1.98826667,4.7008 1.6,3.7632 1.6,2.7664 L1.6,1.6 L10.1333333,1.6 L10.1333333,2.7664 C10.1333333,3.7632 9.74506667,4.7008 9.04,5.40586667 L6.82293333,7.62293333 Z M11.2,2.7664 L11.2,1.45173333 C11.5173333,1.26666667 11.7333333,0.9264 11.7333333,0.533333333 L11.7333333,0.266666667 C11.7333333,0.119466667 11.6138667,0 11.4666667,0 L0.266666667,0 C0.119466667,0 0,0.119466667 0,0.266666667 L0,0.533333333 C0,0.9264 0.216,1.26666667 0.533333333,1.45173333 L0.533333333,2.7664 C0.533333333,4.048 1.03253333,5.25386667 1.9392,6.16 L3.7792,8 L1.9392,9.84 C1.03253333,10.7461333 0.533333333,11.952 0.533333333,13.2341333 L0.533333333,14.5482667 C0.216,14.7333333 0,15.0736 0,15.4666667 L0,15.7333333 C0,15.8805333 0.119466667,16 0.266666667,16 L11.4666667,16 C11.6138667,16 11.7333333,15.8805333 11.7333333,15.7333333 L11.7333333,15.4666667 C11.7333333,15.0736 11.5173333,14.7333333 11.2,14.5482667 L11.2,13.2341333 C11.2,11.952 10.7008,10.7461333 9.79413333,9.84 L7.95413333,8 L9.79413333,6.16 C10.7008,5.25386667 11.2,4.048 11.2,2.7664 L11.2,2.7664 Z",id:"Fill-696"}})])])])])])])])},staticRenderFns:[]}},788:function(e,t,o){var i=o(90)(o(789),o(790),!1,null,null,null);e.exports=i.exports},789:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(654),a=o(655);t.default={name:"congratulationsForm",mixins:[i.a,a.a],props:{bookableType:null,addToCalendarData:null,formType:{type:String},formsData:{type:Object,default:function(){return{}}}},data:function(){return{hoverConfirm:!1,calendarIndex:null,calendars:[],redirectUrlAfterAppointment:this.$root.settings.general.redirectUrlAfterAppointment,formObjData:this.$root.settings.customization.forms?this.formsData[this.$options.name][this.addToCalendarData.bookableType]:null,labelHeading:this.$root.settings.customization.forms?this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsHeadingFormField.labels.congratulations.value:"",headingVisibility:!this.$root.settings.customization.forms||this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsHeadingFormField.visibility,imageVisibility:!this.$root.settings.customization.forms||this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsImageFormField.visibility,labelApproved:this.$root.settings.customization.forms?this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsMessagesFormField.labels.booking_completed_approved.value:"",labelPending:this.$root.settings.customization.forms?this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsMessagesFormField.labels.booking_completed_pending.value:"",messagesVisibility:!this.$root.settings.customization.forms||this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.congratulationsMessagesFormField.visibility,addToCalendarVisibility:!this.$root.settings.customization.forms||this.formsData[this.$options.name][this.addToCalendarData.bookableType].itemsStatic.addToCalendarFormField.addToCalendarVisibility}},created:function(){},mounted:function(){if("bookable"in this.addToCalendarData&&"settings"in this.addToCalendarData.bookable){var e=JSON.parse(this.addToCalendarData.bookable.settings);e&&"general"in e&&"redirectUrlAfterAppointment"in e.general&&e.general.redirectUrlAfterAppointment?this.redirectUrlAfterAppointment=e.general.redirectUrlAfterAppointment:this.redirectUrlAfterAppointment=this.$root.clonedSettings.general.redirectUrlAfterAppointment}"beforeAddToCalendarLoaded"in window&&window.beforeAddToCalendarLoaded(this.addToCalendarData),this.addToCalendarData.active&&this.showCalendar(),this.inlineSVG(),this.scrollView("am-add-to-calendar","start","forceScroll"in this.addToCalendarData&&this.addToCalendarData.forceScroll)},methods:{formatTime:function(e){return e.toISOString().replace(/-|:|\.\d+/g,"")},trophyColor:function(){return this.$root.settings.customization.useGlobalColors[this.formType]?this.$root.settings.customization.useGlobalColors[this.formType]?this.$root.settings.customization.globalColors.formImageColor:this.formObjData.globalSettings.formImageColor:this.$root.settings.customization.globalColors.formImageColor},getCalendarLinkData:function(e,t){var o=this,i=[];switch(t){case"yahoo":return e.dates.forEach(function(t){var a=(t.end.getTime()-t.start.getTime())/6e4;a=(a<600?"0"+Math.floor(a/60):Math.floor(a/60)+"")+(a%60<10?"0"+a%60:a%60+"");var n=o.formatTime(new Date(t.start-6e4*t.start.getTimezoneOffset()));i.push(encodeURI(["http://calendar.yahoo.com/?v=60&view=d&type=20","&title="+(e.title||""),"&st="+n,"&dur="+(a||""),"&desc="+(e.description||""),"&in_loc="+(t.address||"")].join("")))}),{type:"yahoo",label:"Yahoo! Calendar",links:i};case"google":return e.dates.forEach(function(t){var a=o.formatTime(t.start),n=o.formatTime(t.end);i.push(encodeURI(["https://www.google.com/calendar/render","?action=TEMPLATE","&text="+(e.title||""),"&dates="+(a||""),"/"+(n||""),"&details="+(e.description||""),"&location="+(t.address||""),"&sprop=&sprop=name:"].join("")))}),{type:"google",label:"Google Calendar",links:i}}},executeIfMultipleLinks:function(){var e=this;if(this.calendars[this.calendarIndex].links.length>1){var t=!1;return setTimeout(function(){e.calendars[e.calendarIndex].links.forEach(function(o,i){if(0!==i)if(t)window.open(o,"_blank");else{var a=window.open(o,"_blank");try{a.addEventListener("load",function(){})}catch(o){t=!0,alert(e.$root.labels.disable_popup_blocker)}}})},1e3),!0}return!0},setBookableConfirmStyle:function(e){switch(this.addToCalendarData.type){case"appointment":break;case"event":this.hoverConfirm=e}},showCalendar:function(){var e="";this.addToCalendarData.recurringIds.forEach(function(t){e+="&recurring[]="+t}),this.calendars=[this.getCalendarLinkData({title:this.addToCalendarData.title,dates:this.addToCalendarData.dates,description:this.addToCalendarData.description},"google"),this.getCalendarLinkData({title:this.addToCalendarData.title,dates:this.addToCalendarData.dates,description:this.addToCalendarData.description},"yahoo"),{type:"ios",label:"iCal Calendar",links:[this.$root.getAjaxUrl+"/bookings/ics/"+this.addToCalendarData.id+"&token="+this.addToCalendarData.token+"&type="+this.addToCalendarData.type+e]},{type:"outlook",label:"Outlook Calendar",links:[this.$root.getAjaxUrl+"/bookings/ics/"+this.addToCalendarData.id+"&token="+this.addToCalendarData.token+"&type="+this.addToCalendarData.type+e]}]},closeDialog:function(){this.$emit("closeDialogAddToCalendar")}},computed:{bookableConfirmStyle:function(){if("event"===this.addToCalendarData.type)return this.hoverConfirm?{color:this.addToCalendarData.color,borderColor:this.addToCalendarData.color,backgroundColor:this.addToCalendarData.color,opacity:.8}:{color:"#ffffff",backgroundColor:this.addToCalendarData.color,borderColor:this.addToCalendarData.color,opacity:1}}}}},790:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-show-calendar-container"},[o("div",{staticClass:"am-success-payment",class:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-form-"+e.formType+"-"+e.$options.name+"-"+e.addToCalendarData.bookableType:"",attrs:{id:"am-add-to-calendar"}},[e.headingVisibility?o("h4",[e._v("\n "+e._s(e.labelHeading||e.$root.labels.congratulations+"!")+"\n ")]):e._e(),e._v(" "),e.imageVisibility?["event"===e.addToCalendarData.bookableType?o("div",{staticClass:"am-svg-wrapper"},[o("svg",{attrs:{width:"93px",height:"75px",viewBox:"0 0 93 75",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[o("desc",[e._v("Created with Sketch.")]),e._v(" "),o("defs"),e._v(" "),o("g",{attrs:{stroke:"none","stroke-width":"1",fill:e.addToCalendarData.color,"fill-rule":"evenodd"}},[o("g",{attrs:{id:"trophy-2",fill:e.addToCalendarData.color}},[o("path",{attrs:{id:"Shape",fill:e.addToCalendarData.color,"fill-rule":"nonzero",opacity:"0.70165308",d:"M60.4208496,70.6040039 L60.4208496,57.4158691 L32.5792969,57.4158691 L32.5792969,70.6040039 L27.4505859,70.6040039 L27.4505859,75 L65.5495605,75 L65.5495605,70.6040039 L60.4208496,70.6040039 Z M54.5595703,67.673291 L38.4407227,67.673291 L38.4407227,63.2772949 L54.5595703,63.2772949 L54.5595703,67.673291 Z"}}),e._v(" "),o("path",{attrs:{id:"Shape",fill:e.addToCalendarData.color,"fill-rule":"nonzero",opacity:"0.70165308",d:"M72.8176758,6.71499023 C72.9522949,5.34711914 73.0227539,3.97749023 73.0227539,2.61196289 C55.5124512,-0.870703125 37.4876953,-0.870703125 19.9772461,2.61196289 C19.9772461,3.97734375 20.0477051,5.34697266 20.1823242,6.71499023 L9.08979492,6.71499023 L9.39433594,9.18237305 C10.3132324,16.6252441 12.7149902,23.8586426 16.5328125,30.6815918 C16.809082,31.1752441 17.0958984,31.6718262 17.385498,32.1575684 C19.3458984,35.4452637 22.9558594,37.4874023 26.8066406,37.4874023 L35.8078125,37.4874023 C37.7727539,39.2396484 39.8791992,40.7935547 42.1040039,42.1038574 L42.1040039,53.0200195 L50.8959961,53.0200195 L50.8959961,42.1038574 C53.1208008,40.7935547 55.2272461,39.2396484 57.1921875,37.4874023 L66.1933594,37.4874023 C70.0439941,37.4874023 73.6539551,35.4451172 75.614502,32.1578613 C75.9041016,31.6724121 76.190918,31.1758301 76.4671875,30.6818848 C80.2851563,23.8587891 82.6869141,16.6252441 83.6056641,9.18251953 L83.9103516,6.71513672 C83.9102051,6.71499023 72.8176758,6.71499023 72.8176758,6.71499023 Z M26.8069336,33.0912598 C24.4962891,33.0912598 22.3331543,31.8706055 21.1614258,29.905957 C20.8924805,29.4549316 20.6260254,28.9937988 20.3693848,28.5351562 C17.2555664,22.9702148 15.1592285,17.1203613 14.1224121,11.1111328 L20.840332,11.1111328 C22.4507813,19.143457 26.2381348,26.8858887 31.5210938,33.0912598 L26.8069336,33.0912598 Z M72.6310547,28.5353027 C72.3742676,28.9940918 72.1081055,29.4552246 71.8391602,29.905957 C70.6674316,31.870752 68.5041504,33.0912598 66.1936523,33.0912598 L61.4794922,33.0912598 C66.7624512,26.8858887 70.5498047,19.1433105 72.1602539,11.1111328 L78.8780273,11.1111328 C77.8412109,17.1202148 75.7450195,22.9700684 72.6310547,28.5353027 Z"}}),e._v(" "),o("path",{attrs:{d:"M48.8443002,15.7224529 C45.5005423,6.20144843 46.3007112,6.42871364 43.03539,15.7224529 C32.8222466,15.9270203 33.3325159,15.2730941 41.2359437,21.2032508 C38.2829325,30.8598674 37.785305,30.199333 45.9401324,24.5849342 C54.312169,30.3481616 53.5240673,30.6147888 50.6431719,21.2032508 C58.7816224,15.0978327 58.7603612,15.9209867 48.8443002,15.7224529 L48.8443002,15.7224529 Z",id:"Shape",fill:e.formObjData?e.formsData.hasOwnProperty("globalSettings")?e.formsData.globalSettings.formBackgroundColor:e.formObjData.globalSettings.formBackgroundColor:"#ffffff"}}),e._v(" "),o("path",{attrs:{id:"Shape",fill:e.addToCalendarData.color,opacity:"0.145471014",d:"M10.4665585,45.9585064 C7.95874007,38.817753 8.55886675,38.9882019 6.10987581,45.9585064 C-1.54998175,46.1119319 -1.16727978,45.6214873 4.76029109,50.0691048 C2.54553272,57.3115672 2.1723121,56.8161664 8.28843264,52.6053673 C14.5674601,56.9277878 13.9763838,57.1277582 11.8157123,50.0691048 C17.9195501,45.4900412 17.9036042,46.1074067 10.4665585,45.9585064 L10.4665585,45.9585064 Z"}}),e._v(" "),o("path",{attrs:{id:"Shape-Copy",fill:e.addToCalendarData.color,opacity:"0.145471014",d:"M87.4665585,45.9585064 C84.9587401,38.817753 85.5588668,38.9882019 83.1098758,45.9585064 C75.4500183,46.1119319 75.8327202,45.6214873 81.7602911,50.0691048 C79.5455327,57.3115672 79.1723121,56.8161664 85.2884326,52.6053673 C91.5674601,56.9277878 90.9763838,57.1277582 88.8157123,50.0691048 C94.9195501,45.4900412 94.9036042,46.1074067 87.4665585,45.9585064 L87.4665585,45.9585064 Z"}})])])])]):o("div",{staticClass:"am-svg-wrapper"},[o("svg",{attrs:{width:"93px",height:"75px",viewBox:"0 0 93 75",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[o("desc",[e._v("Created with Sketch.")]),e._v(" "),o("defs"),e._v(" "),o("g",{attrs:{stroke:"none","stroke-width":"1",fill:e.trophyColor(),"fill-rule":"evenodd"}},[o("g",{attrs:{id:"trophy-2",fill:e.trophyColor()}},[o("path",{attrs:{id:"Shape",fill:e.trophyColor(),"fill-rule":"nonzero",opacity:"0.70165308",d:"M60.4208496,70.6040039 L60.4208496,57.4158691 L32.5792969,57.4158691 L32.5792969,70.6040039 L27.4505859,70.6040039 L27.4505859,75 L65.5495605,75 L65.5495605,70.6040039 L60.4208496,70.6040039 Z M54.5595703,67.673291 L38.4407227,67.673291 L38.4407227,63.2772949 L54.5595703,63.2772949 L54.5595703,67.673291 Z"}}),e._v(" "),o("path",{attrs:{id:"Shape",fill:e.trophyColor(),"fill-rule":"nonzero",opacity:"0.70165308",d:"M72.8176758,6.71499023 C72.9522949,5.34711914 73.0227539,3.97749023 73.0227539,2.61196289 C55.5124512,-0.870703125 37.4876953,-0.870703125 19.9772461,2.61196289 C19.9772461,3.97734375 20.0477051,5.34697266 20.1823242,6.71499023 L9.08979492,6.71499023 L9.39433594,9.18237305 C10.3132324,16.6252441 12.7149902,23.8586426 16.5328125,30.6815918 C16.809082,31.1752441 17.0958984,31.6718262 17.385498,32.1575684 C19.3458984,35.4452637 22.9558594,37.4874023 26.8066406,37.4874023 L35.8078125,37.4874023 C37.7727539,39.2396484 39.8791992,40.7935547 42.1040039,42.1038574 L42.1040039,53.0200195 L50.8959961,53.0200195 L50.8959961,42.1038574 C53.1208008,40.7935547 55.2272461,39.2396484 57.1921875,37.4874023 L66.1933594,37.4874023 C70.0439941,37.4874023 73.6539551,35.4451172 75.614502,32.1578613 C75.9041016,31.6724121 76.190918,31.1758301 76.4671875,30.6818848 C80.2851563,23.8587891 82.6869141,16.6252441 83.6056641,9.18251953 L83.9103516,6.71513672 C83.9102051,6.71499023 72.8176758,6.71499023 72.8176758,6.71499023 Z M26.8069336,33.0912598 C24.4962891,33.0912598 22.3331543,31.8706055 21.1614258,29.905957 C20.8924805,29.4549316 20.6260254,28.9937988 20.3693848,28.5351562 C17.2555664,22.9702148 15.1592285,17.1203613 14.1224121,11.1111328 L20.840332,11.1111328 C22.4507813,19.143457 26.2381348,26.8858887 31.5210938,33.0912598 L26.8069336,33.0912598 Z M72.6310547,28.5353027 C72.3742676,28.9940918 72.1081055,29.4552246 71.8391602,29.905957 C70.6674316,31.870752 68.5041504,33.0912598 66.1936523,33.0912598 L61.4794922,33.0912598 C66.7624512,26.8858887 70.5498047,19.1433105 72.1602539,11.1111328 L78.8780273,11.1111328 C77.8412109,17.1202148 75.7450195,22.9700684 72.6310547,28.5353027 Z"}}),e._v(" "),o("path",{attrs:{d:"M48.8443002,15.7224529 C45.5005423,6.20144843 46.3007112,6.42871364 43.03539,15.7224529 C32.8222466,15.9270203 33.3325159,15.2730941 41.2359437,21.2032508 C38.2829325,30.8598674 37.785305,30.199333 45.9401324,24.5849342 C54.312169,30.3481616 53.5240673,30.6147888 50.6431719,21.2032508 C58.7816224,15.0978327 58.7603612,15.9209867 48.8443002,15.7224529 L48.8443002,15.7224529 Z",id:"Shape",fill:e.formObjData?e.$root.settings.customization.useGlobalColors[e.formType]?e.$root.settings.customization.globalColors.formBackgroundColor:e.formObjData.globalSettings.formBackgroundColor:"#ffffff"}}),e._v(" "),o("path",{attrs:{id:"Shape",fill:e.trophyColor(),opacity:"0.145471014",d:"M10.4665585,45.9585064 C7.95874007,38.817753 8.55886675,38.9882019 6.10987581,45.9585064 C-1.54998175,46.1119319 -1.16727978,45.6214873 4.76029109,50.0691048 C2.54553272,57.3115672 2.1723121,56.8161664 8.28843264,52.6053673 C14.5674601,56.9277878 13.9763838,57.1277582 11.8157123,50.0691048 C17.9195501,45.4900412 17.9036042,46.1074067 10.4665585,45.9585064 L10.4665585,45.9585064 Z"}}),e._v(" "),o("path",{attrs:{id:"Shape-Copy",fill:e.trophyColor(),opacity:"0.145471014",d:"M87.4665585,45.9585064 C84.9587401,38.817753 85.5588668,38.9882019 83.1098758,45.9585064 C75.4500183,46.1119319 75.8327202,45.6214873 81.7602911,50.0691048 C79.5455327,57.3115672 79.1723121,56.8161664 85.2884326,52.6053673 C91.5674601,56.9277878 90.9763838,57.1277582 88.8157123,50.0691048 C94.9195501,45.4900412 94.9036042,46.1074067 87.4665585,45.9585064 L87.4665585,45.9585064 Z"}})])])])])]:e._e(),e._v(" "),e.messagesVisibility?o("div",["approved"===e.addToCalendarData.status?o("p",[e._v("\n "+e._s(e.labelApproved||e.$root.labels.booking_completed_approved)+"\n ")]):e._e(),e._v(" "),"pending"===e.addToCalendarData.status?o("p",[e._v("\n "+e._s(e.labelPending||e.$root.labels.booking_completed_pending)+"\n ")]):e._e()]):e._e(),e._v(" "),o("br"),e._v(" "),e.addToCalendarData.active&&e.addToCalendarVisibility?o("el-row",{attrs:{type:"flex",justify:"center"}},[o("el-col",{staticClass:"el-form-item",class:e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-select-"+e.formType+"-"+e.$options.name+"-"+e.addToCalendarData.bookableType:"",attrs:{sm:12}},[o("el-select",{attrs:{"popper-class":e.$root.settings.customization.hasOwnProperty("forms")&&e.$root.settings.customization.forms.hasOwnProperty(e.formType)?"am-dropdown-"+e.formType+"-"+e.$options.name+"-"+e.addToCalendarData.bookableType:"",placeholder:e.$root.labels.select_calendar},model:{value:e.calendarIndex,callback:function(t){e.calendarIndex=t},expression:"calendarIndex"}},e._l(e.calendars,function(t,i){return o("el-option",{key:i,style:{color:e.calendarIndex===i?e.addToCalendarData.color:""},attrs:{label:t.label,value:i}})}),1)],1)],1):e._e(),e._v(" "),e.addToCalendarData.active&&e.addToCalendarVisibility?o("div",{staticClass:"el-button el-button--primary calendar-link",class:{"is-disabled":null===e.calendarIndex},style:e.bookableConfirmStyle,on:{mouseenter:function(t){return e.setBookableConfirmStyle(!0)},mouseleave:function(t){return e.setBookableConfirmStyle(!1)}}},[null!==e.calendarIndex?o("a",{attrs:{href:e.calendars[e.calendarIndex].links[0],target:"ios"===e.calendars[e.calendarIndex].type||"outlook"===e.calendars[e.calendarIndex].type?"_self":"_blank"},on:{click:e.executeIfMultipleLinks}},[e._v("\n "+e._s(e.$root.labels.add_to_calendar)+"\n ")]):o("span",[e._v("\n "+e._s(e.$root.labels.add_to_calendar)+"\n ")])]):e._e(),e._v(" "),o("div",{staticClass:"el-button el-button--primary redirect-link",style:e.bookableConfirmStyle,on:{mouseenter:function(t){return e.setBookableConfirmStyle(!0)},mouseleave:function(t){return e.setBookableConfirmStyle(!1)}}},[""!==e.redirectUrlAfterAppointment?o("a",{attrs:{href:e.redirectUrlAfterAppointment,target:"_self"}},[e._v("\n "+e._s(e.$root.labels.finish_appointment)+"\n ")]):o("a",{on:{click:function(t){return e.closeDialog()}}},[e._v("\n "+e._s(e.$root.labels.finish_appointment)+"\n ")])])],2)])},staticRenderFns:[]}},807:function(e,t,o){var i=o(90)(null,o(808),!1,null,null,null);e.exports=i.exports},808:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},809:function(e,t,o){var i=o(90)(null,o(810),!1,null,null,null);e.exports=i.exports},810:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},811:function(e,t,o){var i=o(90)(null,o(812),!1,null,null,null);e.exports=i.exports},812:function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]}},813:function(e,t,o){"use strict";var i=o(657);t.a={mixins:[i.a],data:function(){return{}},methods:{getServicePrice:function(e){var t=e.id,o=this.getServiceProviders(e.id);if(void 0!==o&&o.length>0){var i=o.reduce(function(e,o){var i=o.serviceList.find(function(e){return e.id===t}).price;return i<e?i:e},o[0].serviceList.find(function(e){return e.id===t}).price),a=o.reduce(function(e,o){var i=o.serviceList.find(function(e){return e.id===t}).price;return i>e?i:e},o[0].serviceList.find(function(e){return e.id===t}).price);return i!==a?{price:this.getFormattedPrice(i,!this.$root.settings.payments.hideCurrencySymbolFrontend)+" - "+this.getFormattedPrice(a,!this.$root.settings.payments.hideCurrencySymbolFrontend),min:i,max:a}:{price:this.getFormattedPrice(i,!this.$root.settings.payments.hideCurrencySymbolFrontend),min:i,max:a}}return{price:0,min:0,max:0}},getServiceCapacity:function(e){var t=e.id,o=this.getServiceProviders(t);if(void 0!==o&&o.length>0){var i=o.reduce(function(e,o){var i=o.serviceList.find(function(e){return e.id===t}).minCapacity;return i<e?i:e},o[0].serviceList.find(function(e){return e.id===t}).minCapacity),a=o.reduce(function(e,o){var i=o.serviceList.find(function(e){return e.id===t}).maxCapacity;return i>e?i:e},o[0].serviceList.find(function(e){return e.id===t}).maxCapacity);return i!==a?i+" - "+a:i}}}}},829:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=o.n(i),n=o(632),s=o(703),r=o(667),l=o(654),c=o(336),d=o(657),m=o(661),p=o(655),u=o(678),h=o(659),g=o(698),f=o(710),v=o(660),y=o(663),b=o(696),k={data:function(){return{}},mixins:[v.a],methods:{setPreferredEntitiesData:function(e){var t=this,o=this.getAllEntitiesIds(e,0),i=this.getAllEntitiesIds(e,1),a=1===o.length,n=1===i.length;e.forEach(function(e){if(e.date&&e.time)if(!i.length&&a)e.providerId=o[0],e.locationId=null;else if(i.length||a)if(n&&a)e.providerId=o[0],e.locationId=i[0];else if(!n&&a)e.providerId=o[0],e.locationId=t.getPreferredEntityId(e.slots,e.occupied,e.time,e.providerId,i,1);else if(n&&!a)e.locationId=i[0],e.providerId=t.getPreferredEntityId(e.slots,e.occupied,e.time,e.locationId,o,0);else{for(var s=0;s<i.length;s++)for(var r=0;r<o.length;r++){if(t.isPreferredLocationAndEmployee(e.slots,e.occupied,e.time,i[s],o[r]))return e.providerId=o[r],void(e.locationId=i[s])}for(var l=0;l<i.length;l++)for(var c=0;c<o.length;c++)for(var d=0;d<e.slots[e.time].length;d++)if(e.slots[e.time][d][0]===o[c]&&e.slots[e.time][d][1]===i[l])return e.providerId=o[c],void(e.locationId=i[l])}else{e.locationId=null;for(var m=0;m<o.length;m++)for(var p=0;p<e.slots[e.time].length;p++)if(e.slots[e.time][p][0]===o[m]){e.providerId=o[m];break}}})},getAllEntitiesIds:function(e,t){for(var o={},i=0;i<e.length;i++)e[i].date&&e[i].time&&e[i].slots[e[i].time].forEach(function(e){e[t]&&(e[t]in o||(o[e[t]]=0),o[e[t]]++)});var a=[];return Object.keys(o).forEach(function(e){a.push({id:parseInt(e),quantity:o[e]})}),a.sort(function(e,t){return t.quantity-e.quantity}),a.map(function(e){return e.id})},getPreferredEntityId:function(e,t,o,i,a,n){var s=this,r=n?0:1,l={};Object.keys(t).forEach(function(e){t[e].forEach(function(t){t[r]===i&&(l[s.getStringTimeInSeconds(e)]=t[n])})}),Object.keys(e).forEach(function(t){e[t].forEach(function(e){e.length>=3&&e[r]===i&&(l[s.getStringTimeInSeconds(t)]=e[n])})});var c=[];if(e[o].forEach(function(e){e[r]===i&&c.push(e[n])}),Object.keys(l).length){var d=this.getStringTimeInSeconds(o),m=Object.keys(l).reduce(function(e,t){return Math.abs(t-d)<Math.abs(e-d)?t:e});if(-1!==c.indexOf(l[m]))return l[m]}for(var p=0;p<a.length;p++)for(var u=0;u<e[o].length;u++)if(e[o][u][r]===i&&a[p]===e[o][u][n])return e[o][u][n];return null},isPreferredLocationAndEmployee:function(e,t,o,i,a){var n=this,s=!1;if(e[o].forEach(function(e){e[0]===a&&e[1]===i&&(s=!0)}),!s)return!1;var r={onLocation:{},offLocation:{}};if(Object.keys(t).forEach(function(e){t[e].forEach(function(t){t[0]===a&&t[1]===i?r.onLocation[n.getStringTimeInSeconds(e)]=t[1]:t[0]===a&&(r.offLocation[n.getStringTimeInSeconds(e)]=t[1])})}),Object.keys(e).forEach(function(t){e[t].forEach(function(e){e.length>=3&&e[0]===a&&e[1]===i?r.onLocation[n.getStringTimeInSeconds(t)]=e[1]:e.length>=3&&e[0]===a&&(r.offLocation[n.getStringTimeInSeconds(t)]=e[1])})}),!Object.keys(r.onLocation).length&&!Object.keys(r.offLocation).length||Object.keys(r.onLocation).length&&!Object.keys(r.offLocation).length)return!0;var l=this.getStringTimeInSeconds(o);r=Object.assign(r.onLocation,r.offLocation);var c=Object.keys(r).reduce(function(e,t){return Math.abs(t-l)<Math.abs(e-l)?t:e});return i===r[c]}}},_=o(830),C=o.n(_),x=o(856),S=o.n(x),F=o(708),w=o.n(F),I=o(706),P=o.n(I),$=o(862),D=o.n($),T=o(807),E=o.n(T),L=o(809),O=o.n(L),B=o(811),A=o.n(B),N=o(755),R=o.n(N),M=o(788),j=o.n(M);t.default={mixins:[k,s.a,r.a,f.a,g.a,l.a,c.a,h.a,b.a,p.a,v.a,d.a,m.a,y.a,u.a],props:{id:{default:"am-step-booking"},showService:{type:Boolean,default:!0},addToCalendarProperty:{type:Object,default:function(){return{visible:!0}}},passedService:{default:function(){},type:Object},passedPackage:{default:function(){},type:Object},passedCategory:{default:function(){},type:Object},passedEntities:{default:function(){},type:Object},passedEntitiesRelations:{default:function(){},type:Object},formType:{type:String,default:"stepByStepForm"}},data:function(){return{empty:!1,packagesHaveBack:!0,showPackagesOnly:!1,selectedWeekIndex:0,selectedProvider:null,selectedLocation:null,selectedService:null,loading:!1,isRecurringAvailable:!1,initialRecurringData:null,recurringData:{dates:[],startAppointment:null,startDate:null,startTime:null,pageRecurringDates:[],pagination:{show:this.$root.settings.general.itemsPerPage,page:1,count:0},recurringString:"",untilString:"",datesCallback:null,setupCallback:null},activeRecurring:!1,activeRecurringSetup:!1,activeRecurringDates:!1,selectedMonth:a()().format("YYYY-MM"),isServiceChanged:!0,calendarId:"",activeConfirm:!1,bookingCompleted:!1,activePicker:!1,packageCalendarActive:!1,addToCalendarData:null,appointment:{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1,haveMandatoryExtras:!1,minSelectedExtras:0}],duration:0,group:!1,notifyParticipants:this.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null},availableDates:[],availableTimeSlots:[],calendar:"",calendarTimeSlots:{},occupiedTimeSlots:{},pricedCalendarTimeSlots:{},pricedOccupiedTimeSlots:{},bookedTimeSlots:{},calendarVisible:!1,customer:{name:"",email:"",phone:"",paymentMethod:""},customerRules:{name:[{required:!0,message:"Please input name",trigger:"submit"},{min:3,max:50,message:"Length should be 3 to 50",trigger:"submit"}],email:[{required:!0,message:"Please input name",trigger:"submit"},{min:3,max:5,message:"Length should be 3 to 5",trigger:"submit"}],phone:"",paymentMethod:""},disabledAttribute:{contentStyle:{color:"#ccc",opacity:.4,textDecoration:"line-through"}},disabledWeekdays:null,fetched:!1,fetchedSlots:!1,group:{allowed:!1,enabled:!1,count:1,options:[]},loadingTimeSlots:!1,slotsIndexStarted:0,responseEntities:{taxes:[],categories:[],employees:[],locations:[],services:[]},options:{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{taxes:[],packages:[],services:[],employees:[],locations:[],customFields:[]}},marketing:{service:null,employee:null,location:null,category:null,package:null,payment:null},selectedExtras:[],previouslySelectedExtras:[],selectedDate:null,showAddToCalendar:!1,showExtras:!1,showFilters:!1,showTimes:!1,showServices:!1,showEmployees:!1,showLocations:!1,extrasMandatory:!1,showCalendarBackButton:!1,showCalendarContinueButton:!1,times:"",extrasError:[],forms:{}}},created:function(){this.forms=this.getTranslatedForms("stepByStepForm"),this.calendarId="am-appointment-times"+this.$root.shortcodeData.counter,window.addEventListener("resize",this.handleResize)},mounted:function(){if(this.addToCalendarProperty.visible?this.setCacheData(this.getContainerId(),!0):this.showAddToCalendar=!1,this.$root.shortcodeData.hasBookingShortcode&&this.$root.shortcodeData.hasCategoryShortcode||this.inlineBookingSVG(),this.passedService&&this.checkMandatoryExtras(this.passedService),"beforeBookingLoaded"in window&&window.beforeBookingLoaded(this),this.passedEntities&&!this.passedPackage){this.options.isFrontEnd=!0,this.options.entitiesRelations=Object.assign({},this.passedEntitiesRelations);var e=this.getShortCodeEntityIds();this.filterEntities(this.passedEntities,{categoryId:this.passedService.categoryId,serviceId:this.passedService.id,employeeId:e.employeeId,locationId:e.locationId}),this.fetchedEntities(),this.times=document.getElementById(this.calendarId)}else if(this.passedPackage)this.passedPackage&&(this.options.isFrontEnd=!0,this.options.entitiesRelations=Object.assign({},this.passedEntitiesRelations),this.options.entities=this.passedEntities,this.setBookingCustomFields(),this.selectPackage(this.passedPackage),this.passedPackage.hasSlots&&!this.loadingCacheBookingData||(this.fetched=!0,this.packageSlotsSelectedCallback(),this.runCacheAction()),0!==this.options.entities.services.length&&0!==this.options.entities.employees.length||(this.empty=!0));else{var t=this.getShortCodeEntityIds();"packages"===t.show?(this.showPackagesOnly=!0,this.packageCalendarActive=!0):"services"===t.show&&(this.showPackagesOnly=!1);var o=this;this.fetchEntities(function(e){e&&o.fetchedEntities()},{types:["locations","employees","categories","custom_fields","packages","taxes"],isFrontEnd:!0,isPanel:!1}),this.times=document.getElementById(this.calendarId)}},updated:function(){this.handleResize()},methods:{changeFormItem:function(e){"changeService"===e.identifier&&(this.changeService(),n.a.hasAmeliaTracking(this.$root.marketing,this.appointment.serviceId)&&(this.marketing.service=this.getServiceById(this.appointment.serviceId),this.marketing.category=this.marketing.service?this.getCategoryById(this.marketing.service.categoryId):null,n.a.trackAmeliaData(this,this.$root.marketing,"appointment","SelectService"))),"selectPackage"===e.identifier&&(this.selectPackage(e.value),n.a.hasAmeliaTracking(this.$root.marketing,e.value.id)&&(this.marketing.package=this.getPackageById(e.value.id),n.a.trackAmeliaData(this,this.$root.marketing,"package","SelectPackage"))),"changeLocation"===e.identifier&&(this.changeLocation(e.required),n.a.hasAmeliaTracking(this.$root.marketing,this.appointment.locationId)&&(this.marketing.location=this.getLocationById(this.appointment.locationId),n.a.trackAmeliaData(this,this.$root.marketing,"appointment","SelectLocation"))),"changeEmployee"===e.identifier&&(this.changeEmployee(e.required),n.a.hasAmeliaTracking(this.$root.marketing,this.appointment.providerId)&&(this.marketing.employee=this.getProviderById(this.appointment.providerId),n.a.trackAmeliaData(this,this.$root.marketing,"appointment","SelectEmployee"))),"enableGrouping"===e.identifier&&this.enableGrouping(),"changeNumberOfPersons"===e.identifier&&this.changeNumberOfPersons(),"addExtra"===e.identifier&&this.addExtra(),"changeSelectedExtra"===e.identifier&&this.changeSelectedExtra(e.value,e.key),"deleteExtra"===e.identifier&&this.deleteExtra(e.value)},changeActiveRecurring:function(e){this.activeRecurring=e},runCacheAction:function(){this.loadingCacheBookingData&&("canceled"===this.cacheData.status||"failed"===this.cacheData.status?this.showConfirmBooking():"paid"!==this.cacheData.status&&null!==this.cacheData.status||this.confirmedBooking(this.cacheData.response,!0,this.cacheData.request),this.loadingCacheBookingData=!1)},getContainerId:function(){return"amelia-app-booking"+this.$root.shortcodeData.counter},showConfirmBooking:function(){var e=this;this.activeConfirm=!0,this.loading=!0;var t=document.getElementById(this.id);setTimeout(function(){e.loading=!1,e.loadingCacheBookingData=!1,t.classList.toggle("am-active-picker",!1),t.classList.toggle("am-active-confirm",e.activeConfirm)},500)},checkMandatoryExtras:function(e){this.appointment.bookings[0].haveMandatoryExtras=e.mandatoryExtra,this.appointment.bookings[0].minSelectedExtras=e.minSelectedExtras;for(var t=0;t<e.minSelectedExtras;t++)e.mandatoryExtra&&(this.extrasMandatory=!0,this.addExtra())},getBookableData:function(){var e=this;return null===this.selectedPackage?(this.selectedService=this.getProviderById(this.selectedProvider.id).serviceList.find(function(t){return t.id===e.appointment.serviceId}),n.a.hasAmeliaTracking(this)&&(this.marketing.service=this.selectedService,this.marketing.employee=this.selectedProvider,this.marketing.location=this.selectedLocation,this.marketing.category=this.getCategoryById(this.selectedService.categoryId)),{id:this.selectedService.id,name:this.selectedService.name,price:this.getBookingServicePrice(this.selectedService,this.appointment.serviceDuration,this.appointment.bookings[0].persons,this.appointment.providerId,this.appointment.bookingStart),depositData:"disabled"!==this.selectedService.depositPayment?{deposit:this.selectedService.deposit,depositPayment:this.selectedService.depositPayment,depositPerPerson:this.selectedService.depositPerPerson,depositFullPayment:this.selectedService.fullPayment}:null,maxCapacity:this.selectedService.maxCapacity,pictureThumbPath:this.selectedService.pictureThumbPath,aggregatedPrice:this.selectedService.aggregatedPrice,bookingStart:this.appointment.bookingStart}):{id:this.selectedPackage.id,name:this.selectedPackage.name,price:this.getPackagePrice(this.selectedPackage),depositData:"disabled"!==this.selectedPackage.depositPayment?{deposit:this.selectedPackage.deposit,depositPayment:this.selectedPackage.depositPayment,depositPerPerson:this.selectedPackage.depositPerPerson,depositFullPayment:this.selectedPackage.fullPayment}:null,calculatedPrice:this.selectedPackage.calculatedPrice,discount:this.selectedPackage.discount,maxCapacity:1,pictureThumbPath:this.selectedPackage.pictureThumbPath,aggregatedPrice:this.selectedPackage.aggregatedPrice}},changeMonth:function(e){this.selectedMonth=e?a()().year(e.year).month(e.month-1).date(1).format("YYYY-MM"):null},showCalendarOnly:function(e){var t=null;this.appointment.serviceId&&this.appointment.providerId&&(t=this.getProviderService(this.appointment.providerId,this.appointment.serviceId));var o=null;this.appointment.serviceId&&(o=this.getServiceById(this.appointment.serviceId));var i=!0,a=!0,n=!0,s=!0;for(var r in this.forms[this.formType].selectServiceForm.itemsDraggable)this.forms[this.formType].selectServiceForm.itemsDraggable[r].hasOwnProperty("visibility")&&!this.forms[this.formType].selectServiceForm.itemsDraggable[r].visibility&&("employeeFormField"===r&&(i=!1),"servicePackageFormField"===r&&(a=!1),"locationFormField"===r&&(n=!1),"addExtraFormField"===r&&(s=!1));var l=!1;return null===t&&this.employeesFiltered.forEach(function(e){e.serviceList.forEach(function(e){o&&e.id===o.id&&e.maxCapacity>1&&e.bringingAnyone&&(l=!0)})}),e&&!this.showServices&&(!i||!this.showEmployees)&&(!n||!this.showLocations)&&(!o||!o.extras.length||!this.extrasMandatory)&&(!o||!o.extras.length||!s)&&(!i||1===this.employeesFiltered.length)&&(null!==t&&(1===t.maxCapacity||!1===t.bringingAnyone)||null===t&&!l)&&(!a||void 0!==this.passedService||0===this.options.entities.packages.length)},changeService:function(){var e=this;if("ameliaBooking"in window&&"changedEntity"in window.ameliaBooking&&window.ameliaBooking.changedEntity("service",this.appointment),this.appointment.serviceId){var t=this.getServiceById(this.appointment.serviceId);this.appointment.serviceDuration=t.duration,t.mandatoryExtra&&this.closePicker(),this.updateSettings(t.settings),this.isServiceChanged=!0,this.extrasError=[],this.appointment.bookings[0].extras=[],this.selectedExtras=[],this.checkMandatoryExtras(t),this.handleCapacity(!0,!1,t.maxExtraPeople),this.toggleRecurringActive(),this.calendarVisible&&this.getTimeSlots()}else this.cancelRecurringSetup(),setTimeout(function(){e.selectedDate=null,e.closePicker(),e.resetAppointment(),e.unSelectTime(),e.activeRecurringSetup=!1,e.showTimes=!1},200)},changeEmployee:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=null;this.appointment.serviceId&&(o=this.getServiceById(this.appointment.serviceId)),this.handleCapacity(!0,!1,o?o.maxExtraPeople:null),this.calendarVisible&&this.appointment.providerId&&this.getTimeSlots(),t&&!this.appointment.providerId&&(this.cancelRecurringSetup(),setTimeout(function(){e.selectedDate=null,e.closePicker(),e.resetAppointment(),e.unSelectTime(),e.activeRecurringSetup=!1,e.showTimes=!1},200))},changeLocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.calendarVisible&&this.appointment.locationId&&this.getTimeSlots(),this.appointment.locationId||(this.appointment.locationId=null),t&&!this.appointment.locationId&&(this.cancelRecurringSetup(),setTimeout(function(){e.selectedDate=null,e.closePicker(),e.resetAppointment(),e.unSelectTime(),e.activeRecurringSetup=!1,e.showTimes=!1},200))},enableGrouping:function(){var e=null;this.appointment.serviceId&&(e=this.getServiceById(this.appointment.serviceId)),this.handleCapacity(!0,!0,e?e.maxExtraPeople:null),!0===this.group.enabled?this.appointment.bookings[0].persons+=1:this.appointment.bookings[0].persons=1,this.calendarVisible&&this.getTimeSlots()},changeNumberOfPersons:function(){this.calendarVisible&&this.getTimeSlots()},getSelectedExtraMaxQuantity:function(e){var t=this.getServiceById(this.appointment.serviceId).extras.find(function(t){return t.id===e.id});return void 0!==t?t.maxQuantity:""},getAvailableExtras:function(e){var t=[],o=[];return this.selectedExtras.forEach(function(e){e.id&&t.push(e.id)}),this.getServiceById(this.appointment.serviceId).extras.forEach(function(i){-1!==t.indexOf(i.id)&&e.id!==i.id||o.push(i)}),o},addExtra:function(){this.selectedExtras.push({id:null,extraId:null,quantity:"",duration:0,name:""}),this.previouslySelectedExtras.push({id:null,extraId:null,quantity:"",duration:0,name:""})},deleteExtra:function(e){this.calendarVisible&&this.selectedExtras[e].duration?(this.selectedExtras.splice(e,1),this.previouslySelectedExtras.splice(e,1),this.getTimeSlots()):(this.selectedExtras.splice(e,1),this.previouslySelectedExtras.splice(e,1))},changeSelectedExtra:function(e,t){this.extrasError=[],this.previouslySelectedExtras&&t in this.previouslySelectedExtras&&null===this.previouslySelectedExtras[t].extraId?(this.previouslySelectedExtras[t].extraId=e.extraId,this.previouslySelectedExtras[t].duration=e.duration):this.previouslySelectedExtras[t]={},e.quantity=""===e.quantity?1:e.quantity;var o=this.getServiceById(this.appointment.serviceId).extras.find(function(t){return t.id===e.id});e.extraId=o.id,e.duration=o.duration,e.name=o.name,e.price=o.price,e.selected=!0,e.aggregatedPrice=o.aggregatedPrice,e.quantity>o.maxQuantity&&(e.quantity=o.maxQuantity),this.calendarVisible&&(o.duration||null!==this.previouslySelectedExtras[t].duration&&null===e.duration)&&this.getTimeSlots(),this.previouslySelectedExtras[t].extraId=e.extraId,this.previouslySelectedExtras[t].duration=e.duration},fetchedEntities:function(){if(this.$root.shortcodeData.booking.service&&this.$root.shortcodeData.booking.service.length&&this.checkMandatoryExtras(this.options.entities.services[0]),(0===this.options.entities.services.length||0===this.options.entities.employees.length||"packages"===this.$root.shortcodeData.booking.show&&0===this.options.entities.packages.length)&&(this.empty=!0),this.setBookingCustomFields(),1===this.employeesFiltered.length)this.appointment.providerId=this.employeesFiltered[0].id,this.$root.shortcodeData.booking.employee=this.appointment.providerId;else{if(!(this.employeesFiltered.length>1))return;this.showEmployees=!0}if(1===this.locationsFiltered.length?(this.appointment.locationId=this.locationsFiltered[0].id,this.$root.shortcodeData.booking.location=this.appointment.locationId):this.locationsFiltered.length>1&&(this.showLocations=!0),1===this.servicesFiltered.length)this.appointment.serviceId=this.servicesFiltered[0].id,this.$root.shortcodeData.booking.service=this.appointment.serviceId;else{if(!(this.servicesFiltered.length>1))return;this.showServices=!0}this.toggleRecurringActive();var e=null;(this.appointment.serviceId&&(e=this.getServiceById(this.appointment.serviceId),this.appointment.serviceDuration=e.duration,this.updateSettings(e.settings)),this.handleCapacity(!0,!1,e?e.maxExtraPeople:null),"showAmeliaCalendarOnLoad"in window&&window.showAmeliaCalendarOnLoad&&this.appointment.serviceId||this.showCalendarOnly(!0)&&"packages"!==this.$root.shortcodeData.booking.show)?(document.getElementById(this.id+"-calendar").classList.remove("am-select-service-date-transition"),this.getTimeSlots()):("packages"===this.getShortCodeEntityIds().show&&(this.options.entities.packages.sort(function(e,t){return e.position-t.position}),1===this.options.entities.packages.length&&(this.selectedPackageId=this.options.entities.packages[0].id,this.packagesHaveBack=!1,this.selectPackage(this.getPackageById(this.selectedPackageId)))),this.fetched=!0,this.runCacheAction())},getPossibleProvidersIfNoneSelected:function(){var e=this,t=[];return this.appointment.providerId||(this.group.enabled?this.employeesFiltered.forEach(function(o){void 0!==o.serviceList.find(function(t){return t.id===e.appointment.serviceId&&t.maxCapacity>=e.appointment.bookings[0].persons})&&t.push(o)}):this.employeesFiltered.forEach(function(o){void 0!==o.serviceList.find(function(t){return t.id===e.appointment.serviceId})&&t.push(o)})),t},getTimeSlots:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.getCurrentUser();var o=this.appointment.serviceId?this.getServiceById(this.appointment.serviceId):null;if(this.selectedExtras.forEach(function(t,i){o&&o.mandatoryExtra&&!t.id&&e.appointment.bookings[0].minSelectedExtras>i&&e.extrasError.push(i)}),this.extrasError.length)return!1;if(this.appointment.serviceId&&t){this.loadingTimeSlots=!0;var i=[];this.selectedExtras.forEach(function(e){e.id&&i.push({id:e.id,quantity:e.quantity})}),"afterBookingSelectService"in window&&window.afterBookingSelectService(this.appointment,this.getServiceById(this.appointment.serviceId),this.getProviderById(this.appointment.providerId),this.getLocationById(this.appointment.locationId)),this.slotsIndexStarted++;var n=this.slotsIndexStarted;this.$http.get(this.$root.getAjaxUrl+"/slots",{params:this.getAppropriateUrlParams({locationId:this.appointment.locationId,serviceId:this.appointment.serviceId,serviceDuration:this.appointment.serviceDuration,providerIds:this.appointment.providerId?[this.appointment.providerId]:this.getPossibleProvidersIfNoneSelected().map(function(e){return e.id}),extras:JSON.stringify(i),group:1,page:"booking",persons:this.appointment.bookings[0].persons,structured:!0})}).then(function(t){if(n<e.slotsIndexStarted)return e.fetchedSlots=!0,e.fetched=!0,void(e.loadingTimeSlots=!1);var o=e.$root.settings.general.showClientTimeZone?e.getConvertedTimeSlots(t.data.data.slots):t.data.data.slots,i=e.$root.settings.general.showClientTimeZone?e.getConvertedTimeSlots(t.data.data.occupied):t.data.data.occupied;e.calendarVisible||(e.activePicker=!e.activePicker,document.getElementById(e.id).classList.toggle("am-active-picker",e.activePicker));var s=[],r=null;e.useSortedDateStrings(Object.keys(o)).forEach(function(e){null===r&&(r=e),s.push(a()(e).toDate())}),e.showFirstEventMonth(r);var l={};Object.keys(o).forEach(function(e){l[e]={},Object.keys(o[e]).forEach(function(t){l[e][t]=[],o[e][t].forEach(function(o){l[e][t].push([o.e,o.l].concat("c"in o?[o.c,o.s,o.d]:[]))})})});var c={};(Object.keys(i).forEach(function(e){c[e]={},Object.keys(i[e]).forEach(function(t){c[e][t]=[],i[e][t].forEach(function(o){c[e][t].push([o.e,o.l].concat("c"in o?[o.c,o.s,o.d]:[]))})})}),e.pricedCalendarTimeSlots=o,e.pricedOccupiedTimeSlots=i,e.calendarTimeSlots=l,e.occupiedTimeSlots=c,e.disabledWeekdays={weekdays:[]},e.disabledWeekdays=0===s.length?{weekdays:[1,2,3,4,5,6,7]}:null,e.availableDates=s,e.calendarVisible=!0,e.availableDates.length&&e.setTimeSlots(),e.availableDates.length&&e.isSelectedDateAvailable())||(e.showTimes=!1,document.getElementById(e.id).classList.remove("am-show-times"));var d=!e.availableDates.length||!e.isSelectedDateAvailable(),m=e.appointment.bookingStartTime&&-1===e.availableTimeSlots.indexOf(e.appointment.bookingStartTime);((d||m)&&(d&&(e.selectedDate=null),e.unSelectTime()),e.activeRecurringSetup)&&(document.getElementById(e.id).classList.add("am-show-calendar"),e.activeRecurringSetup=!1,d?e.times=document.getElementById(e.calendarId):e.showTimeSlots());e.fetchedSlots=!0,e.fetched=!0,e.loadingTimeSlots=!1,e.runCacheAction()}).catch(function(t){console.log(t.message),e.fetchedSlots=!0,e.fetched=!0})}},showFirstEventMonth:function(e){if(this.isServiceChanged&&(null===this.selectedDate&&a()(this.selectedMonth).format("YYYY-MM")!==a()(e,"YYYY-MM-DD").format("YYYY-MM")||null!==this.selectedDate&&a()(this.selectedDate).format("YYYY-MM")!==a()(e,"YYYY-MM-DD").format("YYYY-MM"))){this.selectedDate=a()(e).toDate();var t=this;setTimeout(function(){t.selectedDate=null},100)}this.isServiceChanged=!1},addSlotsElementToWeekRow:function(e){var t=this;this.times||(this.times=document.getElementById(this.calendarId)),e.parentNode.insertBefore(this.times,e.nextSibling),this.isRecurringAvailable="disabled"!==this.getServiceById(this.appointment.serviceId).recurringCycle,setTimeout(function(){t.availableTimeSlots.length&&t.selectedDate&&(a()(t.selectedDate).format("YYYY-MM-DD")===a()(t.availableDates[t.availableDates.length-1]).format("YYYY-MM-DD")&&(t.activeRecurring=!1,t.isRecurringAvailable=!1),t.showTimes=!0,document.getElementById(t.id).classList.add("am-show-times"),t.appointment.bookingStartTime=t.availableTimeSlots[0],t.selectedWeekIndex=[].concat(function(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)}(e.parentNode.children)).indexOf(e),t.selectTime())},200)},selectDate:function(e,t){var o=this;this.selectedDate=t,this.unSelectTime();var i=!1;if(e.attributes.forEach(function(e){e.hasOwnProperty("key")&&"disabled"===e.key&&(i=!0)}),!i)if(document.getElementById(this.id).classList.remove("am-show-times"),this.showTimes=!1,e.inMonth){var a=e.event.target.parentNode.parentNode.parentNode.parentNode.parentNode;a.classList.contains("c-day")&&(a=e.event.target.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode),a.classList.contains("c-week")||(a=e.event.target.parentNode.parentNode.parentNode.parentNode),a.classList.contains("c-week")||(a=e.event.target.parentNode.parentNode.parentNode),this.addSlotsElementToWeekRow(a)}else setTimeout(function(){var t=document.getElementById(o.id+"-calendar").getElementsByClassName("c-weeks-rows")[0].children[e.weekdayOrdinal-1];o.addSlotsElementToWeekRow(t)},1e3)},isSelectedDateAvailable:function(){var e=a()(this.selectedDate);return this.calendarTimeSlots.hasOwnProperty(e.format("YYYY-MM-DD"))},setTimeSlots:function(e){void 0!==e&&(this.selectedDate=e);var t=a()(this.selectedDate).format("YYYY-MM-DD");this.isSelectedDateAvailable()&&(this.availableTimeSlots=Object.keys(this.calendarTimeSlots[t]),this.appointment.duration=this.getAppointmentDuration(this.appointment.serviceDuration?parseInt(this.appointment.serviceDuration):this.getServiceById(this.appointment.serviceId).duration,this.selectedExtras))},togglePicker:function(){this.calendarVisible=!1,this.activePicker=!this.activePicker,document.getElementById(this.id).classList.toggle("am-active-picker",this.activePicker)},closePicker:function(){this.calendarVisible=!1,this.activePicker=!1,document.getElementById(this.id).classList.remove("am-active-picker"),this.isRecurringAvailable=!1,this.activeRecurring=!1},selectTime:function(){this.appointment.bookingStart=a()(this.selectedDate).format("YYYY-MM-DD")+" "+this.appointment.bookingStartTime,this.showCalendarContinueButton=!0,"afterBookingTimeSelected"in window&&window.afterBookingTimeSelected(this.appointment),"ameliaBooking"in window&&"disableScrollView"in window.ameliaBooking&&!0===window.ameliaBooking.disableScrollView||this.scrollView("am-button-wrapper-"+this.$root.shortcodeData.counter,"end")},unSelectTime:function(){this.appointment.bookingStartTime=null,this.showCalendarContinueButton=!1},refreshCalendar:function(){var e=[],t=[];for(var o in this.calendarTimeSlots)for(var i in this.calendarTimeSlots[o])for(var n in this.calendarTimeSlots[o][i])this.appointment.providerId&&this.calendarTimeSlots[o][i][n][0]===this.appointment.providerId&&(o in e||(t.push(a()(o).toDate()),e[o]={}),i in e[o]||(e[o][i]=[]),e[o][i].push(this.calendarTimeSlots[o][i][n]));this.calendarTimeSlots=e,this.disabledWeekdays={weekdays:[]},this.disabledWeekdays=0===t.length?{weekdays:[1,2,3,4,5,6,7]}:null,this.availableDates=t,this.availableTimeSlots=Object.keys(e[a()(this.selectedDate).format("YYYY-MM-DD")])},showTimeSlots:function(){var e=this;setTimeout(function(){var t=document.getElementsByClassName("c-weeks-rows-wrapper")[0].firstChild.children.item(e.selectedWeekIndex);e.times=document.getElementById(e.calendarId),t.parentNode.insertBefore(e.times,t.nextSibling),e.showTimes=!0},200)},cancelRecurringSetup:function(){this.activeRecurringSetup=!1,document.getElementById(this.id).classList.remove("am-recurring-active"),this.showTimeSlots()},confirmRecurringSetup:function(){var e=document.getElementById(this.id);this.activeRecurringDates=!0,this.activeRecurringSetup=!0,e.classList.toggle("am-active-picker",!1),e.classList.toggle("am-active-recurring-dates",!0)},cancelRecurringDates:function(){this.activeRecurringDates=!1,this.activeRecurringSetup=!0;var e=document.getElementById(this.id);e.classList.toggle("am-active-picker",!0),e.classList.toggle("am-active-confirm",this.activeRecurringDates),e.classList.toggle("am-active-recurring-dates",!1),this.showCalendarOnly(!0)&&(e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop"))},confirmRecurringDates:function(){var e=this.recurringData.startAppointment;this.selectedProvider=this.getProviderById(e.providerId),this.selectedLocation=this.getLocationById(e.locationId),this.appointment.bookings[0].extras=this.selectedExtras,"afterBookingSelectDateAndTime"in window&&window.afterBookingSelectDateAndTime(Object.assign(this.appointment,{providerId:e.providerId,locationId:e.locationId}),this.getServiceById(this.appointment.serviceId),this.selectedProvider,this.selectedLocation),this.activeConfirm=!0,this.activeRecurringDates=!1,this.activeRecurringSetup=!1;var t=document.getElementById(this.id);t.classList.remove("am-active-recurring-dates"),t.classList.toggle("am-active-confirm",this.activeConfirm)},showNextScreen:function(){var e=this;if(this.recurringData.dates=[],this.activeRecurring&&this.isRecurringAvailable&&!this.activeRecurringSetup){this.loading=!0,this.recurringData.startDate=this.appointment.bookingStart,this.recurringData.startTime=this.appointment.bookingStart.split(" ")[1];var t=this.getServiceById(this.appointment.serviceId);return this.initialRecurringData=this.getDefaultRecurringSettings(this.appointment.bookingStart,t.recurringCycle,this.calendarTimeSlots),void setTimeout(function(){document.getElementById(e.id).classList.remove("am-show-calendar"),e.loading=!1,e.showTimes=!1,e.activeRecurringSetup=!0},500)}var o=a()(this.selectedDate).format("YYYY-MM-DD");if(!this.appointment.providerId){var i=this.calendarTimeSlots[o][this.appointment.bookingStartTime].map(function(e){return e[0]}).filter(function(e,t,o){return o.indexOf(e)===t});this.appointment.providerId=i[Math.floor(Math.random()*i.length+1)-1]}if(!this.appointment.locationId){var n=this.calendarTimeSlots[o][this.appointment.bookingStartTime].filter(function(t){return t[0]===e.appointment.providerId}).map(function(e){return e[1]});this.appointment.locationId=n.length?this.getPreferredEntityId(this.calendarTimeSlots[o],o in this.occupiedTimeSlots?this.occupiedTimeSlots[o]:{},this.appointment.bookingStartTime,this.appointment.providerId,n,1):null}this.selectedProvider=this.getProviderById(this.appointment.providerId),this.selectedLocation=this.getLocationById(this.appointment.locationId),this.refreshCalendar(),this.appointment.bookings[0].extras=this.selectedExtras,"afterBookingSelectDateAndTime"in window&&window.afterBookingSelectDateAndTime(this.appointment,this.getServiceById(this.appointment.serviceId),this.getProviderById(this.appointment.providerId),this.getLocationById(this.appointment.locationId)),this.showConfirmBooking()},cancelPackageList:function(){var e=document.getElementById(this.id);this.packageListShown=!1,this.activePackage=!0,e.classList.toggle("am-active-picker",!0),e.classList.toggle("am-active-package-list",!1)},cancelBooking:function(){if(this.cacheData){this.unsetCacheData();var e=document.getElementById(this.id);return this.activeConfirm=!1,void e.classList.toggle("am-active-confirm",!1)}if(this.activeRecurring){var t=document.getElementById(this.id);return this.activeRecurringSetup=!0,this.activeRecurringDates=!0,this.activeConfirm=!1,t.classList.toggle("am-active-confirm",!1),void t.classList.add("am-active-recurring-dates")}if(this.selectedPackage){var o=document.getElementById(this.id);return this.activeConfirm=!1,this.activePackage=!0,this.selectedPackage.hasSlots&&(this.packageListShown=!0,this.disableFetchPackageSlots=!0,o.classList.add("am-active-package-list")),void o.classList.toggle("am-active-confirm",!1)}this.activeConfirm=!1;var i=document.getElementById(this.id);i.classList.toggle("am-active-confirm",this.activeConfirm),this.appointment.serviceId&&this.appointment.providerId&&i.classList.toggle("am-active-picker",!0),this.showCalendarOnly(!0)&&(i.classList.add("am-mobile-collapsed"),i.classList.remove("am-desktop"))},inlineBookingSVG:function(){o(662).init({svgSelector:"img.svg-booking",initClass:"js-inlinesvg"})},handleResize:function(){var e=document.getElementById(this.id);if(this.showCalendarOnly(!0)||this.passedPackage)return e&&(e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop")),void(this.showCalendarBackButton=this.options.entities.packages.length>0);if(e){var t=e.offsetWidth;this.showCalendarOnly(!1)||this.passedPackage?(e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop"),this.showCalendarBackButton=this.options.entities.packages.length>0):t<670?(e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop"),this.showCalendarBackButton=!0):(e.classList.add("am-desktop"),e.classList.remove("am-mobile-collapsed"),this.showCalendarBackButton=this.options.entities.packages.length>0)}},confirmedBooking:function(e,t,o){var i=this;this.activeConfirm=!1,this.bookingCompleted=!0,this.addToCalendarData=this.getAppointmentAddToCalendarData(e,t),n.a.hasAmeliaTracking(this)&&(e.packageId?this.marketing.package=e.packageId?this.getPackageById(e.packageId):null:(this.marketing.service=e.appointment.serviceId?this.getServiceById(e.appointment.serviceId):null,this.marketing.employee=e.appointment.providerId?this.getProviderById(e.appointment.providerId):null,this.marketing.location=e.appointment.locationId?this.getLocationById(e.appointment.locationId):null,this.marketing.category=e.appointment.serviceId?this.getCategoryById(this.marketing.service.categoryId):null),this.marketing.payment=void 0!==o&&null!==o?o.appointment.payment:this.appointment.payment,"onSite"===this.appointment.payment.gateway?n.a.trackAmeliaData(this,this.$root.marketing,e.type,"Schedule"):n.a.trackAmeliaData(this,this.$root.marketing,e.type,"Purchase")),"beforeConfirmedBooking"in window&&window.beforeConfirmedBooking(this.addToCalendarData),this.showAddToCalendar=!0,this.showAddToCalendar&&setTimeout(function(){Object.keys(i.$refs).length&&i.$refs.congratulations&&i.$refs.congratulations.$el.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},500)},clearValidation:function(){void 0!==this.$refs.booking&&this.$refs.booking.clearValidate()},closeDialogAddToCalendar:function(){this.showAddToCalendar=!1,document.getElementsByClassName("amelia-app-booking")[0].style.display="none",window.location.reload()},resetAppointment:function(){this.$root.shortcodeData.booking.employee&&(this.appointment.providerId=this.$root.shortcodeData.booking.employee),this.$root.shortcodeData.booking.location&&(this.appointment.locationId=this.$root.shortcodeData.booking.location),this.$root.shortcodeData.booking.service&&(this.appointment.serviceId=this.$root.shortcodeData.booking.service),this.$root.shortcodeData.booking.category&&(this.appointment.categoryId=this.$root.shortcodeData.booking.category),this.appointment={bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,serviceDuration:0,group:!1,notifyParticipants:this.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",currency:"",data:{}},categoryId:null,providerId:this.forms[this.formType].selectServiceForm.itemsDraggable.employeeFormField.anyEmployeeVisible?0:null,serviceId:this.setServiceIdOnResetAppointment(),locationId:null},this.setBookingCustomFields()},setServiceIdOnResetAppointment:function(){return this.$root.shortcodeData.booking.service?this.$root.shortcodeData.booking.service:this.passedService&&this.passedService.id?this.passedService.id:null},continuePackage:function(e){if(!e)return!1;this.selectedPackageId=e,this.selectPackage(this.getPackageById(e))}},components:{moment:a.a,selectServiceForm:C.a,calendarDateTimeForm:S.a,recurringSetup:w.a,recurringDates:P.a,selectPackageForm:D.a,packageInfo:E.a,packageSetup:O.a,packageList:A.a,confirmBooking:R.a,addToCalendar:j.a}}},830:function(e,t,o){var i=o(90)(o(831),o(855),!1,null,null,null);e.exports=i.exports},831:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(832),a=o.n(i),n=o(835),s=o.n(n),r=o(838),l=o.n(r),c=o(841),d=o.n(c),m=o(844),p=o.n(m),u=o(849),h=o.n(u),g=o(852),f=o.n(g),v=this;t.default={name:"selectServiceForm",components:{serviceHeadingFormField:a.a,serviceFormField:s.a,servicePackageFormField:l.a,locationFormField:d.a,employeeFormField:p.a,bringingFormField:h.a,addExtraFormField:f.a},props:{extrasError:{type:Array,default:function(){return[]}},showServices:{type:Boolean,default:!0},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:v.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},passedService:{default:function(){},type:Object},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},fetched:{type:Boolean,default:!1},loadingTimeSlots:{type:Boolean,default:!1},formType:{type:String},formsData:{type:Object,default:function(){}}},data:function(){return{formName:this.$options.name,rules:{serviceId:[{required:!0,message:this.formsData[this.$options.name].itemsDraggable.serviceFormField?this.formErrorMessage(this.formsData[this.$options.name].itemsDraggable.serviceFormField.labels.service.value,this.$root.labels.service):this.formErrorMessage(this.$root.labels.service),trigger:"blur",type:"number"}],locationId:[{required:!!this.$root.settings.customization.forms&&this.$root.settings.customization.forms[this.formType].selectServiceForm.itemsDraggable.locationFormField.required,message:this.formErrorMessage(this.formsData[this.$options.name].itemsDraggable.locationFormField.labels.locations.value,this.$root.labels.location_colon),trigger:"blur",type:"number"}],providerId:[{required:!!this.$root.settings.customization.forms&&this.$root.settings.customization.forms[this.formType].selectServiceForm.itemsDraggable.employeeFormField.required,message:this.formErrorMessage(this.formsData[this.$options.name].itemsDraggable.employeeFormField.labels.employee.value,this.$root.labels.employee),trigger:"blur",type:"number"}]}}},mounted:function(){},methods:{changeFormItem:function(e){this.$emit("change",e),void 0!==this.$refs.booking&&this.$refs.booking.clearValidate()},getTimeSlots:function(){var e=this,t=void 0;this.$refs.booking.validate(function(o){if(t=o,!o)return e.$refs.booking.$el.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),!1}),this.$emit("getSlots",t)},formErrorMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],o=e||t;return o&&o.charAt(o.length-1).match(/:/g)&&(o=o.slice(0,-1).toLowerCase()),this.$root.labels.please_select+" "+o}}}},832:function(e,t,o){var i=o(90)(o(833),o(834),!1,null,null,null);e.exports=i.exports},833:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"serviceHeadingFormField",props:{showServices:{type:Boolean,default:!0},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}}}},834:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:""},[e.showServices&&e.formField.visibility?o("p",{staticClass:"am-select-service-title"},[e._v("\n "+e._s(e.formField.labels.please_select_service.value||e.$root.labels.please_select+" "+e.$root.labels.service+":")+"\n ")]):e._e(),e._v(" "),!e.showServices&&e.formField.visibility&&e.formField.labels.book_appointment?o("p",{staticClass:"am-select-service-title"},[e._v("\n "+e._s(e.formField.labels.book_appointment.value||e.$root.labels.book_appointment)+"\n ")]):e._e()])},staticRenderFns:[]}},835:function(e,t,o){var i=o(90)(o(836),o(837),!1,null,null,null);e.exports=i.exports},836:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(659),a=o(655),n=this;t.default={name:"serviceFormField",mixins:[i.a,a.a],props:{fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:n.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},mounted:function(){},data:function(){return{serviceLabel:this.formField.labels.service.value}},methods:{changeService:function(){this.$emit("change",{identifier:"changeService"})}}}},837:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.showServices?o("el-form-item",{staticClass:"am-select-service-option",class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.serviceLabel||e.capitalizeFirstLetter(e.$root.labels.service)+":",prop:"serviceId"}},[o("el-select",{attrs:{clearable:!0,loading:!e.fetched,"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",id:"serviceId",placeholder:""},on:{change:e.changeService},model:{value:e.appointment.serviceId,callback:function(t){e.$set(e.appointment,"serviceId",t)},expression:"appointment.serviceId"}},e._l(e.servicesFiltered,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e()},staticRenderFns:[]}},838:function(e,t,o){var i=o(90)(o(839),o(840),!1,null,null,null);e.exports=i.exports},839:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(710),a=o(657),n=this;t.default={name:"servicePackageFormField",mixins:[i.a,a.a],props:{fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},passedService:{type:Object,default:function(){}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:n.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},methods:{selectPackage:function(e){var t={identifier:"selectPackage",value:e};this.$emit("change",t)}}}},840:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.formField.visibility?o("div",e._l(e.getAvailablePackages(),function(t){return e.passedService?e._e():o("div",{staticClass:"am-package",on:{click:function(o){return e.selectPackage(t)}}},[o("el-row",[o("el-col",{staticClass:"am-package-name",class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{span:16}},[o("p",{staticClass:"am-gray-text"},[e._v(e._s(e.formField.labels.package_available.value||e.$root.labels.package_available))]),e._v(" "),o("p",{staticClass:"am-large-text"},[e._v(e._s(t.name))])]),e._v(" "),o("el-col",{staticClass:"am-package-price",attrs:{span:8}},[o("p",{staticClass:"am-large-text"},[e._v(e._s(e.getFormattedPrice(e.getPackagePrice(t),!e.$root.settings.payments.hideCurrencySymbolFrontend)))]),e._v(" "),o("p",{staticClass:"am-discount-text"},[e._v("\n "+e._s(t.discount&&!t.calculatedPrice?(e.formField.labels.package_discount_text.value||e.$root.labels.package_discount_text)+" "+t.discount+"%":"")+"\n ")])])],1),e._v(" "),o("el-row",{staticClass:"am-package-services"},[o("el-col",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{span:19}},e._l(t.availableBookableInfo,function(t){return o("p",{key:t.serviceId},[e._v(e._s(t.serviceName))])}),0),e._v(" "),o("el-col",{attrs:{span:3}},e._l(t.availableBookableInfo,function(i){return t.sharedCapacity?e._e():o("p",{key:i.serviceId,staticClass:"am-package-appointment-number"},[e._v("x"+e._s(i.serviceQuantity))])}),0),e._v(" "),o("el-col",{staticClass:"am-package-book",attrs:{span:2}},[t.sharedCapacity?o("span",{staticClass:"am-package-appointment-number"},[e._v("x"+e._s(t.quantity))]):e._e(),o("i",{staticClass:"el-icon-right"})])],1)],1)}),0):e._e()},staticRenderFns:[]}},841:function(e,t,o){var i=o(90)(o(842),o(843),!1,null,null,null);e.exports=i.exports},842:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(659),a=this;t.default={name:"locationFormField",mixins:[i.a],props:{fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:a.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{locationLabel:this.formField.labels.locations.value}},methods:{changeLocation:function(){var e={identifier:"changeLocation",required:this.formField.required};this.$emit("change",e)}}}},843:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.showLocations&&e.formField.visibility?o("el-form-item",{staticClass:"am-select-location-option",class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.locationLabel?e.locationLabel:e.$root.labels.location_colon,prop:"locationId"}},[o("el-select",{attrs:{loading:!e.fetched,"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",clearable:"",placeholder:""},on:{change:e.changeLocation},model:{value:e.appointment.locationId,callback:function(t){e.$set(e.appointment,"locationId",t)},expression:"appointment.locationId"}},e._l(e.locationsFiltered,function(e){return o("el-option",{key:e.id,attrs:{disabled:e.disabled,label:e.name,value:e.id}})}),1)],1):e._e()},staticRenderFns:[]}},844:function(e,t,o){var i=o(90)(o(847),o(848),!1,function(e){o(845)},"data-v-ff92a12a",null);e.exports=i.exports},845:function(e,t,o){var i=o(846);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(681)("50cae366",i,!0,{})},846:function(e,t,o){(e.exports=o(676)(!1)).push([e.i,"",""])},847:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(655),a=o(659),n=this;t.default={name:"employeeFormField",mixins:[i.a,a.a],props:{fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},selectedExtras:{type:Array,default:function(){return[]}},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:n.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},created:function(){this.formField.anyEmployeeVisible||(this.appointment.providerId=null)},data:function(){return{anyEmployeeVisibility:this.formField.anyEmployeeVisible,labelEmployee:this.formField.labels.employee.value,labelAnyEmployee:this.$root.settings.labels.enabled?this.$root.labels.any+" "+this.$root.labels.employee:this.$root.labels.any_employee,labelAnyEmployeeCustom:this.formField.labels.any_employee.value||(this.$root.settings.labels.enabled?this.$root.labels.any+" "+this.$root.labels.employee:this.$root.labels.any_employee)}},methods:{changeEmployee:function(){var e={identifier:"changeEmployee",required:this.formField.required};this.$emit("change",e)}}}},848:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.showEmployees&&e.formField.visibility?o("el-form-item",{staticClass:"am-select-employee-option",class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.labelEmployee||e.capitalizeFirstLetter(e.$root.labels.employee)+":",prop:"providerId"}},[o("el-select",{attrs:{loading:!e.fetched,clearable:!e.anyEmployeeVisibility||0!==e.appointment.providerId,"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",placeholder:""},on:{clear:function(t){e.anyEmployeeVisibility?e.appointment.providerId=0:e.appointment.providerId=null},change:e.changeEmployee},model:{value:e.appointment.providerId,callback:function(t){e.$set(e.appointment,"providerId",t)},expression:"appointment.providerId"}},[e.anyEmployeeVisibility?o("el-option",{key:0,staticClass:"am-select-any-employee-option",attrs:{label:e.labelAnyEmployeeCustom,value:0}}):e._e(),e._v(" "),e._l(e.employeesFiltered,function(e){return o("el-option",{key:e.id,attrs:{label:e.firstName+" "+e.lastName,value:e.id}})})],2)],1):e._e()},staticRenderFns:[]}},849:function(e,t,o){var i=o(90)(o(850),o(851),!1,null,null,null);e.exports=i.exports},850:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(659),a=this;t.default={name:"bringingFormField",mixins:[i.a],props:{fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:a.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{bringingLabel:this.formField.labels.bringing_anyone_with_you.value,numberOfPersons:this.formField.labels.number_of_additional_persons.value}},methods:{checkBringingAnyone:function(){var e=this.getServiceById(this.appointment.serviceId);return e.bringingAnyone&&(null===e.maxExtraPeople||e.maxExtraPeople>0)},enableGrouping:function(){this.$emit("enableGrouping")},changeNumberOfPersons:function(){this.$emit("change",{identifier:"changeNumberOfPersons"})}}}},851:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.group.allowed&&!!e.appointment.serviceId&&e.checkBringingAnyone(),expression:"group.allowed && (appointment.serviceId ? checkBringingAnyone() : false)"}],class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{label:""}},[o("el-row",[o("el-col",{attrs:{span:18}},[o("span",{staticStyle:{"font-weight":"700","font-size":"16px"}},[e._v("\n "+e._s(e.bringingLabel?e.bringingLabel:e.$root.labels.bringing_anyone_with_you)+"\n ")])]),e._v(" "),o("el-col",{staticClass:"am-align-right",attrs:{span:6}},[o("el-switch",{on:{change:e.enableGrouping},model:{value:e.group.enabled,callback:function(t){e.$set(e.group,"enabled",t)},expression:"group.enabled"}})],1)],1)],1),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.group.enabled&&!!e.appointment.serviceId&&e.checkBringingAnyone(),expression:"group.enabled && (appointment.serviceId ? checkBringingAnyone() : false)"}],staticClass:"am-grouped"},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.numberOfPersons?e.numberOfPersons:e.$root.labels.number_of_additional_persons}},[o("el-select",{attrs:{"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",placeholder:""},on:{change:e.changeNumberOfPersons},model:{value:e.appointment.bookings[0].persons,callback:function(t){e.$set(e.appointment.bookings[0],"persons",t)},expression:"appointment.bookings[0].persons"}},e._l(e.group.options,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)])],1)},staticRenderFns:[]}},852:function(e,t,o){var i=o(90)(o(853),o(854),!1,null,null,null);e.exports=i.exports},853:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(659),a=o(660),n=o(657),s=this;t.default={name:"addExtraFormField",mixins:[i.a,a.a,n.a],props:{extrasError:{type:Array,default:function(){return[]}},fetched:{type:Boolean,default:!1},showServices:{type:Boolean,default:!1},showLocations:{type:Boolean,default:!1},showEmployees:{type:Boolean,default:!1},group:{type:Object,default:function(){return{allowed:!1,enabled:!1,count:1,options:[]}}},selectedExtras:{type:Array,default:function(){return[]}},appointment:{type:Object,default:function(){return{bookingStart:"",bookingStartTime:"",bookings:[{customer:{email:"",externalId:null,firstName:"",id:null,lastName:"",phone:""},customFields:{},customerId:0,extras:[],persons:1}],duration:0,group:!1,notifyParticipants:s.$root.settings.notifications.notifyCustomers,payment:{amount:0,gateway:"",data:{}},categoryId:null,providerId:0,serviceId:null,locationId:null}}},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{extraColonLabel:this.formField.labels.extra_colon.value,qtyColonLabel:this.formField.labels.qty_colon.value,durationColonLabel:this.formField.labels.duration_colon.value,priceColonLabel:this.formField.labels.price_colon.value,addExtraColonLabel:this.formField.labels.add_extra.value}},methods:{getAvailableExtras:function(e){var t=[],o=[];return this.selectedExtras.forEach(function(e){e.id&&t.push(e.id)}),this.getServiceById(this.appointment.serviceId).extras.forEach(function(i){-1!==t.indexOf(i.id)&&e.id!==i.id||o.push(i)}),o},getSelectedExtraMaxQuantity:function(e){var t=this.getServiceById(this.appointment.serviceId).extras.find(function(t){return t.id===e.id});return void 0!==t?t.maxQuantity:""},changeSelectedExtra:function(e,t){var o={identifier:"changeSelectedExtra",value:e,key:t};this.$emit("change",o)},deleteExtra:function(e){var t={identifier:"deleteExtra",value:e};this.$emit("change",t)},addExtra:function(){this.$emit("change",{identifier:"addExtra"})}}}},854:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.appointment.serviceId&&(e.getServiceById(e.appointment.serviceId).mandatoryExtra||e.formField.visibility)?o("div",[o("transition-group",{staticClass:"am-extras-add",attrs:{name:"fade"}},e._l(e.selectedExtras,function(t,i){return e.appointment.serviceId&&e.getServiceById(e.appointment.serviceId).extras.length>0&&(e.getServiceById(e.appointment.serviceId).mandatoryExtra||e.formField.visibility)?o("div",{key:i+1,staticClass:"am-extras"},[o("el-row",{staticClass:"am-flex-row-middle-align-mobile",attrs:{gutter:16}},[o("el-col",{attrs:{span:i>=e.appointment.bookings[0].minSelectedExtras||!e.appointment.bookings[0].haveMandatoryExtras?14:17}},[o("el-form-item",{class:[e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",i<e.appointment.bookings[0].minSelectedExtras&&e.appointment.bookings[0].haveMandatoryExtras?"is-required":""],attrs:{label:e.extraColonLabel?e.extraColonLabel:e.$root.labels.extra_colon,error:e.extrasError.includes(i)?e.$root.labels.extra_error:""}},[o("el-select",{attrs:{"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",placeholder:""},on:{change:function(o){return e.changeSelectedExtra(t,i)}},model:{value:t.id,callback:function(o){e.$set(t,"id",o)},expression:"selectedExtra.id"}},e._l(e.getAvailableExtras(t),function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)],1),e._v(" "),o("el-col",{attrs:{span:7}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.qtyColonLabel?e.qtyColonLabel:e.$root.labels.qty_colon}},[o("el-select",{attrs:{placeholder:"",disabled:null===t.id,"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:""},on:{change:function(o){return e.changeSelectedExtra(t)}},model:{value:t.quantity,callback:function(o){e.$set(t,"quantity",o)},expression:"selectedExtra.quantity"}},e._l(e.getSelectedExtraMaxQuantity(t),function(e){return o("el-option",{key:e,attrs:{label:e,value:e}})}),1)],1)],1),e._v(" "),o("el-col",{directives:[{name:"show",rawName:"v-show",value:i>=e.appointment.bookings[0].minSelectedExtras||!e.appointment.bookings[0].haveMandatoryExtras,expression:"key >= appointment.bookings[0].minSelectedExtras || !appointment.bookings[0].haveMandatoryExtras"}],staticClass:"am-align-right",attrs:{span:3}},[o("div",{staticClass:"am-delete-element",on:{click:function(t){return e.deleteExtra(i)}}},[o("i",{staticClass:"el-icon-minus"})])])],1),e._v(" "),t.duration||t.price?o("el-row",{staticClass:"am-flex-row-middle-align-mobile",attrs:{gutter:16}},[o("el-col",{attrs:{span:14}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{label:e.durationColonLabel?e.durationColonLabel:e.$root.labels.duration_colon}},[o("span",[e._v("\n "+e._s(t.duration?e.secondsToNiceDuration(t.duration):"/")+"\n ")])])],1),e._v(" "),t.price?o("el-col",{attrs:{span:10}},[o("el-form-item",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:"",attrs:{label:e.priceColonLabel?e.priceColonLabel:e.$root.labels.price_colon}},[o("span",[e._v("\n "+e._s(e.getFormattedPrice(t.price,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])])],1):e._e()],1):e._e()],1):e._e()}),0),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.appointment.serviceId&&e.selectedExtras.length<e.getServiceById(e.appointment.serviceId).extras.length,expression:"appointment.serviceId && selectedExtras.length < getServiceById(appointment.serviceId).extras.length"}],staticClass:"am-add-element",on:{click:e.addExtra}},[o("i",{staticClass:"el-icon-plus"}),e._v(" "),o("span",[e._v(e._s(e.addExtraColonLabel?e.addExtraColonLabel:e.$root.labels.add_extra))])])],1):e._e()},staticRenderFns:[]}},855:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-form-full-wrapper",class:e.$root.settings.customization.forms?"am-form-"+e.formType+"-"+e.formName:""},[o("div",{staticClass:"am-select-service"},[o("service-heading-form-field",{attrs:{showServices:e.showServices,"class-identifier":e.formType+"-"+e.formName,formField:e.formsData[e.formName].itemsStatic.serviceHeadingFormField}}),e._v(" "),o("el-form",{ref:"booking",attrs:{model:e.appointment,rules:e.rules,"label-position":"top"}},[e._l(e.formsData[e.formName].itemsDraggable,function(t,i){return[o(i,{tag:"component",attrs:{"extras-error":e.extrasError,showServices:e.showServices,passedService:e.passedService,showLocations:e.showLocations,showEmployees:e.showEmployees,group:e.group,selectedExtras:e.selectedExtras,appointment:e.appointment,options:e.options,fetched:e.fetched,"class-identifier":e.formType+"-"+e.$options.name,"form-field":t},on:{change:e.changeFormItem,enableGrouping:function(t){return e.$emit("enableGrouping")}}})]}),e._v(" "),o("div",{staticClass:"am-button-wrapper"},[o("el-button",{attrs:{loading:e.loadingTimeSlots,type:"primary"},on:{click:e.getTimeSlots}},[e._v("\n "+e._s(e.$root.labels.continue)+"\n ")])],1)],2)],1)])},staticRenderFns:[]}},856:function(e,t,o){var i=o(90)(o(857),o(861),!1,null,null,null);e.exports=i.exports},857:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(336),a=o(696),n=o(858),s=o.n(n),r=o(660);t.default={name:"calendarDateTimeForm",components:{calendarHeadingFormField:s.a},mixins:[i.a,a.a,r.a],props:{id:{type:String,default:"am-step-booking"},durations:{type:Array,default:function(){return[]}},selectedDate:{type:Date,default:null},availableDates:{type:Array,default:function(){return[]}},disabledWeekdays:{type:Object,default:null},disabledAttribute:{type:Object,default:function(){}},calendarId:{type:String,default:""},showTimes:{type:Boolean,default:!1},appointment:{type:Object,default:function(){}},availableTimeSlots:{type:Array,default:function(){return[]}},isRecurringAvailable:{type:Boolean,default:!1},activeRecurring:{type:Boolean,default:!1},showCalendarBackButton:{type:Boolean,default:!0},showCalendarContinueButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingTimeSlots:{type:Boolean,default:!1},formType:{type:String},formsData:{type:Object,default:function(){}}},data:function(){return{formName:this.$options.name,selectedCalendarDate:this.selectedDate,clickedActiveRecurring:this.activeRecurring,recurringLabel:this.formsData[this.$options.name].itemsStatic.recurringSwitchFormField.labels.recurring_active.value,recurringSwitchVisibility:this.formsData[this.$options.name].itemsStatic.recurringSwitchFormField.visibility,endTimeVisibility:this.formsData[this.$options.name].itemsStatic.calendarAppointmentFormField.endDateVisibility,timeZoneString:this.$root.settings.general.showClientTimeZone?Intl.DateTimeFormat().resolvedOptions().timeZone:this.$root.settings.wordpress.timezone,timeZoneVisibility:this.formsData[this.$options.name].itemsStatic.timeZoneFormField.visibility}},methods:{selectDuration:function(e){this.$emit("selectDuration",e)},selectDate:function(e){this.$emit("selectDate",e,this.selectedCalendarDate)},setTimeSlots:function(){this.$emit("setTimeSlots",this.selectedCalendarDate)},changeMonth:function(e){this.$emit("changeMonth",e)},selectTime:function(){this.$emit("selectTime")},togglePicker:function(){this.$emit("togglePicker")},showNextScreen:function(){this.$emit("showNextScreen")},changeActiveRecurring:function(){this.$emit("changeRecurring",this.clickedActiveRecurring)}},watch:{selectedDate:function(){this.selectedCalendarDate=this.selectedDate},activeRecurring:function(){this.clickedActiveRecurring=this.activeRecurring}}}},858:function(e,t,o){var i=o(90)(o(859),o(860),!1,null,null,null);e.exports=i.exports},859:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"calendarHeadingFormField",props:{classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{formHeading:this.formField.labels.pick_date_and_time.value}}}},860:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:""},[e.formField.visibility?o("p",{staticClass:"am-select-date-title"},[e._v("\n "+e._s(e.formHeading?e.formHeading:e.$root.labels.pick_date_and_time_colon)+"\n ")]):e._e()])},staticRenderFns:[]}},861:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-select-date am-select-service-date-transition am-show-calendar",class:e.$root.settings.customization.forms?"am-form-"+e.formType+"-"+e.formName:"",attrs:{id:this.id+"-calendar"}},[o("calendar-heading-form-field",{attrs:{"class-identifier":e.formType+"-"+e.formName,formField:e.formsData[e.formName].itemsStatic.calendarHeadingFormField}}),e._v(" "),e.timeZoneVisibility?o("p",{staticClass:"am-timezone",class:"am-block-"+e.formType+"-"+e.formName,style:{margin:0}},[o("span",{staticClass:"am-timezone__text"},[e._v(e._s(e.timeZoneString))])]):e._e(),e._v(" "),o("div",{staticClass:"am-duration-container"},[e.durations.length>1?o("el-select",{staticClass:"am-duration",class:"am-block-"+e.formType+"-"+e.formName,style:{margin:0},attrs:{"popper-class":"am-select-complex"},on:{change:e.selectDuration},model:{value:e.appointment.serviceDuration,callback:function(t){e.$set(e.appointment,"serviceDuration",t)},expression:"appointment.serviceDuration"}},e._l(e.durations,function(t){return o("el-option",{key:t.duration,attrs:{label:e.secondsToNiceDuration(t.duration)+" ("+t.priceLabel+")",value:t.duration}},[o("span",[o("img",{attrs:{src:e.$root.getUrl+"public/img/clock.svg"}}),e._v(e._s(e.secondsToNiceDuration(t.duration)))]),e._v(" "),o("span",[e._v(e._s(t.priceLabel))])])}),1):e._e()],1),e._v(" "),o("v-date-picker",{staticClass:"am-calendar-picker",class:e.$root.settings.customization.forms?"am-calendar-"+e.formType+"-"+e.formName:"",attrs:{mode:"single",id:"am-calendar-picker","available-dates":e.availableDates,"disabled-dates":e.disabledWeekdays,"show-day-popover":!1,"is-expanded":!0,"is-inline":!0,"disabled-attribute":e.disabledAttribute,formats:e.vCalendarFormats},on:{dayclick:e.selectDate,input:e.setTimeSlots,"update:fromPage":e.changeMonth},model:{value:e.selectedCalendarDate,callback:function(t){e.selectedCalendarDate=t},expression:"selectedCalendarDate"}}),e._v(" "),e.loadingTimeSlots?o("div",{staticClass:"am-booking-fetched",attrs:{id:"am-spinner"}},[o("div",{staticClass:"am-svg-wrapper"},[o("img",{staticClass:"svg-amelia am-spin",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}}),e._v(" "),o("img",{staticClass:"svg-amelia am-hourglass",attrs:{src:e.$root.getUrl+"public/img/hourglass.svg"}})])]):e._e(),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.showTimes,expression:"showTimes"}],attrs:{id:e.calendarId}},[o("div",{staticClass:"am-appointment-times am-scroll"},[o("el-radio-group",{attrs:{size:"medium"},on:{change:e.selectTime},model:{value:e.appointment.bookingStartTime,callback:function(t){e.$set(e.appointment,"bookingStartTime",t)},expression:"appointment.bookingStartTime"}},e._l(e.availableTimeSlots,function(t,i){return o("el-radio-button",{key:i+1,attrs:{label:t}},[e._v("\n "+e._s(e.getFormattedTimeSlot(t,e.appointment.duration,e.endTimeVisibility))+"\n ")])}),1)],1)])]),e._v(" "),e.isRecurringAvailable&&e.recurringSwitchVisibility?o("div",{staticClass:"am-recurring-check",class:e.$root.settings.customization.forms?"am-block-"+e.formType+"-"+e.formName:""},[o("span",[e._v(e._s(e.recurringLabel?e.recurringLabel:e.$root.labels.recurring_active))]),e._v(" "),o("el-switch",{on:{change:e.changeActiveRecurring},model:{value:e.clickedActiveRecurring,callback:function(t){e.clickedActiveRecurring=t},expression:"clickedActiveRecurring"}})],1):e._e(),e._v(" "),o("div",{staticClass:"am-button-wrapper",attrs:{id:"am-button-wrapper-"+e.$root.shortcodeData.counter}},[o("transition",{attrs:{name:"fade"}},[e.showCalendarBackButton?o("el-button",{attrs:{id:"am-back-button"},on:{click:function(t){return e.togglePicker()}}},[e._v("\n "+e._s(e.$root.labels.back)+"\n ")]):e._e()],1),e._v(" "),o("transition",{attrs:{name:"fade"}},[o("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showCalendarContinueButton,expression:"showCalendarContinueButton"}],attrs:{id:"am-continue-button",loading:e.loading||e.loadingTimeSlots},on:{click:e.showNextScreen}},[e._v("\n "+e._s(e.$root.labels.continue)+"\n ")])],1)],1)],1)},staticRenderFns:[]}},862:function(e,t,o){var i=o(90)(o(863),o(870),!1,null,null,null);e.exports=i.exports},863:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(655),a=o(864),n=o.n(a),s=o(867),r=o.n(s);t.default={name:"selectPackageForm",components:{packageHeadingFormField:n.a,packageFormField:r.a},props:{selectedPackageId:{type:Number,default:null},options:{type:Object,default:function(){return{}}},fetched:{type:Boolean,default:!1},formType:{type:String},formsData:{type:Object,default:function(){return{}}}},mixins:[i.a],data:function(){return{formName:this.$options.name,packageForm:{packageId:null},rules:{packageId:[{required:!0,message:this.formErrorMessage(this.formsData[this.$options.name].itemsStatic.packageFormField.labels.package_colon.value,this.$root.labels.package),trigger:"blur",type:"number"}]}}},created:function(){this.packageForm.packageId=this.selectedPackageId},methods:{continuePackage:function(){var e=this;this.$refs.booking.validate(function(t){if(!t)return e.$refs.booking.$el.scrollIntoView(),!1}),this.$emit("continuePackage",this.packageForm.packageId)},changeFormItem:function(){void 0!==this.$refs.booking&&this.$refs.booking.clearValidate()},formErrorMessage:function(e,t){var o=e||t;return o=o.charAt(o.length-1).match(/:/g)?o.slice(0,-1).toLowerCase():o.toLowerCase(),this.$root.labels.please_select+" "+o}}}},864:function(e,t,o){var i=o(90)(o(865),o(866),!1,null,null,null);e.exports=i.exports},865:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"packageHeadingFormField",props:{classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},data:function(){return{labelHeading:this.formField.labels.please_select_package.value}}}},866:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{class:e.$root.settings.customization.forms?"am-block-"+e.classIdentifier:""},[o("p",{directives:[{name:"show",rawName:"v-show",value:e.formField.visibility,expression:"formField.visibility"}],staticClass:"am-select-service-title"},[e._v("\n "+e._s(e.labelHeading||e.$root.labels.please_select+" "+e.$root.labels.package+":")+"\n ")])])},staticRenderFns:[]}},867:function(e,t,o){var i=o(90)(o(868),o(869),!1,null,null,null);e.exports=i.exports},868:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(655);t.default={name:"packageFormField",props:{packageForm:{type:Object,default:function(){}},fetched:{type:Boolean,default:!1},options:{type:Object,default:function(){return{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[],customFields:[]}}}},classIdentifier:{type:String,default:""},formField:{type:Object,default:function(){}}},mixins:[i.a],mounted:function(){},data:function(){return{labelPackage:this.formField.labels.package_colon.value}},methods:{changePackage:function(){this.$emit("changeFormItem")}}}},869:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form-item",{staticClass:"am-select-service-option",class:e.$root.settings.customization.forms?"am-select-"+e.classIdentifier:"",attrs:{label:e.labelPackage||e.capitalizeFirstLetter(e.$root.labels.package)+":",prop:"packageId"}},[o("el-select",{attrs:{clearable:!0,loading:!e.fetched,"popper-class":e.$root.settings.customization.forms?"am-dropdown-"+e.classIdentifier:"",placeholder:""},on:{change:e.changePackage},model:{value:e.packageForm.packageId,callback:function(t){e.$set(e.packageForm,"packageId",t)},expression:"packageForm.packageId"}},e._l(e.options.entities.packages,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1)},staticRenderFns:[]}},870:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-form-full-wrapper",class:e.$root.settings.customization.forms?"am-form-"+e.formType+"-"+e.formName:""},[o("div",{staticClass:"am-select-service"},[o("package-heading-form-field",{attrs:{"class-identifier":e.formType+"-"+e.formName,"form-field":e.formsData[e.formName].itemsStatic.packageHeadingFormField}}),e._v(" "),o("el-form",{ref:"booking",attrs:{model:e.packageForm,rules:e.rules,"label-position":"top"}},[o("package-form-field",{attrs:{"package-form":e.packageForm,options:e.options,fetched:e.fetched,"class-identifier":e.formType+"-"+e.formName,"form-field":e.formsData[e.formName].itemsStatic.packageFormField},on:{change:e.changeFormItem}}),e._v(" "),o("div",{staticClass:"am-button-wrapper"},[o("el-button",{attrs:{type:"primary"},on:{click:e.continuePackage}},[e._v("\n "+e._s(e.$root.labels.continue)+"\n ")])],1)],1)],1)])},staticRenderFns:[]}},871:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-wrap",attrs:{id:"amelia-booking-wrap"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:!e.empty&&(!e.fetched||e.loadingCacheBookingData),expression:"!empty && (!fetched || loadingCacheBookingData)"}],staticClass:"am-spinner am-section"},[o("img",{staticClass:"svg-booking am-spin",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}}),e._v(" "),o("img",{staticClass:"svg-booking am-hourglass",attrs:{src:e.$root.getUrl+"public/img/hourglass.svg"}})]),e._v(" "),e.empty?o("div",{staticClass:"am-no-services"},[o("img",{staticStyle:{"margin-top":"10px"},attrs:{src:e.$root.getUrl+"public/img/am-empty-booking.svg"}}),e._v(" "),o("h1",[e._v(e._s(e.$root.labels.oops))]),e._v(" "),"packages"!==e.$root.shortcodeData.booking.show?o("h3",[e._v(e._s(e.$root.labels.no_services_employees))]):e._e(),e._v(" "),"packages"!==e.$root.shortcodeData.booking.show?o("p",[e._v(e._s(e.$root.labels.add_services_employees))]):e._e(),e._v(" "),"packages"===e.$root.shortcodeData.booking.show?o("p",[e._v(e._s(e.$root.labels.no_package_services))]):e._e(),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/services-and-categories/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_services_url)+"\n ")]),e._v(" "),"packages"!==e.$root.shortcodeData.booking.show?o("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(e.$root.labels.and))]):e._e(),e._v(" "),"packages"!==e.$root.shortcodeData.booking.show?o("a",{attrs:{href:"https://wpamelia.com/employees/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_employees_url)+"\n ")]):e._e()]):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.empty&&e.fetched,expression:"!empty && fetched"}],staticClass:"am-step-booking-catalog",class:e.$root.settings.customization.forms?"am-form-"+e.formType:"",attrs:{id:e.id}},[e.bookingCompleted||e.activePackage||e.passedPackage||e.showPackagesOnly||e.packageCalendarActive?e._e():o("select-service-form",{attrs:{"show-services":e.showServices,"show-locations":e.showLocations,"show-employees":e.showEmployees,"passed-service":e.passedService,appointment:e.appointment,group:e.group,"selected-extras":e.selectedExtras,options:e.options,fetched:e.fetched,"extras-error":e.extrasError,"form-type":e.formType,"forms-data":e.forms[e.formType],"loading-time-slots":e.loadingTimeSlots},on:{change:e.changeFormItem,getSlots:e.getTimeSlots,enableGrouping:e.enableGrouping}}),e._v(" "),e.activeRecurringSetup&&!e.bookingCompleted?o("recurring-setup",{attrs:{containerId:e.id,initialRecurringData:e.initialRecurringData,recurringData:e.recurringData,disabledWeekdays:e.disabledWeekdays,availableDates:e.availableDates,calendarTimeSlots:e.calendarTimeSlots,occupiedTimeSlots:e.occupiedTimeSlots,service:e.getServiceById(e.appointment.serviceId),isFrontend:!0,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{cancelRecurringSetup:e.cancelRecurringSetup,confirmRecurringSetup:e.confirmRecurringSetup}}):e._e(),e._v(" "),e.activeRecurringDates&&!e.bookingCompleted?o("recurring-dates",{attrs:{dialogClass:"am-recurring-dates",recurringData:e.recurringData,availableDates:e.availableDates,calendarTimeSlots:e.calendarTimeSlots,isFrontend:!0,service:e.getServiceById(e.appointment.serviceId),selectedExtras:e.selectedExtras,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{confirmRecurringDates:e.confirmRecurringDates,cancelRecurringDates:e.cancelRecurringDates}}):e._e(),e._v(" "),e.bookingCompleted||e.activeRecurringSetup||e.activePackage||e.passedPackage||e.showPackagesOnly||e.packageCalendarActive?e._e():o("calendar-date-time-form",{attrs:{id:e.id,"selected-date":e.selectedDate,"available-dates":e.availableDates,"disabled-weekdays":e.disabledWeekdays,"disabled-attribute":e.disabledAttribute,"calendar-id":e.calendarId,"show-times":e.showTimes,appointment:e.appointment,"available-time-slots":e.availableTimeSlots,"is-recurring-available":e.isRecurringAvailable,"active-recurring":e.activeRecurring,"show-calendar-back-button":e.showCalendarBackButton,"show-calendar-continue-button":e.showCalendarContinueButton,loading:e.loading,"loading-time-slots":e.loadingTimeSlots,durations:e.getDurations(),"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{selectDuration:e.getTimeSlots,selectDate:e.selectDate,setTimeSlots:e.setTimeSlots,selectTime:e.selectTime,changeMonth:e.changeMonth,togglePicker:e.togglePicker,showNextScreen:e.showNextScreen,changeRecurring:e.changeActiveRecurring}}),e._v(" "),e.bookingCompleted||e.activePackage||e.passedPackage||e.packageListShown||e.activeConfirm||!e.showPackagesOnly?e._e():o("select-package-form",{attrs:{"selected-package-id":e.selectedPackageId,fetched:e.fetched,options:e.options,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{continuePackage:e.continuePackage}}),e._v(" "),e.bookingCompleted||!e.activePackage||e.passedPackage?e._e():o("package-info",{staticClass:"am-package-selected",attrs:{id:e.id,"fetched-slots":e.fetchedSlots,"selected-package":e.selectedPackage,"package-slots-fetched":e.packageSlotsFetched,"has-back":e.packagesHaveBack,"has-header":!0,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{showPackageCalendar:function(t){e.packageServiceSelected++},closePackage:e.closePackage,packageSlotsSelectedCallback:e.packageSlotsSelectedCallback}}),e._v(" "),e.bookingCompleted||e.selectedPackage&&!e.selectedPackage.hasSlots||!e.packageCalendarActive?e._e():o("package-setup",{staticClass:"am-select-date am-select-service-date-transition am-package-setup",attrs:{id:e.id,options:e.options,selectedPackage:e.selectedPackage,packageServiceSelected:e.packageServiceSelected,packageCreated:e.packageCreated,isPassedPackage:!!e.passedPackage,disableFetchSlots:e.disableFetchPackageSlots,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{packageSlotsFetchedCallback:e.packageSlotsFetchedCallback,packageSlotsSelectedCallback:e.packageSlotsSelectedCallback,packageListShow:e.packageListShow}}),e._v(" "),!e.bookingCompleted&&e.packageListShown?o("package-list",{attrs:{"container-id":"amelia-app-booking"+e.$root.shortcodeData.counter,bookable:e.getBookablePackageData(),"has-header":!e.passedPackage,quantity:e.selectedPackage.sharedCapacity?e.selectedPackage.quantity:0,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{cancelBooking:e.cancelPackageList,packageSlotsSelectedCallback:e.packageSlotsSelectedCallback}}):e._e(),e._v(" "),e.activeConfirm&&!e.bookingCompleted?o("confirm-booking",e._b({attrs:{dialogClass:"am-confirm-booking am-scroll","form-type":e.formType,"forms-data":e.forms[e.formType]},on:{confirmedBooking:e.confirmedBooking,cancelBooking:e.cancelBooking}},"confirm-booking",!e.cacheData||"canceled"!==e.cacheData.status&&"failed"!==e.cacheData.status?{bookableType:null===e.selectedPackage?"appointment":"package",containerId:e.getContainerId(),taxes:e.options.entities.taxes,bookable:e.getBookableData(),appointment:e.appointment,marketing:e.marketing,provider:e.selectedProvider,location:e.selectedLocation,service:e.selectedService,customFields:e.options.entities.customFields,recurringData:e.getRecurringAppointmentsData(),packageData:null===e.selectedPackage?null:e.getPackageAppointmentsData(),recurringString:e.recurringData.recurringString+" "+e.recurringData.untilString,hasCancel:!e.passedPackage||e.passedPackage.hasSlots,hasHeader:!e.passedPackage,phonePopulated:e.phonePopulated,passedCategoryId:e.passedCategory?e.passedCategory.id:null,queryParams:[]}:e.getCacheDataRequestProps(),!1)):e._e(),e._v(" "),o("transition",{attrs:{name:"fade"}},[e.showAddToCalendar?o("add-to-calendar",{ref:"congratulations",attrs:{addToCalendarData:e.addToCalendarData,"form-type":e.formType,"forms-data":e.forms[e.formType]},on:{closeDialogAddToCalendar:e.closeDialogAddToCalendar}}):e._e()],1)],1),e._v(" "),e.$root.licence.isLite&&e.$root.settings.general.backLink.enabled?o("div",{staticClass:"am-lite-footer"},[o("a",{staticClass:"am-lite-footer-link",attrs:{rel:"nofollow",href:e.$root.settings.general.backLink.url,target:"_blank"}},[e._v("\n "+e._s(e.$root.settings.general.backLink.label)+"\n ")])]):e._e()])},staticRenderFns:[]}},872:function(e,t,o){var i=o(90)(o(885),o(886),!1,null,null,null);e.exports=i.exports},873:function(e,t,o){var i=o(90)(o(887),o(888),!1,null,null,null);e.exports=i.exports},885:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(660),a=o(657),n=o(659);t.default={mixins:[i.a,a.a,n.a],props:{formColors:{type:Object},formLabels:{type:Object},extras:{type:Array}}}},886:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h3",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(e.formLabels.extras.value||e.$root.labels.extras)+"\n ")]),e._v(" "),o("el-collapse",e._l(e.extras,function(t,i){return o("el-collapse-item",{key:i,staticClass:"am-extra",style:{color:e.formColors.formTextColor},attrs:{name:i}},[o("template",{slot:"title"},[o("span",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(t.name)+"\n ")])]),e._v(" "),null!==t.duration?o("div",{staticClass:"am-extra-duration"},[o("el-col",{style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(e.formLabels.duration_colon.value||e.$root.labels.duration_colon)+"\n ")]),e._v(" "),o("el-col",{staticClass:"am-align-right",style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(e.secondsToNiceDuration(t.duration))+"\n ")])],1):e._e(),e._v(" "),o("div",{staticClass:"am-extra-price"},[o("el-col",{style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(e.formLabels.price_colon.value||e.$root.labels.price_colon)+"\n ")]),e._v(" "),o("el-col",{staticClass:"am-align-right",style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(e.getFormattedPrice(t.price,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")])],1),e._v(" "),o("div",{staticClass:"am-extra-capacity"},[o("el-col",{style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(e.formLabels.maximum_quantity_colon.value||e.$root.labels.maximum_quantity_colon)+"\n ")]),e._v(" "),o("el-col",{staticClass:"am-align-right",style:{color:e.formColors.formTextColor},attrs:{span:12}},[e._v("\n "+e._s(t.maxQuantity)+"\n ")])],1),e._v(" "),t.description?o("div",{staticClass:"am-extra-description ql-description"},[o("el-col",{staticClass:"am-align-justify",style:{color:e.formColors.formTextColor},attrs:{lg:24},domProps:{innerHTML:e._s((e.formLabels.description_colon.value||e.$root.labels.description_colon)+" "+t.description)}})],1):e._e()],2)}),1)],1)},staticRenderFns:[]}},887:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(654),a=o(655);t.default={mixins:[i.a,a.a],props:{formColors:{type:Object},formLabels:{type:Object},employees:{type:Array}}}},888:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-service-providers"},[o("h3",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(e.formLabels.employees.value||e.capitalizeFirstLetter(e.$root.labels.employees))+"\n ")]),e._v(" "),e._l(e.employees,function(t,i){return o("div",{key:i,staticClass:"am-service-provider"},[o("img",{attrs:{src:e.pictureLoad(t,!0),alt:t.firstName+" "+t.lastName},on:{error:function(o){return e.imageLoadError(t,!0)}}}),e._v(" "),o("span",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(t.firstName+" "+t.lastName)+"\n ")])])})],2)},staticRenderFns:[]}},916:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(654),a=o(671),n=o.n(a),s=o(813),r=o(660),l=o(659),c=o(703),d=o(634),m=o.n(d),p=o(872),u=o.n(p),h=o(873),g=o.n(h),f=o(655),v=o(667);t.default={mixins:[c.a,i.a,s.a,r.a,l.a,f.a,v.a],props:{addToCalendarProperty:{type:Object,default:function(){return{visible:!0}}},formsData:{type:Object,default:function(){return{}}},customize:{type:Object,default:function(){return{}}},passedCategory:{default:function(){},type:Object},passedService:{default:function(){},type:Object},passedResponseEntities:{default:function(){},type:Object},passedEntities:{default:function(){},type:Object},passedEntitiesRelations:{default:function(){},type:Object}},data:function(){return{empty:!1,id:"am-step-booking-catalog",category:{},fetchedService:!1,originalShortcodeData:{},service:{extras:[],gallery:[],providers:[]},responseEntities:{taxes:[],categories:[],employees:[],locations:[],customFields:[]},options:{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{services:[],employees:[],locations:[]}},serviceId:"",columnsLg:12,formColors:Object.keys(this.formsData).length?this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:this.formsData.categoryServiceForm.globalSettings:{},formLabels:Object.keys(this.formsData).length?this.formsData.categoryServiceForm.labels:{},formParts:Object.keys(this.formsData).length?this.formsData.categoryServiceForm.parts:{}}},created:function(){if(!Object.keys(this.formsData).length){var e=this.getTranslatedForms("catalogForm").catalogForm;this.formColors=this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:e.categoryServiceForm.globalSettings,this.formLabels=e.categoryServiceForm.labels,this.formParts=e.categoryServiceForm.parts}this.id=this.id+this.$root.shortcodeData.counter,this.serviceId="service"in this.$root.shortcodeData.booking?parseInt(this.$root.shortcodeData.booking.service):null,window.addEventListener("resize",this.handleResize)},mounted:function(){if("booking"in this.$root.shortcodeData)for(var e in this.$root.shortcodeData.booking)this.originalShortcodeData[e]=this.$root.shortcodeData.booking[e];if(this.passedService){this.options.isFrontEnd=!0,this.options.entitiesRelations=Object.assign({},this.passedEntitiesRelations),this.responseEntities=this.passedResponseEntities;var t=this.getShortCodeEntityIds();this.filterEntities(this.passedEntities,{categoryId:this.passedService.categoryId,serviceId:this.passedService.id,employeeId:t.employeeId,locationId:t.locationId}),this.service=JSON.parse(JSON.stringify(this.passedService)),this.category=JSON.parse(JSON.stringify(this.passedCategory)),this.fetchedService=!0,"beforeCatalogServiceLoaded"in window&&window.beforeCatalogServiceLoaded(this.category,this.service)}else{var o=this;this.fetchEntities(function(e){e&&o.fetchedEntities()},{types:["locations","employees","categories","custom_fields","packages","taxes"],isFrontEnd:!0,isPanel:!1})}},updated:function(){this.handleResize()},methods:{fetchedEntities:function(){var e=this;0!==this.options.entities.services.length&&0!==this.options.entities.employees.length||(this.empty=!0);var t=this.options.entities.categories.find(function(t){return t.id===e.categoryId});this.category=void 0!==t?t:null,this.service=this.getServiceById(this.serviceId),this.service&&(this.category=this.options.entities.categories.find(function(t){return t.id===e.service.categoryId})),this.fetchedService=!0},backToCategory:function(){for(var e in this.originalShortcodeData)this.$root.shortcodeData.booking[e]=this.originalShortcodeData[e];this.$emit("showAllServices")},getEntities:function(e){this.options.entities=e,this.service.providers=this.getServiceProviders(this.service.id)},handleResize:function(){var e=document.getElementById("amelia-app-booking"+this.$root.shortcodeData.counter);e&&(e.offsetWidth<670?(this.columnsLg=24,e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop")):(this.columnsLg=12,e.classList.add("am-desktop"),e.classList.remove("am-mobile-collapsed")))}},components:{PhoneInput:n.a,Booking:m.a,Extras:u.a,EmployeesBlock:g.a}}},917:function(e,t){e.exports={render:function(){var e=this,t=this,o=t.$createElement,i=t._self._c||o;return i("div",{staticClass:"am-wrap",attrs:{id:"amelia-booking-wrap"}},[!t.empty&&t.service&&"visible"===t.service.status?i("div",{ref:"bookingContainer",attrs:{id:"am-service-booking"}},[i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.fetchedService,expression:"fetchedService"}]},[i("div",{staticClass:"am-service-gallery"},[t.service.gallery.length>0?i("el-carousel",{attrs:{"indicator-position":"none",arrow:1===t.service.gallery.length?"never":"always",autoplay:!0}},t._l(t.service.gallery,function(e,t){return i("el-carousel-item",{key:t},[i("div",{staticClass:"am-image-slide",style:{"background-image":"url("+e.pictureFullPath+")"}})])}),1):t._e()],1),t._v(" "),i("div",{staticClass:"am-service",style:{backgroundColor:t.formColors.formBackgroundColor}},[i("div",{staticClass:"am-service-header"},[i("div",{staticClass:"am-service-image"},[i("img",{attrs:{src:t.pictureLoad(t.service,!1),alt:t.service.name},on:{error:function(e){return t.imageLoadError(t.service,!1)}}})]),t._v(" "),i("div",{staticClass:"am-service-data"},[t.passedService?i("div",{staticClass:"am-category-url",style:{color:t.formColors.formTextColor},on:{mouseenter:function(t){return t.target.style.color=e.customize.primaryColor},mouseleave:function(t){return t.target.style.color=e.formColors.formTextColor},click:t.backToCategory}},[i("i",{staticClass:"el-icon-back"}),t._v(" "+t._s(t.category.name)+"\n ")]):t._e(),t._v(" "),i("div",{staticClass:"am-service-title"},[i("h2",{style:{color:t.formColors.formTextColor,fontFamily:t.$root.settings.customization.font}},[t._v("\n "+t._s(t.service.name)+"\n ")])]),t._v(" "),t.formParts.capacity_colon.visibility&&t.formParts.capacity_colon.visibility?i("div",{staticClass:"am-service-info"},[t.formParts.capacity_colon.visibility?i("div",{style:{color:t.formColors.formTextColor}},[t._v("\n "+t._s((t.formLabels.capacity_colon.value||t.$root.labels.capacity_colon)+" "+t.getServiceCapacity(t.service))+"\n ")]):t._e(),t._v(" "),t.formParts.capacity_colon.visibility?i("div",{style:{color:t.formColors.formTextColor}},[t._v("\n "+t._s((t.formLabels.duration_colon.value||t.$root.labels.duration_colon)+" "+t.secondsToNiceDuration(t.service.duration))+"\n ")]):t._e()]):t._e()]),t._v(" "),t.getServicePrice(t.service).min||t.getServicePrice(t.service).max?i("div",{staticClass:"am-service-price"},[t._v("\n "+t._s(t.getServicePrice(t.service).price)+"\n ")]):t._e()]),t._v(" "),t.service.description&&t.formParts.description.visibility?i("div",{staticClass:"am-service-description"},[i("h3",{style:{color:t.formColors.formTextColor}},[t._v("\n "+t._s(t.formLabels.description.value||t.$root.labels.description)+"\n ")]),t._v(" "),i("p",{staticClass:"ql-description",style:{color:t.formColors.formTextColor},domProps:{innerHTML:t._s(t.service.description)}})]):t._e(),t._v(" "),t.formParts.service_info.visibility?i("div",{staticClass:"am-service-info"},[i("el-row",{attrs:{gutter:32}},[i("el-col",{staticClass:"am-service-info-column",attrs:{sm:t.columnsLg}},[i("h3",{style:{color:t.formColors.formTextColor}},[t._v("\n "+t._s(t.formLabels.service_info.value||t.capitalizeFirstLetter(t.$root.labels.service)+" "+t.$root.labels.info)+"\n ")]),t._v(" "),i("el-row",{attrs:{gutter:12}},[i("el-col",{style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.formLabels.category_colon.value||t.$root.labels.category_colon)+"\n ")]),t._v(" "),t.passedService?i("el-col",{staticClass:"am-align-right",style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.category.name)+"\n ")]):i("el-col",{staticClass:"am-align-right",attrs:{span:12}},[i("div",{staticClass:"am-category-url",style:{color:t.formColors.formTextColor},on:{click:t.backToCategory}},[t._v("\n "+t._s(t.category.name)+"\n ")])])],1),t._v(" "),t.formParts.duration_colon.visibility?i("el-row",{attrs:{gutter:12}},[i("el-col",{style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.formLabels.duration_colon.value||t.$root.labels.duration_colon)+"\n ")]),t._v(" "),i("el-col",{staticClass:"am-align-right",style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.secondsToNiceDuration(t.service.duration))+"\n ")])],1):t._e(),t._v(" "),t.formParts.capacity_colon.visibility?i("el-row",{attrs:{gutter:12}},[i("el-col",{style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.formLabels.capacity_colon.value||t.$root.labels.capacity_colon)+"\n ")]),t._v(" "),i("el-col",{staticClass:"am-align-right",style:{color:t.formColors.formTextColor},attrs:{span:12}},[t._v("\n "+t._s(t.getServiceCapacity(t.service))+"\n ")])],1):t._e()],1),t._v(" "),i("el-col",{staticClass:"am-service-info-column",attrs:{sm:t.columnsLg}},[t.service.extras.length>0&&t.formParts.extras.visibility?i("extras",{attrs:{"form-colors":t.formColors,"form-labels":t.formLabels,extras:t.service.extras}}):t._e(),t._v(" "),!t.service.extras.length&&t.formParts.employees.visibility?i("employees-block",{attrs:{"form-colors":t.formColors,"form-labels":t.formLabels,employees:t.getServiceProviders(this.service.id)}}):t._e()],1)],1)],1):t._e(),t._v(" "),t.service.extras.length>0&&t.formParts.employees.visibility?i("employees-block",{attrs:{"form-colors":t.formColors,"form-labels":t.formLabels,employees:t.getServiceProviders(this.service.id)}}):t._e(),t._v(" "),t.fetchedService?i("booking",{attrs:{id:t.id,"form-type":"catalogForm",passedService:t.service,passedCategory:t.category,passedEntities:t.options.entities,passedEntitiesRelations:t.options.entitiesRelations,showService:!1,addToCalendarProperty:t.addToCalendarProperty},on:{entitiesFetched:t.getEntities}}):t._e()],1)])])],1):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.empty&&!t.fetchedService,expression:"!empty && !fetchedService"}],staticClass:"am-loader"},[i("svg",{staticClass:"am-loader-spin"},[i("use",{attrs:{href:t.$root.getUrl+"public/img/oval-spinner-new.svg#spinner"}})]),t._v(" "),i("svg",{staticClass:"am-loader-hourglass"},[i("use",{attrs:{href:t.$root.getUrl+"public/img/hourglass-new.svg#hourglass"}})])]),t._v(" "),t.empty?i("div",{staticClass:"am-no-services"},[i("img",{staticStyle:{"margin-top":"10px"},attrs:{src:t.$root.getUrl+"public/img/am-empty-booking.svg"}}),t._v(" "),i("h1",[t._v(t._s(t.$root.labels.oops))]),t._v(" "),i("h3",[t._v(t._s(t.$root.labels.no_services_employees))]),t._v(" "),i("p",[t._v(t._s(t.$root.labels.add_services_employees))]),t._v(" "),i("a",{attrs:{href:"https://wpamelia.com/services-and-categories/",rel:"nofollow"}},[t._v("\n "+t._s(t.$root.labels.add_services_url)+"\n ")]),t._v(" "),i("span",{staticStyle:{"font-size":"14px"}},[t._v(t._s(t.$root.labels.and))]),t._v(" "),i("a",{attrs:{href:"https://wpamelia.com/employees/",rel:"nofollow"}},[t._v("\n "+t._s(t.$root.labels.add_employees_url)+"\n ")])]):t._e()])},staticRenderFns:[]}},918:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(654),a=o(671),n=o.n(a),s=o(813),r=o(660),l=o(659),c=o(703),d=o(634),m=o.n(d),p=o(872),u=o.n(p),h=o(873),g=o.n(h),f=o(655),v=o(336),y=o(0),b=o.n(y),k=o(667);t.default={mixins:[c.a,v.a,i.a,s.a,r.a,l.a,f.a,k.a],props:{addToCalendarProperty:{type:Object,default:function(){return{visible:!0}}},formsData:{type:Object,default:function(){return{}}},customize:{type:Object,default:function(){return{}}},passedCategory:{default:function(){},type:Object},passedPackage:{default:function(){},type:Object},passedEntities:{default:function(){},type:Object},passedEntitiesRelations:{default:function(){},type:Object}},data:function(){return{empty:!1,id:"am-step-booking-catalog",package:{},fetchedPackage:!1,responseEntities:{taxes:[],categories:[],employees:[],locations:[],customFields:[]},options:{availableEntitiesIds:{packages:[],categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],services:[],employees:[],locations:[]}},packageId:"",columnsLg:12,formColors:Object.keys(this.formsData).length?this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:this.formsData.categoryPackageForm.globalSettings:{},formParts:Object.keys(this.formsData).length?this.formsData.categoryPackageForm.parts:{}}},created:function(){if(!Object.keys(this.formsData).length){var e=this.getTranslatedForms("catalogForm").catalogForm;this.formColors=this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:e.categoryPackageForm.globalSettings,this.formParts=e.categoryPackageForm.parts}this.id=this.id+this.$root.shortcodeData.counter,this.packageId="package"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.package:null,window.addEventListener("resize",this.handleResize)},mounted:function(){var e=this;this.$nextTick(function(){e.$refs&&e.$refs.bookingContainer&&e.$refs.bookingContainer.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}),this.passedPackage?(this.options.isFrontEnd=!0,this.package=JSON.parse(JSON.stringify(this.passedPackage)),this.fetchedPackage=!0,this.options.entities=this.passedEntities,this.options.entitiesRelations=this.passedEntitiesRelations,"beforeCatalogPackageLoaded"in window&&window.beforeCatalogPackageLoaded(this.package)):this.fetchEntities(function(t){t&&e.fetchedEntities()},{types:["locations","employees","categories","custom_fields","packages","taxes"],isFrontEnd:!0,isPanel:!1})},updated:function(){this.handleResize()},methods:{fetchedEntities:function(){this.package=this.getPackageById(this.packageId),0!==this.options.entities.packages.length&&0!==this.options.entities.employees.length&&this.package||(this.empty=!0),this.fetchedPackage=!0},backToCategory:function(){this.$emit("showAllServices")},getEntities:function(e){this.options.entities=e},handleResize:function(){var e=document.getElementById("amelia-app-booking"+this.$root.shortcodeData.counter);e.offsetWidth<670?(this.columnsLg=24,e.classList.add("am-mobile-collapsed"),e.classList.remove("am-desktop")):(this.columnsLg=12,e.classList.add("am-desktop"),e.classList.remove("am-mobile-collapsed"))},formatDate:function(e){return this.getFrontedFormattedDate(b()(e).format("YYYY-MM-DD"))}},components:{PhoneInput:n.a,Booking:m.a,Extras:u.a,EmployeesBlock:g.a}}},919:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"am-wrap",attrs:{id:"amelia-booking-wrap"}},[!e.empty&&e.package&&"visible"===e.package.status?o("div",{ref:"bookingContainer",attrs:{id:"am-service-booking"}},[o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetchedPackage,expression:"fetchedPackage"}]},[o("div",{staticClass:"am-service-gallery"},[e.package.gallery.length>0?o("el-carousel",{attrs:{"indicator-position":"none",arrow:1===e.package.gallery.length?"never":"always",autoplay:!0}},e._l(e.package.gallery,function(e,t){return o("el-carousel-item",{key:t},[o("div",{staticClass:"am-image-slide",style:{"background-image":"url("+e.pictureFullPath+")"}})])}),1):e._e()],1),e._v(" "),o("div",{staticClass:"am-service",style:{backgroundColor:e.formColors.formBackgroundColor}},[o("div",{staticClass:"am-service-header"},[o("div",{staticClass:"am-service-image"},[o("img",{attrs:{src:e.pictureLoad(e.package,!1),alt:e.package.name},on:{error:function(t){return e.imageLoadError(e.package,!1)}}})]),e._v(" "),o("div",{staticClass:"am-service-data"},[e.passedCategory?o("div",{staticClass:"am-category-url",style:{color:e.formColors.formTextColor},on:{click:e.backToCategory}},[o("i",{staticClass:"el-icon-back"}),e._v(" "+e._s(e.passedCategory.name)+"\n ")]):e._e(),e._v(" "),o("div",{staticClass:"am-service-title"},[o("h2",{style:{color:e.formColors.formTextColor,fontFamily:e.$root.settings.customization.font}},[e._v("\n "+e._s(e.package.name)+"\n ")])])]),e._v(" "),e.package.price?o("div",{staticClass:"am-service-price"},[e._v("\n "+e._s(e.getFormattedPrice(e.package.calculatedPrice?e.package.price:e.package.price-e.package.price/100*e.package.discount,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n ")]):e._e()]),e._v(" "),e.formParts.package_rules_description.visibility||e.formParts.selected_services.visibility?o("el-row",{staticClass:"am-package-selected"},[e.formParts.package_rules_description.visibility?o("el-col",{staticClass:"am-package-selected-col",attrs:{span:12}},[o("div",{staticClass:"am-package-rule"},[o("div",[o("span",{style:{color:e.formColors.formTextColor}},[o("i",{staticClass:"el-icon-date"}),e._v(" "+e._s(e.$root.labels.package_book_service)+" "+e._s(e.package.sharedCapacity&&e.package.quantity?e.$root.labels.package_book_service_2+" "+e.package.quantity+" "+(1===e.package.quantity?e.$root.labels.appointment.toLowerCase():e.$root.labels.appointments.toLowerCase())+".":"")+"\n ")])]),e._v(" "),null!==e.package.durationType||null!==e.package.endDate?o("div",["day"===e.package.durationType||"week"===e.package.durationType||"month"===e.package.durationType?o("span",{style:{color:e.formColors.formTextColor}},[o("i",{staticClass:"el-icon-time"}),e._v(" "+e._s(e.$root.labels.package_book_duration)+" "+e._s(e.package.durationCount)+" "+e._s(e.package.durationCount>1?e.$root.labels[e.package.durationType+"s"].toLowerCase():e.$root.labels[e.package.durationType].toLowerCase()+".")+"\n ")]):e._e(),e._v(" "),null!==e.package.endDate?o("span",{style:{color:e.formColors.formTextColor}},[o("i",{staticClass:"el-icon-time"}),e._v(" "+e._s(e.$root.labels.package_book_expire)+" "+e._s(e.formatDate(e.package.endDate))+"\n ")]):e._e()]):e._e()]),e._v(" "),o("div",{staticClass:"am-package-description ql-description"},[o("p",{style:{color:e.formColors.formTextColor},domProps:{innerHTML:e._s(e.package.description)}})])]):e._e(),e._v(" "),e.formParts.selected_services.visibility?o("el-col",{staticClass:"am-package-selected-col",attrs:{span:12}},e._l(e.package.availableBookableInfo,function(t){return o("el-row",{key:t.serviceId},[o("el-col",{staticClass:"am-package-service",style:{color:e.formColors.formTextColor},attrs:{span:16}},[e._v("\n "+e._s(t.serviceName)+" "),e.package.sharedCapacity?e._e():o("span",{style:{color:e.formColors.formTextColor}},[e._v("x"+e._s(t.serviceQuantity))])])],1)}),1):e._e()],1):e._e(),e._v(" "),e.fetchedPackage?o("booking",{attrs:{id:e.id,"form-type":"catalogForm",passedPackage:e.package,passedCategory:e.passedCategory,passedEntities:e.options.entities,passedEntitiesRelations:e.options.entitiesRelations,showPackage:!1,addToCalendarProperty:e.addToCalendarProperty},on:{entitiesFetched:e.getEntities}}):e._e()],1)])])],1):e._e(),e._v(" "),e.empty?o("div",{staticClass:"am-no-services"},[o("img",{staticStyle:{"margin-top":"10px"},attrs:{src:e.$root.getUrl+"public/img/am-empty-booking.svg"}}),e._v(" "),o("h1",[e._v(e._s(e.$root.labels.oops))]),e._v(" "),o("h3",[e._v(e._s(e.$root.labels.no_services_employees))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.add_services_employees))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/services-and-categories/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_services_url)+"\n ")]),e._v(" "),o("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(e.$root.labels.and))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/employees/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_employees_url)+"\n ")])]):e._e()])},staticRenderFns:[]}},930:function(e,t,o){var i=o(90)(o(916),o(917),!1,null,null,null);e.exports=i.exports},931:function(e,t,o){var i=o(90)(o(918),o(919),!1,null,null,null);e.exports=i.exports},989:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(654),a=o(657),n=o(813),s=o(659),r=o(703),l=o(667),c=o(701),d=o(632),m=o(930),p=o.n(m),u=o(931),h=o.n(u);t.default={mixins:[r.a,i.a,a.a,n.a,s.a,l.a,c.a],props:{formsData:{type:Object,default:function(){return{}}},passedCategory:{default:function(){},type:Object},passedResponseEntities:{default:function(){},type:Object},passedEntities:{default:function(){},type:Object},passedEntitiesRelations:{default:function(){},type:Object}},data:function(){return{empty:!1,addToCalendarProperty:{visible:!0},category:{serviceList:[]},marketing:{service:null,employee:null,location:null,category:null,package:null,payment:null},categoryId:"",fetchedCategory:!1,responseEntities:{taxes:[],categories:[],employees:[],locations:[],customFields:[]},options:{availableEntitiesIds:{categories:[],employees:[],locations:[],services:[]},entitiesRelations:{},entities:{packages:[],employees:[],locations:[]}},packageId:"",serviceId:"",showCategory:!0,showService:!1,showPackage:!1,columnsLg:8,globalCustomization:this.$root.settings.customization,dataObj:Object.keys(this.formsData).length?this.formsData:{},formColors:Object.keys(this.formsData).length?this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:this.formsData.categoryListForm.globalSettings:{},formLabels:Object.keys(this.formsData).length?this.formsData.categoryListForm.labels:{},formParts:Object.keys(this.formsData).length?this.formsData.categoryListForm.parts:{}}},created:function(){if(!Object.keys(this.formsData).length){var e=this.getTranslatedForms("catalogForm").catalogForm;this.dataObj=e,this.formColors=this.$root.settings.customization.useGlobalColors.catalogForm?this.$root.settings.customization.globalColors:e.categoryListForm.globalSettings,this.formLabels=e.categoryListForm.labels,this.formParts=e.categoryListForm.parts}this.categoryId="category"in this.$root.shortcodeData.booking?this.$root.shortcodeData.booking.category:null,window.addEventListener("resize",this.handleResize)},mounted:function(){if(this.setCacheData("amelia-app-booking"+this.$root.shortcodeData.counter,!1),this.$root.shortcodeData.hasCategoryShortcode||this.inlineCategorySVG(),this.passedCategory){this.options.isFrontEnd=!0,this.options.entitiesRelations=Object.assign({},this.passedEntitiesRelations),this.responseEntities=this.passedResponseEntities;var e=this.getShortCodeEntityIds();this.filterEntities(this.passedEntities,{categoryId:this.passedCategory.id,serviceId:e.serviceId,employeeId:e.employeeId,locationId:e.locationId}),this.category=JSON.parse(JSON.stringify(this.passedCategory)),this.fetchedCategory=!0,this.cacheDataProcessing(),this.options.entities.packages.sort(function(e,t){return e.position-t.position})}else{var t=this;this.fetchEntities(function(e){e&&t.fetchedEntities(e)},{types:["locations","employees","categories","custom_fields","packages","taxes"],isFrontEnd:!0,isPanel:!1})}"beforeCatalogCategoryLoaded"in window&&window.beforeCatalogCategoryLoaded(this.category)},updated:function(){this.handleResize()},methods:{cacheDataProcessing:function(){if(this.loadingCacheBookingData){var e=null;switch(this.cacheData.request.bookableType){case"appointment":e=this.getServiceById(this.cacheData.request.bookable.id);break;case"package":e=this.getPackageById(this.cacheData.request.bookable.id)}this.showNext(e),this.loadingCacheCategoryData=!1}},showNext:function(e){var t=this;this.$nextTick(function(){t.$refs&&t.$refs.categoryContainer&&t.$refs.categoryContainer.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),"type"in e?this.selectPackage(e.id):this.selectService(e.id)},getListedItems:function(){var e=this.getShortCodeEntityIds();return"packages"===e.show?this.options.entities.packages:"services"===e.show?this.options.entities.services:this.options.entities.packages.concat(this.options.entities.services)},fetchedEntities:function(){var e=this;0!==this.options.entities.services.length&&0!==this.options.entities.employees.length||(this.empty=!0);var t=this.options.entities.categories.find(function(t){return t.id===e.categoryId});this.category=void 0!==t?t:null,this.fetchedCategory=!0,this.cacheDataProcessing()},backToCatalog:function(){this.$emit("showAllCategories")},getInvisibleEmployeesCount:function(e){var t=this.getServiceProviders(e.id);return t.length>6?t.length-6:""},selectService:function(e){this.serviceId=e,"afterSelectCatalogService"in window&&window.afterSelectCatalogService(this.category,this.category.serviceList.find(function(t){return t.id===e})),d.a.hasAmeliaTracking(this.$root.marketing,this.serviceId)&&(this.marketing.service=this.getServiceById(this.serviceId),d.a.trackAmeliaData(this,this.$root.marketing,"appointment","SelectService")),this.showCategory=!1,this.showService=!0},selectPackage:function(e){this.packageId=e,"afterSelectCatalogPackage"in window&&window.afterSelectCatalogService(this.options.entities.packages.find(function(t){return t.id===e})),d.a.hasAmeliaTracking(this.$root.marketing,this.packageId)&&(this.marketing.package=this.getPackageById(this.packageId),d.a.trackAmeliaData(this,this.$root.marketing,"package","SelectPackage")),this.showCategory=!1,this.showPackage=!0},showAllServices:function(){this.serviceId="",this.showCategory=!0,this.showService=!1,this.showPackage=!1,this.addToCalendarProperty.visible=!1},handleResize:function(){var e=document.getElementById("amelia-app-booking"+this.$root.shortcodeData.counter).offsetWidth;e<670&&(this.columnsLg=12),e>=670&&(this.columnsLg=8)},inlineCategorySVG:function(){o(662).init({svgSelector:"img.svg-category",initClass:"js-inlinesvg"})}},components:{Service:p.a,Package:h.a}}},990:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"categoryContainer",staticClass:"am-wrap"},[e.empty?o("div",{staticClass:"am-no-services"},[o("img",{staticStyle:{"margin-top":"10px"},attrs:{src:e.$root.getUrl+"public/img/am-empty-booking.svg"}}),e._v(" "),o("h1",[e._v(e._s(e.$root.labels.oops))]),e._v(" "),o("h3",[e._v(e._s(e.$root.labels.no_services_employees))]),e._v(" "),o("p",[e._v(e._s(e.$root.labels.add_services_employees))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/services-and-categories/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_services_url)+"\n ")]),e._v(" "),o("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(e.$root.labels.and))]),e._v(" "),o("a",{attrs:{href:"https://wpamelia.com/employees/",rel:"nofollow"}},[e._v("\n "+e._s(e.$root.labels.add_employees_url)+"\n ")])]):o("div",{attrs:{id:"am-category"}},[e.category?o("transition",{attrs:{name:"fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.fetchedCategory&&e.showCategory&&!e.loadingCacheCategoryData,expression:"fetchedCategory && showCategory && !loadingCacheCategoryData"}]},[o("div",{staticClass:"am-category-headline"},[!1===e.$root.shortcodeData.enabled||0===e.$root.shortcodeData.hasCategoryShortcode.length?o("span",{staticClass:"am-back",style:{color:e.globalCustomization.globalColors.primaryColor},on:{click:e.backToCatalog}},[o("i",{staticClass:"el-icon-arrow-left"}),e._v(" "+e._s(e.formLabels.back.value||e.$root.labels.back)+"\n ")]):e._e(),e._v(" "),o("h3",{style:{color:e.globalCustomization.globalColors.primaryColor,fontWeight:500}},[e._v("\n "+e._s(e.category.name)+"\n ")])]),e._v(" "),e.options.entities.services?o("el-row",{staticClass:"am-category-service-wrapper",attrs:{gutter:24,type:"flex"}},e._l(e.getListedItems(),function(t,i){return"type"in t||e.getServiceProviders(t.id).length>0?o("el-col",{key:i,staticClass:"am-category-service-inner",attrs:{lg:e.columnsLg,md:12,sm:12}},[o("div",{staticClass:"am-category-service"},[o("div",{staticClass:"am-category-service-hover",style:{backgroundColor:e.colorTransparency(e.globalCustomization.globalColors.primaryColor,.7)},on:{click:function(o){return e.showNext(t)}}},[o("span",{staticClass:"am-category-service-title"},[e._v(e._s(t.name))]),e._v(" "),o("el-button",[e._v(e._s(e.formLabels.view_more.value||e.$root.labels.view_more))])],1),e._v(" "),o("div",{staticClass:"am-category-service-image",style:t.pictureFullPath?{"background-image":"url("+t.pictureFullPath+")"}:null}),e._v(" "),o("div",{staticClass:"am-category-service-info",style:{backgroundColor:e.formColors.formBackgroundColor}},["type"in t||!e.formParts.service_badge.visibility?e._e():o("div",{staticClass:"am-category-color-wrapper"},[o("div",{staticClass:"am-category-service-color",style:{"background-color":t.color}},[e._v("\n "+e._s(e.getNameInitials(t.name))+"\n ")])]),e._v(" "),"type"in t&&e.formParts.package_badge.visibility?o("div",{staticClass:"am-category-color-wrapper"},[o("div",{staticClass:"am-category-service-color am-category-package-color",style:{"background-color":t.color}},[o("img",{attrs:{src:e.$root.getUrl+"public/img/am-package-catalog.svg"}})]),e._v(" "),o("div",{staticClass:"am-category-item-type",style:{"background-color":t.color}},[e._v("\n "+e._s(e.formLabels.package.value||e.$root.labels.package)+"\n ")])]):e._e(),e._v(" "),o("div",{class:"type"in t?"am-category-package-title-price":"am-category-service-title-price",style:{color:e.formColors.formTextColor}},[o("div",{staticClass:"am-category-service-title",style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),"type"in t||!e.formParts.service_price.visibility?e._e():o("span",{style:{visibility:e.getServicePrice(t).min||e.getServicePrice(t).max?"":"hidden",color:e.formColors.formTextColor,opacity:.7}},[e._v("\n "+e._s(e.formLabels.price_colon.value||e.$root.labels.price_colon)+" "+e._s(e.getServicePrice(t).price)+"\n ")]),e._v(" "),"type"in t&&e.formParts.package_price.visibility?o("span",{staticClass:"am-category-package-price",style:{visibility:t.price?"":"hidden",color:e.formColors.formTextColor}},[e._v("\n "+e._s(e.getFormattedPrice(t.calculatedPrice?t.price:t.price-t.price/100*t.discount,!e.$root.settings.payments.hideCurrencySymbolFrontend))+"\n "),t.discount&&!t.calculatedPrice?o("span",{style:{color:e.formColors.formTextColor,opacity:.7}},[e._v("\n "+e._s((e.formLabels.package_discount_text.value||e.$root.labels.package_discount_text)+" "+t.discount+"%")+"\n ")]):e._e()]):e._e()]),e._v(" "),"type"in t&&e.formParts.package_services_list.visibility?o("div",[o("div",{style:{color:e.formColors.formTextColor}},[e._v("\n "+e._s(e.formLabels.services.value||e.$root.labels.services)+"\n ")]),e._v(" "),e._l(t.bookable,function(t){return o("span",{staticClass:"am-category-package-service-item",style:{color:e.formColors.formTextColor,opacity:.7}},[e._v("\n "+e._s(t.service.name)+"\n ")])})],2):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!("type"in t)&&e.formParts.service_employees_list.visibility,expression:"!('type' in service) && formParts.service_employees_list.visibility"}],staticClass:"am-category-services-thumbs"},[e._l(e.getServiceProviders(t.id),function(t,i){return i<6?o("img",{key:t.id,style:{borderColor:e.formColors.formBackgroundColor},attrs:{src:e.pictureLoad(t,!0)},on:{error:function(o){return e.imageLoadError(t,!0)}}}):e._e()}),e._v(" "),e.getServiceProviders(t.id).length>6?o("span",[e._v("\n +"+e._s(e.getInvisibleEmployeesCount(t))+"\n ")]):e._e()],2)])])]):e._e()}),1):e._e()],1)]):e._e(),e._v(" "),e.showService?o("service",{attrs:{"forms-data":e.dataObj,customize:e.globalCustomization.globalColors,"passed-category":e.category,"passed-service":e.category.serviceList.find(function(t){return t.id===e.serviceId}),"passed-entities":e.options.entities,"passed-entities-relations":e.options.entitiesRelations,addToCalendarProperty:e.addToCalendarProperty},on:{showAllServices:e.showAllServices}}):e._e(),e._v(" "),e.showPackage?o("package",{attrs:{"forms-data":e.dataObj,customize:e.globalCustomization.globalColors,"passed-category":e.category,"passed-package":e.getPackageById(e.packageId),"passed-entities":e.responseEntities,"passed-entities-relations":e.options.entitiesRelations,addToCalendarProperty:e.addToCalendarProperty},on:{showAllServices:e.showAllServices}}):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.fetchedCategory&&!0===e.$root.shortcodeData.enabled||e.loadingCacheCategoryData,expression:"(!fetchedCategory && $root.shortcodeData.enabled === true) || loadingCacheCategoryData"}],staticClass:"am-spinner am-section c2"},[o("img",{staticClass:"svg-category am-spin",attrs:{src:e.$root.getUrl+"public/img/oval-spinner.svg"}}),e._v(" "),o("img",{staticClass:"svg-category am-hourglass",attrs:{src:e.$root.getUrl+"public/img/hourglass.svg"}})])],1),e._v(" "),e.showCategory&&e.$root.licence.isLite&&e.$root.settings.general.backLink.enabled?o("div",{staticClass:"am-lite-footer"},[o("a",{staticClass:"am-lite-footer-link",attrs:{rel:"nofollow",href:e.$root.settings.general.backLink.url,target:"_blank"}},[e._v("\n "+e._s(e.$root.settings.general.backLink.label)+"\n ")])]):e._e()])},staticRenderFns:[]}}});
Save
Back