FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
public
/
js
/
chunks
Edit File: amelia-booking-cf-0d421e0e1e2bdd88e543.js
wpJsonpAmeliaBookingPlugin([19],{1533:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(749),o=n.n(i),r=n(693),s=n.n(r),a=n(906),l=n.n(a),c=n(1534),u=n.n(c),d=n(1536),f=n.n(d),p=n(91),m=n(658),h=n(654),v=n(659),g=n(705);e.default={components:{ElButton:l.a,PageHeader:s.a,CustomField:u.a,DialogCustomFields:f.a,Draggable:o.a},mixins:[p.a,m.a,h.a,v.a,g.a],data:function(){return{customFieldsTab:"bookings",saveTypeArray:"customFields",separateCustomFields:!1,buttonNewItems:!1,customFields:[],customerCustomFields:[],draggableOptions:{handle:".am-drag-handle",animation:150},fetched:!1,options:{entities:{events:[],categories:[],services:[]},settings:{general:{usedLanguages:[]}},fetched:!1},languagesData:[],popover:!1,types:["text","text-area","content","select","checkbox","radio","file","datepicker","address"],dialogCustomFields:!1}},created:function(){},mounted:function(){if(this.$root.licence.isLite||this.$root.licence.isStarter)return this.fetched=!0,void(this.options.fetched=!0);this.getEntities(),this.separateCustomFields=!this.$root.settings.notifications.sendAllCF},methods:{handleTabClick:function(){this.saveTypeArray="bookings"===this.customFieldsTab?"customFields":"customerCustomFields"},getCustomFields:function(t){var e=this;this.fetched=!1,this.$http.get(this.$root.getAjaxUrl+"/fields").then(function(n){var i=n.data.data.customFields.filter(function(t){return"bookings"===t.saveType}),o=n.data.data.customFields.filter(function(t){return"customer"===t.saveType}),r=e.options.entities.events.map(function(t){return t.id}),s=e;i.forEach(function(t){var e=t.events.filter(function(t){return-1===r.indexOf(t.id)});s.options.entities.events=s.options.entities.events.concat(e)}),e.customFields=i,e.customerCustomFields=o,e.fetched=!0,t&&setTimeout(function(){e.inlineSVG()},100)}).catch(function(t){console.log(t.message)})},getEntities:function(){var t=this;this.options.fetched=!1,this.$http.get(this.$root.getAjaxUrl+"/entities",{params:this.getAppropriateUrlParams({types:["categories","events","settings"]})}).then(function(e){t.options.entities=e.data.data,t.languagesData=e.data.data.settings.languages,t.options.settings.general.usedLanguages=e.data.data.settings.general.usedLanguages,t.getCustomFields(!1),t.options.fetched=!0,t.options.entities.services=t.getServicesFromCategories(t.options.entities.categories),setTimeout(function(){t.inlineSVG()},100)}).catch(function(){t.options.fetched=!0})},dropCustomField:function(t){var e=this;if(t.newIndex!==t.oldIndex){var n=this;this[this.saveTypeArray].forEach(function(t){t.position=n[e.saveTypeArray].indexOf(t)+1}),this.updateCustomFieldsPositions()}},deleteCustomField:function(t){var e=this;this.fetched=!1,this.$http.post(this.$root.getAjaxUrl+"/fields/delete/"+t.id).then(function(){e.notify(e.$root.labels.success,e.$root.labels.custom_fields_deleted,"success");var n=e[e.saveTypeArray].indexOf(t);e[e.saveTypeArray].splice(n,1);for(var i=0;i<e[e.saveTypeArray].length;i++)e[e.saveTypeArray][i].position=i+1;e.updateCustomFieldsPositions(),e.fetched=!0}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},updateCustomField:function(t){var e=this,n=this[this.saveTypeArray].findIndex(function(e){return e.id===t.id}),i=this;this[this.saveTypeArray][n].options.forEach(function(o,r){!0===i[e.saveTypeArray][n].options[r].deleted?i[e.saveTypeArray][n].options.splice(r,1):(i.$set(o,"id",void 0!==t.options[r].id?t.options[r].id:null),i.$set(o,"edited",!1),i.$set(o,"deleted",!1),i.$set(o,"new",!1))})},closeDialogCustomFields:function(){this.dialogCustomFields=!1},addCustomField:function(t){var e=this;this.fetched=!1,this.showDialog=!1;var n={id:null,label:"",options:[],position:this[this.saveTypeArray].length+1,required:!0,services:[],type:t,width:50,saveType:this.customFieldsTab,saveFirstChoice:!1};this.$http.post(this.$root.getAjaxUrl+"/fields",{customField:n}).then(function(t){e.notify(e.$root.labels.success,e.$root.labels.custom_fields_added,"success"),e.fetched=!0,e[e.saveTypeArray].push(t.data.data.customField),e.updateStashEntities({})}).catch(function(t){e.notify(e.$root.labels.error,t.message,"error")})},updateCustomFieldsPositions:function(){var t=this;this.$http.post(this.$root.getAjaxUrl+"/fields/positions",{customFields:this[this.saveTypeArray]}).then(function(e){t.updateStashEntities({})}).catch(function(){t.notify(t.$root.labels.error,t.$root.labels.custom_fields_positions_saved_fail,"error")})},saveSendAllCustomFields:function(){var t=this;this.$http.post(this.$root.getAjaxUrl+"/settings",{sendAllCF:!this.separateCustomFields}).then(function(e){t.notify(t.$root.labels.success,t.$root.labels.settings_saved,"success"),t.updateStashEntities({})}).catch(function(e){t.notify(t.$root.labels.error,e.message,"error")})},updateUsedLanguages:function(t){this.options.settings.general.usedLanguages=t},showDialogNewCustomFields:function(){this.dialogCustomFields=!0}},computed:{addNewCustomFieldBtnDisplay:function(){return!0},needHelpPage:function(){return"https://wpamelia.com/custom-fields/"},showDialog:{get:function(){return!0===this.dialogCustomFields},set:function(){this.closeDialogCustomFields()}}}}},1534:function(t,e,n){var i=n(90)(null,n(1535),!1,null,null,null);t.exports=i.exports},1535:function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]}},1536:function(t,e,n){var i=n(90)(n(1537),n(1538),!1,null,null,null);t.exports=i.exports},1537:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(91),o=n(654);e.default={mixins:[i.a,o.a],data:function(){return{}},updated:function(){this.inlineSVG()},methods:{closeDialog:function(){this.$emit("closeDialogCustomFields")},addCustomField:function(t){this.$emit("addCustomField",t)}},components:{}}},1538:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"am-dialog-scrollable am-add-custom-fields"},[n("div",{staticClass:"am-dialog-header"},[n("el-row",[n("el-col",{attrs:{span:20}},[n("h2",[t._v(t._s(t.$root.labels.add_custom_field))])]),t._v(" "),n("el-col",{staticClass:"align-right",attrs:{span:4}},[n("el-button",{staticClass:"am-dialog-close",attrs:{size:"small",icon:"el-icon-close"},on:{click:t.closeDialog}})],1)],1)],1),t._v(" "),n("LicenceBlockHeader"),t._v(" "),n("div",{staticClass:"am-custom-field-selection",class:t.licenceClassDisabled()},[n("el-row",{attrs:{gutter:12}},[n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("text")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-text-field.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.text))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("text-area")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-text-area.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels["text-area"]))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("content")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-text-content.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.text_content))])])])],1),t._v(" "),n("el-row",{attrs:{gutter:12}},[n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("select")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-dropdown.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.select))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("checkbox")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-checkbox.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.checkbox))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("radio")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-radio-buttons.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.radio))])])])],1),t._v(" "),n("el-row",{attrs:{gutter:12}},[n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("file")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-upload-file.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.file))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",on:{click:function(e){return t.addCustomField("datepicker")}}},[n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-datepicker.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.datepicker))])])]),t._v(" "),n("el-col",{attrs:{sm:8}},[n("div",{staticClass:"am-custom-field-item",class:{"am-custom-field-item-disabled":!t.$root.settings.general.gMapApiKey},on:{click:function(e){return t.addCustomField("address")}}},[t.$root.settings.general.gMapApiKey?n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-address.svg"}}):n("img",{staticClass:"svg-amelia",attrs:{src:t.$root.getUrl+"public/img/cf-address-disabled.svg"}}),t._v(" "),n("p",[t._v(t._s(t.$root.labels.address))]),t._v(" "),t.$root.settings.general.gMapApiKey?t._e():n("el-tooltip",{staticClass:"am-custom-field-item-tooltip",attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.$root.labels.address_disabled_tooltip)},slot:"content"}),t._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1)])],1)],1)],1)])},staticRenderFns:[]}},1539:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"am-wrap"},[n("link",{attrs:{rel:"preconnect",href:"https://fonts.gstatic.com"}}),t._v(" "),n("div",{staticClass:"am-customize-page am-body"},[n("page-header",{attrs:{addNewCustomFieldBtnDisplay:t.addNewCustomFieldBtnDisplay},on:{newCustomFieldBtnClicked:function(e){return t.showDialogNewCustomFields()}}}),t._v(" "),n("div",{staticClass:"am-customize am-section"},[n("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.customFieldsTab,callback:function(e){t.customFieldsTab=e},expression:"customFieldsTab"}},[n("el-tab-pane",{attrs:{label:t.$root.labels.bookings,name:"bookings"}},[n("div",[n("div",{staticClass:"am-custom-fields",attrs:{id:"qweqwe"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetched||!t.options.fetched,expression:"!fetched || !options.fetched"}],staticClass:"am-spinner am-section"},[n("img",{attrs:{src:t.$root.getUrl+"public/img/spinner.svg"}})]),t._v(" "),n("EmptyState",{attrs:{visible:t.fetched&&t.options.fetched&&0===t.customFields.length,licence:"basic",title:t.$root.labels.no_custom_fields_yet,description:t.$root.labels.click_add_custom_field}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.fetched&&t.options.fetched&&t.customFields.length>0,expression:"fetched && options.fetched && customFields.length > 0"}],staticClass:"am-custom-fields-list"},[n("el-checkbox",{staticStyle:{"padding-bottom":"20px"},on:{change:function(e){return t.saveSendAllCustomFields()}},model:{value:t.separateCustomFields,callback:function(e){t.separateCustomFields=e},expression:"separateCustomFields"}},[t._v("\n "+t._s(t.$root.labels.send_custom_fields_separately)+"\n "),n("el-tooltip",{attrs:{placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.$root.labels.send_custom_fields_tooltip)},slot:"content"}),t._v(" "),n("i",{staticClass:"el-icon-question am-tooltip-icon"})])],1),t._v(" "),n("draggable",{attrs:{options:t.draggableOptions},on:{end:t.dropCustomField},model:{value:t.customFields,callback:function(e){t.customFields=e},expression:"customFields"}},t._l(t.customFields,function(e){return n("custom-field",{key:e.id,attrs:{customField:e,events:t.options.entities.events,categories:t.options.entities.categories,services:t.options.entities.services,"passed-used-languages":t.options.settings.general.usedLanguages,"languages-data":t.languagesData},on:{deleteCustomField:t.deleteCustomField,updateCustomField:t.updateCustomField,usedLanguagesUpdated:t.updateUsedLanguages}})}),1)],1)],1)])]),t._v(" "),n("el-tab-pane",{attrs:{label:t.$root.labels.customer,name:"customer"}},[n("div",[n("div",{staticClass:"am-custom-fields",attrs:{id:"qweqwe"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetched||!t.options.fetched,expression:"!fetched || !options.fetched"}],staticClass:"am-spinner am-section"},[n("img",{attrs:{src:t.$root.getUrl+"public/img/spinner.svg"}})]),t._v(" "),n("EmptyState",{attrs:{visible:t.fetched&&t.options.fetched&&0===t.customerCustomFields.length,licence:"basic",title:t.$root.labels.no_custom_fields_yet,description:t.$root.labels.click_add_custom_field}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.fetched&&t.options.fetched&&t.customerCustomFields.length>0,expression:"fetched && options.fetched && customerCustomFields.length > 0"}],staticClass:"am-custom-fields-list"},[n("draggable",{attrs:{options:t.draggableOptions},on:{end:t.dropCustomField},model:{value:t.customerCustomFields,callback:function(e){t.customerCustomFields=e},expression:"customerCustomFields"}},t._l(t.customerCustomFields,function(e){return n("custom-field",{key:e.id,attrs:{customField:e,"passed-used-languages":t.options.settings.general.usedLanguages,"languages-data":t.languagesData,"custom-fields-tab":t.customFieldsTab},on:{deleteCustomField:t.deleteCustomField,updateCustomField:t.updateCustomField,usedLanguagesUpdated:t.updateUsedLanguages}})}),1)],1)],1)])])],1),t._v(" "),n("div",[n("transition",{attrs:{name:"slide"}},[t.showDialog?n("el-dialog",{staticClass:"am-side-dialog am-dialog-custom-fields",attrs:{"close-on-click-modal":!1,visible:t.showDialog,"show-close":!1},on:{"update:visible":function(e){t.showDialog=e}}},[n("dialog-custom-fields",{on:{closeDialogCustomFields:t.closeDialogCustomFields,addCustomField:t.addCustomField}})],1):t._e()],1),t._v(" "),n("div",{staticClass:"am-button-new",attrs:{id:"am-button-new"}},[n("el-popover",{ref:"popover",attrs:{placement:"top",width:"160","visible-arrow":"false","popper-class":"am-button-popover"},model:{value:t.popover,callback:function(e){t.popover=e},expression:"popover"}},[n("div",{staticClass:"am-overlay",on:{click:function(e){t.popover=!1,t.buttonNewItems=!t.buttonNewItems}}},[n("div",{staticClass:"am-button-new-items-custom-fields"},[n("transition",{attrs:{name:"el-zoom-in-bottom"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.buttonNewItems,expression:"buttonNewItems"}]},t._l(t.types,function(e,i){return n("el-button",{key:i,on:{click:function(n){return t.addCustomField(e)}}},[t._v("\n "+t._s(t.$root.labels[e])+"\n ")])}),1)])],1)])]),t._v(" "),n("el-button",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],attrs:{id:"am-plus-symbol",type:"primary",icon:"el-icon-plus",disabled:t.notInLicence()},on:{click:function(e){t.buttonNewItems=!t.buttonNewItems}}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{md:6}},[n("a",{staticClass:"am-help-button",attrs:{href:t.needHelpPage,target:"_blank",rel:"nofollow"}},[n("i",{staticClass:"el-icon-question"}),t._v(" "+t._s(t.$root.labels.need_help)+"?\n ")])])],1)])},staticRenderFns:[]}},1620:function(t,e,n){var i=n(90)(n(1533),n(1539),!1,null,null,null);t.exports=i.exports},654:function(t,e,n){"use strict";e.a={data:function(){return{colors:["1788FB","4BBEC6","FBC22D","FA3C52","D696B8","689BCA","26CC2B","FD7E35","E38587","774DFB","31CDF3","6AB76C","FD5FA1","A697C5"],usedColors:[]}},methods:{deleteImage:function(t){t.pictureThumbPath="",t.pictureFullPath=""},getAppropriateUrlParams:function(t){if("disableUrlParams"in this.$root.settings.activation&&!this.$root.settings.activation.disableUrlParams)return t;var e=JSON.parse(JSON.stringify(t));return["categories","services","packages","employees","providers","providerIds","extras","locations","events","types","dates"].forEach(function(t){if("extras"===t&&t in e){e.extras=JSON.parse(e.extras);var n=[];e.extras.forEach(function(t){n.push(t.id+"-"+t.quantity)}),e.extras=n.length?n:null}t in e&&Array.isArray(e[t])&&e[t].length&&(e[t]=e[t].join(","))}),e},inlineSVG:function(){var t=n(662);t.init({svgSelector:"img.svg-amelia",initClass:"js-inlinesvg"})},inlineSVGCabinet:function(){setTimeout(function(){n(662).init({svgSelector:"img.svg-cabinet",initClass:"js-inlinesvg"})},100)},imageFromText:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getNameInitials(t),o=Math.floor(Math.random()*this.colors.length),r=this.colors[o];if(this.usedColors.push(this.colors[o]),this.colors.splice(o,1),0===this.colors.length&&(this.colors=this.usedColors,this.usedColors=[]),n)return e.firstName?this.$root.getUrl+"public/img/default-employee.svg":e.latitude?this.$root.getUrl+"public/img/default-location.svg":this.$root.getUrl+"public/img/default-service.svg";var s=document.createElement("canvas");s.width=100,s.height=100;var a=s.getContext("2d");return a.fillStyle=r.startsWith("#")?r:"#"+r,a.fillRect(0,0,s.width,s.height),a.font="40px Arial",a.fillStyle="#ffffff",a.textAlign="center",a.textBaseline="middle",a.fillText(i,s.width/2,s.height/2),s.toDataURL("image/png")},pictureLoad:function(t,e){if(null!==t){var n=!0===e?t.firstName+" "+t.lastName:t.name;if(void 0!==n)return t.pictureThumbPath=t.pictureThumbPath||this.imageFromText(n),t.pictureThumbPath}},imageLoadError:function(t,e){var n=!0===e?t.firstName+" "+t.lastName:t.name;void 0!==n&&(t.pictureThumbPath=this.imageFromText(n,t,!0))},getNameInitials:function(t){return t.split(" ").map(function(t){return t.charAt(0)}).join("").toUpperCase().substring(0,3).replace(/[^\w\s]/g,"")}}}},657:function(t,e,n){"use strict";e.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 t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.currencies.find(function(e){return e.code===t.$root.settings.payments.currencyCode});return n&&e&&"INR"!==n.code?n.symbol_native:e&&"INR"===n.code?n.code:this.$root.settings.payments.currency},getPriceThousandSeparator:function(){return this.thousandSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceDecimalSeparator:function(){return this.decimalSeparatorMap[this.$root.settings.payments.priceSeparator]},getPriceNumberOfDecimalPlaces:function(){return this.$root.settings.payments.priceNumberOfDecimals},getPricePrefix:function(){var t=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(t):this.getCurrencySymbol(t)+" "},getPriceSuffix:function(){var t=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(t):" "+this.getCurrencySymbol(t)},getFormattedPrice:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getPriceNumberOfDecimalPlaces(),i=this.getPriceThousandSeparator(),o=this.getPriceDecimalSeparator(),r=this.getPricePrefix(),s=this.getPriceSuffix(),a=parseInt(t=Math.abs(+t||0).toFixed(n))+"",l=a.length>3?a.length%3:0;return(e?r:"")+(l?a.substr(0,l)+i:"")+a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?o+Math.abs(t-a).toFixed(n).slice(2):"")+(e?s:"")},getPercentage:function(t,e){return t*e/100}},computed:{moneyComponentData:function(){return{decimal:this.getPriceDecimalSeparator(),thousands:this.getPriceThousandSeparator(),prefix:this.getPricePrefix(!0),suffix:this.getPriceSuffix(!0),precision:this.getPriceNumberOfDecimalPlaces(),masked:!1}}}}},658:function(t,e,n){"use strict";e.a={methods:{notify:function(t,e,n,i,o){var r=this;void 0===i&&(i=""),setTimeout(function(){var s={customClass:i,title:t,message:e,type:n,offset:50};void 0!==o&&(s.duration=o),r.$notify(s)},700)}}}},659:function(t,e,n){"use strict";var i=n(679),o=n(672),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={mixins:[i.a,o.a],data:function(){return{}},methods:{getLocationById:function(t){return this.options.entities.locations.find(function(e){return e.id===t})||null},getCustomerById:function(t){return this.options.entities.customers.find(function(e){return e.id===t})||null},getProviderById:function(t){return this.options.entities.employees.find(function(e){return e.id===t})||null},getServiceById:function(t){return this.options.entities.services.find(function(e){return e.id===t})||null},getCategoryById:function(t){return this.options.entities.categories.find(function(e){return e.id===t})||null},getPackageById:function(t){return this.options.entities.packages.find(function(e){return e.id===t})||null},getProviderService:function(t,e){var n=this.getProviderById(t).serviceList.find(function(t){return t.id===parseInt(e)});return n?Object.assign(JSON.parse(JSON.stringify(this.getServiceById(e))),n):null},getProviderBadge:function(t,e){var n=this.$root.settings.roles.providerBadges.badges.map(function(t){return t.id}),i=null;if(!t.badgeId||!n.includes(t.badgeId))return null;switch(i=this.$root.settings.roles.providerBadges.badges.find(function(e){return e.id===t.badgeId}),e){case"":return!0;case"color":return i.color;case"content":return i.content;default:return!0}},getServiceProviders:function(t,e){var n=this;return void 0!==e&&e?this.options.entities.employees.filter(function(e){return-1!==e.serviceList.map(function(t){return t.id}).indexOf(t)}):this.options.entities.employees.filter(function(e){return-1!==e.serviceList.filter(function(t){return n.isEmployeeService(e.id,t.id)}).map(function(t){return t.id}).indexOf(t)})},getServiceLocations:function(t,e){var n=this,i=[];return this.options.entities.employees.filter(function(e){return-1!==e.serviceList.map(function(t){return t.id}).indexOf(t)}).forEach(function(t){i=n.getProviderLocations(t.id,e).map(function(t){return t.id}).concat(i)}),this.options.entities.locations.filter(function(t){return-1!==i.indexOf(t.id)})},getProviderLocations:function(t,e){var n=this,i=[this.getProviderById(t).locationId];if(t in this.options.entitiesRelations)for(var o in this.options.entitiesRelations[t])this.options.entitiesRelations[t].hasOwnProperty(o)&&(i=i.concat(this.options.entitiesRelations[t][o]));return i=i.filter(function(t,e,n){return n.indexOf(t)===e}),(void 0!==e&&e?this.options.entities.locations:this.options.entities.locations.filter(function(e){return n.isEmployeeLocation(t,e.id)})).filter(function(t){return-1!==i.indexOf(t.id)})},getLocationProviders:function(t,e){var n=this,i=[];return this.options.entities.employees.forEach(function(o){-1!==(void 0!==e&&e?n.getProviderLocations(o.id).filter(function(t){return n.isEmployeeLocation(o.id,t.id)}):n.getProviderLocations(o.id)).map(function(t){return t.id}).indexOf(t)&&i.push(o.id)}),i=i.filter(function(t,e,n){return n.indexOf(t)===e}),this.options.entities.employees.filter(function(t){return-1!==i.indexOf(t.id)})},getServicesFromCategories:function(t){var e=[];return t.map(function(t){return t.serviceList}).forEach(function(t){e=e.concat(t)}),e.sort(this.sortWithNull)},getCategoryServices:function(t){return this.options.entities.categories.find(function(e){return e.id===t}).serviceList},getCustomerInfo:function(t){var e=null;return"info"in t&&t.info?Object.assign({id:"customer"in t?t.customer.id:null},JSON.parse(t.info)):("customerId"in t?e=this.getCustomerById(t.customerId):"customer"in t&&(e=this.getCustomerById(t.customer.id)),null!==e?e:"customer"in t?t.customer:null)},isEmployeeServiceLocation:function(t,e,n){return t in this.options.entitiesRelations&&e in this.options.entitiesRelations[t]&&-1!==this.options.entitiesRelations[t][e].indexOf(n)},isEmployeeService:function(t,e){return t in this.options.entitiesRelations&&e in this.options.entitiesRelations[t]},isEmployeeLocation:function(t,e){var n=!1;if(t in this.options.entitiesRelations)for(var i in this.options.entitiesRelations[t])this.options.entitiesRelations[t].hasOwnProperty(i)&&-1!==this.options.entitiesRelations[t][i].indexOf(e)&&(n=!0);return n},getAvailableEntitiesIds:function(t,e){var n=this,i=[],o=[],r=[],s=null!==e.categoryId?t.categories.find(function(t){return t.id===e.categoryId}):null,a=s?s.serviceList.map(function(t){return t.id}):[];if(null!==e.categoryId&&0===a.length||null!==e.serviceId&&null!==e.employeeId&&!this.isEmployeeService(e.employeeId,e.serviceId)||null!==e.serviceId&&null!==e.employeeId&&null!==e.locationId&&!this.isEmployeeServiceLocation(e.employeeId,e.serviceId,e.locationId))return{services:[],locations:[],employees:[],categories:[]};var l=function(t){if(!n.options.entitiesRelations.hasOwnProperty(t))return"continue";var s=parseInt(t);if(null!==e.employeeId&&e.employeeId!==s||null!==e.locationId&&!n.isEmployeeLocation(s,e.locationId)||null!==e.serviceId&&!n.isEmployeeService(s,e.serviceId)||null!==e.categoryId&&0===a.filter(function(t){return n.isEmployeeService(s,t)}).length||null!==e.categoryId&&null!==e.locationId&&0===a.filter(function(t){return n.isEmployeeServiceLocation(s,t,e.locationId)}).length||null!==e.serviceId&&null!==e.locationId&&!n.isEmployeeServiceLocation(s,e.serviceId,e.locationId))return"continue";for(var l in-1===o.indexOf(s)&&o.push(s),n.options.entitiesRelations[s])if(n.options.entitiesRelations[s].hasOwnProperty(l)){var c=parseInt(l);null!==e.serviceId&&e.serviceId!==c||null!==e.categoryId&&-1===a.indexOf(c)||null!==e.locationId&&!n.isEmployeeServiceLocation(s,c,e.locationId)||(-1===i.indexOf(c)&&i.push(c),n.options.entitiesRelations[s][c].length&&n.options.entitiesRelations[s][c].forEach(function(t){null!==e.locationId&&e.locationId!==t||-1===r.indexOf(t)&&r.push(t)}))}};for(var c in this.options.entitiesRelations)l(c);return{services:i,locations:r,employees:o,categories:t.categories.filter(function(t){return t.serviceList.map(function(t){return t.id}).filter(function(t){return-1!==i.indexOf(t)}).length>0}).map(function(t){return t.id})}},getParsedCustomPricing:function(t){return null===t.customPricing?t.customPricing={enabled:null,durations:[],persons:[],periods:{default:[],custom:[]}}:"object"!==r(t.customPricing)&&(t.customPricing=this.getArrayCustomPricing(t)),t.customPricing},filterEntities:function(t,e){var n=this,i=this.getAvailableEntitiesIds(t,e);this.options.entities.employees=t.employees.filter(function(t){return-1!==i.employees.indexOf(t.id)&&t.serviceList.filter(function(t){return-1!==i.services.indexOf(t.id)}).length>0}),this.options.entities.employees.forEach(function(t){t.fullName=t.firstName+" "+t.lastName,t.serviceList.forEach(function(t){t.customPricing=n.getParsedCustomPricing(t)})}),this.options.entities.categories=t.categories,this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories).filter(function(t){return t.show&&-1!==i.services.indexOf(t.id)}),this.options.entities.services.forEach(function(t){t.extras.forEach(function(t){t.extraId=t.id}),t.customPricing=n.getParsedCustomPricing(t)}),this.options.entities.locations=t.locations.filter(function(t){return-1!==i.locations.indexOf(t.id)}),this.options.entities.customFields=t.customFields;var o=this.options.entities.services.map(function(t){return t.id});if("packages"in t&&(!("show"in e)||"services"!==e.show)){t.packages.forEach(function(t){"bookableIds"in t||(t.bookableIds=t.bookable.map(function(t){return t.service.id}))});var r=t.packages.filter(function(t){return"visible"===t.status}).filter(function(t){return t.bookableIds.filter(function(t){return-1!==o.indexOf(t)}).length}),s=this.options.entities.locations.map(function(t){return t.id}),a=this.options.entities.employees.map(function(t){return t.id}),l=[];if(r.forEach(function(e){var i=!1;"availableBookableInfo"in e||(e.availableBookableInfo=[]),e.bookable.forEach(function(o){var r=!1;(0===o.minimumScheduled&&o.maximumScheduled>0||o.minimumScheduled>0&&0===o.maximumScheduled||o.minimumScheduled>0&&o.maximumScheduled>0)&&(i=!0,r=!0),o.hasSlots=r;var c=o.providers.length;if(!t.locations.length||n.options.entities.locations.length){var u=o.locations.length;!c||(o.providers=o.providers.filter(function(t){return-1!==a.indexOf(t.id)&&u?o.locations.filter(function(e){return n.isEmployeeServiceLocation(t.id,o.service.id,e.id)}).length:!n.options.entities.locations.length||n.options.entities.locations.filter(function(e){return n.isEmployeeServiceLocation(t.id,o.service.id,e.id)}).length}),o.providers.length)?(u&&(o.locations=o.locations.filter(function(t){return-1!==s.indexOf(t.id)&&(c?o.providers.filter(function(e){return n.isEmployeeServiceLocation(e.id,o.service.id,t.id)}).length:n.options.entities.employees.filter(function(e){return n.isEmployeeServiceLocation(e.id,o.service.id,t.id)}).length)}),o.locations.length||l.push(e.id)),-1===e.availableBookableInfo.map(function(t){return t.serviceId}).indexOf(o.service.id)&&e.availableBookableInfo.push({serviceId:o.service.id,serviceName:n.getNameTranslated(o.service),serviceQuantity:o.quantity,providersCount:o.providers.length})):l.push(e.id)}else l.push(e.id)}),e.bookable=e.bookable.filter(function(t){return t.hasSlots}),e.hasSlots=i}),this.options.entities.packages=r.filter(function(t){return-1===l.indexOf(t.id)}),"show"in e&&"packages"===e.show){var c=[];this.options.entities.packages.forEach(function(t){t.bookable.forEach(function(t){c.push(t.service.categoryId)})}),this.options.entities.categories=this.options.entities.categories.filter(function(t){return-1!==c.indexOf(t.id)})}this.options.entities.taxes=t.taxes}},processEntities:function(t){var e=this;this.options.entitiesRelations=t.entitiesRelations,this.options.isFrontEnd?("packages"in t&&t.packages.length&&(this.responseEntities.employees=t.employees,this.responseEntities.categories=t.categories,this.responseEntities.locations=t.locations,this.responseEntities.customFields=t.customFields,this.responseEntities.services=this.getServicesFromCategories(this.responseEntities.categories),this.responseEntities.packages=t.packages?t.packages.filter(function(t){return t.available}):[],this.responseEntities.daysOff=t.settings?t.settings.daysOff:[],this.responseEntities.taxes=t.taxes?t.taxes:[],t.packages=t.packages.filter(function(t){return t.available}),this.params&&this.params.sort||(t.packages=t.packages.sort(function(t,e){return t.position-e.position}))),this.filterEntities(t,this.getShortCodeEntityIds())):(this.options.entities.employees=t.employees,this.options.entities.categories=t.categories,this.options.entities.locations=t.locations,"customers"in t&&t.customers.length&&(this.options.entities.customers=t.customers),this.options.entities.services=this.getServicesFromCategories(this.options.entities.categories),this.options.entities.resources=t.resources,this.options.entities.packages=t.packages,this.options.entities.customFields=t.customFields,this.options.entities.coupons=t.coupons,this.options.entities.spaces=t.spaces,this.options.entities.services.forEach(function(t){t.extras.forEach(function(t){t.extraId=t.id})}),this.options.availableEntitiesIds=this.getAvailableEntitiesIds(t,{categoryId:null,serviceId:null,employeeId:null,locationId:null})),this.options.entities.employees.forEach(function(t){t.serviceList.forEach(function(t){t.customPricing=e.getParsedCustomPricing(t)})}),this.options.entities.services.forEach(function(t){t.customPricing=e.getParsedCustomPricing(t)}),"settings"in t&&(this.options.entities.settings=t.settings),this.options.entities.tags="tags"in t?t.tags:[],this.options.entities.taxes="taxes"in t?t.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(t){var e=this.getServicesFromCategories(t.categories);t.employees.forEach(function(t){t.serviceList.forEach(function(t){Object.assign(t,e.find(function(e){return e.id===t.id}),{price:t.price,customPricing:t.customPricing,minCapacity:t.minCapacity,maxCapacity:t.maxCapacity})})}),"packages"in t&&t.packages.forEach(function(t){t.bookable.forEach(function(t){var n=e.find(function(e){return e.id===t.service.id});n&&(t.service=JSON.parse(JSON.stringify(n)))})})},fetchEntities:function(t,e){var n=this,i={params:this.getAppropriateUrlParams({lite:!0,types:e.types,dates:e.dates})};if(e.page?i.params.page=e.page:"isFrontEnd"in e&&e.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})),e.isPanel||"calendar"===i.params.page||this.$root.hasApiCall&&!this.entitiesLoaded())this.$http.get(this.$root.getAjaxUrl+"/entities",i).then(function(i){n.options.isFrontEnd=e.isFrontEnd,window.ameliaAppointmentEntities=i.data.data;var o=JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));n.fillCachedEntities(o),n.processEntities(o),n.$root.useTranslations&&n.translateEntities(o);t(!0)}).catch(function(e){console.log(e);t(!1)});else var o=setInterval(function(){if(n.entitiesLoaded()){clearInterval(o),n.options.isFrontEnd=e.isFrontEnd;var i="ameliaEntities"in window?JSON.parse(JSON.stringify(window.ameliaEntities)):JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));n.fillCachedEntities(i),n.processEntities(i),n.$root.useTranslations&&n.translateEntities(i);t(!0)}},1e3)},setMissingServices:function(t){var e=this,n=this.options.entities.services.map(function(t){return parseInt(t.id)});Object.keys(t).forEach(function(i){t[i].appointments.forEach(function(t){t.service&&-1===n.indexOf(parseInt(t.serviceId))&&(e.options.entities.services.push(t.service),n.push(parseInt(t.serviceId)))})})},getFilteredEntities:function(t,e,n){var i=this,o=this.appointment&&this.appointment.id&&this.appointment[n]?this.appointment[n]:null;return this.options.entities[e].forEach(function(e){e.disabled=-1===t.indexOf(e.id)}),this.options.entities[e].filter(function(t){return-1!==i.options.availableEntitiesIds[e].indexOf(t.id)||null!==o&&o===t.id})}},computed:{visibleLocations:function(){return this.options.entities.locations.filter(function(t){return"visible"===t.status})},visibleEmployees:function(){return this.options.entities.employees.filter(function(t){return"visible"===t.status})},visibleCustomers:function(){return this.options.entities.customers.filter(function(t){return"visible"===t.status})},visibleServices:function(){return this.options.entities.services.filter(function(t){return"visible"===t.status}).sort(this.sortWithNull)},employeesFiltered:function(){var t=this,e=void 0!==this.appointment&&"bookings"in this.appointment&&this.appointment.bookings.length?this.appointment.bookings[0].persons:null,n=this.$root.settings.roles.providerBadges.badges.map(function(t){return t.id});this.visibleEmployees.forEach(function(e){e.badgeId&&n.includes(e.badgeId)?e.badge=t.$root.settings.roles.providerBadges.badges.find(function(t){return t.id===e.badgeId}):e.badge=null});var i=this.visibleEmployees.filter(function(n){return n.serviceList.filter(function(i){return"visible"===i.status&&(null===e||i.maxCapacity>=e)&&(!t.appointment.serviceId||t.isEmployeeService(n.id,i.id)&&i.id===t.appointment.serviceId)&&(!t.appointment.locationId||t.isEmployeeServiceLocation(n.id,i.id,t.appointment.locationId))&&(!t.appointment.categoryId||n.serviceList.filter(function(e){return"visible"===e.status&&e.categoryId===t.appointment.categoryId}).length>0)}).length>0});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(t){return t.id}),"employees","providerId").sort(function(t,e){return t.disabled-e.disabled})},servicesFiltered:function(){var t=this,e=[];if(this.appointment.providerId){var n=this.employeesFiltered.find(function(e){return e.id===t.appointment.providerId});e=void 0!==n?n.serviceList.filter(function(t){return"visible"===t.status}).map(function(t){return t.id}):[]}var i=this.visibleServices.filter(function(n){return!(t.appointment.providerId&&-1===e.indexOf(n.id)||t.appointment.locationId&&!(t.employeesFiltered.filter(function(e){return t.isEmployeeServiceLocation(e.id,n.id,t.appointment.locationId)}).length>0)||t.appointment.categoryId&&n.categoryId!==t.appointment.categoryId)});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(t){return t.id}),"services","serviceId")},sortWithNull:function(){return function(t,e){return t.position===e.position?0:null===t.position?1:null===e.position?-1:t.position<e.position?-1:1}},sortNotifications:function(){return function(t,e){return t.customName===e.customName?0:null===t.customName?1:null===e.customName?-1:t.id>e.id?-1:1}},locationsFiltered:function(){var t=this,e=[];if(this.appointment.providerId){var n=this.employeesFiltered.find(function(e){return e.id===t.appointment.providerId});e=void 0!==n?n.serviceList.filter(function(t){return"visible"===t.status}):[]}var i=null;this.appointment.categoryId&&(i=this.categoriesFiltered.find(function(e){return e.id===t.appointment.categoryId}));var o=this.visibleLocations.filter(function(n){return(!t.appointment.providerId||e.filter(function(e){return t.isEmployeeServiceLocation(t.appointment.providerId,e.id,n.id)}).length>0)&&(!t.appointment.serviceId||t.employeesFiltered.filter(function(e){return t.isEmployeeServiceLocation(e.id,t.appointment.serviceId,n.id)}).length>0)&&(!t.appointment.categoryId||void 0!==i&&t.employeesFiltered.filter(function(e){return e.serviceList.filter(function(o){return"visible"===o.status&&o.categoryId===i.id&&t.isEmployeeServiceLocation(e.id,o.id,n.id)}).length>0}).length>0)});return this.options.isFrontEnd?o:this.getFilteredEntities(o.map(function(t){return t.id}),"locations","locationId").sort(function(t,e){return t.disabled-e.disabled})},couponsFilteredService:function(){var t=this,e=[];return this.options.entities.coupons&&(e=this.options.entities.coupons.filter(function(t){return t.serviceList.length>0}),this.appointment.serviceId)?e.filter(function(e){return e.serviceList.find(function(e){return e.id===t.appointment.serviceId})}):e},couponsFilteredEvent:function(){var t=this,e=[];return this.options.entities.coupons&&(e=this.options.entities.coupons.filter(function(t){return t.eventList.length>0}),this.eventId)?e.filter(function(e){return e.eventList.find(function(e){return e.id===t.eventId})}):e},categoriesFiltered:function(){var t=this,e=null;this.appointment.providerId&&(e=this.employeesFiltered.find(function(e){return e.id===t.appointment.providerId}));var n=null;this.appointment.serviceId&&(n=this.servicesFiltered.find(function(e){return e.id===t.appointment.serviceId}));var i=this.options.entities.categories.filter(function(i){return(!t.appointment.serviceId||void 0!==n&&n.categoryId===i.id)&&(!t.appointment.locationId||i.serviceList.filter(function(e){return"visible"===e.status&&t.employeesFiltered.filter(function(n){return t.isEmployeeServiceLocation(n.id,e.id,t.appointment.locationId)}).length>0}).length>0)&&(!t.appointment.providerId||void 0!==e&&-1!==e.serviceList.filter(function(e){return"visible"===e.status&&t.isEmployeeService(t.appointment.providerId,e.id)}).map(function(t){return t.categoryId}).indexOf(i.id))});return this.options.isFrontEnd?i:this.getFilteredEntities(i.map(function(t){return t.id}),"categories","categoryId").sort(function(t,e){return t.disabled-e.disabled})}}}},661:function(t,e,n){"use strict";var i=n(657);e.a={mixins:[i.a],methods:{isDurationPricingEnabled:function(t){return null!==t&&("duration"===t.enabled||!0===t.enabled)&&"durations"in t},isPersonPricingEnabled:function(t){return null!==t&&"person"===t.enabled&&"persons"in t},isPeriodPricingEnabled:function(t){return null!==t&&"period"===t.enabled&&"periods"in t&&!this.$root.licence.isLite&&!this.$root.licence.isStarter&&!this.$root.licence.isBasic},getBookingServicePrice:function(t,e,n,i,o){return this.isDurationPricingEnabled(t.customPricing)?this.getBookingDurationPrice(t,e):this.isPersonPricingEnabled(t.customPricing)?this.getBookingPersonPrice(t,n):this.isPeriodPricingEnabled(t.customPricing)&&i&&o?this.getBookingPeriodPrice(t,parseInt(i),o):t.price},getBookingDurationPrice:function(t,e){return e&&t.customPricing.durations.filter(function(t){return t.duration===e}).length?t.customPricing.durations.find(function(t){return t.duration===e}).price:t.price},getBookingPersonPrice:function(t,e){var n=t.customPricing.persons.map(function(t){return t.range}).sort(function(t,e){return e.range-t.range});if(e&&n.length){var i=n.filter(function(t){return t>=e}),o=0===i.length?n[n.length-1]:i[0];return t.customPricing.persons.find(function(t){return t.range===o}).price}return t.price},getBookingPeriodPrice:function(t,e,n){var i=n.split(" ");if(i[0]in this.pricedCalendarTimeSlots&&i[1].substr(0,5)in this.pricedCalendarTimeSlots[i[0]]){var o=this.pricedCalendarTimeSlots[i[0]][i[1].substr(0,5)].filter(function(t){return t.e===e});return o.length?o[0].p:t.price}return t.price}}}},662:function(t,e,n){(function(n){var i,o,r,s;s=void 0!==n?n:this.window||this.global,o=[],i=function(t){var e,n={},i=!!document.querySelector&&!!t.addEventListener,o={initClass:"js-inlinesvg",svgSelector:"img.svg"},r=function(){var t={},e=!1,n=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var o=function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e&&"[object Object]"===Object.prototype.toString.call(n[i])?t[i]=r(!0,t[i],n[i]):t[i]=n[i])};i>n;n++){o(arguments[n])}return t},s=function(t){var n=document.querySelectorAll(e.svgSelector),i=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}}(n.length,t);Array.prototype.forEach.call(n,function(t,n){var o=t.src||t.getAttribute("data-src"),r=t.attributes,s=new XMLHttpRequest;s.open("GET",o,!0),s.onload=function(){if(s.status>=200&&s.status<400){var n=(new DOMParser).parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];if(n.removeAttribute("xmlns:a"),n.removeAttribute("width"),n.removeAttribute("height"),n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("enable-background"),n.removeAttribute("xmlns:xlink"),n.removeAttribute("xml:space"),n.removeAttribute("version"),Array.prototype.slice.call(r).forEach(function(t){"src"!==t.name&&"alt"!==t.name&&n.setAttribute(t.name,t.value)}),n.classList?n.classList.add("inlined-svg"):n.className+=" inlined-svg",n.setAttribute("role","img"),r.longdesc){var o=document.createElementNS("http://www.w3.org/2000/svg","desc"),a=document.createTextNode(r.longdesc.value);o.appendChild(a),n.insertBefore(o,n.firstChild)}if(r.alt){n.setAttribute("aria-labelledby","title");var l=document.createElementNS("http://www.w3.org/2000/svg","title"),c=document.createTextNode(r.alt.value);l.appendChild(c),n.insertBefore(l,n.firstChild)}t.parentNode.replaceChild(n,t),i(e.svgSelector)}else console.error("There was an error retrieving the source of the SVG.")},s.onerror=function(){console.error("There was an error connecting to the origin server.")},s.send()})};return n.init=function(t,n){i&&(e=r(o,t||{}),s(n||function(){}),document.documentElement.className+=" "+e.initClass)},n}(s),void 0===(r="function"==typeof i?i.apply(e,o):i)||(t.exports=r)}).call(e,n(37))},672:function(t,e,n){"use strict";var i=n(661),o=n(0),r=n.n(o),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={mixins:[i.a],methods:{getArrayCustomPricing:function(t){var e=t.customPricing,n=null;if(void 0===e||null===e||""===e)n={enabled:null,durations:{},persons:{},periods:{default:[],custom:[]}};else if("object"===(void 0===e?"undefined":s(e))){if(Array.isArray(e.durations))return"persons"in e||(e.persons=[]),"periods"in e||(e.periods={default:[],custom:[]}),!0===e.enabled&&(e.enabled="duration"),e;n=JSON.parse(JSON.stringify(e))}else n=JSON.parse(e);!0===n.enabled&&(n.enabled="duration"),n.persons="persons"in n?n.persons:[],n.periods="periods"in n?n.periods:{default:[],custom:[]};var i=[];Object.keys(n.persons).length&&(i.push({start:1,range:Object.keys(n.persons)[0]-1,price:t.price,rules:[]}),Object.keys(n.persons).forEach(function(e,o){i.push({start:parseInt(e),range:o!==Object.keys(n.persons).length-1?Object.keys(n.persons)[o+1]-1:t.maxCapacity,price:n.persons[e].price,rules:n.persons[e].rules})}));var o=[];return Object.keys(n.durations).forEach(function(t){o.push({duration:parseInt(t),price:n.durations[t].price,rules:n.durations[t].rules})}),n.periods.custom.forEach(function(t){t.dates.start=r()(t.dates.start).toDate(),t.dates.end=r()(t.dates.end).toDate()}),{enabled:n.enabled,durations:o,persons:i,periods:n.periods}},getJsonCustomPricing:function(t){var e={},n=t.customPricing;n&&n.durations.filter(function(t){return t.duration}).length>0&&n.durations.forEach(function(t){e[t.duration]={price:t.price,rules:t.rules}});var i={};n&&n.persons.length&&n.persons.forEach(function(t,e){0!==e&&(i[n.persons[e-1].range+1]={price:t.price,rules:t.rules})});var o=[];n.periods.default.filter(function(t){return t.days.length}).forEach(function(t){t.ranges.forEach(function(t){null===t.from&&(t.from="00:00"),null===t.to&&(t.to="24:00")}),o.push(t)});var s=[];n.periods.custom.filter(function(t){return t.dates.start&&t.dates.end}).forEach(function(t){t.ranges.forEach(function(t){null===t.from&&(t.from="00:00"),null===t.to&&(t.to="24:00")}),t.dates.start=r()(t.dates.start).format("YYYY-MM-DD"),t.dates.end=r()(t.dates.end).format("YYYY-MM-DD"),s.push(t)});var a=null;return n&&this.isDurationPricingEnabled(n)?a="duration":n&&this.isPersonPricingEnabled(n)?a="person":n&&this.isPeriodPricingEnabled(n)&&(o.length||s.length)&&(a="period"),JSON.stringify({enabled:a,durations:e,persons:i,periods:{default:o,custom:s}})}}}},679:function(t,e,n){"use strict";e.a={data:function(){return{}},methods:{checkTranslations:function(t,e){var n=""!==e?JSON.parse(t.translations)[e]:JSON.parse(t.translations);if(window.localeLanguage[0]in n)return n[window.localeLanguage[0]];for(var i=Object.keys(n),o=Object.keys(n).map(function(t){return t.length>2?t.slice(0,2):t}),r=window.localeLanguage[0].length>2?window.localeLanguage[0].slice(0,2):window.localeLanguage[0],s="",a=0;a<o.length;a++)if(o[a]===r){s=n[i[a]];break}return s},getTranslated:function(t,e){return t.translations&&JSON.parse(t.translations)[e]&&this.checkTranslations(t,e)?this.checkTranslations(t,e):t[e]},getNameTranslated:function(t){return t.translations&&JSON.parse(t.translations).name&&this.checkTranslations(t,"name")?this.checkTranslations(t,"name"):t.name},getTicketTranslated:function(t){return t.translations&&this.checkTranslations(t,"")?this.checkTranslations(t,""):t.name},getCfLabelTranslated:function(t){return t.translations&&this.checkTranslations(t,"name")?this.checkTranslations(t,"name"):t.label},getCfOptionTranslated:function(t){return t.translations&&this.checkTranslations(t,"")?this.checkTranslations(t,""):t.label},getDescriptionTranslated:function(t){return t.translations&&JSON.parse(t.translations).description&&this.checkTranslations(t,"description")?this.checkTranslations(t,"description"):t.description},translateEntities:function(t){var e=this;t.services&&t.services.length&&t.services.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t),t.extras.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)})}),t.locations&&t.locations.length&&t.locations.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)}),t.packages&&t.packages.length&&t.packages.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t),t.bookable.forEach(function(t){t.service.name=e.getNameTranslated(t.service),t.service.description=e.getDescriptionTranslated(t.service),"extras"in t.service&&t.service.extras.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)})})}),t.categories&&t.categories.length&&t.categories.forEach(function(t){t.name=e.getNameTranslated(t),t.serviceList.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t),t.extras.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)})})}),t.events&&t.events.length&&t.events.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t),t.extras.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)})}),t.customFields&&t.customFields.length&&t.customFields.forEach(function(t){t.label=e.getCfLabelTranslated(t),t.options.forEach(function(t){t.label=e.getCfOptionTranslated(t)})}),t.employees&&t.employees.length&&t.employees.forEach(function(t){t.firstName=e.getTranslated(t,"firstName"),t.lastName=e.getTranslated(t,"lastName"),t.serviceList.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t),t.extras.forEach(function(t){t.name=e.getNameTranslated(t),t.description=e.getDescriptionTranslated(t)})})})}},computed:{}}},693:function(t,e,n){var i=n(90)(n(694),n(695),!1,null,null,null);t.exports=i.exports},694:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(91),o=n(336),r=n(654);e.default={mixins:[i.a,o.a,r.a],props:["oldCustomize","appointmentsApproved","appointmentsPending","employeesTotal","customersTotal","locationsTotal","packagesTotal","resourcesTotal","servicesTotal","categoriesTotal","financeTotal","addNewTaxBtnDisplay","addNewCouponBtnDisplay","addNewCustomFieldBtnDisplay","locations","categories","bookableType","params","fetched"],methods:{showMainCustomize:function(){this.$emit("showMainCustomize",null)},showDialogCustomer:function(){this.$emit("newCustomerBtnClicked",null)},showDialogAppointment:function(){this.$emit("newAppointmentBtnClicked",null)},showDialogEvent:function(){this.$emit("newEventBtnClicked",null)},showDialogEmployee:function(){this.$emit("newEmployeeBtnClicked")},showDialogLocation:function(){this.$emit("newLocationBtnClicked")},showDialogService:function(){this.$emit("newServiceBtnClicked")},showDialogPackage:function(){this.$emit("newPackageBtnClicked")},showDialogPackageBooking:function(){this.$emit("newPackageBookingBtnClicked")},showDialogResource:function(){this.$emit("newResourceBtnClicked")},showDialogTax:function(){this.$emit("newTaxBtnClicked")},showDialogCoupon:function(){this.$emit("newCouponBtnClicked")},showDialogCustomFields:function(){this.$emit("newCustomFieldBtnClicked")},selectAllInCategory:function(t){this.$emit("selectAllInCategory",t)},changeFilter:function(){this.$emit("changeFilter")}}}},695:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"am-page-header am-section"},[n("el-row",{attrs:{type:"wpamelia-calendar"===t.$router.currentRoute.name?"":"flex",align:"middle"}},[n("el-col",{attrs:{span:"wpamelia-calendar"===t.$router.currentRoute.name?6:18}},[n("div",{staticClass:"am-logo"},[n("img",{staticClass:"logo-big",attrs:{width:"92",src:t.$root.getUrl+"public/img/amelia-logo-horizontal.svg"}}),t._v(" "),n("img",{staticClass:"logo-small",attrs:{width:"28",src:t.$root.getUrl+"public/img/amelia-logo-symbol.svg"}})]),t._v(" "),n("h1",{staticClass:"am-page-title"},[t._v("\n "+t._s(t.bookableType?t.$root.labels[t.bookableType]:t.$router.currentRoute.meta.title)+"\n\n "),t._v(" "),t.appointmentsApproved>=0?n("span",{staticClass:"am-appointments-number approved"},[t._v("\n "+t._s(t.appointmentsApproved)+"\n ")]):t._e(),t._v(" "),t.appointmentsPending>=0?n("span",{staticClass:"am-appointments-number pending"},[t._v("\n "+t._s(t.appointmentsPending)+"\n ")]):t._e(),t._v(" "),t.employeesTotal>=0&&!0===t.$root.settings.capabilities.canReadOthers?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.employeesTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.customersTotal>=0?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.customersTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.locationsTotal>=0?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.locationsTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.servicesTotal>=0&&"services"===t.bookableType?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.servicesTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.packagesTotal>=0&&"packages"===t.bookableType?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.packagesTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.resourcesTotal>=0&&"resources"===t.bookableType?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.resourcesTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e(),t._v(" "),t.financeTotal>=0?n("span",[n("span",{staticClass:"total-number"},[t._v(t._s(t.financeTotal))]),t._v(" "+t._s(t.$root.labels.total)+"\n ")]):t._e()])]),t._v(" "),n("el-col",{staticClass:"align-right v-calendar-column",attrs:{span:"wpamelia-calendar"===t.$router.currentRoute.name?18:6}},["wpamelia-appointments"===t.$router.currentRoute.name&&(!0===t.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteAppointments)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogAppointment}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.new_appointment))])]):t._e(),t._v(" "),"wpamelia-events"===t.$router.currentRoute.name&&(!0===t.$root.settings.capabilities.canWriteOthers||"provider"===this.$root.settings.role&&this.$root.settings.roles.allowWriteEvents)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogEvent}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.new_event))])]):t._e(),t._v(" "),"wpamelia-employees"===t.$router.currentRoute.name&&!0===t.$root.settings.capabilities.canWrite&&!0===t.$root.settings.capabilities.canWriteOthers?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogEmployee}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_employee))])]):t._e(),t._v(" "),"wpamelia-customers"===t.$router.currentRoute.name&&!0===t.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogCustomer}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_customer))])]):t._e(),t._v(" "),"wpamelia-locations"===t.$router.currentRoute.name&&!0===t.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:t.licenceClassDisabled(),attrs:{type:"primary",disabled:t.notInLicence()},on:{click:t.showDialogLocation}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_location))])]):t._e(),t._v(" "),"wpamelia-services"===t.$router.currentRoute.name&&t.categoriesTotal>0&&!0===t.$root.settings.capabilities.canWrite&&"services"===t.bookableType?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogService}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_service))])]):t._e(),t._v(" "),"wpamelia-services"===t.$router.currentRoute.name&&!0===t.$root.settings.capabilities.canWrite&&"packages"===t.bookableType?n("el-button",{staticClass:"am-dialog-create",class:t.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:t.notInLicence("pro")},on:{click:function(e){t.packagesTotal>=0?t.showDialogPackage():t.showDialogPackageBooking()}}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.packagesTotal>=0?t.$root.labels.add_package:t.$root.labels.book_package))])]):t._e(),t._v(" "),"wpamelia-services"===t.$router.currentRoute.name&&!0===t.$root.settings.capabilities.canWrite&&"resources"===t.bookableType?n("el-button",{staticClass:"am-dialog-create",class:t.licenceClassDisabled("pro"),attrs:{type:"primary",disabled:t.notInLicence("pro")},on:{click:function(e){return t.showDialogResource()}}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_resource))])]):t._e(),t._v(" "),"wpamelia-finance"===t.$router.currentRoute.name&&t.addNewTaxBtnDisplay&&!0===t.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:t.licenceClassDisabled(),attrs:{type:"primary",disabled:t.notInLicence()},on:{click:t.showDialogTax}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.new_tax))])]):t._e(),t._v(" "),"wpamelia-finance"===t.$router.currentRoute.name&&t.addNewCouponBtnDisplay&&!0===t.$root.settings.capabilities.canWrite?n("el-button",{staticClass:"am-dialog-create",class:t.licenceClassDisabled("starter"),attrs:{type:"primary",disabled:t.notInLicence("starter")},on:{click:t.showDialogCoupon}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.new_coupon))])]):t._e(),t._v(" "),n("transition",{attrs:{name:"fade"}},["wpamelia-cf"===t.$router.currentRoute.name&&t.addNewCustomFieldBtnDisplay?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogCustomFields}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.add_custom_field))])]):t._e()],1),t._v(" "),"wpamelia-dashboard"===t.$router.currentRoute.name?n("div",{staticClass:"v-calendar-column"},[n("div",{staticClass:"el-form-item__content"},[n("v-date-picker",{attrs:{mode:"range","popover-visibility":"focus","popover-direction":"bottom","popover-align":"right","tint-color":"#1A84EE","show-day-popover":!1,"input-props":{class:"el-input__inner"},"is-expanded":!1,"is-required":!0,"input-class":"el-input__inner",formats:t.vCalendarFormats,"is-double-paned":!0},on:{input:t.changeFilter},model:{value:t.params.dates,callback:function(e){t.$set(t.params,"dates",e)},expression:"params.dates"}})],1)]):t._e(),t._v(" "),"wpamelia-calendar"===t.$router.currentRoute.name?n("div",{staticClass:"am-calendar-header-filters"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[n("el-form-item",{attrs:{label:t.$root.labels.services+":"}},[n("el-select",{attrs:{multiple:"",filterable:"","collapse-tags":"",loading:!t.fetched,placeholder:t.$root.labels.all_services},on:{change:t.changeFilter},model:{value:t.params.services,callback:function(e){t.$set(t.params,"services",e)},expression:"params.services"}},t._l(t.categories,function(e){return n("div",{key:e.id},[n("div",{staticClass:"am-drop-parent",on:{click:function(n){return t.selectAllInCategory(e.id)}}},[n("span",[t._v(t._s(e.name))])]),t._v(" "),t._l(e.serviceList,function(t){return n("el-option",{key:t.id,staticClass:"am-drop-child",attrs:{label:t.name,value:t.id}})})],2)}),0)],1),t._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.locations.length,expression:"locations.length"}],attrs:{label:t.$root.labels.locations+":"}},[n("el-select",{attrs:{multiple:"",clearable:"","collapse-tags":"",placeholder:t.$root.labels.all_locations,loading:!t.fetched},on:{change:t.changeFilter},model:{value:t.params.locations,callback:function(e){t.$set(t.params,"locations",e)},expression:"params.locations"}},t._l(t.locations,function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1)],1),t._v(" "),"wpamelia-calendar"===t.$router.currentRoute.name&&("admin"===t.$root.settings.role||"manager"===t.$root.settings.role||"provider"===t.$root.settings.role&&t.$root.settings.roles.allowWriteAppointments)?n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showDialogAppointment}},[n("i",{staticClass:"el-icon-plus"}),t._v(" "),n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.new_appointment))])]):t._e()],1):t._e(),t._v(" "),t.oldCustomize&&"wpamelia-customize"===t.$router.currentRoute.name?n("div",{staticClass:"am-calendar-header-filters"},[n("el-button",{staticClass:"am-dialog-create",attrs:{type:"primary"},on:{click:t.showMainCustomize}},[n("span",{staticClass:"button-text"},[t._v(t._s(t.$root.labels.go_back))])])],1):t._e()],1)],1)],1)},staticRenderFns:[]}},705:function(t,e,n){"use strict";e.a={data:function(){return{}},methods:{updateStashEntities:function(t){this.$root.settings.activation.stash&&this.$http.post(this.$root.getAjaxUrl+"/stash",t).then(function(t){})}}}},749:function(t,e,n){var i;"undefined"!=typeof self&&self,i=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var i=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var r,s,a=String(o(e)),l=i(n),c=a.length;return l<0||l>=c?t?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):r:t?a.slice(l,l+2):s-56320+(r-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var i=n("3a38"),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):r(t,e)}},1654:function(t,e,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,n){var i=n("63b6");i(i.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var i=n("f772"),o=n("e53d").document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var i=n("d9f6"),o=n("aebd");t.exports=function(t,e,n){e in t?i.f(t,e,o(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),u=!r(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=a(t),p=!r(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),m=p?!r(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!p||!m||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],v=n(s,f,""[t],function(t,e,n,i,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),g=v[0],b=v[1];i(String.prototype,t,g),o(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var i=n("25eb");t.exports=function(t){return Object(i(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(r(n,s)||o(n,s,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2b4c":function(t,e,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(t){return!!~o(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var i=n("b8e3"),o=n("63b6"),r=n("9138"),s=n("35e8"),a=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",m="values",h=function(){return this};t.exports=function(t,e,n,v,g,b,y){l(n,e,v);var _,C,w,x=function(t){if(!f&&t in T)return T[t];switch(t){case p:case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",D=g==m,E=!1,T=t.prototype,k=T[d]||T["@@iterator"]||g&&T[g],$=k||x(g),F=g?D?x("entries"):$:void 0,P="Array"==e&&T.entries||k;if(P&&((w=u(P.call(new t)))!==Object.prototype&&w.next&&(c(w,S,!0),i||"function"==typeof w[d]||s(w,d,h))),D&&k&&k.name!==m&&(E=!0,$=function(){return k.call(this)}),i&&!y||!f&&!E&&T[d]||s(T,d,$),a[e]=$,a[S]=h,g)if(_={values:D?$:x(m),keys:b?$:x(p),entries:F},y)for(C in _)C in T||r(T,C,_[C]);else o(o.P+o.F*(f||E),e,_);return _}},"32a6":function(t,e,n){var i=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(t){return o(i(t))}})},"32e9":function(t,e,n){var i=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var i=n("e53d").document;t.exports=i&&i.documentElement},"335c":function(t,e,n){var i=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var i=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var i=n("335c"),o=n("25eb");t.exports=function(t){return i(o(t))}},3702:function(t,e,n){var i=n("481b"),o=n("5168")("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[o]===t)}},"3a38":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"40c3":function(t,e,n){var i=n("6b4c"),o=n("5168")("toStringTag"),r="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"45f2":function(t,e,n){var i=n("d9f6").f,o=n("07e3"),r=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,n){t.exports=n("dc62")},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},"4ee1":function(t,e,n){var i=n("5168")("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},t(r)}catch(t){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},5168:function(t,e,n){var i=n("dbdb")("wks"),o=n("62a0"),r=n("e53d").Symbol,s="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=i},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(s=function(t){var e,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(e=d[a]),s=o.call(d,t),l&&s&&(d[a]=d.global?s.index+s[0].length:e),c&&s&&s.length>1&&r.call(s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),t.exports=s},"53e2":function(t,e,n){var i=n("07e3"),o=n("241e"),r=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"549b":function(t,e,n){"use strict";var i=n("d864"),o=n("63b6"),r=n("241e"),s=n("b0dc"),a=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");o(o.S+o.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,d,f=r(t),p="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,v=void 0!==h,g=0,b=u(f);if(v&&(h=i(h,m>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(n=new p(e=l(f.length));e>g;g++)c(n,g,v?h(f[g],g):f[g]);else for(d=b.call(f),n=new p;!(o=d.next()).done;g++)c(n,g,v?s(d,h,[o.value,g],!0):o.value);return n.length=g,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},5537:function(t,e,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var i=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return i[t]||(i[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var i=n("36c3"),o=n("b447"),r=n("0fc9");t.exports=function(t){return function(e,n,s){var a,l=i(e),c=o(l.length),u=r(s,c);if(t&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function(t,e,n){var u,d,f,p,m=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,b=t&c.B,y=h?i:v?i[e]||(i[e]={}):(i[e]||{})[l],_=h?o:o[e]||(o[e]={}),C=_[l]||(_[l]={});for(u in h&&(n=e),n)f=((d=!m&&y&&void 0!==y[u])?y:n)[u],p=b&&d?a(f,i):g&&"function"==typeof f?a(Function.call,f):f,y&&s(y,u,f,t&c.U),_[u]!=f&&r(_,u,p),g&&C[u]!=f&&(C[u]=f)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5d73":function(t,e,n){t.exports=n("469f")},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"63b6":function(t,e,n){var i=n("e53d"),o=n("584a"),r=n("d864"),s=n("35e8"),a=n("07e3"),l="prototype",c=function(t,e,n){var u,d,f,p=t&c.F,m=t&c.G,h=t&c.S,v=t&c.P,g=t&c.B,b=t&c.W,y=m?o:o[e]||(o[e]={}),_=y[l],C=m?i:h?i[e]:(i[e]||{})[l];for(u in m&&(n=e),n)(d=!p&&C&&void 0!==C[u])&&a(y,u)||(f=d?C[u]:n[u],y[u]=m&&"function"!=typeof C[u]?n[u]:g&&d?r(f,i):b&&C[u]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):v&&"function"==typeof f?r(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[u]=f,t&c.R&&_&&!_[u]&&s(_,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var i=n("626a"),o=n("be13");t.exports=function(t){return i(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),o=n("35e8"),r=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=i[c],d=u&&u.prototype;d&&!d[s]&&o(d,s,c),r[c]=r.Array}},"71c1":function(t,e,n){var i=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var r,s,a=String(o(e)),l=i(n),c=a.length;return l<0||l>=c?t?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):r:t?a.slice(l,l+2):s-56320+(r-55296<<10)+65536}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var i=n("4588"),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):r(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7cd6":function(t,e,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}},"7d7b":function(t,e,n){var i=n("e4ae"),o=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"7e90":function(t,e,n){var i=n("d9f6"),o=n("e4ae"),r=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);for(var n,s=r(e),a=s.length,l=0;a>l;)i.f(t,n=s[l++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var i=n("a159"),o=n("aebd"),r=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:o(1,n)}),r(t,e+" Iterator")}},9003:function(t,e,n){var i=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==i(t)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var i=n("c3a1"),o=n("9aa9"),r=n("355d"),s=n("241e"),a=n("335c"),l=Object.assign;t.exports=!l||n("294c")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=s(t),l=arguments.length,c=1,u=o.f,d=r.f;l>c;)for(var f,p=a(arguments[c++]),m=u?i(p).concat(u(p)):i(p),h=m.length,v=0;h>v;)d.call(p,f=m[v++])&&(n[f]=p[f]);return n}:l},9427:function(t,e,n){var i=n("63b6");i(i.S,"Object",{create:n("a159")})},"95d5":function(t,e,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||r.hasOwnProperty(i(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),t.exports=function(t){o[i][t]=!0}},"9def":function(t,e,n){var i=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var i=n("e4ae"),o=n("7e90"),r=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},l="prototype",c=function(){var t,e=n("1ec9")("iframe"),i=r.length;for(e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][r[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[l]=i(t),n=new a,a[l]=null,n[s]=t):n=c(),void 0===e?n:o(n,e)}},a352:function(e,n){e.exports=t},a3c3:function(t,e,n){var i=n("63b6");i(i.S+i.F,"Object",{assign:n("9306")})},a481:function(t,e,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,m=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,h){return[function(i,o){var r=t(this),s=void 0==i?void 0:i[e];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var d=i(t),f=String(this),p="function"==typeof e;p||(e=String(e));var g=d.global;if(g){var b=d.unicode;d.lastIndex=0}for(var y=[];;){var _=l(d,f);if(null===_)break;if(y.push(_),!g)break;""===String(_[0])&&(d.lastIndex=a(f,r(d.lastIndex),b))}for(var C="",w=0,x=0;x<y.length;x++){_=y[x];for(var S=String(_[0]),D=c(u(s(_.index),f.length),0),E=[],T=1;T<_.length;T++)E.push(m(_[T]));var k=_.groups;if(p){var $=[S].concat(E,D,f);void 0!==k&&$.push(k);var F=String(e.apply(void 0,$))}else F=v(S,f,D,E,k,e);D>=w&&(C+=f.slice(w,D)+F,w=D+S.length)}return C+f.slice(w)}];function v(t,e,i,r,s,a){var l=i+t.length,c=r.length,u=p;return void 0!==s&&(s=o(s),u=f),n.call(a,u,function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===r[f-1]?o.charAt(1):r[f-1]+o.charAt(1):n}a=r[u-1]}return void 0===a?"":a})}})},a4bb:function(t,e,n){t.exports=n("8aae")},a745:function(t,e,n){t.exports=n("f410")},aae3:function(t,e,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b0dc:function(t,e,n){var i=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&i(r.call(t)),e}}},b447:function(t,e,n){var i=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var i=n("6821"),o=n("9def"),r=n("77f1");t.exports=function(t){return function(e,n,s){var a,l=i(e),c=o(l.length),u=r(s,c);if(t&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),o=n("50ed"),r=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return i(t,o)}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",function(){return c}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return r}),n.d(e,"d",function(){return l}),n("a481");var i=n("4aa6"),o=n.n(i);var r="undefined"!=typeof window?window.console:t.console;var s=/-(\w)/g,a=function(t){var e=o()(null);return function(n){return e[n]||(e[n]=t(n))}}(function(t){return t.replace(s,function(t,e){return e?e.toUpperCase():""})});function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var i=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,i)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,n){var i=n("63b6"),o=n("584a"),r=n("294c");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",s)}},d2c8:function(t,e,n){var i=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,n){var i=n("79aa");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var i=n("e4ae"),o=n("794b"),r=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var i=n("584a"),o=n("e53d"),r="__core-js_shared__",s=o[r]||(o[r]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,n){n("9427");var i=n("584a").Object;t.exports=function(t,e){return i.create(t,e)}},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var i=n("07e3"),o=n("36c3"),r=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~r(c,n)||c.push(n));return c}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f559:function(t,e,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(t){var e=r(this,t,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var i;n.r(e),"undefined"!=typeof window&&(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=i[1]);var o=n("5176"),r=n.n(o),s=(n("f559"),n("a4bb")),a=n.n(s),l=(n("6762"),n("2fdb"),n("a745")),c=n.n(l);var u=n("5d73"),d=n.n(u);function f(t,e){return function(t){if(c()(t))return t}(t)||function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=d()(t);!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=n("774e"),m=n.n(p),h=n("c8bb"),v=n.n(h);function g(t){return function(t){if(c()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(v()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return m()(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var b=n("a352"),y=n.n(b),_=n("c649");function C(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function w(t,e){var n=null,i=function(t,e){n=function(t,e,n){return void 0===n?t:((t=t||{})[e]=n,t)}(n,t,e)};if(i("attrs",a()(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var o=e.on,s=e.props,l=e.attrs;return i("on",o),i("props",s),r()(n.attrs,l),n}var x=["Start","Add","Remove","Update","End"],S=["Choose","Sort","Filter","Clone"],D=["Move"].concat(x,S).map(function(t){return"on"+t}),E=null,T={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=f(t,1)[0].componentOptions;return!!e&&["transition-group","TransitionGroup"].includes(e.tag)}(e);var n=function(t,e){var n=e.header,i=e.footer,o=0,r=0;return n&&(o=n.length,t=t?[].concat(g(n),g(t)):g(n)),i&&(r=i.length,t=t?[].concat(g(t),g(i)):g(i)),{children:t,headerOffset:o,footerOffset:r}}(e,this.$slots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=w(this.$attrs,this.componentData);return t(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};x.forEach(function(n){e["on"+n]=function(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),C.call(e,t,n)}}.call(t,n)}),S.forEach(function(n){e["on"+n]=C.bind(t,n)});var n=a()(this.$attrs).reduce(function(e,n){return e[Object(_.a)(n)]=t.$attrs[n],e},{}),i=r()({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new y.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(_.a)(e);-1===D.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=function(t,e,n,i){if(!t)return[];var o=t.map(function(t){return t.elm}),r=e.length-i,s=g(e).map(function(t,e){return e>=r?o.length:o.indexOf(t)});return n?s.filter(function(t){return-1!==t}):s}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=function(t,e){return t.map(function(t){return t.elm}).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=g(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments;this.alterList(function(e){return e.splice.apply(e,g(t))})},updatePosition:function(t,e){this.alterList(function(n){return n.splice(e,0,n.splice(t,1)[0])})},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var o=i.realList,s={list:o,component:i};if(e!==n&&o&&i.getUnderlyingVm){var a=i.getUnderlyingVm(n);if(a)return r()(a,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),E=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(_.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var i={element:e,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(_.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(_.d)(t.clone)},onDragUpdate:function(t){Object(_.d)(t.item),Object(_.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var i={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=g(e.to.children).filter(function(t){return"none"!==t.style.display}),i=n.indexOf(e.related),o=t.component.getVmIndex(i);return-1!==n.indexOf(E)||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),o=this.context,s=this.computeFutureIndex(i,t);return r()(o,{futureIndex:s}),n(r()({},t,{relatedContext:i,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),E=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var k=T;e.default=k}}).default},t.exports=i(n(805))},805:function(t,e,n){var i,o;!function(r){"use strict";void 0===(o="function"==typeof(i=r)?i.call(e,n,e,t):i)||(t.exports=o)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,i,o,r,s,a,l,c,u,d,f,p,m,h,v,g,b,y,_,C,w,x,S,D,E,T,k=[],$=!1,F=!1,P=!1,I=[],O=!1,A=!1,L=[],N=/\s+/g,M="Sortable"+(new Date).getTime(),R=window,B=R.document,j=R.parseInt,U=R.setTimeout,Y=R.jQuery||R.Zepto,H=R.Polymer,K={capture:!1,passive:!1},z=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),G=!!navigator.userAgent.match(/Edge/i),W=!!navigator.userAgent.match(/firefox/i),X=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),V=!!navigator.userAgent.match(/iP(ad|od|hone)/i),J=G||z?"cssFloat":"float",q="draggable"in B.createElement("div"),Z=function(){if(z)return!1;var t=B.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Q=!1,tt=!1,et=Math.abs,nt=Math.min,it=Math.max,ot=[],rt=function(t,e){var n=xt(t),i=j(n.width)-j(n.paddingLeft)-j(n.paddingRight)-j(n.borderLeftWidth)-j(n.borderRightWidth),o=Ft(t,0,e),r=Ft(t,1,e),s=o&&xt(o),a=r&&xt(r),l=s&&j(s.marginLeft)+j(s.marginRight)+Ut(o).width,c=a&&j(a.marginLeft)+j(a.marginRight)+Ut(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&"none"!==s.float){var u="left"===s.float?"left":"right";return!r||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=i&&"none"===n[J]||r&&"none"===n[J]&&l+c>i)?"vertical":"horizontal"},st=function(t,e){if(!t||!t.getBoundingClientRect)return at();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=xt(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n||!n.getBoundingClientRect||n===B.body)return at();if(i||e)return n;i=!0}}}while(n=n.parentNode);return at()},at=function(){return z?B.documentElement:B.scrollingElement},lt=function(t,e,n){t.scrollLeft+=e,t.scrollTop+=n},ct=Nt(function(t,e,n,i){if(e.scroll){var o=n?n[M]:window,r=e.scrollSensitivity,s=e.scrollSpeed,u=t.clientX,d=t.clientY,f=at(),p=!1;l!==n&&(ut(),a=e.scroll,c=e.scrollFn,!0===a&&(a=st(n,!0),l=a));var m=0,h=a;do{var v,g,b,y,C,w,x,S,D,E=h,T=Ut(E),F=T.top,P=T.bottom,I=T.left,O=T.right,A=T.width,L=T.height;if(v=E.scrollWidth,g=E.scrollHeight,b=xt(E),S=E.scrollLeft,D=E.scrollTop,E===f?(w=A<v&&("auto"===b.overflowX||"scroll"===b.overflowX||"visible"===b.overflowX),x=L<g&&("auto"===b.overflowY||"scroll"===b.overflowY||"visible"===b.overflowY)):(w=A<v&&("auto"===b.overflowX||"scroll"===b.overflowX),x=L<g&&("auto"===b.overflowY||"scroll"===b.overflowY)),y=w&&(et(O-u)<=r&&S+A<v)-(et(I-u)<=r&&!!S),C=x&&(et(P-d)<=r&&D+L<g)-(et(F-d)<=r&&!!D),!k[m])for(var N=0;N<=m;N++)k[N]||(k[N]={});k[m].vx==y&&k[m].vy==C&&k[m].el===E||(k[m].el=E,k[m].vx=y,k[m].vy=C,clearInterval(k[m].pid),!E||0==y&&0==C||(p=!0,k[m].pid=setInterval(function(){i&&0===this.layer&&(gt.active._emulateDragOver(!0),gt.active._onTouchMove(_,!0));var e=k[this.layer].vy?k[this.layer].vy*s:0,n=k[this.layer].vx?k[this.layer].vx*s:0;"function"==typeof c&&"continue"!==c.call(o,n,e,t,_,k[this.layer].el)||lt(k[this.layer].el,n,e)}.bind({layer:m}),24))),m++}while(e.bubbleScroll&&h!==f&&(h=st(h,!1)));$=p}},30),ut=function(){k.forEach(function(t){clearInterval(t.pid)}),k=[]},dt=function(t){function e(t,n){return function(i,o,r,s){var a=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==t&&(n||a))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,o,r,s),n)(i,o,r,s);var l=(n?i:o).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==typeof i||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},ft=function(e){t&&t.parentNode&&t.parentNode[M]&&t.parentNode[M]._computeIsAligned(e)},pt=function(){!Z&&n&&xt(n,"display","none")},mt=function(){!Z&&n&&xt(n,"display","")};B.addEventListener("click",function(t){if(P)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),P=!1,!1},!0);var ht,vt=function(e){if(t){var n=function(t,e){for(var n=0;n<I.length;n++)if(!Pt(I[n])){var i=Ut(I[n]),o=I[n][M].options.emptyInsertThreshold,r=t>=i.left-o&&t<=i.right+o,s=e>=i.top-o&&e<=i.bottom+o;if(o&&r&&s)return I[n]}}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(n){var i={};for(var o in e)i[o]=e[o];i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[M]._onDragOver(i)}}};function gt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(t);this.el=t,this.options=e=Mt({},e),t[M]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return rt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:j(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==gt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in n)!(i in e)&&(e[i]=n[i]);for(var o in dt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&q,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_t(t,"pointerdown",this._onTapStart):(_t(t,"mousedown",this._onTapStart),_t(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(_t(t,"dragover",this),_t(t,"dragenter",this)),I.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[])}function bt(t,e,n,i){if(t){n=n||B;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&Lt(t,e):Lt(t,e))||i&&t===n)return t;if(t===n)break}while(t=yt(t))}return null}function yt(t){return t.host&&t!==B&&t.host.nodeType?t.host:t.parentNode}function _t(t,e,n){t.addEventListener(e,n,!z&&K)}function Ct(t,e,n){t.removeEventListener(e,n,!z&&K)}function wt(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(N," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(N," ")}}function xt(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return B.defaultView&&B.defaultView.getComputedStyle?n=B.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function St(t){var e="";do{var n=xt(t,"transform");n&&"none"!==n&&(e=n+" "+e)}while(t=t.parentNode);return window.DOMMatrix?new DOMMatrix(e):window.WebKitCSSMatrix?new WebKitCSSMatrix(e):window.CSSMatrix?new CSSMatrix(e):void 0}function Dt(t,e,n){if(t){var i=t.getElementsByTagName(e),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function Et(t,e,n,o,r,s,a,l,c,u,d){var f,p=(t=t||e[M]).options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||z||G?(f=B.createEvent("Event")).initEvent(n,!0,!0):f=new CustomEvent(n,{bubbles:!0,cancelable:!0}),f.to=r||e,f.from=s||e,f.item=o||e,f.clone=i,f.oldIndex=a,f.newIndex=l,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=d,f.pullMode=h?h.lastPutMode:void 0,e&&e.dispatchEvent(f),p[m]&&p[m].call(t,f)}function Tt(t,e,n,i,o,r,s,a){var l,c,u=t[M],d=u.options.onMove;return!window.CustomEvent||z||G?(l=B.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=o||e,l.relatedRect=r||Ut(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function kt(t){t.draggable=!1}function $t(){Q=!1}function Ft(e,i,o){for(var r=0,s=0,a=e.children;s<a.length;){if("none"!==a[s].style.display&&a[s]!==n&&a[s]!==t&&bt(a[s],o.draggable,e,!1)){if(r===i)return a[s];r++}s++}return null}function Pt(t){for(var e=t.lastElementChild;e&&(e===n||"none"===xt(e,"display"));)e=e.previousElementSibling;return e||null}function It(e){return At(t)<At(e)?1:-1}function Ot(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function At(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||t===i||e&&!Lt(t,e)||n++;return n}function Lt(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function Nt(t,e){return function(){if(!ht){var n=arguments,i=this;ht=U(function(){1===n.length?t.call(i,n[0]):t.apply(i,n),ht=void 0},e)}}}function Mt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Rt(t){return H&&H.dom?H.dom(t).cloneNode(!0):Y?Y(t).clone(!0)[0]:t.cloneNode(!0)}function Bt(t){return U(t,0)}function jt(t){return clearTimeout(t)}function Ut(t,e,n,i){if(t.getBoundingClientRect||t===R){var o,r,s,a,l,c,u;if(t!==R&&t!==at()?(r=(o=t.getBoundingClientRect()).top,s=o.left,a=o.bottom,l=o.right,c=o.height,u=o.width):(r=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),i&&t!==R&&(n=n||t.parentNode,!z))do{if(n&&n.getBoundingClientRect&&"none"!==xt(n,"transform")){var d=n.getBoundingClientRect();r-=d.top+j(xt(n,"border-top-width")),s-=d.left+j(xt(n,"border-left-width")),a=r+o.height,l=s+o.width;break}}while(n=n.parentNode);if(e&&t!==R){var f=St(n||t),p=f&&f.a,m=f&&f.d;f&&(a=(r/=m)+(c/=m),l=(s/=p)+(u/=p))}return{top:r,left:s,bottom:a,right:l,width:u,height:c}}}function Yt(t,e){for(var n=st(t,!0),i=Ut(t)[e];n;){var o=Ut(n)[e];if(!("top"===e||"left"===e?i>=o:i<=o))return n;if(n===at())break;n=st(n,!1)}return!1}function Ht(t){var e=0,n=0,i=at();if(t)do{var o=St(t),r=o.a,s=o.d;e+=t.scrollLeft*r,n+=t.scrollTop*s}while(t!==i&&(t=t.parentNode));return[e,n]}return gt.prototype={constructor:gt,_computeIsAligned:function(e){var i;if(n&&!Z?(pt(),i=B.elementFromPoint(e.clientX,e.clientY),mt()):i=e.target,i=bt(i,this.options.draggable,this.el,!1),!tt&&t&&t.parentNode===this.el){for(var o,r,s,a,l,c,u,d,f=this.el.children,p=0;p<f.length;p++)bt(f[p],this.options.draggable,this.el,!1)&&f[p]!==i&&(f[p].sortableMouseAligned=(o=e.clientX,r=e.clientY,s=f[p],a=this._getDirection(e,null),this.options,void 0,void 0,void 0,void 0,l=Ut(s),c="vertical"===a?l.left:l.top,u="vertical"===a?l.right:l.bottom,c<(d="vertical"===a?o:r)&&d<u));bt(i,this.options.draggable,this.el,!0)||(w=null),tt=!0,U(function(){tt=!1},30)}},_getDirection:function(e,n){return"function"==typeof this.options.direction?this.options.direction.call(this,e,n,t):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n,i,o=this,r=this.el,a=this.options,l=a.preventOnFilter,c=e.type,u=e.touches&&e.touches[0],d=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,p=a.filter;if(function(t){ot.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var i=e[n];i.checked&&ot.push(i)}}(r),!t&&!(/mousedown|pointerdown/.test(c)&&0!==e.button||a.disabled||f.isContentEditable||(d=bt(d,a.draggable,r,!1),s===d))){if(n=At(d),i=At(d,a.draggable),"function"==typeof p){if(p.call(this,e,d,this))return Et(o,f,"filter",d,r,r,n,void 0,i),void(l&&e.cancelable&&e.preventDefault())}else if(p&&(p=p.split(",").some(function(t){if(t=bt(f,t.trim(),r,!1))return Et(o,t,"filter",d,r,r,n,void 0,i),!0})))return void(l&&e.cancelable&&e.preventDefault());a.handle&&!bt(f,a.handle,r,!1)||this._prepareDragStart(e,u,d,n,i)}}},_handleAutoScroll:function(e,n){if(t&&this.options.scroll){var i=e.clientX,o=e.clientY,r=B.elementFromPoint(i,o),s=this;if(n||G||z||X){ct(e,s.options,r,n);var a=st(r,!0);!$||v&&i===g&&o===b||(v&&clearInterval(v),v=setInterval(function(){if(t){var r=st(B.elementFromPoint(i,o),!0);r!==a&&(a=r,ut(),ct(e,s.options,a,n))}},10),g=i,b=o)}else{if(!s.options.bubbleScroll||st(r,!0)===at())return void ut();ct(e,s.options,st(r,!1),!1)}}},_prepareDragStart:function(n,i,a,l,c){var d,p=this,h=p.el,v=p.options,g=h.ownerDocument;a&&!t&&a.parentNode===h&&(o=h,e=(t=a).parentNode,r=t.nextSibling,s=a,m=v.group,u=l,f=c,y={target:t,clientX:(i||n).clientX,clientY:(i||n).clientY},this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,t.style["will-change"]="all",t.style.transition="",t.style.transform="",d=function(){p._disableDelayedDragEvents(),!W&&p.nativeDraggable&&(t.draggable=!0),p._triggerDragStart(n,i),Et(p,o,"choose",t,o,o,u,void 0,f),wt(t,v.chosenClass,!0)},v.ignore.split(",").forEach(function(e){Dt(t,e.trim(),kt)}),_t(g,"dragover",vt),_t(g,"mousemove",vt),_t(g,"touchmove",vt),_t(g,"mouseup",p._onDrop),_t(g,"touchend",p._onDrop),_t(g,"touchcancel",p._onDrop),W&&this.nativeDraggable&&(this.options.touchStartThreshold=4,t.draggable=!0),!v.delay||v.delayOnTouchOnly&&!i||this.nativeDraggable&&(G||z)?d():(_t(g,"mouseup",p._disableDelayedDrag),_t(g,"touchend",p._disableDelayedDrag),_t(g,"touchcancel",p._disableDelayedDrag),_t(g,"mousemove",p._delayedDragTouchMoveHandler),_t(g,"touchmove",p._delayedDragTouchMoveHandler),v.supportPointer&&_t(g,"pointermove",p._delayedDragTouchMoveHandler),p._dragStartTimer=U(d,v.delay)))},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;it(et(e.clientX-this._lastX),et(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){t&&kt(t),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._disableDelayedDrag),Ct(t,"touchend",this._disableDelayedDrag),Ct(t,"touchcancel",this._disableDelayedDrag),Ct(t,"mousemove",this._delayedDragTouchMoveHandler),Ct(t,"touchmove",this._delayedDragTouchMoveHandler),Ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||("touch"==e.pointerType?e:null),!this.nativeDraggable||n?this.options.supportPointer?_t(B,"pointermove",this._onTouchMove):_t(B,n?"touchmove":"mousemove",this._onTouchMove):(_t(t,"dragend",this),_t(o,"dragstart",this._onDragStart));try{B.selection?Bt(function(){B.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(e,n){if(F=!1,o&&t){this.nativeDraggable&&(_t(B,"dragover",this._handleAutoScroll),_t(B,"dragover",ft));var i=this.options;!e&&wt(t,i.dragClass,!1),wt(t,i.ghostClass,!0),xt(t,"transform",""),gt.active=this,e&&this._appendGhost(),Et(this,o,"start",t,o,o,u,void 0,f,void 0,n)}else this._nulling()},_emulateDragOver:function(e){if(_){if(this._lastX===_.clientX&&this._lastY===_.clientY&&!e)return;this._lastX=_.clientX,this._lastY=_.clientY,pt();for(var n=B.elementFromPoint(_.clientX,_.clientY),i=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(_.clientX,_.clientY))!==i;)i=n;if(i)do{if(i[M])if(i[M]._onDragOver({clientX:_.clientX,clientY:_.clientY,target:n,rootEl:i})&&!this.options.dragoverBubble)break;n=i}while(i=i.parentNode);t.parentNode[M]._computeIsAligned(_),mt()}},_onTouchMove:function(t,e){if(y){var i=this.options,o=i.fallbackTolerance,r=i.fallbackOffset,s=t.touches?t.touches[0]:t,a=n&&St(n),l=n&&a&&a.a,c=n&&a&&a.d,u=V&&E&&Ht(E),d=(s.clientX-y.clientX+r.x)/(l||1)+(u?u[0]-L[0]:0)/(l||1),f=(s.clientY-y.clientY+r.y)/(c||1)+(u?u[1]-L[1]:0)/(c||1),p=t.touches?"translate3d("+d+"px,"+f+"px,0)":"translate("+d+"px,"+f+"px)";if(!gt.active&&!F){if(o&&nt(et(s.clientX-this._lastX),et(s.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}!e&&this._handleAutoScroll(s,!0),C=!0,_=s,xt(n,"webkitTransform",p),xt(n,"mozTransform",p),xt(n,"msTransform",p),xt(n,"transform",p),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!n){var e=this.options.fallbackOnBody?B.body:o,i=Ut(t,!0,e,!V),r=(xt(t),this.options);if(V){for(E=e;"static"===xt(E,"position")&&"none"===xt(E,"transform")&&E!==B;)E=E.parentNode;if(E!==B){var s=Ut(E,!0);i.top-=s.top,i.left-=s.left}E!==B.body&&E!==B.documentElement?(E===B&&(E=at()),i.top+=E.scrollTop,i.left+=E.scrollLeft):E=at(),L=Ht(E)}wt(n=t.cloneNode(!0),r.ghostClass,!1),wt(n,r.fallbackClass,!0),wt(n,r.dragClass,!0),xt(n,"box-sizing","border-box"),xt(n,"margin",0),xt(n,"top",i.top),xt(n,"left",i.left),xt(n,"width",i.width),xt(n,"height",i.height),xt(n,"opacity","0.8"),xt(n,"position",V?"absolute":"fixed"),xt(n,"zIndex","100000"),xt(n,"pointerEvents","none"),e.appendChild(n)}},_onDragStart:function(e,n){var r=this,s=e.dataTransfer,a=r.options;(i=Rt(t)).draggable=!1,i.style["will-change"]="",this._hideClone(),wt(i,r.options.chosenClass,!1),r._cloneId=Bt(function(){r.options.removeCloneOnHide||o.insertBefore(i,t),Et(r,o,"clone",t)}),!n&&wt(t,a.dragClass,!0),n?(P=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Ct(B,"mouseup",r._onDrop),Ct(B,"touchend",r._onDrop),Ct(B,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",a.setData&&a.setData.call(r,s,t)),_t(B,"drop",r),xt(t,"transform","translateZ(0)")),F=!0,r._dragStartId=Bt(r._dragStarted.bind(r,n,e)),_t(B,"selectstart",r),X&&xt(B.body,"user-select","none")},_onDragOver:function(n){var i,s,a,l=this.el,c=n.target,d=this.options,p=d.group,v=gt.active,g=m===p,b=d.sort,y=this;if(!Q){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),C=!0,c=bt(c,d.draggable,l,!0),t.contains(n.target)||c.animated)return K(!1);if(c!==t&&(P=!1),v&&!d.disabled&&(g?b||(a=!o.contains(t)):h===this||(this.lastPutMode=m.checkPull(this,v,t,n))&&p.checkPut(this,v,t,n))){var _=this._getDirection(n,c);if(i=Ut(t),a)return this._hideClone(),e=o,r?o.insertBefore(t,r):o.appendChild(t),K(!0);var E=Pt(l);if(!E||function(t,e,n){var i=Ut(Pt(n)),o="vertical"===e?t.clientY:t.clientX,r="vertical"===e?t.clientX:t.clientY,s="vertical"===e?i.bottom:i.right,a="vertical"===e?i.left:i.top,l="vertical"===e?i.right:i.bottom;return"vertical"===e?r>l+10||r<=l&&o>s&&r>=a:o>s&&r>a||o<=s&&r>l+10}(n,_,l)&&!E.animated){if(E&&l===n.target&&(c=E),c&&(s=Ut(c)),g?v._hideClone():v._showClone(this),!1!==Tt(o,l,t,i,c,s,n,!!c))return l.appendChild(t),e=l,T=null,z(),K(!0)}else if(c&&c!==t&&c.parentNode===l){var k,$=0,F=c.sortableMouseAligned,I=t.parentNode!==l,L="vertical"===_?"top":"left",N=Yt(c,"top")||Yt(t,"top"),R=N?N.scrollTop:void 0;if(w!==c&&(S=null,k=Ut(c)[L],O=!1),function(e,n,i){var o=e===t&&T||Ut(e),r=n===t&&T||Ut(n),s="vertical"===i?o.left:o.top,a="vertical"===i?o.right:o.bottom,l="vertical"===i?o.width:o.height,c="vertical"===i?r.left:r.top,u="vertical"===i?r.right:r.bottom,d="vertical"===i?r.width:r.height;return s===c||a===u||s+l/2===c+d/2}(t,c,_)&&F||I||N||d.invertSwap||"insert"===S||"swap"===S?("swap"!==S&&(A=d.invertSwap||I),$=function(e,n,i,o,r,s,a){var l=Ut(n),c="vertical"===i?e.clientY:e.clientX,u="vertical"===i?l.height:l.width,d="vertical"===i?l.top:l.left,f="vertical"===i?l.bottom:l.right,p=Ut(t),m=!1;if(!s)if(a&&D<u*o)if(!O&&(1===x?c>d+u*r/2:c<f-u*r/2)&&(O=!0),O)m=!0;else{"vertical"===i?p.top:p.left,"vertical"===i?p.bottom:p.right;if(1===x?c<d+D:c>f-D)return-1*x}else if(c>d+u*(1-o)/2&&c<f-u*(1-o)/2)return It(n);if((m=m||s)&&(c<d+u*r/2||c>f-u*r/2))return c>d+u/2?1:-1;return 0}(n,c,_,d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,A,w===c),S="swap"):($=It(c),S="insert"),0===$)return K(!1);T=null,w=c,x=$,s=Ut(c);var j=c.nextElementSibling,Y=!1,H=Tt(o,l,t,i,c,s,n,Y=1===$);if(!1!==H)return 1!==H&&-1!==H||(Y=1===H),Q=!0,U($t,30),g?v._hideClone():v._showClone(this),Y&&!j?l.appendChild(t):c.parentNode.insertBefore(t,Y?j:c),N&<(N,0,R-N.scrollTop),e=t.parentNode,void 0===k||A||(D=et(k-Ut(c)[L])),z(),K(!0)}if(l.contains(t))return K(!1)}return!1}function K(e){return e&&(g?v._hideClone():v._showClone(y),v&&(wt(t,h?h.options.ghostClass:v.options.ghostClass,!1),wt(t,d.ghostClass,!0)),h!==y&&y!==gt.active?h=y:y===gt.active&&(h=null),i&&y._animate(i,t),c&&s&&y._animate(s,c)),(c===t&&!t.animated||c===l&&!c.animated)&&(w=null),d.dragoverBubble||n.rootEl||c===B||(y._handleAutoScroll(n),t.parentNode[M]._computeIsAligned(n),!e&&vt(n)),!d.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),!0}function z(){Et(y,o,"change",c,l,o,u,At(t),f,At(t,d.draggable),n)}},_animate:function(e,n){var i=this.options.animation;if(i){var o=Ut(n);if(n===t&&(T=o),1===e.nodeType&&(e=Ut(e)),e.left+e.width/2!==o.left+o.width/2||e.top+e.height/2!==o.top+o.height/2){var r=St(this.el),s=r&&r.a,a=r&&r.d;xt(n,"transition","none"),xt(n,"transform","translate3d("+(e.left-o.left)/(s||1)+"px,"+(e.top-o.top)/(a||1)+"px,0)"),this._repaint(n),xt(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),xt(n,"transform","translate3d(0,0,0)")}"number"==typeof n.animated&&clearTimeout(n.animated),n.animated=U(function(){xt(n,"transition",""),xt(n,"transform",""),n.animated=!1},i)}},_repaint:function(t){return t.offsetWidth},_offMoveEvents:function(){Ct(B,"touchmove",this._onTouchMove),Ct(B,"pointermove",this._onTouchMove),Ct(B,"dragover",vt),Ct(B,"mousemove",vt),Ct(B,"touchmove",vt)},_offUpEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._onDrop),Ct(t,"touchend",this._onDrop),Ct(t,"pointerup",this._onDrop),Ct(t,"touchcancel",this._onDrop),Ct(B,"selectstart",this)},_onDrop:function(s){var a=this.el,l=this.options;F=!1,$=!1,A=!1,O=!1,clearInterval(this._loopId),clearInterval(v),ut(),clearTimeout(ht),ht=void 0,clearTimeout(this._dragStartTimer),jt(this._cloneId),jt(this._dragStartId),Ct(B,"mousemove",this._onTouchMove),this.nativeDraggable&&(Ct(B,"drop",this),Ct(a,"dragstart",this._onDragStart),Ct(B,"dragover",this._handleAutoScroll),Ct(B,"dragover",ft)),X&&xt(B.body,"user-select",""),this._offMoveEvents(),this._offUpEvents(),s&&(C&&(s.cancelable&&s.preventDefault(),!l.dropBubble&&s.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),(o===e||h&&"clone"!==h.lastPutMode)&&i&&i.parentNode&&i.parentNode.removeChild(i),t&&(this.nativeDraggable&&Ct(t,"dragend",this),kt(t),t.style["will-change"]="",wt(t,h?h.options.ghostClass:this.options.ghostClass,!1),wt(t,this.options.chosenClass,!1),Et(this,o,"unchoose",t,e,o,u,null,f,null,s),o!==e?(d=At(t),p=At(t,l.draggable),d>=0&&(Et(null,e,"add",t,e,o,u,d,f,p,s),Et(this,o,"remove",t,e,o,u,d,f,p,s),Et(null,e,"sort",t,e,o,u,d,f,p,s),Et(this,o,"sort",t,e,o,u,d,f,p,s)),h&&h.save()):t.nextSibling!==r&&(d=At(t),p=At(t,l.draggable),d>=0&&(Et(this,o,"update",t,e,o,u,d,f,p,s),Et(this,o,"sort",t,e,o,u,d,f,p,s))),gt.active&&(null!=d&&-1!==d||(d=u,p=f),Et(this,o,"end",t,e,o,u,d,f,p,s),this.save()))),this._nulling()},_nulling:function(){o=t=e=n=r=i=s=a=l=k.length=v=g=b=y=_=C=d=u=w=x=T=h=m=gt.active=null,ot.forEach(function(t){t.checked=!0}),ot.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)bt(t=n[i],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Ot(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,i){var o=n.children[i];bt(o,this.options.draggable,n,!1)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return bt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&dt(n)},destroy:function(){var t=this.el;t[M]=null,Ct(t,"mousedown",this._onTapStart),Ct(t,"touchstart",this._onTapStart),Ct(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ct(t,"dragover",this),Ct(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),I.splice(I.indexOf(this.el),1),this.el=t=null},_hideClone:function(){i.cloneHidden||(xt(i,"display","none"),i.cloneHidden=!0,i.parentNode&&this.options.removeCloneOnHide&&i.parentNode.removeChild(i))},_showClone:function(e){"clone"===e.lastPutMode?i.cloneHidden&&(o.contains(t)&&!this.options.group.revertClone?o.insertBefore(i,t):r?o.insertBefore(i,r):o.appendChild(i),this.options.group.revertClone&&this._animate(t,i),xt(i,"display",""),i.cloneHidden=!1):this._hideClone()}},_t(B,"touchmove",function(t){(gt.active||F)&&t.cancelable&&t.preventDefault()}),gt.utils={on:_t,off:Ct,css:xt,find:Dt,is:function(t,e){return!!bt(t,e,t,!1)},extend:Mt,throttle:Nt,closest:bt,toggleClass:wt,clone:Rt,index:At,nextTick:Bt,cancelNextTick:jt,detectDirection:rt,getChild:Ft},gt.create=function(t,e){return new gt(t,e)},gt.version="1.9.0",gt})},906:function(t,e,n){var i=n(90)(n(907),n(908),!1,null,null,null);t.exports=i.exports},907:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}}},908:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t._v(" "),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t._v(" "),t.$slots.default?n("span",[t._t("default")],2):t._e()])},staticRenderFns:[]}}});
Save
Back